/* Studio Alizzio — foglio di stile unico.
   Colori e caratteri: assets/Studio Alizzio Brand (standalone).html
   Impianto (griglia, margini, altezze, forme): assets/ventriloc.ca_en_.png */

/* ============================================================ token */

:root {
  /* Brand: valori esatti dal brand book, non derivati */
  --ink: #141414;
  --blue: #2234c3;
  --paper: #f4f2ee;
  --white: #fff;

  /* Tinte degli stessi valori. Nessun colore brand nuovo. */
  --ink-80: rgba(20, 20, 20, 0.8);
  /* Il grado più chiaro ammesso per il testo: su carta misura 4.9:1.
     Sotto questa soglia le etichette piccole non rispettano il livello AA. */
  --ink-62: rgba(20, 20, 20, 0.62);
  --ink-14: rgba(20, 20, 20, 0.14);
  --ink-08: rgba(20, 20, 20, 0.08);
  --paper-deep: #eae7e0;
  --blue-08: rgba(34, 52, 195, 0.08);
  --blue-24: rgba(34, 52, 195, 0.24);
  /* Il blu del brand su ink dà 2.1:1. Questa è la sola schiaritura ammessa,
     usata esclusivamente per testo e bordi sulle superfici scure: 5.9:1. */
  --blue-lift: #7c88f5;

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Instrument Sans", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Impianto ripreso dal riferimento */
  --gutter: 20px;
  --inner: 24px;
  --head-h: 76px;
  --col-gap: 10px;
  --r: 12px;
  --r-lg: 20px;

  --step: 4px;
  --sec-y: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 30px;
    --inner: 32px;
    --head-h: 88px;
    --col-gap: 12px;
    --sec-y: 104px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 60px;
    --inner: 55px;
    --head-h: 104px;
    --col-gap: 20px;
    --sec-y: 136px;
    --r-lg: 24px;
  }
}

/* ============================================================ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

@media (min-width: 1200px) {
  body {
    font-size: 1.1875rem;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.skip:focus {
  left: var(--gutter);
}

/* ============================================================ impianto */

.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  max-width: 1680px;
}

.sec {
  padding-block: var(--sec-y);
}

/* ============================================================ tipografia */

.h-xl {
  font-size: clamp(2.375rem, 7.4vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -0.038em;
}

.h-lg {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.h-md {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.16;
  letter-spacing: -0.024em;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-80);
  max-width: 62ch;
}

@media (min-width: 768px) {
  .lede {
    font-size: 1.1875rem;
  }
}

.prose {
  color: var(--ink-80);
  max-width: 68ch;
}

.prose + .prose {
  margin-top: calc(var(--step) * 5);
}

/* Il solo gesto formale: sottolineatura blu, ereditata dal marchio.
   Resta su una riga sola: spezzata a metà sembrerebbe un errore. */
.mark-u {
  white-space: nowrap;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.08em;
  padding-bottom: 0.06em;
}

.num {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ============================================================ bottoni */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--fill {
  background: var(--ink);
  color: var(--paper);
}

.btn--fill:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-14);
}

.btn--line:hover {
  border-color: var(--ink);
  background: var(--ink-08);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================ header */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.head--stuck {
  border-bottom-color: var(--ink-08);
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Il marchio è 670x631: l'altezza va lasciata libera, non forzata a quadrato. */
.brand__mark {
  width: 34px;
  height: auto;
}

.brand__name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__sub {
  display: none;
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-62);
  margin-top: 4px;
  line-height: 1;
}

@media (min-width: 1200px) {
  .brand__mark {
    width: 40px;
  }

  .brand__name {
    font-size: 1.1875rem;
  }

  .brand__sub {
    display: block;
  }
}

/* Pillola di navigazione, ripresa dal riferimento */
.nav {
  display: none;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--ink-08);
    border-radius: 999px;
    padding: 5px;
  }
}

.nav__a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-80);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav__a:hover {
  background: var(--white);
  color: var(--ink);
}

.head__cta {
  flex-shrink: 0;
}

.head__cta .btn {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9375rem;
}

/* ============================================================ hero */

.hero {
  padding-top: calc(var(--sec-y) * 0.62);
  padding-bottom: var(--sec-y);
}

.hero__grid {
  display: grid;
  gap: 48px;
}

/* Senza questo, la larghezza minima della tabella allarga tutta la pagina. */
.hero__grid > *,
.report,
.panel {
  min-width: 0;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: var(--col-gap);
    align-items: center;
  }
}

.hero__copy {
  max-width: 44ch;
}

.hero__lede {
  margin-top: calc(var(--step) * 7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: calc(var(--step) * 9);
}

/* ============================================================ estratto report */

.report {
  display: grid;
  gap: 14px;
}

@media (min-width: 1000px) {
  .report {
    justify-self: end;
    width: 100%;
    max-width: 560px;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04),
    0 12px 28px -14px rgba(20, 20, 20, 0.18);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--inner) 14px;
  border-bottom: 1px solid var(--ink-08);
}

.panel__t {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  margin: 0;
}

.panel__note {
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-62);
  white-space: nowrap;
}

.panel__body {
  padding: 6px var(--inner) 18px;
  /* Un contenuto largo scorre qui dentro, mai sulla pagina. */
  overflow-x: auto;
}

/* Didascalia della tabella: va a capo, al contrario di .panel__note */
.acct__cap {
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-62);
}

.panel__foot {
  padding: 0 var(--inner) 16px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-62);
}

/* Tabella dei conti */
.acct {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.acct caption {
  text-align: left;
  padding: 10px 0 4px;
  font-size: 0.75rem;
  color: var(--ink-62);
}

.acct th,
.acct td {
  padding: 7px 0;
  text-align: right;
  border-bottom: 1px solid var(--ink-08);
  white-space: nowrap;
}

.acct thead th {
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-62);
  padding-bottom: 9px;
}

.acct th[scope="row"] {
  text-align: left;
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-80);
  padding-right: 12px;
  white-space: normal;
}

.acct td {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--ink-80);
  padding-left: 14px;
}

.acct tr:last-child th,
.acct tr:last-child td {
  border-bottom: 0;
}

.acct .is-total th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
}

.acct .is-total td {
  color: var(--ink);
  font-weight: 500;
}

.acct .is-total th,
.acct .is-total td {
  border-top: 1px solid var(--ink-14);
  border-bottom: 0;
  padding-top: 9px;
}

/* Il blu marca il periodo su cui si decide: l'anno corrente, e solo
   sulle righe di risultato. Colore come indice, non come decorazione. */
.acct thead th:nth-of-type(1),
.acct .is-total td:nth-of-type(1) {
  color: var(--blue);
}

/* Rendiconto sintetico */
.flows {
  display: grid;
  gap: 2px;
}

.flows__r {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ink-08);
  font-size: 0.8125rem;
}

.flows__r:last-child {
  border-bottom: 0;
  border-top: 1px solid var(--ink-14);
  margin-top: 4px;
  padding-top: 11px;
  font-weight: 500;
}

/* La riga di sintesi è il risultato: stesso blu della tabella. */
.flows__r:last-child .flows__v {
  color: var(--blue);
}

.flows__k {
  color: var(--ink-80);
}

.flows__v {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ============================================================ blocchi */

.band {
  background: var(--paper-deep);
  border-radius: var(--r-lg);
  padding-block: var(--sec-y);
}

.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--col-gap);
    align-items: start;
  }
}

.split__aside {
  position: sticky;
  top: calc(var(--head-h) + 32px);
}

@media (max-width: 899px) {
  .split__aside {
    position: static;
  }
}

/* Sintomi: elenco denso, non card */
.symptoms {
  display: grid;
  gap: 0;
  margin-top: calc(var(--step) * 8);
}

.symptoms li {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--ink-14);
}

.symptoms li:last-child {
  border-bottom: 1px solid var(--ink-14);
}

.symptoms b {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.018em;
}

.symptoms span {
  color: var(--ink-62);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 60ch;
}

/* Metodo: sequenza reale, quindi numerata */
.steps {
  counter-reset: s;
  margin-top: calc(var(--step) * 8);
}

.steps li {
  counter-increment: s;
  display: grid;
  gap: 8px;
  padding: 26px 0;
  border-top: 1px solid var(--ink-14);
}

.steps li:last-child {
  border-bottom: 1px solid var(--ink-14);
}

@media (min-width: 700px) {
  .steps li {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.steps h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

@media (min-width: 700px) {
  .steps h3 {
    grid-column: 2;
  }
}

.steps p {
  color: var(--ink-62);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 62ch;
}

@media (min-width: 700px) {
  .steps p {
    grid-column: 2;
  }
}

/* Servizi — sequenza a pannelli. Su desktop ogni pannello resta ancorato
   mentre lo scroll porta in copertura il successivo (vedi script in fondo
   alla pagina); qui sotto solo l'aspetto, il movimento lo guida il JS. */
.flow__title {
  margin-bottom: var(--sec-y);
}

.flow__panel {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  border-radius: var(--r-lg);
  background: var(--paper-deep);
}

/* L'ingresso ruota questo livello interno, mai il pannello: il pin di
   ScrollTrigger e la rotazione condividono altrimenti la stessa proprietà
   transform e si sovrascrivono a vicenda. */
.flow__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: calc(var(--step) * 6);
  min-height: 92vh;
  padding: calc(var(--head-h) + var(--sec-y)) var(--inner) var(--sec-y);
}

.flow__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-62);
}

.flow__num {
  color: var(--blue);
}

/* Macchina da scrivere: ogni carattere è uno span (vedi script in fondo alla
   pagina), rivelato con un ritardo crescente impostato inline per carattere. */
[data-typewriter] .char {
  opacity: 0;
  transition: opacity 0.1s linear;
}

[data-typewriter].is-typed .char {
  opacity: 1;
}

.flow__subtitle {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--blue);
}

.flow__lead {
  max-width: 52ch;
}

.flow__deliv {
  margin-top: calc(var(--step) * 4);
  max-width: 640px;
}

/* Elenco lungo di attività (frasi intere, non etichette brevi): una colonna,
   marcatore a triangolo pieno anziché il rombo di .deliv. */
.flow__activities {
  display: grid;
  gap: 10px;
  margin-top: calc(var(--step) * 4);
  max-width: 62ch;
}

.flow__activities li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-80);
}

.flow__activities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--blue);
}

/* Fallback (mobile o senza ScrollTrigger): nessuno stato nascosto finché il
   JS non aggiunge la classe, così il contenuto resta visibile se lo script
   non si carica. */
.flow__panel.flow__panel--observed {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.flow__panel.flow__panel--observed.flow__panel--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .flow__panel.flow__panel--observed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.deliv {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .deliv {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--col-gap);
  }
}

.deliv li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-80);
}

.deliv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  transform: rotate(45deg);
}

/* Studio */
.who {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .who {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
}

.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink-14);
}

.facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-14);
}

.facts dt {
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-62);
}

.facts dd {
  margin: 0;
  font-size: 0.9375rem;
  text-align: right;
}

/* ============================================================ form */

.contact {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
}

.form {
  display: grid;
  gap: 18px;
}

@media (min-width: 620px) {
  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.f {
  display: grid;
  gap: 7px;
}

.f > label {
  font-size: 0.875rem;
  font-weight: 500;
}

.f__hint {
  font-size: 0.8125rem;
  color: var(--ink-62);
}

.f input,
.f select,
.f textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink-14);
  border-radius: var(--r);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.f textarea {
  min-height: 148px;
  resize: vertical;
}

.f input::placeholder,
.f textarea::placeholder {
  color: var(--ink-62);
}

.f input:focus,
.f select:focus,
.f textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-24);
}

.f input[aria-invalid="true"],
.f textarea[aria-invalid="true"] {
  border-color: #a3231d;
}

.f__err {
  font-size: 0.8125rem;
  color: #a3231d;
  min-height: 0;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-80);
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}

/* Visibile solo agli screen reader */
.sr,
/* Trappola anti-spam: fuori dal flusso e fuori dal tab order */
.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--ink-14);
  background: var(--white);
}

.status[hidden] {
  display: none;
}

.status--ok {
  border-color: var(--blue-24);
  background: var(--blue-08);
}

.status--ko {
  border-color: rgba(163, 35, 29, 0.3);
  background: rgba(163, 35, 29, 0.06);
  color: #7d1b16;
}

/* ============================================================ footer */

.foot {
  padding: 0 var(--gutter) var(--gutter);
}

.foot__panel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 56px var(--inner);
  max-width: 1680px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .foot__panel {
    padding: 80px var(--inner);
  }
}

.foot__mark {
  position: absolute;
  right: -14%;
  bottom: -30%;
  width: 62%;
  max-width: 620px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

@media (min-width: 900px) {
  .foot__mark {
    right: -4%;
    bottom: -34%;
    width: 40%;
  }
}

.foot__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .foot__in {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
}

.foot__claim {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.foot__links {
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
}

.foot__links a {
  color: var(--paper);
  text-decoration-color: rgba(244, 242, 238, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.18s var(--ease), color 0.18s var(--ease);
}

.foot__links a:hover {
  color: var(--blue-lift);
  text-decoration-color: currentColor;
}

.foot__legal {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 242, 238, 0.16);
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.62);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot__legal a {
  color: inherit;
}

.foot__legal a:hover {
  color: var(--blue-lift);
}

/* ============================================================ pagina documento */

.doc {
  max-width: 72ch;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.doc h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: calc(var(--step) * 12);
}

.doc p,
.doc ul {
  margin-top: calc(var(--step) * 4);
  color: var(--ink-80);
}

.doc ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  transform: rotate(45deg);
}

.doc a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.doc .draft,
.doc .todo {
  display: block;
  margin-top: calc(var(--step) * 4);
  padding: 14px 16px;
  border: 1px solid var(--ink-14);
  border-radius: var(--r);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--ink-62);
}

.doc .legal {
  margin-top: calc(var(--step) * 12);
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-62);
}

/* ============================================================ cookie */

/* Avviso informativo, non un consenso a scelta multipla: il sito non
   profila e non traccia (vedi privacy.html), quindi non c'è nulla da
   accettare o rifiutare — solo da far presente. Un solo pulsante di presa
   visione, coerente con "ogni numero deve essere vero o assente". */
.cookiebar {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  left: var(--gutter);
  z-index: 80;
  display: grid;
  gap: 14px;
  margin-left: auto;
  padding: 20px var(--inner);
  background: var(--white);
  border: 1px solid var(--ink-14);
  border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04),
    0 20px 40px -18px rgba(20, 20, 20, 0.3);
}

@media (min-width: 560px) {
  .cookiebar {
    left: auto;
    width: 380px;
  }
}

.cookiebar[hidden] {
  display: none;
}

.cookiebar__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-80);
}

.cookiebar__text a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.cookiebar__ok {
  justify-self: start;
  min-height: 44px;
}

/* L'ingresso è l'unico movimento: nessuna uscita animata, si chiude e basta. */
.cookiebar.is-in {
  animation: cookiebar-in 0.5s var(--ease) forwards;
}

@keyframes cookiebar-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookiebar.is-in {
    animation: none;
  }
}

/* ============================================================ movimento */

/* Un solo momento: la prima schermata entra al caricamento. */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s var(--ease) forwards;
}

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.16s; }
.rise-3 { animation-delay: 0.27s; }
.rise-4 { animation-delay: 0.38s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Rivelazione al passaggio in vista, fuori dal primo schermo: la classe
   reveal--in arriva da IntersectionObserver in fondo a index.html. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].reveal--in {
  opacity: 1;
  transform: none;
}

/* Scaglionamento per i gruppi: un piccolo ritardo crescente fra i fratelli,
   così il gruppo si rivela in sequenza invece che tutto insieme. */
.symptoms li:nth-child(1)[data-reveal] { transition-delay: 0s; }
.symptoms li:nth-child(2)[data-reveal] { transition-delay: 0.08s; }
.symptoms li:nth-child(3)[data-reveal] { transition-delay: 0.16s; }
.symptoms li:nth-child(4)[data-reveal] { transition-delay: 0.24s; }

.steps li:nth-child(1)[data-reveal] { transition-delay: 0s; }
.steps li:nth-child(2)[data-reveal] { transition-delay: 0.08s; }
.steps li:nth-child(3)[data-reveal] { transition-delay: 0.16s; }
.steps li:nth-child(4)[data-reveal] { transition-delay: 0.24s; }
.steps li:nth-child(5)[data-reveal] { transition-delay: 0.32s; }

.facts > div:nth-child(1)[data-reveal] { transition-delay: 0s; }
.facts > div:nth-child(2)[data-reveal] { transition-delay: 0.06s; }
.facts > div:nth-child(3)[data-reveal] { transition-delay: 0.12s; }
.facts > div:nth-child(4)[data-reveal] { transition-delay: 0.18s; }
.facts > div:nth-child(5)[data-reveal] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
