:root {
  --bianco: #ffffff;
  --nero: #000000;
  --inchiostro: #0b0b0c;
  --riga: rgba(0, 0, 0, 0.1);
  --riga-viva: rgba(0, 0, 0, 0.24);
  --bordo: rgba(0, 0, 0, 0.05);
  --accento: #3d7bff;
  --carta: #f3f3f3;
  --larga: min(372px, calc(100vw - 32px));
  --alta: 50px;
  --cima: clamp(12px, 4.2vh, 35px);
  --fila: clamp(34px, 8.6vh, 50px);
  --voce: clamp(18px, 5.2vh, 24px);
  --spazio: clamp(14px, 4vh, 24px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--nero);
  color: var(--inchiostro);
  font-family: 'Instrument Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.nascosto { position: absolute; width: 0; height: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.palco { position: relative; width: 100%; height: 100vh; overflow: hidden; isolation: isolate; }

/* the film page behind the bar */
.pagina { position: absolute; inset: 0; overflow: hidden; }
.pagina__foto { position: absolute; left: -2%; top: -2%; width: 104%; height: 104%; display: block; object-fit: cover; object-position: 50% 62%; }
/* a soft shade at the bottom left, so the white title reads on the bright sea */
.pagina__ombra {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 8, 12, 0.62) 0%, rgba(6, 8, 12, 0.18) 42%, rgba(6, 8, 12, 0) 62%),
    linear-gradient(to bottom, rgba(6, 8, 12, 0.22) 0%, rgba(6, 8, 12, 0) 22%);
}
.pagina__grana { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: overlay; pointer-events: none; }
.pagina__testo {
  position: absolute; left: clamp(16px, 4vw, 48px); bottom: clamp(70px, 17vh, 150px);
  color: var(--bianco);
}
.etichetta {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.9); padding: 2px 5px 1px; line-height: 1.1;
}
.film {
  font-family: 'Archivo Variable', sans-serif; font-variation-settings: 'wdth' 62; font-weight: 800;
  text-transform: uppercase; line-height: 0.82; letter-spacing: -0.02em;
  font-size: min(15vw, 19vh, 168px); margin-top: 0.12em;
}
.film__riga { font-size: 13px; opacity: 0.78; margin-top: 10px; letter-spacing: -0.01em; }
.play {
  position: absolute; left: clamp(16px, 4vw, 48px); bottom: clamp(18px, 5vh, 44px);
  width: clamp(22px, 5vh, 40px); height: auto; fill: none; stroke: var(--bianco); stroke-width: 1.5; overflow: visible;
}

.velo { position: absolute; inset: 0; background: var(--nero); opacity: 0; pointer-events: none; }
.palco.aperto .velo { pointer-events: auto; }

/* the bar and its panel */
.testata {
  position: absolute; top: var(--cima); left: 0; right: 0; margin: 0 auto; width: var(--larga); z-index: 2;
}
.barra {
  position: relative; z-index: 2; height: var(--alta); background: var(--bianco); border: 1px solid var(--bordo);
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 8px 24px -14px rgba(0, 0, 0, 0.35);
}
.barra__riga {
  position: absolute; top: 0; left: 0; right: 0; height: calc(var(--alta) - 2px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.gruppo { display: flex; align-items: center; }
.gruppo--sx { gap: 15px; }
.gruppo--dx { gap: 4px; }
.ham { width: 25px; height: 24px; display: grid; place-items: center; border-radius: 3px; }
.ham svg { display: block; overflow: visible; }
.ham line { stroke: currentColor; stroke-width: 1; }
.marchio {
  font-family: 'Archivo Variable', sans-serif; font-weight: 800; font-size: 21px; line-height: 1;
  font-variation-settings: 'wdth' 70; letter-spacing: 0.01em; display: inline-flex; overflow: hidden; padding: 2px 0;
}
.marchio span { display: inline-block; }
.icona { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 3px; }
.icona svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.ham:focus-visible, .icona:focus-visible, .marchio:focus-visible, .voci a:focus-visible, .biglietti:focus-visible {
  outline: 1.5px solid var(--accento); outline-offset: 2px;
}

.voci { position: absolute; left: 0; right: 0; top: var(--alta); padding: var(--spazio) 24px var(--spazio); visibility: hidden; }
.voci ul { list-style: none; }
.voci li { position: relative; }
.voci li::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--riga);
  transform-origin: left center; transform: scaleX(var(--linea, 1)); transition: background-color 0.3s;
}
.voci li.viva::before { background: var(--riga-viva); }
.voci a { display: flex; align-items: center; height: var(--fila); gap: 0; position: relative; }
.voce__freccia {
  position: absolute; left: 0; top: 50%; width: 13px; height: 11px; margin-top: -5.5px; color: var(--accento);
  opacity: 0; display: block;
}
.voce__freccia svg { display: block; }
.voce__testo {
  display: block; font-size: var(--voce); font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  font-variation-settings: 'wdth' 100;
}
.piede {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: calc(var(--spazio) * 0.75);
  font-size: 12px; letter-spacing: -0.01em; color: rgba(0, 0, 0, 0.55);
}
.piede__icone { display: inline-flex; gap: 8px; color: var(--inchiostro); }
.piede__icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }

.biglietti {
  position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--alta) + 2px);
  display: flex; align-items: center; gap: 14px; height: 46px;
  background: var(--nero); color: var(--bianco); border-radius: 3px; padding: 0 16px 0 7px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
}
.biglietti__foto { width: 52px; height: 32px; border-radius: 2px; display: block; overflow: hidden; flex: none; }
.biglietti__foto img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 60% 55%; }
.biglietti__freccia { margin-left: auto; color: var(--bianco); }

.puntatore {
  position: absolute; left: 0; top: 0; width: 20px; height: 24px; z-index: 5; pointer-events: none; opacity: 0;
  fill: var(--nero); stroke: var(--bianco); stroke-width: 1.3; stroke-linejoin: round; overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

@media (hover: hover) {
  .icona:hover svg { stroke-width: 1.7; }
}
