/* ============================================================================
   Tenet · identità del sito (cinematografica). Si carica dopo style.css.
   ============================================================================ */
:root {
    --display: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --red: #e8262d;
    --red2: #ff3b30;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body.site { background: #070809; font-size: 15px; }

/* grana da pellicola su tutto il sito */
body::before {
    content: ''; position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* tendina rossa tra una pagina e l'altra */
html::after {
    content: ''; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
    background: linear-gradient(90deg, #0a0b0c 0 70%, var(--red) 70% 100%);
    transform: translateX(-105%); transition: transform .42s var(--ease);
}
html.leaving::after { transform: translateX(0); }
html:not(.ready) body.site main { opacity: 0; }
body.site main { transition: opacity .5s ease; }

.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; line-height: .92; }
.kicker { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.btn.lg { padding: 15px 28px; font-size: 15px; border-radius: 12px; }
.btn.primary { box-shadow: 0 10px 40px rgba(232, 38, 45, .35); }
.btn.primary:hover { box-shadow: 0 14px 50px rgba(232, 38, 45, .55); transform: translateY(-1px); }
.btn.outline { background: transparent; border-color: rgba(255, 255, 255, .22); }
.btn.outline:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

/* ── comparsa allo scroll ── */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.in .split-line > span, .split-line.in > span { transform: none; }

/* ── header ── */
.hd {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 74px; padding: 0 clamp(16px, 4vw, 48px);
    display: flex; align-items: center; gap: 28px; transition: background .3s, height .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.hd.scrolled { height: 62px; background: rgba(7, 8, 9, .82); backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .06); }
.hd-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; letter-spacing: .14em; }
.hd-brand img { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.hd-brand:hover img { transform: rotate(-120deg); }
.hd-nav { display: flex; gap: 4px; margin: 0 auto; }
.hd-nav a { position: relative; padding: 8px 14px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .62); transition: color .2s; }
.hd-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.hd-nav a:hover, .hd-nav a.active { color: #fff; }
.hd-nav a:hover::after, .hd-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.hd-user { position: relative; display: flex; align-items: center; gap: 12px; }
.hd-me { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 40px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); cursor: pointer; }
.hd-me img, .hd-ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg4); display: block; }
.hd-me b { font-size: 13.5px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-me i { font-style: normal; font-size: 10px; color: var(--muted); }
.hd-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; border-radius: 14px;
    background: rgba(16, 18, 21, .98); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    display: flex; flex-direction: column; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .2s;
}
.hd-menu.show { opacity: 1; transform: none; pointer-events: auto; }
.hd-menu a, .hd-menu button { text-align: left; padding: 10px 12px; border-radius: 9px; background: none; border: 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.hd-menu a:hover, .hd-menu button:hover { background: var(--bg3); }
.hd-menu button { color: var(--danger); }
.hd-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; flex-direction: column; justify-content: center; gap: 6px; align-items: center; cursor: pointer; }
.hd-burger span { width: 18px; height: 2px; background: #fff; transition: .3s; }
@media (max-width: 900px) {
    .hd-burger { display: flex; margin-left: auto; }
    .hd-user, .hd-login { order: 2; }
    .hd-burger { order: 3; margin-left: 0; }
    .hd-user { margin-left: auto; }
    .hd-me b, .hd-me i, .hd-login span, .hd .live { display: none; }
    .hd-nav {
        position: fixed; inset: 62px 0 auto 0; flex-direction: column; gap: 0; padding: 10px 16px 20px; margin: 0;
        background: rgba(7, 8, 9, .97); border-bottom: 1px solid var(--line2); transform: translateY(-120%); transition: transform .4s var(--ease);
    }
    .hd-nav a { font-family: var(--display); font-size: 30px; text-transform: uppercase; padding: 10px 4px; color: #fff; }
    .hd-nav a::after { display: none; }
    .hd.open { background: rgba(7, 8, 9, .97); }
    .hd.open .hd-nav { transform: none; }
    .hd.open .hd-burger span:first-child { transform: translateY(4px) rotate(45deg); }
    .hd.open .hd-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ── hero ── */
.hero-x { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.hero-x canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-x::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(7, 8, 9, .75) 80%), linear-gradient(transparent 70%, #070809); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 20px; transform: translateY(-4vh); }
.hero-logo { width: 74px; height: 74px; opacity: 0; animation: logoIn 1.4s .2s var(--ease) forwards; filter: drop-shadow(0 0 40px rgba(232, 38, 45, .6)); }
@keyframes logoIn { from { opacity: 0; transform: scale(.6) rotate(-60deg); } to { opacity: 1; transform: none; } }
.hero-title { font-family: var(--display); font-size: clamp(88px, 17vw, 250px); line-height: .82; letter-spacing: .04em; display: flex; margin-bottom: clamp(10px, 2vw, 26px); }
.hero-title span {
    display: inline-block; opacity: 0; transform: translateY(40%) scaleY(1.4); filter: blur(12px);
    /* riflesso rosso che attraversa le lettere una dopo l'altra */
    background: linear-gradient(100deg, #eef1f3 42%, #ff3b30 50%, #eef1f3 58%) 160% 0 / 320% 100% no-repeat, #eef1f3;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: letterIn 1.2s var(--ease) forwards, sweep 7s ease-in-out infinite;
}
.hero-title span:nth-child(1) { animation-delay: .95s, 2.6s; }
.hero-title span:nth-child(2) { animation-delay: .7s, 2.72s; }
.hero-title span:nth-child(3) { animation-delay: .45s, 2.84s; }
.hero-title span:nth-child(4) { animation-delay: .7s, 2.96s; }
.hero-title span:nth-child(5) { animation-delay: .95s, 3.08s; }
@keyframes letterIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes sweep { 0% { background-position: 160% 0, 0 0; } 22%, 100% { background-position: -60% 0, 0 0; } }
.hero-sub { font-size: clamp(15px, 1.6vw, 19px); color: rgba(255, 255, 255, .72); max-width: 560px; opacity: 0; animation: fadeUp 1s 1.4s var(--ease) forwards; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fadeUp 1s 1.65s var(--ease) forwards; }
.hero-meta { position: absolute; bottom: 34px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 clamp(16px, 4vw, 48px); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .2em; color: rgba(255, 255, 255, .45); text-transform: uppercase; opacity: 0; animation: fadeUp 1s 2s forwards; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--red), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 1.8s infinite; }
@keyframes drip { to { top: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
/* bande cinema all'apertura */
.bars::before, .bars::after { content: ''; position: fixed; left: 0; right: 0; height: 13vh; background: #000; z-index: 60; animation: barOut 1.6s .3s var(--ease) forwards; }
.bars::before { top: 0; } .bars::after { bottom: 0; animation-name: barOutB; }
@keyframes barOut { to { transform: translateY(-100%); } }
@keyframes barOutB { to { transform: translateY(100%); } }

/* ── nastro scorrevole ── */
.marquee { border-block: 1px solid rgba(255, 255, 255, .07); background: #0b0c0e; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin: 10px 0 0; }
.marquee div { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-size: 34px; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span:nth-child(odd) { color: #fff; -webkit-text-stroke: 0; }
.marquee span::after { content: '✦'; color: var(--red); -webkit-text-stroke: 0; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sezioni ── */
.sec { position: relative; padding: clamp(80px, 12vw, 150px) clamp(16px, 5vw, 64px); }
.wrap { width: min(1200px, 100%); margin: 0 auto; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(48px, 7vw, 100px); line-height: .9; text-transform: uppercase; margin-top: 16px; }
.sec-head h2 em, .chapter h2 em, .page-hero h1 em { font-style: normal; color: var(--red); }
.sec-head p { color: rgba(255, 255, 255, .62); font-size: 17px; max-width: 480px; justify-self: end; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; } }

.bignum { position: absolute; right: clamp(10px, 4vw, 60px); top: 40px; font-family: var(--display); font-size: clamp(140px, 22vw, 320px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06); pointer-events: none; user-select: none; }

/* feature card */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feats { grid-template-columns: 1fr; } }
.feat {
    position: relative; padding: 30px 28px 32px; border-radius: 20px; overflow: hidden; min-height: 250px;
    background: linear-gradient(160deg, #121418, #0b0c0e); border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .4s var(--ease), border-color .3s; transform-style: preserve-3d; display: flex; flex-direction: column;
}
.feat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 38, 45, .16), transparent 45%); opacity: 0; transition: opacity .3s; }
.feat:hover { border-color: rgba(232, 38, 45, .35); }
.feat:hover::before { opacity: 1; }
.feat .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(232, 38, 45, .1); border: 1px solid rgba(232, 38, 45, .3); color: var(--red); margin-bottom: auto; }
.feat .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: var(--display); font-size: 30px; text-transform: uppercase; margin: 28px 0 8px; line-height: 1; }
.feat p { color: rgba(255, 255, 255, .6); font-size: 14.5px; }
.feat .no { position: absolute; top: 24px; right: 26px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255, 255, 255, .25); }
.feat.wide { grid-column: span 2; }
@media (max-width: 620px) { .feat.wide { grid-column: auto; } }

/* statistiche */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 70px; }
.stats div { padding: 28px 10px 0; border-right: 1px solid rgba(255, 255, 255, .08); }
.stats div:last-child { border-right: 0; }
.stats b { font-family: var(--display); font-size: clamp(44px, 6vw, 76px); line-height: 1; display: block; }
.stats b sup { color: var(--red); font-size: .45em; vertical-align: top; }
.stats span { color: rgba(255, 255, 255, .5); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(2) { border-right: 0; } }

/* percorso d'ingresso */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.path::before { content: ''; position: absolute; top: 31px; left: 4%; right: 4%; height: 1px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 6px, transparent 6px 12px); }
.path .p { position: relative; padding: 0 18px; }
.path .p b { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #0b0c0e; border: 1px solid rgba(255, 255, 255, .15); font-family: var(--display); font-size: 26px; position: relative; z-index: 1; transition: .4s; }
.path .p:hover b, .path .p.hot b { background: var(--red); border-color: var(--red); box-shadow: 0 0 40px rgba(232, 38, 45, .5); }
.path h4 { font-family: var(--display); font-size: 28px; text-transform: uppercase; margin: 22px 0 8px; }
.path p { color: rgba(255, 255, 255, .58); font-size: 14.5px; }
@media (max-width: 860px) { .path { grid-template-columns: 1fr 1fr; row-gap: 40px; } .path::before { display: none; } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }

/* call to action finale */
.cta-x { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(50px, 8vw, 100px) clamp(24px, 6vw, 80px); text-align: center; border: 1px solid rgba(232, 38, 45, .25);
    background: radial-gradient(800px 400px at 50% 120%, rgba(232, 38, 45, .45), transparent 70%), linear-gradient(#0e0f12, #0a0b0d); }
.cta-x h2 { font-family: var(--display); font-size: clamp(54px, 9vw, 130px); line-height: .88; text-transform: uppercase; }
.cta-x p { color: rgba(255, 255, 255, .65); margin: 18px auto 30px; max-width: 520px; font-size: 17px; }
.cta-x .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-x .rings { position: absolute; inset: 0; pointer-events: none; }
.cta-x .rings i { position: absolute; left: 50%; top: 110%; border: 1px solid rgba(232, 38, 45, .25); border-radius: 50%; transform: translate(-50%, -50%); animation: ring 6s linear infinite; }
.cta-x .rings i:nth-child(2) { animation-delay: 2s; } .cta-x .rings i:nth-child(3) { animation-delay: 4s; }
@keyframes ring { from { width: 0; height: 0; opacity: 1; } to { width: 1600px; height: 1600px; opacity: 0; } }

/* ── pagine interne: testata ── */
.page-hero { position: relative; padding: 170px clamp(16px, 5vw, 64px) 70px; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 420px at 80% 0%, rgba(232, 38, 45, .22), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(232, 38, 45, .08), transparent 60%); }
.page-hero h1 { font-family: var(--display); font-size: clamp(64px, 12vw, 180px); line-height: .85; text-transform: uppercase; margin-top: 18px; }
.page-hero p { color: rgba(255, 255, 255, .65); font-size: 18px; max-width: 620px; margin-top: 22px; }
.page-hero .ghost { position: absolute; right: -2vw; bottom: -4vw; z-index: -1; font-family: var(--display); font-size: 30vw; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .05); text-transform: uppercase; white-space: nowrap; }

/* ── ambientazione ── */
.chapter { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(60px, 9vw, 120px) 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chapter:nth-child(even) .art { order: 2; }
.chapter .art { aspect-ratio: 4 / 3.2; border-radius: 22px; overflow: hidden; position: relative; border: 1px solid rgba(255, 255, 255, .08); background: #0b0c0e; }
.chapter .art svg { width: 100%; height: 100%; display: block; }
.chapter h2 { font-family: var(--display); font-size: clamp(44px, 6vw, 84px); line-height: .9; text-transform: uppercase; margin: 14px 0 18px; }
.chapter p { color: rgba(255, 255, 255, .68); font-size: 16.5px; line-height: 1.75; margin-bottom: 14px; }
.chapter ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.chapter li { display: flex; gap: 12px; color: rgba(255, 255, 255, .78); }
.chapter li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; background: var(--red); transform: rotate(45deg); }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } .chapter:nth-child(even) .art { order: 0; } }
.art .float { animation: floaty 7s ease-in-out infinite; transform-origin: center; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.art .win { animation: flick 4s steps(2) infinite; }
@keyframes flick { 50% { opacity: .25; } }
.art .beam { transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.art .wave { animation: wave 5s linear infinite; }
@keyframes wave { to { transform: translateX(-120px); } }

/* ── regolamento ── */
.rules { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.rules-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.rules-nav input { margin-bottom: 14px; }
.rules-nav a { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; color: rgba(255, 255, 255, .55); font-weight: 600; font-size: 14px; border-left: 2px solid transparent; transition: .2s; }
.rules-nav a b { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255, 255, 255, .3); }
.rules-nav a:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.rules-nav a.active { color: #fff; border-left-color: var(--red); background: rgba(232, 38, 45, .08); }
.rule-ch { padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .07); scroll-margin-top: 90px; }
.rule-ch > header { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; }
.rule-ch > header span { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--red); }
.rule-ch > header h2 { font-family: var(--display); font-size: clamp(34px, 4.5vw, 54px); text-transform: uppercase; line-height: 1; }
.rule-ch > p, .rule-ch > ul { color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.rule { padding: 20px 22px; border-radius: 14px; background: #0d0f11; border: 1px solid rgba(255, 255, 255, .06); margin-bottom: 10px; scroll-margin-top: 90px; }
.rule h3 { font-size: 16.5px; display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.rule h3 code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--red); background: rgba(232, 38, 45, .1); padding: 2px 7px; border-radius: 6px; }
.rule p, .rule li { color: rgba(255, 255, 255, .68); font-size: 15px; line-height: 1.7; }
.rule ul, .rule-ch > ul { padding-left: 20px; margin-top: 6px; }
.rule p + p { margin-top: 8px; }
.rule strong, .rule-ch strong { color: #fff; }
mark { background: rgba(232, 38, 45, .35); color: #fff; border-radius: 3px; padding: 0 2px; }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } .rules-nav { position: static; max-height: none; } }

/* ── team ── */
.team-group { margin-bottom: 70px; }
.team-group h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 18px; }
.team-group h2::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.member { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, #14161a, #0b0c0e); border: 1px solid rgba(255, 255, 255, .07); padding: 26px 22px 24px; text-align: center; transition: transform .4s var(--ease), border-color .3s; }
.member::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 38, 45, .18), transparent 50%); opacity: 0; transition: .3s; }
.member:hover { border-color: rgba(232, 38, 45, .4); }
.member:hover::before { opacity: 1; }
.member .av { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; position: relative; display: grid; place-items: center; font-family: var(--display); font-size: 38px; background: #1b1e23; }
.member .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member .av::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(232, 38, 45, .5); border-top-color: transparent; border-bottom-color: transparent; transition: transform .8s var(--ease); }
.member:hover .av::after { transform: rotate(180deg); }
.member h3 { font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1; }
.member .role { display: inline-block; margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(232, 38, 45, .35); }
.member p { color: rgba(255, 255, 255, .55); font-size: 13.5px; margin-top: 12px; }

/* ultima sezione prima del footer */
main > .sec:last-child { padding-bottom: 40px; }
@media (max-width: 700px) {
    .hero-meta > span { display: none; }
    .hero-meta { justify-content: center; }
    .hero-cta .btn { width: 100%; }
    .hero-cta { width: min(340px, 100%); flex-direction: column; }
}
@media (max-width: 900px) { .hd-login { margin-left: auto; } .hd-login + .hd-burger { margin-left: 0; } }

/* ── footer ── */
.ft { position: relative; margin-top: 60px; padding: 60px clamp(16px, 5vw, 64px) 30px; border-top: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.ft-glow { position: absolute; left: 50%; bottom: -320px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(232, 38, 45, .25), transparent); pointer-events: none; }
.ft-inner { width: min(1200px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; }
.ft-brand { display: flex; align-items: center; gap: 12px; }
.ft-brand img { width: 44px; height: 44px; }
.ft-brand b { font-family: var(--display); font-size: 28px; letter-spacing: .12em; display: block; line-height: 1; }
.ft-brand span { color: var(--muted); font-size: 12.5px; }
.ft nav { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-left: auto; }
.ft nav a { color: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 600; }
.ft nav a:hover { color: #fff; }
.ft-legal { width: min(1200px, 100%); margin: 40px auto 0; color: rgba(255, 255, 255, .3); font-size: 12px; position: relative; }

/* ── area candidatura e pannello staff dentro il nuovo header ── */
body.site .page { padding-top: 110px; }
body.site .staff { margin-top: 62px; height: calc(100vh - 62px); }
body.site .staff ~ * { display: none; }
body.site .wizard-head h1 { font-family: var(--display); font-size: clamp(48px, 7vw, 86px); text-transform: uppercase; font-weight: 400; line-height: .9; }
body.site .card h2, body.site .step-title h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; letter-spacing: .01em; line-height: 1; }
body.site .detail h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 46px; line-height: 1; }
body.site .card { border-radius: 20px; background: linear-gradient(170deg, #111316, #0c0d10); border-color: rgba(255, 255, 255, .08); }
body.site .app-card { border-radius: 16px; background: #0f1114; transition: border-color .3s, transform .3s var(--ease); }
body.site .app-card:hover { border-color: rgba(255, 255, 255, .18); }
body.site .app-card .head h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; }
body.site .stepper li { border-radius: 14px; }
body.site .hd .live { font-size: 12px; }
.app-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 4px; }
.app-intro h1 { font-family: var(--display); font-size: clamp(48px, 7vw, 92px); text-transform: uppercase; line-height: .92; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-title span, .hero-sub, .hero-cta, .hero-meta, .hero-logo { opacity: 1 !important; transform: none !important; filter: none !important; }
    [data-reveal], .split-line > span { opacity: 1 !important; transform: none !important; }
}

/* ── video della home ── */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: saturate(1.05) contrast(1.05) brightness(.62); transform: scale(1.04); animation: heroZoom 30s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-x::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7, 8, 9, .55), transparent 30%, transparent 70%, rgba(7, 8, 9, .55)), linear-gradient(180deg, rgba(7, 8, 9, .5), transparent 25%, transparent 60%, #070809 100%), radial-gradient(ellipse at 50% 60%, rgba(232, 38, 45, .18), transparent 60%); }
.hero-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 3px); }
.hero-sub { text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.hero-title { filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .55)); }

/* ── striscia di fotogrammi ── */
.reel { overflow: hidden; padding: 70px 0 10px; }
.reel-track { display: flex; gap: 18px; width: max-content; animation: reel 60s linear infinite; padding-left: 18px; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel figure { position: relative; width: clamp(240px, 26vw, 380px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); flex-shrink: 0; transform: rotate(-1.2deg); transition: transform .5s var(--ease); }
.reel figure:nth-child(even) { transform: rotate(1.2deg) translateY(18px); }
.reel figure:hover { transform: scale(1.04) rotate(0); z-index: 2; }
.reel img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); transition: filter .4s; }
.reel figure:hover img { filter: saturate(1.1); }
.reel figcaption { position: absolute; left: 12px; bottom: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px #000; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ── foto dell'ambientazione ── */
.art.photo { margin: 0; }
.art.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 1.6s var(--ease), filter .6s; filter: saturate(.95) contrast(1.06); }
.art.photo.in img { transform: scale(1.02); }
.art.photo:hover img { transform: scale(1.06); filter: saturate(1.1) contrast(1.08); }
.art.photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 9, .75)), linear-gradient(90deg, rgba(232, 38, 45, .12), transparent 40%); }
.art.photo figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.art.photo::before { content: ''; position: absolute; inset: 12px; z-index: 1; pointer-events: none; border: 1px solid rgba(255, 255, 255, .0);
    background: linear-gradient(#fff, #fff) top left / 18px 1px no-repeat, linear-gradient(#fff, #fff) top left / 1px 18px no-repeat,
                linear-gradient(#fff, #fff) top right / 18px 1px no-repeat, linear-gradient(#fff, #fff) top right / 1px 18px no-repeat,
                linear-gradient(#fff, #fff) bottom left / 18px 1px no-repeat, linear-gradient(#fff, #fff) bottom left / 1px 18px no-repeat,
                linear-gradient(#fff, #fff) bottom right / 18px 1px no-repeat, linear-gradient(#fff, #fff) bottom right / 1px 18px no-repeat; opacity: .55; }

/* titoli su più righe: un filo d'aria tra le righe, così non si toccano */
.split-line { padding-top: .06em; margin-top: -.02em; }
.sec-head h2, .page-hero h1, .chapter h2, .cta-x h2 { line-height: .95; }
