/* GeluStudio — stile del sito
   Token in :root, poi le sezioni in ordine, poi il responsive (991 / 767 / 479). */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --crema: #f0efe3;
  --crema-scura: #e2e1d3;
  --avena: #c3c2b2;
  --carta: #fefdf5;
  --nero: #232323;
  --nero-profondo: #161616;
  --blu: #1d6ff2;
  --blu-testo: #1560dc;
  --blu-chiaro: #d9e3f5;
  --arancio: #fa6838;
  --verde: #2fbf5b;
  --verde-chiaro: #cef5ca;
  --verde-scuro: #114e0b;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --mano: "Caveat", cursive;

  --bordo-laterale: 2.5rem;
  --contenitore: 77rem;
  --raggio: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--nero);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
strong { font-weight: 500; }
::selection { background: var(--blu); color: #fff; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Base ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--contenitore) + 2 * var(--bordo-laterale));
  margin: 0 auto;
  padding: 0 var(--bordo-laterale);
}
.sezione { padding: 8rem 0; }
.scuro { background: var(--nero); color: var(--crema); }

.h1, .h2, .h3 { font-weight: 500; letter-spacing: -0.035em; line-height: .95; text-wrap: balance; }
.h1 { font-size: 5.5rem; }
.h2 { font-size: 4rem; }
.h3 { font-size: 2.5rem; }
.tenue { opacity: .5; }
.scuro .tenue { opacity: .55; }
.arancio { color: var(--arancio); }
.grande { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.forte { font-weight: 500; }

.etichetta {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .7;
}
.etichetta::before { content: ""; width: .375rem; height: .375rem; background: var(--blu); }
.mono-t {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: .7;
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  border-radius: .75rem;
  background: var(--blu);
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .2s, border-radius .2s, color .2s;
}
.btn svg { width: 1.125rem; height: 1.125rem; transition: transform .2s; }
.btn:hover { background: var(--nero); border-radius: .5rem; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--small { padding: .5rem 1.25rem; }
.btn--chiaro { background: var(--crema); color: var(--nero); }
.btn--chiaro:hover { background: #fff; }
.btn--bianco { background: #fff; color: var(--nero); }
.btn--bianco:hover { background: var(--nero); color: #fff; }

/* ---------- Logo e barra di navigazione ---------- */
.logo { display: block; }
.logo img { width: auto; height: 2rem; }
.logo--piede img { height: 6.5rem; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--crema);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.nav.is-nascosta { transform: translateY(-100%); }
.nav.is-staccata { box-shadow: 0 1px 0 var(--crema-scura); }
.nav__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90rem;
  min-height: 4.5rem;
  margin: 0 auto;
  padding: 0 var(--bordo-laterale);
}
.nav__menu { display: flex; align-items: center; gap: 1rem; }
.nav__links { display: flex; gap: .25rem; }
.nav__link {
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  opacity: .7;
  transition: opacity .2s;
}
.nav__link:hover { opacity: 1; }
.nav__toggle { display: none; }

/* ---------- 1. Hero ---------- */
.hero { padding: 4.5rem 0 5rem; }
.hero__grid .scena { margin-bottom: .25rem; }
.hero__track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 3.5rem;
}
.hero__rail {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--crema-scura);
  z-index: -1;
}
.hero__rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blu);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.3, .7, .2, 1);
}
.hero__tag {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .4em .75em;
  border: 2px solid var(--crema-scura);
  border-radius: 100vw;
  background: var(--crema);
  color: var(--avena);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color .3s, background-color .3s, border-color .3s, box-shadow .3s;
}
.hero__tag svg { width: .875rem; height: .875rem; }
.hero__tag.is-attivo { background: var(--blu-chiaro); border-color: var(--blu-chiaro); color: var(--blu); }
.hero__tag.is-attivo svg { --tappa-fondo: var(--blu); --tappa-segno: #fff; }
.hero__tag.is-attivo span { color: var(--nero); }
.hero__tag.is-ora { border-color: var(--blu); box-shadow: 0 0 0 4px rgba(29, 111, 242, .12); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3.5rem 5rem;
  align-items: end;
}
.hero__h { grid-column: 1 / -1; max-width: 17ch; font-size: 5.25rem; }
.hero__main { display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: .5rem; }
.hero__p { max-width: 33rem; font-size: 1.25rem; line-height: 1.3; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero__note { font-size: .9375rem; opacity: .6; }
.hero__visual { position: relative; }

/* Le quattro scene stop motion */
.scena {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(35, 35, 35, .1);
  border-radius: 1rem;
  background: var(--carta);
  box-shadow: 0 198px 79px rgba(0, 0, 0, .01), 0 111px 67px rgba(0, 0, 0, .04), 0 49px 49px rgba(0, 0, 0, .06), 0 12px 27px rgba(0, 0, 0, .07);
}
.scena canvas { width: 100%; height: auto; border-radius: .5rem; background: var(--carta); }
.scena--piatta { box-shadow: none; border-color: var(--crema-scura); }
.scena--larga { width: 100%; max-width: 46rem; margin: 0 auto; }

/* ---------- 2. Il problema ---------- */
.problema { padding: 11.25rem 0; }
.dueparti {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}
.dueparti__h { width: 100%; max-width: 32rem; }
.dueparti__p { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; max-width: 30rem; font-size: 1.125rem; line-height: 1.35; }
.scena--problema { max-width: 56rem; margin: 1rem auto 0; }

/* ---------- Lastra chiara (Il punto, Da dove partiamo) ---------- */
.punto { padding-bottom: 1rem; }
.lastra {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 2.5rem;
  border: 2px solid var(--crema-scura);
  border-radius: var(--raggio);
  background: var(--carta);
}
.lastra__testa {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem 5rem;
  align-items: end;
}
.lastra__lead { font-size: 1.25rem; line-height: 1.3; opacity: .75; }
.lastra__corpo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem 5rem;
  align-items: center;
}
.punto__testo { display: flex; flex-direction: column; gap: 2.5rem; }
.punto__frase { font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1.2; color: rgba(35, 35, 35, .6); }
.punto__frase strong { color: var(--nero); }
.evid { color: var(--nero); background: linear-gradient(transparent 62%, var(--blu-chiaro) 62%); }
.punto__nota { position: relative; padding-left: 1.5rem; }
.punto__linea { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blu); }
.punto__nota p { font-size: 1.125rem; line-height: 1.4; opacity: .75; }

/* ---------- 4. Da dove partiamo ---------- */
.partenza { padding-top: 1rem; }
.percorsi { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.percorso {
  display: grid;
  grid-template-columns: 2.25fr 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: var(--raggio);
  color: #fff;
}
.percorso--nero { background: var(--nero); }
.percorso--blu { background: var(--blu); }
.percorso__main { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.percorso__main .h3 { max-width: 16ch; margin-bottom: .5rem; }
.percorso__main p { max-width: 36rem; opacity: .85; }
.percorso__main .mono-t { margin-top: .5rem; }
.percorso__col .mono-t { margin-bottom: 1rem; }
.lista { display: flex; flex-direction: column; gap: .625rem; font-size: .9375rem; }
.lista li { display: grid; grid-template-columns: max-content 1fr; gap: .5rem; align-items: start; }
.lista__i { width: 1rem; height: 1rem; margin-top: .1rem; }
.lista__i--ok { color: var(--verde); }
.lista__i--no { color: rgba(255, 255, 255, .45); }
.percorso--blu .lista__i--ok { color: #fff; }
.percorso--blu .lista__i--ok { --segno: var(--blu); }

/* ---------- 5. Come lavoriamo ---------- */
.metodo { padding: 8rem 0 11.25rem; }
.metodo__testa {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 8rem;
}
.metodo__titolo { display: flex; flex-direction: column; gap: 1rem; }
.metodo__h { font-size: 4.75rem; max-width: 12ch; }
.metodo__p { font-size: 1.5rem; line-height: 1.25; opacity: .7; max-width: 30rem; }

.passi { position: relative; display: flex; flex-direction: column; gap: 9rem; }
.passi__linee { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.passi__linee path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.passi__binario { stroke: var(--crema-scura); }
.passi__blu { stroke: var(--blu); }
.passi__tag {
  position: absolute;
  z-index: 2;
  padding: .25rem 1rem;
  background: var(--crema);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.passi__tag .car { opacity: .15; transition: opacity .25s, filter .25s; filter: blur(1.5px); }
.passi__tag.is-attivo .car { opacity: 1; filter: none; }

.passo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 6rem;
  align-items: center;
}
.passo--dx { grid-template-columns: minmax(0, 1fr) 20rem; }
.passo--dx .passo__lato { order: 2; }
.passo__lato { display: flex; flex-direction: column; align-items: center; }
.passo__pill {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--crema-scura);
  border-radius: 100vw;
  background: var(--crema);
  color: var(--avena);
  font-weight: 500;
  line-height: 1.4;
  transition: color .4s, background-color .4s, border-color .4s;
}
.passo.is-attivo .passo__pill { background: var(--blu); border-color: var(--blu); color: #fff; }
.passo__testo {
  padding: 1.5rem 0;
  background: var(--crema);
  color: rgba(35, 35, 35, .75);
  font-size: .9375rem;
  line-height: 1.4;
  text-align: center;
}
.passo__testo strong { color: var(--nero); }
.passo__schede { width: 100%; max-width: 40rem; justify-self: end; }
.passo--dx .passo__schede { justify-self: start; }

.passi__fine {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 41rem;
  margin: 0 auto;
  padding-top: 1rem;
  background: var(--crema);
  text-align: center;
}
.passi__fine p { font-size: 1.25rem; opacity: .7; }

/* ---------- Intermezzo: nastro dei lavori ripetitivi ---------- */
.nastro { background: var(--nero-profondo); color: #fff; overflow: hidden; }
.nastro__corpo { position: relative; display: flex; justify-content: center; align-items: center; height: 100vh; height: 100dvh; }
.nastro__dietro { display: flex; flex-direction: column; flex: 1 1 0; align-self: flex-start; min-height: 100%; }
.nastro__lista { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; flex: 1 1 0; margin-bottom: .75rem; }
.nastro__riga { display: flex; justify-content: center; align-items: center; gap: 1rem; font-family: var(--mono); font-size: .8125rem; font-weight: 500; line-height: 1.3; text-transform: uppercase; }
.nastro__nome { flex: 0 0 auto; opacity: .5; }
.nastro__filo { width: 100%; height: 2px; border-radius: 100vw; background: rgba(255, 255, 255, .06); transform-origin: left; }
.nastro__tag { flex: 0 0 auto; display: flex; align-items: center; gap: .375rem; padding: .25rem .5rem; border-radius: 100vw; background: rgba(29, 111, 242, .22); }
.nastro__tag svg { width: .625rem; height: .625rem; color: var(--blu); }
.nastro__info {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  letter-spacing: -0.035em;
  line-height: .95;
}
.nastro__ombra { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle, rgb(22, 22, 22) 18%, rgba(22, 22, 22, 0) 62%); }
.nastro__h { color: var(--blu); font-size: 7.5rem; font-weight: 500; }
.nastro__n { display: inline-block; min-width: 1.15em; text-align: right; }
.nastro__t { max-width: 14ch; font-size: 3rem; font-weight: 500; }

/* ---------- 6. I prezzi ---------- */
.prezzi .dueparti { margin-bottom: 4rem; }
.conto { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--nero); }
.conto__voce { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--crema-scura); font-size: 1.25rem; letter-spacing: -0.02em; }
.conto__voce + .conto__voce { padding-left: 1.25rem; border-left: 1px solid var(--crema-scura); }
.conto__voce svg { position: absolute; top: 1.2rem; right: 1rem; width: 1.125rem; height: 1.125rem; color: var(--verde); }
.conto__voce--tot { background: var(--blu); color: #fff; border-color: var(--blu); }
.conto__voce--tot .mono-t { opacity: .8; }
.conto__voce--poi { color: rgba(35, 35, 35, .7); }

/* ---------- 7. Lavori fatti (nascosta) ---------- */
.casi .wrap { margin-bottom: 4rem; }
.casi__nastro { overflow: hidden; }
.casi__fila { display: flex; gap: .5rem; width: max-content; animation: scorri 60s linear infinite; }
.caso { display: flex; flex-direction: column; gap: 1rem; width: 28rem; padding: 1.5rem; border-radius: 1rem; background: var(--carta); }
.caso__nome { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.caso__dove { opacity: .6; }
.caso__prima-dopo { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
.caso__prima-dopo dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; opacity: .6; }
.caso__num { font-size: 5rem; font-weight: 500; letter-spacing: -0.04em; line-height: .9; margin-top: 2rem; }
.caso__sotto { font-size: 1.25rem; }
.caso__frase { opacity: .7; font-style: italic; }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- 8. Chi siamo ---------- */
.chi { padding-top: 2rem; }
.chi .dueparti { margin-bottom: 0; }
.bollini { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.bollini li { padding: .375rem .875rem; border: 2px solid var(--crema-scura); border-radius: 100vw; font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; }

/* ---------- 9. Garanzie ---------- */
.garanzie { padding: 8rem 0; overflow: hidden; }
.garanzie__testa { margin-bottom: 6rem; max-width: 32rem; }
.garanzie__griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
/* icona, titolo e testo delle quattro card su righe comuni (subgrid): i testi partono tutti alla stessa altezza */
.garanzia { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 0 1.5rem; }
.garanzia__linea { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blu); }
.garanzia__icona { width: 4.5rem; height: 4.5rem; margin-bottom: 2.5rem; }
.garanzia__info { display: contents; }
.garanzia__info .h3 { align-self: start; margin-bottom: 1rem; font-size: 2rem; }
.garanzia__info p { font-size: 1rem; line-height: 1.35; letter-spacing: 0; }

/* ---------- 10. Domande ---------- */
.domande__griglia { display: grid; grid-template-columns: 1fr 1.35fr; gap: 5rem; align-items: start; }
.domande__h .h2 { max-width: 10ch; }
.faq { border-top: 2px solid var(--nero); }
.faq__voce { border-bottom: 1px solid var(--avena); }
.faq__voce h3 { font: inherit; }
.faq__d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 1.5rem 0;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
}
.faq__d svg { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%; background: var(--crema-scura); transition: transform .35s cubic-bezier(.3, .7, .2, 1), background-color .2s, color .2s; }
.faq__d:hover svg { background: var(--blu); color: #fff; }
.faq__d[aria-expanded="true"] svg { transform: rotate(45deg); background: var(--nero); color: #fff; }
.faq__r { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.3, .7, .2, 1); }
.faq__r > div { overflow: hidden; }
.faq__r p { max-width: 40rem; padding-bottom: 1.75rem; font-size: 1.0625rem; line-height: 1.45; opacity: .75; }
.faq__voce.is-aperta .faq__r { grid-template-rows: 1fr; }

/* ---------- 11. Finale + 12. Piede ---------- */
.finale { position: relative; background: var(--blu); color: #fff; overflow: hidden; }
.finale__griglia { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.finale__corpo { position: relative; z-index: 1; padding-top: 11.25rem; padding-bottom: 11.25rem; pointer-events: none; }
.finale__corpo a { pointer-events: auto; }
.finale__testo { display: flex; flex-direction: column; gap: 1.5rem; max-width: 46rem; }
.finale__testo .h2 { margin-bottom: .5rem; }
.finale__testo p:not(.grande) { max-width: 36rem; font-size: 1.125rem; opacity: .85; }
.finale__cta { margin-top: 1rem; }

.piede { position: relative; z-index: 1; padding-bottom: 3rem; pointer-events: none; }
.piede a { pointer-events: auto; }
.piede__alto { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-top: 3rem; border-top: 2px solid rgba(255, 255, 255, .7); }
.piede__chi { display: flex; flex-direction: column; gap: 1.25rem; max-width: 24rem; }
.piede__chi p:not(.logo) { opacity: .85; }
.piede__col { display: flex; flex-direction: column; gap: 1rem; }
.piede__h, .piede__legale { font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; }
.piede__h { opacity: .7; line-height: 1.4; }
.piede__link { position: relative; display: flex; align-items: center; font-size: 1.25rem; letter-spacing: -0.02em; }
.piede__pallino { position: absolute; left: 0; width: .5rem; height: .5rem; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .3s cubic-bezier(.3, .7, .2, 1); }
.piede__testo { transition: transform .3s cubic-bezier(.3, .7, .2, 1); }
.piede__link:hover .piede__pallino { transform: scale(1); }
.piede__link:hover .piede__testo { transform: translateX(1rem); }
.piede__basso { display: flex; justify-content: space-between; gap: 1rem; margin-top: 5rem; }
.piede__legale--link:hover { text-decoration: underline 2px; text-underline-offset: 3px; }
.piede__legali { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Pagine di testo semplici (404) ---------- */
.legale { padding: 10rem 0 8rem; }
.legale .wrap { max-width: calc(48rem + 2 * var(--bordo-laterale)); }
.legale h1 { font-size: 4rem; margin-bottom: 1rem; }
.legale__data { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; opacity: .6; margin-bottom: 4rem; }
.legale h2 { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; margin: 3rem 0 1rem; }
.legale h3 { font-size: 1.25rem; font-weight: 500; margin: 2rem 0 .75rem; }
.legale p, .legale li { font-size: 1.0625rem; line-height: 1.55; }
.legale p + p, .legale p + ul, .legale ul + p { margin-top: 1rem; }
.legale ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.legale a { color: var(--blu-testo); text-decoration: underline; text-underline-offset: 3px; }
.legale table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.legale th, .legale td { padding: .75rem; border-bottom: 1px solid var(--crema-scura); text-align: left; vertical-align: top; }
.legale th { font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; }
.legale hr { border: 0; border-top: 1px solid var(--crema-scura); margin: 3rem 0; }

/* ---------- Stati iniziali delle animazioni (solo con JS) ---------- */
.js .passo__schede { opacity: 0; transform: translateY(32px); filter: blur(5px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s; }
.js .passo.is-visibile .passo__schede { opacity: 1; transform: none; filter: none; }
.js .passo__testo { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .passo.is-attivo .passo__testo { opacity: 1; transform: none; }

@media (min-width: 992px) and (max-width: 1200px) {
  .passo { grid-template-columns: 17rem minmax(0, 1fr); gap: 4rem; }
  .passo--dx { grid-template-columns: minmax(0, 1fr) 17rem; }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .sezione { padding: 6rem 0; }
  .h1, .hero__h, .metodo__h { font-size: 4rem; }
  .h2 { font-size: 3rem; }
  .h3 { font-size: 2rem; }

  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .4rem;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -.5rem;
  }
  .nav__toggle span { display: block; width: 1.5rem; height: 2px; margin: 0 auto; background: var(--nero); transition: transform .3s, background-color .3s; }
  .nav__toggle[aria-expanded="true"] span { background: var(--blu); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(.25rem) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-.25rem) rotate(-45deg); }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 5% 2rem;
    border-bottom: 2px solid var(--blu);
    background: var(--crema);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
  }
  .nav.is-aperta .nav__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__link { margin-bottom: -1px; padding: .75rem 0; border-color: var(--avena); font-size: 1.125rem; text-align: center; opacity: .8; }
  .nav__menu .btn { justify-content: center; padding: .875rem 1.25rem; font-size: 1.125rem; }

  .hero__track { margin: 2rem 0 3rem; }
  .hero__tag span { display: none; }
  .hero__tag.is-ora span { display: inline; }
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .problema { padding: 5rem 0; }
  .dueparti { flex-direction: column; gap: 2rem; }
  .dueparti__p { max-width: none; }

  .lastra__testa, .lastra__corpo { grid-template-columns: 1fr; gap: 2rem; }
  .percorso { grid-template-columns: 1fr 1fr; }
  .percorso__main { grid-column: 1 / -1; }

  .metodo { padding: 6rem 0; }
  .metodo__testa { grid-template-columns: 1fr; gap: 3rem; margin-bottom: 5rem; }
  .passi { gap: 5rem; padding-left: 2.5rem; }
  .passo, .passo--dx { grid-template-columns: 1fr; gap: 1.5rem; }
  .passo--dx .passo__lato { order: 0; }
  .passo__lato { align-items: flex-start; }
  .passo__pill { width: auto; padding: .875rem 1.5rem; }
  .passo__testo { max-width: 36rem; padding: 0; text-align: left; background: none; }
  .passo__schede, .passo--dx .passo__schede { justify-self: start; }
  .passi__tag { display: none; }
  .passi__fine { align-items: flex-start; text-align: left; margin: 0; }

  .nastro__h { font-size: 6rem; }
  .nastro__t { font-size: 2rem; }

  .conto { grid-template-columns: repeat(3, 1fr); }
  .conto__voce--tot { grid-column: 1 / 3; }
  .conto__voce:nth-child(4) { border-left: 0; padding-left: 1.25rem; }

  .garanzie__griglia { grid-template-columns: 1fr 1fr; gap: 3.5rem 1rem; }
  .domande__griglia { grid-template-columns: 1fr; gap: 3rem; }
  .domande__h .h2 { max-width: none; }
  .piede__alto { grid-template-columns: 1fr 1fr; }
  .piede__chi { grid-column: 1 / -1; }
}

/* ---------- Telefono grande ---------- */
@media (max-width: 767px) {
  :root { --bordo-laterale: 1.25rem; }
  .sezione { padding: 4.5rem 0; }
  .h1, .hero__h, .metodo__h { font-size: 2.75rem; }
  .h2 { font-size: 2.25rem; }
  .h3 { font-size: 1.75rem; }
  .grande { font-size: 1.25rem; }
  .punto__frase { font-size: 1.375rem; }
  .nav__bar { min-height: 4rem; }
  .logo img { height: 1.625rem; }
  .logo--piede img { height: 5.5rem; }

  .hero { padding-top: 4rem; }
  .hero__track { display: none; }
  .hero__grid { margin-top: 2.5rem; }
  .hero__main { gap: 1.5rem; }
  .hero__p { font-size: 1.125rem; }
  .scena { padding: .375rem; border-radius: .75rem; }
  .lastra .scena { width: auto; max-width: none; margin: 0 -.875rem; }

  .problema { padding: 4rem 0; }
  .lastra { padding: 2rem 1rem; gap: 2rem; }
  .percorso { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.25rem; }

  .metodo { padding: 4.5rem 0; }
  .metodo__p { font-size: 1.125rem; }
  .passi { gap: 4rem; padding-left: 1.75rem; }
  .passo__pill { width: 100%; }

  .nastro__riga { gap: .5rem; font-size: .6875rem; }
  .nastro__lista .nastro__riga:nth-child(n+14) { display: none; }
  .nastro__h { font-size: 3.75rem; white-space: nowrap; }
  .nastro__t { font-size: 1.625rem; }
  .nastro__ombra { background: radial-gradient(circle, rgb(22, 22, 22) 38%, rgba(22, 22, 22, 0) 72%); }

  .conto { grid-template-columns: 1fr; }
  .conto__voce, .conto__voce + .conto__voce { padding: 1rem 0; border-left: 0; }
  .conto__voce--tot { grid-column: auto; padding: 1rem !important; }
  .conto__voce svg { right: 0; }
  .conto__voce--tot svg { right: 1rem; }

  .garanzie { padding: 4.5rem 0; }
  .garanzie__testa { margin-bottom: 3rem; }
  .garanzie__griglia { grid-template-columns: 1fr; gap: 3rem; }
  .garanzia__icona { margin-bottom: 1.5rem; }
  .faq__d { font-size: 1.1875rem; padding: 1.25rem 0; gap: 1rem; }

  .finale__corpo { padding-top: 6rem; padding-bottom: 5rem; }
  .piede__alto { grid-template-columns: 1fr; gap: 2.5rem; }
  .piede__basso { flex-direction: column; margin-top: 3rem; }
  .legale { padding: 7rem 0 5rem; }
  .legale h1 { font-size: 2.75rem; }
}

@media (max-width: 479px) {
  .btn { justify-content: center; width: 100%; white-space: normal; text-align: center; }
  .nav__menu .btn { width: auto; }
  .hero__cta { align-items: stretch; }
  .h1, .hero__h, .metodo__h { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .passo__schede, .js .passo__testo { opacity: 1; transform: none; filter: none; }
}

/* Piede da solo (pagina 404) */
.finale--piede .piede { padding-top: 1rem; }
.finale--piede .piede__alto { border-top: 0; }
@media (max-width: 767px) { .legale table { display: block; overflow-x: auto; } }
