/* ============================================================
   TraceGuard — Design System
   Direzione: cybersecurity moderna + privacy service + SaaS premium
   Mobile first, spazio, tipografia forte, dettagli animati leggeri
   ============================================================ */

/* Font self-hosted (performance + privacy: nessuna richiesta a CDN di terze parti) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2"); }

:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --bg-card: #141f36;
  --bg-card-2: #182541;
  --border: #24334f;
  --border-soft: #1d2a44;
  --text: #eaf0fa;
  --text-muted: #9fb0cc;
  --text-faint: #6f819f;
  --accent: #4f8cff;
  --accent-strong: #2f6fe4;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --ok: #3ecf8e;
  --ok-soft: rgba(62, 207, 142, 0.12);
  --warn: #f2b04e;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(3, 8, 20, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 5.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { color: var(--text-muted); font-size: 1.08rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--text-muted); }
.small { font-size: 0.88rem; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 111, 228, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(47, 111, 228, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-card); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 8px; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.main-nav {
  display: none;
  gap: 26px;
  margin-left: auto;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 600;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.header-cta { margin-left: auto; }
@media (min-width: 820px) {
  .main-nav { display: flex; }
  .header-cta { margin-left: 0; }
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 820px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav .btn { margin-top: 14px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(62, 207, 142, 0.08), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 .grad {
  background: linear-gradient(90deg, #8ab4ff, #4f8cff 55%, #3ecf8e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 12px; }
.microcopy { color: var(--text-faint); font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.microcopy svg { width: 15px; height: 15px; flex: none; }

/* Scanner simulato */
.scanner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scanner-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border-soft);
}
.scanner-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.scanner-bar .dot:nth-child(1) { background: #ff5f57; }
.scanner-bar .dot:nth-child(2) { background: #febc2e; }
.scanner-bar .dot:nth-child(3) { background: #28c840; }
.scanner-url {
  flex: 1;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 5px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scanner-body { padding: 18px 16px 20px; font-family: var(--mono); font-size: 0.8rem; }
.scanner-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}
.scanner-status .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(79, 140, 255, 0); }
}
.scan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(6px);
}
.scan-row.show { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.scan-row .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-badge {
  flex: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--warn);
  background: rgba(242, 176, 78, 0.12);
  border: 1px solid rgba(242, 176, 78, 0.3);
}
.scan-row.blurred .url { filter: blur(4px); user-select: none; }
.scan-progress {
  margin-top: 14px;
  height: 5px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.scan-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  transition: width 0.5s ease;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 18px 0;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(79, 140, 255, 0.45); }
.card h3 { margin-bottom: 0.4em; }
.card .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

/* ---------- Problema ---------- */
.problem-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.problem-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-muted);
}
.problem-list svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 3px; }
.problem-conclusion {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

/* ---------- Timeline ---------- */
.timeline {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li {
  counter-increment: step;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px 64px;
}
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.4);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}
.timeline h3 { margin-bottom: 0.3em; font-size: 1.02rem; }
.timeline p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.timeline .optional-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid rgba(62, 207, 142, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Servizi ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 6px 0 2px;
}
.price-card .price-note { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 14px; }
.price-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.price-card ul svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 4px; }
.price-card .btn { margin-top: auto; }
.price-card.featured {
  border-color: rgba(79, 140, 255, 0.55);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  position: relative;
}
.badge-featured {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Prima/Dopo ---------- */
.before-after { display: grid; gap: 20px; }
@media (min-width: 800px) { .before-after { grid-template-columns: 1fr 1fr; } }
.ba-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ba-panel h3 {
  margin: 0;
  padding: 14px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.ba-body { padding: 16px 18px 20px; display: grid; gap: 10px; font-family: var(--mono); font-size: 0.78rem; }
.ba-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
}
.ba-row .ba-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; filter: blur(3px); user-select: none; }
.ba-tag {
  flex: none;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}
.ba-tag.online { color: var(--warn); background: rgba(242, 176, 78, 0.12); border: 1px solid rgba(242, 176, 78, 0.3); }
.ba-tag.removed { color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(62, 207, 142, 0.35); }
.ba-tag.unavailable { color: var(--text-faint); background: var(--bg-card-2); border: 1px solid var(--border); }
.ba-disclaimer { margin-top: 16px; font-size: 0.82rem; color: var(--text-faint); font-style: italic; }

/* ---------- Garanzia ---------- */
.guarantee-box {
  display: grid;
  gap: 26px;
  align-items: center;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(62, 207, 142, 0.08));
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 48px);
}
@media (min-width: 900px) { .guarantee-box { grid-template-columns: auto 1fr; } }
.guarantee-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.4);
  color: var(--accent);
}
.guarantee-icon svg { width: 42px; height: 42px; }
.guarantee-box blockquote {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(11, 18, 32, 0.45);
  border-radius: 0 12px 12px 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- Privacy / Cosa non facciamo ---------- */
.check-list, .cross-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li, .cross-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
}
.check-list svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.cross-list svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 20px;
  cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--accent); transition: transform 0.2s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { padding: 0 20px; color: var(--text-muted); font-size: 0.95rem; }
.faq-a p { margin: 0 0 18px; }
.faq-a[hidden] { display: none; }

/* ---------- CTA finale ---------- */
.final-cta {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(79, 140, 255, 0.18), transparent 65%),
    var(--bg-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 0 34px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-links button.linklike {
  color: var(--text-muted);
  font-size: 0.9rem;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.footer-links a:hover, .footer-links button.linklike:hover { color: var(--text); }
.footer-legal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

/* ---------- Wizard / Form ---------- */
.form-section { background: var(--bg-soft); }
.wizard {
  max-width: 620px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 40px);
}
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wizard-progress .p-step {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--bg);
}
.wizard-progress .p-step.active { background: linear-gradient(90deg, var(--accent), var(--ok)); }
.wizard-step-label { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.wizard fieldset { border: 0; margin: 0; padding: 0; }
.wizard legend { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.wizard .hint { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.25);
}
.field .error-msg { display: none; color: #ff8d7a; font-size: 0.84rem; margin-top: 6px; }
.field.invalid input { border-color: #d95f4b; }
.field.invalid .error-msg { display: block; }

.choice-grid { display: grid; gap: 12px; }
@media (min-width: 520px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: rgba(79, 140, 255, 0.5); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check-row.invalid { color: #ff8d7a; }

.wizard-nav { display: flex; gap: 12px; margin-top: 26px; }
.wizard-nav .btn-back { flex: none; }
.wizard-nav .btn-next { flex: 1; }
.form-status { margin-top: 16px; font-size: 0.92rem; }
.form-status.error { color: #ff8d7a; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .ok-ring {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ok-soft);
  border: 1px solid rgba(62, 207, 142, 0.4);
  color: var(--ok);
}
.form-success .ok-ring svg { width: 36px; height: 36px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 150;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  display: none;
}
.cookie-banner.show { display: block; }
@media (min-width: 720px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }
.cookie-banner h3 { font-size: 1rem; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-prefs { display: grid; gap: 10px; margin: 12px 0 16px; }
.cookie-prefs .check-row { font-size: 0.86rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.84rem;
  color: var(--text-faint);
  padding: 20px 0 0;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Pagine editoriali / guide ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose .answer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  color: var(--text);
  font-size: 1.05rem;
  margin: 18px 0 22px;
}
.meta-line { font-size: 0.82rem; color: var(--text-faint); margin: 6px 0 26px; }
.sources { font-size: 0.9rem; }
.sources li { margin-bottom: 6px; }

/* ---------- Pagine legali ---------- */
.legal-page { max-width: 760px; margin-inline: auto; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--text-muted); }
.placeholder-note {
  background: rgba(242, 176, 78, 0.1);
  border: 1px solid rgba(242, 176, 78, 0.35);
  color: var(--warn);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 18px 0;
}

/* ---------- Focus & accessibilità ---------- */
:focus-visible {
  outline: 3px solid rgba(79, 140, 255, 0.65);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
