/* Volleystream — foglio di stile unico del sito istituzionale.
   Palette presa dai pannelli in onda (server/overlay/panels.json): fondo
   quasi nero, verde #52b788, oro #d9a441. Nessuna dipendenza esterna:
   il sito deve caricarsi anche da una rete lenta, in palazzetto. */

:root {
  --bg: #0b100f;
  --surface: #121917;
  --surface-2: #182220;
  --line: #24322e;
  --text: #eef3f1;
  --muted: #9bb0a9;
  --green: #52b788;
  --green-dim: #2f6b52;
  --gold: #d9a441;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #10100c;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── testata ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 15, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); font-weight: 700; letter-spacing: -.02em; font-size: 1.06rem;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: 0 0 auto; }
.brand .stream { color: var(--green); }

.nav { display: flex; gap: 1.15rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .nav-cta {
  color: #0b100f; background: var(--green); font-weight: 650;
  padding: .42rem .9rem; border-radius: 999px;
}
.nav .nav-cta:hover { background: #63c795; color: #0b100f; }

.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: .35rem .6rem; font-size: 1.1rem;
}

/* ── sezioni ────────────────────────────────────────────── */
main { display: block; }
section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
section + section { border-top: 1px solid var(--line); }

.hero { padding-top: clamp(2.8rem, 7vw, 5.2rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero p.lead { font-size: 1.14rem; max-width: 44ch; }

.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .7rem 1.25rem; border-radius: 999px;
  font-weight: 650; border: 1px solid transparent; font-size: .97rem;
}
.btn-primary { background: var(--green); color: #0b100f; }
.btn-primary:hover { background: #63c795; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--green-dim); text-decoration: none; }

/* schema del flusso, solo CSS: telefono → regia → diretta */
.flow {
  display: grid; gap: .5rem; padding: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.flow-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .8rem; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px;
}
.flow-row .ico { width: 30px; height: 30px; flex: 0 0 auto; color: var(--green); }
.flow-row .lbl { font-size: .9rem; font-weight: 600; }
.flow-row .sub { font-size: .78rem; color: var(--muted); }
.flow-arrow { text-align: center; color: var(--green-dim); font-size: .95rem; line-height: 1; }

/* ── griglie ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 26px; height: 26px; color: var(--green); margin-bottom: .7rem; }
.card-num {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase;
}

.steps { counter-reset: passo; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: start; }
.step::before {
  counter-increment: passo; content: counter(passo);
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--green-dim); color: var(--green);
  font-weight: 700; font-size: .95rem;
}
.step h3 { margin-bottom: .15rem; }
.step p { margin-bottom: 0; }

/* elenco funzioni */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.feature-list li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--green);
}
.feature-list strong { display: inline; }

/* tabella specifiche */
table.spec { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .94rem; }
table.spec th, table.spec td { text-align: left; padding: .62rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { color: var(--muted); font-weight: 600; width: 34%; }
table.spec td { color: var(--text); }

/* FAQ */
details.faq {
  border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem;
  background: var(--surface); margin-bottom: .6rem;
}
details.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
details.faq summary::-webkit-details-marker { color: var(--green); }
details.faq p { margin: .6rem 0 0; }

/* avviso / nota */
.note {
  border-left: 3px solid var(--gold); background: rgba(217, 164, 65, .07);
  padding: .8rem 1rem; border-radius: 0 8px 8px 0; margin: 1.2rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--gold); }

/* CTA finale */
.cta-band {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; padding: clamp(2.4rem, 5vw, 3.6rem) 1rem;
}
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .actions { justify-content: center; }

/* footer */
.site-footer { padding: 2.2rem 0 2.6rem; color: var(--muted); font-size: .86rem; }
.site-footer .cols { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: grid; gap: .3rem; }
.site-footer a { color: var(--muted); }
.site-footer .fine { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .feature-list { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: .7rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* stampa: il sito deve restare leggibile se qualcuno lo archivia */
@media print {
  .site-header, .cta-band, .actions { display: none; }
  body { background: #fff; color: #111; }
  p, .card, td, th { color: #222; }
}
