/* The Quest: Bloodline — pagina pubblica (stile GTA VI) */

/* niente selezione o trascinamento del contenuto (i campi di testo restano usabili) */
html {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

:root {
  --bl-ink: #050505;
  --bl-cream: #ede4cb;
  --bl-ember: #ff6a1a;
  --bl-blood: #ba0c10;
  --bl-gold: #e2b23a;
  --bl-muted: rgba(237, 228, 203, .68);
  --bl-gutter: max(20px, env(safe-area-inset-left));
  --bl-gutter-r: max(20px, env(safe-area-inset-right));
  --bl-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --bl-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bl-ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  background: var(--bl-ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bl-cream);
  background: var(--bl-ink);
  font-family: var(--bl-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.bl-eyebrow {
  margin: 0 0 14px;
  color: #ff3d43;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.bl-display {
  margin: 0;
  font-family: var(--bl-display);
  font-size: clamp(34px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.bl-display em {
  font-style: normal;
  background: linear-gradient(90deg, #ff3d43, #b40c12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bl-lead {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--bl-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.bl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bl-btn {
  --bl-btn-bg: rgba(255, 255, 255, .06);
  --bl-btn-line: rgba(255, 255, 255, .22);
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px 0 26px;
  border: 1px solid var(--bl-btn-line);
  border-radius: 999px;
  color: #fff;
  background: var(--bl-btn-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--bl-ease), border-color .25s ease, background .25s ease;
  -webkit-tap-highlight-color: transparent;
}

/* riflesso che attraversa il pulsante al passaggio */
.bl-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--bl-ease);
}

.bl-btn:hover::before {
  transform: translateX(120%);
}

.bl-btn-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: transform .35s var(--bl-ease), background .25s ease;
}

.bl-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-btn-icon .bl-fill {
  fill: currentColor;
  stroke: none;
}

/* pulsante secondario: al passaggio si riempie di panna */
.bl-btn:hover {
  transform: translateY(-2px);
  color: var(--bl-ink);
  border-color: var(--bl-cream);
  background: var(--bl-cream);
}

.bl-btn:hover .bl-btn-icon {
  color: var(--bl-cream);
  background: var(--bl-ink);
  transform: scale(1.08);
}

.bl-btn:active {
  transform: translateY(0) scale(.97);
}

.bl-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.bl-btn-solid {
  --bl-btn-bg: linear-gradient(180deg, #ef1b22 0%, #b40c12 100%);
  --bl-btn-line: rgba(255, 90, 90, .55);
}

.bl-btn-solid .bl-btn-icon {
  color: #b40c12;
  background: #fff;
}

.bl-btn-solid:hover {
  color: #fff;
  border-color: rgba(255, 120, 120, .8);
  background: linear-gradient(180deg, #ff2a31 0%, #c80f16 100%);
}

.bl-btn-solid:hover .bl-btn-icon {
  color: #fff;
  background: #050505;
  transform: translateX(3px);
}

/* timbro "In development" sotto la foto dell'hero */
.bl-stamp {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  border: 2px solid #e5141a;
  color: #ff4a4f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .28em;
  line-height: 1.2;
  text-transform: uppercase;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.bl-credit {
  margin: 18px 0 0;
  color: rgba(237, 228, 203, .45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
}

/* ---------- HEADER (come Vice) ---------- */

.bl-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  display: flex;
  /* menu a sinistra, logo del gioco a destra (a sinistra c'è già il titolo stampato nella key art) */
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) max(3vw, var(--bl-gutter-r)) 28px max(3vw, var(--bl-gutter));
  background: linear-gradient(180deg, rgba(5, 5, 5, .55), rgba(5, 5, 5, 0));
  transition: padding .3s ease, background .3s ease, opacity .45s ease, transform .45s var(--bl-ease);
}

/* con JS l'header resta nascosto durante l'intro del logo */
.js .bl-header:not(.is-visible) {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* sparisce scorrendo giù, riappare scorrendo su: veloce in uscita, morbida in entrata */
.bl-header.is-visible {
  transition: padding .3s ease, background .3s ease, opacity .45s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
}

.bl-header.is-visible.is-hidden {
  transform: translateY(-110%);
  transition: padding .3s ease, background .3s ease, opacity .45s ease, transform .24s cubic-bezier(.4, 0, 1, 1);
}

.bl-header.is-scrolled {
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 16px;
}

.bl-header-logo {
  display: inline-flex;
  -webkit-tap-highlight-color: transparent;
}

.bl-header-logo img {
  width: auto;
  height: 30px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}

.bl-burger {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bl-burger span {
  display: block;
  width: 34px;
  height: 5px;
  background: var(--bl-cream);
  transition: transform .3s var(--bl-ease), background .2s ease;
}

.bl-burger:hover span {
  background: #fff;
}

.bl-burger:focus-visible {
  outline: 2px solid var(--bl-cream);
  outline-offset: 4px;
}

.bl-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.bl-burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-5.5px) rotate(-45deg);
}

body.bl-menu-open {
  overflow: hidden;
}

body.bl-menu-open .bl-header {
  background: transparent;
}

.bl-menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  grid-template-columns: minmax(420px, 44%) minmax(0, 1fr);
  background: #08090d;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

.bl-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s;
}

.bl-menu-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
}

.bl-menu-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  transform: scale(1.08);
  transition: transform 1.2s var(--bl-ease);
}

.bl-menu.is-open .bl-menu-visual img {
  transform: scale(1);
}

.bl-menu-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(8, 9, 13, 0) 55%, #08090d 100%);
}

.bl-menu-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: calc(110px + env(safe-area-inset-top)) 48px max(40px, env(safe-area-inset-bottom)) max(3vw, var(--bl-gutter));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bl-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bl-menu-logo {
  width: min(220px, 60vw);
  height: auto;
  margin-bottom: 22px;
}

.bl-menu-nav a {
  display: block;
  padding: 6px 0;
  color: var(--bl-cream);
  text-decoration: none;
  font-family: var(--bl-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  opacity: 0;
  transform: translateX(-24px);
  transition: color .2s ease, opacity .5s var(--bl-ease), transform .5s var(--bl-ease);
}

.bl-menu.is-open .bl-menu-nav a {
  opacity: 1;
  transform: none;
}

.bl-menu.is-open .bl-menu-nav a:nth-of-type(2) { transition-delay: .04s; }
.bl-menu.is-open .bl-menu-nav a:nth-of-type(3) { transition-delay: .08s; }
.bl-menu.is-open .bl-menu-nav a:nth-of-type(4) { transition-delay: .12s; }
.bl-menu.is-open .bl-menu-nav a:nth-of-type(5) { transition-delay: .16s; }

.bl-menu-nav a:hover,
.bl-menu-nav a:focus-visible {
  color: #ff3d43;
  outline: none;
}

/* ---------- TRAILER (overlay come Vice) ---------- */

.bl-trailer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: max(72px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

.bl-trailer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s;
}

.bl-trailer-frame {
  width: min(1200px, 100%, (100svh - 120px) * 16 / 9);
  aspect-ratio: 16 / 9;
  background: #000;
  transform: scale(.96);
  transition: transform .45s var(--bl-ease);
}

.bl-trailer.is-open .bl-trailer-frame {
  transform: none;
}

.bl-trailer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.bl-trailer-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(237, 228, 203, .25);
  border-radius: 50%;
  color: var(--bl-cream);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.bl-trailer-close:hover {
  color: var(--bl-ink);
  border-color: var(--bl-cream);
  background: var(--bl-cream);
}

.bl-trailer-close:focus-visible {
  outline: 2px solid var(--bl-cream);
  outline-offset: 3px;
}

.bl-trailer-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

body.bl-trailer-open {
  overflow: hidden;
}

/* ---------- HERO ---------- */

.bl-hero {
  --bl-art-h: min(100vw * 1024 / 1820, 100svh);
  --bl-cta-h: 200px;
  --p: 1; /* avanzamento dello scroll 0..1 (senza JS: tutto già rivelato) */
  position: relative;
  height: 100vh;
  height: 100svh;
}

.js .bl-hero {
  --p: 0;
  height: 260vh;
}

.bl-hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bl-ink);
}

/* La key art si vede intera nelle sue proporzioni (16:9), in alto e a tutta larghezza;
   sotto sfuma nel nero dove stanno i pulsanti. Su schermi più larghi di 16:9 riempie l'altezza. */
.bl-hero-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  aspect-ratio: 1820 / 1024;
  max-height: 100%;
  margin: 0 auto;
  /* lo zoom non deve uscire dal riquadro, e il fondo si dissolve nel nero senza linee */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, .55) 80%, transparent 100%);
}

.bl-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(calc(1.22 - .22 * var(--p)));
  transform-origin: 50% 35%;
  will-change: transform;
}

.bl-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, .7) 0%, rgba(5, 5, 5, 0) 40%);
  pointer-events: none;
}

.bl-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, .5) 0%, rgba(5, 5, 5, 0) 18%);
  opacity: calc((var(--p) - .45) * 2.2);
  pointer-events: none;
}

.bl-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.js .bl-mask {
  display: block;
  opacity: calc(1 - (var(--p) - .5) * 5);
}

/* logo ufficiale a colori: leggibile all'inizio, sfuma appena parte lo zoom */
.bl-intro-logo {
  display: none;
}

.js .bl-intro-logo {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  opacity: calc(1 - var(--p) * 9);
  pointer-events: none;
}

.bl-hero-cta {
  position: absolute;
  left: var(--bl-gutter);
  right: var(--bl-gutter-r);
  /* subito sotto la foto (altezza = larghezza × proporzioni), ma sempre dentro lo schermo */
  top: min(calc(var(--bl-art-h) - 56px), calc(100svh - var(--bl-cta-h)));
  max-width: 1200px;
  margin: 0 auto;
  opacity: calc((var(--p) - .62) * 3.4);
  transform: translateY(calc((1 - var(--p)) * 40px));
}

.js .bl-hero:not(.is-revealed) .bl-hero-cta {
  pointer-events: none;
  visibility: hidden;
}

/* testo solo per screen reader e motori di ricerca */
.bl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- STORY ---------- */

.bl-story {
  position: relative;
  padding: clamp(96px, 16vw, 200px) var(--bl-gutter-r) clamp(80px, 12vw, 160px) var(--bl-gutter);
  background: var(--bl-ink);
}

.bl-story-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- PERSONAGGI ---------- */

/* Come Rockstar: ogni personaggio è un blocco a sé, separato da ampio spazio nero */
.bl-people {
  display: flex;
  flex-direction: column;
  gap: clamp(96px, 14vw, 200px);
  padding: clamp(40px, 6vw, 96px) 0;
  background: var(--bl-ink);
}

.bl-person {
  --py: 0; /* -1..1 posizione nel viewport, per il parallax */
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  /* bordi alto e basso che sfumano nel nero: niente tagli netti tra un personaggio e l'altro */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.bl-person-art {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
}

.bl-person-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x) var(--focus-y);
  transform: translateY(calc(var(--py) * -4%)) scale(1.9);
  transform-origin: var(--focus-x) var(--focus-y);
  will-change: transform;
}

.bl-person::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .72) 34%, rgba(5, 5, 5, 0) 62%),
    linear-gradient(0deg, color-mix(in srgb, var(--tint) 34%, transparent) 0%, transparent 45%);
}

.bl-person-flip::after {
  background:
    linear-gradient(270deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .72) 34%, rgba(5, 5, 5, 0) 62%),
    linear-gradient(0deg, color-mix(in srgb, var(--tint) 34%, transparent) 0%, transparent 45%);
}

.bl-person-copy {
  width: min(520px, 46%);
  margin-left: max(var(--bl-gutter), 6vw);
}

.bl-person-flip .bl-person-copy {
  margin-left: auto;
  margin-right: max(var(--bl-gutter-r), 6vw);
}

/* Scheda personaggio: numero nel riquadro rosso, nome, citazione con barra rossa, ruolo */
.bl-person-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.bl-person-num {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid rgba(229, 20, 26, .75);
  color: #ff4a4f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
}

.bl-person-name {
  margin: 0;
  font-family: var(--bl-display);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.bl-person-quote {
  margin: 0 0 22px;
  padding-left: 18px;
  border-left: 3px solid #e5141a;
  color: var(--bl-cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.3vw, 30px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.bl-person-bio {
  margin: 0;
  color: var(--bl-muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
}

.bl-person-role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  color: rgba(237, 228, 203, .5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bl-person-role::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(237, 228, 203, .35);
}

/* ---------- MOMENTI ---------- */

.bl-moments {
  padding: clamp(96px, 12vw, 160px) var(--bl-gutter-r) clamp(80px, 10vw, 140px) var(--bl-gutter);
  background: var(--bl-ink);
}

.bl-moments-head {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.bl-moments-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bl-moment {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

/* Ritaglio preciso: il punto (--focus-x, --focus-y) della key art finisce al centro del riquadro.
   --z è lo zoom rispetto alla larghezza del riquadro, scelto per non lasciare bordi scoperti. */
.bl-moment img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--z, 2) * 100%);
  max-width: none;
  height: auto;
  transform: translate(calc(-1 * var(--focus-x)), calc(-1 * var(--focus-y)));
  transition: scale 1.2s var(--bl-ease);
  transform-origin: var(--focus-x) var(--focus-y);
}

.bl-moment:hover img {
  scale: 1.06;
}

.bl-moment figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 22px 20px;
  color: var(--bl-muted);
  font-size: 15px;
  background: linear-gradient(0deg, rgba(5, 5, 5, .92), transparent);
}

.bl-moment figcaption strong {
  display: block;
  color: var(--bl-cream);
  font-family: var(--bl-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 1.2;
}

/* ---------- CHIUSURA ---------- */

.bl-outro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--bl-gutter-r) clamp(80px, 10vw, 140px) var(--bl-gutter);
}

.bl-outro-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}

.bl-outro-logo {
  margin: 0 0 26px;
}

.bl-outro-logo img {
  width: min(100%, 460px);
  height: auto;
}

.bl-outro-copy .bl-lead {
  margin-top: 26px;
}

/* ---------- FOOTER ---------- */

.bl-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 36px var(--bl-gutter-r) max(36px, env(safe-area-inset-bottom)) var(--bl-gutter);
  border-top: 1px solid rgba(237, 228, 203, .1);
  color: rgba(237, 228, 203, .5);
  font-size: 13px;
}

.bl-footer-logo img {
  width: 34px;
  height: 34px;
}

.bl-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.bl-footer nav a {
  color: rgba(237, 228, 203, .78);
  text-decoration: none;
  font-weight: 700;
}

.bl-footer nav a:hover {
  color: #fff;
}

.bl-footer p {
  flex-basis: 100%;
  margin: 0;
}

/* ---------- REVEAL ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--bl-ease), transform .9s var(--bl-ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- MOBILE ---------- */

@media (max-width: 800px) {
  .bl-header {
    padding: max(18px, env(safe-area-inset-top)) var(--bl-gutter-r) 18px var(--bl-gutter);
  }

  .bl-header.is-scrolled {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 12px;
  }

  .bl-header-logo img {
    height: 22px;
  }

  .bl-burger span {
    width: 30px;
    height: 4px;
  }

  .bl-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .bl-burger[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .bl-menu {
    grid-template-columns: 1fr;
  }

  .bl-menu-visual {
    display: none;
  }

  .bl-menu-panel {
    padding: calc(96px + env(safe-area-inset-top)) var(--bl-gutter-r) max(32px, env(safe-area-inset-bottom)) var(--bl-gutter);
  }

  .bl-person {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .bl-person {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .bl-person-art {
    position: relative;
    inset: auto;
    height: 72vh;
    height: 72svh;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
  }

  .bl-person-art img {
    transform: translateY(calc(var(--py) * -3%)) scale(2.4);
  }

  .bl-person::after,
  .bl-person-flip::after {
    inset: 0 0 auto;
    height: 72vh;
    height: calc(72svh + 1px);
    background: linear-gradient(0deg, var(--bl-ink) 0%, rgba(5, 5, 5, 0) 38%);
  }

  .bl-person-copy,
  .bl-person-flip .bl-person-copy {
    width: auto;
    margin: -64px 0 0;
    padding: 0 var(--bl-gutter-r) 72px var(--bl-gutter);
  }

  .bl-moments-grid {
    grid-template-columns: 1fr;
  }

  .bl-outro {
    grid-template-columns: 1fr;
  }

  .bl-outro-art {
    max-width: 420px;
  }

  .bl-actions .bl-btn {
    flex: 1 1 200px;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  /* la key art verticale ha già titolo e personaggi centrati */
  .bl-hero {
    --bl-art-h: min(100vw * 800 / 640, 100svh);
    --bl-cta-h: 270px;
  }

  .bl-hero-art {
    aspect-ratio: 640 / 800;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .bl-hero {
    --p: 1 !important;
    height: 100vh;
    height: 100svh;
  }

  .js .bl-intro-logo {
    display: none;
  }

  .js .bl-hero .bl-hero-cta {
    visibility: visible;
    pointer-events: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bl-trailer,
  .bl-trailer-frame,
  .bl-menu,
  .bl-menu-nav a,
  .bl-menu-visual img {
    transition: none;
  }

  .bl-moment img {
    transition: none;
  }
}
