/* WireCraft: sito del progetto. Nessuna risorsa esterna: font di sistema, niente CDN, niente cookie. */

:root {
  --bg: #050c17;
  --bg-2: #08142a;
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --linea: rgba(255, 255, 255, 0.09);
  --testo: #e9eff7;
  --tenue: #9fb2c9;
  --rame: #f6a532;
  --rame-2: #ffc24a;
  --arancio: #f08a1c;
  --turchese: #4fd8c4;
  --blu: #174e7e;
  --navy: #0e2a4a;
  --rosso: #ff6b6b;
  --raggio: 18px;
  --max: 1180px;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--testo);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* la griglia del foglio di schema, dietro a tutto */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(79, 216, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 196, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--rame-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--turchese); outline-offset: 3px; border-radius: 6px; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.88em; background: var(--card-2); border: 1px solid var(--linea); padding: 0.08em 0.4em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--rame-2); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.salta:focus { top: 12px; }

.contenitore { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sezione { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.occhiello {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--turchese); margin-bottom: 18px;
}
.occhiello::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.intro { max-width: 760px; margin-bottom: 52px; }
.intro p { color: var(--tenue); font-size: 1.12rem; }
.centrato { text-align: center; margin-inline: auto; }
.centrato .occhiello { justify-content: center; }
.gradiente {
  background: linear-gradient(100deg, var(--rame-2), var(--arancio) 45%, var(--turchese));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- barra di navigazione ---------- */
.barra {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 12, 23, 0.72);
  border-bottom: 1px solid var(--linea);
}
.barra .contenitore { display: flex; align-items: center; gap: 28px; height: 68px; }
.marchio { display: flex; align-items: center; gap: 10px; color: var(--testo); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.marchio img { width: 34px; height: 34px; }
.menu { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { color: var(--tenue); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.menu a:hover { color: var(--testo); }
.azioni-barra { display: flex; align-items: center; gap: 12px; }
.lingua { color: var(--tenue); text-decoration: none; font: 600 0.8rem var(--mono); border: 1px solid var(--linea); padding: 6px 9px; border-radius: 8px; }
.lingua:hover { color: var(--testo); border-color: var(--tenue); }
.apri-menu { display: none; background: none; border: 1px solid var(--linea); color: var(--testo); border-radius: 10px; width: 42px; height: 40px; cursor: pointer; }
.apri-menu svg { margin: auto; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primario {
  color: #1a0f00;
  background: linear-gradient(180deg, var(--rame-2), var(--arancio));
  box-shadow: 0 10px 30px -10px rgba(240, 138, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primario:hover { color: #1a0f00; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(240, 138, 28, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-secondario { color: var(--testo); background: var(--card-2); border-color: var(--linea); }
.btn-secondario:hover { color: #fff; background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-piccolo { padding: 9px 14px; font-size: 0.9rem; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; position: relative; overflow-x: clip; }
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -300px; top: -380px;
  background: radial-gradient(circle, rgba(240, 138, 28, 0.2), transparent 62%);
}
.hero-griglia { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.etichetta {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 14px 7px 8px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(79, 216, 196, 0.08); border: 1px solid rgba(79, 216, 196, 0.25);
  font-size: 0.86rem; color: #c9f5ee;
}
.etichetta b { background: var(--turchese); color: #04211c; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero .sottotitolo { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--tenue); max-width: 580px; margin-bottom: 34px; }
.hero .sottotitolo strong { color: var(--testo); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.fatti { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--tenue); font-size: 0.92rem; }
.fatti li { display: flex; align-items: center; gap: 8px; }
.fatti li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--turchese); box-shadow: 0 0 10px var(--turchese); }

/* lo schema animato */
.tavola {
  position: relative; border-radius: 24px; padding: 58px 18px 62px;
  background: linear-gradient(160deg, rgba(23, 78, 126, 0.35), rgba(8, 20, 42, 0.6));
  border: 1px solid rgba(79, 216, 196, 0.18);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.tavola svg { width: 100%; height: auto; }
.tavola .filo { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tavola .fase { stroke: var(--rame); }
.tavola .neutro { stroke: #5aa7ff; }
.tavola .ramo { stroke: #c7d6e8; }
.tavola .simbolo { fill: none; stroke: #e9eff7; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tavola .tratteggio { stroke-dasharray: 4 4; }
.tavola .nodo { fill: #c7d6e8; }
.tavola .nodo-fase { fill: var(--rame); }
.tavola .nodo-neutro { fill: #5aa7ff; }
.tavola .sigla { fill: var(--rame-2); font: 700 13px var(--mono); }
.tavola .numero { fill: var(--turchese); font: 600 10.5px var(--mono); }
.tavola .rotaia { fill: var(--tenue); font: 700 13px var(--mono); }
.tavola .corrente { fill: none; stroke: #fff6d8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.018 0.11; opacity: 0; filter: drop-shadow(0 0 4px var(--rame-2)); }
.tavola .lampada-luce { fill: var(--rame-2); opacity: 0; filter: blur(8px); }

.disegna { stroke-dasharray: 1; stroke-dashoffset: 1; animation: disegna 1.1s ease forwards; }
.d1 { animation-delay: 0.2s; } .d2 { animation-delay: 0.6s; } .d3 { animation-delay: 1s; } .d4 { animation-delay: 1.4s; } .d5 { animation-delay: 1.8s; }
.appare { opacity: 0; animation: appare 0.6s ease forwards; }
.a1 { animation-delay: 1.2s; } .a2 { animation-delay: 1.8s; } .a3 { animation-delay: 2.4s; }
.tavola .corrente { animation: accendi 0.6s ease 3s forwards, scorre 2.4s linear 3s infinite; }
.tavola .lampada-luce { animation: luce 2.4s ease-in-out 3.2s infinite; }
@keyframes disegna { to { stroke-dashoffset: 0; } }
@keyframes appare { to { opacity: 1; } }
@keyframes accendi { to { opacity: 0.95; } }
@keyframes scorre { to { stroke-dashoffset: -0.256; } }
@keyframes luce { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.85; } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.35;
  background: rgba(8, 20, 42, 0.92); border: 1px solid var(--linea);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; animation: chip 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.chip .icona-ia { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--turchese), #2a8f80); color: #04211c; font-weight: 800; }
.chip-ia { left: -26px; top: -20px; max-width: 290px; animation-delay: 2.6s; }
.chip-cmd { right: -18px; bottom: -18px; font-family: var(--mono); font-size: 0.78rem; color: #c9f5ee; animation-delay: 3.4s; }
.chip-cmd span { color: var(--rame-2); }
.chip-ok { left: 24px; bottom: -18px; font-size: 0.8rem; animation-delay: 4.1s; }
.chip-ok i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
@keyframes chip { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- finestra con lo screenshot ---------- */
.vetrina { padding: 30px 0 0; }
.finestra {
  border-radius: 16px; overflow: hidden; position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1522;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(79, 216, 196, 0.35);
}
.finestra-barra { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #121c2b; border-bottom: 1px solid var(--linea); font: 500 0.78rem var(--mono); color: var(--tenue); }
.finestra-barra i { width: 11px; height: 11px; border-radius: 50%; background: #2b3a50; }
.finestra-barra span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.didascalia { color: var(--tenue); font-size: 0.92rem; text-align: center; margin-top: 16px; }

/* ---------- numeri ---------- */
.numeri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--raggio); overflow: hidden; margin-top: 72px; }
.numeri div { background: var(--bg); padding: 26px 22px; }
.numeri strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.numeri span { color: var(--tenue); font-size: 0.92rem; }

/* ---------- sezione IA ---------- */
.ia { background: linear-gradient(180deg, transparent, rgba(23, 78, 126, 0.16) 30%, rgba(23, 78, 126, 0.16) 70%, transparent); }
.ia-griglia { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.passi-ia { display: grid; gap: 14px; }
.passo-ia { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; border-radius: var(--raggio); background: var(--card); border: 1px solid var(--linea); transition: border-color 0.2s, background 0.2s; }
.passo-ia:hover { border-color: rgba(79, 216, 196, 0.35); background: var(--card-2); }
.passo-ia .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(79, 216, 196, 0.1); color: var(--turchese); }
.passo-ia .ico svg { width: 26px; height: 26px; }
.passo-ia h3 { margin-bottom: 4px; }
.passo-ia p { color: var(--tenue); margin: 0; font-size: 0.97rem; }

.terminale {
  border-radius: var(--raggio); overflow: hidden; position: sticky; top: 96px;
  background: #070f1c; border: 1px solid rgba(79, 216, 196, 0.22);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(79, 216, 196, 0.4);
}
.terminale .finestra-barra { background: #0b1626; }
.terminale-corpo { padding: 22px 22px 26px; font: 0.86rem/1.7 var(--mono); min-height: 430px; }
.terminale-corpo p { margin: 0 0 6px; }
.riga { white-space: pre-wrap; word-break: break-word; }
.chi { font-weight: 700; }
.chi-tu { color: var(--rame-2); }
.chi-ia { color: var(--turchese); }
.msg { color: #dfe8f3; font-family: var(--sans); font-size: 0.97rem; }
.cmd { padding-left: 14px; color: #c7d6e8; }
.cmd b { color: var(--rame-2); font-weight: 600; }
.cmd em { color: #8fb3d9; font-style: normal; }
.esito { margin-top: 14px !important; padding: 10px 12px; border-radius: 10px; background: rgba(61, 220, 132, 0.08); border: 1px solid rgba(61, 220, 132, 0.25); color: #a7f3c6; }
.nota-terminale { padding: 12px 22px; border-top: 1px solid var(--linea); color: var(--tenue); font-size: 0.8rem; font-family: var(--sans); }
.js .terminale-corpo .riga { opacity: 0; transform: translateY(4px); transition: opacity 0.35s ease, transform 0.35s ease; }
.js .terminale-corpo .riga.vista { opacity: 1; transform: none; }
.cursore::after { content: "▍"; color: var(--turchese); animation: lampeggia 1s steps(1) infinite; margin-left: 2px; }
@keyframes lampeggia { 50% { opacity: 0; } }

.oggi-domani { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.oggi-domani div { padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--linea); font-size: 0.93rem; color: var(--tenue); }
.oggi-domani b { display: block; color: var(--testo); margin-bottom: 4px; font-size: 0.82rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.oggi-domani .oggi b { color: #3ddc84; }
.oggi-domani .domani b { color: var(--rame-2); }

/* ---------- funzioni ---------- */
.griglia-funzioni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.funzione {
  position: relative; padding: 28px 26px; border-radius: var(--raggio);
  background: var(--card); border: 1px solid var(--linea); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.funzione::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(246, 165, 50, 0.12), transparent 45%);
}
.funzione:hover { transform: translateY(-4px); border-color: rgba(246, 165, 50, 0.35); }
.funzione:hover::before { opacity: 1; }
.funzione .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(246, 165, 50, 0.18), rgba(240, 138, 28, 0.06)); color: var(--rame-2); border: 1px solid rgba(246, 165, 50, 0.25); }
.funzione .ico svg { width: 24px; height: 24px; }
.funzione p { color: var(--tenue); font-size: 0.97rem; margin-bottom: 12px; }
.funzione ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.funzione li { font-size: 0.76rem; padding: 3px 9px; border-radius: 999px; color: #c9d7e6; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--linea); }

/* ---------- galleria ---------- */
.galleria { display: grid; gap: 80px; }
.scheda-galleria { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.scheda-galleria:nth-child(even) { grid-template-columns: 1.25fr 1fr; }
.scheda-galleria:nth-child(even) .testo-galleria { order: 2; }
.testo-galleria p { color: var(--tenue); font-size: 1.05rem; }
.testo-galleria ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.testo-galleria li { display: flex; gap: 12px; color: #d3dfec; }
.testo-galleria li::before { content: ""; flex: none; margin-top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--turchese); border-bottom: 2px solid var(--turchese); transform: rotate(-45deg); }
.figura { margin: 0; }
.figura img { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); background: #0d1522; }
.figura-chiara img { background: #fff; }

/* ---------- perché ---------- */
.griglia-perche { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perche { padding: 26px; border-radius: var(--raggio); border: 1px solid var(--linea); background: linear-gradient(180deg, var(--card-2), transparent); }
.perche strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.perche p { color: var(--tenue); margin: 0; font-size: 0.95rem; }
.perche .simbolo-grande { font: 800 2rem var(--mono); color: var(--turchese); margin-bottom: 10px; line-height: 1; }

/* ---------- come iniziare ---------- */
.passi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: passo; list-style: none; padding: 0; margin: 0 0 40px; }
.passi li { counter-increment: passo; padding: 28px; border-radius: var(--raggio); border: 1px solid var(--linea); background: var(--card); position: relative; }
.passi li::before { content: counter(passo, decimal-leading-zero); display: block; font: 800 2.4rem var(--mono); line-height: 1; margin-bottom: 14px; background: linear-gradient(180deg, var(--rame-2), var(--arancio)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.passi p { color: var(--tenue); margin: 0; }
.blocco-codice { max-width: 100%; border-radius: 14px; border: 1px solid var(--linea); background: #070f1c; padding: 18px 20px; overflow-x: auto; font-size: 0.86rem; color: #c7d6e8; margin: 0; }
.blocco-codice .commento { color: #6f86a3; }
.dettagli-dev { margin-top: 10px; border: 1px solid var(--linea); border-radius: 14px; padding: 4px 20px; background: var(--card); }
.dettagli-dev summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.dettagli-dev[open] summary { margin-bottom: 6px; }
.dettagli-dev > div { padding-bottom: 18px; color: var(--tenue); }
.avviso-windows { font-size: 0.92rem; color: var(--tenue); border-left: 3px solid var(--rame); padding: 4px 0 4px 14px; margin: 26px 0 0; }

/* ---------- roadmap ---------- */
.linea-tempo { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 16px; max-width: 820px; }
.linea-tempo::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--turchese), var(--rame) 70%, transparent); }
.linea-tempo li { position: relative; padding-left: 46px; }
.linea-tempo li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--turchese); }
.linea-tempo li.prossimo::before { border-color: var(--rame); border-style: dashed; }
.linea-tempo time, .linea-tempo .quando { display: block; font: 600 0.78rem var(--mono); color: var(--turchese); letter-spacing: 0.06em; text-transform: uppercase; }
.linea-tempo li.prossimo .quando { color: var(--rame-2); }
.linea-tempo strong { font-size: 1.05rem; }
.linea-tempo span.desc { color: var(--tenue); display: block; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--linea); border-radius: 14px; background: var(--card); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: rgba(79, 216, 196, 0.3); background: var(--card-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 650; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--mono); color: var(--turchese); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .risposta { padding: 0 22px 20px; color: var(--tenue); }
.faq .risposta p:last-child { margin: 0; }

/* ---------- invito finale ---------- */
.invito {
  border-radius: 28px; padding: clamp(40px, 7vw, 80px); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(240, 138, 28, 0.25), transparent 60%), linear-gradient(160deg, #0f2e52, #081629);
  border: 1px solid rgba(246, 165, 50, 0.25);
}
.invito h2 { max-width: 760px; margin-inline: auto; }
.invito p { color: #c9d7e6; max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
.invito .cta { justify-content: center; margin: 0; }

/* ---------- piè di pagina ---------- */
.piede { border-top: 1px solid var(--linea); padding: 56px 0 40px; color: var(--tenue); font-size: 0.92rem; margin-top: 40px; }
.piede-griglia { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.piede h2 { font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--testo); margin-bottom: 14px; }
.piede ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.piede a { color: var(--tenue); text-decoration: none; }
.piede a:hover { color: var(--testo); text-decoration: underline; }
.legale { border-top: 1px solid var(--linea); padding-top: 24px; font-size: 0.82rem; line-height: 1.6; color: #7f93ab; }
.legale p { margin-bottom: 8px; }

/* ---------- pagine di testo (privacy, note legali) ---------- */
.pagina-testo { max-width: 800px; padding: 64px 0 40px; }
.pagina-testo h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.pagina-testo h2 { font-size: 1.45rem; margin-top: 2.2em; }
.pagina-testo p, .pagina-testo li { color: #c9d7e6; }
.pagina-testo li { margin-bottom: 6px; }
.pagina-testo .aggiornato { color: var(--tenue); font-family: var(--mono); font-size: 0.85rem; }
.tabella { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 10px 0 20px; }
.tabella th, .tabella td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabella th { color: var(--testo); font-weight: 650; }
.tabella td { color: #c9d7e6; }

/* ---------- comparsa allo scorrimento ---------- */
.js .rivela { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.js .rivela.vista { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-griglia, .ia-griglia, .scheda-galleria, .scheda-galleria:nth-child(even) { grid-template-columns: 1fr; }
  .scheda-galleria:nth-child(even) .testo-galleria { order: 0; }
  .griglia-funzioni { grid-template-columns: repeat(2, 1fr); }
  .griglia-perche { grid-template-columns: repeat(2, 1fr); }
  .piede-griglia { grid-template-columns: 1fr 1fr; }
  .terminale { position: relative; top: 0; }
  .chip-ia { left: 8px; } .chip-cmd { right: 8px; } .chip-ok { display: none; }
  .tavola { margin-top: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; padding: 8px 20px 18px; background: rgba(5, 12, 23, 0.97); border-bottom: 1px solid var(--linea); }
  .menu.aperto { display: flex; }
  .menu a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--linea); }
  .apri-menu { display: grid; }
  .azioni-barra { margin-left: auto; }
  .azioni-barra .btn { display: none; }
  .numeri { grid-template-columns: repeat(2, 1fr); }
  .griglia-funzioni, .griglia-perche, .passi, .oggi-domani { grid-template-columns: 1fr; }
  .piede-griglia { grid-template-columns: 1fr; }
  .tavola { padding: 16px; }
  .chip { position: static; margin-top: 10px; opacity: 1; animation: none; max-width: none; }
  .chip-ok { display: none; }
  .terminale-corpo { min-height: 0; font-size: 0.8rem; padding: 18px; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .disegna { stroke-dashoffset: 0; }
  .appare, .chip { opacity: 1; }
  .tavola .corrente { opacity: 0; }
  .js .rivela, .js .terminale-corpo .riga { opacity: 1; transform: none; }
}
@media print {
  body::before, .barra, .tavola, .terminale, .invito { display: none; }
  body { background: #fff; color: #000; }
}
