/*
  Sito vetrina di Ryd (ryd-app.it).

  Solo tema scuro, "Nero e oro": gli stessi token del tema scuro dell'app
  (src/index.css). Scelta del proprietario per il sito.

  Raggi: un solo sistema. Pillola per tutto cio' che si tocca, 24px per le
  superfici grandi, 14px per i campi.
*/

/* ---------- font (inclusi nel sito, nessuna richiesta esterna) ---------- */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("font/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("font/jost-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("font/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "InterVar";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("font/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVar";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("font/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Clash Display (titoli, numeri) e Satoshi (testo): Fontshare, inclusi nel sito.
   Jost e Inter restano per le schermate dell'app dentro il telefono. */
@font-face {
  font-family: "Clash Display";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("font/clash-display-400.woff2") format("woff2");
}
@font-face {
  font-family: "Clash Display";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("font/clash-display-500.woff2") format("woff2");
}
@font-face {
  font-family: "Clash Display";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("font/clash-display-600.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("font/satoshi-400.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("font/satoshi-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("font/satoshi-500.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("font/satoshi-700.woff2") format("woff2");
}

/* ---------- token ---------- */

:root {
  color-scheme: dark;
  --sfondo: #0d0d0d;
  --sfondo-2: #121110;
  --superficie: #161513;
  --testo: #f4ebdd;
  --tenue: #9a8f7c;
  --accento: #e1a857;
  --accento-chiaro: #f0cb8b;
  --bordo: #2a251d;
  --bordo-forte: #3a332a;
  --inverso-sfondo: #f4ebdd;
  --inverso-testo: #0d0d0d;
  --errore: #e3867a;
  --oro: linear-gradient(160deg, #f6d89c, #e1a857 55%, #b8853d);
  --oro-rgb: 225 168 87; /* aloni e bagliori */
  --oro-testo: var(--oro); /* lettere piene a sfumatura */
  --tratto: max(1px, 0.028em); /* contorno delle parole vuote */

  /* Glifo: oro sull'ossidiana. */
  --logo-da: #f6d89c;
  --logo-meta: #e1a857;
  --logo-a: #b8853d;

  --vetro: rgb(22 21 19 / 0.72);
  --vetro-bordo: rgb(244 235 221 / 0.1);
  --ombra: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.5);

  --r-pill: 999px;
  --r-lg: 24px;
  --r-md: 14px;

  --larghezza: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --sezione: clamp(88px, 11vw, 168px);

  --curva: cubic-bezier(0.16, 1, 0.3, 1);

  --f-titolo: "Clash Display", "Jost", system-ui, sans-serif;
  --f-testo: "Satoshi", "InterVar", system-ui, sans-serif;
}



/* Tema chiaro «Avorio e bronzo». Vale se lo chiede il sistema (e non e'
   stato scelto lo scuro) oppure se e' stato scelto con l'interruttore.
   L'oro sull'avorio non si legge: testo e contorni passano al bronzo.
   Il telefono, la sua schermata e la tessera da fondatore restano scuri:
   sono oggetti, non fondo della pagina. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --sfondo: #f7f2ea;
    --sfondo-2: #efe8dc;
    --superficie: #ffffff;
    --testo: #1a1712;
    --tenue: #6b6150;
    --accento: #8a5e1c;
    --accento-chiaro: #a8762e;
    --bordo: #e3d8c6;
    --bordo-forte: #d3c4ab;
    --inverso-sfondo: #1a1712;
    --inverso-testo: #f7f2ea;
    --errore: #b4473b;
    --oro-rgb: 200 142 62;
    --oro-testo: linear-gradient(160deg, #b8853d, #8a5e1c 55%, #5e3f10);
    --tratto: max(1.3px, 0.036em);
    --logo-da: #b8853d;
    --logo-meta: #8a5e1c;
    --logo-a: #5e3f10;
    --vetro: rgb(247 242 234 / 0.78);
    --vetro-bordo: rgb(26 23 18 / 0.1);
    --ombra: 0 1px 2px rgb(60 40 10 / 0.08), 0 12px 32px rgb(60 40 10 / 0.12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --sfondo: #f7f2ea;
  --sfondo-2: #efe8dc;
  --superficie: #ffffff;
  --testo: #1a1712;
  --tenue: #6b6150;
  --accento: #8a5e1c;
  --accento-chiaro: #a8762e;
  --bordo: #e3d8c6;
  --bordo-forte: #d3c4ab;
  --inverso-sfondo: #1a1712;
  --inverso-testo: #f7f2ea;
  --errore: #b4473b;
  --oro-rgb: 200 142 62;
  --oro-testo: linear-gradient(160deg, #b8853d, #8a5e1c 55%, #5e3f10);
  --tratto: max(1.3px, 0.036em);
  --logo-da: #b8853d;
  --logo-meta: #8a5e1c;
  --logo-a: #5e3f10;
  --vetro: rgb(247 242 234 / 0.78);
  --vetro-bordo: rgb(26 23 18 / 0.1);
  --ombra: 0 1px 2px rgb(60 40 10 / 0.08), 0 12px 32px rgb(60 40 10 / 0.12);
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--sfondo);
}

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

body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font-family: var(--f-testo);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--f-titolo);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-spacing: 0.12em; /* lo spazio di Clash Display e' stretto */
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--accento);
  color: var(--sfondo);
}

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

.solo-lettori {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contenitore {
  width: 100%;
  max-width: var(--larghezza);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

body > section {
  padding-block: var(--sezione);
}

/* ---------- intestazione fluttuante ---------- */

.testata {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  pointer-events: none;
  transition: padding 0.4s var(--curva);
}

.testata > * {
  pointer-events: auto;
}

.pillola {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  padding: 6px;
  transition: background 0.4s var(--curva), border-color 0.4s var(--curva),
    box-shadow 0.4s var(--curva), backdrop-filter 0.4s var(--curva);
}

/* Appena si scorre, le due pillole si posano: vetro, bordo, ombra.
   Serve a staccare l'intestazione dal contenuto che le passa sotto. */
.testata.posata .pillola {
  background: var(--vetro);
  border-color: var(--vetro-bordo);
  box-shadow: var(--ombra);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

@media (prefers-reduced-transparency: reduce) {
  .testata.posata .pillola {
    background: var(--superficie);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.marchio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-family: var(--f-titolo);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.marchio .glifo {
  height: 26px;
  width: auto;
  transition: height 0.4s var(--curva);
}

.testata.posata .marchio .glifo {
  height: 22px;
}

.collega {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--tenue);
  transition: color 0.25s var(--curva), background 0.25s var(--curva);
}

.collega:hover {
  color: var(--testo);
}

/* Interruttore del tema: sole nel tema scuro (passa al chiaro), luna nel chiaro. */
.tema {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tenue);
  cursor: pointer;
  transition: color 0.25s var(--curva), background 0.25s var(--curva);
}

@media (hover: hover) {
  .tema:hover {
    color: var(--testo);
    background: color-mix(in srgb, var(--testo) 8%, transparent);
  }
}

.tema svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tema .luna,
:root[data-tema-attivo="chiaro"] .tema .sole {
  display: none;
}

:root[data-tema-attivo="chiaro"] .tema .luna {
  display: block;
}

/* ---------- bottoni ---------- */

.bottone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 11px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--curva), background 0.25s var(--curva),
    border-color 0.25s var(--curva), opacity 0.25s var(--curva);
}

.bottone:active {
  transform: scale(0.975);
}

/* Pieno: inchiostro su avorio in chiaro, avorio su ossidiana in scuro.
   In entrambi i casi oltre 12:1. */
.bottone.pieno {
  background: var(--inverso-sfondo);
  color: var(--inverso-testo);
}

.bottone.pieno:hover {
  opacity: 0.86;
}

.bottone.vuoto {
  background: transparent;
  color: var(--testo);
  border-color: var(--bordo-forte);
}

.bottone.vuoto:hover {
  background: var(--sfondo-2);
}

.bottone.grande {
  padding: 15px 30px;
  font-size: 16px;
}

/* ---------- domande ---------- */

.domande {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.elenco-domande {
  border-top: 1px solid var(--bordo);
}

details {
  border-bottom: 1px solid var(--bordo);
}

summary {
  list-style: none;
  cursor: pointer;
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--f-titolo);
  font-weight: 500;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  letter-spacing: -0.015em;
}

summary::-webkit-details-marker {
  display: none;
}

summary .piu {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--curva);
}

summary .piu::before,
summary .piu::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--accento);
  border-radius: 2px;
}

summary .piu::after {
  inset: 0 auto 0 50%;
  width: 1.5px;
  height: auto;
  transform: translateX(-50%);
  transition: opacity 0.35s var(--curva);
}

details[open] summary .piu {
  transform: rotate(90deg);
}

details[open] summary .piu::after {
  opacity: 0;
}

details .risposta {
  color: var(--tenue);
  padding-bottom: 24px;
  max-width: 62ch;
  font-size: 15.5px;
}

/* ---------- piede ---------- */

.piede {
  border-top: 1px solid var(--bordo);
  padding-block: clamp(48px, 6vw, 72px) 40px;
  font-size: 14.5px;
  color: var(--tenue);
}

.piede-griglia {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.piede-marchio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-titolo);
  font-weight: 500;
  font-size: 20px;
  color: var(--testo);
}

.piede-marchio .glifo {
  height: 24px;
  width: auto;
}

.piede-nota {
  margin-top: 16px;
  max-width: 40ch;
}

.piede-colonne {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.piede h4 {
  margin: 0 0 12px;
  font-family: var(--f-titolo);
  font-size: 14px;
  font-weight: 500;
  color: var(--testo);
}

.piede ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.piede a {
  text-decoration: none;
  transition: color 0.25s var(--curva);
}

.piede a:hover {
  color: var(--accento);
}

.piede-coda {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--bordo);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13.5px;
}

/* ---------- comparsa allo scorrimento ---------- */

.sale {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s var(--curva), transform 0.7s var(--curva);
  transition-delay: var(--ritardo, 0ms);
}

.sale.visibile {
  opacity: 1;
  transform: none;
}

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

/* ---------- parola d'accento ---------- */

/* Parola d'accento: corsiva e solo contorno oro, vuota dentro (il fondo nero
   passa attraverso). Clash Display non ha il corsivo: lo inclina il browser.
   Riserva a destra e sotto, perche' la lettera inclinata e il tratto
   escono un poco dalla scatola. */
.em {
  font-family: var(--f-titolo);
  font-style: italic;
  font-weight: inherit;
  color: transparent;
  -webkit-text-stroke: var(--tratto) var(--accento);
  padding: 0 0.08em 0.08em 0;
}

/* Nelle scene del telefono la parola vuota fa da barra di avanzamento: si
   riempie da sinistra mentre va il video della scena (o, se la scena non ne
   ha, mentre la si scorre). La larghezza la scrive scena.js sulla parola stessa:
   Safari non ridisegna il testo ritagliato se cambia solo una variabile ereditata. */
.atto .em {
  background-image: linear-gradient(var(--accento), var(--accento));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  .atto .em {
    background-size: 100% 100% !important;
  }
}

.titolo-sezione {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 20ch;
}

/* ---------- palco: il telefono ---------- */

/* Sopra il testo (che gli passa dietro), sotto l'intestazione. Il telefono non
   cattura il puntatore: i bottoni nel testo restano cliccabili. */
.palco {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--curva);
}

.palco.acceso {
  opacity: 1;
}

.palco.fuori {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--curva), visibility 0s 0.5s;
}

#strato-css,
#strato-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#strato-css {
  overflow: hidden;
}

html.tre-d .telefono-css {
  display: none;
}

/* Ripiego senza WebGL (o con "riduci movimento"): telefono in CSS, stesse pose. */
.telefono-css {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 414px;
  height: 868px;
  margin: -434px 0 0 -207px;
  padding: 12px;
  border-radius: 62px;
  background: linear-gradient(160deg, #5a554d, #26231f 60%, #3a362f);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.6s var(--curva);
}

.telefono-css .vetro {
  border-radius: 50px;
  overflow: hidden;
  background: #000;
}

/* ---------- atti: una funzione alla volta ---------- */

#racconto {
  position: relative;
  z-index: 1;
}

.atto {
  position: relative;
  min-height: 168vh;
  padding-inline: var(--gutter);
  display: flex;
  align-items: flex-start;
  padding-block: 0;
}

.atto .testo {
  position: sticky;
  top: 27vh;
  width: min(34rem, 42vw);
}

.atto[data-lato="dx"] .testo {
  margin-left: auto;
  margin-right: clamp(0px, 5vw, 96px);
}

.atto[data-lato="sx"] .testo {
  margin-left: clamp(0px, 5vw, 96px);
}

.atto h1,
.atto h2 {
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.atto .lead,
.atto p {
  margin-top: 22px;
  max-width: 40ch;
  color: var(--tenue);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.atto .azioni {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.punti {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.punti li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
}

.punti li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 1.5px;
  background: var(--accento);
}

/* ---------- tre parole ---------- */

.parole {
  border-top: 1px solid var(--bordo);
  position: relative;
  z-index: 1;
  background: var(--sfondo);
}

.parole-griglia {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.parole-griglia > div {
  padding: clamp(28px, 4.5vw, 64px) clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--bordo);
}

.parole-griglia > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.parola {
  font-family: var(--f-titolo);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.012em;
}

.spiega {
  margin-top: 18px;
  max-width: 28ch;
  color: var(--tenue);
  font-size: 15.5px;
}

/* Dopo la storia le sezioni coprono il palco e non lo lasciano trasparire. */
body > section,
body > footer {
  position: relative;
  z-index: 1;
  background: var(--sfondo);
}

/* ---------- luce del palco ---------- */

/* Alone dorato dietro al telefono: lo muove scena.js, si accende quando si scorre. */
.alone {
  position: absolute;
  left: 0;
  top: 0;
  width: min(86vmin, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--oro-rgb) / 0.3), rgb(var(--oro-rgb) / 0.1) 46%, transparent 100%);
  opacity: 0.5;
  transform: translate3d(50vw, 50vh, 0) translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
}

/* ---------- binario della luce ---------- */

/* Un punto di luce scende con la pagina; le tacche sono le sezioni. */
.binario {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  top: 22vh;
  bottom: 22vh;
  width: 1px;
  z-index: 40;
  background: var(--bordo);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--curva);
}

.binario.acceso {
  opacity: 1;
}

.binario i {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 1px;
  background: var(--bordo-forte);
}

.binario .scia {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: var(--y, 0px);
  background: linear-gradient(to bottom, transparent, rgb(var(--oro-rgb) / 0.6));
}

.binario .punto {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accento-chiaro);
  box-shadow: 0 0 calc(10px + 26px * var(--vel, 0)) calc(2px + 6px * var(--vel, 0)) rgb(var(--oro-rgb) / 0.75);
  transform: translate3d(0, var(--y, 0px), 0);
}

/* ---------- visione: RyD, Reach your Dreams ---------- */

.visione {
  position: relative;
  z-index: 1;
  height: 260vh;
  background: var(--sfondo);
}

.visione-pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(28px, 4vw, 52px);
  padding-inline: var(--gutter);
  text-align: center;
  overflow: hidden;
}

.visione-luce {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(120vmin, 1200px);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(var(--oro-rgb) / 0.24), rgb(var(--oro-rgb) / 0.07) 50%, transparent);
  pointer-events: none;
}

.parola-ryd {
  position: relative;
  display: flex;
  justify-content: center;
  font-family: var(--f-titolo);
  font-weight: 500;
  font-size: min(9.4vw, 9.2rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  white-space: nowrap;
  padding-bottom: 0.08em;
}

.parola-ryd .w {
  display: inline-flex;
  margin-right: 0.28em;
}

.parola-ryd .w:last-child {
  margin-right: 0;
}

.parola-ryd .i {
  background-image: var(--oro-testo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.parola-ryd .r {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.visione-testo {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 48ch;
}

.visione-testo p {
  margin: 0;
  color: var(--tenue);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
}

.visione-testo strong {
  color: var(--testo);
  font-weight: 500;
}

/* ---------- il problema, in bolle ----------
   A riposo (senza script o con "riduci movimento") le bolle stanno in
   griglia con la didascalia accanto. Con html.dati-mobili la scena si ferma
   e si muovono le bolle: sezioni.js le porta dentro, le riempie e le sposta. */

.problema {
  position: relative;
  z-index: 1;
  background: var(--sfondo);
}

.problema-pin {
  position: relative;
  max-width: var(--larghezza);
  margin: 0 auto;
  padding: var(--sezione) var(--gutter);
}

.problema-luce {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 45% at 50% 55%, rgb(var(--oro-rgb) / 0.1), transparent 70%);
  pointer-events: none;
}

.problema-intro {
  position: relative;
  max-width: 18ch;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
}

.dati {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px);
}

.dato {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* La bolla: come quelle del budget. Bordo nel colore, riempimento fino al valore. */
.bolla-dato {
  --d: 200px;
  --livello: var(--p);
  position: relative;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  border: 2px solid var(--c);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--c) 44%, transparent) var(--livello),
    color-mix(in srgb, var(--c) 8%, transparent) var(--livello)
  );
  box-shadow: 0 0 60px -10px color-mix(in srgb, var(--c) 45%, transparent);
  display: grid;
  place-items: center;
}

.cifra {
  margin: 0;
  font-family: var(--f-titolo);
  font-weight: 500;
  font-size: calc(var(--d) * 0.27);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--testo);
  white-space: nowrap;
}

.cifra small {
  font-size: 0.42em;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--testo) 75%, transparent);
}

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

.didascalia p {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

.didascalia .fonte {
  font-size: 13px;
  color: var(--tenue);
}

.fonte a {
  color: inherit;
  text-underline-offset: 3px;
}

.problema-chiusa {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  max-width: 22ch;
  font-family: var(--f-titolo);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

/* Scena ferma, bolle in movimento. */
html.dati-mobili .problema {
  height: 560vh;
}

html.dati-mobili .problema-pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

html.dati-mobili .problema-intro {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 16ch);
  translate: -50% -50%;
  text-align: center;
}

html.dati-mobili .dati {
  position: absolute;
  inset: 0;
  margin: 0;
  display: block;
}

html.dati-mobili .dato {
  display: contents;
}

html.dati-mobili .bolla-dato {
  --d: min(54vh, 38vw, 500px);
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

html.dati-mobili .didascalia {
  position: absolute;
  left: 57%;
  top: 50%;
  width: min(34vw, 440px);
  translate: 0 -50%;
  opacity: 0;
}

html.dati-mobili .didascalia p:first-child {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.3;
}

html.dati-mobili .problema-chiusa {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  width: min(90vw, 20ch);
  translate: -50% -50%;
  text-align: center;
  opacity: 0;
}

/* ---------- beta ---------- */

.beta {
  overflow: hidden;
  text-align: center;
  padding-block: clamp(120px, 15vw, 220px);
}

/* Luce che sale dal fondo, come un'alba. */
.beta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 105%, rgb(var(--oro-rgb) / 0.24), rgb(var(--oro-rgb) / 0.06) 55%, transparent 75%);
  pointer-events: none;
}

.beta .contenitore {
  position: relative;
  display: grid;
  justify-items: center;
}

.beta h1,
.beta h2 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}

.beta .lead {
  margin-top: 24px;
  max-width: 44ch;
  color: var(--tenue);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.beta-pagina {
  min-height: 100dvh;
  display: grid;
  align-content: center;
}

.glifo-grande {
  height: clamp(88px, 14vh, 140px);
  width: auto;
  margin-bottom: 30px;
}

.indietro {
  margin-top: 30px;
  font-size: 15px;
}

.indietro a {
  color: var(--tenue);
  text-underline-offset: 4px;
}

.pagina-presto .testata .pillola {
  background: var(--vetro);
  border-color: var(--vetro-bordo);
}

.vantaggi {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.vantaggi li {
  padding: 8px 16px;
  border: 1px solid var(--bordo-forte);
  border-radius: var(--r-pill);
  font-size: 14.5px;
}

/* La pillola che si apre in un campo email. */
.pillola-beta {
  position: relative;
  width: 220px;
  height: 60px;
  margin-top: 44px;
  border-radius: var(--r-pill);
  background-image: var(--oro);
  box-shadow: 0 18px 44px -18px rgb(var(--oro-rgb) / 0.85);
  transition: width 0.7s var(--curva), box-shadow 0.4s;
}

.pillola-beta.aperta {
  width: min(100%, 480px);
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--bordo-forte), 0 18px 44px -24px rgb(var(--oro-rgb) / 0.7);
}

.pillola-beta.aperta:focus-within {
  box-shadow: inset 0 0 0 1px var(--accento), 0 0 0 4px rgb(var(--oro-rgb) / 0.18), 0 18px 44px -24px rgb(var(--oro-rgb) / 0.7);
}

.pb-apri {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #0d0d0d;
  font: 600 16.5px var(--f-testo);
  cursor: pointer;
  transition: opacity 0.25s;
}

.pb-apri:active {
  transform: scale(0.98);
}

.pillola-beta.aperta .pb-apri {
  opacity: 0;
  pointer-events: none;
}

.pb-campo {
  position: absolute;
  inset: 6px 6px 6px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s 0.25s;
}

.pillola-beta.aperta .pb-campo {
  opacity: 1;
  pointer-events: auto;
}

.pb-campo input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--testo);
  font: 16px var(--f-testo);
}

.pb-campo input::placeholder {
  color: var(--tenue);
}

.pb-invia,
.pn-invia {
  border: 0;
  border-radius: var(--r-pill);
  background-image: var(--oro);
  color: #0d0d0d;
  font: 600 15px var(--f-testo);
  cursor: pointer;
  white-space: nowrap;
}

.pb-invia {
  height: 100%;
  padding: 0 22px;
}

.pb-esito {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  margin: 0;
  font-size: 14px;
  color: var(--errore);
}

/* ---------- pannello della candidatura ---------- */

.velo {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgb(0 0 0 / 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s 0.5s;
}

.velo.aperto {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

html.pannello-aperto {
  overflow: hidden;
}

.pannello {
  position: fixed;
  inset: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 32px;
  border: 1px solid var(--bordo);
  background: var(--sfondo-2);
  box-shadow: inset 0 -200px 260px -60px rgb(var(--oro-rgb) / 0.2), 0 40px 120px rgb(0 0 0 / 0.6);
  transform: translate3d(0, 104%, 0);
  visibility: hidden;
  transition: transform 0.75s var(--curva), visibility 0s 0.75s;
}

.pannello.aperto {
  transform: none;
  visibility: visible;
  transition: transform 0.75s var(--curva), visibility 0s;
}

.pn-chiudi {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--bordo-forte);
  background: var(--sfondo-2);
  color: var(--testo);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pn-corpo {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(64px, 7vw, 96px) clamp(20px, 5vw, 80px);
}

.pn-titolo {
  max-width: 12ch;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.pn-sotto {
  margin-top: 18px;
  max-width: 36ch;
  color: var(--tenue);
}

.tessera-palco {
  margin-top: 40px;
  perspective: 1200px;
}

.pannello.riuscito .pn-corpo {
  display: none;
}

.pannello:not(.riuscito) .pn-fatto {
  display: none;
}

.pn-modulo {
  display: grid;
  gap: 22px;
  max-width: 560px;
}

.pn-email {
  margin: 0;
  font-size: 14.5px;
  color: var(--tenue);
}

.pn-email b {
  color: var(--testo);
  font-weight: 500;
}

.pn-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accento);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* I campi «scritti a mano»: Jost corsivo, una riga che si accende d'oro. */
.mano {
  position: relative;
  display: grid;
  gap: 2px;
}

.mano label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tenue);
}

.facoltativo {
  margin-left: 6px;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.75;
}

.mano input,
.mano select,
.mano textarea {
  width: 100%;
  padding: 2px 0 6px;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  color: var(--testo);
  font-family: var(--f-testo);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.35;
  caret-color: var(--accento);
  resize: none;
}

.mano select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accento) 50%), linear-gradient(135deg, var(--accento) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.mano select option {
  font-style: normal;
  background: var(--superficie);
  color: var(--testo);
}

.mano ::placeholder {
  color: color-mix(in srgb, var(--testo) 32%, transparent);
}

.mano .riga {
  height: 1px;
  background: var(--bordo-forte);
  transition: background 0.25s, box-shadow 0.25s;
}

.mano:focus-within .riga {
  background: var(--accento);
  box-shadow: 0 0 14px rgb(var(--oro-rgb) / 0.65);
}

.errore-testo {
  font-size: 13px;
  color: var(--errore);
}

.errore-testo:empty {
  display: none;
}

.mano.errore .riga {
  background: var(--errore);
}

.due-campi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.sogno-altro {
  display: none;
}

.pn-modulo.con-altro .sogno-altro {
  display: grid;
}

.consenso {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  font-size: 14.5px;
  color: var(--tenue);
}

.consenso input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accento);
}

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

.consenso .errore-testo {
  grid-column: 2;
}

.pn-invia {
  justify-self: start;
  margin-top: 6px;
  padding: 16px 34px;
  font-size: 16px;
  box-shadow: 0 16px 40px -18px rgb(var(--oro-rgb) / 0.85);
}

.pn-invia:disabled {
  opacity: 0.7;
  cursor: progress;
}

.pn-esito {
  margin: 0;
  min-height: 1.3em;
  font-size: 14.5px;
  color: var(--errore);
}

/* ---------- la tessera da fondatore ---------- */

.tessera {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1.586;
  padding: 22px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgb(var(--oro-rgb) / 0.28);
  color: var(--testo);
  background: radial-gradient(120% 90% at 100% 0%, rgb(var(--oro-rgb) / 0.3), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgb(var(--oro-rgb) / 0.12), transparent 60%),
    linear-gradient(150deg, #1d1a15, #0b0a09 70%);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.06);
  transition: transform 0.5s var(--curva);
}

.tessera::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(105deg, transparent 42%, rgb(255 244 214 / 0.26) 50%, transparent 58%);
  transform: translateX(-70%);
  pointer-events: none;
}

.tessera.sigillata::after {
  animation: lampo 1.6s var(--curva) 0.2s both;
}

@keyframes lampo {
  to {
    transform: translateX(70%);
  }
}

.ts-alto,
.ts-basso {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ts-alto {
  align-items: flex-start;
}

.ts-basso {
  align-items: flex-end;
}

.ts-marchio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-titolo);
  font-weight: 500;
  font-size: 17px;
}

.ts-marchio .glifo {
  height: 24px;
  width: auto;
}

.ts-ruolo {
  text-align: right;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(244 235 221 / 0.6);
}

.ts-ruolo b {
  display: block;
  margin-top: 4px;
  font: 500 15px var(--f-testo);
  letter-spacing: 0.08em;
  color: var(--accento-chiaro);
  font-variant-numeric: tabular-nums;
}

.ts-sogno {
  align-self: center;
  min-width: 0;
}

.ts-sogno small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(244 235 221 / 0.55);
}

.ts-sogno b {
  display: block;
  padding: 0 0.1em 0.1em 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--f-titolo);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.14;
  color: transparent;
  -webkit-text-stroke: 1px var(--accento);
}

.ts-nome {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 14.5px var(--f-testo);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ts-motto {
  white-space: nowrap;
  font-family: var(--f-titolo);
  font-style: italic;
  font-size: 13px;
  color: rgb(244 235 221 / 0.6);
}

/* ---------- candidatura riuscita ---------- */

.pn-fatto {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: clamp(72px, 8vw, 110px) clamp(20px, 5vw, 80px);
  text-align: center;
}

.pf-sopra {
  margin: 0;
  font-family: var(--f-titolo);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--tenue);
}

.tessera-palco.grande {
  margin-top: 6px;
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
}

.tessera-palco.grande .tessera {
  width: 100%;
}

.pf-titolo {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.pf-testo {
  max-width: 44ch;
  color: var(--tenue);
}

.pf-azioni {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 14px 22px;
  border: 1px solid var(--bordo-forte);
  border-radius: var(--r-pill);
  background: var(--superficie);
  color: var(--testo);
  font: 500 15px var(--f-testo);
  cursor: pointer;
}

#pf-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.pf-copia-et::after {
  content: "Copia";
  color: var(--accento);
}

.pf-link.copiato .pf-copia-et::after {
  content: "Copiato";
}

@media (max-width: 899px) {
  .pn-corpo {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .tessera-palco {
    margin-top: 26px;
  }
  .binario {
    display: none;
  }
}

@media (max-width: 760px) {
  .due-campi {
    grid-template-columns: 1fr;
  }
  .visione {
    height: 220vh;
  }
  .pannello {
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pannello,
  .pannello.aperto,
  .velo,
  .pillola-beta {
    transition: none;
  }
  .tessera.sigillata::after {
    animation: none;
  }
}

/* ---------- rendering (render.mjs) ---------- */

html.scatto,
html.scatto body {
  background: transparent;
}

html.scatto .testata,
html.scatto main,
html.scatto body > section,
html.scatto footer {
  display: none;
}

html.scatto .palco {
  opacity: 1;
  transition: none;
}

/* ---------- adattamento ---------- */

@media (max-width: 1000px) {
  .domande,
  .piede-griglia {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .atto {
    min-height: 150vh;
  }
  .atto .testo {
    top: 60dvh;
    width: 100%;
    margin: 0 !important;
  }

  /* Telefono in alto, didascalia fissa in basso: cambia con la sezione
     dissolvendosi, cosi' nessun testo passa dietro al telefono. */
  html.racconto-fisso .atto {
    min-height: 118vh;
  }
  html.racconto-fisso .atto .testo {
    position: fixed;
    left: max(var(--gutter), env(safe-area-inset-left, 0px));
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
    width: auto;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.35s var(--curva), transform 0.5s var(--curva), visibility 0s 0.35s;
    visibility: hidden;
  }
  html.racconto-fisso .atto.attivo .testo {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.45s var(--curva) 0.08s, transform 0.6s var(--curva) 0.08s, visibility 0s;
  }
  html.racconto-fisso .atto .sale {
    opacity: 1;
    transform: none;
  }
  .atto h1 {
    font-size: clamp(1.9rem, 8.6vw, 2.5rem);
  }

  /* Bolle dei dati: bolla in alto, didascalia in basso. */
  html.dati-mobili .bolla-dato {
    --d: min(64vw, 38vh);
  }
  html.dati-mobili .didascalia {
    left: var(--gutter);
    right: var(--gutter);
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 7vh);
    width: auto;
    translate: none;
  }
  html.dati-mobili .didascalia p:first-child {
    font-size: 1.12rem;
  }
  .atto h1,
  .atto h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
  .atto .lead,
  .atto p {
    margin-top: 14px;
    font-size: 15.5px;
  }
  .atto .punti {
    display: none;
  }
  .atto .azioni {
    margin-top: 20px;
  }
  .parole-griglia {
    grid-template-columns: 1fr;
  }
  .parole-griglia > div,
  .parole-griglia > div:first-child {
    border-left: 0;
    border-top: 1px solid var(--bordo);
    padding-inline: 0;
  }
  .parole-griglia > div:first-child {
    border-top: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .testata {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  }
  .pillola {
    padding: 4px;
  }
  .marchio {
    padding: 6px 10px;
    gap: 8px;
    font-size: 16px;
  }
  .marchio .glifo,
  .testata.posata .marchio .glifo {
    height: 20px;
  }
  .collega {
    padding: 8px 10px;
    font-size: 14px;
  }
  .tema {
    width: 34px;
    height: 34px;
  }
  .testata .bottone {
    padding: 8px 14px;
    font-size: 14px;
  }
  .bottone {
    padding: 10px 16px;
  }
  .dati {
    grid-template-columns: 1fr;
  }
  .dato {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .piede-colonne {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- sblocco con Face ID e aiuti ---------- */

html.bloccato,
html.bloccato body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.bloccato .atto-primo .azioni {
  display: none;
}

/* Il telefono riceve il tocco anche nel ripiego in CSS. */
.palco .app {
  pointer-events: auto;
}

.aiuto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgb(var(--oro-rgb) / 0.45);
  border-radius: var(--r-pill);
  background: rgb(var(--oro-rgb) / 0.08);
  color: var(--testo);
  font: 500 15px var(--f-testo);
  text-align: left;
  cursor: pointer;
  animation: aiuto-entra 0.6s var(--curva) both;
}

.aiuto[hidden] {
  display: none;
}

.aiuto b {
  color: var(--accento);
  font-weight: 600;
}

.aiuto .i {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accento);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aiuto .i-scorri,
.aiuto .aiuto-scorri,
.aiuto[data-tipo="scorri"] .i-sblocca,
.aiuto[data-tipo="scorri"] .aiuto-sblocca {
  display: none;
}

.aiuto[data-tipo="scorri"] .i-scorri,
.aiuto[data-tipo="scorri"] .aiuto-scorri {
  display: inline;
}

.aiuto[data-tipo="scorri"] .i-scorri {
  animation: giu 1.4s ease-in-out infinite;
}

@keyframes aiuto-entra {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
}

@keyframes giu {
  50% {
    transform: translate3d(0, 4px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aiuto,
  .aiuto[data-tipo="scorri"] .i-scorri {
    animation: none;
  }
}

@media (max-width: 899px) {
  .aiuto {
    margin-top: 16px;
    font-size: 14px;
  }
}

/* La chiusura del problema: contesto piccolo, claim grande. */
.problema-chiusa {
  max-width: 24ch;
}

.problema-chiusa p {
  margin: 0;
}

.problema-chiusa p:first-child {
  margin-bottom: 0.7em;
  font-family: var(--f-testo);
  font-weight: 400;
  font-size: 0.5em;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--tenue);
}
