/* VIBEST · pagine "Italiani e non a <città>" (03/10/2026).
   Si appoggia a /theme-fumo.css (token, header, logo, interruttore lingua). Tema scuro unico, accento ciano
   con il viola del marchio, verde solo per "gratis". Raggio unico: 18px per riquadri e foto, pillola per i bottoni. */

:root { --r: 18px; --bar-h: 76px; }
body { overflow-x: hidden; }
header { justify-content: center; }
.lang-switch { cursor: pointer; font: inherit; }

/* ---------- HERO: foto delle attività che si alternano, parola che cambia insieme alla foto ---------- */
.hero {
  position: relative; z-index: 1; isolation: isolate;
  min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
  display: grid; align-items: end;
  padding: 40px 20px 44px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0a0614; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s ease, transform 6.5s ease-out;
}
.hero-media img.on { opacity: 1; transform: scale(1); }
/* Velo: scuro in basso a sinistra dove sta il testo, tinta viola leggera per legare le foto al marchio */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(5,2,15,0.96) 8%, rgba(5,2,15,0.55) 48%, rgba(5,2,15,0.15) 100%),
    linear-gradient(90deg, rgba(5,2,15,0.75) 0%, rgba(5,2,15,0) 70%),
    linear-gradient(135deg, rgba(122,0,255,0.28), rgba(0,240,255,0.06));
}
.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; }
.hero-copy { max-width: 640px; }
.kicker {
  font-family: 'Orbitron', sans-serif; font-size: 0.74rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ciano); margin-bottom: 14px; text-shadow: 0 0 12px rgba(0,240,255,0.5);
}
.hero h1 {
  font-family: 'Orbitron', sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(1.85rem, 6.4vw, 3.6rem); line-height: 1.12; letter-spacing: -0.5px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero h1 .l1 { display: block; color: #fff; }
.hero h1 .l2 { display: block; font-size: 0.62em; font-weight: 700; margin-top: 10px; color: #e9e6f5; }
.rot {
  display: inline-block; min-height: 1.2em;
  background: linear-gradient(90deg, #00F0FF, #c084fc 55%, #FF3DA8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(0,240,255,0.35));
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rot.out { opacity: 0; transform: translateY(10px); }
.hero .sub {
  font-size: 1.06rem; line-height: 1.6; color: #dcdae6; margin: 16px 0 24px; max-width: 520px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* ---------- Bottoni store ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  min-width: 190px; padding: 12px 22px; border-radius: 999px;
  background: rgba(8,4,20,0.88); color: #fff; text-decoration: none;
  border: 1.5px solid rgba(0,240,255,0.55);
  box-shadow: 0 0 22px rgba(0,240,255,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s, border-color 0.2s;
}
.btn-store:hover { text-decoration: none; transform: translateY(-2px); border-color: #00F0FF;
  box-shadow: 0 0 30px rgba(0,240,255,0.45), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-store:active { transform: scale(0.98); }
.btn-store svg { width: 26px; height: 26px; flex-shrink: 0; fill: #fff; }
.btn-store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-store small { font-size: 0.68rem; color: #b9b6c8; letter-spacing: 0.4px; }
.btn-store strong { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; white-space: nowrap; }
/* "Gratis" centrato sotto i due bottoni (il blocco è largo quanto i bottoni), neon verde che respira
   con un leggero sfarfallio da insegna ogni tanto */
.cta-blocco { width: fit-content; max-width: 100%; text-align: center; }
/* "Ancora non sei convinto?" sta dentro il blocco dei bottoni: centrata sotto App Store e Google Play (Danny 06/10) */
.cta-blocco .sbircia { text-align: left; }
.free { font-family: 'Orbitron', sans-serif; font-size: 0.72rem; letter-spacing: 2.4px; text-transform: uppercase;
  color: #2BFF9A; margin-top: 14px; text-align: center; text-shadow: 0 0 12px rgba(43,255,154,0.45); }
@media (prefers-reduced-motion: no-preference) {
  .free { animation: neon-verde 3.2s ease-in-out infinite; }
}
@keyframes neon-verde {
  0%, 100% { opacity: 1; text-shadow: 0 0 6px rgba(43,255,154,0.55), 0 0 16px rgba(43,255,154,0.35); }
  50% { opacity: 0.88; text-shadow: 0 0 3px rgba(43,255,154,0.3), 0 0 8px rgba(43,255,154,0.15); }
  62% { opacity: 1; text-shadow: 0 0 8px rgba(43,255,154,0.7), 0 0 22px rgba(43,255,154,0.45); }
  64% { opacity: 0.6; }
  66% { opacity: 1; }
}

/* Promessa ai primi 500: V oro, stessi colori dell app (LIVELLO_COLOR oro + testo scuro) */
.hero .originals { display: flex; width: fit-content; align-items: center; gap: 10px; margin: -8px 0 28px; padding: 7px 14px 7px 7px;
  border-radius: 999px; background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.55);
  color: #fff6cc; font-size: 0.9rem; line-height: 1.35; font-weight: 600; max-width: min(520px, 100%);
  box-shadow: 0 0 18px rgba(255,215,0,0.22); }
.hero .nolike { margin: -16px 0 26px; max-width: min(520px, 100%); color: #cfd6ff; font-size: 0.95rem; font-weight: 600;
  line-height: 1.4; text-shadow: 0 0 12px rgba(0,240,255,0.25); }
/* Seconda riga sotto "non per i like" (13/10): più piccola, senza bagliore */
.v-oro { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #FFD700; color: #1a1300; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.8rem;
  box-shadow: 0 0 12px rgba(255,215,0,0.75); }

/* Il tema delle pagine di testo mette margini e maiuscole a h2/h3/p: qui li governa questo file */
.hero h1, .sec-title, .tile h3, .step h3 { margin: 0; }
.tile p, .step p, .hero p { margin-bottom: 0; }
.sec-title { text-transform: none; }

/* ---------- Sezioni ---------- */
section { position: relative; z-index: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sec-title {
  font-family: 'Orbitron', sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.3px; max-width: 18ch;
}
.sec-sub { color: #c9c6d6; font-size: 1.04rem; line-height: 1.6; margin-top: 12px; max-width: 56ch; }

/* Bento: 8 attività, 8 celle. Desktop 4×3 con musica grande ed escursioni alta. */
.skills { padding: 88px 0 40px; }
.bento {
  margin-top: 34px; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px;
  grid-template-areas:
    "mus mus esc pad"
    "mus mus dro eve"
    "dis cuc tat fot";
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.08); background: #0d0818;
  display: flex; align-items: flex-end; padding: 18px;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,2,15,0.92) 0%, rgba(5,2,15,0.25) 55%, rgba(5,2,15,0.05) 100%); }
/* Niente effetto al passaggio del mouse (Danny 06/10): i riquadri non portano da nessuna parte e la gente provava a cliccarli */
.tile div { position: relative; z-index: 1; }
.tile h3 { font-family: 'Orbitron', sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff; }
.tile p { font-size: 0.92rem; color: #d2cfe0; line-height: 1.4; margin-top: 4px; }
.t-mus { grid-area: mus; } .t-mus h3 { font-size: 1.6rem; }
.t-esc { grid-area: esc; } .t-pad { grid-area: pad; } .t-eve { grid-area: eve; } .t-dro { grid-area: dro; }
/* Inquadratura di ogni foto: style="object-position" scritto dal generatore (ATTIVITA.pos) */
.t-dis { grid-area: dis; } .t-cuc { grid-area: cuc; } .t-tat { grid-area: tat; } .t-fot { grid-area: fot; }

/* Vetrina "Dai una sbirciata": post veri da public-post sul palco (sotto, dopo la pillola sbircia). */
.vetrina { padding: 50px 0 20px; scroll-margin-top: 70px; }
/* Titolo e sottotitolo della vetrina centrati sull'asse del palco, righe bilanciate (Danny 05/10) */
.vetrina .wrap { text-align: center; }
.vetrina .sec-title { margin: 0 auto; max-width: 20ch; text-wrap: balance; }
.vetrina .sec-sub { margin-left: auto; margin-right: auto; text-wrap: balance; }
/* "Abilità vere" nell'oro della V (Danny 06/10): la parola chiave salta all'occhio, il resto resta tenue */
.vet-oro { color: #FFD700; font-weight: 700; text-shadow: 0 0 12px rgba(255,215,0,0.45); }

/* "Ancora non sei convinto?" sotto i bottoni dell'hero: pillola col bordo dei colori del marchio che gira,
   facce vere della vetrina, freccia che rimbalza. Entra quando la vetrina ha caricato i post. */
.sbircia {
  position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; color: #fff;
  background: rgba(8,4,20,0.82); isolation: isolate;
  box-shadow: 0 0 26px rgba(192,132,252,0.35);
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.sbircia[hidden] { display: none; }
.sbircia.on { opacity: 1; transform: none; }
.sbircia:hover { text-decoration: none; }
.sbircia:active { transform: scale(0.98); }
/* Bordo: gradiente conico dietro, scoperto solo in 1.5px tutt'intorno */
.sbircia::before {
  content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--giro, 0deg), #00F0FF, #7A00FF, #FF3DA8, #FFC83D, #00F0FF);
}
.sbircia::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(8,4,20,0.92); }
.sb-facce { display: flex; flex-shrink: 0; }
.sb-facce img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #0b0618;
  box-shadow: 0 0 0 1.5px #00F0FF; }
.sb-facce img + img { margin-left: -9px; }
.sb-testo { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.sb-testo span { font-size: 0.8rem; color: #c9c6d6; }
.sb-testo strong { font-family: 'Orbitron', sans-serif; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.3px;
  color: #fff; text-shadow: 0 0 12px rgba(0,240,255,0.55); }
.sb-freccia { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,240,255,0.14); border: 1px solid rgba(0,240,255,0.6); }
.sb-freccia::before { content: ''; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid #00F0FF;
  border-bottom: 2px solid #00F0FF; transform: rotate(45deg); }
@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .sbircia::before { animation: giro-bordo 4s linear infinite; }
  .sb-freccia { animation: rimbalzo 1.6s ease-in-out infinite; }
}
@keyframes giro-bordo { to { --giro: 360deg; } }
@keyframes rimbalzo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.vetrina[hidden] { display: none; }
/* Il palco (JS: estero.js, funzione vetrina). Una card al centro; sopra, il canvas del fumo (.vet-fumo): a ogni cambio
   una mano invisibile ci passa davanti, la vecchia svanisce nella nebbia e la nuova ne emerge. Sopra la card, il
   nome dell'abilità. La card attiva è visibile di base: le animazioni la arricchiscono e basta. */
.vet-palco {
  --w: min(76vw, 300px); --tinta: #00F0FF; --top: 58px;
  position: relative; margin-top: 10px; height: calc(var(--top) + var(--w) * 1.25 + 48px);
  overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; isolation: isolate;
}
/* Il fumo intorno alla card: due canvas, .dietro sotto la card e quello davanti sopra. Debordano dal palco in alto e in
   basso (e il palco non taglia: overflow visibile) così le volute svaniscono da sole invece di finire contro un bordo */
.vet-fumo { position: absolute; top: -150px; left: 50%; width: min(100vw, calc(var(--w) * 3)); height: calc(100% + 300px); transform: translateX(-50%); z-index: 4; pointer-events: none; }
.vet-fumo.dietro { z-index: 1; }
/* Bordi sfumati: dove il canvas finisce il fumo svanisce, mai una riga dritta */
.vet-fumo { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); }
.vet-scena { position: absolute; left: 50%; top: var(--top); width: var(--w); aspect-ratio: 4 / 5; transform: translateX(-50%); z-index: 2; }

/* Nome dell'abilità SOPRA la card: pieno, del colore di turno, con il suo bagliore */
.vet-parole { position: absolute; left: 0; right: 0; top: 10px; height: 48px; z-index: 2; pointer-events: none; }
.vet-parole span {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: 0.08em; white-space: nowrap;
}
/* Nome lungo (JS: parola): due righe centrate invece di una riga che esce dallo schermo (Danny 08/10) */
.vet-parole span.due-righe { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 24px); }
.vet-parole span {
  color: color-mix(in srgb, var(--tinta) 35%, #fff);
  text-shadow: 0 0 10px color-mix(in srgb, var(--tinta) 75%, transparent), 0 0 30px color-mix(in srgb, var(--tinta) 45%, transparent);
}

/* La card */
.vet-card {
  position: absolute; inset: 0; display: block; transform-origin: 50% 85%;
  border-radius: var(--r); overflow: hidden; background: #0d0818; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--tinta) 55%, transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--tinta) 30%, transparent), 0 30px 70px rgba(0,0,0,0.55);
}
.vet-card:hover { text-decoration: none; }
.vet-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vet-card::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(5,2,15,0.95) 0%, rgba(5,2,15,0.55) 40%, rgba(5,2,15,0) 70%); }
.vet-play { position: absolute; top: 10px; right: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; color: #fff; background: rgba(5,2,15,0.6);
  border: 1px solid rgba(255,255,255,0.35); }
.vet-info { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; gap: 9px; }
.vet-testo { position: absolute; left: 12px; right: 12px; bottom: 58px; z-index: 1; margin: 0;
  color: #f1eef9; font-size: 0.86rem; line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vet-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1.5px solid #00F0FF; box-shadow: 0 0 10px rgba(0,240,255,0.5); }
.vet-info div { min-width: 0; display: flex; flex-direction: column; }
.vet-info strong { color: #fff; font-size: 0.9rem; line-height: 1.1; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vet-info small { color: #5CF4FF; font-weight: 600; font-size: 0.76rem; line-height: 1.15; text-shadow: 0 0 8px rgba(0,240,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Barra del tempo: quanto manca al prossimo */
.vet-tempo { position: absolute; left: 50%; bottom: 14px; width: 120px; height: 2px; margin-left: -60px; z-index: 5;
  background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; }
.vet-tempo i { display: block; height: 100%; background: var(--tinta); box-shadow: 0 0 10px var(--tinta);
  transform: scaleX(0); transform-origin: left; transition: transform 0.1s linear; }
.vet-palco.ferma .vet-tempo i { transition: none; }
/* Tasto del whoosh: piccolo, in basso a destra del palco */
.vet-suono { position: absolute; right: 12px; bottom: 2px; z-index: 6; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; font-size: 15px; line-height: 1; cursor: pointer; color: #fff;
  background: rgba(5,2,15,0.6); border: 1px solid rgba(255,255,255,0.25); }
.vet-suono:focus-visible { outline: 2px solid #00F0FF; outline-offset: 2px; }
/* Finché il suono non è acceso, il tasto respira piano: "toccami" */
.vet-suono.invita { animation: vet-suono-invita 1.8s ease-in-out infinite; }
@keyframes vet-suono-invita { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,240,255,0); border-color: rgba(255,255,255,0.25); }
  50% { box-shadow: 0 0 14px 2px rgba(0,240,255,0.55); border-color: rgba(0,240,255,0.8); } }
/* PC: niente tasto (Danny 06/10 "brutto"), il primo clic ovunque accende già il suono */
@media (hover: hover) and (pointer: fine) { .vet-suono { display: none; } }
@media (prefers-reduced-motion: reduce) { .vet-suono.invita { animation: none; border-color: rgba(0,240,255,0.8); } }

@media (prefers-reduced-motion: no-preference) {
  /* Il cambio: la mano di fumo (canvas .vet-fumo, sopra la card) copre la vecchia che si spegne, la nuova si accende dentro la nebbia */
  .vet-card.nasce, .vet-card.nasce-sx, .vet-card.esce, .vet-card.esce-dx { will-change: transform, opacity; }
  .vet-card.nasce, .vet-card.nasce-sx { animation: vet-nasce 1.9s cubic-bezier(0.22,1,0.36,1) both; }
  .vet-card.nasce-sx { animation-name: vet-nasce-sx; }
  .vet-card.esce { animation: vet-svanisce 0.5s ease-in 0.2s both; }
  .vet-card.esce-dx { animation: vet-svanisce-dx 0.5s ease-in 0.2s both; }
  .vet-parole span.da-dx, .vet-parole span.da-sx { animation: vet-parola 1.4s cubic-bezier(0.22,1,0.36,1) both; }
  .vet-parole span.via { transition: opacity 0.22s ease, transform 0.4s ease; opacity: 0; transform: translateX(-50%) scaleX(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .vet-card.esce-piano { animation: vet-dissolvi 0.4s ease both; }
  .vet-parole span.via { opacity: 0; }
}
/* La card nuova resta nascosta mentre il fumo la copre, poi emerge (leggera spinta da destra) */
/* Genio: la nuova cresce dal basso dentro il vortice, la vecchia viene risucchiata girando un poco */
@keyframes vet-nasce {
  0%, 44% { opacity: 0; transform: translateY(14%) scale(0.62) rotate(-5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes vet-nasce-sx {
  0%, 44% { opacity: 0; transform: translateY(14%) scale(0.62) rotate(5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes vet-svanisce { 100% { opacity: 0; transform: translateY(8%) scale(0.7) rotate(6deg); } }
@keyframes vet-svanisce-dx { 100% { opacity: 0; transform: translateY(8%) scale(0.7) rotate(-6deg); } }
@keyframes vet-dissolvi { to { opacity: 0; } }
@keyframes vet-parola {
  0%, 40% { opacity: 0; transform: translateX(-50%) scaleX(1.35); }
  100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}
@media (min-width: 861px) {
  .vet-palco { --w: 330px; --top: 76px; margin-top: 18px; }
}

/* La finestra della vetrina: foto o video grande + didascalia intera, sopra tutto (anche la barra degli store) */
.vet-lb { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); background: rgba(5,2,15,0); transition: background 0.25s ease; }
.vet-lb[hidden] { display: none; }
.vet-lb.on { background: rgba(5,2,15,0.88); }
html.vet-lb-on { overflow: hidden; }
.vet-lb-box { position: relative; width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; background: #0b0618; border: 1px solid rgba(192,132,252,0.4);
  box-shadow: 0 0 40px rgba(122,0,255,0.3), 0 30px 80px rgba(0,0,0,0.6);
  opacity: 0; transform: scale(0.94); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.vet-lb.on .vet-lb-box { opacity: 1; transform: none; }
.vet-lb-media { flex: 0 1 auto; min-height: 0; background: #000; display: flex; justify-content: center; }
.vet-lb-media img, .vet-lb-media video { display: block; max-width: 100%; max-height: 66vh; max-height: 66svh; object-fit: contain; }
.vet-lb-chi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px 0; }
.vet-lb-chi strong { color: #fff; font-size: 0.95rem; }
.vet-lb-chi small { color: #5CF4FF; font-weight: 600; font-size: 0.8rem; text-shadow: 0 0 8px rgba(0,240,255,0.45); }
.vet-lb-testo { margin: 8px 0 0; padding: 0 18px 18px; color: #e9e6f5; font-size: 0.95rem; line-height: 1.55;
  white-space: pre-line; overflow-y: auto; max-height: 24vh; }
.vet-lb-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(5,2,15,0.7); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; }
.vet-lb-x:focus-visible { outline: 2px solid #00F0FF; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vet-lb, .vet-lb-box { transition: none; } }

/* Nastro delle abilità: l'unico elemento che scorre da solo, fa vedere la larghezza dell'app */
.ribbon { padding: 30px 0 10px; overflow: hidden; }
.ribbon-track { display: flex; gap: 12px; width: max-content; animation: scorri 60s linear infinite; }
.ribbon-track span {
  font-size: 0.95rem; color: #e6e3f2; white-space: nowrap;
  border: 1px solid rgba(192,132,252,0.35); background: rgba(122,0,255,0.08);
  border-radius: 999px; padding: 9px 16px;
}
@keyframes scorri { to { transform: translateX(-50%); } }

/* Come funziona: linea verticale con tre passi, il verbo è il titolo */
.how { padding: 86px 0 40px; }
.steps { margin-top: 34px; position: relative; display: grid; gap: 30px; max-width: 760px; }
.steps::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #00F0FF, #7A00FF 60%, rgba(122,0,255,0)); }
.step { position: relative; padding-left: 54px; }
.step::before { content: ''; position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: #05020f; border: 2px solid #00F0FF; box-shadow: 0 0 14px rgba(0,240,255,0.6); }
.step h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: #fff; font-weight: 700; }
.step p { color: #cfcbdd; margin-top: 6px; line-height: 1.6; max-width: 58ch; }

/* Accanto ai passi: tre foto sovrapposte e inclinate, solo da schermo largo */
.how-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.collage { position: relative; height: 440px; }
.collage img { position: absolute; width: 58%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.collage img:nth-child(1) { left: 0; top: 30px; transform: rotate(-7deg); }
.collage img:nth-child(2) { left: 22%; top: 0; transform: rotate(3deg); z-index: 1; border-color: rgba(0,240,255,0.5);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(0,240,255,0.2); }
.collage img:nth-child(3) { right: 0; top: 70px; transform: rotate(9deg); }

/* Chiusura */
.final { padding: 96px 0 140px; text-align: center; }
.final .sec-title { margin: 0 auto; max-width: 22ch; }
.final .sec-sub { margin: 12px auto 28px; }
.final .stores { justify-content: center; }
.final .cta-blocco { margin: 0 auto; }
.others { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.others a { color: #d9d6e6; text-decoration: none; font-size: 0.9rem; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12); }
.others a:hover { border-color: rgba(0,240,255,0.6); color: #fff; }

/* Barra fissa: i due store restano sempre a portata di pollice quando i bottoni dell'hero escono di vista */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,2,15,0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,240,255,0.25);
  display: flex; gap: 10px; justify-content: center; align-items: center;
  transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.bar.on { transform: none; }
.bar .lbl { font-family: 'Orbitron', sans-serif; font-size: 0.7rem; letter-spacing: 2px; color: #2BFF9A;
  text-transform: uppercase; margin-right: 6px; }
.bar .btn-store { min-width: 0; padding: 9px 16px; }
.bar .btn-store small { display: none; }
.bar .btn-store strong { font-size: 0.86rem; }
.bar .btn-store svg { width: 20px; height: 20px; }

footer { position: relative; z-index: 1; }

/* Comparsa allo scroll: solo per chi non ha chiesto meno movimento */
.rv { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero-media img { transition: none; transform: none; }
}

/* La città trovata entra con un piccolo lampo */
.hero .l1.arriva { animation: arriva 0.7s cubic-bezier(0.16,1,0.3,1); }
@keyframes arriva { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Richiesta di consenso alla posizione (pagina Italia): foglio dal basso su telefono, riquadro al centro su computer */
.geo { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(5,2,15,0); transition: background 0.3s; }
.geo.on { background: rgba(5,2,15,0.62); }
.geo[hidden] { display: none; }
.geo-card { width: 100%; max-width: 420px; text-align: center; padding: 26px 22px 20px; border-radius: 22px;
  background: rgba(14,8,28,0.96); border: 1px solid rgba(0,240,255,0.35);
  box-shadow: 0 0 40px rgba(0,240,255,0.15), 0 30px 80px rgba(0,0,0,0.6);
  transform: translateY(30px); opacity: 0; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.3s; }
.geo.on .geo-card { transform: none; opacity: 1; }
.geo-card h2 { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; line-height: 1.3; color: #fff;
  text-transform: none; letter-spacing: 0; margin: 14px 0 10px; text-shadow: none; }
.geo-card p { font-size: 0.95rem; line-height: 1.55; color: #d4d1e2; margin: 0 0 18px; }
.geo-card .geo-nota { font-size: 0.78rem; color: #9b98ad; margin: 12px 0 0; }
.geo-si, .geo-no { display: block; width: 100%; border-radius: 999px; font: inherit; cursor: pointer; padding: 13px 18px; }
.geo-si { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.95rem; color: #05020f; border: 0;
  background: linear-gradient(90deg, #00F0FF, #8be9ff); box-shadow: 0 0 24px rgba(0,240,255,0.45); }
.geo-si:active, .geo-no:active { transform: scale(0.98); }
.geo-no { margin-top: 10px; background: transparent; color: #cfcbdd; border: 1px solid rgba(255,255,255,0.18); }
/* Radar: tre cerchi che si allargano, dice "posizione" senza icone */
.geo-radar { position: relative; width: 58px; height: 58px; margin: 0 auto; }
.geo-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0,240,255,0.8); }
.geo-radar span:first-child { inset: 22px; background: #00F0FF; border: 0; box-shadow: 0 0 14px #00F0FF; }
@media (prefers-reduced-motion: no-preference) {
  .geo-radar span:nth-child(2), .geo-radar span:nth-child(3) { animation: radar 2s ease-out infinite; }
  .geo-radar span:nth-child(3) { animation-delay: 1s; }
}
@keyframes radar { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@media (min-width: 700px) { .geo { align-items: center; } }

/* Banner per la webview di Instagram quando lo store non si apre */
.inapp { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; max-width: 520px;
  background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.45); color: #fff; font-size: 0.92rem; line-height: 1.5; }
html.inapp-on .inapp { display: block; }

/* ---------- Telefono ---------- */
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px;
    grid-template-areas: "mus mus" "mus mus" "esc pad" "dro eve" "dis cuc" "tat fot"; }
  .t-mus h3 { font-size: 1.3rem; }
  .how-grid { grid-template-columns: 1fr; }
  .collage { display: none; }
}
@media (max-width: 520px) {
  /* Foto dell'hero nella parte alta, sfumate nel nero: le scritte stanno sotto e non le coprono più (Danny 06/10) */
  .hero-media { bottom: auto; height: 62%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero::after { background: linear-gradient(0deg, rgba(5,2,15,1) 38%, rgba(5,2,15,0.35) 58%, rgba(5,2,15,0) 80%), linear-gradient(135deg, rgba(122,0,255,0.2), rgba(0,240,255,0.05)); }
  .hero { padding: 28px 16px 30px; min-height: calc(100vh - 88px); min-height: calc(100svh - 88px); }
  .stores { gap: 10px; }
  .stores .btn-store { flex: 1 1 0; min-width: 0; padding: 11px 12px; }
  .cta-blocco { width: 100%; }
  .btn-store strong { font-size: 0.9rem; }
  .wrap { padding: 0 16px; }
  .skills { padding-top: 64px; }
  .tile { padding: 14px; }
  .tile h3 { font-size: 0.92rem; }
  .tile p { font-size: 0.8rem; }
  .bar .lbl { display: none; }
  .bar .btn-store { flex: 1 1 0; }
}

a.geo-si { text-decoration: none; text-align: center; }
a.geo-si:hover { text-decoration: none; }
