/*
 * Pagina pubblica di billinghub.it (landing e informativa privacy), PaginePubbliche del portale.
 * CSS scritto a mano, non Tailwind: la pagina ha uno stile suo (scelto da Nicholas il 03/11/2026, tema scuro con
 * il chiaro a scelta). Niente stili in linea nelle viste: la Content-Security-Policy ammette solo questo file.
 * Caratteri serviti da billinghub.it (fontsource, licenza OFL in fonts/), sottoinsieme latino.
 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
:root, [data-tema="scuro"] {
  --bg: #060a13;
  --bg-2: #0a1020;
  --card: #0d1426;
  --card-2: #111a30;
  --line: rgba(148, 163, 184, 0.13);
  --line-2: rgba(148, 163, 184, 0.22);
  --text: #e6ebf5;
  --muted: #94a3b8;
  --dim: #64748b;
  --brand: #818cf8;
  --brand-strong: #6366f1;
  --accent: #2dd4bf;
  --warn: #fbbf24;
  --err: #fb7185;
  --ok: #34d399;
  --grid: rgba(148, 163, 184, 0.06);
  --glow: rgba(99, 102, 241, 0.28);
  --chip-bg: rgba(129, 140, 248, 0.12);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
[data-tema="chiaro"] {
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --card: #ffffff;
  --card-2: #f8fafc;
  --line: rgba(15, 23, 42, 0.09);
  --line-2: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --muted: #475569;
  --dim: #94a3b8;
  --brand: #4f46e5;
  --brand-strong: #4f46e5;
  --accent: #0d9488;
  --warn: #b45309;
  --err: #e11d48;
  --ok: #059669;
  --grid: rgba(15, 23, 42, 0.045);
  --glow: rgba(99, 102, 241, 0.16);
  --chip-bg: rgba(79, 70, 229, 0.08);
  --shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.25);
}
[data-tema="chiaro"] .console { --card: #0b1220; --card-2: #111a30; --line: rgba(148,163,184,.14); --line-2: rgba(148,163,184,.24); --text: #e6ebf5; --muted: #94a3b8; --dim: #64748b; --brand: #a5b4fc; --accent: #2dd4bf; --ok: #34d399; --chip-bg: rgba(129,140,248,.14); color: var(--text); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.disp { font-family: "Space Grotesk", Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sfondo: griglia e bagliore */
.sfondo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sfondo::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.sfondo::after {
  content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-30%);
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px);
}

/* Intestazione */
header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; }
.logo img { width: 30px; height: 30px; }
/* Segno del marchio come nel portale (input.css, .bh-mark): tessera scura, bordo a gradiente, prompt e BH in JetBrains
   Mono. Il prompt è un SVG: il ❯ non è nel sottoinsieme latino dei caratteri serviti */
.bh-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #0b1220; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); flex-shrink: 0; overflow: hidden; }
.bh-mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(99,102,241,.75), rgba(20,184,166,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.bh-mark .bh-inner { display: inline-flex; align-items: center; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 600; font-size: 11px; line-height: 1; letter-spacing: -0.01em; color: #fff; }
.bh-mark .bh-p { width: 5px; height: 10px; margin-right: 2px; fill: #a5b4fc; animation: lampeggia 1.05s steps(1) infinite; }
.logo b { color: var(--brand); font-weight: 700; }
.nav-link { display: flex; gap: 26px; font-size: 13px; color: var(--muted); }
.nav-link a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 600; font-size: 14px; padding: 10px 16px; white-space: nowrap; transition: transform .15s, box-shadow .15s, border-color .15s; }
.btn-primario { color: #fff; background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #0d9488); box-shadow: 0 8px 24px -8px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primario:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(99,102,241,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: color-mix(in srgb, var(--card) 60%, transparent); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-grande { padding: 14px 22px; font-size: 15px; border-radius: 12px; }

/* Apertura */
.hero { position: relative; padding: 72px 0 40px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.etichetta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 10px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.punto { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulsa 2.2s infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; margin: 22px 0 0; font-weight: 700; }
.sotto { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.fatti { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--dim); }
.fatti span::before { content: "›"; color: var(--accent); margin-right: 6px; }

/* Console */
.console { position: relative; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.console::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(129,140,248,.7), transparent 40%, transparent 60%, rgba(45,212,191,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.console-testa { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.console-testa .tit { display: flex; align-items: center; gap: 8px; }
.console-corpo { padding: 14px 16px 6px; font-size: 12.5px; line-height: 1.75; }
.riga { display: grid; grid-template-columns: 64px 74px 1fr; gap: 10px; opacity: 0; transform: translateY(4px); animation: entra .45s forwards; white-space: nowrap; }
.riga .ora { color: var(--dim); }
.riga .fase { color: var(--brand); }
.riga .cosa { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.riga .ok { color: var(--ok); }
.riga:nth-child(1) { animation-delay: .3s; } .riga:nth-child(2) { animation-delay: .9s; } .riga:nth-child(3) { animation-delay: 1.5s; }
.riga:nth-child(4) { animation-delay: 2.1s; } .riga:nth-child(5) { animation-delay: 2.7s; } .riga:nth-child(6) { animation-delay: 3.3s; }
@keyframes entra { to { opacity: 1; transform: none; } }
.esito { margin: 10px 16px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; opacity: 0; animation: entra .5s 3.9s forwards; }
.esito .nome { font-weight: 600; font-size: 14px; }
.esito .imp { font-weight: 600; font-size: 15px; text-align: right; }
.esito .det { font-size: 12px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--chip-bg); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.chip.acc { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.chip.err { color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); border-color: color-mix(in srgb, var(--err) 28%, transparent); }
.cursore { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: lampeggia 1s steps(1) infinite; }
@keyframes lampeggia { 50% { opacity: 0; } }

/* Nastro delle tecnologie */
.nastro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); margin-top: 56px; }
.nastro .wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; font-size: 11.5px; color: var(--muted); }
.nastro b { display: block; color: var(--text); font-weight: 600; font-size: 13px; margin-bottom: 2px; }
@media (max-width: 980px) { .nastro .wrap { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .nastro .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Sezioni */
section { position: relative; }
.sez { padding: 104px 0; }
.occhiello { font-size: 12px; color: var(--accent); letter-spacing: .04em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin: 12px 0 0; font-weight: 700; }
.intro { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 16px; }

/* Percorso della fattura */
.percorso { list-style: none; padding: 0; margin-bottom: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.percorso::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.percorso::after { content: ""; position: absolute; left: 6%; top: 25px; width: 60px; height: 5px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: corre 4.5s linear infinite; }
@keyframes corre { from { left: 4%; } to { left: 90%; } }
.passo { position: relative; z-index: 1; }
.passo .num { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; color: var(--brand); box-shadow: 0 0 0 6px var(--bg); }
.passo h3 { font-size: 16px; margin: 18px 0 6px; }
.passo p { margin: 0; font-size: 14px; color: var(--muted); }
.passo .tec { margin-top: 10px; font-size: 11px; color: var(--dim); }

/* Funzioni a mosaico */
.mosaico { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cella { grid-column: span 2; border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.cella:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cella.larga { grid-column: span 3; }
.cella h3 { margin: 0; font-size: 17px; }
.cella p { margin: 0; font-size: 14px; color: var(--muted); }
.cella .tag { font-size: 11px; color: var(--dim); }
.mock { margin-top: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); padding: 12px; font-size: 12px; }
.tab { width: 100%; border-collapse: collapse; }
.tab td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.tab tr:first-child td { border-top: 0; }
.tab .n { color: var(--muted); }
.tab .r { text-align: right; white-space: nowrap; }
.barre { display: grid; gap: 9px; }
.barra { display: grid; grid-template-columns: 112px 1fr 64px; gap: 10px; align-items: center; }
.barra .b { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; display: flex; }
.barra .b i { display: block; height: 100%; }
.f { background: var(--brand-strong); } .p { background: var(--accent); } .x { background: color-mix(in srgb, var(--brand) 40%, transparent); }
.legenda { display: flex; gap: 14px; margin-top: 10px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.legenda span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; background: var(--c); }
.finestra-copilot .barra-prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.finestra-copilot .barra-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); animation: riempi 6s ease-out infinite; }
@keyframes riempi { 0% { width: 4%; } 85%, 100% { width: 92%; } }
.giorni { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.giorno:nth-child(5) { display: none; }
.giorno { border: 1px solid var(--line); border-radius: 8px; padding: 7px; min-height: 66px; }
.giorno .g { font-size: 10px; color: var(--dim); }
.giorno .v { margin-top: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.giorno.oggi { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--chip-bg); }
.persona { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.persona:first-child { border-top: 0; padding-top: 0; }

/* Assistente AI */
.ai-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.puo { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 14px; }
.puo h3 { margin: 0 0 8px; font-size: 12px; font-weight: 500; }
.puo ul { margin: 0; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 6px; }
.puo li::before { content: "+"; color: var(--ok); margin-right: 8px; font-family: "JetBrains Mono", monospace; }
.puo .no li::before { content: "−"; color: var(--err); }
.chat { border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.msg.tu { justify-self: end; background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.strumento { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.strumento code { color: var(--accent); }

/* Sicurezza */
.spec { margin-top: 48px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.spec-riga { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: center; }
.spec-riga:first-child { border-top: 0; }
.spec-riga .k { font-size: 12px; color: var(--brand); }
.spec-riga .v { font-size: 15px; }
.spec-riga .v small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Per chi */
.chi { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chi div { border-top: 2px solid var(--brand-strong); padding-top: 16px; }
.chi div:nth-child(even) { border-top-color: var(--accent); }
.chi h3 { margin: 0 0 6px; font-size: 16px; }
.chi p { margin: 0; color: var(--muted); font-size: 14px; }
.citazione { margin-top: 56px; border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; font-size: 20px; max-width: 820px; }
.citazione span { display: block; margin-top: 10px; font-size: 13px; color: var(--dim); }

/* Modulo */
.demo { border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); padding: 48px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.demo::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 1; }
.campo { display: grid; gap: 6px; }
.campo.pieno { grid-column: 1 / -1; }
.campo span { font-size: 12px; color: var(--muted); }
.campo input, .campo textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.campo input:focus, .campo textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.campo textarea { resize: vertical; min-height: 112px; }
.consenso { grid-column: 1 / -1; display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.consenso input { margin-top: 3px; accent-color: var(--brand-strong); }
.consenso a { color: var(--brand); text-decoration: underline; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.passi-demo { margin-top: 28px; display: grid; gap: 14px; font-size: 14px; color: var(--muted); }
.passi-demo div { display: flex; gap: 12px; }
.passi-demo b { color: var(--text); font-weight: 600; font-family: "JetBrains Mono", monospace; font-size: 12px; min-width: 22px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--dim); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero-grid, .ai-grid, .demo { grid-template-columns: 1fr; }
  .nav-link { display: none; }
  .mosaico { grid-template-columns: 1fr 1fr; }
  .cella, .cella.larga { grid-column: span 1; }
  .percorso { grid-template-columns: 1fr; gap: 26px; }
  .percorso::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .percorso::after { display: none; }
  .passo { display: grid; grid-template-columns: 54px 1fr; gap: 0 18px; }
  .passo h3 { margin-top: 4px; }
  .passo p, .passo .tec { grid-column: 2; }
  .chi { grid-template-columns: 1fr 1fr; }
  .spec-riga { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .sez { padding: 72px 0; }
  .mosaico, .chi, .campi, .puo { grid-template-columns: 1fr; }
  .demo { padding: 26px 20px; }
  .btn-nav-demo .lungo { display: none; }
  .riga { grid-template-columns: 64px 1fr; font-size: 11.5px; }
  .riga .ora { display: none; }
  .barra { grid-template-columns: 92px 1fr 58px; }
  .giorni { grid-template-columns: repeat(3, 1fr); }
  .giorno:nth-child(n+4) { display: none; }
  .citazione { font-size: 17px; }
}
@media (min-width: 641px) { .btn-nav-demo .corto { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; } }

/* Classi al posto degli stili in linea dell'anteprima */
.sans { font-family: Inter, system-ui, sans-serif; }
.dx { text-align: right; }
.muted { color: var(--muted); }
.c-ok { color: var(--ok); }
.c-err { color: var(--err); }
.sopra { position: relative; z-index: 1; }
.senza-sopra { padding-top: 0; }
.banda { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mock-testa { display: flex; justify-content: space-between; gap: 8px; }
.intro.piccola { font-size: 16px; }
.l-f { --c: var(--brand-strong); } .l-p { --c: var(--accent); } .l-x { --c: color-mix(in srgb, var(--brand) 40%, transparent); }
.w3 { width: 3%; } .w6 { width: 6%; } .w11 { width: 11%; } .w12 { width: 12%; } .w15 { width: 15%; }
.w21 { width: 21%; } .w24 { width: 24%; } .w30 { width: 30%; } .w46 { width: 46%; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.campi .pieno { grid-column: 1 / -1; }

/* Interruttore del tema (landing.js lo mostra; senza JavaScript resta il tema scuro) */
.tema { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--muted); cursor: pointer; padding: 0; }
.tema:hover { color: var(--text); border-color: var(--brand); }
.tema svg { width: 18px; height: 18px; }
.tema .sole { display: none; }
[data-tema="chiaro"] .tema .sole { display: block; }
[data-tema="chiaro"] .tema .luna { display: none; }

/* Esito del modulo */
.avviso { grid-column: 1 / -1; border-radius: 12px; padding: 14px 16px; font-size: 14px; border: 1px solid; }
.avviso.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.avviso.err { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); background: color-mix(in srgb, var(--err) 10%, transparent); }
.avviso b { display: block; color: var(--text); margin-bottom: 2px; }
.campo .errore { font-size: 12px; color: var(--err); }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--err); }
.grazie { position: relative; z-index: 1; display: grid; gap: 12px; align-content: center; }
.grazie h3 { margin: 0; font-size: 22px; }
.grazie p { margin: 0; color: var(--muted); }
.salta { position: absolute; left: -9999px; top: 8px; z-index: 30; }
.salta:focus { left: 16px; padding: 8px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Informativa privacy */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 4.2vw, 46px); }
.doc .data { margin-top: 10px; font-size: 12px; color: var(--dim); }
.doc section { margin-top: 40px; }
.doc h2 { font-size: 20px; margin: 0 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc p { margin: 0 0 12px; }
.doc a { color: var(--brand); text-decoration: underline; }
.doc .contatto { color: var(--text); }

/* Documenti legali (privacy, termini, accordo, sub-responsabili): testi in src/Legale/testi */
.doc-largo { max-width: 960px; }
.doc .sottotitolo { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 40px; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; color: var(--text); }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc ol.lettere { list-style: lower-alpha; }
.doc strong { color: var(--text); }
.doc code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9em; padding: 1px 5px; border-radius: 5px; background: var(--chip-bg); color: var(--text); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc .tabella { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc th { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--card) 70%, transparent); }
.doc tr:last-child td { border-bottom: 0; }
.doc .riquadro { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--card) 70%, transparent); }
.doc .riquadro p:last-child { margin-bottom: 0; }
.doc mark.da-decidere { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.doc .bozza { margin: 0 0 24px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 10px; color: var(--text); background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: 14px; }
.doc .bozza strong { color: var(--warn); }
.doc .indice { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: 13px; }
.doc .indice a { color: var(--muted); text-decoration: none; }
.doc .indice a[aria-current="page"] { color: var(--brand); }
.doc .indice a:hover { color: var(--text); }
