/* Reattivo – sito di presentazione.
   Layout: colonna centrale max 1080px; sezioni a bande; schermate in fila
   che diventano scorrevoli su telefono. Nessun font esterno (privacy):
   si usano i font di sistema. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #131a2a;
  --muted: #566078;
  --line: #dfe3ec;
  --brand: #23407a;
  --brand-ink: #ffffff;
  --brand-soft: #e7ecf7;
  --go: #2fbf6b;
  --go-ink: #11633a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1420; --surface: #171e2d; --ink: #e9edf5; --muted: #9ba6bc;
    --line: #283246; --brand: #8fb0ff; --brand-ink: #0f1420; --brand-soft: #1c2740;
    --go: #4fd98a; --go-ink: #8ff0b8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1420; --surface: #171e2d; --ink: #e9edf5; --muted: #9ba6bc;
  --line: #283246; --brand: #8fb0ff; --brand-ink: #0f1420; --brand-soft: #1c2740;
  --go: #4fd98a; --go-ink: #8ff0b8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--go); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 62ch; }
.section-head p { color: var(--muted); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}

/* Barra superiore */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.top nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav { display: none; } }

/* Apertura */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lead { font-size: 20px; color: var(--muted); max-width: 52ch; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-radius: 12px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2;
}
.store small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.store[aria-disabled="true"] { opacity: .55; cursor: default; }
.note { font-size: 14px; color: var(--muted); }
.hero-phone { justify-self: center; position: relative; }
.hero-phone .phone { width: min(300px, 70vw); }
.badge-live {
  position: absolute; left: -24px; bottom: 56px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(15, 25, 50, .12); font-size: 14px; display: grid; gap: 2px;
}
.badge-live b { font-size: 22px; font-variant-numeric: tabular-nums; }
.badge-live span { color: var(--go-ink); font-weight: 700; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .badge-live { left: 8px; }
}

/* Telefono */
.phone {
  border-radius: 34px; padding: 10px; background: #0d1220;
  box-shadow: 0 24px 60px rgba(15, 25, 50, .25);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 540 / 1075; object-fit: cover; }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  display: grid; gap: 8px; counter-increment: step;
}
.steps li::before {
  content: counter(step); width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800;
  display: grid; place-items: center;
}
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Test */
.tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.test-group { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.test-group ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.test-group .src { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .tests { grid-template-columns: minmax(0, 1fr); } }

/* Schermate */
.screens-band { background: var(--brand-soft); }
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.screens figure { margin: 0; display: grid; gap: 12px; }
.screens figcaption { font-size: 15px; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .screens { grid-template-columns: repeat(4, 220px); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .screens figure { scroll-snap-align: start; }
}

/* Prezzi */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 14px; }
.plan.main { border: 2px solid var(--brand); }
.plan .price { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .who { color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--go); }
.tag { justify-self: start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Autoscuole */
.schools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.schools ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.cta-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 12px; }
.mail { font-weight: 700; font-size: 18px; user-select: all; }
@media (max-width: 760px) { .schools { grid-template-columns: minmax(0, 1fr); } }

/* Domande */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 14px; list-style-position: outside; }
.faq details p { padding-bottom: 16px; color: var(--muted); max-width: 70ch; }

/* Piede */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 14px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.disclaimer { max-width: 80ch; }

/* Pagine di testo (privacy) */
.doc { max-width: 760px; padding-block: 48px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin-top: 36px; margin-bottom: 10px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc .updated { color: var(--muted); }
.todo { background: #fff4d6; color: #5a4300; border-radius: 6px; padding: 0 4px; }
:root[data-theme="dark"] .todo { background: #3d3214; color: #ffe39a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .todo { background: #3d3214; color: #ffe39a; } }

/* Classi usate al posto degli stili inline (CSP senza unsafe-inline) */
.price-note { margin-top: 16px; }
.section-head.flush { margin: 0; }
