/* ==========================================================================
   Noblesse Oblige! — foglio di stile
   Direzione "Notturno": fondo scuro e caldo, accenti oro, serif leggero,
   molta aria. Il sito e' pensato scuro: non c'e' una variante chiara.
   ========================================================================== */

:root {
  --bg:    #0b0a0d;
  --bg-2:  #131218;
  --bg-3:  #1b1922;
  --fg:    #efe9dd;
  --fg-2:  #a49c8e;
  --fg-3:  #6f685e;

  --gold:      #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --blue:      #7d8cff;

  --line:      rgba(239, 233, 221, 0.14);
  --line-soft: rgba(239, 233, 221, 0.08);
  --shadow:    rgba(0, 0, 0, 0.6);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 70rem;
  --text: 40rem;
  --r: 2px;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--gold); color: #14120b; }

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

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 40rem) { .wrap { width: calc(100% - 2rem); } }

.skip {
  position: absolute; left: -9999px;
  background: var(--fg); color: var(--bg);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* etichetta leggibile dai lettori di schermo ma non a video */
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --- tipografia ----------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

/* occhiello: piccolo, spaziato, oro */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow--center { text-align: center; }

/* filo dorato che separa i blocchi */
.ornament {
  width: 7rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: clamp(1.75rem, 4vw, 2.25rem) auto;
}

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 13, 0.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}
.brand:hover { color: var(--fg); }
.brand img { width: 22px; height: 22px; image-rendering: pixelated; }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--fg-2);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 34rem) {
  .nav { gap: 1.15rem; }
  .nav a { font-size: 0.75rem; }
  .brand span { display: none; }
}

/* --- hero con carosello di fotografie ------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92svh, 46rem);
  display: grid; place-items: center;
  text-align: center;
}
/* il riquadro sborda: e' lo spazio in cui scorre la parallasse */
.hero__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero__slide.is-on { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 42%);
  filter: grayscale(0.65) brightness(0.46) contrast(1.08);
}
/* Lentissimo avvicinamento: la foto non resta mai del tutto ferma.
   L'animazione sta su TUTTE le immagini, non solo su quella visibile: se fosse
   legata a .is-on, al cambio di scheda il transform tornerebbe di colpo a zero
   e l'immagine uscente si restringerebbe di scatto durante la dissolvenza.
   Le immagini nascoste la tengono solo in pausa, congelate dove sono arrivate. */
@media (prefers-reduced-motion: no-preference) {
  .hero__slide img {
    animation: drift 26s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .hero__slide.is-on img { animation-play-state: running; }
  @keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08); } }
}

.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(68% 54% at 50% 44%, rgba(201,162,39,0.15), transparent 72%),
    linear-gradient(180deg, rgba(11,10,13,0.55) 0%, rgba(11,10,13,0.90) 100%);
}

.hero__inner { padding: clamp(4.5rem, 12vh, 7.5rem) 0 clamp(5rem, 14vh, 8rem); }

.hero__stamp {
  font-family: var(--sans);
  font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.hero__logo { width: min(100%, 36rem); margin: clamp(1.5rem, 4vw, 2.25rem) auto 0; }
.hero__logo img {
  width: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.75));
}

.hero__tagline {
  font-family: var(--serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  color: var(--fg-2);
  margin: 0 auto;
  max-width: 30ch;
}

.hero__follow {
  font-family: var(--sans);
  font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-3);
  margin: clamp(2.25rem, 5vw, 3rem) 0 1rem;
}
.hero__social {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none; padding: 0; margin: 0;
}
.hero__social a {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;   /* 48px: soglia minima comoda da toccare */
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.hero__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.hero__social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

.hero__cue {
  position: absolute; bottom: 1.5rem; left: 50%;
  translate: -50% 0;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  color: var(--fg-3);
  animation: cue 2.6s ease-in-out infinite;
}
.hero__cue:hover { color: var(--gold); }
.hero__cue svg { width: 1.15rem; height: 1.15rem; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* La foto e' spesso verticale o quadrata: su schermi stretti si abbassa la
   hero, altrimenti il soggetto esce dall'inquadratura. */
@media (max-width: 48rem) {
  .hero { min-height: min(80svh, 36rem); }
}

/* --- sezioni -------------------------------------------------------------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.sec-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  max-width: 24ch;
}
.sec-title__sub {
  display: block;
  font-size: 0.5em;
  font-style: italic;
  font-weight: 300;
  color: var(--fg-3);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* --- video (facciata: l'iframe si carica solo al click) ------------------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px #000, inset 0 0 0 1px var(--line-soft);
}
.video__btn {
  all: unset;
  position: absolute; inset: 0;
  display: grid; place-items: center;
  cursor: pointer;
  width: 100%; height: 100%;
}
.video__btn img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s;
}
.video__btn:hover img, .video__btn:focus-visible img {
  transform: scale(1.04);
  filter: brightness(0.62) saturate(1);
}
.video__play {
  position: relative;
  width: 4.5rem; height: 4.5rem;
  display: grid; place-items: center;
  border: 1px solid rgba(239,233,221,0.45);
  background: rgba(11,10,13,0.35);
  backdrop-filter: blur(4px);
  color: var(--fg);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), background 0.3s, border-color 0.3s, color 0.3s;
}
.video__btn:hover .video__play, .video__btn:focus-visible .video__play {
  transform: scale(1.08);
  border-color: var(--gold);
  color: var(--gold);
}
.video__play svg { width: 1.4rem; height: 1.4rem; margin-left: 3px; fill: currentColor; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .video__btn img, .video__play { transition: none; }
  .video__btn:hover img { transform: none; }
  .hero__cue { animation: none; }
}

/* --- ultima uscita (usata quando esce un brano nuovo) --------------------- */

.latest__title { font-size: clamp(2.25rem, 6vw, 3.75rem); margin: 0 0 0.5rem; }
.latest__meta {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--fg-3);
  margin: 0 0 clamp(1.75rem, 4vw, 2.25rem);
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

/* --- piattaforme di ascolto ----------------------------------------------- */

.platforms {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; padding: 0; margin: 0;
}
.platform {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.8125rem; font-weight: 400;
  text-decoration: none;
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.platform:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.platform svg { width: 1rem; height: 1rem; flex: none; fill: currentColor; }
.platforms__label {
  font-family: var(--sans);
  font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  /* lo stacco va sopra l'etichetta, non fra etichetta e pulsanti */
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0.9rem;
}
.release .platforms__label { margin-top: clamp(2rem, 5vw, 2.75rem); }

/* --- link "leggi la nota" -------------------------------------------------- */

.readmore {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none;
  color: var(--gold);
  margin-top: 1.75rem;
}
.readmore span { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.readmore svg { width: 1rem; height: 1rem; transition: transform 0.25s; }
.readmore:hover svg { transform: translateX(3px); }

/* --- griglia delle uscite -------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: clamp(2.75rem, 4vw, 3.5rem);
  list-style: none; padding: 0; margin: 0;
}
/* Su una colonna sola il titolo cadrebbe a mezza strada fra la propria
   copertina e quella successiva. Questo filo chiude ogni scheda e riprende
   il fregio della hero. */
.grid > li { display: flex; flex-direction: column; }
.grid > li::after {
  content: "";
  width: 3.5rem; height: 1px;
  margin: clamp(1.35rem, 2.5vw, 1.75rem) auto 0;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.5), transparent);
}

.card { display: block; text-decoration: none; text-align: center; height: 100%; }
.card__art {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 20px 44px -26px #000;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.45s;
}
.card__art::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(239,233,221,0.10);
}
.card__art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.4s;
  filter: saturate(0.88) brightness(0.95);
}
.card:hover .card__art, .card:focus-visible .card__art {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px -26px #000;
}
.card:hover .card__art img { transform: scale(1.05); filter: saturate(1) brightness(1); }

.card__badge {
  position: absolute; left: 50%; bottom: 0.75rem;
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--sans); font-size: 0.5625rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg);
  background: rgba(11,10,13,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(239,233,221,0.18);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s, color 0.3s;
}
.card:hover .card__badge, .card:focus-visible .card__badge {
  opacity: 1; transform: translateY(0);
  border-color: var(--gold); color: var(--gold);
}
.card__badge svg { width: 0.65rem; height: 0.65rem; fill: currentColor; }

.card__title {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 400;
  margin: 0.85rem 0 0.15rem;   /* stretto alla sua copertina, non a quella dopo */
  transition: color 0.2s;
}
.card:hover .card__title { color: var(--gold); }
.card__sub {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .card__art, .card__art img, .card__badge { transition: none; }
  .card:hover .card__art, .card:hover .card__art img { transform: none; }
  .card__badge { opacity: 1; transform: none; }
}

/* --- chi siamo ------------------------------------------------------------ */

.about { text-align: center; }
.about__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.625rem, 4vw, 2.625rem);
  line-height: 1.35;
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: pretty;
  color: var(--fg);
}
.about__text em { font-style: italic; color: var(--gold); }
.about__sig { margin: clamp(2.25rem, 5vw, 3rem) auto 0; width: 9rem; }
.about__sig img { width: 100%; image-rendering: pixelated; opacity: 0.55; }

/* --- contatti -------------------------------------------------------------- */

.social {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line-soft);
  max-width: 44rem; margin-inline: auto;
}
.social a {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.2rem 0.25rem;
  text-decoration: none;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.25s, color 0.2s;
}
.social a:hover { padding-left: 1rem; color: var(--gold); }
.social svg:first-child { width: 1.2rem; height: 1.2rem; flex: none; fill: currentColor; }
.social__name { font-family: var(--serif); font-size: 1.375rem; }
.social__handle {
  font-family: var(--sans); font-size: 0.8125rem;
  color: var(--fg-3); margin-left: auto;
}
.social__arrow { width: 0.9rem; height: 0.9rem; color: var(--fg-3); flex: none; }
@media (max-width: 30rem) { .social__handle { display: none; } }

/* --- footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem 0 3.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--fg-3);
}
.site-footer__in {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: center;
}
.site-footer a { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ==========================================================================
   Pagina del singolo brano
   ========================================================================== */

.back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.8125rem;
  text-decoration: none; color: var(--fg-3);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.back:hover { color: var(--gold); }
.back svg { width: 1rem; height: 1rem; transition: transform 0.25s; }
.back:hover svg { transform: translateX(-3px); }

.release { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.release__head {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: end;
}
@media (max-width: 44rem) {
  .release__head { grid-template-columns: 1fr; align-items: start; }
  .release__art { width: min(62%, 14rem); }
}
.release__art {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 26px 60px -28px #000, inset 0 0 0 1px var(--line-soft);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.release__art:hover { transform: translateY(-4px); }
.release__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  margin: 0.5rem 0 0;
}
@media (prefers-reduced-motion: reduce) { .release__art, .release__art:hover { transition: none; transform: none; } }

/* --- corpo della nota ------------------------------------------------------ */
/* nota: azzerare i margini con `.prose p` batterebbe per specificita' la regola
   `> * + *` che li ripristina, quindi si lavora solo sui figli diretti. */
.prose {
  max-width: var(--text);
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.6;
  color: var(--fg-2);
}
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p { text-wrap: pretty; }
.prose > p:first-of-type { font-size: 1.15em; color: var(--fg); }

.prose blockquote {
  margin: 1.9em 0;
  padding-left: 1.6rem;
  border-left: 1px solid var(--gold);
  font-style: italic;
  color: var(--fg);
}
.prose blockquote > p + p { margin-top: 0.9em; }
.prose a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* voce di dizionario — per i neologismi */
.lemma {
  margin: 2.2em 0;
  padding: 1.6rem 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font-size: 1.125rem;
  line-height: 1.6;
}
.lemma dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.lemma dd { margin: 0; color: var(--fg-2); }
.lemma .gram { font-style: italic; color: var(--fg-3); }
.lemma .ex { color: var(--fg); font-style: italic; }

.credit {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fg-3);
  border-top: 1px solid var(--line-soft);
  margin-top: 2.6em;
  padding-top: 1.35rem;
}
.credit strong { color: var(--fg-2); font-weight: 500; }

/* --- testo del brano ------------------------------------------------------- */

.lyrics {
  white-space: pre-line;
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.62;
  max-width: var(--text);
  color: var(--fg);
  column-gap: 4rem;
}
@media (min-width: 60rem) {
  .lyrics { columns: 2; max-width: 58rem; }
}
.lyrics__credit {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--fg-3);
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
  margin: 2.5rem 0 0;
  max-width: var(--text);
}

.pending {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--fg-2);
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 1.25rem 1.4rem;
  max-width: var(--text);
}

/* --- navigazione fra brani ------------------------------------------------- */

.pager {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 2.25rem;
}
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 0.35rem; }
.pager a:last-child { text-align: right; align-items: flex-end; }
.pager__dir {
  font-family: var(--sans); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-3);
}
.pager__t { font-family: var(--serif); font-size: 1.375rem; color: var(--fg-2); }
.pager a:hover .pager__t { color: var(--gold); }

/* ==========================================================================
   Rifiniture
   ========================================================================== */

/* grana: toglie il piatto al fondo scuro, come una pellicola */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* comparsa allo scroll, senza JavaScript. Dove il browser non la supporta non
   succede niente e il contenuto si vede comunque: nessun rischio di pagina vuota. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ==========================================================================
   Fotografie dietro le sezioni
   Servono a spezzare il nero: il fondo scuro da solo, sezione dopo sezione,
   diventava monotono.
   ========================================================================== */

/* --- fascia in parallasse (scorre piu' lenta della pagina) ---------------- */

.section--foto { position: relative; isolation: isolate; overflow: hidden; }
.section--foto > .sfondo {
  position: absolute; inset: -14% 0; z-index: -2; will-change: transform;
}
.section--foto > .sfondo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 40%);
  filter: grayscale(0.75) brightness(0.4) contrast(1.06);
}
/* sfuma a nero pieno sopra e sotto, così la fascia non ha bordi netti
   e si innesta nelle sezioni scure che la precedono e la seguono */
.section--foto::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    var(--bg) 0%, rgba(11,10,13,0.66) 18%,
    rgba(11,10,13,0.66) 82%, var(--bg) 100%);
}
.section--foto .card__art { box-shadow: 0 26px 60px -22px #000; }
.section--foto .about__text { text-shadow: 0 2px 24px rgba(0,0,0,0.75); }

/* --- fondo fermo (la copertina dietro il testo della canzone) ------------- */
/* Resta immobile mentre il testo ci scorre sopra. Non si usa
   `background-attachment: fixed` perche' su iOS non funziona. */

.section--fisso { position: relative; isolation: isolate; overflow: hidden; }
.section--fisso > .sfondo-fisso {
  position: absolute; top: 0; left: 0; right: 0;
  height: 100svh;
  z-index: -2;
  will-change: transform;
}
.section--fisso > .sfondo-fisso img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* sfocata e scurita: resta un alone di colore della copertina, non
     un'immagine che compete con il testo */
  filter: blur(6px) brightness(0.3) saturate(1.15);
  transform: scale(1.06);   /* nasconde i bordi schiariti dalla sfocatura */
}
.section--fisso::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    var(--bg) 0%, rgba(11,10,13,0.62) 15%,
    rgba(11,10,13,0.62) 85%, var(--bg) 100%);
}
.section--fisso .lyrics { text-shadow: 0 2px 20px rgba(0,0,0,0.8); }
