/* ── NUNITO ────────────────────────────────────────────────────────────
   Servito da qui e non da Google Fonts. Prima servivano un foglio di
   stile esterno bloccante e due connessioni (fonts.googleapis.com e
   fonts.gstatic.com) prima ancora di sapere quale file scaricare.

   Nunito e' un font variabile: lo stesso file copre i pesi da 400 a 800,
   quindi i dieci blocchi qui sotto puntano a quattro file soli. Le
   unicode-range sono quelle di Google: il browser scarica solo il
   sottoinsieme che gli serve, e su una pagina italiana latin-ext non
   viene mai richiesto.

   Licenza SIL Open Font License 1.1.
   ──────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/nunito-italic-latin.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: 'Nunito';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/nunito-italic-latin-ext.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: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin.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: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin-ext.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: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin.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: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin-ext.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: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin.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: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin-ext.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: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin.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: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/nunito-var-latin-ext.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;
}


/* ============================================================
   Gigi la giraffa infermiere™ — stylesheet
   Palette e tipografia derivate dal logo ufficiale.
   ============================================================ */

@font-face {
  font-family: "Fredoka One";
  src: url("../assets/fonts/FredokaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- TOKENS */
:root {
  /* colori dal logo */
  --navy:        #14476E;
  --navy-deep:   #0D3151;
  --navy-soft:   #2F6B96;
  --cream:       #FBF4E0;
  --cream-soft:  #FDFAF2;
  --paper:       #FFFDF7;
  --sky:         #A9C7D8;
  --sky-soft:    #DCEAF2;
  --yellow:      #FFC627;
  --yellow-deep: #F2A81E;
  --orange:      #E89A38;
  --brown:       #7B4B2A;
  --blue:        #1E7BC4;
  --pink:        #E86A82;

  --ink:         #1B2F3F;
  --ink-soft:    #4A6377;

  /* forme */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-xl: 48px;
  --r-pill: 999px;

  /* ombre */
  --sh-sm: 0 2px 8px rgba(20, 71, 110, .07);
  --sh-md: 0 10px 30px -8px rgba(20, 71, 110, .18);
  --sh-lg: 0 30px 70px -20px rgba(20, 71, 110, .28);
  --sh-glow: 0 18px 40px -14px rgba(242, 168, 30, .55);

  /* ritmo */
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --sect-y: clamp(72px, 11vw, 150px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --nav-h: 132px;
  --logo: 116px;

  /* aree sicure: notch, dynamic island, barra gesti */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-t) + 20px);
  /* niente panoramica laterale: "clip" non crea un contenitore di scroll,
     "hidden" resta come ripiego per i browser più vecchi */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* il nastro è ruotato: senza questo contenitore la sua area visiva
   sborda oltre la viewport e su mobile la pagina si trascina di lato */
.ticker-clip { overflow: hidden; }

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* barra di avanzamento della lettura */
.scroll-bar {
  position: fixed;
  top: var(--safe-t);
  left: 0; right: 0;
  z-index: 95;
  height: 3px;
  pointer-events: none;
}
.scroll-bar > span {
  display: block;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: calc(var(--gut) + var(--safe-l));
  padding-right: calc(var(--gut) + var(--safe-r));
}

.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- TIPOGRAFIA */
h1, h2, h3, .display {
  font-family: "Fredoka One", "Nunito", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--navy);
}

.eyebrow {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: clamp(.75rem, .7rem + .2vw, .875rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.section__title { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4rem); }
.section__sub,
.section__text {
  max-width: 56ch;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------------------------------------------------------------- SFONDO */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 82% -8%,  rgba(255, 198, 39, .20), transparent 60%),
    radial-gradient(900px 620px at 4% 14%,    rgba(169, 199, 216, .34), transparent 62%),
    radial-gradient(1000px 800px at 50% 108%, rgba(251, 244, 224, .95), transparent 60%),
    var(--paper);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.blob--1 { width: 44vw; height: 44vw; top: -12vw; right: -10vw; background: rgba(255, 198, 39, .40); }
.blob--2 { width: 38vw; height: 38vw; top: 46vh;  left: -14vw;  background: rgba(169, 199, 216, .50); }
.blob--3 { width: 34vw; height: 34vw; bottom: -8vw; right: 12vw; background: rgba(232, 154, 56, .26); }

.cloud { position: absolute; fill: #fff; opacity: .8; }
.cloud--1 { width: 190px; top: 16vh;  left: 6vw; }
.cloud--2 { width: 130px; top: 62vh;  right: 8vw; opacity: .65; }
.cloud--3 { width: 240px; top: 128vh; left: 22vw; opacity: .55; }

/* ---------------------------------------------------------------- NAVBAR */
/* L'altezza NON viene animata: animarla su un elemento fisso con
   backdrop-filter lascia la barra ridisegnata a metà durante lo scroll
   su mobile. Cambia solo l'opacità del vetro, che è compositata. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: calc(var(--nav-h) + var(--safe-t));
  padding-top: var(--safe-t);
  display: flex;
  align-items: center;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 247, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(20, 71, 110, .08), 0 10px 30px -18px rgba(20, 71, 110, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav.is-stuck::before { opacity: 1; }

.nav__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: calc(var(--gut) + var(--safe-l));
  padding-right: calc(var(--gut) + var(--safe-r));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav__brand img {
  width: var(--logo);
  height: var(--logo);
  object-fit: contain;
  transform-origin: left center;
  /* scala, non width/height: nessun ricalcolo del layout allo scroll */
  transition: transform .4s var(--ease);
}
.nav.is-stuck .nav__brand img { transform: scale(.86); }
.nav__brand:hover img { transform: rotate(-5deg) scale(1.04); }
.nav.is-stuck .nav__brand:hover img { transform: rotate(-5deg) scale(.9); }

.nav__brand-text {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: clamp(.9rem, .78rem + .4vw, 1.15rem);
  line-height: 1.1;
  color: var(--navy);
  white-space: nowrap;
}

.nav__menu { position: relative; display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  z-index: 1;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: .975rem;
  color: var(--navy);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__link:hover { color: var(--navy-deep); }

.nav__pill {
  position: absolute;
  z-index: 0;
  top: 0; left: 0;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--yellow);
  box-shadow: var(--sh-glow);
  opacity: 0;
  pointer-events: none;
}

/* burger */
.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--navy);
  position: relative;
  flex: none;
}
.nav__burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 2.4px;
  background: #fff;
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .25s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 28px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- MENU MOBILE */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: calc(var(--nav-h) + var(--safe-t) + 24px) calc(var(--gut) + var(--safe-r)) calc(48px + var(--safe-b)) calc(var(--gut) + var(--safe-l));
  background: linear-gradient(160deg, var(--cream) 0%, var(--sky-soft) 100%);
}
.mobile-menu[hidden] { display: none !important; }

.mobile-menu__list { display: flex; flex-direction: column; gap: 6px; }

.mobile-menu__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 4px;
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  color: var(--navy);
  border-bottom: 2px solid rgba(20, 71, 110, .10);
  overflow: hidden;
}
.mobile-menu__link span { display: block; }

.mobile-menu__social { display: flex; gap: 14px; margin-top: 40px; }

/* ---------------------------------------------------------------- SOCIAL */
.soc {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease);
}
.soc svg { width: 19px; height: 19px; fill: currentColor; }
.soc:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: var(--sh-glow);
}

/* Barra social in evidenza — è il primo elemento sotto la navbar, così
   su qualsiasi schermo si vede senza scorrere. Icone nei colori delle
   rispettive reti: si riconoscono a colpo d'occhio. */
.social-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: clamp(20px, 3vw, 38px);
}

.social-bar__label {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: clamp(.8rem, .74rem + .2vw, .95rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}

.social-bar__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

/* Stessa misura e stesso trattamento nei tre punti in cui compaiono:
   barra in alto, menù hamburger e footer. Prima erano tre pesi diversi
   e gli ultimi due sembravano dimenticati. */
.social-bar .soc,
.mobile-menu__social .soc,
.footer__social .soc {
  width: 52px;
  height: 52px;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(20, 71, 110, .3), inset 0 0 0 2px rgba(20, 71, 110, .07);
}
.social-bar .soc svg,
.mobile-menu__social .soc svg,
.footer__social .soc svg { width: 23px; height: 23px; }

/* colori delle reti: si riconoscono a colpo d'occhio */
.soc--fb { color: #1877F2; }
.soc--ig { color: #D6295E; }
.soc--yt { color: #E62117; }
.soc--tt { color: #12121A; }

/* al passaggio il tondo si riempie del colore della rete */
.soc--fb:hover, .soc--ig:hover, .soc--yt:hover, .soc--tt:hover,
.soc--fb:focus-visible, .soc--ig:focus-visible, .soc--yt:focus-visible, .soc--tt:focus-visible {
  color: #fff;
  transform: translateY(-5px) scale(1.07);
}
.soc--fb:hover, .soc--fb:focus-visible { background: #1877F2; box-shadow: 0 14px 26px -10px rgba(24, 119, 242, .75); }
.soc--ig:hover, .soc--ig:focus-visible { background: linear-gradient(135deg, #F9CE34, #EE2A7B 55%, #6228D7); box-shadow: 0 14px 26px -10px rgba(214, 41, 94, .75); }
.soc--yt:hover, .soc--yt:focus-visible { background: #E62117; box-shadow: 0 14px 26px -10px rgba(230, 33, 23, .75); }
.soc--tt:hover, .soc--tt:focus-visible { background: #12121A; box-shadow: 0 14px 26px -10px rgba(18, 18, 26, .7); }

/* ---------------------------------------------------------------- INTRO / PROGETTO */
.intro {
  position: relative;
  padding: calc(var(--nav-h) + clamp(34px, 5vw, 76px)) 0 clamp(64px, 8vw, 116px);
  /* resta come ripiego sotto al cielo WebGL: se la scheda video non c'è
     o lo shader non compila, il canvas non viene mai acceso */
  background: linear-gradient(180deg,
              rgba(169, 199, 216, .55) 0%,
              rgba(220, 234, 242, .45) 62%,
              rgba(220, 234, 242, 0) 100%);
}

/* --- cielo con nuvole (WebGL) ------------------------------------- */
.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* sfuma in basso: il cielo entra nel gradiente della pagina invece
     di chiudersi con una riga netta */
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.5) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.5) 78%, transparent 100%);
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.sky.is-ready { opacity: 1; }

/* Velo chiaro sopra il cielo. Serve al contrasto del testo: sull'azzurro
   pieno il grigio-blu dei paragrafi scendeva sotto la soglia di lettura. */
.sky__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
              rgba(255, 253, 247, .10) 0%,
              rgba(255, 253, 247, .30) 58%,
              rgba(255, 253, 247, .78) 100%);
}

/* il contenuto sta sopra a entrambi */
.intro > .wrap { position: relative; z-index: 1; }


.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
}

/* Niente più riquadro bianco: stessa impostazione ariosa della hero,
   testo direttamente sullo sfondo e personaggio in un alone morbido. */
.intro__art {
  position: relative;
  display: grid;
  place-items: center;
  --med: min(100%, 340px);
}

/* alone morbido, senza bordo netto: è il contenitore "invisibile"
   che dà peso al personaggio (lo stesso trucco della hero) */
.intro__halo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--med);
  height: var(--med);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .96), rgba(220, 234, 242, .62) 52%, transparent 72%),
    radial-gradient(circle at 50% 92%, rgba(255, 198, 39, .26), transparent 62%);
  pointer-events: none;
}

/* un solo anello, appena accennato: dà movimento senza incorniciare */
.intro__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(var(--med) + 46px);
  height: calc(var(--med) + 46px);
  border-radius: 50%;
  border: 2px dashed rgba(20, 71, 110, .12);
  pointer-events: none;
}

.intro__gigi {
  position: relative;
  width: auto;
  max-width: min(100%, 268px);
  max-height: min(46svh, 380px);
  filter: drop-shadow(0 26px 26px rgba(20, 71, 110, .18));
  /* il personaggio è un mezzobusto: senza il cerchio il taglio in basso
     si vedrebbe, quindi lo si dissolve nello sfondo */
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  will-change: transform;
}

.float-badge--a { top: 12%; right: 4%; }
.float-badge--b { bottom: 16%; left: 2%; }

.intro__copy { min-width: 0; }

/* Deve stare su UNA riga a qualsiasi larghezza. Il corpo si calcola
   sulla colonna di testo, non sulla finestra: su tablet la colonna è
   metà schermo e con le vw il titolo sbordava. */
.intro__title {
  font-size: clamp(.95rem, 5.6vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 14px;
  white-space: nowrap;
}

@supports (font-size: 1cqi) {
  .intro__copy { container-type: inline-size; }
  .intro__title { font-size: clamp(.95rem, 6.6cqi, 3.4rem); }
}
.intro__title-line { display: inline; }
.intro__title .emoji { font-family: "Nunito", sans-serif; }

/* le parole entrano una alla volta da sotto (titolo e titoli di sezione) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.w > span { display: inline-block; }

.intro__claim {
  position: relative;
  display: inline-block;
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: clamp(1.1rem, .95rem + .95vw, 1.75rem);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
/* sottolineatura gialla che si disegna */
.intro__claim::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.12em;
  height: .28em;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  opacity: .55;
  transform: scaleX(0);
  transform-origin: left center;
}

.intro__text {
  /* più scuro di --ink-soft: sul cielo azzurro il grigio-blu scendeva
     sotto la soglia di leggibilità (3,9:1 contro i 4,5 richiesti) */
  color: var(--ink);
  max-width: 50ch;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
}

/* evidenziatore che scorre dietro alle parole chiave */
.intro__text strong {
  position: relative;
  z-index: 0;
  color: var(--navy);
  font-weight: 800;
  padding: 0 .18em;
  margin: 0 -.18em;
}
.intro__text strong::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: -.04em;
  height: .72em;
  border-radius: 6px;
  background: linear-gradient(100deg, rgba(255, 198, 39, .55), rgba(255, 198, 39, .22));
  transform: scaleX(0);
  transform-origin: left center;
}

/* stati "entrato": li accende il JS al momento giusto della timeline */
.intro__claim.is-in::after {
  transform: scaleX(1);
  transition: transform .85s var(--ease);
}
.intro__text.is-in strong::before {
  transform: scaleX(1);
  transition: transform .7s var(--ease) .15s;
}

.intro__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* card per pubblico */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(38px, 5vw, 68px);
}

.audience__item { display: flex; }

.audience__item > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: clamp(22px, 2.4vw, 32px) 22px clamp(30px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.audience__item > a:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }

.audience__item h2 {
  font-size: clamp(1.1rem, .95rem + .55vw, 1.35rem);
  line-height: 1.15;
}
.audience__item p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

.audience__item--schools  h2 { color: var(--orange); }
.audience__item--families h2 { color: var(--brown); }
.audience__item--partners h2 { color: var(--navy); }

.audience__go {
  position: absolute;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--navy);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s var(--ease);
}
.audience__go svg { width: 15px; height: 15px; }
.audience__item > a:hover .audience__go,
.audience__item > a:focus-visible .audience__go {
  opacity: 1;
  transform: translateY(0);
  background: var(--yellow);
}

/* ---------------------------------------------------------------- HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(46px, 6vw, 90px) 0 clamp(30px, 4vw, 60px);
}

.hero__grid {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(24px, 3.6vw, 54px);
}

.hero__title {
  font-size: clamp(2.5rem, 1rem + 4.4vw, 4.5rem);
  margin-bottom: 22px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; }
.hero__title .emoji { font-family: "Nunito", sans-serif; }

.hero__lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 46ch;
}
.hero__lead strong { color: var(--navy); font-weight: 800; }

.hero__text { color: var(--ink-soft); max-width: 50ch; margin-bottom: 14px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease);
}
.btn__arrow { width: 20px; height: 20px; transition: transform .35s var(--ease); }

.btn--primary {
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: var(--sh-glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -14px rgba(242, 168, 30, .7); }
.btn--primary:hover .btn__arrow { transform: translateX(5px); }
.btn--primary:active { transform: translateY(-1px); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 2.5px rgba(20, 71, 110, .14), var(--sh-sm);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 2.5px var(--navy), var(--sh-md);
}

.btn--soft {
  background: var(--sky-soft);
  color: var(--navy);
  box-shadow: inset 0 0 0 2px rgba(169, 199, 216, .8);
}
.btn--soft:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--sky), var(--sh-md);
}
.btn--soft:hover .btn__arrow { transform: translateX(5px); }

/* Associazione: blu pieno con il cuore giallo. Stesso padding verticale
   del pulsante giallo accanto, e il cerchio del cuore rientra di 6px
   sopra e sotto: l'altezza la decide il testo, quindi i due pulsanti
   combaciano su qualunque schermo. */
.btn--assoc {
  padding: 15px 26px 15px 9px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(13, 49, 81, .65);
}
.btn--assoc:hover {
  transform: translateY(-3px);
  background: var(--navy-deep);
  box-shadow: 0 22px 44px -14px rgba(13, 49, 81, .75);
}
.btn--assoc:active { transform: translateY(-1px); }

.btn__heart {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-block: -6px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-deep);
  transition: transform .35s var(--ease);
}
.btn__heart svg { width: 18px; height: 18px; }
.btn--assoc:hover .btn__heart { transform: scale(1.1) rotate(-8deg); }

/* arte hero */
.hero__art { position: relative; display: grid; place-items: center; }

.hero__halo {
  position: absolute;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .95), rgba(220, 234, 242, .55) 55%, transparent 72%);
  box-shadow: inset 0 0 90px rgba(169, 199, 216, .45);
}

/* I render 3D forniti sono 182x532 px: i limiti qui sotto tengono
   l'ingrandimento entro ~1,2x per non farli sgranare. Se arrivano
   esportazioni più grandi, questi valori si possono alzare. */
.hero__gigi {
  position: relative;
  width: auto;
  max-width: min(100%, 220px);
  max-height: min(60svh, 640px);
  filter: drop-shadow(0 30px 28px rgba(20, 71, 110, .18));
  will-change: transform;
}

.float-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(48px, 6vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  box-shadow: var(--sh-md);
  will-change: transform;
}
.float-badge--1 { top: 8%;  left: 2%; }
.float-badge--2 { top: 40%; right: 0%; }
.float-badge--3 { bottom: 12%; left: 6%; }

/* ---------------------------------------------------------------- TICKER */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  background: var(--navy);
  transform: rotate(-1.2deg) scale(1.04);
  margin: clamp(20px, 5vw, 50px) 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  will-change: transform;
}
.ticker__track span {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: clamp(1rem, .9rem + .6vw, 1.5rem);
  color: var(--cream);
  white-space: nowrap;
}
.ticker__track .dot { color: var(--yellow); }

/* ---------------------------------------------------------------- SEZIONI */
.section { position: relative; padding: var(--sect-y) 0; }
.section__head { margin-bottom: clamp(38px, 5vw, 64px); }
.section__head--center { text-align: center; }
.section__head--center .section__sub { margin-inline: auto; }

/* ---------------------------------------------------------------- CARD PERSONAGGI */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.card { display: flex; }

.card__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 0 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #fff 0%, var(--cream-soft) 100%);
  box-shadow: var(--sh-md);
  overflow: hidden;
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(20, 71, 110, .07);
  pointer-events: none;
  transition: box-shadow .45s var(--ease);
}
.card__btn:hover { transform: translateY(-10px); box-shadow: var(--sh-lg); }
.card__btn:hover::before { box-shadow: inset 0 0 0 2.5px var(--yellow); }

/* flex e non grid: dentro una griglia con riga automatica il
   "max-height: 100%" dell'immagine non si risolve e il personaggio
   sfonda il riquadro (venendo poi tagliato dall'overflow) */
.card__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(230px, 26vw, 300px);
  padding-top: 26px;
  background:
    radial-gradient(120% 78% at 50% 100%, rgba(255, 198, 39, .30), transparent 70%),
    var(--sky-soft);
  overflow: hidden;
}
.card__media img {
  width: auto;
  min-height: 0;
  max-height: 100%;
  max-width: 78%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(20, 71, 110, .18));
  transition: transform .55s var(--ease);
}
.card__btn:hover .card__media img { transform: translateY(-8px) scale(1.05); }

.card__body { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 24px 22px 0; }

.card__name {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--navy);
  line-height: 1.1;
}
.card__role { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: .875rem;
  transition: background-color .3s var(--ease), gap .3s var(--ease);
}
.card__more svg { width: 16px; height: 16px; }
.card__btn:hover .card__more { background: var(--yellow); color: var(--navy-deep); gap: 11px; }

/* ---------------------------------------------------------------- FOOTER */
/* Il bordo smerlato è RITAGLIATO dal footer stesso, così gli incavi sono
   davvero trasparenti e lasciano vedere il gradiente della pagina.
   Prima era una fascia color carta sovrapposta: essendo tinta piatta su
   uno sfondo sfumato, si vedeva lo stacco netto.
   Due livelli di maschera in unione: gli archi in cima, e un rettangolo
   pieno per tutto il resto. */
.footer {
  --scallop: 62px;
  position: relative;
  margin-top: clamp(60px, 9vw, 120px);
  padding: calc(var(--scallop) + clamp(30px, 4vw, 54px)) 0 calc(44px + var(--safe-b));
  background: var(--navy);
  color: rgba(255, 255, 255, .78);

  -webkit-mask:
    radial-gradient(60px var(--scallop) at 50% 100%, #000 98%, transparent 100%)
      repeat-x left top / 120px var(--scallop),
    linear-gradient(#000, #000)
      no-repeat left var(--scallop) / 100% calc(100% - var(--scallop) + 1px);
  mask:
    radial-gradient(60px var(--scallop) at 50% 100%, #000 98%, transparent 100%)
      repeat-x left top / 120px var(--scallop),
    linear-gradient(#000, #000)
      no-repeat left var(--scallop) / 100% calc(100% - var(--scallop) + 1px);
}

.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.footer__logo { width: clamp(220px, 28vw, 300px); height: auto; }
.footer__social { display: flex; gap: 12px; }

.footer__legal {
  max-width: 82ch;
  font-size: .8rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .62);
}
.footer__credit {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .95rem;
  color: var(--yellow);
}

/* ---------------------------------------------------------------- TORNA IN CIMA */
.to-top {
  position: fixed;
  right: calc(16px + var(--safe-r));
  bottom: calc(16px + var(--safe-b));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(13, 49, 81, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s, background-color .3s var(--ease), color .3s var(--ease);
}
.to-top svg { width: 22px; height: 22px; }

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.to-top.is-visible:hover {
  background: var(--yellow);
  color: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: var(--sh-glow);
}
.to-top.is-visible:active { transform: translateY(0) scale(.95); }

/* fuori dai piedi quando è aperto il menù o il popup */
body.is-locked .to-top { opacity: 0; visibility: hidden; }

/* ---------------------------------------------------------------- MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
}
.modal[hidden] { display: none !important; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 49, 81, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
}

.modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  width: min(100%, 940px);
  max-height: min(88svh, 700px);
  padding: clamp(26px, 3.4vw, 46px);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #fff 0%, var(--cream-soft) 100%);
  box-shadow: 0 50px 110px -30px rgba(13, 49, 81, .6);
  overflow: hidden;
  opacity: 0;
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(20, 71, 110, .08);
  color: var(--navy);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: var(--yellow); transform: rotate(90deg); }

.modal__media { position: relative; display: grid; place-items: center; min-height: 0; }
/* L'alone prende il colore del personaggio in scena: cambia nell'istante
   in cui il vecchio è uscito e il nuovo non è ancora entrato, quindi il
   passaggio non si vede come uno scatto di colore. */
.modal__halo {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              var(--tint, var(--sky-soft)),
              rgba(220, 234, 242, .3) 60%,
              transparent 74%);
}
.modal__media img {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: min(58svh, 430px);
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(20, 71, 110, .22));
}

/* A scorrere è solo il TESTO: le frecce restano ancorate in fondo.
   Prima scorreva (e quindi usciva dal riquadro) tutto il blocco,
   e con la bio più lunga — la Scimmietta — la barra spariva. */
.modal__body {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-height: min(70svh, 560px);
}
.modal__text {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.modal__nav { flex: none; }
.modal__role {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.modal__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 16px; }
.modal__text p { color: var(--ink-soft); margin-bottom: 14px; }
.modal__text p:last-child { margin-bottom: 0; }

.modal__nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.modal__arrow {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.modal__arrow svg { width: 20px; height: 20px; }
.modal__arrow:hover { background: var(--yellow); transform: scale(1.08); }

.modal__dots { display: flex; gap: 8px; }
.modal__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(20, 71, 110, .2);
  transition: background-color .3s var(--ease), transform .3s var(--ease), width .3s var(--ease);
}
.modal__dots button.is-active { width: 26px; border-radius: var(--r-pill); background: var(--yellow); }

/* ---------------------------------------------------------------- ANIMAZIONI DI PARTENZA */
[data-anim] { will-change: transform, opacity; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* --- tablet orizzontale / laptop piccoli --- */
@media (max-width: 1100px) {
  :root { --nav-h: 116px; --logo: 100px; }
}

/* Fascia in cui il menù esteso convive con il logo grande: con quattro
   voci il nome accanto al logo verrebbe compresso e finirebbe sopra le
   voci, quindi sparisce (il logo lo contiene già). Sotto i 901px torna,
   perché lì il menù è sostituito dall'hamburger e lo spazio c'è. */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__brand-text { display: none; }
}

/* --- tablet --- */
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }

  /* la hero è flex: senza questo la social-rail statica si affiancherebbe
     alla griglia e allargherebbe la pagina oltre la viewport */
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-top: calc(var(--nav-h) + 26px);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    padding-right: var(--gut);
    text-align: center;
    gap: 8px;
  }
  .hero__copy { order: 2; display: flex; flex-direction: column; align-items: center; }
  .hero__art  { order: 1; margin-bottom: 10px; }
  /* blocchi centrati ma testo allineato a sinistra: tre paragrafi
     interamente centrati si leggono male */
  .hero__lead, .hero__text { margin-inline: auto; text-align: left; }
  .hero__cta { justify-content: center; }
  .hero__gigi { max-width: min(50vw, 182px); max-height: min(60svh, 600px); }

  .social-bar { justify-content: center; }

  /* In verticale la sezione è altissima e il canvas si stira: lo shader
     normalizza il campo delle nuvole sull'ALTEZZA, quindi su un riquadro
     stretto e lungo ci sta poco più di una nuvola. Limitando l'altezza si
     recuperano le proporzioni (e si calcolano meno della metà dei pixel). */
  .sky {
    height: min(100%, 640px);
    bottom: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 46%, rgba(0,0,0,.45) 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 46%, rgba(0,0,0,.45) 76%, transparent 100%);
  }

  .section__text { margin-inline: auto; }
  .cloud--1, .cloud--2 { display: none; }

  .intro__grid { grid-template-columns: 1fr; text-align: center; }
  .intro__art { order: -1; }
  .intro__art { --med: min(62vw, 300px); }
  .intro__text { margin-inline: auto; }
  .intro__cta { justify-content: center; }
}

/* --- mobile --- */
@media (max-width: 560px) {
  :root { --nav-h: 104px; --logo: 88px; --r-lg: 26px; --r-xl: 32px; }

  body { line-height: 1.65; }



  /* con il logo grande il nome è già leggibile nel logo stesso */
  .nav__brand-text { display: none; }

  .hero__title { margin-bottom: 16px; }
  .hero__cta,
  .intro__cta { width: 100%; flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .intro__art { --med: min(68vw, 262px); }

  /* il titolo su una riga è per forza contenuto: il claim scende
     sotto di lui perché la gerarchia resti leggibile */
  .intro__claim { font-size: clamp(1rem, 4.4vw, 1.35rem); }

  .float-badge--1 { top: 4%; left: -2%; }
  .float-badge--3 { bottom: 6%; left: 0%; }

  .ticker { transform: rotate(-1.6deg) scale(1.08); }

  .card__media { height: 210px; }

  /* colonna flessibile: immagine e titolo fissi, il testo si adatta
     allo spazio che avanza, le frecce restano sempre visibili */
  .modal__panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 92svh;
    padding: 22px 20px 22px;
    text-align: center;
  }
  .modal__media { flex: none; }
  .modal__media img { max-height: 26svh; }
  .modal__body { flex: 1 1 auto; max-height: none; }
  .modal__nav { justify-content: center; margin-top: 18px; }
  .modal__text { text-align: left; }
}

/* --- schermi molto grandi --- */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  .hero__gigi { max-width: min(100%, 250px); max-height: min(66svh, 730px); }
}

/* ================================================================
   ACCESSIBILITÀ — movimento ridotto
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker { transform: rotate(0deg); }

  /* le decorazioni restano visibili, semplicemente non si disegnano */
  .intro__claim::after,
  .intro__text strong::before { transform: scaleX(1); }
}
