/* AcquaPura · landing Lodi
   Token e componenti da DESIGN.md (MediCare+) */

:root {
  /* Colori */
  --primary: #0077B6;
  --primary-hover: #006399;
  --primary-active: #005280;
  --secondary: #48CAE4;
  --tertiary: #90E0EF;
  --bg: #FAFCFF;
  --surface: #FFFFFF;
  --tint: #F0F7FF;
  --tint-2: #E0EFFF;
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --ink: #0F172A;
  --ink-2: #475569;
  --muted: #94A3B8;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --deep: #023E62;

  /* Tipografia */
  --f-head: "Figtree", system-ui, sans-serif;
  --f-body: "Open Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Raggi */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Elevazione */
  --sh-subtle: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-medium: 0 4px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --sh-large: 0 12px 32px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
  --focus-err: 0 0 0 2px var(--bg), 0 0 0 4px var(--error);

  /* Spaziatura sezioni */
  --sec: 40px;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --sec: 56px; --gutter: 24px; } }
@media (min-width: 1024px) { :root { --sec: 80px; --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow-wrap { max-width: 820px; }
.narrow { max-width: 68ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-md); }
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display { font: 800 clamp(30px, 5vw, 48px)/1.15 var(--f-head); letter-spacing: -.01em; }
.headline { font: 700 clamp(24px, 3.2vw, 34px)/1.25 var(--f-head); letter-spacing: -.005em; max-width: 26ch; margin-bottom: 16px; }
.subhead { font: 600 20px/1.4 var(--f-head); }
.lead, .body-lg { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.overline { font: 700 12px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.overline--light { color: var(--tertiary); }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; }
.accent { color: var(--primary); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px;
  font: 600 15px/1.3 var(--f-body); text-align: center; text-decoration: none;
  border: 0; border-radius: var(--r-md); cursor: pointer;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.btn--sm { min-height: 36px; padding: 8px 16px; font-size: 13px; }
.btn--lg { min-height: 52px; padding: 14px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--primary:active { background: var(--primary-active); }
.btn--secondary { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--secondary:hover { background: var(--tint); }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--tint); color: var(--primary); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--tint); color: var(--deep); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* ---------- Card, chip ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-subtle); padding: 24px;
}
.card--elevated { box-shadow: var(--sh-medium); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid;
  font: 700 11.5px/1.3 var(--f-body); letter-spacing: .03em; text-transform: uppercase;
}
.chip .ico { width: 13px; height: 13px; }
.chip--ok { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.chip--warn { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.chip--info { background: var(--tint); color: var(--primary); border-color: var(--tertiary); }

/* ---------- Barra superiore ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,252,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); text-decoration: none; font: 600 21px/1 var(--f-head); }
.logo span { color: var(--ink); }
.logo b { color: var(--primary); font-weight: 800; }
.code-chip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 9999px; background: var(--tint); border: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-2);
}
.code-chip .mono { color: var(--ink); font-weight: 500; }
.topbar__cta { margin-left: auto; }
.code-chip:not([hidden]) + .topbar__cta { margin-left: 0; }
@media (max-width: 639px) {
  .code-chip__label { display: none; }
  .topbar__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%); }
.hero__grid { display: grid; gap: 32px; align-items: center; padding-bottom: 72px; }
.hero__text .display { margin-bottom: 20px; }
.hero__text .lead { max-width: 56ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__proof { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-2); }
.hero__proof li { display: flex; align-items: center; gap: 6px; }
.hero__proof .ico { color: var(--success); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--r-xl); box-shadow: var(--sh-large); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.stat-float {
  position: absolute; left: 16px; bottom: -28px; max-width: 280px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-large); padding: 14px 18px;
}
.stat-float__num { font: 800 30px/1 var(--f-head); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--primary); line-height: 1; }
.stat-float__txt { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.hero__wave {
  height: 120px; margin-top: -40px;
  background: url("../img/onda-1600.webp") center 42% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}
@media (min-width: 960px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-bottom: 96px; }
  .hero__media img { aspect-ratio: 5 / 4; }
  .stat-float { left: -32px; bottom: 32px; }
  .hero__wave { height: 160px; }
}

/* ---------- Sezioni ---------- */
.section { padding: var(--sec) 0; }
.section--tint { background: var(--tint); }
.section .body-lg { margin-bottom: 32px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card__ico { width: 36px; height: 36px; color: var(--primary); margin-bottom: 12px; }
.card .subhead { margin-bottom: 6px; font-size: 18px; }
.card p { color: var(--ink-2); font-size: 15px; }
.callout {
  margin-top: 32px; padding: 20px 24px; max-width: 80ch;
  border-left: 4px solid var(--primary); background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--sh-subtle);
  font-size: 17px;
}
.section--tint .callout { background: var(--surface); }

/* ---------- Domanda ---------- */
.question { display: grid; background: var(--deep); color: #fff; }
.question__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.question__text { padding: 48px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.question blockquote p { font: 700 clamp(24px, 3.4vw, 36px)/1.3 var(--f-head); margin-bottom: 20px; }
.question__text > p:last-child { color: #D6E9F5; font-size: 18px; max-width: 48ch; }
@media (min-width: 960px) {
  .question { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .question__text { padding: 64px 64px 64px 56px; }
}

/* ---------- Dati ---------- */
.data-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .data-grid { grid-template-columns: 1fr 1.25fr; } }
.hardness__value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.hardness__value .mono { font: 800 64px/1 var(--f-head); font-variant-numeric: tabular-nums; color: var(--primary); letter-spacing: -.02em; }
.hardness__unit { font: 600 18px/1.3 var(--f-head); color: var(--ink-2); }
.hardness > p:not(.overline):not(.hardness__value) { color: var(--ink-2); }
.scale { position: relative; margin-top: 64px; padding-bottom: 28px; }
.scale__bar { display: flex; height: 40px; border-radius: var(--r-md); overflow: hidden; }
.scale__bar span {
  flex: 0 0 var(--w); display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 600; line-height: 1.2; text-align: center; padding: 0 2px;
  color: var(--deep); border-right: 2px solid #fff;
}
.scale__bar span:nth-child(1) { background: #E6F6FB; }
.scale__bar span:nth-child(2) { background: #CDEFF8; }
.scale__bar span:nth-child(3) { background: #A6E1F1; }
.scale__bar span:nth-child(4) { background: #48CAE4; }
.scale__bar span:nth-child(5) { background: #1E9CCB; color: #fff; border-right: 0; }
.scale__bar .is-on { box-shadow: inset 0 0 0 2px var(--deep); }
.scale__marker { position: absolute; left: var(--pos); top: -30px; transform: translateX(-50%); height: 78px; width: 2px; background: var(--ink); }
.scale__marker span {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px;
  white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: var(--r-sm);
}
.scale__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; font-size: 11px; color: var(--ink-2); }
.scale__ticks span { position: absolute; transform: translateX(-50%); }
.scale__ticks span:nth-child(1) { left: 0; transform: none; }
.scale__ticks span:nth-child(2) { left: 13%; }
.scale__ticks span:nth-child(3) { left: 25.9%; }
.scale__ticks span:nth-child(4) { left: 40.7%; }
.scale__ticks span:nth-child(5) { left: 59.3%; }
.scale__ticks span:nth-child(6) { right: 0; left: auto; transform: none; }
@media (max-width: 479px) { .scale__bar span { font-size: 0; } .scale__bar .is-on { font-size: 10px; } }

.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; padding: 16px 20px 8px; font: 600 16px/1.4 var(--f-head); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font: 700 11px/1.4 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: #F8FAFC; white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:hover { background: var(--tint); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.data td.mono { white-space: nowrap; }
.source { font-size: 13px; color: var(--ink-2); padding: 12px 20px 16px; }
.section > .wrap > .source { padding: 12px 0 0; }

/* ---------- Ultimo tratto ---------- */
.path { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 48px; counter-reset: none; }
.path__step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--sh-subtle);
}
.path__step--ok { border-top: 4px solid var(--success); }
.path__step--warn { border-top: 4px solid var(--warning); background: #FFFDF7; }
.path__num { position: absolute; top: 16px; right: 16px; font-size: 13px; color: var(--muted); }
.path__step .subhead { font-size: 17px; margin-bottom: 2px; padding-right: 20px; }
.path__step p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
@media (min-width: 768px) {
  .path { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .path__step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -22px; width: 16px; height: 16px;
    border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg);
  }
}
.split { display: grid; gap: 32px; align-items: center; }
.split .subhead { margin-bottom: 12px; font-size: 22px; }
.split p { margin-bottom: 12px; color: var(--ink-2); font-size: 17px; }
.split p strong { color: var(--ink); }
.split__img { border-radius: var(--r-xl); box-shadow: var(--sh-medium); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Calcolatore ---------- */
.calc { display: grid; gap: 32px; padding: 32px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1.4fr; gap: 48px; } }
.calc__inputs { display: grid; gap: 20px; align-content: start; }
.calc__out { display: grid; gap: 16px; align-content: start; }
@media (min-width: 640px) { .calc__out { grid-template-columns: repeat(3, 1fr); } .calc__week { grid-column: 1 / -1; } }
.kpi { background: var(--tint); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi__num { font: 800 clamp(28px, 3.2vw, 36px)/1.1 var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--primary); line-height: 1.1; }
.kpi__lbl { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.calc__week { font: 600 16px/1.5 var(--f-head); padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-md); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
label, legend { font: 600 14px/1.4 var(--f-body); color: var(--ink); margin-bottom: 6px; padding: 0; }
.req { color: var(--error); }
.input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  font: 400 16px/1.4 var(--f-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: var(--focus-err); }
.helper { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.helper--err { color: var(--error); display: flex; gap: 6px; align-items: flex-start; }
.helper--err .ico { width: 16px; height: 16px; margin-top: 1px; }
.helper[hidden] { display: none; }

.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio, .check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font: 400 16px/1.5 var(--f-body); margin: 0; }
.radio { padding: 0 14px 0 10px; border: 1px solid var(--line-2); border-radius: 9999px; background: var(--surface); }
.radio:hover { background: var(--tint); }
.radio:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.check { align-items: flex-start; font-size: 15px; }
input[type="radio"], input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 20px; height: 20px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer;
  display: grid; place-content: center;
}
.check input { margin-top: 2px; }
input[type="radio"] { border-radius: 50%; }
input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .12s; }
input[type="radio"]:checked { border-color: var(--primary); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"] { border-radius: var(--r-sm); }
input[type="checkbox"]::before { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) translate(1px, -1px) scale(0); }
input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"]:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
input[type="radio"]:hover, input[type="checkbox"]:hover { border-color: var(--primary); }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { box-shadow: var(--focus); }
input[type="checkbox"][aria-invalid="true"] { border-color: var(--error); }
input[type=number] { -moz-appearance: textfield; }

.form-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .form-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.form-intro .body-lg { margin-bottom: 24px; }
.form-intro__img { border-radius: var(--r-xl); box-shadow: var(--sh-medium); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (max-width: 959px) { .form-intro__img { display: none; } }
.lead-form { padding: 32px; }
.form-note { margin-top: 12px; }
.alert { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid; font-size: 15px; }
.alert .ico { width: 20px; height: 20px; margin-top: 2px; }
.alert[hidden] { display: none; }
.alert--ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert--err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* ---------- Confronto ---------- */
.table-scroll.card { padding: 0; }
.compare { min-width: 680px; font-size: 15px; }
.compare tbody th { width: 26%; }
.compare th.compare__hl { color: var(--primary); }
.compare__hl { background: var(--tint); }
tbody tr:hover .compare__hl { background: var(--tint-2); }
.mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; margin-right: 6px; vertical-align: -5px; }
.mark--yes { background: #ECFDF5; color: var(--success); }
.mark--no { background: #FEF2F2; color: var(--error); }
.mark--mid { background: #F1F5F9; color: var(--ink-2); }

/* ---------- Risposta ---------- */
.answer { position: relative; overflow: hidden; color: #fff; padding: calc(var(--sec) + 24px) 0; background: var(--deep); text-align: center; }
.answer__bg { position: absolute; inset: 0; background: url("../img/splash-1600.webp") center / cover no-repeat; opacity: .28; }
.answer .wrap { position: relative; }
.big-q p { font: 700 clamp(24px, 3.6vw, 40px)/1.3 var(--f-head); max-width: 30ch; margin: 0 auto 28px; }
.answer__yes { font: 600 clamp(19px, 2.2vw, 24px)/1.4 var(--f-head); color: var(--tertiary); }
.answer__yes strong { color: #fff; }

/* ---------- Soluzione ---------- */
.solution { display: grid; gap: 40px; align-items: center; margin-bottom: 56px; }
@media (min-width: 960px) { .solution { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.solution__media img { border-radius: var(--r-xl); box-shadow: var(--sh-large); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.benefits { list-style: none; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits .ico { color: #fff; background: var(--success); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.steps__title { margin-bottom: 16px; font-size: 22px; }
.steps { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps__num { display: block; font-size: 14px; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.steps .subhead { font-size: 18px; margin-bottom: 6px; }

/* ---------- Testimonianze ---------- */
.section--line { border-top: 1px solid var(--line); }
/* Carosello: scorrimento orizzontale con scroll-snap, frecce gestite in main.js */
.reviews {
  list-style: none; padding: 4px 4px 12px; margin: 8px -4px 0; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review { display: flex; flex-direction: column; gap: 14px; flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 640px) { .review { flex-basis: calc((100% - 16px) / 2); } }
@media (min-width: 1024px) { .review { flex-basis: calc((100% - 32px) / 3); } }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary);
  font: 600 20px/1 var(--f-body);
}
.carousel__btn:hover { background: var(--tint); }
.carousel__btn:disabled { color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); cursor: default; }
.carousel__play { font-size: 13px; letter-spacing: -2px; margin-left: 8px; }
.carousel__play[aria-pressed="true"] { letter-spacing: 0; font-size: 15px; }
.carousel__pos { min-width: 64px; text-align: center; font-size: 14px; color: var(--ink-2); }
.review .review__stars { color: var(--warning); font-size: 18px; letter-spacing: 2px; line-height: 1; }
.review .review__off { color: var(--line-2); }
.review__text { flex: 1; color: var(--ink-2); }
.review__who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.review__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.review__who strong { color: var(--ink); font-size: 15px; }
.reviews__note { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-subtle); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 16px 52px 16px 20px; position: relative;
  font: 600 17px/1.4 var(--f-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: var(--tint); border-radius: var(--r-md); }
.faq details > p { padding: 0 20px 20px; color: var(--ink-2); }
.code-form { padding: 0 20px 20px; }
.code-form__row { display: flex; gap: 8px; }
.code-form .input { text-transform: uppercase; }

/* ---------- Chiusura e footer ---------- */
.closing { background: linear-gradient(135deg, var(--primary) 0%, var(--deep) 100%); color: #fff; padding: var(--sec) 0; }
.closing__in { display: grid; gap: 24px; align-items: center; }
.closing__ps { font-size: 19px; line-height: 1.6; max-width: 64ch; }
@media (min-width: 900px) { .closing__in { grid-template-columns: 1fr auto; gap: 48px; } }
.footer { background: var(--ink); color: #CBD5E1; padding: 40px 0 120px; font-size: 14px; }
@media (min-width: 768px) { .footer { padding-bottom: 40px; } }
.footer__in { display: grid; gap: 20px; }
.logo--footer { color: var(--secondary); margin-bottom: 8px; }
.logo--footer span { color: #fff; }
.logo--footer b { color: var(--secondary); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: #E2E8F0; }
.footer__note { font-size: 12px; color: var(--muted); max-width: 90ch; }

/* ---------- CTA fissa mobile ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0,0,0,.06);
  transform: translateY(110%); transition: transform .25s;
}
.mobile-cta.is-on { transform: none; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* ---------- Tabelle impilate su mobile ---------- */
@media (max-width: 639px) {
  .data, .compare { min-width: 0; }
  .data thead, .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data tr, .compare tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .data tbody tr:last-child, .compare tbody tr:last-child { border-bottom: 0; }
  .data th, .data td, .compare th, .compare td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; width: auto; }
  .data tbody th, .compare tbody th { font: 600 16px/1.4 var(--f-head); padding-bottom: 6px; width: auto; }
  .data td::before, .compare td::before { content: attr(data-label); font-size: 13px; color: var(--ink-2); font-family: var(--f-body); flex: none; }
  .compare td { justify-content: flex-start; flex-wrap: wrap; }
  .compare td::before { width: 100%; font: 700 11px/1.4 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
  .compare td.compare__hl { background: var(--tint); margin: 4px -8px 0; padding: 6px 8px; border-radius: var(--r-sm); }
  .compare td.compare__hl::before { color: var(--primary); }
  caption { padding: 16px 16px 4px; }
}

/* Campo trappola per i bot: fuori schermo, non display:none */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
