/* More Music More Love: sito. Colori solo dai token --mmml-*. */

@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }

:root {
  /* Token del brand (fonte: reel/template/tokens.css) */
  --mmml-fondo: #140c0a;
  --mmml-fondo-alone: #2a1510;
  --mmml-ambra: #f2a93b;
  --mmml-arancio: #d9622b;
  --mmml-corallo: #f27059;
  --mmml-magenta: #d63a7a;
  --mmml-oro: #e8c07d;
  --mmml-terracotta: #b5482e;
  --mmml-crema: #f5e6d3;
  --mmml-crema-tenue: #c9b6a3;
  /* magenta schiarito per i campi con testo: contrasto AA con --mmml-fondo */
  --magenta-campo: color-mix(in srgb, var(--mmml-magenta) 82%, var(--mmml-crema));

  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --testo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Cinque misure */
  --s1: clamp(4.25rem, 11vw, 11rem);
  --s2: clamp(2.5rem, 6vw, 6rem);
  --s3: clamp(1.5rem, 2.4vw, 2.25rem);
  --s4: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
  --s5: 0.9375rem;

  --margine: clamp(16px, 2.2vw, 32px);
  --spazio: clamp(80px, 10vw, 160px);
  --raggio: 0px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --battito: 0.48s; /* 125 BPM */
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--mmml-fondo);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--mmml-fondo);
  color: var(--mmml-crema);
  font-family: var(--testo);
  font-size: var(--s4);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
button, .bottone { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid var(--mmml-ambra); outline-offset: 3px; }
.c-ambra :focus-visible, .c-oro :focus-visible, .c-corallo :focus-visible, .c-crema :focus-visible, .c-arancio :focus-visible, .c-magenta :focus-visible { outline-color: var(--mmml-fondo); }
::selection { background: var(--mmml-ambra); color: var(--mmml-fondo); }
.tabulare { font-variant-numeric: tabular-nums; }

.visivo-nascosto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: testo per lettori di schermo */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salta {
  position: absolute; left: var(--margine); top: -100px; z-index: 50;
  background: var(--mmml-ambra); color: var(--mmml-fondo); padding: 12px 16px; font-weight: 600;
}
.salta:focus { top: 12px; }

/* Campi colore (capitoli) */
.c-fondo { background: var(--mmml-fondo); color: var(--mmml-crema); }
.c-alone { background: var(--mmml-fondo-alone); color: var(--mmml-crema); }
.c-ambra { background: var(--mmml-ambra); color: var(--mmml-fondo); }
.c-oro { background: var(--mmml-oro); color: var(--mmml-fondo); }
.c-arancio { background: var(--mmml-arancio); color: var(--mmml-fondo); }
.c-corallo { background: var(--mmml-corallo); color: var(--mmml-fondo); }
.c-magenta { background: var(--magenta-campo); color: var(--mmml-fondo); }
.c-terracotta { background: var(--mmml-terracotta); color: var(--mmml-crema); }
.c-crema { background: var(--mmml-crema); color: var(--mmml-fondo); }

.capitolo { position: relative; padding: var(--spazio) var(--margine); overflow-x: clip; }

/* Titoli */
.titolo-sezione {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--s2); line-height: 0.92; letter-spacing: -0.01em;
  text-wrap: balance;
}
.titolo-medio {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--s3); line-height: 1; letter-spacing: 0;
}
.dichiarazione { font-size: var(--s3); line-height: 1.2; font-weight: 600; max-width: 34ch; text-wrap: pretty; }

/* Bottoni */
.bottone {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--mmml-ambra); color: var(--mmml-fondo);
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em;
  text-decoration: none; border: 0; border-radius: var(--raggio); cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.bottone:active { transform: scale(0.97); }
.bottone-scuro { background: var(--mmml-fondo); color: var(--mmml-crema); }
.bottone-piccolo { min-height: 44px; padding: 0 18px; font-size: 1.0625rem; }
.collegamento {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bottone:hover { background: var(--mmml-crema); color: var(--mmml-fondo); }
  .bottone-scuro:hover { background: var(--mmml-fondo-alone); color: var(--mmml-crema); }
  .c-ambra .bottone-scuro:hover { background: var(--mmml-fondo-alone); }
  .collegamento:hover { color: var(--mmml-ambra); }
  .barra-azione:hover { background: var(--mmml-ambra); }
  .linguetta a:hover { color: var(--mmml-fondo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}

/* ---------------- Testata ---------------- */
.testata { background: var(--mmml-fondo); padding-bottom: clamp(56px, 8vw, 112px); }
.barra { display: flex; align-items: stretch; height: 56px; }
.marchio {
  display: flex; align-items: center; padding: 0 var(--margine);
  background: var(--mmml-crema); color: var(--mmml-fondo);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; text-decoration: none;
}
.linguetta {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  min-width: calc(42% - 90px); padding: 0 32px 0 24px; white-space: nowrap;
  background: var(--mmml-ambra); color: var(--mmml-fondo);
}
.linguetta a { text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; color: var(--mmml-fondo); }
.barra-azione {
  margin-left: auto; display: flex; align-items: center; padding: 0 var(--margine);
  background: var(--mmml-crema); color: var(--mmml-fondo);
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}

.testata { position: relative; padding-bottom: 0; }
.testata .barra { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.palco { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--mmml-fondo); }
.palco-ripiego, .palco-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.palco-ripiego { object-fit: cover; object-position: 70% 50%; opacity: 0.55; }
.palco.tre-d .palco-ripiego { display: none; }
.palco-tuffo { position: absolute; inset: 0; background: var(--mmml-ambra); opacity: 0; pointer-events: none; }
.eroe {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; align-items: end;
  padding: 0 var(--margine) clamp(28px, 5vh, 56px);
}
.eroe-titolo {
  grid-column: 1; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--s1); line-height: 0.86; letter-spacing: -0.015em; color: var(--mmml-crema);
}
.riga { display: block; overflow: hidden; padding-bottom: 0.04em; }
.riga > span { display: block; }
.eroe-sommario { grid-column: 2; max-width: 34ch; padding-bottom: 0.4em; }
.eroe-azioni { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }

/* ---------------- Intro ---------------- */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; min-height: 80svh; }
.intro-corpo { grid-column: 1 / span 8; display: grid; gap: clamp(28px, 3vw, 44px); }
.intro-titolo { max-width: 14ch; }
.intro-chip { grid-column: 9 / span 4; width: 100%; max-width: 420px; justify-self: end; transform: rotate(4deg); }

/* ---------------- Una cifra ---------------- */
.cifra { min-height: 84svh; display: flex; flex-direction: column; justify-content: space-between; gap: 12vh; }
.cifra-titolo { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--s3); line-height: 1; }
.cifra-blocco { display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; }
.cifra-numero {
  font-family: var(--display); font-weight: 800; font-size: clamp(11rem, 30vw, 26rem);
  line-height: 0.78; letter-spacing: -0.03em; color: var(--mmml-ambra); font-variant-numeric: lining-nums;
}
.cifra-didascalia { max-width: 34ch; padding-bottom: 0.6em; }

/* ---------------- Mosaico dei dati ---------------- */
.mosaico-dati {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 96px; gap: 8px;
  grid-template-areas:
    "ti ti ti ti ti ti fo fo fo fo fo fo"
    "ti ti ti ti ti ti fo fo fo fo fo fo"
    "ti ti ti ti ti ti fo fo fo fo fo fo"
    "c1 c1 c1 c2 c2 c2 fo fo fo fo fo fo"
    "c1 c1 c1 c2 c2 c2 fo fo fo fo fo fo"
    "ru ru ru ru ru ru fn fn fn fn fn fn"
    "ru ru ru ru ru ru fn fn fn fn fn fn"
    "ru ru ru ru ru ru fn fn fn fn fn fn"
    "ru ru ru ru ru ru rl rl rl rl rl rl"
    "ru ru ru ru ru ru rl rl rl rl rl rl"
    "fm fm fm fm fm fm ta ta ta ta ta ta"
    "fm fm fm fm fm fm ta ta ta ta ta ta"
    "fm fm fm fm fm fm ta ta ta ta ta ta";
}
.t { padding: 24px; min-width: 0; overflow: hidden; }
.t-titolo { grid-area: ti; padding: 0 24px 0 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.t-titolo p { max-width: 44ch; }
.t-foto { grid-area: fo; padding: 0; }
.t-foto img { width: 100%; height: 100%; object-fit: cover; }
.t-c1 { grid-area: c1; }
.t-c2 { grid-area: c2; }
.t-cifra { display: flex; flex-direction: column; justify-content: space-between; }
.t-numero { font-family: var(--display); font-weight: 800; font-size: var(--s2); line-height: 0.9; font-variant-numeric: tabular-nums; }
.t-rubriche { grid-area: ru; display: flex; flex-direction: column; gap: 20px; }
.t-fn { grid-area: fn; }
.t-rl { grid-area: rl; }
.t-grande { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--s3); line-height: 1.02; max-width: 22ch; }
.t-formati { grid-area: fm; display: flex; flex-direction: column; gap: 18px; }
.t-tappe { grid-area: ta; display: flex; flex-direction: column; gap: 14px; }
.t-etichetta { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--s3); line-height: 1; }

.barre { display: grid; gap: 10px; }
.barre li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; align-items: baseline; }
.barra-nome { font-weight: 600; }
.barra-valore { font-family: var(--display); font-weight: 800; font-size: var(--s4); font-variant-numeric: tabular-nums; }
.barra-traccia { grid-column: 1 / -1; height: 10px; background: color-mix(in srgb, var(--mmml-fondo) 10%, transparent); }
.barra-pieno { display: block; height: 100%; width: 100%; background: var(--mmml-arancio); transform: scaleX(var(--q, 1)); transform-origin: left center; }

.pila { display: flex; height: 40px; gap: 4px; }
.pila-pezzo { flex: var(--q) 1 0; transform-origin: left center; }
.p-1 { background: var(--mmml-ambra); }
.p-2 { background: var(--mmml-corallo); }
.p-3 { background: var(--mmml-oro); }
.legenda { display: grid; gap: 6px; }
.legenda li { display: flex; align-items: center; gap: 10px; }
.legenda strong { font-family: var(--display); font-weight: 800; font-size: var(--s4); font-variant-numeric: tabular-nums; }
.punto { width: 14px; height: 14px; flex: none; }

.tappe { display: grid; gap: 8px; }
.tappe li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: baseline; }
.tappe strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; }

/* ---------------- Drop ---------------- */
.drop { position: relative; background: var(--mmml-fondo); }
.drop-cartello { position: relative; height: 100svh; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: var(--mmml-fondo); padding: 0 var(--margine); }
.drop-onda { position: absolute; inset: 0; background: var(--mmml-corallo); }
.drop-conto { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: none; justify-content: center; gap: 0.5em; font-family: var(--display); font-weight: 800; font-size: var(--s2); color: var(--mmml-crema); font-variant-numeric: tabular-nums; }
.js .drop-conto { display: flex; }
@media (prefers-reduced-motion: reduce) { .js .drop-conto { display: none; } }
.drop-titolo {
  position: relative; text-align: center; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--s1); line-height: 0.9; color: var(--mmml-fondo);
}
.blocco { display: inline-block; }
.blocco.pieno { background: var(--mmml-fondo); color: var(--mmml-corallo); padding: 0 0.08em; margin-top: 0.06em; }
.drop-corpo { padding-top: clamp(40px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(48px, 6vw, 88px); align-items: end; padding-bottom: 0; overflow: clip; }
.drop-testo { grid-column: 1 / span 6; max-width: 46ch; font-weight: 600; font-size: var(--s4); }
.drop-finestra { grid-column: 1 / -1; margin: 0 calc(-1 * var(--margine)); overflow: hidden; }
.drop-foto { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.consolle {
  grid-column: 8 / span 5;
  background: var(--mmml-fondo); color: var(--mmml-crema);
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
}
.deck-nome { font-size: var(--s5); color: var(--mmml-crema-tenue); }
.deck-bpm { font-family: var(--display); font-weight: 800; font-size: var(--s3); line-height: 1; }
.consolle .tocca { grid-column: 1 / -1; min-height: 64px; width: 100%; background: var(--mmml-ambra); color: var(--mmml-fondo); }
.consolle .tocca.colpo { transform: scale(0.97); }
.consolle-esito { grid-column: 1 / -1; font-size: var(--s5); color: var(--mmml-crema); min-height: 3em; }
.consolle[data-aggancio="si"] .deck-bpm { color: var(--mmml-ambra); }

/* ---------------- Reel in giostra 3D ---------------- */
.vetrina { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; align-items: center; min-height: 100svh; overflow: clip; }
.vetrina-testa { grid-column: 1 / span 4; grid-row: 1; align-self: end; display: grid; gap: 24px; }
.vetrina-piede { grid-column: 1 / span 4; grid-row: 2; align-self: start; display: grid; gap: 28px; }
.giostra { grid-column: 5 / -1; grid-row: 1 / span 2; position: relative; height: min(80svh, 760px); perspective: 1400px; touch-action: pan-y; }
.giostra-anello { position: absolute; inset: 0; transform-style: preserve-3d; }
.carta {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: min(36vh, 320px); aspect-ratio: 9 / 16; background: var(--mmml-fondo-alone);
  transform: translate(-50%, -50%); transform-style: preserve-3d; will-change: transform;
}
html:not(.js) .carta + .carta { display: none; }
.carta-poster, .carta-video { width: 100%; height: 100%; object-fit: cover; }
.carta-play { min-height: 44px; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; }
.carta-play:active { transform: translateX(-50%) scale(0.97); }
.carta[data-stato="video"] .carta-play, .carta[data-stato="video"] .carta-poster { display: none; }
.carta[aria-hidden="true"] .carta-play { visibility: hidden; }
.vetrina-fatto { max-width: 36ch; font-size: var(--s4); }
.scelte { display: grid; gap: 4px; }
.scelta {
  background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--s3); line-height: 1.15;
  color: var(--mmml-crema-tenue); min-height: 44px;
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.scelta[aria-pressed="true"] { color: var(--mmml-ambra); }
.scelta:active { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) { .scelta:hover { color: var(--mmml-crema); } .scelta[aria-pressed="true"]:hover { color: var(--mmml-ambra); } }
.vetrina-cta { display: grid; gap: 16px; justify-items: start; }

/* ---------------- Temi: tunnel 3D ---------------- */
.temi-palco { padding: var(--spazio) var(--margine); display: grid; gap: 40px; }
.temi-elenco {
  display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--s3); line-height: 1.12; color: var(--mmml-fondo);
}
.tema { display: inline; white-space: nowrap; margin-right: 0.28em; }
.tema-cornice { display: inline-block; height: 0.9em; width: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-left: 0.3em; vertical-align: baseline; }
.temi-nota { font-size: var(--s5); }
.tunnel .temi-palco { position: relative; height: 100svh; min-height: 560px; padding: 0; overflow: hidden; perspective: 600px; perspective-origin: 50% 50%; display: block; }
.tunnel .temi-titolo { position: absolute; left: var(--margine); top: clamp(72px, 12vh, 120px); z-index: 2; }
.tunnel .temi-elenco { position: absolute; inset: 0; transform-style: preserve-3d; font-size: var(--s2); }
.tunnel .tema { position: absolute; left: 50%; top: 50%; margin: 0; will-change: transform, opacity; }
.tunnel .temi-nota { position: absolute; left: var(--margine); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 2; }

/* ---------------- Collabora ---------------- */
.collabora { padding: clamp(56px, 6vw, 96px) 0; }
.riga-tessere { display: grid; grid-template-columns: 1fr 4fr 1fr; gap: 12px; height: clamp(380px, 40vw, 460px); }
.riga-tessere > * { min-width: 0; height: 100%; }
.tessera-lato { width: 100%; height: 100%; object-fit: cover; }
.tessera-centro { padding: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto 1fr; align-content: center; justify-items: start; gap: 20px 40px; }
.tessera-centro > :not(.offerta) { grid-column: 1; }
.tessera-centro .titolo-medio { font-size: var(--s2); line-height: 0.92; }
.tessera-centro p { max-width: 46ch; }
.offerta { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: grid; gap: 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--s3); line-height: 1.05; }

/* ---------------- Contatti: richieste di progetto ---------------- */
.contatti { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start; }
.contatti-testa { grid-column: 1 / span 5; display: grid; gap: 24px; position: sticky; top: 96px; }
.contatti-sommario { max-width: 36ch; font-size: var(--s3); line-height: 1.2; font-weight: 600; }
.contatti-box { grid-column: 7 / -1; background: var(--mmml-fondo-alone); padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 24px; }
.sito-demo { max-width: 36ch; font-size: var(--s5); line-height: 1.5; color: var(--mmml-crema); border-left: 3px solid var(--mmml-ambra); padding-left: 14px; }
.modulo { display: grid; gap: 18px; }
.modulo-nota { color: var(--mmml-crema); max-width: 52ch; }
.campi-doppi { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 600; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: max(16px, 1rem);
  color: var(--mmml-crema); background: var(--mmml-fondo); border: 2px solid color-mix(in srgb, var(--mmml-crema) 35%, transparent); border-radius: 0;
}
.campo textarea { resize: vertical; min-height: 128px; }
.campo select { cursor: pointer; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--mmml-ambra); outline-offset: 0; border-color: var(--mmml-ambra); }
.campo [aria-invalid="true"], .consenso [aria-invalid="true"] { border-color: var(--mmml-corallo); }
.campo-errore { color: var(--mmml-corallo); font-size: var(--s5); font-weight: 600; min-height: 0; }
.campo-errore:empty { display: none; }
.campo-aiuto { color: var(--mmml-crema-tenue); font-size: var(--s5); }
.consenso { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: start; }
.consenso input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--mmml-ambra); }
.consenso label { font-size: var(--s5); line-height: 1.5; min-height: 44px; }
.consenso .campo-errore { grid-column: 2; }
.consenso a { color: var(--mmml-ambra); }
.trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.modulo .bottone { justify-self: start; }
.modulo .bottone[aria-busy="true"] { opacity: 0.7; }
.modulo-esito { font-weight: 600; }
.modulo-esito:empty { display: none; }
.modulo-esito[data-esito="ok"] { color: var(--mmml-ambra); }
.modulo-esito[data-esito="errore"] { color: var(--mmml-corallo); }
.collabora-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cf-scrivici { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; color: var(--mmml-crema); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- Piede ---------------- */
.piede { padding: var(--spazio) var(--margine) calc(96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 56px; }
.piede-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.piede-titolo { max-width: 16ch; }
.marchio-blocchi {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 0.22em;
  font-family: var(--display); font-weight: 800; font-size: var(--s2); line-height: 0.8;
}
.parola { display: flex; gap: 4px; align-items: flex-end; height: 1.55em; }
.lettera {
  display: flex; align-items: flex-end; justify-content: center;
  height: var(--h); padding: 0 0.07em 0.04em; min-width: 0.62em;
  color: var(--mmml-fondo-alone);
}
.l-ambra { background: var(--mmml-ambra); }
.l-terracotta { background: var(--mmml-terracotta); }
.l-corallo { background: var(--mmml-corallo); }
.l-magenta { background: var(--mmml-magenta); }
.l-oro { background: var(--mmml-oro); }
.piede-colonne { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 24px 48px; font-size: var(--s5); }
.piede-colonne ul { display: grid; gap: 4px; }
.piede-demo { grid-column: 1 / -1; }
.piede-colonne a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.piede-firma { font-size: var(--s5); }

/* ---------------- Consolle fissa ---------------- */
.suono-tasto { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.suono-barra {
  flex: none; min-height: 44px; padding: 0 14px; background: var(--mmml-fondo-alone); color: var(--mmml-crema);
  font-family: var(--display); font-weight: 800; font-size: 1rem; text-transform: uppercase;
  transition: color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.suono-barra:active { transform: scale(0.97); }
.suono-tasto[aria-pressed="true"] { color: var(--mmml-ambra); }
.suono-tasto[aria-busy="true"] { opacity: 0.7; }
.console-fissa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 8px var(--margine) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--mmml-fondo); color: var(--mmml-crema);
  transform: translateY(110%); visibility: hidden;
  transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
}
.console-fissa.visibile { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), visibility 0s; }
.cf-led { width: 12px; height: 12px; background: var(--mmml-ambra); flex: none; }
.cf-traccia { font-size: var(--s5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cf-bpm { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin-right: 6px; color: var(--mmml-ambra); }
.cf-onda { position: relative; flex: 1; height: 28px; min-width: 60px; }
.cf-onda-base, .cf-onda-suonata { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.cf-onda i { flex: 1; height: var(--h); background: color-mix(in srgb, var(--mmml-crema) 28%, transparent); }
.cf-onda-suonata i { background: var(--mmml-ambra); }
.cf-onda-suonata { clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }
.console-fissa[data-fase="drop"] .cf-led, .console-fissa[data-fase="drop"] .cf-onda-suonata i { background: var(--mmml-corallo); }
.console-fissa[data-fase="drop"] .cf-bpm { color: var(--mmml-corallo); }
.console-fissa .bottone { flex: none; }

/* ---------------- Movimento ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .cf-led { animation: battito var(--battito) var(--ease-out) infinite; }
  /* Titolo che sale dalla propria linea di base (solo CSS: nessun rischio di testo nascosto) */
  .eroe-titolo .riga > span { animation: sali 900ms var(--ease-out) backwards; }
  .eroe-titolo .riga + .riga > span { animation-delay: 110ms; }
  .eroe-sommario, .eroe-azioni { animation: affiora 700ms var(--ease-out) 380ms backwards; }
  .palco-3d { animation: affiora 1200ms var(--ease-out) backwards; }
}
@keyframes sali { from { transform: translateY(105%); } to { transform: none; } }
@keyframes affiora { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes battito {
  0% { transform: scale(1.35); opacity: 1; }
  60%, 100% { transform: scale(1); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------------- Telefono ---------------- */
@media (max-width: 760px) {
  .linguetta { display: none; }
  .barra { height: 52px; }
  .eroe { grid-template-columns: 1fr; }
  .eroe-titolo { font-size: 19vw; }
  .eroe-sommario { grid-column: 1; padding: 16px 0 0; font-size: 1.0625rem; }
  .eroe-azioni { margin-top: 20px; }
  .eroe-azioni .bottone { width: 100%; }

  .intro { grid-template-columns: 1fr; min-height: 0; row-gap: 40px; }
  .intro-corpo, .intro-chip { grid-column: 1; }
  .intro-chip { width: 58vw; justify-self: end; }
  .dichiarazione { font-size: 1.5rem; }

  .cifra { min-height: 80svh; gap: 10vh; }
  .cifra-numero { font-size: 56vw; }

  .mosaico-dati {
    grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 6px;
    grid-template-areas: "ti ti" "fo fo" "c1 c2" "fn fn" "ru ru" "rl rl" "fm fm" "ta ta";
  }
  .t-titolo { padding: 0 0 24px; }
  .t-foto { aspect-ratio: 16 / 10; }
  .t { padding: 20px; }
  .t-titolo { padding: 0 0 20px; }
  .t-cifra { aspect-ratio: 1; }
  .t-frase { min-height: 180px; }

  .drop-corpo { grid-template-columns: 1fr; row-gap: 32px; }
  .drop-testo, .consolle { grid-column: 1; }
  .drop-foto { aspect-ratio: 16 / 9; }
  .drop-titolo { font-size: 16vw; }

  .vetrina { grid-template-columns: 1fr; min-height: 0; row-gap: 24px; }
  .vetrina-testa { grid-column: 1; grid-row: 1; }
  .giostra { grid-column: 1; grid-row: 2; height: 62svh; perspective: 900px; }
  .carta { width: min(46vw, 30svh); }
  .vetrina-piede { grid-column: 1; grid-row: 3; }
  .scelte { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .scelta { font-size: 1.5rem; white-space: nowrap; }
  .vetrina-cta .bottone { width: 100%; }

  .tema { white-space: normal; }
  .tunnel .tema { white-space: nowrap; }
  .tunnel .temi-elenco { font-size: 2.5rem; }
  .tema-cornice { display: none; }
  .tema:nth-of-type(-n+3) .tema-cornice { display: inline-block; }

  .riga-tessere { grid-template-columns: 1fr 1fr; grid-template-rows: auto 120px; height: auto; gap: 8px; }
  .tessera-centro { grid-column: 1 / -1; grid-row: 1; min-height: 300px; margin: 0; grid-template-columns: 1fr; }
  .offerta { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .tessera-centro .bottone { width: 100%; }
  .collabora .tessera-lato { grid-row: 2; }

  .contatti { grid-template-columns: 1fr; }
  .contatti-testa { grid-column: 1; position: static; }
  .contatti-box { grid-column: 1; margin: 0 calc(-1 * var(--margine)); }
  .contatti-sommario { font-size: 1.375rem; }
  .campi-doppi { grid-template-columns: 1fr; }
  .modulo .bottone { width: 100%; }
  .cf-traccia { display: none; }
  .su-lungo { display: none; }
  .piede-cta .bottone { width: 100%; }
  .marchio-blocchi { font-size: 13.5vw; gap: 4px 0.2em; justify-content: flex-start; }
  .piede-colonne { grid-template-columns: 1fr; }

  .console-fissa { gap: 12px; }
  .cf-onda { display: none; }
  .cf-traccia { flex: 1; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .eroe-titolo { font-size: 12vw; }
  .giostra { grid-column: 6 / -1; }
  .vetrina-testa, .vetrina-piede { grid-column: 1 / span 5; }
}

.mosaico-dati { perspective: 1200px; perspective-origin: 50% 30%; }
