:root {
  --fondo: #000000;
  --carta: #ffffff;
  --inchiostro: #000000;
  --film: #3D7BFF;
  --testo: 'Archivo Variable', 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--fondo); }
body { font-family: var(--testo); color: var(--carta); -webkit-font-smoothing: antialiased; }

.palco { position: relative; width: 100vw; height: 100vh; overflow: hidden; background: var(--fondo); }

/* ---------- the frames: one per film, the inset inside slides the other way ---------- */
.quadri, .quadro, .quadro__inset, .quadro__scena { position: absolute; inset: 0; }
.quadro { overflow: hidden; visibility: hidden; }
.quadro.is-visibile { visibility: visible; }
.quadro__scena { inset: -3%; }
.scena { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; }

.grana { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.11; mix-blend-mode: overlay; pointer-events: none; }
.vignetta {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 42%);
}

/* ---------- the halves: previous and next ---------- */
.meta { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; background: transparent; z-index: 2; cursor: pointer; }
.meta--prima { left: 0; }
.meta--dopo { right: 0; }
.meta:focus-visible { outline: 1px solid var(--carta); outline-offset: -8px; }
@media (hover: hover) and (pointer: fine) { .meta { cursor: none; } }

/* ---------- the bar at the top ---------- */
.testa {
  position: absolute; z-index: 4; left: 50%; top: clamp(10px, 2.6vh, 24px);
  width: min(486px, calc(100vw - 32px)); transform: translateX(-50%);
  display: grid; gap: 3px; pointer-events: none;
}
.barra {
  position: relative; height: clamp(42px, 6.4vh, 50px); border-radius: 3px; overflow: hidden;
  display: flex; align-items: center; gap: 14px; padding: 0 16px; color: var(--inchiostro);
}
.barra__fondo { position: absolute; inset: 0; background: var(--carta); }
.barra > *:not(.barra__fondo) { position: relative; }
.hamburger { width: 22px; height: 10px; display: grid; align-content: space-between; }
.hamburger i { display: block; height: 1.5px; background: currentColor; }
.marchio { font-weight: 860; font-stretch: 125%; font-size: 17px; letter-spacing: 0.04em; line-height: 1; }
.icone { margin-left: auto; display: flex; gap: 12px; }
.icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.biglietto {
  height: clamp(34px, 5.2vh, 42px); border-radius: 3px; background: var(--inchiostro); color: var(--carta);
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px; overflow: hidden;
}
.biglietto__testo { font-weight: 700; font-stretch: 100%; font-size: 12.5px; letter-spacing: 0.02em; text-transform: uppercase; display: inline-block; }
.biglietto__freccia { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the caption: state, title, play, year ---------- */
.didascalia {
  position: absolute; z-index: 3; left: clamp(16px, 3.4vw, 48px); right: clamp(16px, 3.4vw, 48px);
  bottom: clamp(44px, 9vh, 92px); pointer-events: none;
}
.stato { margin-bottom: clamp(6px, 1.4vh, 14px); overflow: hidden; }
.stato span {
  display: inline-block; font-size: clamp(10px, 1.5vh, 13px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 2px 6px 1px; line-height: 1.2;
}
.titolo {
  font-weight: 880; font-stretch: 62%; text-transform: uppercase; line-height: 0.84; letter-spacing: -0.01em;
  font-size: clamp(46px, min(13.5vw, 19vh), 230px); max-width: 15ch;
}
.titolo .parola { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-top: 0.04em; margin-top: -0.04em; }
.titolo .lettera { display: inline-block; will-change: transform; }
.sotto { display: flex; align-items: center; gap: 16px; margin-top: clamp(12px, 2.6vh, 28px); }
.play {
  pointer-events: auto; border: 0; background: none; color: var(--carta); cursor: pointer;
  width: clamp(28px, 5vh, 44px); height: clamp(32px, 5.8vh, 50px); padding: 0;
}
.play svg { width: 100%; height: 100%; fill: transparent; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; overflow: visible; transition: fill 0.3s cubic-bezier(.19, 1, .22, 1); }
.play:focus-visible { outline: 1px solid var(--carta); outline-offset: 6px; }
@media (hover: hover) { .play:hover svg { fill: var(--carta); } }
.anno { font-size: clamp(10px, 1.5vh, 13px); font-weight: 600; letter-spacing: 0.06em; opacity: 0.7; overflow: hidden; display: inline-block; }

/* ---------- the marks and the progress bar ---------- */
.segni {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(18px, 3.8vh, 36px); transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; pointer-events: none;
}
.segno { display: block; width: 14px; height: 2px; background: var(--carta); opacity: 0.4; border-radius: 1px; }
.avanzamento { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.avanzamento span { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--carta); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- the arrow cursor ---------- */
.cursore { position: fixed; z-index: 6; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; opacity: 0; color: var(--film); }
.cursore svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cursore .cursore__alone { stroke: var(--carta); stroke-width: 4.5; opacity: 0.85; }
@media (hover: none), (pointer: coarse) { .cursore { display: none; } }
