/* Anime da Macello · Souls to Slaughter — foglio di stile del sito */

:root {
  --ink: #070707;
  --coal: #111111;
  --smoke: #1a1a1a;
  --ash: #8f8f8f;
  --bone: #efede8;
  --blood: #d0142f;
  --blood-deep: #9a0e23;
  --line: rgba(255, 255, 255, 0.1);
  --display: 'Barlow Condensed', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --pad: 20px;
}
@media (min-width: 768px) {
  :root { --pad: 40px; }
}

/* ---------- Lingua: mostra solo la lingua attiva ---------- */
html[data-lang="it"] [data-lang="en"],
html[data-lang="en"] [data-lang="it"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, blockquote, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 1152px; }
.display { font-family: var(--display); text-transform: uppercase; }
.h-xl { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: 60px; }
.h-lg { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: 36px; }
@media (min-width: 768px) {
  .h-xl { font-size: 96px; }
  .h-lg { font-size: 60px; }
}
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; }
.muted { color: var(--ash); }
.red { color: var(--blood); }
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }
.border-t { border-top: 1px solid var(--line); }
.bg-coal { background: var(--coal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grana da pellicola */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-red { background: var(--blood); color: #fff; padding: 8px 24px 8px 8px; }
.btn-red:hover { background: var(--blood-deep); }
.btn-red .dot {
  width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--blood);
  display: flex; align-items: center; justify-content: center;
  transition: transform 150ms var(--ease);
}
.btn-red:hover .dot { transform: scale(1.05); }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.05); padding: 14px 24px; backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); }

/* ---------- Navigazione ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 40; padding: 12px 12px 0; }
@media (min-width: 768px) { .nav-wrap { padding: 16px 24px 0; } }
.nav {
  max-width: 1280px; margin: 0 auto; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(7,7,7,.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(239,237,232,.65); white-space: nowrap; transition: color 150ms var(--ease); }
.nav-links a:hover { color: var(--bone); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); font-size: 12px; font-weight: 600; }
.lang button { padding: 4px 10px; border-radius: 999px; color: rgba(239,237,232,.6); transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed='true'] { background: var(--bone); color: var(--ink); }
.nav-trailer {
  display: none; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--blood); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color 150ms var(--ease);
}
.nav-trailer:hover { background: var(--blood-deep); }
.nav-trailer svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .nav-trailer { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -72px; }
@media (min-width: 768px) { .hero { margin-top: -76px; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 28% center; animation: heroIn 300ms var(--ease) both; }
.hero-bg .shade { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
@media (min-width: 768px) { .hero-bg .shade { background: rgba(0,0,0,.25); } }
.hero-grid { min-height: 860px; display: grid; grid-template-columns: 1fr; align-items: end; padding-top: 160px; padding-bottom: 64px; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; padding-bottom: 96px; } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; animation: rise 300ms var(--ease) 80ms both; }
@media (min-width: 768px) { .hero-copy { grid-column: 2; align-items: center; text-align: center; } }
.hero-copy h1 { width: 100%; margin-top: 24px; }
.hero-copy h1 img { width: 100%; max-width: 540px; height: auto; }
@media (min-width: 768px) { .hero-copy h1 img { margin: 0 auto; } }
.hero-rule { margin-top: 32px; height: 1px; width: 100%; max-width: 384px; background: rgba(255,255,255,.25); }
.hero-by { margin-top: 20px; font-family: var(--display); font-weight: 500; letter-spacing: .35em; text-transform: uppercase; color: rgba(239,237,232,.9); }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) { .hero-ctas { justify-content: center; } }
.hero-genres { margin-top: 32px; color: rgba(239,237,232,.6); }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Allori in scorrimento ---------- */
.laurels { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--coal); padding: 24px 0; }
.marquee { display: flex; width: max-content; align-items: center; gap: 56px; padding-right: 56px; animation: marquee 40s linear infinite; }
.laurels:hover .marquee { animation-play-state: paused; }
.marquee img { height: 80px; width: auto; flex-shrink: 0; }
@media (min-width: 768px) { .marquee img { height: 96px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Logline ---------- */
.logline { padding: 112px 0; }
@media (min-width: 768px) { .logline { padding: 160px 0; } }
.logline p { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.05; font-size: 34px; }
@media (min-width: 640px) { .logline p { font-size: 48px; } }
@media (min-width: 1024px) { .logline p { font-size: 64px; } }
.logline .accent { color: var(--blood); }
.js .reveal .w { opacity: .15; transition: opacity 250ms var(--ease); transition-delay: calc(var(--i) * 12ms); }
.js .reveal.in .w { opacity: 1; }

/* ---------- Trailer ---------- */
.trailer { padding-bottom: 112px; }
@media (min-width: 768px) { .trailer { padding-bottom: 160px; } }
.trailer-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.trailer-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ash); transition: color 150ms var(--ease); }
.trailer-head a:hover { color: var(--bone); }
.trailer-head svg { width: 16px; height: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 24px; background: var(--coal); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; text-align: left; }
.video-cover .pic { position: absolute; inset: 0; }
.video-cover .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.video-cover:hover .pic img { transform: scale(1.02); }
.video-cover .shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.video-cover .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.video-cover .play {
  width: 80px; height: 80px; border-radius: 999px; background: var(--blood); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform 150ms var(--ease);
}
.video-cover .play svg { width: 32px; height: 32px; margin-left: 4px; }
.video-cover:hover .play { transform: scale(1.05); }
.video-cover:active .play { transform: scale(.95); }
@media (min-width: 768px) { .video-cover .play { width: 112px; height: 112px; } .video-cover .play svg { width: 40px; height: 40px; } }
.video-cover .label { font-family: var(--display); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.video-cover .note { position: absolute; left: 20px; right: 20px; bottom: 16px; font-size: 12px; color: rgba(239,237,232,.6); }

/* ---------- Storia ---------- */
.story { display: grid; gap: 56px; }
@media (min-width: 1024px) { .story { grid-template-columns: 1.4fr 1fr; gap: 96px; } }
.story-text { margin-top: 40px; font-size: 18px; font-weight: 300; line-height: 1.65; color: rgba(239,237,232,.8); }
.story-text p + p { margin-top: 24px; }
@media (min-width: 768px) { .story-text { font-size: 20px; } }

.world { display: grid; gap: 12px; align-self: end; }
@media (min-width: 640px) and (max-width: 1023px) { .world { grid-template-columns: 1fr 1fr; } }
.world div { border-radius: 16px; background: var(--smoke); padding: 20px; }
.world dt { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blood); }
.world dd { margin-top: 4px; font-size: 14px; line-height: 1.6; color: rgba(239,237,232,.7); }

/* ---------- Regista ---------- */
.director { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 96px 0; }
.director-photo { width: 280px; height: 380px; border-radius: 16px; object-fit: cover; object-position: top; border: 1px solid var(--line); flex-shrink: 0; }
.director-info { max-width: 560px; }
.director-info h2 { font-family: var(--display); font-weight: 800; font-size: 44px; text-transform: uppercase; line-height: 1; }
@media (min-width: 768px) { .director-info h2 { font-size: 56px; } }
.director-role { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--blood); }
.director-info p.txt { margin-top: 18px; font-size: 16px; font-weight: 300; line-height: 1.65; color: rgba(239,237,232,.75); }

/* ---------- Personaggi ---------- */
.leads { margin-top: 56px; display: grid; gap: 20px; }
@media (min-width: 768px) { .leads { grid-template-columns: 1fr 1fr; } }
.lead { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: var(--ink); }
@media (min-width: 640px) { .lead { aspect-ratio: 16 / 12; } }
.lead img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 300ms var(--ease); }
.lead:hover img { transform: scale(1.03); }
.lead-card { position: absolute; left: 12px; right: 12px; bottom: 12px; border-radius: 16px; padding: 20px; background: rgba(0,0,0,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (min-width: 768px) { .lead-card { padding: 24px; } }
.lead-card h3 { margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 36px; text-transform: uppercase; line-height: 1.05; }
@media (min-width: 768px) { .lead-card h3 { font-size: 48px; } }
.lead-card p.txt { margin-top: 8px; max-width: 32rem; font-size: 15px; line-height: 1.6; color: rgba(239,237,232,.8); }
.cast { margin-top: 20px; display: grid; gap: 20px; }
@media (min-width: 640px) { .cast { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cast { grid-template-columns: repeat(4, 1fr); } }
.cast article { border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.cast .eyebrow { font-size: 12px; color: var(--ash); }
.cast h3 { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; }
.cast p.txt { margin-top: 12px; font-size: 14px; line-height: 1.6; color: rgba(239,237,232,.7); }

/* ---------- Frame dal film ---------- */
.frames { margin-top: 40px; overflow: hidden; }
.frames-track { display: flex; gap: 16px; padding-right: 16px; width: max-content; animation: framesMarquee 55s linear infinite; }
.frames:hover .frames-track { animation-play-state: paused; }
.frames .grain { flex-shrink: 0; width: min(560px, 82vw); overflow: hidden; border-radius: 16px; }
.frames img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
@keyframes framesMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Festival ---------- */
.fest-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fest-head p { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .2em; text-transform: uppercase; color: var(--blood); }
.prizes { margin-top: 56px; display: grid; gap: 20px; }
.prizes.duo { margin-top: 20px; }
@media (min-width: 1024px) { .prizes { grid-template-columns: repeat(3, 1fr); } .prizes.duo { grid-template-columns: repeat(2, 1fr); } }
.prize { display: flex; flex-direction: column; border-radius: 24px; padding: 28px; background: var(--smoke); }
.prize.win { background: var(--blood); color: #fff; }
.prize > img { height: 112px; width: auto; align-self: flex-start; }
.prize .tier { margin-top: 24px; opacity: .8; font-size: 14px; }
.prize h3 { margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 36px; text-transform: uppercase; line-height: .95; }
.prize .where { margin-top: 12px; font-size: 14px; opacity: .85; }
.prize .foot { margin-top: auto; padding-top: 32px; }
.prize .cert-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.1);
  transition: background-color 150ms var(--ease);
}
.prize .cert-btn:hover { background: rgba(255,255,255,.2); }
.prize.win .cert-btn { background: #fff; color: var(--blood); }
.prize.win .cert-btn:hover { background: var(--bone); }
.prize .cert-btn svg { width: 16px; height: 16px; }
.selections { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 640px) { .selections { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .selections { grid-template-columns: repeat(3, 1fr); } }
.selections div { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px; }
.selections img { height: 110px; width: auto; }

/* ---------- Nota del regista ---------- */
.statement { position: relative; isolation: isolate; overflow: hidden; }
.statement .bg { position: absolute; inset: 0; z-index: -1; }
.statement .bg img { width: 100%; height: 100%; object-fit: cover; }
.statement .bg .shade { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.statement .inner { max-width: 1024px; margin: 0 auto; padding: 112px var(--pad); }
@media (min-width: 768px) { .statement .inner { padding-top: 160px; padding-bottom: 160px; } }
.statement blockquote { margin-top: 32px; font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.02; text-transform: uppercase; }
@media (min-width: 768px) { .statement blockquote { font-size: 60px; } }
.statement .cols { margin-top: 48px; display: grid; gap: 24px; font-weight: 300; line-height: 1.65; color: rgba(239,237,232,.8); }
@media (min-width: 768px) { .statement .cols { grid-template-columns: 1fr 1fr; } }
.statement .sign { margin-top: 40px; font-family: var(--display); font-weight: 600; letter-spacing: .35em; text-transform: uppercase; }

/* ---------- Processo ---------- */
.process-top { display: grid; gap: 40px; }
@media (min-width: 1024px) { .process-top { grid-template-columns: 1fr 1fr; gap: 80px; } }
.process-top .intro { margin-top: 32px; max-width: 36rem; font-size: 18px; font-weight: 300; line-height: 1.65; color: rgba(239,237,232,.8); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: end; }
.stats div { border-radius: 16px; background: var(--smoke); padding: 20px; }
.stats dt { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1; }
@media (min-width: 768px) { .stats dt { font-size: 72px; } }
.stats dd { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--ash); }
.steps { margin-top: 64px; display: grid; gap: 12px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.steps .n { width: 40px; height: 40px; border-radius: 999px; background: var(--blood); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; }
.steps h3 { margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; }
.steps .tools { margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--ash); }
.steps p.txt { margin-top: 16px; font-size: 14px; line-height: 1.6; color: rgba(239,237,232,.75); }
.ai-note { margin-top: 24px; font-size: 12px; color: var(--ash); }

/* ---------- Scheda tecnica ---------- */
.specs { display: grid; gap: 56px; padding-top: 96px; padding-bottom: 96px; }
@media (min-width: 1024px) { .specs { grid-template-columns: 1fr 1fr; gap: 96px; } }
.specs h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .03em; text-transform: uppercase; }
.specs dl { margin-top: 24px; }
.specs dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
@media (min-width: 640px) { .specs dl div { grid-template-columns: 200px 1fr; } }
.specs dt { color: var(--ash); }


/* ---------- Footer ---------- */
.footer { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { .footer { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.footer .wm { height: 56px; width: auto; }
.footer .links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
@media (min-width: 768px) { .footer .links { align-items: flex-end; } }
.footer .row { display: flex; flex-wrap: wrap; gap: 20px; color: var(--ash); }
.footer a { transition: color 150ms var(--ease); }
.footer a:hover { color: var(--bone); }
.footer .copy { margin-top: 8px; font-size: 12px; color: rgba(143,143,143,.7); }

/* ---------- Finestra certificato ---------- */
dialog.cert {
  width: min(960px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0;
  background: transparent; color: var(--bone);
}
dialog.cert::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(4px); }
dialog.cert[open] { animation: certIn 220ms var(--ease); }
dialog.cert img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
dialog.cert .cap { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(239,237,232,.8); }
dialog.cert .close { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color 150ms var(--ease); }
dialog.cert .close:hover { background: rgba(255,255,255,.2); }
dialog.cert .close svg { width: 16px; height: 16px; }
@keyframes certIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .frames-track, .hero-bg img, .hero-copy, dialog.cert[open] { animation: none; }
  .js .reveal .w { opacity: 1; transition: none; }
}
