:root{
  --bg0:#07090c;
  --bg1:#0b0f14;
  --panel:#0f1620;
  --panel2:#101a26;
  --stroke:#1e2b3d;
  --text:#e7eef7;
  --muted:#a9b6c7;
  --accent:#2aa6ff;
  --danger:#ff3b3b;
  --gold:#c9a86a;

  --radius:14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(42,166,255,.12), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(201,168,106,.10), transparent 50%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* scacchiera “soft” */
.chess-bg::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.10;
  background:
    linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.06) 75%, rgba(255,255,255,.06)),
    linear-gradient(45deg, rgba(0,0,0,.18) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.18) 75%, rgba(0,0,0,.18));
  background-size: 64px 64px;
  background-position: 0 0, 32px 32px;
}

.container{
  max-width: 1600px;   /* ← molto più largo */
  margin: 28px auto 60px;
  padding: 0 18px;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(7,9,12,.65);
  border-bottom:1px solid rgba(30,43,61,.7);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 18px;
}

.brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}
.brand-logo{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(30,43,61,.9);
  box-shadow: var(--shadow);
  object-fit: cover;
  background: #0b111a;
}
.brand-text{ line-height:1; }
.brand-name{
  letter-spacing:.12em;
  font-weight:800;
  font-size:14px;
}
.brand-sub{
  letter-spacing:.28em;
  font-weight:700;
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
}

.nav{ display:flex; gap:10px; align-items:center; }
.nav-link{
  color:var(--muted);
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.nav-link:hover{
  color:var(--text);
  border-color: rgba(30,43,61,.9);
  background: rgba(16,26,38,.55);
}
.nav-link.danger:hover{ border-color: rgba(255,59,59,.45); color:#ffd6d6; }

/* Components */
h1{ margin:0 0 8px; font-size:30px; letter-spacing:.02em; }
p{ margin: 0 0 10px; }
.muted{ color:var(--muted); }
.mono{ font-family:var(--mono); }
.strong{ font-weight:700; }
.right{ text-align:right; }
.inline{ display:inline; margin-left:8px; }
.clip{
  max-width: 900px;           /* ← PIÙ LARGA */
  overflow-x: auto;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  padding-bottom: 2px;
}


.card{
  background: linear-gradient(180deg, rgba(15,22,32,.92), rgba(16,26,38,.88));
  border: 1px solid rgba(30,43,61,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-card{ padding: 6px; }
.form-card{ padding: 18px; max-width: 560px; }
.auth-card{ padding: 22px; max-width: 420px; margin: 0 auto; }

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin: 22px 0 14px;
}
.page-actions{ display:flex; gap:10px; }

/* Hero */
.hero{ margin-top: 28px; }
.hero-card{
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(30,43,61,.95);
  background: linear-gradient(180deg, rgba(15,22,32,.75), rgba(16,26,38,.60));
  box-shadow: var(--shadow);
}
.hero-actions{ display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }
.hint-row{ display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }
.chip{
  border:1px solid rgba(30,43,61,.95);
  background: rgba(16,26,38,.55);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* Forms */
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
label{ color:var(--muted); font-size: 13px; }
input[type="text"], input[type="password"], input[type="file"]{
  background: rgba(7,9,12,.55);
  color:var(--text);
  border:1px solid rgba(30,43,61,.95);
  border-radius: 12px;
  padding: 11px 12px;
  outline:none;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="file"]:focus{
  border-color: rgba(42,166,255,.75);
  box-shadow: 0 0 0 4px rgba(42,166,255,.12);
}
.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.w100{ width:100%; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30,43,61,.95);
  background: linear-gradient(180deg, rgba(27,47,74,.85), rgba(20,36,56,.75));
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
  letter-spacing:.02em;
}
.btn:hover{
  border-color: rgba(42,166,255,.55);
  box-shadow: 0 0 0 4px rgba(42,166,255,.10);
}
.btn.ghost{
  background: rgba(16,26,38,.35);
  color: var(--muted);
}
.btn.ghost:hover{ color: var(--text); }
.btn.danger{
  background: linear-gradient(180deg, rgba(92,18,18,.9), rgba(58,14,14,.8));
  border-color: rgba(255,59,59,.35);
}
.btn.danger:hover{
  box-shadow: 0 0 0 4px rgba(255,59,59,.12);
  border-color: rgba(255,59,59,.55);
}
.btn.small{ padding: 9px 10px; font-size: 13px; border-radius: 11px; }

/* Table */
.table{
  width:100%;
  border-collapse: collapse;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(30,43,61,.75);
  vertical-align: middle;
}
.table th{
  font-size: 12px;
  letter-spacing:.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.table tr:hover td{
  background: rgba(16,26,38,.35);
}

/* Alerts */
.alert{
  border-radius: 12px;
  padding: 10px 12px;
  border:1px solid rgba(30,43,61,.95);
  background: rgba(16,26,38,.55);
  margin: 12px 0 10px;
  color: var(--muted);
}
.alert.danger{
  border-color: rgba(255,59,59,.35);
  background: rgba(92,18,18,.35);
  color:#ffd6d6;
}

/* Footer */
.footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  border-top:1px solid rgba(30,43,61,.7);
  background: rgba(7,9,12,.65);
  backdrop-filter: blur(10px);
}
.footer-inner{
  max-width:1100px;
  margin: 0 auto;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 12px;
}

