/* QualificaLead.it – stile del sito.
   Direzione: «un solo motivo». Il mirino del logo (cerchi concentrici) è l'unica forma:
   eroe, maschere delle foto, pulsanti tondi, punti degli elenchi, footer.
   Fondo nero fuliggine, inchiostro bianco, un solo accento: il verde del logo (#00c04e). */

@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0f0f0f;
  --surface: #1b1b1b;
  --surface-2: #262626;
  --ink: #ffffff;
  --muted: #a6a6a6;
  --acc: #00c04e;
  --acc-ink: #0f0f0f;
  --light: #ffffff;
  --light-2: #f1f1f1;
  --light-3: #e4e4e4;
  --light-ink: #0f0f0f;
  --light-muted: #555555;
  --tint: #e6f8ec;
  --t0: #0b3a1d; --t1: #0e5529; --t2: #117a39; --t3: #00a845; --t4: #00c04e;

  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* cinque misure: piccola, testo, lead, titolo, display */
  --s-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --s-head: clamp(1.875rem, 1.2rem + 2.9vw, 4rem);
  --s-display: clamp(2.5rem, 0.9rem + 5.6vw, 6.25rem);
  --s-statement: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
  --s-mega: clamp(5rem, 1rem + 19vw, 20rem);

  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1400px;
  --sez: clamp(96px, 11vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--s-body); line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg, video, audio { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
::selection { background: var(--acc); color: var(--acc-ink); }

.icon { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i5 { width: 1.25rem; height: 1.25rem; }
.i6 { width: 1.5rem; height: 1.5rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--acc); color: var(--acc-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: var(--gutter); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- il mirino ---------- */
.mirino .m1 { fill: var(--acc); }
.mirino .m2 { fill: var(--bg); }

/* ---------- pulsanti e link ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 500; font-size: var(--s-body); text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-acc, .btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover, .btn-primary:hover { background: var(--ink); color: var(--bg); }
.sez-chiara .btn-acc:hover, .sez-grigia .btn-acc:hover { background: var(--light-ink); color: var(--light); }
.btn-sm { min-height: 40px; padding: .5rem 1.125rem; font-size: var(--s-small); }
.btn-lg { min-height: 56px; padding: 1rem 2rem; }
.link-freccia { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 2px; transition: gap .2s var(--ease); }
.link-freccia::after { content: "→"; text-decoration: none; }
.link-freccia:hover { gap: .875rem; }
.text-primary { font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- navigazione ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.nav-bar { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .625rem; font-weight: 700; font-size: var(--s-lead); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: none; align-items: center; gap: 1.75rem; font-size: var(--s-small); }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-dd { position: relative; }
.nav-dd-top { display: inline-flex; align-items: center; gap: .25rem; }
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1rem; }
.nav-dd-menu { display: none; position: absolute; top: calc(100% + .75rem); left: -1.25rem; min-width: 17rem; padding: .75rem; background: var(--surface); border-radius: 16px; box-shadow: 0 24px 48px rgb(0 0 0 / .5); } /* taste-skill-ignore: menu a tendina, galleggia sopra la pagina */
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-menu a { display: block; padding: .5rem .75rem; border-radius: 10px; color: var(--ink); white-space: nowrap; }
.nav-dd-menu a:hover { background: var(--surface-2); }
.nav-dd-title { font-size: var(--s-small); color: var(--muted); padding: .5rem .75rem .25rem; }
.nav-cta { display: none; }
.nav-toggle { padding: .5rem; margin-right: -.5rem; }
.nav-toggle .close, .nav.open .nav-toggle .open { display: none; }
.nav.open .nav-toggle .close { display: block; }
.nav-mobile { display: none; padding: .5rem 0 1.5rem; }
.nav.open .nav-mobile { display: grid; gap: .125rem; }
.nav-mobile a:not(.btn) { display: block; padding: .625rem 0; font-size: var(--s-body); text-decoration: none; }
.nav-mobile .btn { margin-top: 1rem; }
@media (min-width: 1080px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .nav.open .nav-mobile { display: none; }
}

/* ---------- eroe della home ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-in { display: grid; gap: 3rem; padding-block: clamp(48px, 7vw, 112px) clamp(64px, 8vw, 128px); min-height: min(88svh, 900px); align-items: center; }
.hero-tit { font-size: var(--s-display); line-height: .92; letter-spacing: -.035em; font-weight: 700; }
.hero-testo .lead { margin-top: 2rem; max-width: 52ch; }
.lead { font-size: var(--s-lead); line-height: 1.4; color: var(--ink); }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.hero-visivo { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-mirino { position: absolute; width: min(118vw, 720px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-mirino .mirino { width: 100%; height: 100%; }
.hero-nota { position: relative; margin-top: 1rem; font-size: var(--s-small); color: var(--muted); text-align: center; }
.hero-testo { position: relative; z-index: 1; }
.scheda, .hero-nota { z-index: 1; }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.35fr 1fr; }
  .hero-visivo { position: static; min-height: 620px; }
  .hero-mirino { --d: clamp(700px, 62vw, 940px); width: var(--d); left: auto; right: calc(-0.3 * var(--d)); top: 50%; transform: translateY(-50%); }
}

/* la scheda del lead (frammento d'interfaccia) */
.scheda { position: relative; width: min(100%, 360px); min-height: 230px; padding: 1.5rem; background: var(--bg); color: var(--ink); border-radius: 24px; }
.stato { display: grid; gap: .5rem; }
.js .stato { position: absolute; inset: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
.js .stato.attivo { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease); }
html:not(.js) .stato:not(:first-child) { display: none; }
.st-tag { display: flex; align-items: center; gap: .5rem; font-size: var(--s-small); color: var(--muted); }
.pallino { width: .625rem; height: .625rem; border-radius: 50%; background: var(--acc); }
.st-nome { font-size: var(--s-lead); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.st-riga { color: var(--muted); font-size: var(--s-body); }
.st-big { margin-top: .5rem; font-weight: 500; color: var(--acc); font-size: var(--s-lead); }
.st-citazione { font-size: var(--s-body); line-height: 1.45; }
.st-lista { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.st-lista li { background: var(--surface-2); padding: .375rem .875rem; border-radius: 999px; font-size: var(--s-small); }

/* ---------- testata delle pagine interne ---------- */
.phero { position: relative; overflow: hidden; background: var(--bg); }
.phero-in { padding-block: clamp(56px, 8vw, 128px) clamp(72px, 9vw, 144px); min-height: min(64svh, 680px); display: flex; align-items: center; }
.phero-testo { position: relative; z-index: 1; max-width: min(100%, 860px); }
.h1 { font-size: clamp(2.25rem, 1.1rem + 4.2vw, 5rem); line-height: .98; letter-spacing: -.03em; font-weight: 700; max-width: 17ch; }
.phero-testo .lead { margin-top: 1.75rem; max-width: 58ch; color: var(--ink); }
.phero-testo .lead a, .phero-testo .firma a { text-decoration: underline; text-underline-offset: .2em; }
.firma { margin-top: 1.25rem; font-size: var(--s-small); color: var(--muted); }
.phero-mirino { position: absolute; width: clamp(420px, 62vw, 980px); aspect-ratio: 1; right: calc(-0.42 * clamp(420px, 62vw, 980px)); top: 50%; transform: translateY(-50%); opacity: .95; }
.phero-mirino .mirino { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .phero-mirino { width: 120vw; right: -78vw; top: auto; bottom: -60vw; transform: none; opacity: .9; }
  .phero-in { padding-bottom: 46vw; }
}

/* ---------- sezioni ---------- */
.sez { padding-block: var(--sez); }
.sez-chiara { background: var(--light); color: var(--light-ink); }
.sez-grigia { background: var(--light-2); color: var(--light-ink); }
.sez-scura { background: var(--bg); color: var(--ink); }
.h2 { font-size: var(--s-head); line-height: 1.02; letter-spacing: -.025em; font-weight: 700; max-width: 22ch; }
.lead-scuro { font-size: var(--s-lead); line-height: 1.4; max-width: 46ch; }
.sez-chiara a:not(.btn), .sez-grigia a:not(.btn) { text-underline-offset: .2em; }

.blocco-1col .blocco-tit:empty { display: none; }
.blocco-corpo { margin-top: clamp(2.5rem, 4vw, 4rem); }
.blocco-1col .blocco-corpo { margin-top: 0; }
@media (min-width: 960px) {
  .blocco-2col .blocco-corpo { margin-left: calc(100% / 3); }
}

.prose p { max-width: 64ch; margin-bottom: 1.25rem; line-height: 1.6; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .punti a, .dati a, .legal a, .guida a, .glossario a, .calc-nota a { font-weight: 500; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.benefici { margin-top: 2rem; font-weight: 500; }

/* elenchi a punti: il mirino in piccolo fa da punto */
.punti { list-style: none; display: grid; gap: 2rem 3rem; }
@media (min-width: 700px) { .punti:not(.punti-1) { grid-template-columns: repeat(2, 1fr); } }
.punti li { position: relative; padding-left: 2rem; max-width: 60ch; }
.punti li::before { content: ""; position: absolute; left: 0; top: .42em; width: .875rem; height: .875rem; border-radius: 50%; background: var(--acc); }
.punti h3 { font-size: var(--s-lead); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin-bottom: .375rem; }
.punti p { line-height: 1.55; }
.punti-1 { gap: 1.25rem; }

/* fasi: dal verde scuro al chiaro, l'ordine si legge dal colore */
.fasi { list-style: none; display: grid; gap: 0; }
.fase { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: .5rem 3rem; }
@media (min-width: 800px) { .fase { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; } }
.fase h3 { font-size: var(--s-lead); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.fase p { max-width: 56ch; line-height: 1.55; }
.t0 { background: var(--t0); color: #fff; }
.t1 { background: var(--t1); color: #fff; }
.t2 { background: var(--t2); color: #fff; }
.t3 { background: var(--t3); color: var(--acc-ink); }
.t4 { background: var(--t4); color: var(--acc-ink); }

/* cifre */
.cifre { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; margin-block: 2.5rem; }
.cifre p { display: grid; gap: .25rem; }
.cifre strong { font-size: var(--s-head); line-height: .9; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.cifre span { font-size: var(--s-body); max-width: 18ch; }

/* dati a due colonne */
.dati { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 2rem; margin-top: 2rem; }
.dati dt { color: var(--light-muted); }
.dati dd { font-weight: 500; }
@media (max-width: 520px) { .dati { grid-template-columns: 1fr; gap: .125rem; } .dati dd { margin-bottom: .75rem; } }

/* ---------- foto dentro il cerchio ---------- */
.tondo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--light-3); position: relative; }
.tondo img { width: 100%; height: 100%; object-fit: cover; }
.tondo figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tondo-wa { aspect-ratio: 1 / 2; width: min(72vw, 340px) !important; border-radius: 999px; background: #fff; }
.tondo-wa img { object-fit: cover; object-position: 50% 50%; }
.tondo-logo { width: min(100%, 360px); justify-self: center; background: #fff; }
.tondo-logo img { object-fit: contain; padding: 16%; }

/* ---------- home: il problema, con le miniature tonde nella frase ---------- */
.statement { margin-top: 2rem; font-size: var(--s-statement); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; max-width: 44ch; }
.tondino { display: inline-block; width: 1.7em; height: 1em; margin: 0 .12em; vertical-align: -.12em; border-radius: 999px; overflow: hidden; background: var(--light-3); }
.tondino img { width: 100%; height: 100%; object-fit: cover; }

.problema { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 960px) { .problema { grid-template-columns: 1.6fr 1fr; gap: 5rem; } }
.dato { display: grid; gap: .75rem; }
.dato strong { font-size: var(--s-mega); line-height: .8; letter-spacing: -.06em; font-weight: 700; color: var(--light-ink); }
.dato span { font-size: var(--s-lead); line-height: 1.35; max-width: 26ch; }
.dato-fonte { margin-top: 1rem; color: var(--light-muted); font-size: var(--s-small); }
.dato-fonte a { color: var(--light-ink); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- home: fasi a fisarmonica ---------- */
.intro-2 { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .intro-2 { grid-template-columns: 5fr 1fr 6fr; } .intro-2 .lead-scuro { grid-column: 3; } }
.fasi-acc { margin-top: 4rem; display: grid; }
.fase-p { padding: 1.5rem; display: grid; gap: .75rem; }
.fase-nome { display: none; }
.fase-corpo h3 { font-size: var(--s-statement); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.fase-corpo p { max-width: 38ch; margin-top: 1rem; line-height: 1.55; }
.js .fase-nome { display: block; width: 100%; text-align: left; font-size: var(--s-body); font-weight: 700; padding: 1.25rem 1.5rem; }
.js .fase-p { padding: 0; }
.js .fase-p .fase-corpo { display: none; padding: 1.5rem; }
.js .fase-p.aperta .fase-corpo { display: block; }
.js .fase-p.aperta .fase-nome { display: none; }
@media (min-width: 960px) {
  .js .fasi-acc { display: flex; height: 520px; }
  .js .fase-p { flex: 1 1 0; min-width: 0; transition: flex-grow .45s var(--ease); position: relative; overflow: hidden; }
  .js .fase-p.aperta { flex-grow: 6; }
  .js .fase-nome { position: absolute; inset: 0; padding: 1.5rem 1.25rem; writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; font-size: var(--s-lead); }
  .js .fase-p.aperta .fase-corpo { position: absolute; inset: 0; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
  .js .fase-p:not(.aperta):hover { filter: brightness(1.12); }
}

/* frammenti d'interfaccia nelle fasi (dati d'esempio) */
.frammento { display: none; background: var(--bg); color: var(--ink); border-radius: 24px; padding: 1.25rem 1.5rem; width: min(100%, 360px); font-size: var(--s-small); }
.fase-p.aperta .frammento, html:not(.js) .frammento { display: grid; gap: .625rem; }
.fr-tit { font-weight: 700; font-size: var(--s-body); }
.fr-campo { display: grid; gap: .125rem; }
.fr-campo span { color: var(--muted); }
.fr-ok { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); }
.fr-ok::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; background: var(--acc); flex-shrink: 0; margin-top: .125rem; }
.fr-bolla { background: var(--surface-2); padding: .75rem 1rem; border-radius: 18px; max-width: 90%; }
.fr-lei { justify-self: end; background: var(--acc); color: var(--acc-ink); }
.fr-slot { background: var(--surface-2); padding: .625rem 1rem; border-radius: 999px; }
.fr-scelto { background: var(--acc); color: var(--acc-ink); font-weight: 500; }
.fase-corpo { gap: 2rem; }
@media (min-width: 960px) {
  .js .fase-p.aperta .fase-corpo { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .js .fase-p.aperta .fase-testo { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
}
.vetrina { margin-top: 3.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.fr-vetrina { display: grid; gap: .625rem; width: 100%; background: var(--surface); }
.guida-wrap > * { min-width: 0; }
.fr-guida { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0 1.75rem; align-items: start; }
.fr-guida .fr-vetrina { background: var(--bg); }
.guida .fr-guida p { margin-bottom: 0; }
.caso-tit { display: flex; align-items: center; gap: 1.25rem; }
.caso-tit img { width: 72px; height: 72px; border-radius: 50%; background: #fff; flex-shrink: 0; }

/* ---------- home: prima e dopo, frasi con interruttore ---------- */
.sez-bande { background: var(--light); color: var(--light-ink); padding-top: var(--sez); }
.bande-tit { margin-bottom: 3rem; }
.banda { transition: background-color .45s var(--ease), color .45s var(--ease); }
.banda-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: clamp(132px, 20vh, 200px); padding-block: 1.75rem; }
.banda-frase { font-size: var(--s-statement); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; color: #6b6b6b; transition: color .45s var(--ease); }
.banda-esito { display: none; margin-top: .75rem; font-size: var(--s-body); max-width: 60ch; }
.banda.on .banda-frase { color: inherit; }
.banda.on .banda-esito { display: block; }
html:not(.js) .banda-esito { display: block; }
html:not(.js) .interruttore { display: none; }
.banda.on.b1 { background: var(--acc); color: var(--acc-ink); }
.banda.on.b2 { background: var(--bg); color: var(--ink); }
.banda.on.b3 { background: var(--light-3); color: var(--light-ink); }
.interruttore { flex-shrink: 0; width: 72px; height: 40px; border-radius: 999px; background: var(--light-3); position: relative; transition: background-color .3s var(--ease); }
.interruttore span { position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--light-ink); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.interruttore[aria-checked="true"] { background: var(--light-ink); }
.interruttore[aria-checked="true"] span { transform: translateX(32px); background: var(--acc); }
.banda.on.b1 .interruttore[aria-checked="true"] { background: var(--acc-ink); }
.banda.on.b2 .interruttore[aria-checked="true"] { background: var(--surface-2); }

/* ---------- home: nastro dei canali ---------- */
.nastro { background: var(--bg); color: var(--ink); padding-block: clamp(64px, 8vw, 120px); overflow: hidden; }
.nastro-tit { font-size: var(--s-lead); font-weight: 500; color: var(--muted); margin-bottom: 2rem; }
.nastro-riga { display: flex; width: max-content; }
.nastro-traccia { display: flex; flex-shrink: 0; align-items: center; animation: scorri 48s linear infinite; }
.nastro-traccia span { display: inline-flex; align-items: center; gap: .32em; padding-right: .32em; font-size: var(--s-display); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; line-height: 1.05; }
.nastro-traccia span::after { content: ""; width: .3em; height: .3em; border-radius: 50%; background: var(--acc); }
@keyframes scorri { to { transform: translateX(-100%); } }

/* ---------- caso studio e colonne con foto tonda ---------- */
.caso { display: grid; gap: 3.5rem; align-items: center; }
.caso-testo > * + * { margin-top: 1.5rem; }
.caso-testo .cifre { margin-block: 2rem; }
.caso .tondo { width: min(100%, 560px); justify-self: center; }
@media (min-width: 960px) { .caso { grid-template-columns: 1.15fr 1fr; gap: 5rem; } }

.player { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem 1rem 1rem; background: var(--light); border-radius: 999px; max-width: 520px; }
.sez-chiara .player { background: var(--light-2); }
.play { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(.95); }
.player-testo { flex: 1; min-width: 0; }
.player-tit { font-weight: 500; margin-bottom: .375rem; }
.player audio { width: 100%; height: 36px; }

.caso-box { display: flex; gap: 1.5rem; align-items: center; margin-top: 2.5rem; padding: 1.5rem; background: var(--light); max-width: 760px; }
.sez-chiara .caso-box { background: var(--light-2); }
.caso-box img { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; background: #fff; }
.caso-box p { margin-bottom: .75rem; }

/* ---------- home: cifra mossa da un cursore ---------- */
.calc-home { display: grid; min-height: 72svh; align-content: space-between; gap: 4rem; }
.cursore { margin-top: 2rem; width: min(100%, 440px); }
.cursore label { display: flex; justify-content: space-between; font-size: var(--s-body); margin-bottom: .75rem; color: var(--muted); }
.cursore output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cursore input { width: 100%; accent-color: var(--acc); height: 44px; cursor: pointer; }
.calc-ris { display: grid; gap: 2rem; align-items: end; }
.cifra { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .3em; font-weight: 700; letter-spacing: -.05em; line-height: .8; }
.cifra [data-persi] { font-size: var(--s-mega); font-variant-numeric: tabular-nums; color: var(--acc); }
.cifra .unita { font-size: var(--s-statement); letter-spacing: -.02em; line-height: 1.1; }
.calc-nota { max-width: 34ch; color: var(--ink); }
@media (min-width: 960px) { .calc-ris { grid-template-columns: 1fr auto; } }

/* ---------- righe: servizi e guide come un cartellone ---------- */
.elenco-tit { display: flex; align-items: center; gap: .625rem; margin: clamp(3rem, 5vw, 4.5rem) 0 .75rem; font-size: var(--s-lead); font-weight: 700; }
.elenco-tit::before { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: var(--acc); }
.righe { list-style: none; }
.h2 + .righe { margin-top: 2.5rem; }
.righe a { display: grid; gap: .25rem; padding: 1.125rem 0; text-decoration: none; transition: background-color .2s var(--ease), padding .2s var(--ease); }
.righe a:hover { background: var(--light-2); padding-inline: 1rem; }
.sez-grigia .righe a:hover { background: var(--light); }
.r-nome { font-size: var(--s-lead); font-weight: 500; letter-spacing: -.015em; }
.r-cosa, .r-chi { color: var(--light-muted); font-size: var(--s-body); }
@media (min-width: 960px) {
  .righe a { grid-template-columns: 1fr 1.4fr .6fr; gap: 2rem; align-items: baseline; }
  .r-chi { text-align: right; }
}

/* ---------- home: pannello «chi siamo» ---------- */
.sez-pannello { padding-inline: 0; }
.pannello { margin-inline: var(--gutter); background: var(--bg); color: var(--ink); overflow: hidden; display: grid; gap: 3rem; padding: clamp(2rem, 4vw, 3.5rem); }
.pannello .h2 { color: var(--ink); }
.tondo-pannello { width: min(86vw, 520px); margin-top: 3rem; margin-bottom: calc(-1 * clamp(2rem, 4vw, 3.5rem) - 22%); background: var(--surface); }
.pannello-dx { display: grid; gap: 2.5rem; align-content: start; }
.pannello-dx h3 { font-size: var(--s-lead); font-weight: 700; margin-bottom: .75rem; }
.pannello-dx p { line-height: 1.6; max-width: 46ch; }
.pannello-dx .btn { justify-self: start; }
@media (min-width: 960px) { .pannello { grid-template-columns: 1.3fr 1fr; min-height: 92svh; } .pannello-dx { padding-top: 1rem; } }

/* ---------- domande frequenti ---------- */
.faq-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 4fr 8fr; gap: 3rem; } .faq-tit { position: sticky; top: 104px; align-self: start; } }
.faq { display: grid; gap: 8px; }
.faq-item { background: var(--light-2); transition: background-color .25s var(--ease); }
.sez-grigia .faq-item { background: var(--light); }
.faq-item[open] { background: var(--acc); color: var(--acc-ink); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; padding: 1.125rem 1.5rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: var(--s-body); line-height: 1.35; font-weight: 500; }
.piu { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.piu::before, .piu::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .25s var(--ease); }
.piu::after { transform: rotate(90deg); }
.faq-item[open] .piu::after { transform: rotate(0deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; max-width: 60ch; line-height: 1.6; }

/* ---------- chiusura: una parola è il pulsante ---------- */
.cta { background: var(--acc); color: var(--acc-ink); }
.cta-link { display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(320px, 60svh, 640px); padding-block: 1.75rem; text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease); }
.cta-link:hover, .cta-link:focus-visible { background: var(--bg); color: var(--acc); }
.cta-top { display: flex; justify-content: space-between; gap: 2rem; }
.cta-frase { font-size: var(--s-lead); font-weight: 500; max-width: 34ch; line-height: 1.35; }
.cta-freccia { width: 48px; height: 48px; flex-shrink: 0; transition: transform .3s var(--ease); }
.cta-link:hover .cta-freccia { transform: translate(6px, -6px); }
.cta-parola { font-size: var(--s-mega); font-weight: 700; letter-spacing: -.06em; line-height: .78; }

/* ---------- footer: il mirino in grande ---------- */
.footer { background: var(--bg); color: var(--ink); padding-block: clamp(64px, 8vw, 120px) 2rem; }
.footer-mark { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.footer-mark .mirino { width: clamp(96px, 22vw, 300px); height: auto; flex-shrink: 0; }
.footer-name { font-size: var(--s-display); font-weight: 700; letter-spacing: -.05em; line-height: .85; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; margin-top: clamp(3.5rem, 6vw, 5rem); }
@media (min-width: 960px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-title { color: var(--muted); font-size: var(--s-small); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .625rem; font-size: var(--s-small); }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: var(--acc); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(3.5rem, 6vw, 5rem); font-size: var(--s-small); color: var(--muted); }
.footer-bottom p { margin-right: auto; }
.cookie-prefs { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; font-size: var(--s-small); }
.cookie-prefs:hover { color: var(--ink); }

/* ---------- guide, glossario, pagine legali ---------- */
.guida-wrap { display: grid; gap: 3rem; }
@media (min-width: 1080px) { .guida-wrap { grid-template-columns: 3fr 8fr; gap: 4rem; } .toc { position: sticky; top: 104px; align-self: start; } }
.toc { font-size: var(--s-small); }
.toc-tit { font-weight: 700; margin-bottom: .75rem; font-size: var(--s-body); }
.toc ol { list-style: none; display: grid; gap: .5rem; }
.toc a { text-decoration: none; color: var(--light-muted); }
.toc a:hover { color: var(--light-ink); text-decoration: underline; }
.toc p { line-height: 1.9; color: var(--light-muted); }
.guida { max-width: 70ch; font-size: var(--s-body); line-height: 1.7; }
.guida section { margin-top: 3.5rem; scroll-margin-top: 96px; }
.guida h2 { font-size: var(--s-statement); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin-bottom: 1.25rem; }
.guida p { margin-bottom: 1.125rem; }
.guida ul, .guida ol { margin: 0 0 1.25rem 1.25rem; }
.guida li { margin-bottom: .5rem; padding-left: .25rem; }
.in-breve { background: var(--tint); padding: clamp(1.5rem, 3vw, 2.25rem); }
.in-breve p:last-child { margin-bottom: 0; }
.guida .in-breve-t { font-size: var(--s-lead); margin-bottom: 1rem; }
.tab-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
.tab { width: 100%; border-collapse: collapse; font-size: var(--s-small); line-height: 1.5; }
.tab th, .tab td { text-align: left; padding: .75rem 1rem; vertical-align: top; border-bottom: 1px solid var(--light-3); }
.tab th { background: var(--light-2); font-weight: 700; }
.script { background: var(--light-2); padding: 1.5rem; margin-bottom: 1.25rem; }
.script p { margin-bottom: .75rem; }
.script .in-breve-t { font-weight: 700; }
.fonti ol { font-size: var(--s-small); }
.guida .correlati { margin-top: 3.5rem; background: var(--light-2); padding: 1.5rem 1.75rem; }
.guida .correlati h2 { font-size: var(--s-lead); margin-bottom: .75rem; }
.correlati ul { margin-bottom: 0; }
.glossario { display: grid; gap: 0; max-width: 72ch; }
.glossario .voce { padding: 1.25rem 0; scroll-margin-top: 96px; }
.glossario dt { font-weight: 700; font-size: var(--s-lead); margin-bottom: .375rem; letter-spacing: -.01em; }
.glossario dd { line-height: 1.6; }
.legal { max-width: 72ch; }
.legal section { margin-bottom: 2.5rem; }
.legal h2 { font-size: var(--s-statement); font-weight: 700; letter-spacing: -.015em; margin-bottom: 1rem; }
.legal h3 { font-size: var(--s-lead); font-weight: 500; margin: 1.25rem 0 .5rem; }
.legal p, .legal ul { margin-bottom: 1rem; line-height: 1.7; }
.legal ul { padding-left: 1.5rem; }
.upd { color: var(--light-muted); font-size: var(--s-small); }

/* ---------- calcolatore ---------- */
.calc { display: grid; gap: 1.5rem; }
.calc-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }
.h3-2xl { font-size: var(--s-lead); font-weight: 700; letter-spacing: -.01em; }
.calc-field { display: block; margin-bottom: 1.25rem; }
.calc-field > span:first-child { display: block; margin-bottom: .5rem; }
.calc-input { display: flex; align-items: center; background: var(--light-2); border-radius: 999px; padding-right: 1.25rem; }
.calc-input:focus-within { outline: 3px solid var(--acc); outline-offset: 2px; }
.calc-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--s-body); padding: .875rem 1.25rem; color: var(--light-ink); }
.calc-input input:focus { outline: none; }
.calc-input em { font-style: normal; color: var(--light-muted); font-size: var(--s-small); }
.calc-out { background: var(--bg); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); align-self: start; }
.calc-out .small, .calc-out .muted { color: var(--muted); }
.calc-num { font-size: var(--s-lead); margin-bottom: .5rem; }
.calc-num strong { font-size: var(--s-statement); color: var(--acc); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-num strong { font-size: var(--s-head); }
.small { font-size: var(--s-small); }
.muted { color: var(--light-muted); }

/* ---------- banner dei cookie ---------- */
.cookie-banner { background: var(--surface); color: var(--ink); }
.cookie-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.cookie-banner p { font-size: var(--s-small); line-height: 1.55; color: var(--muted); max-width: 70ch; }
.cookie-banner p strong { color: var(--ink); }
.cookie-banner a { color: var(--ink); text-decoration: underline; }
.cookie-banner .btn-row { display: flex; gap: .75rem; }
.cookie-banner .btn { min-width: 7.5rem; }
.cookie-banner .btn-outline { background: var(--surface-2); color: var(--ink); }
.cookie-banner .btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- movimento: entrate al primo passaggio ---------- */
.js .rivela { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rivela.visto { opacity: 1; transform: none; }
.hero-mirino .mirino, .phero-mirino .mirino { animation: entra 1.4s var(--ease) both, respira 9s ease-in-out 1.4s infinite; transform-origin: 50% 50%; }
@keyframes entra { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes respira { 50% { transform: scale(1.03); } }
.tondo img { transition: transform 1.2s var(--ease); }
.tondo:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .stato { position: static; }
  .js .stato:not(.attivo) { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rivela { opacity: 1; transform: none; }
  .nastro-riga { width: auto; }
  .nastro-traccia[aria-hidden] { display: none; }
  .nastro-traccia { flex-wrap: wrap; }
}
