/* Dentro i Classici — video sponsorizzati per libri */

@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eee4d1;
  --paper-deep: #e4d6bc;
  --ink: #17120f;
  --red: #e2431d;
  --red-text: #b2300f;
  --red-box: #c8391b;  /* testo crema piccolo: contrasto 4,6:1 */
  --red-cta: #e64a22;  /* testo scuro piccolo: contrasto 4,75:1 */
  --cream: #f8f1e4;
  --pad: clamp(16px, 3vw, 44px);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1440px; /* oltre questa larghezza il contenuto resta al centro */
  --page: min(100vw, calc(var(--wrap) + 2 * var(--pad)));
  --gutter: max(var(--pad), calc((100% - var(--wrap)) / 2));
  --col-gap: clamp(32px, 5vw, 80px);
  --side: clamp(290px, calc(var(--page) * 0.27), 440px);
}

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

html {
  scrollbar-width: none; /* niente barra di scorrimento: si scorre lo stesso */
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, canvas { display: block; max-width: 100%; }
html::-webkit-scrollbar { display: none; }
[hidden] { display: none !important; }
p { margin: 0; }
a { color: inherit; }
em, i { font-family: var(--serif); font-style: italic; font-weight: 560; font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 1; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Grana di stampa: un unico strato, spostato a scatti */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  background: url("../assets/img/grain.png");
  animation: grain 0.66s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-7%, 4%); }
  50%  { transform: translate(5%, -6%); }
  75%  { transform: translate(-3%, -9%); }
}

/* ------------------------------------------------------------ Testata */

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 18px var(--gutter) 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand { color: var(--red-text); text-decoration: none; }
.top-right { color: var(--red-text); text-align: right; }

/* ------------------------------------------------------------ 1 · Hero */

.hero {
  /* Altezza del maiuscolo: limitata dalla larghezza della colonna e dall'altezza dello schermo,
     così titolo, «in due minuti» e la frase sotto stanno sempre nella prima schermata. */
  --mega: min(calc((var(--page) - var(--side) - 3 * var(--pad)) / 2.32 * 0.78), calc((100svh - 260px) / 2.3));
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  grid-template-areas: "title side" "lede side";
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: var(--pad);
  min-height: calc(100svh - 42px);
  padding: clamp(18px, 3vh, 36px) var(--gutter) clamp(20px, 3.4vh, 36px);
}

.hero-title {
  grid-area: title;
  align-self: end;
  margin: 0;
  font-weight: 400;
}

.mega { display: block; }
.mega .line {
  display: block;
  font-family: var(--display);
  font-size: var(--mega);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

.script {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: calc(var(--mega) * 0.03);
  padding: 0 0.12em 0.08em calc(var(--mega) * 0.04);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 640;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: calc(var(--mega) * 0.425); /* largo quanto «IL TUO»: i tre pezzi fanno un blocco */
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
/* Fuori registro, come una vecchia stampa a due colori */
.misreg::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: inherit;
  color: var(--red);
  transform: translate(0.035em, 0.03em);
  animation: misreg 1.4s steps(1) infinite;
}
@keyframes misreg {
  0%  { transform: translate(0.035em, 0.03em); }
  33% { transform: translate(0.045em, 0.018em); }
  66% { transform: translate(0.028em, 0.04em); }
}

.hero-side {
  --rh: clamp(220px, 34vh, 330px);
  grid-area: side;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Promessa e prezzo stanno in un unico blocco */
.pitch-big {
  font-weight: 700;
  font-stretch: 75%;
  font-size: clamp(44px, calc(var(--page) * 0.045), 84px);
  line-height: 0.93;
  letter-spacing: -0.02em;
}
.pitch-small {
  width: 54%;
  min-height: calc(var(--rh) * 0.5);
  padding: 16px 0 18px;
  color: var(--red-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.28;
  text-transform: uppercase;
}

.box-wrap { position: relative; }
.reader-anim {
  position: absolute;
  right: 7%;
  top: calc(var(--rh) * -0.53);
  z-index: 2;
  height: var(--rh);
  aspect-ratio: 367 / 800;
}
.reader-anim > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
/* Fotogrammi a passo uno: se ne vede sempre uno solo */
.js .reader-frame { visibility: hidden; }
.js .reader-anim[data-show="legs"] canvas,
.js .reader-anim[data-show="page"] canvas { visibility: hidden; }
.js .reader-anim[data-show="legs"] [data-frame="legs"],
.js .reader-anim[data-show="page"] [data-frame="page"] { visibility: visible; }
.reader-frame { display: none; }
.js .reader-frame { display: block; }

.offer-box {
  position: relative;
  padding: 22px 24px 24px;
  background: var(--red-box);
  color: var(--cream);
  background-image: radial-gradient(circle, rgba(23, 18, 15, 0.13) 1.3px, transparent 1.8px);
  background-size: 7px 7px;
}
.offer-kicker {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.offer-price {
  margin-top: 4px;
  font-family: var(--display);
  font-size: clamp(84px, 8.6vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.offer-was {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: 25px;
  line-height: 1.1;
}
.offer-was s { text-decoration-thickness: 2px; }
.offer-what {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.3;
  max-width: 19em;
}

.btn, .copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 22px 14px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: 650 18px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
/* Nessuna dissolvenza: il bottone "scatta" come un timbro */
.btn:hover, .copy:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active, .copy:active { transform: none; box-shadow: none; }
.offer-box .btn:focus-visible { outline-color: var(--cream); }

.hero-lede {
  grid-area: lede;
  align-self: start;
  max-width: 24em;
  padding-top: clamp(20px, 3.4vh, 40px);
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.3;
}
.hero-lede strong { font-weight: 700; color: var(--red-text); }

.offer-mail { margin-top: 14px; font-size: 15px; }
.offer-mail a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.offer-mail a:hover { color: var(--ink); }
.offer-mail a:focus-visible { outline-color: var(--cream); }

/* ------------------------------------------------------------ Nastro */

/* Un solo carattere, così maiuscolo e accenti stanno sulla stessa riga;
   il ritmo lo danno i due colori. Leggermente storto, come una fascia incollata. */
.ticker {
  position: relative;
  z-index: 2;
  margin: clamp(10px, 1.5vw, 24px) -4vw;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 15px 0 13px;
  transform: rotate(-1.2deg);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  padding-right: 0.6em;
  font-family: var(--display);
  font-size: clamp(28px, 2.7vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker em { font: inherit; font-variation-settings: normal; color: var(--red); }
.ticker b { font-family: var(--sans); font-size: 0.5em; font-weight: 400; color: var(--red); }
@keyframes marquee { to { transform: translateX(calc(-100% / 3)); } }

/* ------------------------------------------------------------ 2 · Ti suona familiare? */

.voices { padding: clamp(48px, 6vw, 88px) var(--gutter) 0; }
.voices-kicker {
  margin: 0;
  color: var(--red-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.quotes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px clamp(24px, 3vw, 48px);
}
.quotes li {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 1;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.voices-answer {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1;
}
.voices-mega {
  font-family: var(--display);
  font-size: 1.3em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--red);
}
.voices-answer em { font-weight: 620; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; letter-spacing: -0.02em; }

/* ------------------------------------------------------------ 3 · Come funziona */

.voices + .how { padding-top: clamp(64px, 8vw, 120px); }

.how {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(72px, 10vw, 150px) var(--gutter);
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 620;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(50px, 6.6vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.steps {
  list-style: none;
  margin: clamp(28px, 4vw, 52px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(22px, 2.6vw, 34px);
}
.steps li {
  display: grid;
  grid-template-columns: clamp(58px, 6.4vw, 96px) minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 28px);
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.step-n {
  grid-row: span 2;
  font-family: var(--display);
  font-size: clamp(66px, 7.2vw, 112px);
  line-height: 0.8;
  color: var(--red);
}
.steps h3 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 620;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.steps p { margin-top: 8px; max-width: 30em; font-size: clamp(18px, 1.35vw, 20px); }

.phone-wrap { position: relative; z-index: 101; margin: 0; justify-self: center; } /* sopra la grana */
.phone {
  position: relative;
  width: min(340px, 74vw);
  aspect-ratio: 9 / 16;
  border: 10px solid var(--ink);
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  box-shadow: 16px 16px 0 var(--red);
  transform: rotate(-2deg);
}
.phone-video { width: 100%; height: 100%; object-fit: cover; }
.sound {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 10px 16px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: 650 15px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}
.sound:hover { background: var(--red); }
.phone-wrap figcaption {
  margin-top: 30px;
  text-align: center;
  font-size: 16px;
}
.cap-src { display: block; }
.cap-line {
  display: block;
  max-width: 17em;
  margin: 12px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 1;
  font-size: clamp(21px, 1.7vw, 26px);
  line-height: 1.15;
  color: var(--red-text);
}

/* ------------------------------------------------------------ 4 · Chi vedrà il tuo libro */

/* Riquadro di carta più scura, da bordo a bordo: si stacca dalle sezioni vicine.
   Testata e riquadri usano le stesse due colonne delle Domande, così i testi si allineano. */
.audience {
  background: var(--paper-deep);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
}
.audience-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  column-gap: var(--col-gap);
}
.audience-text { padding-bottom: clamp(28px, 3vw, 48px); }
.audience-intro {
  max-width: 24em;
  margin-top: 18px;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.3;
}
/* La coppia è seduta sulla riga dei riquadri */
.couple {
  width: min(100%, 420px);
  height: auto;
  margin-bottom: -2px;
}

/* Domanda piccola, risposta grande, spiegazione piccola: si legge nell'ordine in cui ci si ragiona */
.who {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.who li {
  position: relative;
  z-index: 1;
  padding: 18px 0 clamp(32px, 3.4vw, 52px);
  border-top: 2px solid var(--ink);
}
.who-q {
  color: var(--red-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.who-a {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 620;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.who-a .hl { color: var(--red-text); }
.who-d { margin-top: 12px; max-width: 28em; font-size: clamp(18px, 1.35vw, 20px); }

.audience-link { padding-top: 4px; }
.audience-link a {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--red-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}
.audience-link a:hover { color: var(--ink); }

/* ------------------------------------------------------------ 5 · L'hanno fatto con noi */

.cases { padding: clamp(64px, 8vw, 120px) var(--gutter) 0; }
.case-list {
  list-style: none;
  margin: clamp(28px, 4vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.case-list img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 8px 8px 0 var(--red); }
.case-list blockquote { margin: 22px 0 0; font-size: clamp(18px, 1.35vw, 20px); }
.case-who { margin-top: 8px; font-size: 15px; font-weight: 650; }

/* ------------------------------------------------------------ 6 · Domande */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px var(--col-gap);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
}
.faq-list { display: grid; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 620;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-style: normal;
  font-size: 1.15em;
  line-height: 0.8;
  color: var(--red);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--red-text); }
.faq details p { max-width: 34em; padding: 0 0 22px; font-size: clamp(18px, 1.35vw, 20px); }

/* ------------------------------------------------------------ 7 · Scrivici */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title art" "mail art" "row row";
  column-gap: var(--pad);
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(40px, 5vw, 64px);
  background: var(--red-cta);
  color: var(--ink);
  overflow: hidden;
}
.cta-title {
  grid-area: title;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: calc((var(--page) - 2 * var(--pad)) / 4.6);
  line-height: 0.9;
  text-transform: uppercase;
}
.cta-mail {
  grid-area: mail;
  justify-self: start;
  margin-top: 0.12em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(31px, 6.1vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}
.cta-mail:hover { color: var(--ink); }
.cta-mail:focus-visible { outline-color: var(--cream); }
.writer {
  grid-area: art;
  align-self: end;
  height: clamp(200px, 25vw, 380px);
  width: auto;
  max-width: none;
}
.cta-row {
  grid-area: row;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.cta-copy, .cta-price { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.35; }
.cta-price strong { font-family: var(--display); font-weight: 400; font-size: 1.5em; letter-spacing: 0.01em; }
.copy { margin-top: 0; }
.copy:focus-visible { outline-color: var(--cream); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Privacy */

.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--pad) 72px; }
.legal-title { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 9vw, 96px); line-height: 1; margin: 0 0 8px; text-transform: uppercase; }
.legal-date { font-size: 15px; margin-bottom: 32px; }
.legal h2 { font-family: var(--serif); font-style: italic; font-size: 28px; margin: 40px 0 8px; }
.legal h3 { font-size: 19px; margin: 24px 0 6px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.top-right a { text-decoration: none; }

/* ------------------------------------------------------------ Promozione */

[data-full] { display: none; }
.promo-over [data-promo] { display: none; }
.promo-over [data-full] { display: revert; }
.promo-over .offer-price { font-size: clamp(72px, 6.6vw, 104px); }
.promo-over .offer-what { margin-top: 44px; }

/* ------------------------------------------------------------ Animazioni (solo con JS) */

/* Timbro: ogni lettera cade sulla linea di base in tre fotogrammi */
.js [data-stamp] .ch {
  display: inline-block;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.js [data-stamp].is-in .ch {
  animation: stamp 240ms step-end both;
  animation-delay: calc(var(--d, 0ms) + var(--i) * 55ms);
}
@keyframes stamp {
  0%   { transform: scaleY(0); }
  25%  { transform: scaleY(1.55); }
  50%  { transform: scaleY(0.86); }
  75%, 100% { transform: scaleY(1); }
}

/* Scritta a mano: si scopre a scatti */
.js .hero .script { clip-path: inset(-20% 100% -30% -5%); }
.js .hero.is-in .script { animation: wipe 600ms steps(8, jump-end) 640ms both; }
@keyframes wipe {
  from { clip-path: inset(-20% 100% -30% -5%); }
  to   { clip-path: inset(-20% -5% -30% -5%); }
}

/* Riquadro del prezzo: tapparella in quattro scatti */
.js .hero .offer-box { clip-path: inset(100% 0 0 0); }
.js .hero.is-in .offer-box { animation: blind 320ms steps(4, jump-end) 980ms both; }
@keyframes blind {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.js .hero .pitch-big, .js .hero .pitch-small, .js .hero-lede, .js .top { visibility: hidden; }
.js .hero.is-in .pitch-big { animation: cut 1ms 520ms both; }
.js .hero.is-in .pitch-small { animation: cut 1ms 720ms both; }
.js .hero.is-in .hero-lede { animation: cut 1ms 1200ms both; }
.js.is-ready .top { animation: cut 1ms 120ms both; }
@keyframes cut { from { visibility: hidden; } to { visibility: visible; } }

/* Righe e telefono: entrano di traverso, in tre fotogrammi */
.js [data-reveal] { visibility: hidden; }
.js [data-reveal].is-in {
  visibility: visible;
  animation: jolt 270ms step-end both;
  animation-delay: var(--d, 0ms);
}
@keyframes jolt {
  0%   { visibility: hidden; transform: translate(-28px, 10px) rotate(-1.5deg); }
  33%  { visibility: visible; transform: translate(-28px, 10px) rotate(-1.5deg); }
  66%  { transform: translate(7px, -3px) rotate(0.6deg); }
  100% { visibility: visible; transform: none; }
}

/* Tratto che "bolle", come nei cartoni disegnati a mano */
.boil { animation: boil 0.75s steps(1) infinite; animation-delay: var(--bd, 0s); }
@keyframes boil {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(0.6px, -0.5px) rotate(0.35deg); }
  66%  { transform: translate(-0.5px, 0.4px) rotate(-0.3deg); }
}

/* La lettrice resta nascosta finché non viene "stampata" */
.js img.print { visibility: hidden; }
.js canvas.printed { visibility: visible; }

/* ------------------------------------------------------------ Telefono e tablet */

@media (max-width: 1100px) {
  .how { grid-template-columns: 1fr; }
  .phone-wrap { justify-self: center; }
}

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top-mid { display: none; }

  .hero {
    --mega: calc((100vw - 2 * var(--pad)) / 2.75);
    grid-template-columns: 1fr;
    grid-template-areas: "title" "lede" "side";
    grid-template-rows: auto;
    min-height: 0;
    row-gap: 18px;
  }
  .hero-side { --rh: clamp(190px, 50vw, 280px); padding-top: 4px; }
  .pitch-big { font-size: clamp(38px, 10.5vw, 56px); }
  .pitch-small { width: 52%; font-size: 14px; }
  .offer-box { padding: 18px 20px 20px; }
  .offer-what { font-size: 17px; }
  .hero-lede { padding-top: 0; font-size: 19px; }


  .quotes { grid-template-columns: 1fr; }

  .audience-head, .who, .faq { grid-template-columns: 1fr; }
  .audience-text { padding-bottom: 12px; }
  .couple { width: min(100%, 330px); margin-inline: auto; }

  .cta {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "title" "mail" "row";
  }
  .cta-title { font-size: calc((100vw - 2 * var(--pad)) / 3.75); }
  .writer { justify-self: end; height: 190px; margin-bottom: -6px; }
  .cta-row { grid-template-columns: 1fr; gap: 16px; }
  .copy { justify-self: start; }
}

/* ------------------------------------------------------------ Movimento ridotto */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js [data-stamp] .ch { transform: none; }
  .js .hero .script, .js .hero .offer-box { clip-path: none; }
  .js .hero .pitch-big, .js .hero .pitch-small, .js .hero-lede, .js .top, .js [data-reveal] { visibility: visible; }
}
