/* Grana — il linguaggio a gradiente vivo con la grana (19/11/2026).
   Blu del marchio, il tramonto arancio, il cielo e la crema; vetro bianco per pillole e frecce.
   Le pagine chiare restano piatte: la grana sta solo nei punti scelti (eroe, carte, mappa, In breve, fascia,
   Parliamone, piede). Il gradiente lo disegna grana.js; qui c'è la riserva CSS e lo strato di grana. */
:root {
  --g-blu-notte: #0B1550;
  --g-oltremare: #1A33B0;
  --g-arancio: #F2924F;
  --g-pesca: #FFB98A;
  --g-cielo: #A9C3F8;
  --g-crema: #F6ECD4;
  --g-vetro: rgba(10,20,84,.26);
  --g-vetro-bordo: rgba(255,255,255,.4);
  --g-grana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.9' intercept='-.45'/%3E%3CfeFuncG type='linear' slope='1.9' intercept='-.45'/%3E%3CfeFuncB type='linear' slope='1.9' intercept='-.45'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- lo strato ---------- */
.con-grana { position: relative; isolation: isolate; }
.con-grana > .grana { z-index: -1; }
.grana { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; isolation: isolate; border-radius: inherit; background-color: var(--g-oltremare); }
.grana > .grana-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s cubic-bezier(.16,1,.3,1); }
.grana.viva > .grana-tela { opacity: 1; }
.grana::after { content: ""; position: absolute; inset: 0; background-image: var(--g-grana); background-size: 16rem 16rem; mix-blend-mode: overlay; opacity: .5; }
.grana[data-tono="cielo"]::after, .grana[data-tono^="carta"]::after, .grana[data-tono="insight"]::after { opacity: .62; }
.grana[data-tono="notte"]::after { opacity: .42; }

/* la riserva: lo stesso disegno in CSS, per il primo istante e per chi non ha WebGL */
.grana[data-tono="alba"], [data-grana="alba"] { background:
  radial-gradient(36% 46% at 72% 42%, #F2924F, rgba(242,146,79,0) 72%),
  radial-gradient(30% 34% at 60% 4%, #8E6FD8, rgba(142,111,216,0) 72%),
  radial-gradient(34% 50% at 104% 70%, #9DB8F6, rgba(157,184,246,0) 72%),
  radial-gradient(30% 34% at 98% 108%, #F6ECD4, rgba(246,236,212,0) 72%),
  radial-gradient(60% 70% at 8% 94%, #0D1D7E, rgba(13,29,126,0) 72%), #1A33B0; }
.grana[data-tono="insight"], [data-grana="insight"] { background:
  radial-gradient(48% 46% at 30% -4%, #F39552, rgba(243,149,82,0) 72%),
  radial-gradient(34% 56% at 94% 40%, #A9C3F8, rgba(169,195,248,0) 72%),
  radial-gradient(36% 44% at 98% 106%, #F7EED8, rgba(247,238,216,0) 72%),
  radial-gradient(52% 60% at 4% 78%, #1531A6, rgba(21,49,166,0) 72%), #2045C9; }
.grana[data-tono="crepuscolo"], [data-grana="crepuscolo"] { background:
  radial-gradient(40% 46% at 2% 102%, #EE8846, rgba(238,136,70,0) 72%),
  radial-gradient(40% 48% at 96% 4%, #9DB8F6, rgba(157,184,246,0) 72%),
  radial-gradient(44% 50% at 80% 86%, #5A3FC0, rgba(90,63,192,0) 72%), #152A9C; }
.grana[data-tono="cielo"], [data-grana="cielo"] { background:
  radial-gradient(40% 40% at 8% 55%, #F29A5C, rgba(242,154,92,0) 72%),
  radial-gradient(40% 46% at 96% 45%, #9FBBF7, rgba(159,187,247,0) 72%),
  radial-gradient(56% 44% at 32% 108%, #F6ECD6, rgba(246,236,214,0) 72%),
  radial-gradient(40% 40% at 80% 102%, #F3B897, rgba(243,184,151,0) 72%), #2448CF; }
.grana[data-tono="notte"], [data-grana="notte"] { background:
  radial-gradient(40% 46% at 86% 106%, #E2763A, rgba(226,118,58,0) 72%),
  radial-gradient(36% 40% at 64% 90%, #7A4FC8, rgba(122,79,200,0) 72%),
  radial-gradient(50% 56% at 20% 20%, #1C3BC4, rgba(28,59,196,0) 72%), #0B1550; }
.grana[data-tono="carta1"], [data-grana="carta1"] { background: radial-gradient(56% 56% at 15% 0%, #F39A58, rgba(243,154,88,0) 72%), radial-gradient(50% 56% at 92% 30%, #A6C0F8, rgba(166,192,248,0) 72%), radial-gradient(44% 44% at 95% 105%, #F6EBD3, rgba(246,235,211,0) 72%), #2148CC; }
.grana[data-tono="carta2"], [data-grana="carta2"] { background: radial-gradient(56% 56% at 95% 0%, #9FB8F7, rgba(159,184,247,0) 72%), radial-gradient(56% 56% at 5% 95%, #EC8A4C, rgba(236,138,76,0) 72%), radial-gradient(44% 44% at 50% 55%, #6347C9, rgba(99,71,201,0) 72%), #1E36B0; }
.grana[data-tono="carta3"], [data-grana="carta3"] { background: radial-gradient(56% 56% at 85% 10%, #F6ECD6, rgba(246,236,214,0) 72%), radial-gradient(50% 50% at 5% 10%, #8DADF5, rgba(141,173,245,0) 72%), radial-gradient(44% 44% at 85% 95%, #F09A5C, rgba(240,154,92,0) 72%), #2A50D6; }

/* ---------- il vetro: pillole e tondi bianchi traslucidi sul gradiente ---------- */
.vetro { background: var(--g-vetro); border: 1px solid var(--g-vetro-bordo); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); color: #fff; }

/* ---------- le frecce: tre «›» di vetro, la direzione di Compass ---------- */
.frecce { position: absolute; pointer-events: none; overflow: visible; }
.frecce .f { transition: translate 1.4s cubic-bezier(.16,1,.3,1); }
.frecce .f1 { translate: calc(var(--fx, 0) * -10px) calc(var(--fy, 0) * -8px); }
.frecce .f2 { translate: calc(var(--fx, 0) * 16px) calc(var(--fy, 0) * 12px); }
.frecce .f3 { translate: calc(var(--fx, 0) * 30px) calc(var(--fy, 0) * 20px); }
@media (prefers-reduced-motion: reduce) { .frecce .f { translate: none; transition: none; } }

/* ---------- l'eroe sul gradiente ---------- */
.hero[data-fondo="grana"] { --fondo: #1A33B0; --testo-2: #E2E8FF; --pill: rgba(10,20,84,.28); --ago: #C9D8FF; --ombra-pc: rgba(6,12,60,.55); }
.hero > .grana { z-index: 0; }
.hero[data-fondo="grana"]::before { display: none; }
.hero[data-fondo="grana"] .badge { border: 1px solid rgba(255,255,255,.38); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
.hero[data-fondo="grana"] .badge .logo-ago { fill: var(--g-pesca); }
.hero[data-fondo="grana"] .punto { color: var(--g-pesca); }
.hero[data-fondo="grana"] .nav ul { padding: 0.375rem; gap: 0.25rem; border-radius: 999px; background: rgba(10,22,90,.18); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.hero[data-fondo="grana"] .nav li a { display: block; padding: 0.625rem 1.125rem; border-radius: 999px; transition: background-color .25s, color .25s; }
.hero[data-fondo="grana"] .nav li a:hover { background: rgba(255,255,255,.14); }
.hero[data-fondo="grana"] .nav li:first-child a { background: rgba(255,255,255,.92); color: #13161C; }
.hero[data-fondo="grana"] h1 { text-shadow: 0 0.25rem 2.5rem rgba(8,16,80,.25); }
.hero .frecce-eroe { right: -6rem; top: 50%; width: 36rem; height: 46rem; translate: 0 -50%; z-index: 1; opacity: .85; }

@media (max-width: 900px) { .hero .frecce-eroe { width: 22rem; height: 28rem; right: -7rem; top: 30%; } }

/* ---------- le carte di «Cosa facciamo»: il riquadro dell'oggetto diventa una finestra di luce ---------- */
.carta .scena-c[data-grana] { background: var(--g-oltremare); overflow: hidden; }
.carta .scena-c[data-grana] .ogg { box-shadow: 0 1.5rem 3.5rem rgba(8,18,90,.32), 0 0 0 1px rgba(255,255,255,.4); }

/* ---------- binario sui fondi scuri ---------- */
.su-grana .binario { border-color: rgba(255,255,255,.24); color: #fff; }
.su-grana .binario .dx, .su-grana .binario .cx { color: rgba(255,255,255,.92); }
.su-grana .binario .ago use, .su-grana .binario svg use { fill: var(--g-pesca); }

/* ---------- La mappa ---------- */
.mappa-sez { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.mappa-sez > .grana { z-index: -1; }
.mappa-sez .sezione { padding-bottom: 5rem; }
.mappa-testa { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: end; margin-bottom: 3rem; }
.mappa-testa .display { color: #fff; text-shadow: 0 0.25rem 2.5rem rgba(8,16,80,.2); }
.mappa-testa .corpo { color: #fff; max-width: 32rem; }
.mappa-testa .corpo b { color: #fff; font-weight: 600; }
.mappa-ui { display: grid; grid-template-columns: 8fr 4fr; gap: 1.25rem; align-items: stretch; }
.mappa-campo { position: relative; min-height: 32rem; border-radius: 2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); }
.mappa-campo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.2px); background-size: 1.75rem 1.75rem;
  -webkit-mask: radial-gradient(80% 90% at 50% 50%, #000 40%, transparent 100%); mask: radial-gradient(80% 90% at 50% 50%, #000 40%, transparent 100%); }
.mappa-campo .eti { position: absolute; left: 1.5rem; top: 1.25rem; font-size: 0.875rem; font-weight: 500; color: #fff; display: inline-flex; gap: 0.5rem; align-items: center; }
.mappa-campo .eti b { font-weight: 600; color: #fff; }
.mappa-campo .eti-dx { left: auto; right: 1.5rem; }
.mappa-via { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mappa-via path { fill: none; stroke-linecap: round; }
.mappa-via .v-base { vector-effect: non-scaling-stroke; }
.mappa-via .v-base { stroke: rgba(255,255,255,.3); stroke-width: 2; stroke-dasharray: 1 9; }
.mappa-via .v-fatto { stroke: #fff; stroke-width: 3; stroke-dasharray: var(--fatto, 0) 1; transition: stroke-dasharray .9s cubic-bezier(.16,1,.3,1); filter: drop-shadow(0 0 6px rgba(255,255,255,.55)); }
.mappa-via .v-flusso { stroke: var(--g-pesca); stroke-width: 3; stroke-dasharray: 0.004 0.06; animation: flusso 7s linear infinite; opacity: .9; }
@keyframes flusso { to { stroke-dashoffset: -0.64; } }
.fermata { position: absolute; left: var(--x); top: var(--y); translate: -50% -1.75rem; z-index: 2; display: grid; justify-items: center; gap: 0.625rem; padding: 0; background: none; border: 0; color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fermata-punto { position: relative; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); box-shadow: 0 0.75rem 2rem rgba(8,16,70,.28); transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .35s, color .35s, border-color .35s; }
.fermata-punto svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fermata-nome { font-size: 0.9375rem; font-weight: 600; letter-spacing: -.01em; padding: 0.3125rem 0.875rem; border-radius: 999px; background: #0E1A60; white-space: nowrap; transition: background-color .35s, color .35s; }
.fermata:hover .fermata-punto { transform: scale(.94); }
.fermata:focus-visible { outline: none; }
.fermata:focus-visible .fermata-punto { outline: 2px solid #fff; outline-offset: 0.25rem; }
.fermata.scelta .fermata-punto { background: #fff; color: var(--blu); border-color: #fff; }
.fermata.scelta .fermata-nome { background: #fff; color: var(--ink); }
.fermata.scelta .fermata-punto::after { content: ""; position: absolute; inset: -0.5rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); animation: polso 1.8s cubic-bezier(.16,1,.3,1) 3; opacity: 0; }
@keyframes polso { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.fermata .segnalino { position: absolute; top: -2.375rem; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 0.375rem; height: 1.75rem; padding: 0 0.75rem 0 0.5rem; border-radius: 999px; background: var(--g-pesca); color: #2A1406; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateY(0.375rem) scale(.9); transition: opacity .35s, transform .5s cubic-bezier(.16,1,.3,1); }
.fermata .segnalino svg { width: 0.75rem; height: auto; }
.fermata .segnalino use { fill: #2A1406; }
.fermata.scelta .segnalino { opacity: 1; transform: none; }
.mappa-scheda { position: relative; border-radius: 2rem; background: #fff; color: var(--ink); padding: 1.75rem; display: grid; grid-template-rows: 1fr auto; gap: 1.25rem; box-shadow: 0 1.5rem 3.5rem rgba(8,16,70,.32); overflow: hidden; }
.ms-corpo { display: grid; align-content: start; gap: 1rem; }
.ms-testa { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--grigio); }
.ms-testa .ms-es { height: 1.5rem; padding: 0 0.625rem; border-radius: 999px; background: var(--banda); font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; color: #6B7280; }
.ms-nome { margin: 0; font-size: 2.25rem; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.ms-dove { justify-self: start; margin: 0; height: 2rem; padding: 0 0.875rem; border-radius: 999px; background: var(--banda); font-size: 0.875rem; font-weight: 500; color: var(--grigio); display: inline-flex; align-items: center; }
.ms-eti { margin: 0.25rem 0 0; font-size: 0.8125rem; font-weight: 600; color: var(--grigio); }
.ms-domande { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ms-domande li { display: grid; grid-template-columns: 0.375rem 1fr; gap: 0.75rem; align-items: baseline; font-size: 1rem; line-height: 1.35; }
.ms-domande li::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--blu); translate: 0 -0.125rem; }
.ms-esempio { margin: 0; background: var(--blu-tinta); color: #16307E; border-radius: 1.375rem 1.375rem 1.375rem 0.375rem; padding: 0.875rem 1rem; font-size: 0.9375rem; line-height: 1.4; }
.mappa-scheda .pillola { justify-self: start; }
.mappa-scheda.esce .ms-corpo { opacity: 0; transform: translateX(calc(var(--v, 1) * -0.75rem)); transition: opacity .16s ease, transform .16s ease; }
.mappa-scheda[data-verso="indietro"] { --v: -1; }
.mappa-scheda.entra .ms-corpo { animation: ms-entra .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes ms-entra { from { opacity: 0; transform: translateX(calc(var(--v, 1) * 1rem)); } }
.mappa-nota { margin: 1.25rem 0 0; font-size: 0.875rem; color: rgba(255,255,255,.78); }
@media (prefers-reduced-motion: reduce) { .mappa-via .v-flusso { animation: none; display: none; } .fermata.scelta .fermata-punto::after { animation: none; } .mappa-scheda.entra .ms-corpo { animation: none; } }
@media (max-width: 900px) {
  .mappa-testa { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2rem; }
  .mappa-ui { grid-template-columns: 1fr; }
  .mappa-campo { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 0.5rem; padding: 3.5rem 0.75rem 1.5rem; }
  .mappa-campo::before { background-size: 1.25rem 1.25rem; }
  .mappa-via { display: none; }
  .fermata { position: relative; left: auto; top: auto; translate: none; }
  .fermata-nome { font-size: 0.8125rem; padding: 0.25rem 0.625rem; }
  .fermata .segnalino { top: -2.25rem; font-size: 0.75rem; }
  .ms-nome { font-size: 1.875rem; }
}

/* ---------- In breve: le storie dei numeri ---------- */
.numeri { display: grid; grid-template-columns: 4fr 8fr; gap: 2.5rem; align-items: stretch; }
.numeri-testo { display: grid; align-content: center; justify-items: start; gap: 1.25rem; padding: 1rem 0; }
.numeri-testo .corpo { max-width: 26rem; }
.numeri-elenco { list-style: none; margin: 0.5rem 0 0.5rem; padding: 0; display: grid; gap: 0.25rem; width: 100%; max-width: 26rem; }
.numeri-elenco button { width: 100%; display: grid; grid-template-columns: 3.75rem 1fr; gap: 0.75rem; align-items: center; padding: 0.625rem 0.875rem 0.625rem 0.625rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 0.9375rem; color: var(--grigio); text-align: left; cursor: pointer; transition: background-color .3s, color .3s, transform .25s cubic-bezier(.16,1,.3,1); }
.numeri-elenco button b { justify-self: center; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.numeri-elenco button:hover { transform: scale(.98); }
.numeri-elenco button[aria-current="true"] { background: var(--banda); color: var(--ink); }
.storie { position: relative; isolation: isolate; overflow: hidden; min-height: 34rem; border-radius: 2rem; color: #fff; box-shadow: 0 1.75rem 4rem rgba(20,40,150,.28); cursor: pointer; -webkit-user-select: none; user-select: none; }
.storie > .grana { z-index: -1; }
.storie:focus-visible { outline: 2px solid var(--blu); outline-offset: 0.25rem; }
.storie .frecce-storie { right: -3.5rem; top: -2rem; width: 26rem; height: 38rem; z-index: 0; opacity: .9; }
.storie-pillola { position: absolute; left: 1.75rem; top: 1.75rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.625rem; height: 3.25rem; padding: 0 1.375rem 0 1.125rem; border-radius: 999px; font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; }
.storie-pillola svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.storie-pausa { position: absolute; right: 1.75rem; top: 1.75rem; z-index: 2; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.storie-pausa:hover { transform: scale(.94); }
.storie-pausa svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.storie-pausa .gioca, .storie.in-pausa .storie-pausa .ferma { display: none; }
.storie.in-pausa .storie-pausa .gioca { display: block; }
.storie-pausa:focus-visible, .storie-barre button:focus-visible { outline: 2px solid #fff; outline-offset: 0.1875rem; }
.storie-pagine { position: absolute; inset: 0; z-index: 1; }
.storia { position: absolute; left: 1.75rem; right: 1.75rem; bottom: 4.75rem; display: grid; gap: 0.5rem; justify-items: start; pointer-events: none; }
.storia .storia-cifra { margin: 0 0 0.75rem; max-width: none; color: #fff; font-size: clamp(5rem, 9.2vw, 8.75rem); font-weight: 400; letter-spacing: -.055em; line-height: .86; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 0.75rem; text-shadow: 0 0.5rem 3rem rgba(8,16,90,.25); }
.storia-cifra small { font-size: 0.3em; font-weight: 500; letter-spacing: -.02em; }
.storia h3 { margin: 0; font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-shadow: 0 0.25rem 1.5rem rgba(8,16,90,.25); }
.storia p { margin: 0; max-width: 34rem; font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.35; color: #fff; text-shadow: 0 0.25rem 1.5rem rgba(8,16,90,.3); }
.storia > * { opacity: 0; transform: translateY(1rem); filter: blur(8px); transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.storia.attiva > * { opacity: 1; transform: none; filter: none; transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1), filter .7s ease; }
.storia.attiva > :nth-child(2) { transition-delay: .07s; }
.storia.attiva > :nth-child(3) { transition-delay: .14s; }
.storie-barre { position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.5rem; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.storie-barre button { position: relative; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 999px; }
.storie-barre button::before, .storie-barre button i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.3125rem; margin-top: -0.15625rem; border-radius: 999px; }
.storie-barre button::before { background: rgba(255,255,255,.32); box-shadow: 0 0 0 1px rgba(10,24,110,.05); }
.storie-barre button i { background: #fff; transform-origin: 0 50%; transform: scaleX(var(--k, 0)); }
.storie-barre button.fatta i { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .storia > *, .storia.attiva > * { transition: none; filter: none; transform: none; } }
@media (max-width: 900px) {
  .numeri { grid-template-columns: 1fr; gap: 1.5rem; }
  .numeri-testo { padding: 0; }
  .numeri-elenco { display: none; }
  .storie { min-height: 31rem; border-radius: 1.75rem; }
  .storie .frecce-storie { width: 17rem; height: 25rem; right: -5rem; top: 0; }
  .storie-pillola { left: 1.125rem; top: 1.125rem; height: 2.75rem; font-size: 1rem; }
  .storie-pausa { right: 1.125rem; top: 1.125rem; width: 2.75rem; height: 2.75rem; }
  .storia { left: 1.25rem; right: 1.25rem; bottom: 4rem; }
  .storie-barre { left: 1.25rem; right: 1.25rem; bottom: 1.125rem; }
}

/* ---------- la fascia dei lavori: la luce passa fra le schermate ---------- */
.mosaico[data-grana] { background: var(--g-blu-notte); }
.mosaico[data-grana]::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 6rem 2rem rgba(8,14,60,.55); }

/* ---------- Parliamone dentro il cielo ---------- */
#parliamone { padding-bottom: 3rem; }
.pa-grana { border-radius: 2.5rem; overflow: hidden; padding: 5.5rem 2.5rem 2.5rem; color: #fff; }
.pa-grana .pa-testa { margin-bottom: 3rem; }
.pa-grana .pa-testa .display { color: #fff; text-shadow: 0 0.25rem 2.5rem rgba(8,16,80,.22); }
.pa-grana .pa-testa .corpo { color: #fff; }
.pa-grana .pa-scheda { background: #fff; color: var(--ink); box-shadow: 0 2rem 4.5rem rgba(10,24,110,.32); }
.pa-grana .pa-chi { background: var(--banda); border-radius: 1.625rem; margin: 0.75rem 0 0.75rem 0.75rem; }
.pa-grana .frecce-parla { left: -6rem; top: 3rem; width: 20rem; height: 30rem; z-index: -1; opacity: .4; }
@media (max-width: 900px) {
  .pa-grana .frecce-parla { display: none; }
  .pa-grana { border-radius: 1.75rem; padding: 3.5rem 0.75rem 0.75rem; margin: 0 -0.25rem; }
  .pa-grana .pa-testa { padding: 0 0.75rem; }
  .pa-grana .pa-chi { margin: 0.5rem; }
}

/* ---------- il piede nella notte ---------- */
body[data-piede="round"] .piede[data-grana] { background: var(--g-blu-notte); overflow: hidden; }
.piede[data-grana] .pr-frase span { color: var(--g-pesca); }
.piede[data-grana] .pr-mappa h3 { color: #CFDCFF; }
.piede[data-grana] .pr-legale, .piede[data-grana] .pr-contatti, .piede[data-grana] .pr-mappa li a { color: #E1E7F2; }
.piede[data-grana] .pr-mail { color: #CFDCFF; }
.piede[data-grana] .pr-mappa, .piede[data-grana] .pr-contatti { border-color: rgba(255,255,255,.18); }
.piede[data-grana] .pr-legale .ago use { fill: var(--g-pesca); }
.piede[data-grana] .pr-scritta { color: transparent; background: linear-gradient(180deg, #fff 18%, rgba(255,255,255,.35) 100%); -webkit-background-clip: text; background-clip: text; }
.piede .frecce-piede { right: -5rem; top: 4rem; width: 30rem; height: 40rem; z-index: -1; opacity: .35; }

/* ---------- Come funziona: la linea che si riempie prende i colori dell'alba ---------- */
.alterna-riempi { width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, #F2924F 0%, #B4679A 22%, #6A4ED0 48%, #2452D6 78%); box-shadow: 0 0 12px rgba(106,78,208,.35); }
.alterna li.passata .pallino { border-color: var(--blu); }

/* ---------- riserva: Parliamone ha il suo cielo anche prima che arrivi lo script ---------- */
.pa-grana[data-grana] { background-color: #2448CF; }

/* ---------- «Ferma il movimento» ---------- */
.movimento { position: absolute; right: 2.5rem; bottom: 2.5rem; z-index: 6; display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding: 0 1rem 0 0.75rem; border-radius: 999px; font: inherit; font-size: 0.8125rem; font-weight: 500; letter-spacing: -.005em; cursor: pointer; background: rgba(10,20,84,.6); transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s; }
.movimento:hover { transform: scale(.98); background: rgba(10,20,84,.72); }
.movimento svg { width: 0.875rem; height: 0.875rem; fill: currentColor; }
.movimento .mv-gioca, html.quieto .movimento .mv-ferma { display: none; }
html.quieto .movimento .mv-gioca { display: block; }
.movimento:focus-visible { outline: 2px solid #fff; outline-offset: 0.25rem; }
.pr-legale-dx { display: inline-flex; align-items: center; gap: 1.5rem; }
.pr-movimento { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(255,255,255,.35); }
.pr-movimento:hover { color: #fff; }
html.quieto .mappa-via .v-flusso { animation-play-state: paused; }
html.quieto .fermata.scelta .fermata-punto::after { animation: none; }
html.quieto .frecce .f { translate: none; }
@media (prefers-reduced-motion: reduce) { .movimento, .pr-movimento { display: none; } }
@media (max-width: 900px) { .movimento { right: 1rem; bottom: 1rem; height: 2.25rem; padding: 0 0.875rem 0 0.625rem; font-size: 0.75rem; } }

/* testo per chi usa un lettore di schermo */
.sr-solo { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- ritocchi dopo la revisione (19/11) ---------- */
.storia h3, .storia p { text-wrap: pretty; }
/* la mappa racconta da sola: il pallino arancio segna dove si perde tempo, come nella prima carta */
.fermata.perde .fermata-punto::before { content: ""; position: absolute; top: -0.125rem; right: -0.125rem; width: 0.875rem; height: 0.875rem; border-radius: 50%; background: var(--g-arancio); box-shadow: 0 0 0 0.1875rem rgba(255,255,255,.95), 0 0.25rem 0.75rem rgba(242,146,79,.6); }
.mappa-campo .eti-giu { top: auto; left: auto; right: 1.5rem; bottom: 1.25rem; font-weight: 500; }
.mappa-campo .eti-giu i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--g-arancio); box-shadow: 0 0 0 0.125rem rgba(255,255,255,.9); }
@media (max-width: 900px) { .mappa-campo .eti-giu { left: 0.75rem; right: 0.75rem; justify-content: center; bottom: 0.75rem; font-size: 0.8125rem; } .mappa-campo { padding-bottom: 2.75rem; } }

/* ---------- la mappa: l'invito a toccare il proprio passaggio (19/11, richiesta di Rolando) ---------- */
.mappa-invito { position: absolute; left: 50%; top: 1rem; translate: -50% 0; z-index: 3; margin: 0; display: inline-flex; align-items: center; gap: 0.625rem; height: 2.5rem; padding: 0 1.125rem 0 0.375rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.9375rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 0.75rem 2rem rgba(8,16,70,.3); pointer-events: none; }
.mappa-invito b { font-weight: 600; }
.mi-icona { flex: none; width: 1.875rem; height: 1.875rem; border-radius: 50%; display: grid; place-items: center; background: var(--g-arancio); color: #fff; }
.mi-icona svg { width: 1.0625rem; height: 1.0625rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mi-icona .mi-fatto { display: none; width: 0.9375rem; height: 0.9375rem; stroke-width: 2; }
.mappa-ui[data-toccata] .mi-icona { background: var(--blu); }
.mappa-ui[data-toccata] .mi-mano { display: none; }
.mappa-ui[data-toccata] .mi-fatto { display: block; }
/* quando la mappa entra in vista: la manina tocca, i passaggi si accendono uno dopo l'altro (due giri, poi fermi) */
.mappa-ui.invita .mi-mano { animation: mi-tocca 1.3s cubic-bezier(.16,1,.3,1) 3; transform-origin: 50% 80%; }
@keyframes mi-tocca { 0%, 100% { transform: none; } 35% { transform: translateY(0.125rem) scale(.86); } }
.mappa-ui.invita:not([data-toccata]) .fermata:not(.scelta) .fermata-punto { animation: mi-accendi 1.6s cubic-bezier(.16,1,.3,1) calc(0.3s + var(--n, 0) * 0.17s) 2; }
@keyframes mi-accendi {
  0%, 100% { background-color: rgba(255,255,255,.16); box-shadow: 0 0.75rem 2rem rgba(8,16,70,.28), 0 0 0 0 rgba(255,255,255,.55); }
  30% { background-color: rgba(255,255,255,.42); box-shadow: 0 0.75rem 2rem rgba(8,16,70,.28), 0 0 0 0.375rem rgba(255,255,255,.28); }
  70% { box-shadow: 0 0.75rem 2rem rgba(8,16,70,.28), 0 0 0 0.875rem rgba(255,255,255,0); }
}
html.quieto .mappa-ui.invita .mi-mano, html.quieto .mappa-ui.invita .fermata-punto { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .mappa-ui.invita .mi-mano, .mappa-ui.invita .fermata-punto { animation: none !important; } }
@media (max-width: 900px) {
  .mappa-campo .eti:not(.eti-giu) { display: none; }
  .mappa-invito { top: 0.875rem; height: 2.25rem; font-size: 0.8125rem; gap: 0.5rem; padding-right: 0.875rem; }
  .mi-icona { width: 1.625rem; height: 1.625rem; }
}
@media (max-width: 900px) { .mappa-campo { padding-top: 5.75rem; } }
