/* InertPDF — sito pubblico.
   Grafite dominante, ambra come accento (circa il 10% della superficie), neutri azzurrati.
   L'ambra 300 (#ECB65C) non regge il testo su chiaro: su chiaro i collegamenti sono ambra 600,
   i pulsanti sono ambra 300 con testo grafite (contrasto 9,0). L'ambra non segnala mai un avviso.
   Carattere: Atkinson Hyperlegible Next e Mono (SIL OFL 1.1, assets/fonts/OFL.txt), serviti dal
   sito stesso: nessun servizio di caratteri esterno. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-Italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("../fonts/AtkinsonHyperlegibleMono.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --grafite: #1b1f24;
  --notte: #15181c;
  --lavagna: #22272e;
  --vetro: #eef1f4;
  --ardesia: #5f6975;
  --nebbia: #a8b0ba;
  --ambra-50: #fdf6e7;
  --ambra-100: #fae9c4;
  --ambra-200: #f5d592;
  --ambra-300: #ecb65c;
  --ambra-400: #d2962e;
  --ambra-600: #8a5a0a;
  --ambra-700: #6b4507;

  /* sezioni chiare (valori di partenza; il tema scuro li ridefinisce) */
  --fondo: var(--vetro);
  --superficie: #ffffff;
  --superficie-2: #f7f8fa;
  --testo: var(--grafite);
  --testo-2: var(--ardesia);
  --bordo: #d5dbe2;
  --link: var(--ambra-600);
  --link-sopra: var(--ambra-700);
  --fuoco: var(--ambra-600);
  --inerte: #1f7a52;
  --minaccia: #c2362b;
  --ombra: 0 1px 2px rgb(27 31 36 / 0.06), 0 8px 24px rgb(27 31 36 / 0.06);

  --carattere: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --raggio: 14px;
  --larghezza: 74rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: var(--notte);
    --superficie: var(--lavagna);
    --superficie-2: #1c2026;
    --testo: #ffffff;
    --testo-2: var(--nebbia);
    --bordo: #343b45;
    --link: var(--ambra-200);
    --link-sopra: var(--ambra-100);
    --fuoco: var(--ambra-300);
    --inerte: #4fd39a;
    --minaccia: #ff7a6e;
    --ombra: none;
  }
}

/* Le fasce scure restano scure in entrambi i temi. */
.eroe, .fascia-scura, .testata, .piede {
  --testo: #ffffff;
  --testo-2: #c3cad3;
  --bordo: rgb(255 255 255 / 0.14);
  --link: var(--ambra-200);
  --link-sopra: var(--ambra-100);
  --fuoco: var(--ambra-300);
  --inerte: #4fd39a;
  --superficie: rgb(255 255 255 / 0.04);
  color: var(--testo);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font-family: var(--carattere);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  /* Piè di pagina sempre in fondo, anche quando la pagina è corta. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .piede { flex-shrink: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-sopra); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fuoco); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.35rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -0.005em; }
.h-piccolo { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--testo-2); margin-bottom: 0.8rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.92em; }
.visivamente-nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.salta { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ambra-300); color: var(--grafite); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; }
.salta:focus { top: 1rem; }

.contenitore { width: min(var(--larghezza), 100% - 2rem); margin-inline: auto; }
.testo-lungo > * { max-width: 48rem; }
.testo-lungo h2 { margin-top: 1.8em; }
.testo-lungo h2:first-child { margin-top: 0; }

/* ---- Pulsanti ---- */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.bottone .icona { width: 1.2em; height: 1.2em; }
.bottone-piccolo { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; }
.bottone-ambra { background: var(--ambra-300); color: var(--grafite); }
.bottone-ambra:hover { background: var(--ambra-200); color: var(--grafite); }
.bottone-ambra:active { background: var(--ambra-400); }
.bottone-chiaro { border-color: rgb(255 255 255 / 0.4); color: #fff; }
.bottone-chiaro:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 0.06); }
.bottone-contorno { border-color: var(--testo); color: var(--testo); }
.bottone-contorno:hover { background: var(--testo); color: var(--fondo); }
.bottone-spento { border-color: var(--bordo); color: var(--testo-2); cursor: not-allowed; background: var(--superficie-2); }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 1.6rem; }
.link-freccia { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.link-freccia .icona { width: 1.1em; height: 1.1em; transition: transform 0.15s; }
.link-freccia:hover .icona { transform: translateX(3px); }

/* ---- Testata ---- */
.testata { position: sticky; top: 0; z-index: 30; background: rgb(27 31 36 / 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.testata-dentro { width: min(var(--larghezza), 100% - 2rem); margin-inline: auto; min-height: 4.25rem; display: flex; align-items: center; gap: 1.5rem; }
.marchio { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; flex-shrink: 0; }
.marchio:hover { color: #fff; }
.logo-simbolo { width: 2.2rem; height: 2.2rem; border-radius: 9px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.marchio-nome b { color: var(--ambra-300); font-weight: 700; }
.menu { display: flex; align-items: center; flex: 1; gap: 1rem; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.menu ul a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; color: #d3d9e0; text-decoration: none; font-size: 1rem; }
.menu ul a:hover { color: #fff; background: rgb(255 255 255 / 0.06); }
.menu ul a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--ambra-300); border-radius: 0; }
.menu-azioni { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; }
.link-account { color: #d3d9e0; text-decoration: none; font-size: 1rem; }
.link-account:hover { color: #fff; text-decoration: underline; }
.menu-apri { display: none; }
.icona { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.lingue { position: relative; }
.lingue summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; padding: 0.4rem 0.65rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.2); color: #d3d9e0; font-size: 0.95rem; font-weight: 700; }
.lingue summary::-webkit-details-marker { display: none; }
.lingue summary:hover, .lingue[open] summary { color: #fff; border-color: rgb(255 255 255 / 0.45); }
.lingue ul { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 40; list-style: none; margin: 0; padding: 0.4rem; min-width: 11rem; background: var(--lavagna); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.35); }
.lingue a { display: block; padding: 0.5rem 0.75rem; border-radius: 8px; color: #e7ebef; text-decoration: none; }
.lingue a:hover { background: rgb(255 255 255 / 0.07); color: #fff; }
.lingue a[aria-current="true"] { color: var(--ambra-300); font-weight: 700; }

@media (max-width: 1080px) {
  .js .menu-apri { display: inline-flex; align-items: center; gap: 0.45rem; margin-left: auto; background: none; border: 1px solid rgb(255 255 255 / 0.22); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer; }
  .menu { flex-wrap: wrap; }
  .js .menu { display: none; }
  .js .menu.aperto { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0.8rem; padding: 1rem max(1rem, (100% - var(--larghezza)) / 2) 1.4rem; background: var(--grafite); border-bottom: 1px solid rgb(255 255 255 / 0.1); box-shadow: 0 18px 30px rgb(0 0 0 / 0.35); max-height: calc(100vh - 4.25rem); overflow-y: auto; }
  .menu ul { flex-direction: column; }
  .menu ul a { padding: 0.75rem 0.5rem; font-size: 1.1rem; border-bottom: 1px solid rgb(255 255 255 / 0.06); border-radius: 0; }
  .menu ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ambra-300); padding-left: 0.9rem; }
  .menu-azioni { margin-left: 0; flex-wrap: wrap; justify-content: space-between; }
  .lingue ul { right: auto; left: 0; }
  .testata-dentro { position: relative; }
}

/* ---- Eroe (testata scura delle pagine) ---- */
.eroe { position: relative; background: var(--grafite); overflow: hidden; isolation: isolate; }
.eroe-immagine { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: -1; }
.eroe-immagine img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
.eroe-testo { width: min(var(--larghezza), 100% - 2rem); margin-inline: auto; padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.eroe-testo > * { max-width: 36rem; }
.eroe-home .eroe-testo { min-height: min(46rem, 82vh); display: flex; flex-direction: column; justify-content: center; }
.eroe-home h1 { max-width: 13ch; }
.eroe-interno .eroe-testo { min-height: 26rem; display: flex; flex-direction: column; justify-content: center; }
.eroe-intro { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: #dde2e8; }
.eroe-intro + .eroe-intro { margin-top: -0.3em; }
.eroe-nota { color: var(--testo-2); font-size: 0.98rem; margin-top: 1.2rem; }
.eroe h1 { color: #fff; }
.eroe h1::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: 0.4em; background: var(--ambra-300); border-radius: 2px; }
.eroe-legale .eroe-testo { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.eroe-legale .eroe-testo > * { max-width: 48rem; }

.briciole ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.95rem; color: var(--testo-2); }
.briciole li + li::before { content: "/"; margin-right: 0.3rem; color: rgb(255 255 255 / 0.3); }
.briciole a { color: #d3d9e0; }

@media (max-width: 959px) {
  .eroe-immagine { position: relative; inset: auto; width: 100%; display: block; aspect-ratio: 3 / 2; max-height: 22rem; }
  .eroe-immagine img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); object-position: 75% 50%; }
  .eroe-testo { padding-top: 0.5rem; margin-top: -2.5rem; position: relative; }
  .eroe-home .eroe-testo, .eroe-interno .eroe-testo { min-height: 0; }
  .eroe-legale .eroe-testo, .eroe-radice .eroe-testo { margin-top: 0; }
}

/* ---- Fasce ---- */
.fascia { padding-block: clamp(3.5rem, 7vw, 6rem); }
.fascia-chiara { background: var(--fondo); }
.fascia-tenue { background: var(--superficie-2); border-top: 1px solid var(--bordo); }
.fascia-scura { background: var(--grafite); background-image: radial-gradient(60rem 30rem at 85% 0%, rgb(236 182 92 / 0.09), transparent 60%); }
@media (prefers-color-scheme: dark) { .fascia-scura { background-color: #101317; } }
.intro-sezione { font-size: 1.15rem; color: var(--testo-2); max-width: 46rem; margin-bottom: 2rem; }
.due-colonne { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .due-colonne { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.due-colonne-modulo { align-items: start; }
@media (min-width: 900px) { .due-colonne-modulo { grid-template-columns: 1.5fr 1fr; } }

/* ---- Schede ---- */
.scheda { background: var(--superficie); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 1.5rem; box-shadow: var(--ombra); }
.scheda > :last-child { margin-bottom: 0; }
.scheda h2, .scheda h3 { margin-bottom: 0.45em; }
.scheda p { color: var(--testo-2); }
.scheda-limite { border-left: 4px solid var(--nebbia); }

.passi { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); counter-reset: passo; }
.passi .scheda { position: relative; padding-top: 3.6rem; }
.passo-n { position: absolute; top: 1.3rem; left: 1.5rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ambra-300); color: var(--grafite); font-weight: 700; font-size: 1rem; }

/* Prova dell'isolamento */
.evasioni { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.evasioni li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: 12px; background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.1); }
.evasione-nome { font-weight: 700; }
.nota-limite { border-left: 3px solid var(--nebbia); padding-left: 1rem; color: var(--testo-2); }

.esito { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.98rem; }
.esito .icona { width: 1.3em; height: 1.3em; }
.esito-inerte { color: var(--inerte); }
.esito-neutro { color: var(--testo-2); }

/* Strumenti nella Home */
/* Home: per chi è InertPDF (studi e imprese). Quattro riquadri: 1, 2 o 4 per riga. */
.griglia-chi { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .griglia-chi { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .griglia-chi { grid-template-columns: repeat(4, 1fr); } }
.griglia-chi h3 { margin-top: 0; }
.griglia-strumenti { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
@media (min-width: 900px) { .griglia-strumenti { grid-template-columns: repeat(3, 1fr); } }
.scheda-immagine { padding: 0; overflow: hidden; }
.scheda-immagine a { display: block; color: var(--testo); text-decoration: none; height: 100%; }
.scheda-immagine img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% 50%; background: var(--grafite); transition: transform 0.3s; }
.scheda-immagine h3 { padding: 1rem 1.3rem 1.2rem; margin: 0; display: flex; justify-content: space-between; gap: 0.5rem; }
.scheda-immagine h3::after { content: "→"; color: var(--link); }
.scheda-immagine a:hover img { transform: scale(1.03); }
.scheda-immagine:hover { border-color: var(--ambra-400); }

.scheda-prezzo { border-top: 4px solid var(--ambra-300); }
.prezzo-grande { font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 700; color: var(--testo) !important; margin: 0.2rem 0 0.6rem; letter-spacing: -0.02em; line-height: 1.1; }
.prezzo-grande span { font-size: 1rem; font-weight: 400; color: var(--testo-2); letter-spacing: 0; }

/* Funzioni */
.indice { background: var(--superficie-2); border-bottom: 1px solid var(--bordo); padding-block: 1.6rem; }
.indice ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.indice a { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--bordo); background: var(--superficie); text-decoration: none; color: var(--testo); font-size: 0.98rem; }
.indice a:hover { border-color: var(--ambra-400); color: var(--testo); }
.funzione { display: grid; gap: 1.5rem 3.5rem; align-items: center; padding-block: 2.2rem; }
.funzione + .funzione { border-top: 1px solid var(--bordo); }
.funzione-immagine img { border-radius: 18px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--grafite); }
.funzione-testo p, .funzione-testo li { color: var(--testo-2); }
@media (min-width: 900px) {
  .funzione { grid-template-columns: 1fr 1.1fr; }
  .funzione-inversa .funzione-immagine { order: 2; }
}
.griglia-funzioni { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .griglia-funzioni { grid-template-columns: repeat(2, 1fr); } }
.colonne-funzioni { display: block; columns: 2 22rem; column-gap: 1.2rem; }
.colonne-funzioni > * { break-inside: avoid; margin-bottom: 1.2rem; }

.elenco { padding-left: 1.2rem; margin: 0 0 1em; }
.elenco li { margin-bottom: 0.5em; }
.elenco li::marker { color: var(--ambra-400); }

/* Tabelle */
.tabella-scorre { overflow-x: auto; margin-bottom: 2rem; border-radius: var(--raggio); border: 1px solid var(--bordo); background: var(--superficie); }
.tabella { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tabella th, .tabella td { text-align: left; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--bordo); vertical-align: top; }
.tabella thead th { background: var(--superficie-2); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--testo-2); }
.tabella tbody tr:last-child > * { border-bottom: 0; }
.tabella tbody th { font-weight: 700; }
@media (max-width: 640px) {
  .tabella thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabella tr { display: block; padding: 0.9rem 1rem; border-bottom: 1px solid var(--bordo); }
  .tabella tbody tr:last-child { border-bottom: 0; }
  .tabella th, .tabella td { display: block; padding: 0.25rem 0; border: 0; }
  .tabella td::before { content: attr(data-etichetta); display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--testo-2); }
}
.griglia-piattaforme { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }

/* Prezzi */
.griglia-prezzi { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); }
@media (min-width: 900px) { .griglia-prezzi { grid-template-columns: repeat(3, 1fr); } .griglia-prezzi.colonne-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .griglia-prezzi.colonne-4 { grid-template-columns: repeat(4, 1fr); } }
.scheda-lotto { display: flex; flex-direction: column; }
.scheda-lotto .bottone { margin-top: auto; }
.lotto-evidenza { border: 2px solid var(--ambra-300); }
.dati-lotto { margin: 0 0 1.3rem; }
.dati-lotto div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--bordo); font-size: 1rem; }
.dati-lotto dt { color: var(--testo-2); }
.dati-lotto dd { margin: 0; font-weight: 700; text-align: right; }
.dati-lotto .impronta { flex-direction: column; gap: 0.2rem; }
.dati-lotto .impronta dd { text-align: left; font-weight: 400; word-break: break-all; font-size: 0.85rem; }
.nota-prezzi { color: var(--testo-2); font-size: 1rem; max-width: 52rem; }

/* Download */
.griglia-download { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); margin-bottom: 1rem; }
@media (min-width: 900px) { .griglia-download { grid-template-columns: repeat(3, 1fr); } }
.scheda-download { position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.5rem 1.5rem; transition: border-color 0.2s, transform 0.2s; }
.scheda-download:hover { border-color: var(--ambra-400); }
.scheda-download h2 { margin: 0.9rem 0 0.15rem; font-size: 1.6rem; }
.scheda-download .sotto { margin: 0 0 0.9rem; color: var(--testo-2); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em; }
.scheda-download > p { font-size: 0.98rem; }
.logo-sistema { width: 3.4rem; height: 3.4rem; fill: currentColor; color: var(--testo); transition: color 0.2s; }
.scheda-download:hover .logo-sistema, .scheda-download.consigliato .logo-sistema { color: var(--ambra-400); }
.pacchetti-dl { display: grid; gap: 0.7rem; margin: auto 0 0; padding-top: 0.6rem; }
.pacchetto-dl .bottone { width: 100%; justify-content: center; text-align: center; }
.impronta-dl { margin-top: 0.45rem; font-size: 0.85rem; color: var(--testo-2); }
.impronta-dl summary { cursor: pointer; }
.impronta-dl code { display: block; margin-top: 0.3rem; word-break: break-all; font-size: 0.8rem; }
.nota-dl { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--testo-2); }
.limiti-dl { margin: 1rem 0 0; font-size: 0.95rem; }
.tuo-sistema { display: none; position: absolute; top: -0.75rem; left: 1.5rem; background: var(--ambra-300); color: var(--grafite); font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px; }
.scheda-download.consigliato { border: 2px solid var(--ambra-300); }
.scheda-download.consigliato .tuo-sistema { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .scheda-download, .logo-sistema { transition: none; } }
.codice { background: var(--grafite); color: #e7ebef; padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; font-size: 0.92rem; line-height: 1.7; }

/* Domande */
.domande { display: grid; gap: 0.7rem; margin-bottom: 2.5rem; }
.domanda { background: var(--superficie); border: 1px solid var(--bordo); border-radius: 12px; padding: 0 1.2rem; }
.domanda summary { cursor: pointer; list-style: none; font-weight: 700; padding: 1rem 2rem 1rem 0; position: relative; }
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after { content: "+"; position: absolute; right: 0; top: 0.85rem; font-size: 1.4rem; line-height: 1; color: var(--link); }
.domanda[open] summary::after { content: "–"; }
.domanda p { color: var(--testo-2); }

/* Modulo */
.modulo { display: grid; gap: 1.1rem; }
.campo label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 1rem; }
.campo input[type="text"], .campo input[type="email"], .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--testo); background: var(--fondo);
  border: 1px solid #b7c0ca; border-radius: 10px; padding: 0.7rem 0.85rem;
}
@media (prefers-color-scheme: dark) { .campo input[type="text"], .campo input[type="email"], .campo select, .campo textarea { border-color: #4a525d; } }
.campo textarea { resize: vertical; min-height: 9rem; }
.campo-spunta { display: flex; gap: 0.6rem; align-items: flex-start; }
.campo-spunta input { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; accent-color: var(--ambra-600); flex-shrink: 0; }
.campo-spunta label { font-weight: 400; }
.campo-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { border: 1px dashed var(--bordo); border-radius: 12px; padding: 0.8rem 1rem 0.4rem; margin: 0; }
.captcha legend { font-weight: 700; padding: 0 0.4rem; font-size: 1rem; }
.captcha-box { min-height: 78px; display: flex; align-items: center; }
.captcha-attesa, .captcha-nota, .nota-modulo { color: var(--testo-2); font-size: 0.92rem; margin: 0.3rem 0; }
.modulo .bottone { justify-self: start; }
.avviso { padding: 0.8rem 1rem; border-radius: 10px; border-left: 4px solid var(--nebbia); background: var(--superficie-2); margin: 0; }
.avviso-ok { border-left-color: var(--inerte); }
.avviso-errore { border-left-color: var(--minaccia); }
.avviso-bozza { background: rgb(255 255 255 / 0.07); color: #fff; font-weight: 700; margin-top: 0.5rem; }
.testo-legale p, .testo-legale li { color: var(--testo); }

/* Radice */
.scelta-lingue { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 34rem; }
.scelta-lingue a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 1.1rem; border-radius: 12px; border: 1px solid rgb(255 255 255 / 0.14); background: rgb(27 31 36 / 0.75); color: #fff; text-decoration: none; }
.scelta-lingue a:hover { border-color: var(--ambra-300); color: #fff; }
.lingua-nome { font-weight: 700; }
.lingua-motto { color: var(--testo-2); font-size: 0.98rem; }
.eroe-radice .azioni { margin-bottom: 2.2rem; }
.link-errore { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }

/* ---- Piè di pagina ---- */
.piede { background: var(--notte); border-top: 1px solid rgb(255 255 255 / 0.06); padding-top: 3.5rem; font-size: 1rem; }
.piede-dentro { width: min(var(--larghezza), 100% - 2rem); margin-inline: auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.piede-marchio { grid-column: span 2; }
@media (max-width: 600px) { .piede-marchio { grid-column: auto; } }
.motto { color: var(--testo-2); margin-top: 0.8rem; }
.piede h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--testo-2); margin-bottom: 0.8rem; }
.piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.piede a { color: #dfe4ea; text-decoration: none; }
.piede a:hover { color: #fff; text-decoration: underline; }
.piede-fondo { width: min(var(--larghezza), 100% - 2rem); margin: 3rem auto 0; padding: 1.4rem 0 2rem; border-top: 1px solid rgb(255 255 255 / 0.08); color: var(--testo-2); font-size: 0.92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.piede-fondo p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Schermate del programma (ip_schermata) e lightbox (sito.js) */
.schermata { margin: 0 0 1.6rem; }
.schermata a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--bordo); box-shadow: 0 14px 40px rgba(27, 31, 36, .16); background: var(--superficie); }
.schermata img { display: block; width: 100%; height: auto; }
.js .schermata a.zoomabile { cursor: zoom-in; }
.js .schermata a:not(.zoomabile) { cursor: default; }
.schermata a:focus-visible { outline: 3px solid var(--fuoco); outline-offset: 3px; }
.schermata figcaption { color: var(--testo-2); font-size: .95rem; margin-top: .7rem; max-width: 60rem; }
.schermata-grande { margin-bottom: 2.2rem; }
.schermate-coppia, .schermate-tre { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .schermate-coppia { grid-template-columns: 1fr 1fr; } .schermate-tre { grid-template-columns: repeat(3, 1fr); } }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(10, 12, 15, .86); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
dialog.lightbox .lightbox-chiudi { position: absolute; top: -.9rem; right: -.9rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: var(--ambra-300, #ECB65C); color: #1B1F24; font-size: 1.4rem; line-height: 1; cursor: pointer; }
dialog.lightbox .lightbox-chiudi:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { dialog.lightbox .lightbox-chiudi { top: .4rem; right: .4rem; } }

/* Controlli: sette passi più la scheda di chiusura, sempre a righe piene (1, 2 o 4 colonne). */
.passi-controlli { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .passi-controlli { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .passi-controlli { grid-template-columns: repeat(4, 1fr); } }
.passo-fine { background: linear-gradient(160deg, color-mix(in srgb, var(--ambra-300) 22%, var(--superficie)), var(--superficie)); border-color: var(--ambra-300); display: flex; flex-direction: column; }
.passo-fine .passo-n { background: var(--grafite); color: var(--ambra-300); }
.passo-fine .passo-n svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; }
.passo-fine .azioni { margin-top: auto; padding-top: .6rem; }
.passo-fine .bottone { width: 100%; justify-content: center; text-align: center; }

/* ===== PDF e attacchi (19/11/2026): animazioni SVG in linea (inc/attacchi-svg.php) =====
   Solo CSS (la CSP ha style-src 'self'). Un ciclo di 10 s per figura; le fasi a-daNN fanno comparire un elemento
   al NN% del ciclo e lo tolgono alla fine. Colori: viola «Attivo» per ciò che può agire, rosso «Minaccia» per
   l'attacco, verde «Inerte» per ciò che InertPDF nega; l'ambra resta il colore del marchio (processo isolato). */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.figura-att { margin: 0; --a-attivo: #5b43d6; --a-rosso: #c2362b; --a-verde: var(--inerte); --a-carta: #ffffff; --a-campo: #f2f4f7; }
@media (prefers-color-scheme: dark) { .figura-att { --a-attivo: #b4a6ff; --a-rosso: #ff7a6e; --a-carta: #2b313a; --a-campo: #22272e; } }
.fascia-scura .figura-att, .eroe .figura-att { --a-attivo: #b4a6ff; --a-rosso: #ff7a6e; --a-carta: #2b313a; --a-campo: #22272e; }
.figura-att figcaption { color: var(--testo-2); font-size: .95rem; margin-top: .8rem; line-height: 1.5; }
.figura-att figcaption strong { color: var(--testo); display: block; margin-bottom: .2rem; }
.figura-larga { max-width: 56rem; margin: 0 auto; }
.a-svg { display: block; width: 100%; height: auto; font-family: var(--carattere); font-size: 14px; overflow: visible; }
.a-svg text { fill: var(--testo); }
.a-pagina { fill: var(--a-carta); stroke: var(--bordo); stroke-width: 2; }
.a-piega { fill: none; stroke: var(--bordo); stroke-width: 2; }
.a-riga { fill: var(--testo-2); opacity: .45; }
.a-immagine { fill: var(--ambra-200); }
.a-logo { fill: var(--ambra-300); }
.a-bottone-pdf { fill: var(--a-attivo); }
.a-svg .a-bottone-testo { fill: #fff; font-size: 12px; font-weight: 700; }
.fascia-scura .a-svg .a-bottone-testo, .a-svg .a-invia text { fill: #fff; }
@media (prefers-color-scheme: dark) { .a-svg .a-bottone-testo, .a-svg .a-invia text { fill: #1b1f24; } }
.fascia-scura .a-svg .a-bottone-testo, .fascia-scura .a-svg .a-invia text { fill: #1b1f24; }
.a-svg .a-pdf-sigla { fill: var(--testo-2); font-weight: 800; font-size: 16px; letter-spacing: .12em; }
.a-filo { fill: none; stroke: var(--bordo); stroke-width: 1.5; stroke-dasharray: 260; }
.a-strato rect { stroke-width: 1.5; }
.a-neutro rect { fill: var(--a-carta); stroke: var(--bordo); }
.a-attivo rect { fill: color-mix(in srgb, var(--a-attivo) 14%, var(--a-carta)); stroke: var(--a-attivo); }
.a-svg .a-attivo text, .a-svg .a-gruppo-attivo { fill: var(--a-attivo); font-weight: 700; }
.a-graffa { fill: none; stroke: var(--testo-2); stroke-width: 1.5; }
.a-graffa-attiva { stroke: var(--a-attivo); }
.a-svg .a-gruppo { fill: var(--testo-2); font-weight: 700; font-size: 13px; }
.a-qr-fondo { fill: #fff; stroke: var(--bordo); }
.a-qr { fill: #1b1f24; }
.a-onda { fill: none; stroke: var(--a-attivo); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.a-puntatore { fill: #1b1f24; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.a-traccia { fill: none; stroke: var(--a-attivo); stroke-width: 2; stroke-dasharray: 6 5; }
.a-raggio { stroke: var(--a-attivo); stroke-width: 12; stroke-linecap: round; opacity: 0; }
.a-telefono rect { fill: #1b1f24; stroke: var(--bordo); stroke-width: 1.5; }
.a-telefono .a-schermo { fill: #3a4250; stroke: none; }
.a-svg .a-nota { fill: var(--testo-2); font-size: 13px; }
.a-svg .a-nota-rossa, .a-svg .a-allarme { fill: var(--a-rosso); font-weight: 700; font-size: 13px; }
.a-finestra > rect:first-child { fill: var(--a-carta); stroke: var(--a-rosso); stroke-width: 2; }
.a-pallino { fill: var(--bordo); }
.a-svg .a-titoletto { font-weight: 700; font-size: 15px; }
.a-campo { fill: var(--a-campo); stroke: var(--bordo); }
.a-scritto { fill: var(--testo); transform-box: fill-box; transform-origin: left center; }
.a-accedi { fill: var(--a-rosso); }
.a-traccia-rossa { fill: none; stroke: var(--a-rosso); stroke-width: 2; stroke-dasharray: 6 5; }
.a-pacco rect { fill: var(--a-rosso); }
.a-pacco path { fill: none; stroke: #fff; stroke-width: 2; }
.a-attaccante rect, .a-attaccante circle, .a-attaccante path { fill: color-mix(in srgb, var(--a-rosso) 12%, transparent); stroke: var(--a-rosso); stroke-width: 2; }
.a-attaccante .a-led { fill: var(--a-rosso); stroke: none; opacity: .35; }
.a-svg .a-etichetta { fill: var(--testo-2); font-size: 13px; font-weight: 700; }
.a-invia rect { fill: var(--a-attivo); }
.a-svg .a-invia text { font-weight: 700; }
.a-invia { transform-box: fill-box; transform-origin: center; }
.a-nuvola path { fill: color-mix(in srgb, var(--testo-2) 14%, transparent); stroke: var(--testo-2); stroke-width: 1.5; }
.a-difetto { fill: var(--a-rosso); }
.a-byte { fill: var(--testo-2); opacity: 0; }
.a-byte.a-byte-rosso { fill: var(--a-rosso); }
.a-lettore rect { fill: color-mix(in srgb, var(--testo-2) 7%, transparent); stroke: var(--bordo); stroke-width: 2; }
.a-cella { fill: none; stroke: var(--testo-2); stroke-width: 1.5; }
.a-pieno { fill: var(--testo-2); opacity: 0; }
.a-trabocco { fill: var(--a-rosso); opacity: 0; transform-box: fill-box; transform-origin: left center; }
.a-crepa { fill: none; stroke: var(--a-rosso); stroke-width: 2.5; stroke-linejoin: round; opacity: 0; }
.a-terminale > rect:first-child { fill: #101317; stroke: var(--a-rosso); stroke-width: 2; }
.a-prompt { fill: none; stroke: #ff7a6e; stroke-width: 2; }
.a-riga-t { fill: #ff7a6e; opacity: 0; }
.a-isolato rect { fill: color-mix(in srgb, var(--ambra-300) 9%, transparent); stroke: var(--ambra-300); stroke-width: 3; stroke-dasharray: 10 6; }
.a-svg .a-ambra { fill: var(--link); }
.a-esame > rect:first-child { fill: var(--a-carta); stroke: var(--bordo); }
.a-scansione { fill: var(--ambra-300); opacity: .75; }
.a-traccia-ambra { fill: none; stroke: var(--ambra-300); stroke-width: 2.5; }
.a-tentativo { fill: none; stroke: var(--testo-2); stroke-width: 2; stroke-dasharray: 5 5; }
.a-blocco circle { fill: var(--a-verde); }
.a-blocco path { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.a-svg .a-inerte-testo { fill: var(--a-verde); font-weight: 700; }
.a-traccia-verde { fill: none; stroke: var(--a-verde); stroke-width: 2.5; }
.a-vista > rect:first-child { fill: var(--a-carta); stroke: var(--a-verde); stroke-width: 2; }
.a-indirizzo { fill: color-mix(in srgb, var(--a-verde) 12%, transparent); stroke: var(--a-verde); }
.a-svg .a-mono { font-family: var(--mono); font-size: 12px; }
.a-svg .a-inerte-piccolo { fill: var(--a-verde); font-size: 11px; font-weight: 700; }

/* Impaginazione */
.att-sezione { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) {
  .att-sezione { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .att-rovescia > .att-testo { order: 2; }
  .att-home { grid-template-columns: 1fr 1fr; }
}
.att-n { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; margin-right: .6rem; border-radius: 50%; background: var(--grafite); color: var(--ambra-300); font-size: 1rem; vertical-align: .15em; }
.att-difese { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.att-difese li { padding-left: 1rem; border-left: 3px solid var(--ambra-300); line-height: 1.55; }
.att-difese strong { color: var(--testo); }
.att-fonti { padding-left: 1.3rem; display: grid; gap: .5rem; color: var(--testo-2); }
.att-fonti a { overflow-wrap: anywhere; }

/* Animazioni */
@keyframes a-da5 { 0%, 5% { opacity: 0; } 9%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da15 { 0%, 15% { opacity: 0; } 19%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da20 { 0%, 20% { opacity: 0; } 24%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da25 { 0%, 25% { opacity: 0; } 29%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da30 { 0%, 30% { opacity: 0; } 34%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da35 { 0%, 35% { opacity: 0; } 39%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da40 { 0%, 40% { opacity: 0; } 44%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da45 { 0%, 45% { opacity: 0; } 49%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da50 { 0%, 50% { opacity: 0; } 54%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da55 { 0%, 55% { opacity: 0; } 59%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da60 { 0%, 60% { opacity: 0; } 64%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da65 { 0%, 65% { opacity: 0; } 69%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-da70 { 0%, 70% { opacity: 0; } 74%, 85% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes a-esce { 0% { opacity: 0; transform: translateX(-110px); } 12% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
@keyframes a-filo { 0% { stroke-dashoffset: 260; opacity: 1; } 12% { stroke-dashoffset: 0; } 82% { opacity: 1; stroke-dashoffset: 0; } 92%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes a-pulsa { from { stroke-width: 1.5; } to { stroke-width: 3; } }
@keyframes a-marcia { to { stroke-dashoffset: -22; } }
@keyframes a-punta { 0% { transform: translate(330px, 300px); opacity: 0; } 5% { opacity: 1; } 16%, 18% { transform: translate(150px, 143px); } 20% { transform: translate(150px, 143px) scale(.85); } 23%, 85% { transform: translate(150px, 143px); opacity: 1; } 92%, 100% { transform: translate(150px, 143px); opacity: 0; } }
@keyframes a-onda20 { 0%, 19% { opacity: 0; transform: scale(.4); } 21% { opacity: 1; } 32%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes a-onda40 { 0%, 39% { opacity: 0; transform: scale(.4); } 41% { opacity: 1; } 52%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes a-raggio { 0%, 32% { opacity: 0; } 35% { opacity: .35; } 38% { opacity: 0; } 41% { opacity: .35; } 44%, 100% { opacity: 0; } }
@keyframes a-scrive-a { 0%, 32% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 93%, 100% { transform: scaleX(0); } }
@keyframes a-scrive-b { 0%, 41% { transform: scaleX(0); } 49%, 85% { transform: scaleX(1); } 93%, 100% { transform: scaleX(0); } }
@keyframes a-scrive-c { 0%, 4% { transform: scaleX(0); } 14%, 85% { transform: scaleX(1); } 93%, 100% { transform: scaleX(0); } }
@keyframes a-scrive-d { 0%, 17% { transform: scaleX(0); } 32%, 85% { transform: scaleX(1); } 93%, 100% { transform: scaleX(0); } }
@keyframes a-pacco1 { 0%, 57% { opacity: 0; transform: translate(500px, 102px); } 59% { opacity: 1; } 72% { opacity: 1; transform: translate(588px, 120px); } 76%, 100% { opacity: 0; transform: translate(588px, 120px); } }
@keyframes a-pacco2 { 0%, 45% { opacity: 0; transform: translate(140px, 230px); } 47% { opacity: 1; } 56% { transform: translate(300px, 196px); } 64% { transform: translate(420px, 128px); } 73% { opacity: 1; transform: translate(560px, 120px); } 77%, 100% { opacity: 0; transform: translate(560px, 120px); } }
@keyframes a-preme { 0%, 38% { transform: none; } 41% { transform: scale(.92); } 44%, 100% { transform: none; } }
@keyframes a-led { 0%, 74% { opacity: .35; } 77% { opacity: 1; } 80% { opacity: .35; } 83% { opacity: 1; } 86%, 100% { opacity: .35; } }
@keyframes a-byte { 0% { opacity: 0; transform: none; } 2% { opacity: 1; } 9% { opacity: 1; transform: translateX(72px); } 11%, 100% { opacity: 0; transform: translateX(72px); } }
@keyframes a-byte-rosso { 0%, 24% { opacity: 0; transform: none; } 26% { opacity: 1; } 34% { opacity: 1; transform: translateX(300px); } 37%, 100% { opacity: 0; transform: translateX(300px); } }
@keyframes a-pieno { 0% { opacity: 0; } 3%, 55% { opacity: .85; } 62%, 100% { opacity: 0; } }
@keyframes a-trabocca { 0%, 33% { opacity: 0; transform: scaleX(0); } 35% { opacity: 1; } 43%, 85% { opacity: 1; transform: scaleX(1); } 93%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes a-scansiona { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(86px); } }
@keyframes a-lampeggia { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.a-strato { animation: a-esce 10s infinite both; }
.a-filo { animation: a-filo 10s infinite both; }
.s2 { animation-delay: .3s; } .s3 { animation-delay: .6s; } .s4 { animation-delay: 1.2s; } .s5 { animation-delay: 1.5s; } .s6 { animation-delay: 1.8s; } .s7 { animation-delay: 2.1s; }
.a-struttura .a-attivo rect { animation: a-pulsa 1.4s ease-in-out infinite alternate; }
.a-struttura .a-graffa, .a-struttura .a-gruppo { animation: a-da20 10s infinite both; }
.a-struttura .a-graffa-attiva, .a-struttura .a-gruppo-attivo { animation: a-da35 10s infinite both; }

.a-inganno .a-puntatore { animation: a-punta 10s infinite both; }
.a-inganno .a-onda { animation: a-onda20 10s infinite both; }
.a-inganno .t1 { animation: a-da20 10s infinite both, a-marcia 1s linear infinite; }
.a-inganno .a-finestra { animation: a-da25 10s infinite both; }
.a-inganno .a-scritto.w1 { animation: a-scrive-a 10s infinite both; }
.a-inganno .a-scritto.w2 { animation: a-scrive-b 10s infinite both; }
.a-inganno .a-raggio { animation: a-raggio 10s infinite both; }
.a-inganno .a-telefono, .a-inganno .a-telefono + .a-nota { animation: a-da30 10s infinite both; }
.a-inganno .t2 { animation: a-da40 10s infinite both, a-marcia 1s linear infinite; }
.a-inganno .a-falsa { animation: a-da50 10s infinite both; }
.a-inganno .a-traccia-rossa { animation: a-da55 10s infinite both, a-marcia 1s linear infinite; }
.a-inganno .a-pacco { animation: a-pacco1 10s infinite both; }
.a-inganno .a-attaccante, .a-inganno .a-attaccante + .a-allarme, .a-inganno .a-nota-rossa { animation: a-da55 10s infinite both; }

.a-modulo .a-scritto.w1 { animation: a-scrive-c 10s infinite both; }
.a-modulo .a-scritto.w2 { animation: a-scrive-d 10s infinite both; }
.a-modulo .a-invia { animation: a-preme 10s infinite both; }
.a-modulo .a-onda { animation: a-onda40 10s infinite both; }
.a-modulo .a-traccia-rossa { animation: a-da40 10s infinite both, a-marcia 1s linear infinite; }
.a-modulo .a-pacco { animation: a-pacco2 10s infinite both; }
.a-modulo .a-led { animation: a-led 10s infinite both; }
.a-modulo .a-attaccante + .a-allarme { animation: a-da60 10s infinite both; }

.a-apertura .a-byte { animation: a-byte 10s infinite both; }
.a-apertura .b2 { animation-delay: .5s; } .a-apertura .b3 { animation-delay: 1s; } .a-apertura .b4 { animation-delay: 1.5s; } .a-apertura .b5 { animation-delay: 2s; }
.a-apertura .a-byte-rosso { animation: a-byte-rosso 10s infinite both; }
.a-apertura .a-pieno { animation: a-pieno 10s infinite both; }
.a-apertura .c2 { animation-delay: .3s; } .a-apertura .c3 { animation-delay: .6s; } .a-apertura .c4 { animation-delay: .9s; } .a-apertura .c5 { animation-delay: 1.2s; } .a-apertura .c6 { animation-delay: 1.5s; } .a-apertura .c7 { animation-delay: 1.8s; } .a-apertura .c8 { animation-delay: 2.1s; }
.a-apertura .a-trabocco { animation: a-trabocca 10s infinite both; }
.a-apertura .a-crepa { animation: a-da40 10s infinite both; }
.a-apertura .a-terminale { animation: a-da45 10s infinite both; }
.a-apertura .r1 { animation: a-da50 10s infinite both; } .a-apertura .r2 { animation: a-da55 10s infinite both; } .a-apertura .r3 { animation: a-da60 10s infinite both; } .a-apertura .r4 { animation: a-da65 10s infinite both; }
.a-apertura .a-esegue { animation: a-da50 10s infinite both; }

.a-inertpdf .a-scansione { animation: a-scansiona 2.4s ease-in-out infinite; }
.a-inertpdf .a-tentativo.u1 { animation: a-da15 10s infinite both, a-marcia 1s linear infinite; }
.a-inertpdf .a-tentativo.u2 { animation: a-da25 10s infinite both, a-marcia 1s linear infinite; }
.a-inertpdf .a-tentativo.u3 { animation: a-da35 10s infinite both, a-marcia 1s linear infinite; }
.a-inertpdf .a-blocco.u1 { animation: a-da20 10s infinite both; }
.a-inertpdf .a-blocco.u2 { animation: a-da30 10s infinite both; }
.a-inertpdf .a-blocco.u3 { animation: a-da40 10s infinite both; }
.a-inertpdf .a-inerte-testo { animation: a-da45 10s infinite both; }
.a-inertpdf .a-traccia-verde { animation: a-da50 10s infinite both; }
.a-inertpdf .a-vista { animation: a-da55 10s infinite both; }
.a-inertpdf .a-vista + .a-nota { animation: a-da55 10s infinite both; }
.a-inertpdf .a-indirizzo { animation: a-lampeggia 1.6s ease-in-out infinite; }

/* Fuori dalla finestra le animazioni si fermano (sito.js); con «riduci movimento» resta il fotogramma finale. */
.a-svg.ferma * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .a-svg * { animation: none !important; }
  .a-puntatore, .a-onda, .a-raggio, .a-pacco, .a-byte { display: none; }
  .a-pieno { opacity: .85; }
  .a-trabocco, .a-crepa, .a-riga-t { opacity: 1; }
}
.att-inertpdf + p { margin-top: 2rem; }
