/* Parlane · la striscia (su carta bianca) */

:root {
  --ink: #121212;
  --ink-soft: #3B4160;
  --paper: #FFFFFF;
  --paper-dots: rgba(28, 37, 80, .085);
  --blue: #1C2550;
  --green: #3AAA35;
  --green-hover: #45B940;
  --green-deep: #237A1F;
  --green-wash: #E9F5E8;
  --caption: #FFD447;
  --error: #FFD2CA;

  --line: 3px;
  --line-thin: 2px;
  --gutter: clamp(8px, 1.6vw, 14px);
  --pad-x: clamp(16px, 4vw, 48px);
  --radius-panel: 6px;

  --letter: "Shantell Sans", "Comic Sans MS", "Trebuchet MS", sans-serif;
  --ui: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --shadow-1: 0 3px 8px rgba(0, 0, 0, .10);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, .14);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--letter);
  font-variation-settings: "INFM" 20, "BNCE" 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  caret-color: var(--green-deep);
  scrollbar-color: var(--ink-soft) var(--paper);
}

::selection { background: var(--caption); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.i { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden, .gotcha {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--caption); border: var(--line-thin) solid var(--ink);
  padding: 8px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

main {
  padding: var(--gutter);
  display: grid;
  gap: var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Vignette ---------- */

.panel {
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-panel);
  background: var(--paper);
  position: relative;
  overflow: clip;
}
.panel--green { background: var(--green); }

.caption {
  display: inline-block;
  background: var(--caption);
  color: var(--ink);
  border: var(--line-thin) solid var(--ink);
  padding: 4px 10px 3px;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .02em;
  font-variation-settings: "INFM" 60, "BNCE" 20;
  margin: 0;
  transform: rotate(-1deg);
}
.caption--sm { font-size: .8125rem; padding: 3px 8px 2px; transform: none; }

/* ---------- Balloon ---------- */

.balloon {
  position: relative;
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  border: var(--line-thin) solid var(--ink);
  border-radius: 20px;
  padding: 9px 15px;
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
/* coda a sinistra (la mascotte parla da sinistra) */
.balloon::before, .balloon::after {
  content: ""; position: absolute; left: -13px; bottom: 10px;
  width: 18px; height: 16px; clip-path: polygon(100% 0, 0 100%, 100% 60%);
}
.balloon::before { background: var(--ink); }
.balloon::after { background: inherit; left: -9px; bottom: 12px; width: 14px; height: 11px; }
/* coda a destra (verso la mascotte che sta a destra) */
.balloon--to-right::before, .balloon--to-right::after { left: auto; clip-path: polygon(0 0, 100% 100%, 0 60%); }
.balloon--to-right::before { right: -13px; }
.balloon--to-right::after { right: -9px; }

.balloon--tiny { font-size: .9375rem; padding: 6px 12px; border-radius: 16px; }
.balloon--alt { background: var(--green-wash); }

/* ---------- Mascotte: la "e" ---------- */

.mascot { width: 60px; flex: none; }
.mascot--sm { width: 48px; }
.mascot--md { width: 72px; }
.mascot--lg { width: clamp(84px, 12vw, 120px); }
.mascot-svg {
  overflow: visible;
  fill: var(--green);
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linejoin: round;
  paint-order: stroke;
}
.mascot-svg--on-green { fill: var(--paper); }
.mascot-svg .eyes {
  fill: var(--paper);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5.2s infinite;
}
.mascot-svg--on-green .eyes { fill: var(--ink); }
.mascot-svg .eyes circle { transition: transform .5s var(--ease-out); }
.mascot.is-looking .eyes circle { transform: translate(-2.5px, -1.5px); }
.mascot.is-happy { animation: hop .5s var(--ease-out); }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes hop { 0% { transform: none; } 40% { transform: translateY(-6px) rotate(-5deg); } 100% { transform: none; } }
.mascot.is-gulp { animation: gulp .6s var(--ease-out); }
@keyframes gulp { 35% { transform: scale(1.16) rotate(4deg); } 100% { transform: none; } }

/* ---------- La striscia ---------- */

.strip {
  min-height: calc(100svh - 2 * var(--gutter));
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 3vw, 28px) var(--pad-x) clamp(12px, 2vw, 22px);
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dots) 1.15px, transparent 1.5px);
  background-size: 10px 10px;
}

.strip-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { width: 108px; height: auto; }

.progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pager { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.pager li {
  width: 20px; height: 12px;
  border: var(--line-thin) solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  transition: background-color .3s var(--ease-out);
}
.pager li.is-on { background: var(--green); }
.progress-label { font-family: var(--ui); font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }

.intake { flex: 1; display: flex; flex-direction: column; }
.step { flex: 1; display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 22px); padding-top: clamp(12px, 2.4vh, 26px); }
.step.is-entering { animation: panel-in .5s var(--ease-out); }
@keyframes panel-in { from { transform: translateX(24px); opacity: .001; } to { transform: none; opacity: 1; } }

.strip-title {
  margin: 0;
  font-size: clamp(2.25rem, 8.6vw, 4.75rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variation-settings: "INFM" 55, "BNCE" 25;
  text-wrap: balance;
  max-width: 14ch;
}
.strip-title--sm { font-size: clamp(1.75rem, 6.4vw, 3.125rem); max-width: 18ch; }
.strip-title:focus { outline: none; }

.lead { display: grid; gap: 10px; }
.offer {
  margin: 0; max-width: 34ch;
  font-family: var(--ui); font-size: clamp(1.0625rem, 3.8vw, 1.25rem); line-height: 1.4; color: var(--ink);
}
.offer strong { font-weight: 600; background: linear-gradient(transparent 58%, var(--caption) 58%); }
.hint { margin: 4px 0 0; font-weight: 650; font-size: 1rem; color: var(--green-deep); }

/* le nuvolette di pensiero */
.thoughts {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: 14px 10px;
  padding: 4px 2px 18px;
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
}
.cloud {
  --dx: 0px; --dy: -5px; --r: 0deg; --dur: 6s; --delay: 0s;
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  appearance: none;
  font: inherit; font-weight: 650;
  font-size: clamp(1rem, 3.9vw, 1.1875rem);
  line-height: 1.2;
  color: var(--ink);
  background: var(--paper);
  border: var(--line-thin) solid var(--ink);
  padding: 9px 10px 10px 16px;
  border-radius: 46% 54% 48% 52% / 58% 52% 48% 42%;
  cursor: pointer;
  transform: rotate(var(--r));
  animation: drift var(--dur) ease-in-out var(--delay) infinite alternate;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  box-shadow: var(--shadow-1);
  -webkit-tap-highlight-color: transparent;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute;
  background: inherit; border: var(--line-thin) solid var(--ink); border-radius: 50%;
}
.cloud::before { width: 12px; height: 12px; left: 14px; bottom: -11px; }
.cloud::after { width: 6px; height: 6px; left: 6px; bottom: -19px; }
.cloud:hover { box-shadow: var(--shadow-2); background: var(--green-wash); }
.cloud .mark {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: var(--line-thin) solid var(--ink);
  background: var(--paper);
}
.cloud .mark svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cloud .mark .on { display: none; }
.cloud[aria-pressed="true"] { background: var(--green); animation-play-state: paused; }
.cloud[aria-pressed="true"] .mark { background: var(--caption); }
.cloud[aria-pressed="true"] .mark .on { display: block; }
.cloud[aria-pressed="true"] .mark .off { display: none; }

@keyframes drift {
  from { transform: translate(0, 0) rotate(var(--r)); }
  to { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * -0.6)); }
}

.cloud.is-puff { animation: puff .42s var(--ease-out) forwards; pointer-events: none; }
@keyframes puff { to { transform: scale(1.2) rotate(var(--r)); opacity: 0; filter: blur(4px); } }
.cloud.is-gathered { transition: transform .62s var(--ease-out), opacity .62s ease-in; animation: none; pointer-events: none; }

.sfx-puff {
  position: absolute; pointer-events: none; z-index: 5;
  font-family: var(--letter); font-weight: 800; font-size: 1.125rem; color: var(--ink-soft);
  font-variation-settings: "INFM" 80, "BNCE" 60;
  animation: sfx .6s var(--ease-out) forwards;
}
@keyframes sfx { from { transform: translateY(0) scale(.6); opacity: 1; } to { transform: translateY(-18px) scale(1.1); opacity: 0; } }

/* barra delle azioni: resta in vista mentre scegli */
.strip-actions {
  margin-top: auto;
  position: sticky; bottom: 0; z-index: 3;
  margin-inline: calc(-1 * var(--pad-x));
  padding: 16px var(--pad-x) 6px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--paper) 24%);
}
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.mascot-line { display: flex; align-items: flex-end; justify-content: flex-end; gap: 16px; }
.mascot-line .balloon { margin-bottom: 14px; font-size: .9375rem; }
.step[data-step="1"] .mascot-line { margin-top: -4px; }
.step--form .strip-actions { position: static; background: none; }

/* passi 2 e 3: scelte grandi, una vignetta per risposta */
.ask { display: flex; align-items: center; gap: 14px; }
.options { display: grid; gap: 10px; max-width: 640px; }
.option { display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-box {
  display: flex; align-items: center; gap: 14px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-panel);
  background: var(--paper);
  padding: 16px 18px;
  font-weight: 700;
  font-size: clamp(1.125rem, 4.4vw, 1.375rem);
  box-shadow: var(--shadow-1);
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.option-box .dot {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: var(--line-thin) solid var(--ink); background: var(--paper);
  display: grid; place-items: center;
}
.option-box .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .2s var(--ease-out); }
.option:hover .option-box { background: var(--green-wash); }
.option input:checked + .option-box { background: var(--green); }
.option input:checked + .option-box .dot::after { transform: scale(1); }
.option input:focus-visible + .option-box { outline: 3px solid var(--blue); outline-offset: 3px; }

/* cosa succede adesso */
.next-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; }
.next-strip li { border: var(--line-thin) solid var(--ink); border-radius: 4px; padding: 9px 10px 11px; background: var(--paper); }
.next-strip p { margin: 6px 0 0; font-size: .9375rem; line-height: 1.3; font-weight: 550; }
.recap { margin: 0; color: var(--ink-soft); font-size: .9375rem; max-width: 70ch; }
.recap strong { color: var(--ink); font-weight: 700; }

/* campi */
.fields { display: grid; gap: 12px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 650; }
.field input, .field textarea {
  font-family: var(--ui); font-size: 1.125rem; color: var(--ink);
  background: var(--paper);
  border: var(--line-thin) solid var(--ink); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--caption); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #A4281A; background: #FFF6F4; }
.more summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; color: var(--ink-soft); font-size: .9375rem;
  text-decoration: underline; text-underline-offset: .2em;
}
.more summary::-webkit-details-marker { display: none; }
.more summary .i { transition: transform .2s var(--ease-out); }
.more[open] summary .i { transform: rotate(180deg); }
.more[open] summary { margin-bottom: 10px; }
.more .field { margin-bottom: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-family: var(--ui); font-size: .875rem; line-height: 1.4; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green-deep); }
.field-error, .form-error {
  margin: -4px 0 0; font-family: var(--ui); font-size: .875rem; font-weight: 600;
  color: var(--ink); background: var(--error); border: var(--line-thin) solid var(--ink);
  border-radius: 8px; padding: 4px 10px; justify-self: start;
}

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  appearance: none; cursor: pointer; text-decoration: none;
  font-family: var(--letter); font-weight: 800; font-size: 1.25rem;
  font-variation-settings: "INFM" 45, "BNCE" 10;
  color: var(--ink); background: var(--green);
  border: var(--line) solid var(--ink); border-radius: 16px;
  padding: 12px 30px 13px; min-height: 56px;
  box-shadow: var(--shadow-2);
  transition: transform .18s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-1); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--go { min-width: min(100%, 200px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2A2A2A; }
.count:empty { display: none; }
.count { background: var(--ink); color: var(--paper); border-radius: 999px; font-size: .875rem; padding: 1px 9px; }
.btn-quiet {
  appearance: none; background: none; border: 0; padding: 8px 2px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-weight: 600; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px;
}
.btn-quiet:hover { color: var(--ink); }

.strip-foot { margin: 10px 0 0; font-family: var(--ui); font-size: .8125rem; color: var(--ink-soft); }

/* ---------- Sezioni sotto ---------- */

.block { padding: clamp(28px, 6vw, 60px) clamp(4px, 2vw, 24px) clamp(8px, 2vw, 16px); }
.block-title {
  margin: 0 0 clamp(16px, 3vw, 26px);
  font-size: clamp(1.75rem, 5.4vw, 3rem);
  line-height: 1.08; font-weight: 800;
  font-variation-settings: "INFM" 50, "BNCE" 15;
  text-wrap: balance;
}
.block-title--in { font-size: clamp(1.5rem, 4.4vw, 2.25rem); }

.strip3 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gutter); }
.strip3 > li { padding: 14px 16px 18px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.strip3 p { margin: 0; max-width: 40ch; font-weight: 500; }
.scene { min-height: 100px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scene--tap { justify-content: center; gap: 12px 8px; padding: 6px 0 10px; }
.cloud--mini { animation: none; font-size: .9375rem; padding: 7px 13px 8px; cursor: default; box-shadow: none; }
.cloud--mini.is-picked { background: var(--green); }
.scene--call { justify-content: center; gap: 4px; }
.sfx { font-size: 1.875rem; font-weight: 800; color: var(--green-deep); font-variation-settings: "INFM" 90, "BNCE" 70; transform: rotate(-8deg) translateY(-14px); }
.scene--meet { flex-direction: column; align-items: stretch; gap: 10px; padding-left: 14px; }
.scene--meet .balloon { align-self: flex-start; }
.scene--meet .balloon--alt { align-self: flex-end; }

.block--split { display: grid; gap: var(--gutter); padding: 0; }
.cost, .team { padding: clamp(18px, 3.4vw, 36px); }
.cost .block-title { font-size: clamp(2rem, 6.4vw, 3.25rem); margin-bottom: 10px; }
.cost-lead { margin: 0 0 18px; font-size: clamp(1.25rem, 4.2vw, 1.5rem); line-height: 1.25; font-weight: 700; max-width: 22ch; }
.ledger { margin: 0; border-top: var(--line-thin) solid var(--ink); }
.ledger div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: var(--line-thin) solid var(--ink); }
.ledger dt { font-weight: 550; }
.ledger dd { margin: 0; font-weight: 800; text-align: right; }
.cost-note { margin: 14px 0 0; font-weight: 550; }

.team-list { list-style: none; margin: 0 0 16px; padding: 0; border-top: var(--line-thin) solid var(--ink); }
.team-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: var(--line-thin) solid var(--ink); }
.team-list strong { font-size: 1.25rem; font-weight: 800; }
.team-list span { font-family: var(--ui); font-size: .9375rem; }
.team-list em { font-style: normal; font-family: var(--ui); font-size: .8125rem; font-weight: 600; color: var(--green-deep); }
.team-note { margin: 0; font-family: var(--ui); font-size: .9375rem; line-height: 1.5; max-width: 60ch; }

.faq-panel { padding: clamp(18px, 3.4vw, 40px); }
.faq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.faq { display: grid; gap: 10px; }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  appearance: none; cursor: pointer; text-align: left;
  font: inherit; font-weight: 700; font-size: clamp(1.0625rem, 4vw, 1.25rem); color: var(--ink);
  background: var(--paper); border: var(--line-thin) solid var(--ink); border-radius: 10px;
  padding: 12px 16px;
}
.faq-q:hover { background: var(--green-wash); }
.faq-q .i { transition: transform .2s var(--ease-out); }
.faq-q[aria-expanded="true"] { background: var(--caption); }
.faq-q[aria-expanded="true"] .i { transform: rotate(180deg); }
.faq-a { padding: 12px 0 4px 26px; }
.faq-a .balloon { background: var(--green-wash); font-weight: 500; max-width: 60ch; text-wrap: pretty; }

.closing { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(36px, 7vw, 80px) 20px; }
.closing-title {
  margin: 0; max-width: 16ch;
  font-size: clamp(2.25rem, 8vw, 4.5rem); line-height: 1.02; font-weight: 800;
  font-variation-settings: "INFM" 55, "BNCE" 25; text-wrap: balance;
}

.foot { padding: 28px var(--gutter) 40px; display: grid; justify-items: center; gap: 8px; text-align: center; font-family: var(--ui); font-size: .875rem; }
.foot-logo { width: 120px; height: auto; margin-bottom: 6px; }
.foot p { margin: 0; }
.foot-sos a { font-weight: 600; }

/* ---------- Schermi stretti ---------- */

@media (max-width: 599px) {
  .mascot { width: 46px; }
  .mascot--lg { width: 84px; }
  .thoughts { gap: 12px 8px; }
  .cloud { font-size: .96875rem; padding: 7px 8px 8px 13px; gap: 6px; }
  .cloud .mark { width: 20px; height: 20px; }
  .cloud .mark svg { width: 12px; height: 12px; }
  .cloud::before { width: 10px; height: 10px; left: 12px; bottom: -10px; }
  .cloud::after { width: 6px; height: 6px; left: 5px; bottom: -16px; }
  .mascot-line .balloon { font-size: .875rem; padding: 6px 12px; margin-bottom: 10px; }
  .next-strip { grid-template-columns: 1fr; gap: 6px; }
  .next-strip li { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; }
  .next-strip .caption { flex: none; }
  .next-strip p { margin: 0; }
  .btn { font-size: 1.125rem; min-height: 52px; padding: 11px 26px 12px; }
  .strip-actions { padding-top: 12px; }
  .actions-row { flex-wrap: nowrap; justify-content: space-between; }
  .actions-row .btn--go { min-width: 0; flex: 1 1 auto; max-width: 200px; }
  .actions-row .btn-quiet { font-size: .9375rem; text-align: right; }
}

/* ---------- Schermi larghi ---------- */

@media (min-width: 760px) {
  .strip3 { grid-template-columns: 1.3fr 1fr 1fr; }
  .logo { width: 132px; }
  .mascot { width: 76px; }
}
@media (min-width: 980px) {
  .block--split { grid-template-columns: 1fr 1.15fr; }
  .step[data-step="1"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: 1fr auto;
    row-gap: 0;
    column-gap: 48px;
  }
  .step[data-step="1"][hidden] { display: none; }
  .step[data-step="1"] .lead { grid-column: 1; grid-row: 1; align-content: center; }
  .step[data-step="1"] .thoughts { grid-column: 2; grid-row: 1; gap: 20px 16px; }
  .step[data-step="1"] .cloud { font-size: 1.3125rem; padding: 11px 12px 12px 20px; }
  .step[data-step="1"] .strip-actions {
    grid-column: 1; grid-row: 2; align-self: end;
    position: static; background: none; margin-inline: 0; padding-inline: 0;
  }
  .step[data-step="1"] .mascot-line { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; }
  .mascot-line .balloon { font-size: 1.0625rem; }
  .options { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .option-box { min-height: 110px; align-items: flex-end; }
  .faq { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .mascot-svg .eyes { animation: none; }
  .step.is-entering, .mascot.is-happy, .mascot.is-gulp { animation: none; }
  .cloud.is-puff, .cloud.is-gathered { animation: none; transition: none; opacity: 0; }
}

/* ---------- Pagina grazie ---------- */

.thanks { justify-content: flex-start; gap: clamp(18px, 3vh, 32px); }
.thanks-body { display: grid; gap: clamp(14px, 3vw, 40px); align-items: center; padding-top: clamp(8px, 3vh, 32px); }
.thanks-copy { display: grid; gap: 12px; }
.thanks-scene { position: relative; justify-self: center; padding: 34px 64px 6px 10px; }
.mascot--xl { width: clamp(112px, 30vw, 200px); }
.sfx--thanks { position: absolute; right: -18px; top: -4px; font-size: clamp(1.5rem, 5vw, 2.25rem); }
.mascot.is-cheer { animation: cheer 1.1s var(--ease-out) .15s both; }
@keyframes cheer {
  0% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-16px) rotate(-6deg); }
  55% { transform: translateY(0) rotate(3deg); }
  75% { transform: translateY(-6px) rotate(-2deg); }
  100% { transform: none; }
}
.next-strip--thanks { max-width: none; }
.thanks-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 8px; }
.thanks-foot .balloon { margin-left: 14px; font-size: 1.0625rem; }

@media (min-width: 760px) {
  .thanks-body { grid-template-columns: auto minmax(0, 1fr); }
  .thanks-scene { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot.is-cheer { animation: none; }
}
