/* ==========================================================================
   Meridia Music Award
   Mobile-first. Per cambiare la palette modifica le variabili qui sotto.
   ========================================================================== */

:root {
  /* Palette */
  --c-bg: #050505;
  --c-bg-alt: #0c0b09;
  --c-surface: #12110e;
  --c-line: rgba(212, 169, 78, .22);
  --c-text: #f6f2e9;
  --c-muted: #b9b1a0;
  --c-gold: #d4a94e;
  --c-gold-light: #f5dc94;
  --c-gold-deep: #9a7326;
  --c-on-gold: #17120a;
  /* Colore della luce dei faretti, in formato R, G, B */
  --light-rgb: 255, 226, 160;

  /* Tipografia */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --header-h: 64px;
  --radius: 14px;
  --container: 1120px;
  --gutter: 20px;

  /* Faretti: valori di riserva, ricalcolati da js/main.js in base alla posizione del logo */
  --beam-angle: 24deg;
  --beam-len: 95vh;
  --lamp-x: 7%;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked, body.nav-open { overflow: hidden; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: .02em; }
h3 { font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold-light); }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: var(--c-gold-light); text-underline-offset: .2em; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 12px 16px;
  background: var(--c-gold); color: var(--c-on-gold);
  border-radius: 8px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--c-on-gold); }

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px;
  padding: .8em 1.8em;
  border: 1px solid var(--c-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--c-gold-light);
  font: 500 .95rem/1.2 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--c-gold); color: var(--c-on-gold); }

.btn--glow {
  border-color: transparent;
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold) 45%, var(--c-gold-deep));
  color: var(--c-on-gold);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(var(--light-rgb), .35), 0 0 28px rgba(var(--light-rgb), .35), 0 0 70px rgba(var(--light-rgb), .18);
}
.btn--glow:hover {
  color: var(--c-on-gold);
  background: linear-gradient(135deg, #fff3cf, var(--c-gold-light) 45%, var(--c-gold));
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(var(--light-rgb), .5), 0 0 38px rgba(var(--light-rgb), .5), 0 0 90px rgba(var(--light-rgb), .25);
}

.btn--big {
  width: 100%;
  min-height: 64px;
  padding: 1em 1.4em;
  font-size: 1rem;
  letter-spacing: .08em;
  text-align: center;
}

/* ==========================================================================
   Schermata d'ingresso
   ========================================================================== */

.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 24px;
  background: #000;
  text-align: center;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }

.gate__logo { width: min(68vw, 300px); margin-bottom: 6px; }

.gate__enter {
  min-width: 190px; min-height: 58px;
  font-size: 1.1rem; letter-spacing: .32em; padding-left: 2.1em;
  animation: gate-pulse 2.6s ease-in-out infinite;
}

.gate__alt {
  min-height: 44px; padding: 0 16px;
  background: none; border: 0;
  color: var(--c-muted);
  font: 400 .92rem var(--font-body);
  text-decoration: underline; text-underline-offset: .25em;
  cursor: pointer;
}
.gate__alt:hover { color: var(--c-text); }

.gate__note { margin: 0; font-size: .8rem; color: #8f8878; letter-spacing: .04em; }

@keyframes gate-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ==========================================================================
   Header e navigazione
   ========================================================================== */

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 var(--gutter);
  background: rgba(5, 5, 5, .94);
  border-bottom: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .4s ease, visibility 0s linear .4s;
}
.past-hero .header, .nav-open .header {
  transform: none; visibility: visible;
  transition: transform .4s ease, visibility 0s;
}
/* Con il menu aperto il backdrop-filter creerebbe un contenitore per il menu a tutto schermo */
.nav-open .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-bg); }

.header__logo { display: flex; align-items: center; min-height: 44px; position: relative; z-index: 2; }
.header__logo img { height: 56px; width: auto; }

.nav-toggle {
  position: relative; z-index: 2;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--c-text); cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .3s ease, background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { transform: translateY(-8px); }
.nav-toggle__bars::after { transform: translateY(8px); }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: rotate(-45deg); }

/* Menu mobile a tutto schermo */
.nav {
  position: fixed; inset: 0; z-index: 1;
  height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 70% at 50% 0%, #1b160c 0%, var(--c-bg) 60%);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.nav-open .nav { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }

.nav__list { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nav__list a {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px;
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text); text-decoration: none;
}
.nav__list a:hover { color: var(--c-gold-light); }

@media (min-width: 860px) {
  .header { padding-inline: 32px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; height: auto; background: none;
    opacity: 1; visibility: inherit; transition: none;
  }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__list a { min-height: 44px; padding: 0 16px; font-family: var(--font-body); font-size: .86rem; font-weight: 500; letter-spacing: .18em; }
}

/* ---------- Pulsante audio ---------- */

.audio-toggle {
  position: fixed; z-index: 40;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--c-line); border-radius: 50%;
  background: rgba(10, 9, 7, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--c-gold-light);
  cursor: pointer;
  transition: border-color .25s, color .25s, opacity .25s;
}
.audio-toggle:hover { border-color: var(--c-gold); }
.audio-toggle .icon--on { display: none; }
.audio-toggle[aria-pressed="true"] .icon--on { display: block; }
.audio-toggle[aria-pressed="true"] .icon--off { display: none; }
.audio-toggle[aria-pressed="false"] { color: var(--c-muted); }
.audio-toggle.is-unavailable { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Hero / Palco
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Fascio di luce: .beam fissa origine e direzione, .beam__sway oscilla */
.beam {
  --beam-w: clamp(230px, 62vmin, 620px);
  position: absolute; bottom: 0; left: var(--lamp-x);
  width: 0; height: 0;
  transform: rotate(var(--beam-angle));
  mix-blend-mode: screen;
}
.beam--right { left: auto; right: var(--lamp-x); transform: rotate(calc(var(--beam-angle) * -1)); }

.beam__sway {
  position: absolute; bottom: 0; left: calc(var(--beam-w) / -2);
  width: var(--beam-w); height: var(--beam-len);
  transform-origin: 50% 100%;
  opacity: 0;
  will-change: transform;
}
.beam__light { position: absolute; inset: 0; filter: blur(14px); opacity: .62; }
.beam__cone, .beam__dust {
  position: absolute; inset: 0;
  -webkit-clip-path: polygon(47.5% 100%, 52.5% 100%, 100% 0, 0 0);
          clip-path: polygon(47.5% 100%, 52.5% 100%, 100% 0, 0 0);
}
.beam__cone {
  background:
    linear-gradient(to right, transparent 0%, rgba(var(--light-rgb), .55) 50%, transparent 100%),
    linear-gradient(to top, rgba(var(--light-rgb), .95) 0%, rgba(var(--light-rgb), .42) 30%, rgba(var(--light-rgb), .2) 72%, rgba(var(--light-rgb), 0) 100%);
  background-blend-mode: multiply, normal;
}

/* Pulviscolo che sale lentamente dentro il fascio */
.beam__dust { overflow: hidden; opacity: .55; }
.beam__dust::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200%;
  background-image:
    radial-gradient(circle, rgba(255, 244, 214, .9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 244, 214, .6) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 244, 214, .45) 0 1.4px, transparent 2.2px);
  background-size: 97px 113px, 61px 79px, 139px 167px;
  background-position: 0 0, 23px 41px, 67px 13px;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 15%, #000 60%, transparent 85%);
          mask-image: linear-gradient(to top, transparent 0%, #000 15%, #000 60%, transparent 85%);
  animation: dust-rise 38s linear infinite;
}

/* Faretto (corpo luminoso nell'angolo) */
.lamp {
  position: absolute; bottom: -26px; left: var(--lamp-x);
  width: 64px; height: 64px; margin-left: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(var(--light-rgb), .9) 22%, rgba(var(--light-rgb), .25) 48%, transparent 70%);
  opacity: 0;
}
.lamp--right { left: auto; right: var(--lamp-x); margin-left: 0; margin-right: -32px; }

/* Fumo di palco */
.smoke {
  position: absolute; left: -20%; right: -20%; bottom: -12%; height: 55%;
  background:
    radial-gradient(40% 60% at 28% 70%, rgba(var(--light-rgb), .1), transparent 70%),
    radial-gradient(45% 55% at 72% 78%, rgba(var(--light-rgb), .08), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(255, 255, 255, .06), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 2.4s ease .6s;
}

/* Accensione */
.is-entered .beam__sway { animation: lamp-on 1.3s ease-out forwards, beam-sway 9s ease-in-out 1.3s infinite alternate; }
.is-entered .beam--right .beam__sway { animation: lamp-on 1.3s ease-out .25s forwards, beam-sway 11.5s ease-in-out -4s infinite alternate-reverse; }
.is-entered .lamp { animation: lamp-on 1.3s ease-out forwards; }
.is-entered .lamp--right { animation-delay: .25s; }
.is-entered .smoke { opacity: 1; animation: smoke-drift 26s ease-in-out infinite alternate; }

@keyframes lamp-on {
  0% { opacity: 0; }
  12% { opacity: .9; }
  20% { opacity: .15; }
  34% { opacity: .8; }
  42% { opacity: .35; }
  100% { opacity: 1; }
}
@keyframes beam-sway {
  from { transform: rotate(-3.2deg); }
  to { transform: rotate(3.2deg); }
}
@keyframes dust-rise {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes smoke-drift {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

/* Contenuto della hero */
.hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(14px, 4svh, 40px);
  padding: 24px var(--gutter) 84px;
  width: 100%;
}

.hero__logo { position: relative; width: min(92vw, 680px); max-width: 100%; }
.hero__logo img {
  position: relative;
  width: auto; max-width: 100%; max-height: 46svh; margin-inline: auto;
  opacity: .28;
  transition: opacity 1.6s ease .3s;
}
.is-entered .hero__logo img { opacity: 1; }

/* Alone nel punto d'incontro dei fasci */
.hero__logo::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 150%; aspect-ratio: 1.5;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--light-rgb), .42), rgba(var(--light-rgb), .14) 48%, transparent 100%);
  opacity: 0;
  transition: opacity 1.8s ease .5s;
  pointer-events: none;
}
.is-entered .hero__logo::before { opacity: 1; animation: halo-breathe 6s ease-in-out 2.4s infinite alternate; }
@keyframes halo-breathe {
  from { opacity: 1; }
  to { opacity: .68; }
}

/* Microfono che rimbalza */
.mic { position: relative; display: flex; flex-direction: column; align-items: center; }
.mic__img {
  height: clamp(88px, 21svh, 190px); width: auto;
  animation: mic-bounce 1.3s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  will-change: transform;
}
.mic__shadow {
  width: clamp(54px, 12svh, 104px); height: 12px; margin-top: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--light-rgb), .34), transparent);
  animation: mic-shadow 1.3s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
@keyframes mic-bounce {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -22px, 0); }
}
@keyframes mic-shadow {
  from { transform: scaleX(1); opacity: 1; }
  to { transform: scaleX(.58); opacity: .45; }
}

/* Indicatore "scorri" */
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-width: 64px; min-height: 56px;
  color: var(--c-muted); text-decoration: none;
  font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; text-indent: .34em;
}
.scroll-hint:hover { color: var(--c-gold-light); }
.scroll-hint svg { width: 26px; height: 26px; animation: hint-bob 1.8s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(7px); opacity: 1; }
}

/* Fuori dallo schermo le animazioni della hero si fermano */
.past-hero .hero *, .past-hero .hero *::before { animation-play-state: paused !important; }

/* ==========================================================================
   Sezioni
   ========================================================================== */

.section { padding: clamp(64px, 12vw, 120px) 0; position: relative; }
.section--alt {
  background: var(--c-bg-alt);
  border-block: 1px solid var(--c-line);
}

.section__head { max-width: 720px; margin: 0 auto clamp(32px, 6vw, 56px); text-align: center; }
.section__head h2 { margin-bottom: .6em; }
.section__head p:last-child { margin-bottom: 0; }
.section__head p { color: var(--c-muted); }
.section__head .lead { color: var(--c-text); font-size: 1.15rem; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--c-gold) !important;
  font-size: .78rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
}

/* Card */
.cards { display: grid; gap: 16px; }
.card {
  padding: 26px 22px;
  background: linear-gradient(180deg, #16140f, var(--c-surface));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 16px; }
.card p { color: var(--c-muted); }
.card > :last-child { margin-bottom: 0; }

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .card { padding: 32px 30px; }
  .card--wide { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .cards--three { grid-template-columns: repeat(3, 1fr); }
}

.ticks li { position: relative; padding-left: 1.5em; color: var(--c-muted); }
.ticks li + li { margin-top: .6em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--c-gold); transform: rotate(45deg); }
.ticks strong, .steps strong { color: var(--c-text); font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags li { padding: .35em 1em; border: 1px solid var(--c-line); border-radius: 999px; font-size: .92rem; color: var(--c-text); }

.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 2.8em; color: var(--c-muted); }
.steps li + li { margin-top: .9em; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1em;
  width: 1.9em; height: 1.9em; display: grid; place-items: center;
  border: 1px solid var(--c-gold); border-radius: 50%;
  color: var(--c-gold-light); font: 600 .85rem var(--font-display);
}

.dates > div { display: flex; gap: 16px; padding: .65em 0; border-bottom: 1px solid var(--c-line); }
.dates > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dates > div:first-child { padding-top: 0; }
.dates dt { flex: 0 0 6.6em; color: var(--c-gold-light); font-weight: 500; }
.dates dd { color: var(--c-muted); }

.prizes { display: grid; gap: 22px; }
.prizes li { display: flex; gap: 16px; align-items: flex-start; }
.prizes__place {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold-deep));
  color: var(--c-on-gold); font: 700 1.15rem var(--font-display);
}
.prizes strong { display: block; font-weight: 500; color: var(--c-text); margin-bottom: .2em; }
.prizes p { margin: 0; }
@media (min-width: 860px) { .prizes { grid-template-columns: repeat(3, 1fr); } }

.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.link-arrow::after { content: "→"; margin-left: .5em; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Comunicati stampa */
.press { display: grid; gap: 16px; }
.press__status { grid-column: 1 / -1; text-align: center; color: var(--c-muted); margin: 0; }
.press-card {
  display: flex; flex-direction: column;
  padding: 26px 22px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.press-card time { color: var(--c-gold); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.press-card h3 {
  margin: 12px 0; font-size: 1.2rem; letter-spacing: .02em; text-transform: none; color: var(--c-text);
}
.press-card p { color: var(--c-muted); flex: 1; }
.press-card .btn { align-self: flex-start; font-size: .82rem; padding-block: .6em; }
.press-card .btn .icon { width: 18px; height: 18px; }
@media (min-width: 700px) { .press { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1000px) { .press { grid-template-columns: repeat(3, 1fr); } }

/* Blocco iscrizione */
.signup {
  position: relative;
  margin-top: clamp(48px, 9vw, 88px);
  padding: clamp(32px, 7vw, 64px) clamp(20px, 6vw, 64px);
  text-align: center;
  border: 1px solid var(--c-gold);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(var(--light-rgb), .16), transparent 62%),
    var(--c-bg);
  box-shadow: 0 0 60px rgba(var(--light-rgb), .08);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.signup h2 { margin-bottom: .6em; }
.signup > p { max-width: 620px; margin-inline: auto; color: var(--c-muted); }
.signup > p strong { color: var(--c-text); font-weight: 500; }
.signup .btn { margin-top: 14px; max-width: 460px; }
.signup__hint { margin: 16px 0 0 !important; font-size: .85rem; letter-spacing: .06em; }

/* ---------- Comparsa allo scroll ---------- */

.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 56px 0 calc(28px + env(safe-area-inset-bottom));
  background: #000;
  border-top: 1px solid var(--c-line);
}
.footer__grid { display: grid; gap: 36px; text-align: center; justify-items: center; }
.footer__brand img { width: 240px; }
.footer__title { margin-bottom: 12px; font-size: .9rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c-gold); }

.footer__contacts li { display: flex; flex-direction: column; align-items: center; }
.footer__contacts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text); text-decoration: none; font-size: 1.08rem; }
.footer__contacts a:hover { color: var(--c-gold-light); }
.footer__contacts span { margin-top: -8px; color: var(--c-muted); font-size: .8rem; letter-spacing: .08em; }

.social { display: flex; gap: 10px; justify-content: center; }
.social a {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--c-line); border-radius: 50%;
  color: var(--c-text);
  transition: color .25s, border-color .25s, background-color .25s;
}
.social a:hover { color: var(--c-on-gold); background: var(--c-gold); border-color: var(--c-gold); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

.footer__bottom {
  margin-top: 44px; padding-top: 20px; padding-right: 72px; /* spazio per il pulsante audio */
  border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px;
  color: var(--c-muted); font-size: .88rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-muted); }
.footer__bottom a:hover { color: var(--c-text); }

@media (min-width: 860px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; text-align: left; justify-items: start; align-items: start; }
  .footer__contacts li { flex-direction: row; align-items: center; gap: 12px; }
  .footer__contacts span { margin-top: 0; }
  .social { justify-content: flex-start; }
}

/* ==========================================================================
   Movimento ridotto
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .is-entered .beam__sway, .is-entered .lamp { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}
