@charset "UTF-8";

/* Layout: scena scura con emblema ufficiale al centro di una rete orbitante (le sei divisioni);
   poi capitoli, bento delle divisioni, organi. Colori ricavati dal logo: blu reale e oro. */
:root {
  --ink: #070b17;
  --ink-2: #0b1226;
  --panel: rgba(14, 22, 46, 0.72);
  --line: rgba(170, 190, 240, 0.14);
  --paper: #eef0f7;
  --paper-dim: #97a1bf;
  --gold: #f2b53a;
  --gold-soft: rgba(242, 181, 58, 0.14);
  --blue: #4a8fff;
  --royal: #1d4f9f;
  --on-gold: #1a1304;
  --nav-bg: rgba(7, 11, 23, 0.8);
  --aurora-a: rgba(29, 79, 159, 0.55);
  --aurora-b: rgba(242, 181, 58, 0.22);
  --f-display: 'EB Garamond', 'Noto Serif', Georgia, serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #eef2fa; --ink-2: #e0e8f6; --panel: rgba(255,255,255,0.72); --line: rgba(20, 40, 90, 0.16);
    --paper: #0d1730; --paper-dim: #4d5a7c; --gold: #a86d00; --gold-soft: rgba(168, 109, 0, 0.12);
    --blue: #1d5bc0; --royal: #1d4f9f; --on-gold: #fff9ec; --nav-bg: rgba(238, 242, 250, 0.84);
    --aurora-a: rgba(74, 143, 255, 0.35); --aurora-b: rgba(242, 181, 58, 0.3); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #eef2fa; --ink-2: #e0e8f6; --panel: rgba(255,255,255,0.72); --line: rgba(20, 40, 90, 0.16);
  --paper: #0d1730; --paper-dim: #4d5a7c; --gold: #a86d00; --gold-soft: rgba(168, 109, 0, 0.12);
  --blue: #1d5bc0; --royal: #1d4f9f; --on-gold: #fff9ec; --nav-bg: rgba(238, 242, 250, 0.84);
  --aurora-a: rgba(74, 143, 255, 0.35); --aurora-b: rgba(242, 181, 58, 0.3); color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--f-body); font-size: 16px; line-height: 1.65; font-weight: 300; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.04; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
p { margin: 0; }
body::before { /* grana sottile */
  content: ''; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursore personalizzato ---------- */
.cur-on, .cur-on a, .cur-on button, .cur-on input, .cur-on label { cursor: none; }
#curDot, #curRing { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; border-radius: 50%; display: none; }
.cur-on #curDot, .cur-on #curRing { display: grid; }
#curDot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
#curRing { width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 1px dashed var(--gold); place-items: center; box-shadow: 0 0 12px var(--gold-soft), inset 0 0 8px var(--gold-soft); animation: ringspin 7s linear infinite; transition: width .3s cubic-bezier(.16,1,.3,1), height .3s cubic-bezier(.16,1,.3,1), margin .3s cubic-bezier(.16,1,.3,1), background .3s, border-color .3s; }
#curRing::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: halo 2.4s ease-out infinite; }
#curRing span { font-family: var(--f-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-gold); opacity: 0; transition: opacity .2s; }
#curRing.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--gold); border-style: solid; animation: none; }
#curRing.hot span { opacity: 1; }
#curRing.hot::before { display: none; }
#curRing.link { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: var(--gold-soft); border-style: solid; animation: none; }
@keyframes ringspin { to { rotate: 360deg; } }
@keyframes halo { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Fisso: glow, filo, capitolo ---------- */
#glow { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(130px circle at var(--mx, 70%) var(--my, 20%), rgba(242, 181, 58, .38), rgba(242, 181, 58, .12) 45%, transparent 72%); mix-blend-mode: screen; }
.fret { position: fixed; right: 14px; top: 90px; bottom: 30px; width: 14px; z-index: 40; pointer-events: none; }
.fret svg { width: 100%; height: 100%; overflow: visible; }
.fret .track { stroke: var(--line); fill: none; stroke-width: 1.4; }
.fret .lit { stroke: var(--gold); fill: none; stroke-width: 1.8; }
.fret .spark { fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.chapter { position: fixed; top: 84px; left: 44px; z-index: 45; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-left: 2px solid var(--gold); background: var(--nav-bg); backdrop-filter: blur(12px); color: var(--paper-dim); opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .4s; pointer-events: none; }
.chapter.on { opacity: 1; transform: none; }
.chapter b { color: var(--paper); font-weight: 500; }

@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) #glow { mix-blend-mode: multiply; background: radial-gradient(130px circle at var(--mx, 70%) var(--my, 20%), rgba(242, 181, 58, .5), rgba(242, 181, 58, .15) 45%, transparent 72%); } }
:root[data-theme="light"] #glow { mix-blend-mode: multiply; background: radial-gradient(130px circle at var(--mx, 70%) var(--my, 20%), rgba(242, 181, 58, .5), rgba(242, 181, 58, .15) 45%, transparent 72%); }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; padding-block: 14px; transition: padding .3s; }
nav.compact .nav-in { padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #f4f1e8; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--gold), 0 0 22px var(--gold-soft); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.brand:hover .brand-logo { transform: rotate(360deg) scale(1.08); }
.brand-logo img { width: 112%; max-width: none; margin-top: -3%; display: block; }
.brand-name { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; line-height: 1; }
.brand-name small { display: block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .18em; color: var(--paper-dim); margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .8rem; letter-spacing: .06em; color: var(--paper-dim); position: relative; padding-block: 4px; transition: color .25s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.more { position: relative; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: .8rem; letter-spacing: .06em; color: var(--paper-dim); cursor: pointer; transition: color .25s; }
.more-btn svg { transition: transform .3s; }
.more:hover .more-btn, .more.open .more-btn { color: var(--paper); }
.more:hover .more-btn svg, .more.open .more-btn svg { transform: rotate(180deg); }
.sub { position: absolute; right: 0; top: 100%; min-width: 210px; list-style: none; margin: 10px 0 0; padding: 8px; background: var(--nav-bg); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.3); opacity: 0; pointer-events: none; translate: 0 8px; transition: opacity .25s, translate .35s cubic-bezier(.16,1,.3,1); }
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.more:hover .sub, .more.open .sub, .more:focus-within .sub { opacity: 1; pointer-events: auto; translate: 0 0; }
.sub a { display: block; padding: 10px 12px; }
.sub a::after { display: none; }
.sub a:hover { background: var(--gold-soft); }
section[id], #rassegna { scroll-margin-top: 70px; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; color: var(--paper-dim); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; padding: 6px 10px; cursor: pointer; transition: background .25s, color .25s; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--paper); padding: 8px 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; cursor: pointer; }

/* ---------- Hero ---------- */
::selection { background: var(--gold); color: var(--on-gold); }
.hero, .marquee, .card, .stats { -webkit-user-select: none; user-select: none; }
.hero { position: relative; padding-block: clamp(56px, 8vw, 100px) clamp(90px, 10vw, 150px); isolation: isolate; overflow: hidden; }
.aurora { position: absolute; inset: -20%; z-index: -3; pointer-events: none; filter: blur(60px); }
.aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: 8%; top: 4%; background: radial-gradient(circle, var(--aurora-a), transparent 65%); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 4%; top: 18%; background: radial-gradient(circle, var(--aurora-b), transparent 65%); animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(6%, 5%, 0) scale(1.18); } }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; will-change: transform, filter; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink), transparent 26%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-in { will-change: transform, opacity; }
.eyebrow { color: var(--blue); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--blue); }
.hero h1 { font-size: clamp(3.6rem, 10.5vw, 8rem); letter-spacing: -.025em; margin-top: 22px; }
.hero h1 .ch { display: inline-block; animation: ignite 1s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes ignite { from { opacity: .06; transform: translateY(.3em) rotateX(60deg); filter: blur(8px); color: var(--gold); } to { opacity: 1; transform: none; filter: none; } }
.greek { display: inline-block; font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--gold); margin-top: 8px; min-width: 14ch; }
.hero .sub { margin-top: 24px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--paper-dim); max-width: 54ch; }
.hero .sub strong { color: var(--paper); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; text-decoration: none; font-size: .85rem; font-weight: 500; letter-spacing: .04em; border: 1px solid var(--gold); transition: translate .25s cubic-bezier(.16,1,.3,1), background .3s, color .3s, box-shadow .3s; position: relative; overflow: hidden; }
.btn.primary { background: var(--gold); color: var(--on-gold); }
.btn.primary:hover { box-shadow: 0 0 36px var(--gold-soft), 0 0 0 4px var(--gold-soft); }
.btn.ghost { color: var(--paper); }
.btn.ghost:hover { background: var(--gold-soft); }
.stats { display: flex; flex-wrap: wrap; margin-top: 48px; border-top: 1px solid var(--line); }
.stat { flex: 1 1 140px; padding: 18px 20px 6px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--paper-dim); }

/* Emblema */
.emblem { position: relative; justify-self: center; width: clamp(200px, 25vw, 340px); aspect-ratio: 1014 / 1254; perspective: 1000px; }
.orbit { position: absolute; inset: -12% -20%; border: 1px dashed var(--line); border-radius: 50%; animation: spin 60s linear infinite; pointer-events: none; }
.orbit.o2 { inset: -22% -32%; border-style: solid; animation-duration: 90s; animation-direction: reverse; }
.orbit::after { content: ''; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.orbit.o2::after { background: var(--blue); box-shadow: 0 0 14px var(--blue); left: auto; right: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.plate { position: absolute; inset: 0; border-radius: 30px; padding: 7%; background: radial-gradient(circle at 30% 20%, #fffdf6, #e9eef8 70%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px var(--gold), 0 0 70px var(--gold-soft); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.16,1,.3,1); overflow: hidden; animation: float 7s ease-in-out infinite; }
.plate.moving { transition: transform .08s linear; }
@keyframes float { 0%,100% { translate: 0 -6px; } 50% { translate: 0 8px; } }
.plate img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; }
.plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%); background-size: 260% 100%; background-position: 140% 0; animation: shine 6s ease-in-out infinite; pointer-events: none; mix-blend-mode: soft-light; }
@keyframes shine { 0%, 60% { background-position: 140% 0; } 100% { background-position: -60% 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; background: var(--ink-2); margin-block: 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); color: transparent; -webkit-text-stroke: 1px var(--paper-dim); padding-right: 36px; white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee span:nth-child(even) { color: var(--gold); -webkit-text-stroke: 0; font-style: normal; }
.marquee span:hover { color: var(--paper); -webkit-text-stroke-color: var(--paper); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
section { position: relative; padding-block: clamp(70px, 10vw, 130px); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 52px; max-width: 780px; }
.sec-head .mono { color: var(--gold); }
.sec-head p { color: var(--paper-dim); max-width: 58ch; }
.reveal { transition: translate .9s cubic-bezier(.16,1,.3,1); }
.js .reveal:not(.in) { translate: 0 28px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; transition: transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--k) * 55ms); }
.js .split:not(.in) .wi { transform: translateY(105%); }

/* Documenti */
.docs { padding-block: 0; margin-top: -10px; }
.doc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; text-decoration: none; position: relative; overflow: hidden; }
.doc + .doc { border-left: 1px solid var(--line); }
.doc::before { content: ''; position: absolute; inset: 0; background: var(--gold-soft); transform: translateY(101%); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.doc:hover::before { transform: none; }
.doc > * { position: relative; }
.doc .mono { color: var(--paper-dim); display: block; margin-bottom: 4px; }
.doc strong { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; }
.doc svg { flex: none; color: var(--gold); transition: transform .3s; }
.doc:hover svg { transform: translate(4px, -4px); }

/* Finalità */
.story { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
.rail { position: sticky; top: 120px; padding-left: 28px; border-left: 1px solid var(--line); }
.rail .big { font-family: var(--f-display); font-style: italic; font-size: 3.6rem; line-height: 1; color: var(--gold); transition: opacity .3s, transform .3s; }
.rail .lbl { margin-top: 16px; color: var(--paper-dim); transition: opacity .3s; }
.rail .bar { margin-top: 24px; height: 2px; background: var(--line); position: relative; }
.rail .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pg, 25%); background: var(--gold); transition: width .6s cubic-bezier(.16,1,.3,1); }
.rail.swap .big, .rail.swap .lbl { opacity: 0; transform: translateY(8px); }
.beats { display: flex; flex-direction: column; }
.beat { min-height: 44vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 28px; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s; }
.beat.cur { opacity: 1; }
.beat h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.beat p { max-width: 54ch; color: var(--paper-dim); }

/* Divisioni: bento con spotlight e tilt */
.divs { background: linear-gradient(var(--ink), var(--ink-2) 20%, var(--ink-2) 80%, var(--ink)); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card { grid-column: span 4; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 26px; min-height: 270px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.16,1,.3,1), border-color .3s, translate .9s cubic-bezier(.16,1,.3,1); transform-style: preserve-3d; }
.card.moving { transition: transform .08s linear, border-color .3s, translate .9s cubic-bezier(.16,1,.3,1); }
.card:nth-child(1) { grid-column: span 5; } .card:nth-child(2) { grid-column: span 7; }
.card:nth-child(4) { grid-column: span 7; } .card:nth-child(5) { grid-column: span 5; }
.card:nth-child(3), .card:nth-child(6) { grid-column: span 4; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 0%), var(--gold-soft), transparent 65%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: 0; transition: opacity .4s; mask-image: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 0%), #000, transparent); -webkit-mask-image: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 0%), #000, transparent); pointer-events: none; }
.card:hover { border-color: var(--gold); }
.card:hover::before, .card:hover::after { opacity: 1; }
.crop { position: absolute; width: 12px; height: 12px; border: 0 solid var(--gold); opacity: 0; transition: opacity .3s, transform .3s; }
.crop.tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; transform: translate(5px, 5px); }
.crop.tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; transform: translate(-5px, 5px); }
.crop.bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; transform: translate(5px, -5px); }
.crop.br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; transform: translate(-5px, -5px); }
.card:hover .crop { opacity: 1; transform: none; }
.card .ico { width: 54px; height: 54px; color: var(--blue); transform: translateZ(40px); }
.card:hover .ico path, .card:hover .ico circle { stroke-dasharray: 1; animation: draw 1.1s cubic-bezier(.16,1,.3,1) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.card h3 { font-size: 2.1rem; margin-top: auto; transform: translateZ(30px); transition: color .3s; }
.card:hover h3 { color: var(--gold); }
.card p { color: var(--paper-dim); font-size: .92rem; max-width: 42ch; transform: translateZ(18px); }
.card .go { color: var(--gold); display: flex; align-items: center; gap: 8px; margin-top: 4px; transform: translateZ(24px); }
.card .go svg { transition: transform .3s; }
.card:hover .go svg { transform: translateX(6px); }

/* Organi */
.director { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 34px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 16px; position: relative; overflow: hidden; }
.director::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--sx, 20%) var(--sy, 50%), var(--gold-soft), transparent 65%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.director:hover::before { opacity: 1; }
.avatar { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-size: 2rem; color: var(--gold); background: var(--gold-soft); flex: none; position: relative; }
.avatar::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed var(--gold); opacity: .5; animation: spin 30s linear infinite; }
.director .mono { color: var(--blue); }
.director h3 { font-size: 2.3rem; margin: 4px 0 6px; }
.director p { color: var(--paper-dim); position: relative; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 56px; }
.two .p { padding: 24px 26px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, translate .4s cubic-bezier(.16,1,.3,1); }
.two .p:hover { border-color: var(--gold); translate: 0 -4px; }
.two .p .mono { color: var(--blue); }
.two .p h4 { font-size: 1.6rem; margin: 6px 0 2px; }
.two .p p { color: var(--paper-dim); font-size: .9rem; }
.com-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.com-head h3 { font-size: 2.1rem; }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--gold); padding: 8px 2px; min-width: min(340px, 100%); transition: box-shadow .3s; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--paper); font: inherit; font-size: .95rem; outline: none; }
.search input::placeholder { color: var(--paper-dim); }
.search:focus-within { box-shadow: 0 2px 0 var(--gold); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mem { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; animation: pop .5s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.mem:hover { background: var(--gold-soft); }
.mem .ini { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: .68rem; color: var(--gold); transition: background .3s, color .3s, border-color .3s; }
.mem:hover .ini { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.mem b { display: block; font-weight: 500; font-size: .95rem; line-height: 1.25; }
.mem span { display: block; color: var(--paper-dim); font-size: .78rem; line-height: 1.35; margin-top: 2px; }
.empty { padding: 28px; color: var(--paper-dim); border: 1px solid var(--line); border-top: 0; }
.count { color: var(--paper-dim); }

/* Evento in primo piano + video */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-block: 8px; }
.feat-state { color: var(--blue); }
.feature h3 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 10px 0 6px; }
.feat-lead { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-bottom: 16px; }
.feature-info p { color: var(--paper-dim); max-width: 54ch; }
.feature-info em { color: var(--paper); }
.feat-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); isolation: isolate; transition: border-color .3s, transform .6s cubic-bezier(.16,1,.3,1); }
.video:hover { border-color: var(--gold); transform: translateY(-4px); }
.video-art { position: absolute; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 7% 6%; background:
  radial-gradient(circle at 15% 25%, rgba(242,181,58,.85), transparent 45%),
  radial-gradient(circle at 85% 20%, rgba(226,78,96,.7), transparent 45%),
  radial-gradient(circle at 60% 95%, rgba(74,143,255,.85), transparent 55%),
  #14204a; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.video:hover .video-art { transform: scale(1.06); }
.video-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 9, 22, .78), transparent 62%); }
.video-art > span { position: relative; z-index: 1; }
.v-kicker { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.v-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.05; max-width: 13ch; }
.v-meta { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.play { position: absolute; top: 50%; right: 8%; width: 76px; height: 76px; margin-top: -38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); box-shadow: 0 0 0 0 var(--gold-soft); animation: ping 2.4s ease-out infinite; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.play svg { margin-left: 4px; }
.video:hover .play { transform: scale(1.12); }
@media (max-width: 520px) { .play { width: 60px; height: 60px; margin-top: -30px; right: 6%; } .v-title { max-width: 11ch; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242,181,58,.5); } 100% { box-shadow: 0 0 0 34px rgba(242,181,58,0); } }
.video-cap { position: absolute; top: 14px; left: 16px; padding: 4px 10px; background: rgba(5, 9, 22, .6); backdrop-filter: blur(8px); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
.next { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
.next .mono { color: var(--gold); }
.next p { color: var(--paper-dim); }

.band { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.band a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 38px 32px; border: 1px solid var(--line); text-decoration: none; position: relative; overflow: hidden; }
.band a::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--gold-soft), transparent 70%); transform: translateX(-101%); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.band a:hover::before { transform: none; }
.band a:hover { border-color: var(--gold); }
.band a > * { position: relative; }
.band h3 { font-size: 2.1rem; }
.band p { color: var(--paper-dim); font-size: .9rem; margin-top: 6px; }
.band svg { transition: transform .3s; }
.band a:hover svg { transform: translate(5px, -5px); }

footer { border-top: 1px solid var(--line); padding-block: 56px 60px; overflow: hidden; }
.giant { font-family: var(--f-display); font-weight: 500; font-size: clamp(4rem, 17vw, 14rem); line-height: .9; letter-spacing: -.03em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--paper-dim); background: radial-gradient(420px circle at var(--gx, 50%) 50%, var(--gold), var(--blue) 45%, transparent 70%); -webkit-background-clip: text; background-clip: text; margin-bottom: 48px; user-select: none; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot h4 { font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.foot p, .foot a { color: var(--paper-dim); font-size: .9rem; display: block; text-decoration: none; margin-bottom: 6px; }
.foot a:hover { color: var(--paper); }
.foot .big { font-family: var(--f-display); font-size: 1.8rem; color: var(--paper); line-height: 1.1; }
.note { margin-top: 44px; padding-top: 22px; border-top: 1px dashed var(--line); color: var(--paper-dim); font-size: .78rem; }

@media (max-width: 1160px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--nav-bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a, .more-btn { display: flex; padding: 12px 0; width: 100%; }
  .more-btn svg { margin-left: auto; }
  .sub { position: static; opacity: 1; pointer-events: auto; translate: none; margin: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; background: none; display: none; }
  .more.open .sub { display: block; }
  .sub::before { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .emblem { width: clamp(170px, 46vw, 240px); margin-block: 30px 10px; }
  .orbit { inset: -10% -14%; } .orbit.o2 { inset: -18% -24%; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .rail { position: static; padding-left: 18px; }
  .rail .big { font-size: 2.4rem; }
  .beat { min-height: 0; opacity: 1; }
  .fret, .chapter { display: none; }
  .foot { grid-template-columns: 1fr; }
  .director { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .card, .card:nth-child(n) { grid-column: span 12; min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in) { translate: none; }
  .js .split:not(.in) .wi { transform: none; }
  .beat { opacity: 1; }
}

/* ===== Pagine interne ===== */
.phero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(120px, 15vw, 190px) 0 clamp(36px, 5vw, 64px); }
.phero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink), transparent 40%); pointer-events: none; }
.phero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.02em; margin-top: 18px; max-width: 18ch; }
.phero .sub { margin-top: 20px; color: var(--paper-dim); max-width: 60ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--paper-dim); }
.crumb a { color: var(--blue); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.mem .aff { color: var(--blue); font-size: .74rem; }
.proj, .proto { position: relative; padding: 34px 32px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .3s, translate .4s cubic-bezier(.16,1,.3,1); }
.proj::before, .proto::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--sx, 20%) var(--sy, 50%), var(--gold-soft), transparent 65%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.proj:hover::before, .proto:hover::before { opacity: 1; }
.proj:hover, .proto:hover { border-color: var(--gold); translate: 0 -4px; }
.proj > *, .proto > * { position: relative; }
.projs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.proj .mono, .proto .mono { color: var(--blue); }
.proj-t { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 12px 0 14px; color: var(--paper); }
.proj .who { margin-top: 14px; color: var(--gold); font-family: var(--f-display); font-size: 1.35rem; }
.proj .mono + .who { margin-top: 10px; }
.proto { max-width: 760px; }
.proto h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 8px 0 10px; }
.proto p { color: var(--paper-dim); margin-bottom: 24px; max-width: 52ch; }
.other { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.other .mono { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); text-decoration: none; font-size: .85rem; color: var(--paper); transition: border-color .25s, background .25s; }
.chip:hover { border-color: var(--gold); background: var(--gold-soft); }
.press-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.press { display: grid; grid-template-columns: 220px 1fr auto; gap: 8px 28px; align-items: center; padding: 24px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--paper); position: relative; transition: background .3s, padding .4s cubic-bezier(.16,1,.3,1); }
.press:hover { background: var(--gold-soft); padding-inline: 18px; }
.press .mono { color: var(--gold); }
.press strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; }
.press svg { color: var(--gold); transition: transform .3s; }
.press:hover svg { transform: translate(4px, -4px); }
@media (max-width: 760px) { .press { grid-template-columns: 1fr auto; } .press .mono { grid-column: 1 / -1; } }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gal figure { margin: 0; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.gal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption { padding: 10px 14px; font-size: .82rem; color: var(--paper-dim); }
.protos { display: grid; gap: 16px; }
