/* Stile Cinema: base riusabile. Colori e caratteri si cambiano nelle variabili qui sotto. */
:root {
  --c-fondo: #14100c;      /* fondo scuro del video */
  --c-carta: #f7f1e8;      /* sezioni chiare */
  --c-testo: #2a211a;
  --c-accento: #d8893b;
  --c-chiaro: #fff8ee;
  --f-titoli: Georgia, "Times New Roman", serif;
  --f-testo: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--f-testo); color: var(--c-testo); background: var(--c-carta); }
img { max-width: 100%; height: auto; display: block; }

/* Sezione video: alta (--cine-len) con un palco fisso dentro */
.cine { position: relative; height: var(--cine-len, 400vh); background: var(--c-fondo); }
.cine-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine-canvas, .cine-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-poster { transition: opacity .6s; }
.cine-poster.cine-nascosto { opacity: 0; }
.cine-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%); }
.cine-beat { position: absolute; left: 6vw; right: 6vw; bottom: 14vh; color: var(--c-chiaro); opacity: 0;
  max-width: 760px; will-change: opacity, transform; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.cine-beat h1, .cine-beat h2 { font-family: var(--f-titoli); font-weight: 400; line-height: 1.05; margin: 0 0 .3em; }
.cine-beat h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
.cine-beat h2 { font-size: clamp(2rem, 5vw, 4rem); }
.cine-beat p { font-size: clamp(1rem, 1.6vw, 1.3rem); margin: 0; max-width: 36em; }
.cine-occhiello { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--c-accento); margin-bottom: .8em; display: block; }
.cine-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c-accento); transform-origin: 0 50%; transform: scaleX(0); }
.cine-suggerimento { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); color: var(--c-chiaro);
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; opacity: calc(1 - var(--cine-p, 0) * 30); }

/* Senza movimento: locandina fissa e testi impilati uno sotto l'altro */
.cine.cine-calmo { height: auto; }
.cine.cine-calmo .cine-stage { position: relative; height: auto; min-height: 100vh; padding: 30vh 0 10vh; }
.cine.cine-calmo .cine-canvas { display: none; }
.cine.cine-calmo .cine-beat { position: relative; left: auto; right: auto; bottom: auto; margin: 0 6vw 8vh; }

/* Comparsa degli elementi */
.entra { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.entra.dentro { opacity: 1; transform: none; }
.entra.r2 { transition-delay: .12s; } .entra.r3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entra { opacity: 1; transform: none; transition: none; }
}

/* Barra in alto: fondo pieno appena si scorre, il nome non resta sopra le foto */
html { scroll-padding-top: 88px; }
body > header, .nav { transition: background .25s, color .25s; }
html.testata-piena > body > header,
html.testata-piena .nav {
  background: #14100c !important; mix-blend-mode: normal !important; color: #fff8ee !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
html.testata-piena .nav a { color: #fff8ee !important; }
[id], section, h2 { scroll-margin-top: 88px; }
