/* =========================================================
   LIBITHIUM - Nirvana Tribute Band
   Stile: grunge anni '90 + web design moderno. Mobile-first.
   ========================================================= */

/* ---------- Variabili (cambia qui colori e font) ---------- */
:root {
  --c-bg: #0d0c0b;          /* nero "sporco" */
  --c-bg-2: #171513;        /* fondo card */
  --c-ink: #ece6d9;         /* testo, bianco carta ingiallita */
  --c-muted: #a49c8e;       /* testo secondario */
  --c-yellow: #f2c418;      /* giallo grunge (accento principale) */
  --c-red: #b0362d;         /* rosso sbiadito (accento secondario) */
  --c-line: rgba(236, 230, 217, 0.14);

  --f-grunge: "Anton", "Impact", sans-serif;              /* numeri, nomi: d'impatto */
  --f-type: "Space Grotesk", "Inter", system-ui, sans-serif; /* etichette, menu, pulsanti */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 64px;
  --radius: 4px;
  --container: 1120px;
}

/* ---------- Reset minimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
:focus-visible { outline: 2px dashed var(--c-yellow); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Grana su tutta la pagina (texture SVG inline) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  font-family: var(--f-type);
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--c-yellow);
  border-radius: var(--radius);
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: rotate(-1.5deg) scale(1.03); }
.btn--primary { background: var(--c-yellow); color: var(--c-bg); }
.btn--primary:hover { background: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost { color: var(--c-yellow); background: rgba(0, 0, 0, 0.35); }
.btn--ghost:hover { background: var(--c-yellow); color: var(--c-bg); }

/* =========================================================
   NAVIGAZIONE
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(13, 12, 11, 0.94);
  box-shadow: 0 1px 0 var(--c-line);
  backdrop-filter: blur(6px);
}
.nav__inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__logo {
  font-family: var(--f-grunge);
  font-size: 1.6rem;
  color: var(--c-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Menu: su mobile è un pannello a tendina */
.nav__menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 24px;
  background: rgba(13, 12, 11, 0.97);
  border-bottom: 2px solid var(--c-yellow);
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.nav.is-open .nav__menu { transform: translateY(0); visibility: visible; }
.nav__menu a {
  padding: 14px 0;
  font-family: var(--f-type);
  font-size: 1.15rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--c-line);
}
.nav__menu a:hover { color: var(--c-yellow); }

/* Hamburger */
.nav__toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav__burger,
.nav__burger::before,
.nav__burger::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-ink);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -7px; }
.nav__burger::after { top: 7px; }
.nav.is-open .nav__burger { background: transparent; }
.nav.is-open .nav__burger::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger::after { transform: translateY(-7px) rotate(-45deg); }

/* Selettore lingua */
.lang {
  display: flex;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang__btn {
  min-width: 44px; height: 36px;
  background: transparent;
  color: var(--c-muted);
  border: 0;
  font-family: var(--f-type);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang__btn:hover { color: var(--c-ink); }
.lang__btn.is-active { background: var(--c-yellow); color: var(--c-bg); }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;      /* evita salti della barra indirizzi su mobile */
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero__poster {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover;
  background-position: center;
}
/* Il video copre tutto lo schermo mantenendo il 16:9 (effetto "cover") */
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__video.is-ready { opacity: 1; }
.hero__video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;       /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh;   /* 16:9 */
  transform: translate(-50%, -50%) scale(1.15); /* scale nasconde titolo/bordi YouTube */
  border: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  /* velatura leggera: le foto restano ben visibili dietro al logo */
  background:
    radial-gradient(ellipse at center, rgba(13,12,11,0.35) 0%, rgba(13,12,11,0.1) 45%, transparent 75%),
    linear-gradient(to bottom, rgba(13,12,11,0.35) 0%, transparent 20%);
}
.hero__content { padding: 0 16px; }
.hero__kicker {
  margin: 0 0 12px;
  font-family: var(--f-type);
  color: var(--c-yellow);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.hero__title { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__logo {
  width: min(88vw, 760px);
  height: auto;
  filter: drop-shadow(4px 4px 0 var(--c-red)) drop-shadow(0 0 30px rgba(0, 0, 0, 0.6));
}
.hero__name {
  font-family: var(--f-grunge);
  font-weight: 400;
  font-size: clamp(3.2rem, 16vw, 9.5rem);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 var(--c-red), 0 0 40px rgba(0, 0, 0, 0.6);
}
.hero__sub {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--f-type);
  font-weight: 400;
  font-size: clamp(1rem, 4.2vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-bg);
  background: var(--c-ink);
  transform: rotate(-2deg);
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero__scroll {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: var(--c-yellow);
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* =========================================================
   SEZIONI + PARALLASSE
   ========================================================= */
.section {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
  isolation: isolate;
}
/* ---------- Foto grandi sullo sfondo (vedi script.js) ---------- */
.bgstack {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Grandi, con un sottile bordo scuro intorno */
.bgstack__img {
  position: absolute;
  inset: calc(var(--nav-h) + 2vh) 2vw 2vh;
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) contrast(1.15) brightness(0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity var(--fade, 0.22s) ease-in-out;
}
.bgstack__img.is-active { opacity: 1; }
/* Ogni foto entra con un movimento lento e diverso (zoom in, zoom out, panoramica)
   mentre sfuma sulla precedente. Tre varianti che si alternano (vedi script.js) */
/* lo zoom avviene "dentro la cornice": la foto si ingrandisce ma non esce dal suo riquadro */
.bgstack__img.is-zooming { overflow: hidden; }
.bgstack__img.is-zooming::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  animation-duration: var(--kb, 3.2s);   /* dura quanto la foto resta a schermo: non si ferma mai */
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
/* otto movimenti diversi che si alternano (vedi script.js): zoom, panoramiche laterali, oblique e verticali */
.bgstack__img.fx-0::before { animation-name: drift-in; }
.bgstack__img.fx-1::before { animation-name: drift-right; }
.bgstack__img.fx-2::before { animation-name: drift-diag-down; }
.bgstack__img.fx-3::before { animation-name: drift-out; }
.bgstack__img.fx-4::before { animation-name: drift-left; }
.bgstack__img.fx-5::before { animation-name: drift-diag-up; }
.bgstack__img.fx-6::before { animation-name: drift-up; }
.bgstack__img.fx-7::before { animation-name: drift-diag-left; }
/* ✏️ intensità dei movimenti: scale = zoom, translate = spostamento (con scale 1.2 si può spostare fino a circa 8%) */
@keyframes drift-in        { from { transform: scale(1.3) translate(-2%, 1%); } to { transform: scale(1.05) translate(1%, -1%); } }
@keyframes drift-out       { from { transform: scale(1.05) translate(1%, 1%); } to { transform: scale(1.3) translate(-2%, -2%); } }
@keyframes drift-right     { from { transform: scale(1.2) translate(-7%, 0); } to { transform: scale(1.2) translate(7%, 0); } }
@keyframes drift-left      { from { transform: scale(1.2) translate(7%, 1%); } to { transform: scale(1.2) translate(-7%, -1%); } }
@keyframes drift-diag-down { from { transform: scale(1.22) translate(-6%, -6%); } to { transform: scale(1.15) translate(6%, 5%); } }
@keyframes drift-diag-up   { from { transform: scale(1.15) translate(5%, 5%); } to { transform: scale(1.22) translate(-6%, -6%); } }
@keyframes drift-diag-left { from { transform: scale(1.2) translate(6%, -5%); } to { transform: scale(1.2) translate(-6%, 5%); } }
@keyframes drift-up        { from { transform: scale(1.22) translate(0, 7%); } to { transform: scale(1.22) translate(1%, -7%); } }
/* Flash al cambio foto (come un colpo di luce sul palco) */
.bgstack__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 252, 240, 0.85) 0%, rgba(255, 250, 235, 0.35) 45%, transparent 85%);
  opacity: 0;
  pointer-events: none;
}
.bgstack__flash.is-flashing { animation: flash 0.35s ease-out; }
@keyframes flash {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  100% { opacity: 0; }
}
@media (min-width: 900px) {
  .bgstack__img { inset: calc(var(--nav-h) + 3vh) 5vw 3vh; }
}

/* ---------- Effetto fumo (nuvole sfumate che si muovono lente) ---------- */
.smoke {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.smoke span {
  position: absolute;
  width: 80vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(225, 220, 210, 0.38) 0%, rgba(225, 220, 210, 0.14) 35%, transparent 65%);
  filter: blur(30px);
  animation: smoke 28s ease-in-out infinite alternate;
}
.smoke span:nth-child(1) { left: -30vmax; bottom: -25vmax; animation-duration: 26s; }
.smoke span:nth-child(2) { right: -35vmax; bottom: -20vmax; animation-duration: 34s; animation-delay: -8s; }
.smoke span:nth-child(3) { left: 10vw; bottom: -40vmax; animation-duration: 30s; animation-delay: -15s; }
.smoke span:nth-child(4) { left: -20vmax; top: -30vmax; animation-duration: 38s; animation-delay: -5s; opacity: 0.6; }
.smoke span:nth-child(5) { right: -25vmax; top: 10vh; animation-duration: 42s; animation-delay: -20s; opacity: 0.7; }
@keyframes smoke {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(8vw, -10vh) scale(1.25) rotate(12deg); }
  100% { transform: translate(-6vw, -18vh) scale(1.1) rotate(-8deg); }
}

/* Velatura scura sopra le foto per mantenere i testi leggibili */
.parallax::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(13, 12, 11, 0.6);
}

.section__title {
  margin-bottom: 40px;
  font-family: var(--f-grunge);
  font-weight: 400;
  font-size: clamp(2.4rem, 10vw, 4.5rem);
  text-transform: uppercase;
  text-align: center;
  color: var(--c-ink);
}
.section__title::after {
  content: "";
  display: block;
  width: 72px; height: 6px;
  margin: 14px auto 0;
  background: var(--c-yellow);
  transform: rotate(-2deg);
  clip-path: polygon(0 20%, 100% 0, 97% 100%, 3% 80%); /* striscia "a pennello" */
}
.section__title--small { font-size: clamp(2rem, 8vw, 3rem); text-align: left; margin-bottom: 20px; }
.section__title--small::after { margin-left: 0; }

.container { position: relative; z-index: 1; }

/* =========================================================
   2. BAND
   ========================================================= */
.bio {
  max-width: 68ch;
  white-space: pre-line; /* gli a capo scritti nel foglio Google restano */
  margin: 0 auto 56px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--c-ink);
}
.members {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 300px;
  margin: 0 auto;
}
.member {
  background: var(--c-bg-2);
  padding: 14px 14px 22px;
  border: 1px solid var(--c-line);
  text-align: center;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}
/* Leggera rotazione alternata: effetto "polaroid attaccate al muro" */
.member:nth-child(odd) { transform: rotate(-1.2deg); }
.member:nth-child(even) { transform: rotate(1.2deg); }
.member:hover { transform: rotate(0) translateY(-6px); }
.member__photo {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 16px;
  background: #222;
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.member:hover .member__photo img { filter: grayscale(0.2) contrast(1.05); transform: scale(1.04); }
.member__name {
  font-family: var(--f-grunge);
  font-weight: 400;
  font-size: 2rem;
  text-transform: uppercase;
}
.member__role {
  margin: 6px 0 0;
  font-family: var(--f-type);
  color: var(--c-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

/* =========================================================
   3. TOUR
   ========================================================= */
.tabs {
  display: flex;
  max-width: 480px;
  margin: 0 auto 28px;
  border: 2px solid var(--c-yellow);
  border-radius: var(--radius);
  overflow: hidden;
}
.tabs__btn {
  flex: 1;
  min-height: 48px;
  background: transparent;
  color: var(--c-ink);
  border: 0;
  font-family: var(--f-type);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.tabs__btn.is-active { background: var(--c-yellow); color: var(--c-bg); }

.tour { display: grid; gap: 32px; }
.tour__heading { display: none; } /* visibile solo su desktop, dove non ci sono le schede */

.gigs { border-top: 1px solid var(--c-line); }
.gig {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.2s ease;
}
.gig:hover { background: rgba(242, 196, 24, 0.06); }
.gig__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  background: var(--c-ink);
  color: var(--c-bg);
  line-height: 1;
  transform: rotate(-3deg);
}
.gig__day { font-family: var(--f-grunge); font-size: 1.8rem; }
.gig__month { font-family: var(--f-type); font-size: 0.8rem; text-transform: uppercase; margin-top: 2px; }
.gig__info { display: flex; flex-direction: column; min-width: 0; }
.gig__venue { font-weight: 800; font-size: 1.05rem; }
.gig__city { color: var(--c-muted); font-size: 0.95rem; }
.gig__link {
  padding: 8px 14px;
  border: 1px solid var(--c-yellow);
  border-radius: var(--radius);
  color: var(--c-yellow);
  font-family: var(--f-type);
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
}
.gig__link:hover { background: var(--c-yellow); color: var(--c-bg); }
.gigs--past .gig { grid-template-columns: 64px 1fr; opacity: 0.7; }
.gigs--past .gig__date { background: var(--c-muted); }

/* =========================================================
   4. VIDEO
   ========================================================= */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.promo {
  max-width: 960px;
  margin: 0 auto 48px;
}
.promo .embed {
  border: 3px solid var(--c-ink);
  box-shadow: 10px 10px 0 var(--c-red);
}
.promo__caption {
  margin: 20px 0 0;
  font-family: var(--f-type);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-yellow);
  text-align: center;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.video-card { margin: 0; }
.video-card .embed { border: 1px solid var(--c-line); }
.video-card figcaption {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-muted);
}

/* =========================================================
   5. FOOTER
   ========================================================= */
.footer {
  padding: 72px 0 0;
  background: var(--c-bg);
  border-top: 4px solid var(--c-yellow);
}
.footer__inner { display: grid; gap: 40px; }
.footer__contact p { margin: 0 0 16px; color: var(--c-muted); max-width: 46ch; }
.footer__email {
  display: inline-block;
  font-family: var(--f-type);
  font-size: clamp(1.15rem, 5vw, 1.6rem);
  color: var(--c-yellow);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  word-break: break-all;
}
.footer__email:hover { color: var(--c-ink); }
.footer__label {
  margin: 0 0 14px;
  font-family: var(--f-type);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}
.social { display: flex; gap: 12px; }
.social a {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social svg { width: 22px; height: 22px; fill: var(--c-ink); transition: fill 0.2s ease; }
.social a:hover { background: var(--c-yellow); border-color: var(--c-yellow); transform: rotate(-8deg); }
.social a:hover svg { fill: var(--c-bg); }
.footer__bottom {
  margin-top: 56px;
  padding: 20px 16px;
  border-top: 1px solid var(--c-line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.footer__bottom p { margin: 0; }

/* =========================================================
   RESPONSIVE: tablet (≥ 640px)
   ========================================================= */
@media (min-width: 640px) {
  .members { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 24px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESPONSIVE: desktop (≥ 900px)
   ========================================================= */
@media (min-width: 900px) {
  :root { --nav-h: 76px; }
  .section { padding: 120px 0; }

  /* Menu orizzontale, niente hamburger */
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    transform: none;
    visibility: visible;
    margin-left: auto;
  }
  .nav__menu a { padding: 6px 0; border: 0; font-size: 1rem; position: relative; }
  .nav__menu a::after {
    content: "";
    position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--c-yellow);
    transition: right 0.25s ease;
  }
  .nav__menu a:hover::after { right: 0; }

  .members { gap: 40px; }


  /* Tour: niente schede, due colonne affiancate */
  .tabs { display: none; }
  .tour { grid-template-columns: 1fr 1fr; gap: 56px; }
  .tour__panel[hidden] { display: block; }
  .tour__heading {
    display: block;
    margin-bottom: 18px;
    font-family: var(--f-type);
    font-weight: 400;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-yellow);
  }

  .footer__inner { grid-template-columns: 2fr 1fr; align-items: end; }
}

/* ---------- Chi preferisce meno movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Contrasto: i contenuti stanno su pannelli scuri sopra le foto ---------- */
.section__title { text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9); }
.bio,
.tour__panel,
.promo,
.video-card {
  background: rgba(13, 12, 11, 0.88);
  border: 1px solid var(--c-line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.bio { padding: 24px 20px; }
.tour__panel { padding: 16px; }
.promo { padding: 12px 12px 18px; }
.video-card { padding: 8px 8px 12px; }
.tabs { background: rgba(13, 12, 11, 0.9); }
.member { background: #12100f; }

/* =========================================================
   LAYOUT "A PANNELLI": i contenuti stanno in riquadri compatti,
   alternati a sinistra e a destra, con spazio libero intorno
   in cui si vedono sempre le foto dello slideshow.
   ========================================================= */
.parallax::before { display: none; }          /* niente velatura sulle foto */
.section { padding: 22vh 0; }                 /* spazio "finestra" sulle foto tra un pannello e l'altro */
.section .container {
  max-width: 640px;
  padding: 28px 20px 32px;
  background: rgba(13, 12, 11, 0.9);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-yellow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  width: calc(100% - 32px);
}
/* dentro al pannello non servono altri riquadri */
.bio, .tour__panel, .promo, .video-card { background: none; border: 0; box-shadow: none; padding: 0; }
.section__title { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: 24px; }
.bio { margin-bottom: 32px; font-size: 1.02rem; }
.members { gap: 16px; }
.member { padding: 8px 8px 14px; }
.member__name { font-size: 1.5rem; }
.member__role { font-size: 0.8rem; }
.promo { margin-bottom: 24px; }
.promo .embed { box-shadow: 6px 6px 0 var(--c-red); }
.video-grid { gap: 16px; }
.footer { background: rgba(13, 12, 11, 0.94); }

@media (min-width: 900px) {
  .section { padding: 20vh 0; }
  .section .container { margin: 0; padding: 36px 36px 40px; }
  #band .container, #video .container { margin-left: 6vw; }
  #tour .container { margin-left: auto; margin-right: 6vw; }
  /* nel pannello il tour torna a schede, una lista alla volta */
  .tabs { display: flex; }
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour__panel[hidden] { display: none; }
  .tour__heading { display: none; }
  .members { gap: 16px; }
}

/* ---------- Freccia "continua a scorrere" ---------- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px 6px;
  background: rgba(13, 12, 11, 0.85);
  border: 2px solid var(--c-yellow);
  border-radius: 999px;
  color: var(--c-yellow);
  font-family: var(--f-type);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scroll-hint.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.scroll-hint__arrow { font-size: 1.3rem; line-height: 1; animation: hintbob 1.4s ease-in-out infinite; }
@keyframes hintbob { 50% { transform: translateY(5px); } }

/* =========================================================
   SCORRIMENTO GUIDATO (attivo con class="guidato" su <html>)
   - ogni sezione è una "fermata" alta quanto lo schermo;
   - un box FISSO in basso mostra il contenuto della sezione in vista;
   - le foto stanno centrate nello spazio sopra al box;
   - il logo resta sempre in primo piano, con sotto il titolo della sezione.
   Per tornare al layout a pannelli: togli class="guidato" in index.html.
   ========================================================= */
.dots, .stage, .photo-title { display: none; }
.guidato {
  --box-h: 44svh;                /* ✏️ altezza del box in basso (telefono) */
  --box-gap: 12px;               /* distanza del box dal fondo */
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}
.guidato section, .guidato footer { scroll-margin-top: 0; }

/* le sezioni diventano "fermate" vuote e trasparenti */
.guidato .hero,
.guidato .section,
.guidato .footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;      /* una fermata alla volta, anche scorrendo veloce */
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: 0;
  background: none;
}
.guidato .hero__content, .guidato .hero__scroll { display: none; }
.guidato .nav__logo { opacity: 0; }   /* resta cliccabile: sopra ci si posa il logo animato */

/* foto centrate tra la barra in alto e il box */
.guidato .bgstack__img {
  inset: calc(var(--nav-h) + 1vh) 3vw calc(var(--box-h) + var(--box-gap) + 1vh);
  background-position: center;
  transition: opacity var(--fade, 0.22s) ease-in-out, inset 0.6s ease;
}
/* foto di apertura: a colori, poi sfuma lentamente in bianco e nero (vedi script.js) */
.guidato .bgstack__img.is-intro,
.bgstack__img.is-intro {
  transition: opacity var(--fade, 0.22s) ease-in-out, inset 0.6s ease, filter 1.8s ease;
  animation: introzoom 6s ease-out forwards;
}
.bgstack__img.is-color { filter: none; }
/* flashback: le foto nate a colori entrano a colori e sfumano lentamente in bianco e nero (durata in script.js) */
.bgstack__img.is-flashback { animation: flashback var(--fb, 4s) linear forwards; }
@keyframes flashback {
  0%, 25% { filter: saturate(1.3) contrast(1.1) brightness(1.05); }
  80%      { filter: saturate(0) contrast(1.15) brightness(0.95); }
  100%     { filter: grayscale(1) contrast(1.15) brightness(0.95); }
}
@keyframes introzoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.guidato.at-hero .bgstack__img { inset: calc(var(--nav-h) + 1vh) 3vw 3vh; }

/* il box fisso: il contenuto di ogni sezione compare quando la sezione è in vista */
.guidato .section .container,
.guidato .footer__inner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: var(--box-gap);
  height: var(--box-h);
  width: auto;
  max-width: none;
  margin: 0 auto;
  overflow-y: auto;
  padding: 18px 18px 22px;
  background: rgba(13, 12, 11, 0.92);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-yellow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  z-index: 40;
  /* scorrimento simulato: i box successivi aspettano sotto lo schermo... */
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(var(--box-h) + 40px));
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.6,0,.2,1), visibility 0s 0.7s;
}
/* ...quelli già visti sono saliti via verso l'alto */
.guidato .is-past .container,
.guidato .footer.is-past .footer__inner {
  transform: translateY(-60vh);
}
.guidato .is-current .container,
.guidato .footer.is-current .footer__inner {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease 0.1s, transform 0.7s cubic-bezier(.6,0,.2,1), visibility 0s;
}
/* il titolo non sta nel box: compare grande sulle foto (vedi .photo-title) */
.guidato .section .section__title,
.guidato .footer .section__title { display: none; }
.guidato .section .section__title::after,
.guidato .footer .section__title::after { display: none; }
.guidato .footer__bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 41;
  padding: 0 12px;
  background: none;
  border: 0;
  font-size: 0.65rem;
  line-height: var(--box-gap);
  opacity: 0;
  transition: opacity 0.35s;
}
.guidato .footer.is-current .footer__bottom { opacity: 0.7; }

/* contenuti compatti dentro al box */
.guidato .bio { font-size: 0.95rem; margin-bottom: 16px; }
.guidato .members { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: none; }
.guidato .member { padding: 6px 6px 10px; }
.guidato .member__name { font-size: 1.1rem; }
.guidato .member__role { font-size: 0.68rem; }
.guidato .promo { margin: 0 0 14px; width: 100%; }
.guidato .tabs { margin: 0 0 16px; width: 100%; }
.guidato .video-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.guidato .video-card { scroll-snap-align: start; }
.guidato .footer__inner { display: grid; gap: 20px; align-content: start; }

/* logo sempre in primo piano + titolo della sezione */
.guidato .stage {
  position: fixed;
  /* fuori dalla prima schermata il logo sta sulla barra in alto,
     esattamente al posto del logo piccolo (posizione calcolata da script.js) */
  left: var(--logo-x, 16px);
  top: var(--logo-y, 12px);
  z-index: 51;                   /* sopra alla barra */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--logo-w, 80px);
  transform: none;
  pointer-events: none;
  transition: width 0.7s cubic-bezier(.6,0,.2,1), top 0.7s cubic-bezier(.6,0,.2,1), left 0.7s cubic-bezier(.6,0,.2,1), transform 0.7s cubic-bezier(.6,0,.2,1);
}
.stage__mark { position: relative; display: block; width: 100%; }
.stage__logo {
  display: block;
  width: 100%;
  height: auto;
}
/* le tre versioni (bianco, giallo, nero) stanno esattamente una sopra l'altra e se ne vede una alla volta
   (✏️ trasparenza delle fasi trasparenti in --logo-alpha) */
.stage { --logo-alpha: 0.45; }
.stage__logo--yellow,
.stage__logo--black { position: absolute; inset: 0; opacity: 0; }
/* All'apertura il logo è bianco pieno. Quando la foto di apertura è diventata in bianco e nero
   (script.js aggiunge .is-ready) parte il ciclo di 12 secondi:
   nero → giallo PIENO 2s → giallo trasparente → bianco trasparente → bianco PIENO 2s → di nuovo nero */
.stage__logo--white { opacity: 1; }
.stage.is-ready .stage__logo--white  { animation: logo-white 12s ease-in-out infinite; }
.stage.is-ready .stage__logo--yellow { animation: logo-yellow 12s ease-in-out infinite; }
.stage.is-ready .stage__logo--black  { animation: logo-black 12s ease-in-out infinite; }
@keyframes logo-black  { 0% { opacity: 0; } 5%, 20% { opacity: 0.85; } 25%, 100% { opacity: 0; } }
@keyframes logo-yellow { 0%, 20% { opacity: 0; } 25%, 42% { opacity: 1; } 47%, 60% { opacity: var(--logo-alpha); } 65%, 100% { opacity: 0; } }
@keyframes logo-white  { 0% { opacity: 1; } 5%, 60% { opacity: 0; } 65%, 80% { opacity: var(--logo-alpha); } 85%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stage.is-ready .stage__logo { animation: none; } }
.stage__title {
  margin: 0;
  font-family: var(--f-grunge);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  text-transform: uppercase;
  color: var(--c-yellow);
  text-shadow: 2px 2px 0 #000, 0 0 20px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}
.guidato .stage__title { display: none; }   /* niente titolo sotto al logo */
/* nella prima schermata il logo è grande, al centro e pieno */
.guidato.at-hero .stage {
  left: 50%;
  top: 50%;
  width: min(86vw, 720px);
  transform: translate(-50%, -50%);
}

/* titolo della sezione sulle foto: font moderno, semitrasparente per lasciar vedere la foto */
.guidato .photo-title {
  display: block;
  position: fixed;
  left: calc(3vw + 18px);
  bottom: calc(var(--box-h) + var(--box-gap) + 1vh + 10px);
  z-index: 39;
  margin: 0;
  /* stile Nirvana: serif ad alto contrasto molto stretto (il logo originale usa Onyx) */
  font-family: "Bodoni Moda", "Didot", serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 17vw, 10rem);
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-yellow);           /* giallo pieno, ben leggibile */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.7), 0 4px 28px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  transform-origin: left bottom;
  transform: scaleX(0.58);          /* lo stringe come il carattere dei Nirvana */
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.guidato .photo-title.is-changing { opacity: 0; transform: scaleX(0.58) translateY(20px); }
.guidato.at-hero .photo-title { opacity: 0; }
@media (min-width: 900px) {
  .guidato .photo-title { left: calc(8vw + 28px); }
}

/* freccia "scorri": appena sopra al box */
/* frecce "continua a scorrere": niente pulsante, solo due frecce, mai sopra le foto.
   Nelle sezioni stanno sul fondo del box, nella prima schermata nella fascia scura sotto la foto */
.scroll-hint__chevrons { display: none; }
.guidato .scroll-hint {
  top: auto;
  bottom: calc(var(--box-gap) + 4px);
  z-index: 42;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  width: 44px;
  height: 30px;
}
.guidato .scroll-hint__label,
.guidato .scroll-hint__arrow { display: none; }
.guidato .scroll-hint__chevrons { display: block; position: relative; width: 100%; height: 100%; animation: hintbob 1.4s ease-in-out infinite; }
.guidato .scroll-hint__chevrons i {
  position: absolute;
  left: 50%;
  width: 14px; height: 14px;
  border-right: 3px solid var(--c-yellow);
  border-bottom: 3px solid var(--c-yellow);
  transform: translateX(-50%) rotate(45deg);
}
.guidato .scroll-hint__chevrons i:first-child { top: 0; opacity: 0.5; }
.guidato .scroll-hint__chevrons i:last-child  { top: 9px; }
.guidato.at-hero .scroll-hint { bottom: 4px; }
/* nella prima schermata la foto lascia una fascia in basso per le frecce */
.guidato.at-hero .bgstack__img { bottom: 40px; }

/* Puntini a destra */
.guidato .dots {
  position: fixed;
  right: 10px;
  top: calc(var(--nav-h) + (100svh - var(--nav-h) - var(--box-h)) / 2);
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dots__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--c-yellow);
  background: rgba(13, 12, 11, 0.6);
  transition: transform 0.2s, background 0.2s;
}
.dots__dot.is-active { background: var(--c-yellow); transform: scale(1.25); }

@media (min-width: 900px) {
  .guidato { --box-h: 36vh; --box-gap: 18px; }
  .guidato .bgstack__img { left: 8vw; right: 8vw; }
  .guidato.at-hero .bgstack__img { left: 5vw; right: 5vw; }
  .guidato .section .container,
  .guidato .footer__inner {
    left: 50%;
    right: auto;
    width: min(1000px, 84vw);
    margin: 0;
    padding: 24px 30px 26px;
    translate: -50% 0;
  }
  /* su computer il contenuto del box si dispone su due colonne */
  .guidato #band .container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
  .guidato #tour .container { display: block; }
  .guidato #band .container, .guidato #video .container { align-content: start; grid-auto-rows: max-content; }
  .guidato #tour .gigs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .guidato #video .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
  .guidato #video .video-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; overflow: visible; }
  .guidato .footer__inner { grid-template-columns: 1fr 1fr; }
  .guidato .dots { right: 22px; }
}

/* ---------- Box verticali (data-box="destra" / "sinistra" in index.html), solo su computer ----------
   Il box occupa tutta l'altezza su un lato e la foto si allarga nello spazio rimasto. */
@media (min-width: 900px) {
  .guidato { --side-w: 420px; --side-edge: 64px; }   /* ✏️ larghezza del box verticale; spazio dal bordo (per i puntini) */
  .guidato[data-box="destra"] .bgstack__img   { left: 3vw; right: calc(var(--side-w) + var(--side-edge) + 16px); bottom: 3vh; }
  .guidato[data-box="sinistra"] .bgstack__img { left: calc(var(--side-w) + 3vw + 16px); right: var(--side-edge); bottom: 3vh; }
  .guidato [data-box="destra"] .container,
  .guidato [data-box="sinistra"] .footer__inner,
  .guidato [data-box="sinistra"] .container,
  .guidato [data-box="destra"] .footer__inner {
    top: calc(var(--nav-h) + 1vh + 34px);   /* spazio sopra per l'etichetta del titolo */
    bottom: 3vh;
    height: auto;
    width: var(--side-w);
    translate: none;
    grid-template-columns: 1fr;
  }
  .guidato [data-box="destra"] .container,
  .guidato [data-box="destra"] .footer__inner { left: auto; right: var(--side-edge); }
  .guidato [data-box="sinistra"] .container,
  .guidato [data-box="sinistra"] .footer__inner { left: 3vw; right: auto; }
  /* contenuti su una colonna */
  .guidato [data-box] .gigs { grid-template-columns: 1fr !important; }
  .guidato [data-box] .footer__inner { display: block; }
  /* entrata/uscita del box verticale: scorre come gli altri */
  .guidato [data-box="destra"] .container, .guidato [data-box="sinistra"] .footer__inner,
  .guidato [data-box="sinistra"] .container, .guidato [data-box="destra"] .footer__inner { transform: translateY(100vh); }
  .guidato .is-past[data-box] .container, .guidato .is-past[data-box] .footer__inner { transform: translateY(-100vh); }
  .guidato .is-current[data-box] .container, .guidato .is-current[data-box] .footer__inner { transform: none; }
  /* titolo sulla foto e frecce: seguono lo spazio libero */
  .guidato[data-box="destra"] .photo-title,
  .guidato[data-box="sinistra"] .photo-title { bottom: calc(3vh + 18px); font-size: clamp(3rem, 8vw, 8rem); }
  .guidato[data-box="sinistra"] .photo-title { left: calc(var(--side-w) + 3vw + 44px); }
  .guidato[data-box="destra"] .scroll-hint   { left: calc(100% - var(--side-edge) - var(--side-w) / 2); bottom: calc(3vh + 6px); }
  .guidato[data-box="sinistra"] .scroll-hint { left: calc(3vw + var(--side-w) / 2); bottom: calc(3vh + 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .guidato { scroll-snap-type: y proximity; }
}


/* =========================================================
   STILE MODERNO (box, membri, live, footer) - solo scorrimento guidato
   ========================================================= */
/* box: vetro scuro sfocato, linea gialla sottile */
.guidato .section .container {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--c-yellow);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.guidato .bio {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  color: var(--c-ink);
  margin: 0;
}

/* ---- Membri: foto verticali, nome sopra la foto ---- */
.guidato .members { gap: 10px; margin-top: 14px; }
.guidato .member,
.guidato .member:nth-child(odd),
.guidato .member:nth-child(even) {
  position: relative;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
  text-align: left;
  overflow: hidden;
}
.guidato .member__photo { aspect-ratio: 3 / 4; margin: 0; }
.guidato .member::after {             /* sfumatura scura in basso per leggere il nome */
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  pointer-events: none;
}
.guidato .member__name,
.guidato .member__role { position: absolute; left: 10px; right: 8px; z-index: 1; margin: 0; }
.guidato .member__name { bottom: 22px; font-family: var(--f-grunge); font-size: clamp(1.1rem, 4.5vw, 1.7rem); letter-spacing: 0.02em; line-height: 1; }
.guidato .member__role { bottom: 8px; font-family: var(--f-type); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Live: righe compatte + locandine ---- */
.guidato .tabs { border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0; max-width: none; margin-bottom: 12px; }
.guidato .tabs__btn {
  min-height: 40px;
  font-family: var(--f-type);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  box-shadow: inset 0 -2px 0 transparent;
}
.guidato .tabs__btn.is-active { background: none; color: var(--c-yellow); box-shadow: inset 0 -2px 0 var(--c-yellow); }
.guidato .posters {
  position: relative;
  width: 100%;
  height: 22svh;                 /* ✏️ altezza delle locandine sul telefono (un tocco la apre a tutto schermo) */
  margin: 0 auto 12px;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
}
@media (min-width: 900px) {
  /* su computer la locandina prende lo spazio che le date lasciano libero:
     poche date = locandina grande, tante date = locandina piccola (min 140px) e le date scorrono */
  .guidato #tour[data-box] .container { display: flex; flex-direction: column; }
  .guidato #tour .tabs { flex: none; }
  .guidato #tour .tour { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .guidato #tour .tour__panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .guidato #tour .tour__panel[hidden] { display: none; }
  .guidato #tour .posters { flex: 1 1 0; height: auto; min-height: 140px; max-height: 56svh; }   /* ✏️ altezza minima e massima */
  .guidato #tour .gigs { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
  .guidato #tour .posters { margin: 12px 0 0; }
}
/* icona "ingrandisci" nell'angolo: un clic apre la locandina a tutto schermo */
.guidato .posters::after {
  content: "";
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c418' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  pointer-events: none;
}
.guidato .posters:has(.is-shown.poster--logo)::after { display: none; }
.guidato .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;           /* la locandina si vede intera, verticale o orizzontale */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.guidato .poster.is-shown { opacity: 1; }
.posters { display: none; }
.guidato .posters { display: block; }
.guidato .gigs { border-top: 0; }
.guidato .gig {
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.guidato .gig.is-highlight { background: rgba(242, 196, 24, 0.12); border-left-color: var(--c-yellow); }
.guidato .gig__date { flex-direction: column; padding: 0; background: none; color: var(--c-ink); transform: none; }
.guidato .gig.is-highlight .gig__date { color: var(--c-yellow); }
.guidato .gig__day { font-family: var(--f-grunge); font-size: 1.45rem; line-height: 1; }
.guidato .gig__month { font-family: var(--f-type); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.14em; margin-top: 2px; }
.guidato .gig__venue { font-family: var(--f-body); font-weight: 600; font-size: 0.92rem; }
.guidato .gig__city { font-size: 0.78rem; }
.guidato .gig__link {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--f-type);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}
.guidato .gigs--past .gig { grid-template-columns: 46px 1fr; cursor: default; }

/* ---- Contatti & booking: solo footer in fondo alla pagina ---- */
.guidato .footer.footer {
  position: relative;
  z-index: 46;                         /* copre il box dei video quando sale */
  display: block;
  height: auto;
  padding: 44px 0 0;
  background: #0a0a0a;
  border-top: 2px solid var(--c-yellow);
  scroll-snap-align: end;
}
.guidato .footer .footer__inner {
  position: static;
  height: auto;
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  translate: none;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: grid;
  gap: 28px;
}
.guidato .footer .footer__inner .section__title {
  display: block;
  margin: 0 0 10px;
  font-family: var(--f-grunge);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  text-align: left;
  color: var(--c-yellow);
}
.guidato .footer .footer__inner .section__title::after { display: none; }
.guidato .footer__label { font-family: var(--f-type); font-weight: 700; letter-spacing: 0.16em; font-size: 0.72rem; }
.guidato .footer__email { font-family: var(--f-type); font-weight: 500; }
.guidato .footer .footer__bottom {
  position: static;
  opacity: 0.6;
  line-height: normal;
  padding: 24px 16px 18px;
  font-size: 0.72rem;
  text-align: center;
}
.guidato.at-footer .photo-title { opacity: 0; }
@media (min-width: 900px) {
  .guidato .footer .footer__inner { grid-template-columns: 1.4fr 1fr; align-items: end; }
}

/* ---- Chi siamo su computer: membri in verticale a destra, testo in una fascia in basso ---- */
@media (min-width: 900px) {
  .guidato { --band-w: 380px; --bio-h: 24vh; }   /* ✏️ larghezza colonna membri, altezza fascia del testo */
  .guidato[data-box="lato-basso"] .bgstack__img {
    left: 3vw;
    right: calc(var(--band-w) + var(--side-edge) + 16px);
    bottom: calc(3vh + var(--bio-h) + 14px);
  }
  .guidato [data-box="lato-basso"] .container {
    top: calc(var(--nav-h) + 1vh);
    bottom: 3vh;
    left: 3vw;
    right: var(--side-edge);
    width: auto;
    height: auto;
    translate: none;
    padding: 0;
    overflow: visible;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }
  .guidato #band[data-box="lato-basso"] .container { margin: 0; } /* fascia del testo allineata al bordo della foto */
  .guidato #tour[data-box] .container { margin: 0; } /* il box dei live non deve finire sopra la foto */
  .guidato [data-box="lato-basso"] .members,
  .guidato [data-box="lato-basso"] .bio {
    position: absolute;
    pointer-events: auto;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--c-yellow);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
  .guidato [data-box="lato-basso"] .members {
    top: 0; right: 0; bottom: calc(var(--bio-h) + 14px);
    width: var(--band-w);
    margin: 0;
    padding: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    align-content: stretch;
    gap: 12px;
  }
  /* foto a tutta altezza: tre "strisce" verticali */
  .guidato [data-box="lato-basso"] .member__photo { aspect-ratio: auto; height: 100%; }
  .guidato [data-box="lato-basso"] .member__name { font-size: 1.9rem; bottom: 28px; }
  .guidato [data-box="lato-basso"] .member__role { font-size: 0.68rem; bottom: 12px; }
  .guidato [data-box="lato-basso"] .bio {
    left: 0; bottom: 0; right: 0; /* la fascia del testo occupa tutta la larghezza */
    max-width: none;
    height: var(--bio-h);
    padding: 18px 80px 18px 26px; /* a destra lo spazio per le frecce */
    overflow-y: auto;
    display: flex;
    align-items: safe center; /* se il testo è lungo si scorre dall'inizio */
    font-size: 0.92rem;
  }
  .guidato[data-box="lato-basso"] .photo-title { bottom: calc(3vh + var(--bio-h) + 30px); }
  .guidato[data-box="lato-basso"] .scroll-hint { left: calc(100% - var(--side-edge) - 40px); bottom: calc(3vh + var(--bio-h) / 2 - 16px); }
}

/* ---- Foto dei membri: al passaggio del mouse si ingrandiscono e scorrono lentamente ---- */
.guidato .member__photo img { transition: filter 0.4s ease; }
.guidato .member:hover .member__photo img {
  filter: grayscale(0.1) contrast(1.05);
  animation: member-pan 5s ease-in-out infinite alternate;
}
@keyframes member-pan {
  from { transform: scale(1.25) translate(-5%, -4%); }
  to   { transform: scale(1.25) translate(5%, 4%); }
}

/* ---- Membri "a fisarmonica": colonne strette, la foto si allarga al passaggio del mouse (computer) o al tocco (telefono) ---- */
.guidato .members { display: flex; }
.guidato .member { flex: 1 1 0; min-width: 0; transition: flex-grow 0.5s ease; cursor: pointer; }
.guidato .member__photo { aspect-ratio: auto; height: min(40vw, 240px); }   /* altezza fissa: allargandosi la foto non cambia altezza */
.guidato .member__name, .guidato .member__role { white-space: nowrap; transition: opacity 0.3s ease; }
@media (hover: hover) {
  .guidato .member:hover { flex-grow: 3; }   /* ✏️ quanto si allarga la foto */
  .guidato .members:has(.member:hover) .member:not(:hover) :is(.member__name, .member__role) { opacity: 0; }
}
@media (hover: none) {
  .guidato .member.is-open { flex-grow: 3; }
  .guidato .members:has(.is-open) .member:not(.is-open) :is(.member__name, .member__role) { opacity: 0; }
  .guidato .member.is-open .member__photo img {
    filter: grayscale(0.1) contrast(1.05);
    animation: member-pan 5s ease-in-out infinite alternate;
  }
}
@media (min-width: 900px) {
  .guidato [data-box="lato-basso"] .members { display: flex; }
  .guidato [data-box="lato-basso"] .member__name { font-size: 1.15rem; }
  .guidato [data-box="lato-basso"] .member:hover .member__name { font-size: 1.9rem; }
}

/* ---- Video: solo l'anteprima del promo (apre YouTube) + link al canale ---- */
.promo-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: grayscale(0.3); }
.promo-thumb:hover img { transform: scale(1.05); filter: none; }
.promo-thumb__play {             /* pulsante play stile YouTube */
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 48px;
  translate: -50% -50%;
  border-radius: 12px;
  background: #ff0000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}
.promo-thumb__play::after {
  content: ""; position: absolute; left: 27px; top: 14px;
  border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.promo-thumb:hover .promo-thumb__play { transform: scale(1.1); }
.promo-thumb__label {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--f-type); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.yt-channel {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 6px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--c-ink);
  font-family: var(--f-type); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.yt-channel:hover { border-color: #ff0000; background: rgba(255, 0, 0, 0.12); }
.yt-channel__logo { width: 34px; height: auto; flex: none; }
.guidato #video .promo__caption { margin: 12px 0 10px; text-align: left; font-family: var(--f-type); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; }
@media (min-width: 900px) {
  .guidato #video .container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 28px;
    align-content: center;
  }
  .guidato #video .promo-thumb { grid-row: 1 / 4; height: calc(var(--box-h) - 56px); aspect-ratio: 16 / 9; }
  .guidato #video .promo__caption { margin-top: 6px; }
  .guidato #video .yt-channel { justify-self: start; align-self: start; }
}

/* ---- Logo piccolo sulla barra: alterna solo bianco e giallo ---- */
.guidato:not(.at-hero) .stage.is-ready .stage__logo--black { animation: none; opacity: 0; }
.guidato:not(.at-hero) .stage.is-ready .stage__logo--white  { animation: nav-white 6s ease-in-out infinite; }
.guidato:not(.at-hero) .stage.is-ready .stage__logo--yellow { animation: nav-yellow 6s ease-in-out infinite; }
@keyframes nav-white  { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes nav-yellow { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* locandina mancante (foglio Google): al suo posto il logo */
.guidato .poster--logo { object-fit: contain; padding: 18%; background: #111; }
.guidato .poster--wide { object-fit: contain; background: #111; } /* locandine orizzontali: intere, senza tagli */
.guidato .gig--empty { display: block; padding: 14px 8px; color: var(--c-muted); font-family: var(--f-type); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; cursor: default; }

/* anno sotto giorno e mese */
.gig__year { display: block; font-family: var(--f-type); font-size: 0.6rem; letter-spacing: 0.08em; opacity: 0.6; margin-top: 1px; }
.guidato .gig { grid-template-columns: 50px 1fr auto; }
.guidato .gigs--past .gig { grid-template-columns: 50px 1fr; }

/* ---- Locandina a tutto schermo (si apre con un clic, si chiude con un clic o con Esc) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 94vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}
.lightbox.is-open img { transform: none; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px;
  font: 400 2.4rem/1 var(--f-body); color: var(--c-yellow);
  background: none; border: 0; cursor: pointer;
}

/* ---- Titolo della sezione: etichetta gialla "nastro adesivo" in alto a sinistra sulla foto ----
   Testo nero su giallo pieno: si legge su qualsiasi foto e non tocca mai i box (posizione e misura in script.js, fitTitle) */
.guidato .photo-title {
  top: auto; bottom: auto;
  padding: 0.12em 0.45em 0.08em;
  font-family: var(--f-grunge, "Anton", sans-serif);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #111;
  background: var(--c-yellow);
  text-shadow: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transform: none;
  rotate: -2deg;
  transform-origin: left top;
  clip-path: polygon(1% 4%, 99% 0, 100% 92%, 0 100%);   /* bordi un po' irregolari, come un pezzo di nastro */
}
.guidato .photo-title.is-changing { transform: translateY(-14px); }

/* ---- Live: prima le date, sotto la locandina (che resta ferma: se le date sono tante scorrono solo loro) ---- */
.guidato #tour .tour__panel { display: flex; flex-direction: column; }
.guidato #tour .tour__panel[hidden] { display: none; }
.guidato #tour .gigs { order: 1; }
.guidato #tour .posters { order: 2; flex-shrink: 0; }
@media (max-width: 899px) {
  .guidato[data-box="destra"] { --box-h: 66svh; }                 /* ✏️ sul telefono il box dei live è più alto (la foto sopra si accorcia) */
  .guidato #tour .gigs { max-height: 25svh; overflow-y: auto; }   /* ✏️ sul telefono: altezza massima della lista date */
  .guidato #tour .posters { margin: 12px 0 0; height: 24svh; }      /* ✏️ sul telefono: altezza della locandina */
}

/* ---- Live passati: niente spazio per la locandina, miniatura nella riga (un tocco la apre a tutto schermo) ---- */
.guidato .gigs--past .gig.gig--thumb { grid-template-columns: 50px 1fr auto; }
.gig__thumb {
  width: 38px; height: 50px;            /* ✏️ grandezza della miniatura */
  padding: 0; border: 1px solid rgba(242, 196, 24, 0.45);
  background: #111; cursor: zoom-in;
  overflow: hidden; flex: none;
}
.gig__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 899px) {
  .guidato.live-passati[data-box="destra"] { --box-h: 50svh; }      /* ✏️ sul telefono, con i live passati il box è più basso */
  .guidato.live-passati #tour .gigs { max-height: none; }
}

/* ---- Live passati: barra con l'anno che separa le annate (resta in cima mentre la lista scorre) ---- */
.gigs__year {
  grid-column: 1 / -1;
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0 6px;
  background: #141210;
  font-family: var(--f-grunge, "Anton", sans-serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--c-yellow);
  list-style: none;
}
.gigs__year::after { content: ""; flex: 1; height: 2px; background: var(--c-yellow); opacity: 0.6; }

/* ---- Chi siamo sul telefono: prima le foto dei membri (scorrono da sole, si trascinano col dito), poi la biografia ---- */
@media (max-width: 899px) {
  .guidato[data-box="lato-basso"] { --box-h: 60svh; }               /* ✏️ sul telefono il box di "Chi siamo" è più alto */
  .guidato #band .container { display: flex; flex-direction: column; }
  .guidato #band .members {
    order: -1;
    flex: none;
    margin: 0 0 16px;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .guidato #band .members::-webkit-scrollbar { display: none; }
  .guidato #band .member,
  .guidato #band .member.is-open { flex: 0 0 64%; scroll-snap-align: start; }   /* ✏️ larghezza di ogni foto */
  .guidato #band .member__photo { height: 30svh; }                                /* ✏️ altezza delle foto */
  .guidato #band .members .member :is(.member__name, .member__role) { opacity: 1; }
  .guidato #band .member.is-shown .member__photo img {
    filter: grayscale(0.1) contrast(1.05);
    animation: member-pan 5s ease-in-out infinite alternate;
  }
}

/* ---- Video promo a tutto schermo nel sito ---- */
.videobox {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.videobox.is-open { opacity: 1; pointer-events: auto; }
.videobox__frame { width: min(100vw, 177.78vh); aspect-ratio: 16 / 9; }
.videobox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.videobox .lightbox__close { z-index: 1; }
