/* VALCADIA · sito ufficiale — nessuna dipendenza esterna */
@view-transition { navigation: auto; }
:root {
  --bg: #0b0a10; --bg2: #120f1a; --card: rgba(24, 19, 34, .72); --line: rgba(233, 196, 106, .22); --line2: rgba(233, 196, 106, .5);
  --gold: #e9c46a; --gold-hi: #ffd36b; --gold-lo: #a8741f; --txt: #efe9dc; --mut: #b3a991; --dim: #8a816f;
  --serif: 'Cinzel', Georgia, serif; --book: 'Cormorant Garamond', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --max: 1180px; --ease: cubic-bezier(.2, .8, .2, 1);
  --gold-grad: linear-gradient(180deg, #fff6dc 0%, #ffd36b 45%, #c9962f 100%);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 17px/1.65 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3c8; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1c1405; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mut { color: var(--mut); }
.center { text-align: center; }

/* ---------------------------------------------------------------- navigazione */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.nav.solid { background: rgba(11, 10, 16, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(255, 211, 107, .45)); }
.brand b { font: 800 20px var(--serif); letter-spacing: .14em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--txt); text-decoration: none; font-size: 14.5px; font-weight: 600; opacity: .86; transition: opacity .2s, background .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { opacity: 1; background: rgba(233, 196, 106, .1); color: var(--gold-hi); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20, 16, 28, .6); color: var(--txt); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .3s var(--ease), background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- pulsanti */
.btn { --b: var(--line2); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 14px; font: 700 16px var(--sans); letter-spacing: .01em; text-decoration: none; color: var(--txt); border: 1px solid var(--b); background: rgba(20, 16, 28, .55); backdrop-filter: blur(6px); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); color: #fff; background: rgba(233, 196, 106, .12); }
.btn.primary { color: #1c1405; border: 0; background: linear-gradient(180deg, #ffe7a3, #f2c75c 45%, #c9962f); box-shadow: 0 10px 30px -8px rgba(255, 196, 80, .55), inset 0 1px 0 rgba(255, 255, 255, .6); position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s 1.5s infinite; }
.btn.primary:hover { color: #1c1405; box-shadow: 0 16px 40px -8px rgba(255, 196, 80, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 12px; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.nav .btn { margin-left: 10px; }

/* ---------------------------------------------------------------- cornice del nome (come nel gioco) */
.frame { position: relative; display: inline-block; padding: .34em .62em .3em; isolation: isolate; }
.frame::before, .frame::after { content: ""; position: absolute; pointer-events: none; border-radius: 8px; }
.frame::before { inset: 0; border: 2px solid rgba(233, 196, 106, .92); background: rgba(10, 8, 16, .4); box-shadow: 0 0 26px rgba(255, 211, 107, .25), inset 0 0 20px rgba(255, 211, 107, .12); z-index: -1; }
.frame::after { inset: 6px; border: 1px solid rgba(233, 196, 106, .42); }
.frame i { position: absolute; width: 12px; height: 12px; background: var(--gold-grad); transform: rotate(45deg); }
.frame i:nth-of-type(1) { left: -6px; top: -6px; } .frame i:nth-of-type(2) { right: -6px; top: -6px; }
.frame i:nth-of-type(3) { left: -6px; bottom: -6px; } .frame i:nth-of-type(4) { right: -6px; bottom: -6px; }
.frame i:nth-of-type(5) { left: calc(50% - 8px); bottom: -8px; width: 16px; height: 16px; }

/* ---------------------------------------------------------------- hero con parallasse */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 60px; }
.hero .layer { position: absolute; left: 0; right: 0; pointer-events: none; will-change: transform; }
.h-sky { inset: -10% 0; background: radial-gradient(70% 55% at 50% 30%, rgba(233, 196, 106, .22), transparent 60%), radial-gradient(90% 60% at 50% 110%, rgba(120, 70, 180, .25), transparent 60%), linear-gradient(180deg, #0b0a10 0%, #17102a 55%, #0b0a10 100%); z-index: -6; }
.h-stars { inset: -10% 0; z-index: -5; background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff9 50%, transparent 51%), radial-gradient(1.2px 1.2px at 38% 40%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 88% 34%, #fff8 50%, transparent 51%), radial-gradient(1.3px 1.3px at 22% 64%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 58% 18%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 92% 70%, #fff5 50%, transparent 51%); background-size: 520px 420px; opacity: .8; }
.h-rays { inset: -20% -30% auto; height: 120%; z-index: -4; background: conic-gradient(from 200deg at 50% 0%, transparent 0deg, rgba(233, 196, 106, .13) 10deg, transparent 22deg, rgba(233, 196, 106, .08) 38deg, transparent 52deg, rgba(233, 196, 106, .11) 70deg, transparent 86deg); filter: blur(8px); animation: rays 16s ease-in-out infinite alternate; }
@keyframes rays { to { transform: rotate(7deg) scale(1.06); } }
.h-sigil { z-index: -3; top: 6%; display: grid; justify-items: center; }
.h-sigil img { width: min(78vw, 760px); opacity: .5; filter: drop-shadow(0 0 60px rgba(255, 196, 80, .45)); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .66; transform: scale(1.02); } }
.h-crew { z-index: -2; bottom: 15%; display: grid; justify-items: center; }
.h-crew img { width: min(140vw, 1500px); max-width: none; filter: brightness(.82) saturate(1.05) drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.h-lead { z-index: -1; bottom: 6%; display: grid; justify-items: center; }
.h-lead img { width: min(56vw, 420px); filter: drop-shadow(0 0 40px rgba(255, 196, 80, .35)) drop-shadow(0 30px 30px rgba(0, 0, 0, .7)); }
.h-fog { z-index: 0; bottom: 0; height: 46%; background: linear-gradient(to bottom, transparent, rgba(11, 10, 16, .85) 55%, var(--bg)); }
#embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-in { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 18px; margin-top: auto; }
.hero h1 { margin: 0; font-size: clamp(46px, 11vw, 120px); letter-spacing: .1em; line-height: 1; }
.hero h1 .frame { padding-top: .42em; }
.hero h1 .crest { position: absolute; left: 50%; top: 0; width: .9em; transform: translate(-50%, -62%); filter: drop-shadow(0 0 18px rgba(255, 211, 107, .7)); }
.tagline { font: 600 clamp(12px, 1.6vw, 15px) var(--sans); letter-spacing: .42em; text-transform: uppercase; color: #f3e6c4; display: flex; align-items: center; gap: 14px; }
.tagline::before, .tagline::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.tagline::after { transform: scaleX(-1); }
.hero .lead { max-width: 640px; font-size: clamp(17px, 2vw, 20px); color: #e9e0cb; text-shadow: 0 2px 20px #000; margin: 4px 0 6px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scroll-cue { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line2); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.intro > * { animation: rise 1.2s var(--ease) both; }
.intro > :nth-child(2) { animation-delay: .15s; } .intro > :nth-child(3) { animation-delay: .3s; } .intro > :nth-child(4) { animation-delay: .45s; }
.hero h1 { animation: titleIn 1.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes titleIn { from { opacity: 0; letter-spacing: .5em; filter: blur(8px); } }

/* ---------------------------------------------------------------- sezioni */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 10px var(--gold); }
.h2 { font-size: clamp(32px, 5.4vw, 60px); }
.sub { font-size: clamp(17px, 1.9vw, 20px); color: var(--mut); max-width: 680px; }
.center .sub { margin-inline: auto; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto; width: min(420px, 80%); opacity: .9; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament img { width: 34px; height: 34px; }
.glow-bg::before { content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(233, 196, 106, .09), transparent 70%); pointer-events: none; }

/* comparsa allo scorrimento */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.l { transform: translateX(-50px); } .rv.r { transform: translateX(50px); } .rv.z { transform: scale(.92); filter: blur(6px); }
.rv.in { opacity: 1; transform: none; filter: none; }

/* pilastri */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.pillars.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; overflow: hidden; backdrop-filter: blur(8px); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 211, 107, .55), transparent 40%, transparent 60%, rgba(255, 211, 107, .25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card h3 { font-size: 23px; margin-bottom: .4em; }
.card p { color: var(--mut); margin: 0; }
.ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; background: radial-gradient(circle at 50% 30%, rgba(233, 196, 106, .28), rgba(233, 196, 106, .06)); border: 1px solid var(--line2); }
.num { font: 800 13px var(--sans); letter-spacing: .2em; color: var(--gold); margin-bottom: 8px; display: block; }

/* telefoni */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 40px); align-items: start; margin-top: 60px; }
.phone { position: relative; border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #2c2538, #0e0c14); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(233, 196, 106, .3), inset 0 0 0 2px #000; aspect-ratio: 9 / 16.4; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.phone::after { content: ""; position: absolute; top: 16px; left: 50%; width: 26%; height: 14px; transform: translateX(-50%); border-radius: 12px; background: #000; }
.phones figure { margin: 0; }
.phones figcaption { text-align: center; margin-top: 18px; color: var(--mut); font-size: 15px; }
.phones figcaption b { display: block; font: 800 18px var(--serif); color: var(--txt); margin-bottom: 4px; }
.phones .phone:nth-child(2) { }

/* stirpi: galleria orizzontale */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 30px max(20px, calc((100vw - var(--max)) / 2)) 40px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.s-card { scroll-snap-align: center; position: relative; border-radius: 22px; padding: 22px 22px 24px; background: linear-gradient(180deg, rgba(36, 28, 52, .9), rgba(16, 13, 22, .95)); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s; text-decoration: none; color: inherit; display: block; }
.s-card:hover { border-color: var(--line2); }
.s-card .pic { aspect-ratio: 3 / 3.6; display: grid; place-items: end center; position: relative; margin-bottom: 14px; }
.s-card .pic::before { content: ""; position: absolute; inset: 18% 8% 0; background: radial-gradient(50% 50% at 50% 60%, var(--c, rgba(233, 196, 106, .35)), transparent 70%); filter: blur(10px); }
.s-card .pic img { position: relative; max-height: 100%; width: auto; transform: translateZ(40px); transition: transform .6s var(--ease); filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55)); }
.s-card:hover .pic img { transform: translateZ(60px) scale(1.06) translateY(-6px); }
.s-card h3 { font-size: 24px; margin: 0 0 4px; }
.s-card .o { font: italic 500 18px/1.35 var(--book); color: #e9dcbc; margin: 0 0 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--sans); letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; background: rgba(233, 196, 106, .1); border: 1px solid var(--line2); color: var(--gold-hi); }
.rail-nav { display: flex; gap: 10px; justify-content: flex-end; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(20, 16, 28, .7); color: var(--gold-hi); font-size: 20px; cursor: pointer; transition: background .2s, transform .2s; }
.rail-nav button:hover { background: rgba(233, 196, 106, .15); transform: scale(1.06); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Genesi: testo che si accende scorrendo */
.genesis { height: 260vh; }
.genesis .pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.genesis .pin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(120, 80, 30, .25), transparent 70%), url("../dist/img/sigillo.webp") center / min(90vw, 900px) no-repeat; opacity: .14; transform: scale(calc(1 + var(--p, 0) * .25)); }
.genesis blockquote { position: relative; margin: 0; max-width: 900px; padding: 0 22px; text-align: center; font: italic 500 clamp(24px, 3.6vw, 44px)/1.35 var(--book); color: #f6ecd2; }
.genesis blockquote span { opacity: .14; transition: opacity .5s, color .5s, text-shadow .5s; }
.genesis blockquote span.on { opacity: 1; }
.genesis blockquote span.hot { color: var(--gold-hi); text-shadow: 0 0 22px rgba(255, 211, 107, .5); }
.genesis .cite { display: block; margin-top: 28px; font: 700 13px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-style: normal; }

/* Vie */
.vie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.via { --c: var(--gold); position: relative; border-radius: 22px; padding: 26px; background: linear-gradient(170deg, color-mix(in srgb, var(--c) 16%, #15111d), #100d16 70%); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.via img { position: absolute; right: -12px; bottom: -6px; width: 46%; opacity: .95; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .6)); transition: transform .6s var(--ease); }
.via:hover img { transform: translateY(-8px) rotate(-2deg); }
.via h3 { font-size: 24px; color: var(--c); margin-bottom: 2px; }
.via .m { font: italic 500 19px var(--book); color: #efe2c2; margin-bottom: 14px; max-width: 62%; }
.via ol { list-style: none; margin: auto 0 0; padding: 0; max-width: 58%; display: grid; gap: 4px; font-size: 13.5px; color: var(--mut); }
.via ol b { color: var(--txt); font-weight: 700; }

/* Forgia */
.forge { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 50px; }
.forge figure { margin: 0; aspect-ratio: 3 / 4; border-radius: 18px; display: grid; place-items: end center; padding: 10px; background: radial-gradient(60% 50% at 50% 70%, rgba(233, 196, 106, .18), transparent 70%), rgba(24, 19, 34, .6); border: 1px solid var(--line); }
.forge figure:nth-child(even) { transform: translateY(30px); }
.forge img { max-height: 100%; width: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6)); }

/* funzioni */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.feat { padding: 24px; }
.feat h3 { font-size: 19px; font-family: var(--serif); }
.feat p { font-size: 15px; }

/* divisione a metà */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.coupon { position: relative; max-width: 420px; margin-inline: auto; border-radius: 20px; padding: 30px 30px 26px; background: linear-gradient(160deg, #fff8e6, #f3dca2); color: #2b1f08; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 60px rgba(255, 211, 107, .25); transform: rotate(-3deg); }
.coupon::before, .coupon::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--bg); }
.coupon::before { left: -15px; } .coupon::after { right: -15px; }
.coupon .v { font: 800 64px var(--serif); line-height: 1; color: #8a5a10; }
.coupon .qr { position: absolute; right: 26px; bottom: 24px; width: 86px; height: 86px; border-radius: 8px; background: repeating-conic-gradient(#2b1f08 0 25%, transparent 0 50%) 0 0 / 14px 14px; opacity: .85; }
.coupon small { display: block; font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #7a5a22; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #e4dac4; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: rgba(233, 196, 106, .14); border: 1px solid var(--line2); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 10px; border: solid var(--gold-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat { text-align: center; padding: 26px 10px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(40px, 6vw, 68px)/1 var(--serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--mut); font-size: 14px; letter-spacing: .06em; }

/* FAQ */
.faq { max-width: 860px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--line2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 22px 20px; color: var(--mut); }

/* chiamata finale */
.final { text-align: center; overflow: hidden; }
.final .bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 60%, rgba(233, 196, 106, .16), transparent 70%); }
.final img.crew { width: min(1100px, 130vw); max-width: none; margin: 40px auto 0; position: relative; left: 50%; transform: translateX(-50%); opacity: .95; }
.final .h2 { font-size: clamp(36px, 6vw, 72px); }

/* pagine interne */
.p-hero { position: relative; padding: 150px 0 70px; text-align: center; overflow: hidden; isolation: isolate; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 70% at 50% 0%, rgba(233, 196, 106, .2), transparent 65%), linear-gradient(180deg, #17102a, var(--bg)); }
.p-hero .sig { position: absolute; z-index: -1; left: 50%; top: 40px; width: min(70vw, 520px); transform: translateX(-50%); opacity: .14; }
.p-hero h1 { font-size: clamp(38px, 6.4vw, 76px); }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--mut); text-decoration: none; }
.prose { max-width: 820px; margin: 0 auto; padding: 0 0 120px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 2em 0 .6em; color: var(--gold-hi); }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: #ddd3bd; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--gold); font-weight: 700; background: rgba(233, 196, 106, .05); }
.prose .box { padding: 18px 22px; border-radius: 14px; background: rgba(233, 196, 106, .07); border: 1px solid var(--line2); margin: 1.4em 0; }
.prose .lore { font: italic 500 clamp(21px, 2.4vw, 26px)/1.6 var(--book); color: #f3e8cc; }
.prose .lore p:first-of-type::first-letter { float: left; font: 800 3.6em/.8 var(--serif); padding: .08em .12em 0 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.updated { color: var(--dim); font-size: 14px; }
.legal-todo { background: rgba(255, 120, 90, .12); border: 1px solid rgba(255, 120, 90, .5); padding: 2px 6px; border-radius: 6px; color: #ffb39e; }

/* dettaglio stirpi */
.lineages { display: grid; gap: 22px; }
.lineage { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; padding: 22px 26px; }
.lineage img { width: 100%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .6)); }
.lineage h2 { margin: 0 0 4px; font-size: 30px; color: var(--txt); }
.lineage:nth-child(even) { grid-template-columns: 1fr 220px; }
.lineage:nth-child(even) img { order: 2; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: linear-gradient(180deg, transparent, rgba(233, 196, 106, .04)); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { font: 700 12px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer ul a { color: var(--mut); text-decoration: none; font-size: 15px; }
footer ul a:hover { color: var(--gold-hi); }
.f-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(233, 196, 106, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13.5px; }

/* video */
.play { display: inline-flex; align-items: center; gap: 12px; }
.play i { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
dialog.vid { border: 0; padding: 0; background: transparent; max-width: min(420px, 92vw); }
dialog.vid::backdrop { background: rgba(5, 4, 8, .86); backdrop-filter: blur(6px); }
dialog.vid video { width: 100%; border-radius: 22px; box-shadow: 0 0 0 1px var(--line2), 0 40px 80px #000; }
dialog.vid button { position: absolute; top: -50px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(20, 16, 28, .8); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .nav ul { position: fixed; inset: 72px 0 0; height: calc(100dvh - 72px); overflow-y: auto; flex-direction: column; gap: 0; padding: 12px 20px 26px; background: rgba(11, 10, 16, .97); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav ul a { padding: 14px 6px; font-size: 18px; border-bottom: 1px solid rgba(233, 196, 106, .08); border-radius: 0; }
  .nav-open .nav ul { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .nav { background: rgb(11, 10, 16); }
  .nav-open { overflow: hidden; }
  .burger { display: block; }
  .nav .btn { display: none; }
  .pillars, .vie { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .forge { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pillars, .pillars.two, .vie, .feats { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr 1fr; }
  .phones figure:nth-child(3) { display: none; }
  .forge { grid-template-columns: repeat(2, 1fr); }
  .forge figure:nth-child(n+5) { display: none; }
  .lineage, .lineage:nth-child(even) { grid-template-columns: 1fr; text-align: center; }
  .lineage:nth-child(even) img { order: 0; }
  .lineage img { max-height: 220px; }
  .via ol, .via .m { max-width: 64%; }
  .h-crew { bottom: 22%; } .h-lead { bottom: 13%; }
  .h-lead img { width: 58vw; }
  .tagline { letter-spacing: .24em; }
  .tagline::before, .tagline::after { width: 22px; }
  .f-grid { grid-template-columns: 1fr; }
  .genesis { height: 220vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; filter: none; }
  .genesis { height: auto; } .genesis .pin { position: relative; height: auto; padding: 120px 0; }
  .genesis blockquote span { opacity: 1; }
}
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; filter: blur(6px); transform: scale(1.015); } }
