/* Easy4Privacy — www.easy4privacy.com
   Layout concept: "la barriera" — una linea di luce verde→ciano separa ciò che resta nel tuo PC da ciò che entra nell'AI.
   Token presi 1:1 dal tema dell'app (easyclean_theme.json / ui/widgets.py). Tema scuro di default, chiaro via sistema o selettore. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* colore — tema scuro dell'app */
  --bg: #05070A;
  --bg-glow: #06151A;
  --panel: #0D141D;
  --panel-2: #111925;
  --border: #1E2A38;
  --fg: #E8F0EE;
  --muted: #8AA0A0;
  --accent: #34D399;
  --accent-2: #22D3EE;
  --btn: #047857;
  --btn-hover: #065F46;
  --btn-fg: #FFFFFF;
  --g1: #02FDA1;
  --g2: #0BEFC8;
  --g3: #12E0EC;
  --four: #FFFFFF;
  --warn: #F5C542;
  --danger: #FF6B81;
  --danger-bg: rgba(255, 107, 129, .12);
  --redact-bg: rgba(52, 211, 153, .12);
  --redact-border: rgba(52, 211, 153, .45);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;

  /* tipografia — Inter come l'app, mono per i segnaposto */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: .78rem; --fs-sm: .9rem; --fs-md: 1.0625rem; --fs-lg: 1.3rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  --fs-2xl: clamp(2.2rem, 1.4rem + 3.6vw, 4.1rem);

  --radius: 12px; --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --header-h: 68px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F7F6; --bg-glow: #E3F3EE; --panel: #FFFFFF; --panel-2: #EEF2F1; --border: #D9E0DE;
    --fg: #0A0F16; --muted: #5B6B6B; --accent: #047857; --accent-2: #0E7490;
    --btn: #047857; --btn-hover: #065F46; --btn-fg: #FFFFFF;
    --g1: #01A267; --g2: #07997F; --g3: #0E7490; --four: #0A0F16;
    --warn: #A16207; --danger: #C0263E; --danger-bg: rgba(192, 38, 62, .09);
    --redact-bg: rgba(4, 120, 87, .09); --redact-border: rgba(4, 120, 87, .4);
    --shadow: 0 24px 50px -28px rgba(10, 15, 22, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F7F6; --bg-glow: #E3F3EE; --panel: #FFFFFF; --panel-2: #EEF2F1; --border: #D9E0DE;
  --fg: #0A0F16; --muted: #5B6B6B; --accent: #047857; --accent-2: #0E7490;
  --btn: #047857; --btn-hover: #065F46; --btn-fg: #FFFFFF;
  --g1: #01A267; --g2: #07997F; --g3: #0E7490; --four: #0A0F16;
  --warn: #A16207; --danger: #C0263E; --danger-bg: rgba(192, 38, 62, .09);
  --redact-bg: rgba(4, 120, 87, .09); --redact-border: rgba(4, 120, 87, .4);
  --shadow: 0 24px 50px -28px rgba(10, 15, 22, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; font-weight: 800; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--panel); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* etichetta alla maniera dello splash: maiuscolo spaziato */
.eyebrow {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--g1), var(--g3)); border-radius: 2px; }

/* wordmark: Easy + 4 + Privacy, come l'app (variante B) */
.wordmark { font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.wordmark .g { background: linear-gradient(100deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .n { color: var(--four); }

/* ── header ─────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.28rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--fg); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.nav a:hover { background: var(--panel-2); color: var(--fg); }
.nav a[aria-current="page"] { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: var(--fs-xs); font-weight: 700; }
.lang a, .lang span { padding: 5px 10px; text-decoration: none; color: var(--muted); }
.lang [aria-current="true"] { background: var(--panel-2); color: var(--fg); }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--fg); cursor: pointer;
}
.icon-btn:hover { background: var(--panel-2); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.nav .nav-cta { display: none; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px; font-size: 1rem; }
  .tools { margin-left: auto; }
  .tools .btn { display: none; }
  .nav .nav-cta { display: block; margin-top: 8px; text-align: center; font-weight: 600; background: var(--btn); color: var(--btn-fg); }
  .nav .nav-cta:hover { background: var(--btn-hover); color: var(--btn-fg); }
}

/* ── pulsanti ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--fs-sm)/1 var(--font); padding: 13px 20px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--btn); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--fg); }
.btn-lg { padding: 16px 24px; font-size: 1rem; }
.btn-sm { padding: 9px 14px; font-size: var(--fs-xs); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── hero ───────────────────────────────────── */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--g2) 16%, transparent), transparent 70%);
}
.hero::after { /* la barra dello splash */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--g1), var(--g3));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 .hl { background: linear-gradient(100deg, var(--g1), var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 20px; }
.hero .row { margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); }
.checks li { display: inline-flex; gap: 8px; align-items: center; }
.checks li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* video / segnaposto demo */
.demo-frame {
  position: relative; border-radius: 16px; border: 1px solid var(--border); background: var(--panel);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%;
}
.demo-frame video { width: 100%; height: 100%; object-fit: cover; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2); font-size: var(--fs-xs); color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.demo-bar span { margin-left: 8px; font-family: var(--mono); }
.demo-body { padding: 18px 20px; font-family: var(--mono); font-size: clamp(.7rem, .62rem + .3vw, .84rem); line-height: 1.75; }
.demo-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-note { position: absolute; right: 12px; bottom: 12px; font-size: var(--fs-xs); color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.demo-scan { position: absolute; left: 0; right: 0; height: 2px; top: 44px; background: linear-gradient(90deg, transparent, var(--g1), var(--g3), transparent); box-shadow: 0 0 18px var(--g2); animation: scan 4.8s ease-in-out infinite; }
@keyframes scan { 0% { top: 44px; opacity: 0 } 8% { opacity: 1 } 60% { top: 92%; opacity: 1 } 70%, 100% { top: 92%; opacity: 0 } }

/* dato sensibile e segnaposto */
.pii { color: var(--danger); background: var(--danger-bg); border-radius: 4px; padding: 0 3px; transition: all .35s ease; }
.red { font-family: var(--mono); font-size: .92em; color: var(--accent); background: var(--redact-bg); border: 1px solid var(--redact-border); border-radius: 4px; padding: 0 4px; }
.swap { position: relative; display: inline-grid; }
.swap > * { grid-area: 1 / 1; transition: opacity .35s ease, filter .35s ease, transform .35s ease; }
.swap .red { opacity: 0; transform: translateY(4px); }
.is-clean .swap .pii, .swap.is-clean .pii { opacity: 0; filter: blur(4px); }
.is-clean .swap .red, .swap.is-clean .red { opacity: 1; transform: none; }

/* ── numeri ─────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ── IL FILTRO (scroll) ─────────────────────── */
.filter { position: relative; height: 260vh; }
.filter-stage {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  height: calc(100vh - var(--header-h)); min-height: 560px; display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.filter-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.filter-head .lede { max-width: 48ch; }
.lane { position: relative; height: min(58vh, 460px); border: 1px solid var(--border); border-radius: 18px; background:
  radial-gradient(60% 80% at 50% 50%, color-mix(in srgb, var(--g2) 7%, transparent), transparent), var(--panel); overflow: hidden; }
.lane-label { position: absolute; top: 14px; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lane-label.l { left: 18px; } .lane-label.r { right: 18px; }
.barrier { position: absolute; top: 0; bottom: 0; left: 52%; width: 3px; background: linear-gradient(180deg, var(--g1), var(--g3)); box-shadow: 0 0 24px 4px color-mix(in srgb, var(--g2) 55%, transparent); }
.barrier::after { content: ""; position: absolute; inset: 0 -40px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--g2) 12%, transparent), transparent); }
.barrier-tag { position: absolute; left: 52%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--redact-border); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; z-index: 2; }
.barrier-tag img { width: 18px; height: 18px; border-radius: 5px; }
.doc {
  position: absolute; top: 50%; left: 0; width: min(340px, 42%); transform: translate(var(--doc-x, 18px), -50%);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow);
  font-size: .8rem; line-height: 1.7; z-index: 3; transform-origin: center;
}
.doc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.doc-title .ext { font-family: var(--mono); font-size: .68rem; padding: 2px 6px; border-radius: 4px; background: var(--btn); color: var(--btn-fg); }
.doc p { color: var(--fg); }
.ai {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: min(300px, 38%);
  display: flex; flex-direction: column; gap: 10px; z-index: 1; opacity: .5; transition: opacity .5s;
}
.filter.done .ai { opacity: 1; }
.ai-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-sm); }
.ai-dot { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from 0deg, var(--g1), var(--accent-2), var(--g1)); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.bubble { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: .8rem; color: var(--muted); }
.bubble.ok { border-color: var(--redact-border); color: var(--fg); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.filter.done .bubble.ok { opacity: 1; transform: none; }
.filter-counter { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); }
.filter-counter b { color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .filter { height: 240vh; }
  .filter-stage { gap: 14px; min-height: 0; }
  .filter-head .lede { display: none; }
  .lane { height: 62vh; min-height: 430px; }
  .doc .muted { display: none; }
  .barrier { left: 0; right: 0; width: auto; height: 3px; top: 56%; bottom: auto; background: linear-gradient(90deg, var(--g1), var(--g3)); }
  .barrier::after { inset: -30px 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--g2) 12%, transparent), transparent); }
  .barrier-tag { left: 50%; bottom: auto; top: calc(56% + 12px); }
  .doc { left: 50%; top: 0; width: min(300px, 86%); transform: translate(-50%, var(--doc-y, 40px)); font-size: .74rem; }
  .ai { left: 50%; right: auto; top: auto; bottom: 14px; transform: translateX(-50%); width: 86%; }
  .ai .bubble:not(.ok) { display: none; }
  .lane-label.l { top: 10px; } .lane-label.r { display: none; }
}

/* ── carte / griglie ────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .k { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 720px; }

/* tag dei dati riconosciuti */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: .8rem; padding: 6px 10px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--fg); }
.tag.lvl-c { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.tag.lvl-a { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }

/* passi del processo (sequenza reale) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); counter-reset: s; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 8px; counter-increment: s; min-width: 0; }
.step + .step { border-left: 1px solid var(--border); }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-sm); color: var(--accent); }
.step p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; border-top: 1px solid var(--border); } }

/* ── RAGGI X ────────────────────────────────── */
.xray { position: relative; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; cursor: none; user-select: none; touch-action: pan-y; background: var(--panel); }
.xray-layer { padding: clamp(18px, 3vw, 32px); font-size: var(--fs-sm); line-height: 1.8; min-height: 100%; }
.xray-top { position: absolute; inset: 0; background: var(--bg-glow);
  -webkit-mask-image: radial-gradient(circle var(--r, 110px) at var(--x, 70%) var(--y, 40%), #000 98%, transparent 100%);
          mask-image: radial-gradient(circle var(--r, 110px) at var(--x, 70%) var(--y, 40%), #000 98%, transparent 100%); }
.xray-top .xray-layer { color: var(--fg); }
.xray-ring { position: absolute; width: calc(var(--r, 110px) * 2); height: calc(var(--r, 110px) * 2); left: var(--x, 70%); top: var(--y, 40%); transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--g2); box-shadow: 0 0 30px color-mix(in srgb, var(--g2) 50%, transparent), inset 0 0 30px color-mix(in srgb, var(--g2) 25%, transparent); pointer-events: none; }
.xray .ghost { color: transparent; }
.xray-top .ghost { color: var(--danger); background: var(--danger-bg); border-radius: 3px; }
.xray-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: .74rem; color: var(--muted); border-top: 1px dashed var(--border); margin-top: 14px; padding-top: 10px; }
.xray-hint { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }

/* ── compliance ─────────────────────────────── */
.law { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.law:last-child { border-bottom: 1px solid var(--border); }
.law .ref { font-family: var(--mono); font-size: var(--fs-sm); color: var(--accent); }
.law p { color: var(--muted); }
@media (max-width: 640px) { .law { grid-template-columns: 1fr; gap: 6px; } }
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--border); margin-left: 6px; }
.tl { position: relative; padding: 0 0 22px 22px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.tl.now::before { background: var(--accent); }
.tl time { font-family: var(--mono); font-size: var(--fs-sm); color: var(--accent); }
.tl p { color: var(--muted); font-size: var(--fs-sm); }
.note { border: 1px solid var(--border); background: var(--panel-2); border-radius: var(--radius); padding: 16px 18px; font-size: var(--fs-sm); color: var(--muted); }
.note strong { color: var(--fg); }

/* tabella confronto */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td.us, th.us { background: var(--redact-bg); color: var(--fg); font-weight: 600; }
.yes { color: var(--accent); font-weight: 700; }
.no { color: var(--muted); }

/* ── FAQ ────────────────────────────────────── */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 70ch; display: flex; flex-direction: column; gap: 10px; }

/* ── changelog ──────────────────────────────── */
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--border); }
.release .ver { font-family: var(--mono); font-size: 1.1rem; color: var(--accent); font-weight: 500; }
.release .ver small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.release ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.release ul b { color: var(--fg); font-weight: 600; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 8px; } }

/* ── form ───────────────────────────────────── */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: var(--shadow); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--panel-2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: var(--fs-xs); min-height: 1em; display: block; }
.field .hint { color: var(--muted); font-size: var(--fs-xs); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--btn); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--fs-sm); padding: 12px 14px; border-radius: var(--radius-sm); }
.form-status.ok { background: var(--redact-bg); border: 1px solid var(--redact-border); color: var(--fg); }
.form-status.ko { background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); color: var(--fg); }
.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.side-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--muted); font-size: var(--fs-sm); }
.side-list li b { color: var(--fg); display: block; font-size: var(--fs-md); }
.side-list .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--redact-bg); color: var(--accent); font-family: var(--mono); font-size: .8rem; }

/* ── CTA finale ─────────────────────────────── */
.cta-band { position: relative; border-radius: 20px; padding: clamp(28px, 5vw, 56px); background: var(--panel); border: 1px solid var(--border); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--g1), var(--g3)); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ── pagina interna ─────────────────────────── */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(8px, 2vw, 16px); }
.page-head .wrap::after { content: ""; display: block; width: 120px; height: 3px; margin-top: 32px; border-radius: 2px; background: linear-gradient(90deg, var(--g1), var(--g3)); }
.page-head .lede { margin-top: 18px; }
.draft { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; border-radius: 6px; padding: 4px 8px; }

/* ── footer ─────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 32px; font-size: var(--fs-sm); color: var(--muted); background: var(--panel); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid > * { min-width: 0; }
.foot-grid h4 { margin: 0 0 10px; color: var(--fg); font-size: var(--fs-sm); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── banner cookie ──────────────────────────── */
.cookie {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-left: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: var(--fs-sm);
}
.cookie h2 { font-size: 1rem; letter-spacing: 0; }
.cookie p { color: var(--muted); }
.cookie .row .btn { flex: 1 1 140px; }
.cookie-prefs { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; }
.pref { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pref small { display: block; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--border); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--btn); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .6; cursor: not-allowed; }

/* comparsa */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal.pre { opacity: .001; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .filter { height: auto; }
  .filter-stage { position: relative; height: auto; top: 0; padding-block: 24px; }
  .js .reveal.pre { opacity: 1; transform: none; }
}

/* ── report per file (riproduzione del report dell'app) ── */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }
.report-mock { background: #FFFFFF; color: #0A0F16; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: clamp(16px, 3vw, 26px); font-size: .8rem; min-width: 0; }
.report-mock .rm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid #047857; }
.report-mock .rm-head b { font-size: .95rem; }
.report-mock .rm-pill { background: #0a8f5a; color: #fff; font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.report-mock dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 12px 0; }
.report-mock dt { color: #5B6B6B; }
.report-mock dd { margin: 0; overflow-wrap: anywhere; }
.report-mock .mono { font-size: .74rem; }
.report-mock h4 { margin: 14px 0 6px; font-size: .82rem; color: #047857; }
.report-mock .rm-table { overflow-x: auto; }
.report-mock table { min-width: 460px; font-size: .74rem; }
.report-mock th, .report-mock td { padding: 6px 8px; border-bottom: 1px solid #D9E0DE; color: #0A0F16; }
.report-mock thead th { color: #5B6B6B; letter-spacing: .06em; }
.report-mock .rm-foot { margin-top: 12px; color: #5B6B6B; font-size: .68rem; border-top: 1px solid #D9E0DE; padding-top: 8px; }
.example-tag { display: inline-block; font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--muted); font-size: var(--fs-sm); }
.checklist li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 3px; background: var(--accent); }
.checklist b { color: var(--fg); font-weight: 600; }
.card ul.checklist { margin-top: 4px; }
.cli td:first-child { font-family: var(--mono); white-space: nowrap; color: var(--accent); }
.pill-inline { display: inline-block; font-family: var(--mono); font-size: .78em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); background: var(--panel-2); }
.report-grid > * { min-width: 0; }
.report-mock table.rm-small { min-width: 0; }
