/* Ce la fai · celafai.it — capitoli di colore.
   Ogni sezione è un campo pieno di un colore del brand; il logo è sempre il vettoriale originale. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --carta: #F5F1EA;
  --lino: #E9E2D6;
  --studio: #DCE4EA;
  --inchiostro: #1B2129;
  --inchiostro-2: #2C343E;
  --grafite: #3A424C;
  --rosa-punto: #E4285F;
  --rosa-pieno: #E0255C;
  --rosa-profondo: #B81B4C;
  --rosa-chiaro: #FBD5E0;
  --su-scuro: #D5D9DE;
  --bianco: #FFFFFF;

  --titoli: "Fraunces", Georgia, serif;
  --testo: "Figtree", Arial, sans-serif;

  /* cinque passi di corpo */
  --t-gigante: clamp(60px, 9.4vw, 150px);
  --t-titolo: clamp(40px, 5.6vw, 88px);
  --t-grande: clamp(24px, 2.4vw, 34px);
  --t-testo: 19px;
  --t-piccolo: 15px;

  --m: clamp(20px, 3.4vw, 48px);
  --sezione: clamp(96px, 12vw, 176px);
  --anello: var(--inchiostro);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carta); color: var(--inchiostro); font-family: var(--testo); font-size: var(--t-testo); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
::selection { background: var(--rosa-chiaro); color: var(--inchiostro); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: 12px; top: -80px; background: var(--inchiostro); color: var(--carta); padding: 12px 18px; z-index: 50; text-decoration: none; }
.salta:focus { top: 12px; }
.rosa { color: var(--rosa-punto); }

.griglia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--m); max-width: 1680px; margin: 0 auto; }

/* Tipografia */
.gigante { font-family: var(--titoli); font-weight: 800; font-size: var(--t-gigante); line-height: .92; letter-spacing: -0.04em; }
.titolo { font-family: var(--titoli); font-weight: 800; font-size: var(--t-titolo); line-height: .98; letter-spacing: -0.035em; }
.grande { font-family: var(--titoli); font-weight: 700; font-size: var(--t-grande); line-height: 1.15; letter-spacing: -0.015em; }
.piccolo { font-size: var(--t-piccolo); line-height: 1.5; }
.misura { max-width: 34em; }

/* Logo: simbolo + nome, mai ridisegnato e mai coperto */
.logo { display: inline-flex; align-items: center; gap: .32em; text-decoration: none; font-family: var(--titoli); font-weight: 600; font-size: 26px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 1.3em; height: 1.3em; flex: none; }
.logo--chiaro { --anello: var(--carta); color: var(--carta); }

/* Bottoni: rettangoli pieni, angoli vivi */
.bottone { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; background: var(--rosa-pieno); color: var(--bianco); font-weight: 700; font-size: var(--t-testo); text-decoration: none; white-space: nowrap; transition: background-color .18s ease, color .18s ease, transform .12s ease; }
.bottone:hover { background: var(--inchiostro); color: var(--carta); }
.bottone:active { transform: scale(.98); }
.bottone--inchiostro { background: var(--inchiostro); color: var(--carta); }
.bottone--inchiostro:hover { background: var(--bianco); color: var(--inchiostro); }
.bottone--carta { background: var(--carta); color: var(--inchiostro); }
.bottone--carta:hover { background: var(--inchiostro); color: var(--carta); }
.bottone--piccolo { min-height: 44px; padding: 0 18px; font-size: var(--t-piccolo); }

.collega { font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; min-height: 44px; transition: opacity .18s ease; }
.collega:hover { opacity: .75; }

/* -------------------------------------------------------------- Barra (pagine interne) */
.barra { position: sticky; top: 0; z-index: 20; background: var(--colore-barra, var(--carta)); color: var(--inchiostro-barra, var(--inchiostro)); transition: background-color .3s ease, color .3s ease; }
.barra { --anello: currentColor; }
.barra__riga { display: flex; align-items: center; gap: 24px; padding: 12px var(--m); max-width: 1680px; margin: 0 auto; }
.barra .logo { --anello: currentColor; }
.barra__nav { display: none; gap: 28px; margin-left: auto; }
.barra__nav a { text-decoration: none; font-weight: 600; font-size: var(--t-testo); padding: 10px 0; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.barra__nav a:hover, .barra__nav a[aria-current="page"] { text-decoration: underline; }
.barra__azione { margin-left: auto; }
.barra__nav + .barra__azione { margin-left: 8px; }
@media (min-width: 1100px) { .barra__nav { display: flex; } .menu { display: none; } }

/* menu su telefono, senza script */
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; background: var(--inchiostro); color: var(--carta); }
.menu summary::-webkit-details-marker { display: none; }
.menu__righe, .menu__righe::before, .menu__righe::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.menu__righe::before, .menu__righe::after { content: ""; position: absolute; left: 0; }
.menu__righe::before { top: -6px; } .menu__righe::after { top: 6px; }
.menu[open] .menu__righe { background: transparent; }
.menu[open] .menu__righe::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu__righe::after { top: 0; transform: rotate(-45deg); }
.menu__pannello { position: absolute; right: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 40px)); display: grid; background: var(--inchiostro); z-index: 30; box-shadow: 0 18px 40px rgba(27, 33, 41, .25); }
.menu__pannello a { display: block; padding: 16px 20px; color: var(--carta); text-decoration: none; font-weight: 600; font-size: var(--t-testo); }
.menu__pannello a:nth-child(1) { background: var(--rosa-chiaro); color: var(--inchiostro); }
.menu__pannello a:nth-child(2) { background: var(--rosa-pieno); color: var(--bianco); }
.menu__pannello a:nth-child(3) { background: var(--studio); color: var(--inchiostro); }
.menu__pannello a:nth-child(4) { background: var(--lino); color: var(--inchiostro); }
.menu__pannello a:nth-child(5) { background: var(--inchiostro-2); color: var(--carta); }
.menu__pannello a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu__pannello a[aria-current="page"]::after { content: " ·"; }

/* -------------------------------------------------------------- Apertura della home */
.apertura { background: var(--carta); padding: 10px; display: grid; gap: 10px; }
.apertura__vista { position: relative; overflow: hidden; min-height: 64svh; display: flex; flex-direction: column; color: var(--inchiostro); }
.apertura__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.apertura__logo { position: relative; padding: 22px 24px 0; }
.apertura__titolo { position: relative; padding: 0 24px; margin-top: clamp(36px, 10svh, 120px); max-width: 9.5em; font-size: clamp(34px, 9vw, 150px); }
.apertura__piede { position: relative; margin-top: auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; }
.apertura__frase { font-size: var(--t-testo); line-height: 1.45; max-width: 26em; background: var(--carta); padding: 14px 16px; }
.campioni { display: grid; }
.campioni a { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 18px; min-height: 52px; text-decoration: none; font-weight: 700; font-size: var(--t-testo); }
.campioni a span[aria-hidden] { transition: transform .2s var(--ease-out); }
.campioni a span[aria-hidden] { font-weight: 400; }
.c-rosa-chiaro { background: var(--rosa-chiaro); color: var(--inchiostro); }
.c-rosa { background: var(--rosa-pieno); color: var(--bianco); }
.c-studio { background: var(--studio); color: var(--inchiostro); }
.c-lino { background: var(--lino); color: var(--inchiostro); }
.c-inchiostro { background: var(--inchiostro); color: var(--carta); }
.c-inchiostro-2 { background: var(--inchiostro-2); color: var(--carta); }
.c-carta { background: var(--carta); color: var(--inchiostro); }
.c-profondo { background: var(--rosa-profondo); color: var(--bianco); }
@media (min-width: 900px) {
  .apertura { min-height: calc(100svh - 68px); padding-top: 0; }
  .apertura__vista { min-height: calc(100svh - 78px); }
  .campioni { grid-template-rows: repeat(5, 1fr); }
  .campioni a { padding: 20px; font-size: var(--t-testo); }
  .apertura__titolo { padding: 0 40px; }
  .apertura__logo { padding: 28px 40px 0; }
  .apertura__piede { padding: 0 40px 36px; }
}
@media (prefers-reduced-motion: reduce) { .apertura__video { display: none; } }
@keyframes respiro { from { transform: scale(1); } to { transform: scale(1.06); } }

/* -------------------------------------------------------------- Testa delle pagine interne */
.testa { padding: clamp(56px, 8vw, 120px) 0 var(--sezione); }
.testa__griglia { row-gap: 40px; align-items: end; }
.testa__testo { grid-column: 1 / -1; }
.testa__testo p { margin-top: 28px; font-size: var(--t-grande); font-family: var(--titoli); font-weight: 600; line-height: 1.2; max-width: 22em; }
.testa__foto { grid-column: 1 / -1; }
.testa__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.testa__foto--larga img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .testa__testo { grid-column: 1 / 8; }
  .testa__foto { grid-column: 9 / 13; }
  .testa__foto--larga { grid-column: 8 / 13; }
}

/* -------------------------------------------------------------- Capitolo: scala di frasi */
.scala { min-height: 100svh; display: flex; align-items: center; padding: var(--sezione) 0; }
.scala__griglia { row-gap: 48px; width: 100%; }
.scala__titolo { grid-column: 1 / -1; color: var(--carta); }
.scala__frase { grid-column: 1 / -1; font-family: var(--titoli); font-weight: 700; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -0.015em; }
.scala__frase span { display: block; }
.scala__frase span:nth-child(2) { padding-left: 5vw; color: var(--rosa-chiaro); }
.scala__frase span:nth-child(3) { padding-left: 10vw; }
.scala__frase span:nth-child(4) { padding-left: 15vw; color: var(--rosa-chiaro); }
.scala__frase span:nth-child(5) { padding-left: 20vw; }
.scala__foto { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scala__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.scala__nota { grid-column: 1 / -1; max-width: 30em; color: var(--carta); }
.scala__nota b { color: var(--carta); }
@media (min-width: 1000px) {
  .scala__titolo { grid-column: 1 / 10; }
  .scala__frase { grid-column: 1 / 10; }
  .scala__frase span:nth-child(2) { padding-left: 6vw; } .scala__frase span:nth-child(3) { padding-left: 12vw; }
  .scala__frase span:nth-child(4) { padding-left: 18vw; } .scala__frase span:nth-child(5) { padding-left: 24vw; }
  .scala__foto { grid-column: 10 / 13; grid-row: 1 / 4; grid-template-columns: 1fr; align-self: start; }
  .scala__nota { grid-column: 1 / 6; }
}

/* -------------------------------------------------------------- Capitolo: lastra quadrata */
.lastra { padding: var(--sezione) 0; min-height: 88svh; display: flex; align-items: center; }
.lastra__griglia { row-gap: 40px; width: 100%; align-items: center; }
.lastra__foto { grid-column: 1 / -1; }
.lastra__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lastra__testo { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 32px; }
.lastra__schede { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 700; font-size: var(--t-testo); }
.lastra__schede span { white-space: nowrap; }
.lastra__schede b { font-family: var(--titoli); font-weight: 800; }
.lastra__azioni { display: grid; grid-template-columns: 1fr; gap: 0; }
.lastra__azioni a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 22px; font-weight: 700; font-size: var(--t-testo); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.lastra__azioni a:first-child { background: var(--inchiostro); color: var(--carta); }
.lastra__azioni a:first-child:hover { background: var(--rosa-pieno); color: var(--bianco); }
.lastra__azioni a:last-child { background: var(--carta); color: var(--inchiostro); }
.lastra__azioni a:last-child:hover { background: var(--inchiostro); color: var(--carta); }
@media (min-width: 900px) {
  .lastra__foto { grid-column: 1 / 7; }
  .lastra__testo { grid-column: 8 / 13; }
  .lastra__azioni { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------- Capitolo: tasselli che crescono */
.crescita { padding: var(--sezione) 0; }
.crescita__griglia { row-gap: 32px; }
.crescita__titolo { grid-column: 1 / -1; }
.crescita__fase { grid-column: 1 / -1; }
.crescita__tassello { overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 24px 24px 0; }
.crescita__tassello img { width: 72%; aspect-ratio: 4 / 5; object-fit: cover; }
.crescita__fase--1 .crescita__tassello { height: 46vw; }
.crescita__fase--2 .crescita__tassello { height: 60vw; }
.crescita__fase--3 .crescita__tassello { height: 78vw; }
.crescita__fase h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); margin-top: 18px; }
.crescita__fase p { margin-top: 6px; max-width: 34em; }
.crescita__quando { font-weight: 700; }
.crescita__nota { grid-column: 1 / -1; margin-top: 24px; max-width: 40em; }
@media (min-width: 900px) {
  .crescita__griglia { align-items: end; }
  .crescita__titolo { grid-column: 1 / 8; grid-row: 1; align-self: start; }
  .crescita__fase { grid-row: 2; }
  .crescita__fase--1 { grid-column: 1 / 4; }
  .crescita__fase--2 { grid-column: 4 / 8; }
  .crescita__fase--3 { grid-column: 8 / 13; grid-row: 1 / 3; }
  .crescita__fase--1 .crescita__tassello { height: 30vh; min-height: 240px; }
  .crescita__fase--2 .crescita__tassello { height: 44vh; min-height: 340px; }
  .crescita__fase--3 .crescita__tassello { height: 64vh; min-height: 480px; }
  .crescita__tassello img { width: auto; height: 86%; }
  .crescita__nota { grid-column: 1 / 8; }
}

/* -------------------------------------------------------------- Capitolo: titolo fermo, righe che passano */
.fermo { padding: var(--sezione) 0; }
.fermo__griglia { row-gap: 56px; }
.fermo__titolo { grid-column: 1 / -1; }
.fermo__titolo p { margin-top: 24px; max-width: 24em; }
.fermo__righe { grid-column: 1 / -1; display: grid; gap: 80px; }
.fermo__blocco h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); line-height: 1.05; margin-bottom: 24px; }
.fermo__coppia { display: grid; gap: 24px; }
.fermo__coppia img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fermo__coppia ul { display: grid; gap: 14px; font-size: var(--t-testo); }
.fermo__coppia li { padding-left: 26px; position: relative; }
.fermo__coppia li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
@media (min-width: 1000px) {
  .fermo__titolo { grid-column: 1 / 6; position: sticky; top: 96px; align-self: start; }
  .fermo__righe { grid-column: 7 / 13; gap: 120px; }
  .fermo__coppia { grid-template-columns: 220px 1fr; align-items: start; gap: 32px; }
  .fermo__coppia img { aspect-ratio: 3 / 4; }
  .fermo__blocco:nth-child(even) .fermo__coppia { grid-template-columns: 1fr 220px; }
  .fermo__blocco:nth-child(even) .fermo__coppia img { order: 2; }
}

/* -------------------------------------------------------------- Capitolo: pannello incassato */
.incasso { padding: 20px; }
.incasso__pannello { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 56px); display: grid; gap: 40px; min-height: 100svh; }
.incasso__titolo { max-width: 9em; }
.incasso__testi { display: grid; gap: 40px; align-content: start; }
.incasso__testi h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); margin-bottom: 10px; }
.incasso__testi p { max-width: 24em; }
.incasso__cerchio { width: min(86vw, 560px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; justify-self: center; margin-bottom: calc(-1 * clamp(32px, 4vw, 56px) - 18%); }
.incasso__cerchio img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .incasso__pannello { grid-template-columns: 6fr 1fr 4fr; grid-template-rows: auto 1fr; min-height: 110svh; }
  .incasso__titolo { grid-column: 1; grid-row: 1; }
  .incasso__testi { grid-column: 3; grid-row: 1 / 3; }
  .incasso__cerchio { grid-column: 1; grid-row: 2; width: min(38vw, 620px); justify-self: start; align-self: end; margin-bottom: calc(-1 * clamp(32px, 4vw, 56px) - 7vw); }
}

/* -------------------------------------------------------------- Capitolo: il biglietto */
.prezzo { padding: var(--sezione) 0; }
.prezzo__intro { grid-column: 1 / -1; margin-bottom: 56px; }
.prezzo__intro p { margin-top: 20px; max-width: 30em; }
.biglietto { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: 1fr; --sfondo: var(--lino); }
.biglietto__corpo { background: var(--inchiostro); color: var(--carta); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 36px; }
.biglietto__corpo h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-titolo); line-height: 1; letter-spacing: -0.03em; }
.biglietto__corpo ul { display: grid; gap: 12px 32px; font-size: var(--t-testo); }
.biglietto__corpo li { padding-left: 24px; position: relative; }
.biglietto__corpo li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--rosa-punto); }
.biglietto__matrice { background: var(--rosa-pieno); color: var(--bianco); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; }
.biglietto__cifra { font-family: var(--titoli); font-weight: 800; font-size: clamp(72px, 7vw, 120px); line-height: .9; letter-spacing: -0.04em; }
.biglietto__cifra small { display: block; font-family: var(--testo); font-weight: 700; font-size: var(--t-testo); letter-spacing: 0; margin-top: 10px; }
.biglietto__giorno { font-size: var(--t-testo); }
.biglietto__matrice .bottone { width: 100%; }
/* intacchi e perforazione */
.biglietto__matrice::before, .biglietto__matrice::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--sfondo); left: 50%; translate: -50% 0; }
.biglietto__matrice::before { top: -14px; } .biglietto__matrice::after { top: auto; bottom: -14px; display: none; }
.biglietto__perfora { position: absolute; left: 0; right: 0; top: -3px; height: 6px; background-image: radial-gradient(circle, var(--sfondo) 3px, transparent 3.5px); background-size: 14px 6px; background-repeat: repeat-x; }
@media (min-width: 900px) {
  .biglietto { grid-template-columns: 7fr 3fr; }
  .biglietto__corpo ul { grid-template-columns: 1fr 1fr; }
  .biglietto__matrice::before { left: -14px; top: -14px; translate: none; }
  .biglietto__matrice::after { display: block; left: -14px; bottom: -14px; }
  .biglietto__perfora { left: -3px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; background-size: 6px 14px; background-repeat: repeat-y; }
}

/* la cosa viva: scegli i tuoi giorni */
.giorni { grid-column: 1 / -1; margin-top: 56px; display: grid; gap: 24px; }
.giorni fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.giorni legend { font-weight: 700; font-size: var(--t-testo); line-height: 1.3; padding: 0; margin-bottom: 14px; }
.giorni__scelte { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.giorni__scelte label { position: relative; display: grid; place-items: center; min-height: 64px; background: var(--carta); font-weight: 700; font-size: var(--t-testo); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.giorni__scelte input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.giorni__scelte label:has(input:checked) { background: var(--inchiostro); color: var(--carta); }
.giorni__scelte label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.giorni__scelte label:has(input:focus-visible) { outline: 3px solid var(--inchiostro); outline-offset: 3px; }
.giorni__esito { font-family: var(--titoli); font-weight: 700; font-size: var(--t-grande); line-height: 1.2; max-width: 26em; }
.giorni__esito b { color: var(--rosa-profondo); font-weight: 800; }
@media (min-width: 900px) { .giorni { grid-template-columns: 6fr 5fr; column-gap: 56px; align-items: end; } }

/* -------------------------------------------------------------- Capitolo: domande a tasselli */
.domande { padding: var(--sezione) 0; }
.domande__griglia { row-gap: 40px; }
.domande__titolo { grid-column: 1 / -1; }
.domande__titolo p { margin-top: 20px; }
.domande__lista { grid-column: 1 / -1; display: grid; gap: 8px; }
.domanda { background: var(--lino); transition: background-color .2s ease, color .2s ease; }
.c-lino .domanda { background: var(--carta); }
.domanda summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 16px 24px; font-weight: 700; font-size: var(--t-testo); line-height: 1.3; }
.domanda summary::-webkit-details-marker { display: none; }
.domanda__segno { position: relative; width: 16px; height: 16px; flex: none; }
.domanda__segno::before, .domanda__segno::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .2s ease; }
.domanda__segno::after { transform: rotate(90deg); }
.domanda[open] { background: var(--rosa-pieno); color: var(--bianco); }
.domanda[open] .domanda__segno::after { transform: rotate(0deg); }
.domanda p { padding: 0 24px 24px; font-size: var(--t-testo); max-width: 52ch; }
.domanda p + p { padding-top: 0; }
@media (min-width: 1000px) {
  .domande__titolo { grid-column: 1 / 5; position: sticky; top: 96px; align-self: start; }
  .domande__lista { grid-column: 5 / 13; }
}

/* -------------------------------------------------------------- Capitolo: una parola è il bottone */
.parola { display: flex; flex-direction: column; justify-content: space-between; min-height: 60svh; padding: 24px var(--m) 20px; background: var(--rosa-pieno); color: var(--bianco); text-decoration: none; transition: background-color 0s, color 0s; }
.parola:hover, .parola:focus-visible { background: var(--inchiostro); color: var(--rosa-chiaro); }
.parola:focus-visible { outline: 4px solid var(--rosa-chiaro); outline-offset: -8px; }
.parola__testa { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.parola__testa p { font-size: var(--t-testo); max-width: 26em; font-weight: 600; }
.parola__freccia { width: 48px; height: 48px; flex: none; transition: transform .25s ease; }

.parola__verbo { font-family: var(--titoli); font-weight: 900; font-size: clamp(88px, 26vw, 420px); line-height: .8; letter-spacing: -0.06em; white-space: nowrap; }

/* -------------------------------------------------------------- Capitoli generici delle pagine interne */
.capitolo { padding: var(--sezione) 0; }
.capitolo__griglia { row-gap: 40px; }
.capitolo__titolo { grid-column: 1 / -1; }
.capitolo__titolo p { margin-top: 24px; max-width: 30em; }
.capitolo__corpo { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .capitolo__titolo { grid-column: 1 / 6; }
  .capitolo__corpo { grid-column: 7 / 13; }
  .capitolo--largo .capitolo__titolo { grid-column: 1 / 10; }
  .capitolo--largo .capitolo__corpo { grid-column: 1 / 13; }
}

/* elenco a righe grandi */
.righe { display: grid; gap: 0; }
.righe > li { display: grid; gap: 6px; padding: 26px 0; }
.righe > li + li { box-shadow: inset 0 3px 0 currentColor; }
.righe h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); line-height: 1.1; }
.righe .tempo { font-weight: 700; }
@media (min-width: 700px) { .righe--tempo > li { grid-template-columns: 9em 1fr; column-gap: 24px; } .righe--tempo h3 { grid-column: 2; } .righe--tempo p { grid-column: 2; } .righe--tempo .tempo { grid-row: 1 / 3; padding-top: 8px; } }

/* tre colonne di frasi grandi */
.colonne { display: grid; gap: 40px; }
.colonne h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); line-height: 1.05; margin-bottom: 12px; }
@media (min-width: 900px) { .colonne { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* settimana d'esempio, come in agenda */
.agenda { display: grid; gap: 6px; }
.agenda__giorno { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 16px; align-items: baseline; padding: 20px 22px; background: var(--carta); color: var(--inchiostro); }
.agenda__giorno b { font-weight: 700; }
.agenda__giorno span:last-child { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); }
.agenda__giorno--abitudine { background: var(--lino); }
.agenda__nota { margin-top: 14px; }
@media (max-width: 480px) { .agenda__giorno { grid-template-columns: 1fr auto; } .agenda__giorno b { grid-column: 1 / -1; } }

/* anello delle 12 settimane: segmenti del logo */
.anello { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.anello svg { width: clamp(180px, 22vw, 300px); height: auto; flex: none; }
.anello figcaption { display: grid; gap: 12px; font-size: var(--t-testo); }
.anello figcaption span { display: flex; gap: 12px; align-items: center; }
.anello i { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.f1 { stroke: var(--rosa-punto); } .f2 { stroke: var(--rosa-chiaro); } .f3 { stroke: var(--carta); }
i.f1 { background: var(--rosa-punto); } i.f2 { background: var(--rosa-chiaro); } i.f3 { background: var(--carta); }

/* tappe */
.tappe { display: grid; gap: 6px; }
.tappe li { padding: 28px; display: grid; gap: 6px; }
.tappe .tempo { font-weight: 700; }
.tappe h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); line-height: 1.05; }
@media (min-width: 900px) { .tappe { grid-template-columns: repeat(4, 1fr); } .tappe li { min-height: 300px; align-content: end; } }

/* conversazioni con Vera: frammento d'interfaccia */
.dialoghi { display: grid; gap: 24px; }
.dialogo { background: var(--bianco); color: var(--inchiostro); padding: 22px; display: grid; gap: 10px; align-content: start; }
.dialogo__chi { display: flex; align-items: center; gap: 10px; font-weight: 700; padding-bottom: 8px; }
.dialogo__chi svg { width: 30px; height: 30px; }
.dialogo__chi span { font-weight: 400; color: var(--grafite); font-size: var(--t-piccolo); }
.fumetto { padding: 13px 16px; font-size: var(--t-testo); line-height: 1.45; max-width: 88%; }
.fumetto--vera { background: var(--carta); justify-self: start; }
.fumetto--tu { background: var(--inchiostro); color: var(--carta); justify-self: end; }
.dialogo__caso { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); margin-bottom: 12px; }
@media (min-width: 1000px) { .dialoghi { grid-template-columns: repeat(3, 1fr); } }

/* foto in capitolo */
.foto-capitolo img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.foto-capitolo--larga img { aspect-ratio: 16 / 9; }

/* documenti */
.documenti { display: grid; gap: 6px; }
.documenti a { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 24px; background: var(--carta); color: var(--inchiostro); font-weight: 700; font-size: var(--t-testo); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.documenti a:hover { background: var(--inchiostro); color: var(--carta); }

/* -------------------------------------------------------------- Piede */
.piede { background: var(--inchiostro); color: var(--carta); padding: clamp(64px, 8vw, 120px) 0 28px; overflow: hidden; }
.piede__marchio { padding: 0 var(--m); max-width: 1680px; margin: 0 auto; }
.piede__marchio .logo { font-size: clamp(48px, 12.4vw, 210px); gap: .28em; }
.piede__griglia { row-gap: 48px; margin-top: 72px; }
.piede__azioni { grid-column: 1 / -1; display: grid; gap: 6px; align-content: start; }
.piede__azioni a { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); line-height: 1.1; color: var(--rosa-chiaro); text-decoration: none; padding: 4px 0; }
.piede__azioni a:hover { text-decoration: underline; text-underline-offset: 8px; }
.piede__colonne { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.piede__colonne p { font-weight: 700; margin-bottom: 8px; color: var(--rosa-chiaro); font-size: var(--t-piccolo); }
.piede__colonne a { display: inline-block; padding: 6px 0; font-size: var(--t-piccolo); color: var(--carta); text-underline-offset: 4px; }
.piede__avviso { grid-column: 1 / -1; max-width: 46em; color: var(--su-scuro); font-size: var(--t-piccolo); }
.piede__fondo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; font-size: var(--t-piccolo); color: var(--su-scuro); }
.piede__fondo a { color: var(--carta); }
@media (min-width: 900px) {
  .piede__azioni { grid-column: 1 / 6; }
  .piede__colonne { grid-column: 7 / 13; grid-template-columns: repeat(3, 1fr); }
  .piede__avviso { grid-column: 1 / 8; }
}

/* -------------------------------------------------------------- Entrate (solo con script attivo) */
.js [data-entra] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-entra].visto > * { opacity: 1; transform: none; }
.js [data-entra].visto > *:nth-child(2) { transition-delay: .08s; }
.js [data-entra].visto > *:nth-child(3) { transition-delay: .16s; }
.js [data-entra].visto > *:nth-child(4) { transition-delay: .24s; }
.js [data-entra].visto > *:nth-child(5) { transition-delay: .32s; }
.js [data-entra].visto > *:nth-child(n+6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-entra] > * { opacity: 1; transform: none; transition: none; }
  .bottone, .campioni a, .domanda, .parola__freccia { transition: none; }
}
.punto-inchiostro { color: var(--inchiostro); }
.biglietto--carta { --sfondo: var(--carta); }
.spazio { margin-top: 40px; }
.spazio-piccolo { margin-top: 24px; }
.domande__gruppo { margin: 32px 0 8px; }
.domande__gruppo:first-child { margin-top: 0; }
.c-inchiostro-2 .domanda { background: var(--inchiostro); color: var(--carta); }
.c-inchiostro-2 .domanda[open] { background: var(--rosa-pieno); color: var(--bianco); }
.parola__verbo { font-size: clamp(88px, 27vw, 640px); }
@media (min-width: 900px) { .parola__verbo { font-size: clamp(88px, 37vw, 640px); } }
.incasso__pannello { grid-template-columns: minmax(0, 1fr); }
.incasso__cerchio { width: 100%; max-width: 560px; }
@media (min-width: 1000px) { .incasso__pannello { grid-template-columns: 6fr 1fr 4fr; } .incasso__cerchio { width: min(38vw, 620px); max-width: none; } }

/* Fila di foto */
.striscia { padding: clamp(56px, 7vw, 112px) 0; }
.striscia__fila { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--m); scrollbar-width: none; }
.striscia__fila figure { scroll-snap-align: start; }
.striscia__fila img { width: 100%; height: 420px; object-fit: cover; }
.striscia__fila figcaption { margin-top: 14px; font-family: var(--titoli); font-weight: 700; font-size: var(--t-testo); }
@media (min-width: 900px) {
  .striscia__fila { grid-auto-flow: row; grid-template-columns: 1fr 1.7fr 1fr; overflow: visible; max-width: 1680px; margin: 0 auto; }
  .striscia__fila img { height: clamp(360px, 36vw, 600px); }
}
.c-carta .giorni__scelte label { background: var(--lino); }

/* ===================================================== Movimento
   Pagina di marketing, vista poche volte: c'è spazio per spiegare e per un po' di piacere.
   Solo transform, opacity e clip-path. Con movimento ridotto restano solo dissolvenze. */

@media (hover: hover) and (pointer: fine) {
  .campioni a:hover span[aria-hidden] { transform: translateY(4px); }
  .parola:hover .parola__freccia { transform: translate(6px, -6px); }
  .lastra__azioni a span, .documenti a span { transition: transform .2s var(--ease-out); display: inline-block; }
  .lastra__azioni a:hover span, .documenti a:hover span { transform: translateX(4px); }
}

/* Apertura: le parole salgono, il punto cade per ultimo. Il punto lo metti tu. */
@keyframes sale { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes cade { 0% { opacity: 0; transform: translateY(-1.2em); } 70% { opacity: 1; transform: translateY(0.06em); } 100% { opacity: 1; transform: none; } }
@keyframes entra-destra { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes compare { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.apertura__titolo .sale, .apertura__titolo .punto-cade { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .apertura__titolo .sale { animation: sale .8s var(--ease-out) both; }
  .apertura__titolo .sale:nth-child(2) { animation-delay: .08s; }
  .apertura__titolo .sale:nth-child(3) { animation-delay: .16s; }
  .apertura__titolo .sale:nth-child(4) { animation-delay: .24s; }
  .apertura__titolo .punto-cade { animation: cade .55s var(--ease-out) .75s both; }
  .apertura__frase, .apertura__piede .bottone { animation: compare .7s var(--ease-out) .5s both; }
  .apertura__piede .bottone { animation-delay: .6s; }
  .campioni a { animation: entra-destra .6s var(--ease-out) both; }
  .campioni a:nth-child(1) { animation-delay: .35s; } .campioni a:nth-child(2) { animation-delay: .42s; }
  .campioni a:nth-child(3) { animation-delay: .49s; } .campioni a:nth-child(4) { animation-delay: .56s; }
  .campioni a:nth-child(5) { animation-delay: .63s; }
}

/* La scala: ogni riga scende di un gradino */
.js .scala__frase span { opacity: 0; transform: translateX(-28px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .visto .scala__frase span { opacity: 1; transform: none; }
.js .visto .scala__frase span:nth-child(1) { transition-delay: .25s; }
.js .visto .scala__frase span:nth-child(2) { transition-delay: .35s; }
.js .visto .scala__frase span:nth-child(3) { transition-delay: .45s; }
.js .visto .scala__frase span:nth-child(4) { transition-delay: .55s; }

/* Tasselli che crescono: si aprono dal basso, uno dopo l'altro */
.js .crescita__tassello { clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease-out); }
.js .visto .crescita__tassello { clip-path: inset(0 0 0 0); }
.js .visto .crescita__fase--2 .crescita__tassello { transition-delay: .12s; }
.js .visto .crescita__fase--3 .crescita__tassello { transition-delay: .24s; }

/* Anello vivo: le settimane si accendono mentre scorri il capitolo */
.anello-vivo { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.anello-vivo__svg { width: 120px; height: 120px; flex: none; }
.anello-vivo path { stroke: var(--lino); transition: stroke .3s ease; }
.anello-vivo path.acceso.f1 { stroke: var(--rosa-punto); }
.anello-vivo path.acceso.f2 { stroke: var(--rosa-profondo); }
.anello-vivo path.acceso.f3 { stroke: var(--inchiostro); }
.anello-vivo circle { transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .45s var(--ease-out); }
.anello-vivo:not(.completo) circle { opacity: 0; transform: scale(.5); }
.anello-vivo figcaption { font-weight: 700; font-variant-numeric: tabular-nums; }
.anello-vivo figcaption b { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); }
/* senza script: anello completo */
html:not(.js) .anello-vivo path.f1 { stroke: var(--rosa-punto); }
html:not(.js) .anello-vivo path.f2 { stroke: var(--rosa-profondo); }
html:not(.js) .anello-vivo path.f3 { stroke: var(--inchiostro); }

/* Anello del Protocollo: si disegna segmento per segmento, poi arriva il punto */
.js [data-disegna] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .28s var(--ease-out); }
.js [data-disegna].visto path { stroke-dashoffset: 0; }
.js [data-disegna] circle { opacity: 0; transform: scale(.5); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .5s var(--ease-out); }
.js [data-disegna].visto circle { opacity: 1; transform: none; transition-delay: 1.3s; }

/* Cortile: la foto si apre come un cerchio */
.js .incasso__cerchio { clip-path: circle(0% at 50% 50%); transition: clip-path 1.1s var(--ease-out) .2s; }
.js .visto .incasso__cerchio { clip-path: circle(50% at 50% 50%); }

/* Vera: tu scrivi, lei sta scrivendo, poi risponde */
.fumetto--scrive { display: none; }
@keyframes puntini { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes via { to { opacity: 0; } }
.js .dialoghi .fumetto--tu, .js .dialoghi .fumetto--vera { opacity: 0; transform: translateY(10px) scale(.97); }
.js .dialoghi .fumetto--tu { transform-origin: right bottom; } .js .dialoghi .fumetto--vera { transform-origin: left bottom; }
.js .dialoghi.visto .fumetto--tu { animation: compare .35s var(--ease-out) .3s both; }
.js .dialoghi.visto .fumetto--scrive { display: flex; gap: 5px; justify-self: start; background: var(--carta); padding: 16px 18px; animation: compare .25s var(--ease-out) .75s both, via .15s ease 1.75s forwards; }
.js .dialoghi.visto .fumetto--scrive span { width: 7px; height: 7px; border-radius: 50%; background: var(--grafite); animation: puntini .9s ease-in-out infinite; }
.js .dialoghi.visto .fumetto--scrive span:nth-child(2) { animation-delay: .15s; }
.js .dialoghi.visto .fumetto--scrive span:nth-child(3) { animation-delay: .3s; }
.js .dialoghi.visto .fumetto--vera { animation: compare .35s var(--ease-out) 1.85s both; }
.js .dialoghi.visto > div:nth-child(2) .fumetto--tu { animation-delay: .6s; }
.js .dialoghi.visto > div:nth-child(2) .fumetto--scrive { animation-delay: 1.05s, 2.05s; }
.js .dialoghi.visto > div:nth-child(2) .fumetto--vera { animation-delay: 2.15s; }
.js .dialoghi.visto > div:nth-child(3) .fumetto--tu { animation-delay: .9s; }
.js .dialoghi.visto > div:nth-child(3) .fumetto--scrive { animation-delay: 1.35s, 2.35s; }
.js .dialoghi.visto > div:nth-child(3) .fumetto--vera { animation-delay: 2.45s; }
.js .dialoghi.visto .fumetto--scrive.finito { display: none; }

/* Biglietto: la matrice si stacca appena */
.js .prezzo .biglietto__matrice { transform: translateX(28px); opacity: 0; transition: transform .8s var(--ease-out) .25s, opacity .5s ease .25s; }
.js .prezzo .visto .biglietto__matrice { transform: none; opacity: 1; }
/* giorni: risposta al tocco */
.giorni__scelte label { transition: background-color .15s ease, color .15s ease, transform .12s var(--ease-out); }
.giorni__scelte label:active { transform: scale(.95); }
.giorni__esito.cambia { animation: compare .3s var(--ease-out); }

/* Domande: la risposta si apre senza scatti dove il browser lo permette */
@supports (interpolate-size: allow-keywords) {
  .domande__lista { interpolate-size: allow-keywords; }
  .domanda::details-content { height: 0; overflow: clip; transition: height .25s var(--ease-out), content-visibility .25s allow-discrete; }
  .domanda[open]::details-content { height: auto; }
}

/* Inizia: la parola scivola dentro mentre la banda entra (posizione dallo script) */
.parola__verbo { display: block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js .scala__frase span, .js .dialoghi .fumetto--tu, .js .dialoghi .fumetto--vera, .js .prezzo .biglietto__matrice { opacity: 1; transform: none; transition: none; animation: none; }
  .js .crescita__tassello, .js .incasso__cerchio { clip-path: none; transition: none; }
  .js [data-disegna] path { stroke-dashoffset: 0; transition: none; }
  .js [data-disegna] circle, .anello-vivo:not(.completo) circle { opacity: 1; transform: none; transition: none; }
  .js .dialoghi.visto .fumetto--scrive { display: none; }
  .anello-vivo path { transition: none; }
  .giorni__scelte label:active { transform: none; }
  .domanda::details-content { transition: none; }
}

/* segmenti uno dopo l'altro */
.js [data-disegna].visto path:nth-child(1) { transition-delay: 0.20s; }
.js [data-disegna].visto path:nth-child(2) { transition-delay: 0.28s; }
.js [data-disegna].visto path:nth-child(3) { transition-delay: 0.36s; }
.js [data-disegna].visto path:nth-child(4) { transition-delay: 0.44s; }
.js [data-disegna].visto path:nth-child(5) { transition-delay: 0.52s; }
.js [data-disegna].visto path:nth-child(6) { transition-delay: 0.60s; }
.js [data-disegna].visto path:nth-child(7) { transition-delay: 0.68s; }
.js [data-disegna].visto path:nth-child(8) { transition-delay: 0.76s; }
.js [data-disegna].visto path:nth-child(9) { transition-delay: 0.84s; }
.js [data-disegna].visto path:nth-child(10) { transition-delay: 0.92s; }
.js [data-disegna].visto path:nth-child(11) { transition-delay: 1.00s; }
.js [data-disegna].visto path:nth-child(12) { transition-delay: 1.08s; }
.parola { overflow: hidden; }
@media (max-width: 559px) { .barra__riga { gap: 10px; } }

/* ---------------- Vera in home: titolo sopra, tre casi uno accanto all'altro */
@media (min-width: 1000px) {
  .fermo__titolo { grid-column: 1 / 13; position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 64px; align-items: end; }
  .fermo__titolo h2 { grid-row: 1 / 4; }
  .fermo__titolo p { margin-top: 12px; }
  .fermo__righe { grid-column: 1 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .fermo__coppia, .fermo__blocco:nth-child(even) .fermo__coppia { grid-template-columns: 1fr; }
  .fermo__blocco:nth-child(even) .fermo__coppia img { order: 0; }
}
.fermo__coppia img { aspect-ratio: 4 / 3; }
.fermo__blocco { background: var(--rosa-profondo); padding: 28px; }
.fermo__blocco h3 { margin-bottom: 20px; }

/* ---------------- Cortile: titolo, tre punti, invito; sotto, il gruppo che si allena */
.incasso__pannello { display: flex; flex-direction: column; gap: 48px; min-height: 0; padding-bottom: 0; }
.incasso__testa { max-width: 46em; }
.incasso__testa .grande { margin-top: 24px; }
.incasso__punti { display: grid; gap: 32px; }
.incasso__punti h3 { font-family: var(--titoli); font-weight: 800; font-size: var(--t-grande); line-height: 1.1; margin-bottom: 10px; }
.incasso__punti p { max-width: 26em; }
.incasso__scena { display: block; width: calc(100% + 2 * clamp(32px, 4vw, 56px)); height: auto; margin: 0 calc(-1 * clamp(32px, 4vw, 56px)); }
.nuvola__testo { font-family: var(--testo); font-weight: 700; font-size: 17px; fill: var(--inchiostro); }
@media (min-width: 900px) { .incasso__punti { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* il gruppo in movimento: rotazioni attorno alle articolazioni */
@keyframes passo { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes passo-b { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-14deg); } }
@keyframes alza-sx { 0%, 15% { transform: rotate(0deg); } 50%, 65% { transform: rotate(165deg); } 100% { transform: rotate(0deg); } }
@keyframes alza-dx { 0%, 15% { transform: rotate(0deg); } 50%, 65% { transform: rotate(-165deg); } 100% { transform: rotate(0deg); } }
@keyframes piega { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(9deg); } }
@keyframes lato { 0%, 100% { transform: rotate(-11deg); } 50% { transform: rotate(11deg); } }
@keyframes stendi { 0%, 20%, 100% { transform: rotate(0deg); } 45%, 70% { transform: rotate(-78deg); } }
@keyframes saluta { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(16deg); } }
@keyframes nuvola { 0%, 8% { opacity: 0; transform: scale(.85); } 14%, 40% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: scale(.95); } }
@media (prefers-reduced-motion: no-preference) {
  .fig-marcia .gamba-a, .fig-marcia .braccio-b { animation: passo 1.4s var(--ease-in-out) infinite; }
  .fig-marcia .gamba-b, .fig-marcia .braccio-a { animation: passo-b 1.4s var(--ease-in-out) infinite; }
  .fig-braccia .alza-sx { animation: alza-sx 3.2s var(--ease-in-out) infinite; }
  .fig-braccia .alza-dx { animation: alza-dx 3.2s var(--ease-in-out) infinite; }
  .fig-piega .piega { animation: piega 2.2s var(--ease-in-out) infinite; }
  .fig-lato .lato { animation: lato 3.6s var(--ease-in-out) infinite; }
  .fig-sedia .stendi { animation: stendi 3s var(--ease-in-out) infinite; }
  .fig-saluto .saluta { animation: saluta .9s var(--ease-in-out) infinite; }
  .nuvola { animation: nuvola 9s var(--ease-out) infinite; }
  .nuvola.n2 { animation-delay: 3s; }
  .nuvola.n3 { animation-delay: 6s; }
}
.barra[data-tono="rosa"] .barra__azione { background: var(--inchiostro); color: var(--carta); }

/* Apertura su telefono: testo sopra, video intero sotto, nulla lo copre */
@media (max-width: 899px) {
  .apertura { padding: 0 0 10px; }
  .apertura__vista { display: grid; grid-template-areas: "titolo" "piede" "media"; min-height: 0; background: var(--carta); }
  .apertura__titolo { grid-area: titolo; margin-top: 28px; padding: 0 var(--m); }
  .apertura__piede { grid-area: piede; margin-top: 0; padding: 20px var(--m) 28px; flex-direction: column; align-items: stretch; }
  .apertura__frase { background: none; padding: 0; }
  .apertura__piede .bottone { width: 100%; }
  .apertura__foto { grid-area: media; position: relative; inset: auto; width: calc(100% - 20px); margin: 0 10px; height: auto; aspect-ratio: 4 / 3; object-position: 86% 100%; }
}
.prezzo, .parola { overflow-x: clip; }

/* Cortile: il gruppo è una decorazione di fondo, tono su tono, mai in primo piano */
.incasso__pannello { position: relative; overflow: hidden; padding-bottom: clamp(120px, 16vw, 240px); }
.incasso__pannello > :not(.incasso__scena) { position: relative; z-index: 1; }
.incasso__scena { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; width: 100%; margin: 0; color: #C42A57; pointer-events: none; }
@media (min-width: 900px) { .incasso__scena { left: auto; width: 72%; } }
