@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #121212; --surface: #1b1b1b; --surface-soft: #222;
  --text: #f2eee8; --muted: #b3aaa2; --red: #b52d20; --orange: #f07832;
  --line: rgba(255,255,255,.12); --header-height: 120px; --max-width: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; padding-top: var(--header-height); background: var(--bg); color: var(--text); font-family: 'Montserrat', Arial, sans-serif; line-height: 1.7; }

a { color: inherit; text-decoration: none; } img { display: block; max-width: 100%; } button { font: inherit; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3,.brand-copy strong,.footer-brand { font-family: 'Cinzel', Georgia, serif; font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); margin-bottom: 1.2rem; letter-spacing: -.035em; }
h2 em,h1 em { color: var(--orange); font-style: normal; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; padding: .7rem 1rem; background: var(--orange); color: #111; }
.skip-link:focus { top: 1rem; }
.site-header {
  height: var(--header-height); position: fixed; inset: 0 0 auto; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: .55rem clamp(1.25rem, 4vw, 3.5rem); background: rgba(12,12,12,.98);
  border-bottom: 1px solid rgba(240,120,50,.55); box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.brand { display: inline-flex; flex: 0 1 auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: .12rem; min-width: 0; }
.brand-logo { display: block; width: clamp(145px, 17vw, 220px); height: 220px; object-fit: contain; object-position: left center; }
.brand-subtitle { display: block; color: #d4b5a4; font-size: clamp(.55rem, .72vw, .68rem); line-height: 1.15; letter-spacing: .075em; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.65rem, 1.7vw, 1.55rem); margin-left: auto; }
.desktop-nav a { position: relative; padding: .65rem 0; color: #d8cec8; font-size: clamp(.68rem, .82vw, .8rem); font-weight: 600; letter-spacing: .025em; white-space: nowrap; transition: color .2s; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: .3rem; left: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #fff; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; flex: 0 0 auto; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid rgba(240,120,50,.4); background: #171717; color: var(--text); cursor: pointer; }
.menu-toggle:hover, .menu-toggle:focus-visible { border-color: var(--orange); background: #211714; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { position: absolute; top: calc(100% + 1px); right: 1rem; width: min(340px, calc(100vw - 2rem)); display: flex; flex-direction: column; padding: .55rem 1.1rem; background: rgba(15,15,15,.99); border: 1px solid rgba(240,120,50,.4); border-top: 2px solid var(--orange); box-shadow: 0 16px 32px rgba(0,0,0,.6); visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
.mobile-menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a { padding: .85rem .35rem; border-bottom: 1px solid var(--line); color: #d7cec8; font-size: .85rem; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--orange); }
.hero { min-height: clamp(440px, 57vw, 700px); position: relative; isolation: isolate; overflow: hidden; background: #191311; border-bottom: 1px solid rgba(240,120,50,.25); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,9,9,.82), rgba(10,9,9,.35) 54%, rgba(10,9,9,.05)), linear-gradient(0deg, rgba(12,12,12,.6), transparent 35%); }
.hero-caption { width: min(var(--max-width), calc(100% - 3rem)); margin: 0 auto; min-height: inherit; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 4rem 0; }
.eyebrow,.section-kicker,.feature-number,.character-role,.character-detail,.quote-note,.gallery-item > span,.landscape-caption > span { font-size: .72rem; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { color: #ffc08c; margin-bottom: 1rem; }
.hero h1 { max-width: 760px; font-size: clamp(2.6rem, 6vw, 5.6rem); text-shadow: 0 4px 28px #000; margin-bottom: 1.8rem; }
.button { display: inline-flex; align-items: center; gap: 1rem; padding: .9rem 1.25rem; font-size: .82rem; font-weight: 700; letter-spacing: .035em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--red); border: 1px solid #d45135; } .button-primary:hover { background: #d3452b; }
.hero-mark { position: absolute; right: clamp(1rem, 6vw, 6rem); bottom: 1.3rem; color: rgba(240,120,50,.28); font-family: serif; font-size: clamp(5rem, 12vw, 11rem); line-height: 1; }
.content-section { width: min(var(--max-width), calc(100% - 3rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.section-kicker { display: flex; align-items: center; gap: .8rem; color: var(--orange); margin-bottom: 1.6rem; }
.section-kicker i { width: 44px; height: 1px; background: var(--red); display: inline-block; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.story-grid h2 { margin-bottom: 0; } .story-copy { max-width: 610px; color: var(--muted); }
.lead { color: #eee3d9; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.75; }
.text-link { display: inline-flex; gap: 1rem; align-items: center; margin-top: .7rem; color: var(--orange); font-weight: 700; font-size: .84rem; }
.text-link span { transition: transform .2s; } .text-link:hover span { transform: translateX(5px); }
.quote-band { position: relative; overflow: hidden; text-align: center; padding: clamp(3.5rem, 7vw, 6rem) 1.5rem; background: linear-gradient(115deg, rgba(56,25,20,.94), rgba(33,21,20,.94) 52%, rgba(58,26,19,.94)); border-block: 1px solid rgba(240,120,50,.25); }
.quote-band::before,.quote-band::after { content: ""; position: absolute; width: 40%; height: 180%; top: -40%; background: rgba(181,45,32,.1); transform: rotate(35deg); }
.quote-band::before { left: -15%; } .quote-band::after { right: -20%; }
.quote-symbol { color: var(--orange); font: 6rem Georgia,serif; line-height: .8; }
.quote-band blockquote { position: relative; margin: 1rem auto 1.5rem; font-family: 'Cinzel', Georgia, serif; font-size: clamp(1.3rem, 3vw, 2.35rem); line-height: 1.55; }
.quote-note { color: #d6a18a; font-size: .62rem; }
.section-heading { max-width: 700px; margin-bottom: 2.5rem; } .section-heading > p { max-width: 620px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.feature-card { min-height: 350px; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1.5rem; background: #25201e; border: 1px solid var(--line); isolation: isolate; }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgba(8,8,8,.96), rgba(8,8,8,.08)); transition: transform .5s; }
.feature-card::after { content: ""; position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; transition: transform .5s; }
.feature-card:hover::after { transform: scale(1.06); }
.feature-world::after { background-image: url('../images/ambientazione/foresta-tempio.png'); }
.feature-characters::after { background-image: url('../images/galleria/ryosuke-kotora.png'); }
.feature-chapters::after { background-image: url('../images/galleria/bozza.png'); }
.feature-number { color: #f2b38b; font-size: .62rem; } .feature-card > div { position: relative; }
.feature-card h3 { font-size: 1.65rem; margin-bottom: .5rem; } .feature-card p { color: #c8beb6; font-size: .84rem; max-width: 270px; margin-bottom: .5rem; }
.card-arrow { color: var(--orange); font-size: 1.5rem; }
.site-footer { padding: 3rem 1.5rem 2rem; text-align: center; background: rgba(11,11,11,.96); border-top: 1px solid rgba(240,120,50,.38); }
.footer-brand { display: inline-flex; gap: .8rem; align-items: center; font-size: 1.1rem; letter-spacing: .12em; }
.footer-brand span { color: var(--orange); font-size: 1.3rem; }
.site-footer p { color: var(--muted); font-size: .8rem; margin: .8rem 0 1.5rem; } .site-footer small { color: #807873; font-size: .7rem; }

/* Pagine interne */
.page-hero { position: relative; min-height: clamp(340px, 42vw, 520px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background-color: #241714; background-size: cover; background-position: center; border-bottom: 1px solid rgba(240,120,50,.25); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,10,10,.9), rgba(12,10,10,.5) 60%, rgba(12,10,10,.2)), linear-gradient(0deg, rgba(12,12,12,.45), transparent); }
.page-hero-content { width: min(var(--max-width), calc(100% - 3rem)); margin: 0 auto; padding: 4rem 0; }
.page-hero h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); margin-bottom: 1rem; } .page-hero-content > p { max-width: 570px; color: #d1c6be; font-size: 1rem; }
.page-hero-world::before { background-image: url('../images/ambientazione/foresta-tempio.png'); }
.page-hero-characters::before { background-image: url('../images/galleria/ryosuke-kotora.png'); }
.page-hero-chapters::before { background-image: url('../images/galleria/bozza.png'); }
.page-hero-gallery::before { background-image: url('../images/galleria/ryosuke-kotora.png'); }
.prose-layout > h2 { margin-bottom: 2rem; }
.prose-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; color: var(--muted); }
.prose-columns .lead { grid-row: span 2; color: #eee3d9; }
.landscape-panel { min-height: 390px; position: relative; display: flex; align-items: end; overflow: hidden; background: #211714; isolation: isolate; }
.landscape-panel > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.landscape-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,8,8,.95), transparent 90%); }
.landscape-caption { width: min(var(--max-width), calc(100% - 3rem)); margin: 0 auto; padding: 4rem 0 3rem; }
.landscape-caption > span { color: var(--orange); } .landscape-caption h2 { margin: .6rem 0; } .landscape-caption p { color: #c9bdb5; max-width: 600px; margin-bottom: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.info-card { padding: 1.5rem; background: linear-gradient(145deg, rgba(34,34,34,.95), rgba(23,23,23,.95)); border: 1px solid var(--line); border-top: 2px solid var(--red); }
.info-index { color: var(--orange); font-size: .72rem; letter-spacing: .16em; }
.info-card h3 { font-size: 1.35rem; margin: 1rem 0 .6rem; } .info-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.editorial-note { margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--red); color: #918780; font-size: .8rem; }
.character-list { display: grid; gap: 2rem; margin-top: 3rem; }
.character-card { display: grid; grid-template-columns: minmax(240px,.8fr) 1.2fr; background: linear-gradient(115deg, rgba(36,32,31,.96), rgba(23,23,23,.96)); border: 1px solid var(--line); }
.character-card.character-reverse { grid-template-columns: 1.2fr minmax(240px,.8fr); }
.character-reverse .character-art { order: 2; }
.character-art { min-height: 380px; position: relative; overflow: hidden; background: radial-gradient(ellipse at center, #4a251a, #171414 70%); }
.character-art img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center top; }
.character-stamp { position: absolute; bottom: .5rem; right: 1.2rem; color: rgba(240,120,50,.65); font: 5rem Georgia,serif; }
.character-copy { align-self: center; padding: clamp(1.5rem, 4vw, 3.5rem); }
.character-role { color: var(--orange); font-size: .65rem; } .character-copy h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .7rem 0; }
.character-tagline { color: #f0c0a0; font-size: 1.05rem; } .character-copy p:not(.character-tagline) { color: var(--muted); }
.character-detail { display: block; padding-top: 1rem; border-top: 1px solid var(--line); color: #d1a58c; font-size: .65rem; }
.chapter-intro,.gallery-intro { max-width: 750px; }
.chapter-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.chapter-row { display: grid; grid-template-columns: 125px 1fr auto; align-items: center; gap: 1.5rem; padding: 1.8rem .5rem; border-bottom: 1px solid var(--line); }
.chapter-number { color: var(--orange); font-size: .72rem; letter-spacing: .15em; }
.chapter-row h3 { margin: 0 0 .4rem; font-size: 1.3rem; } .chapter-row p { color: var(--muted); font-size: .85rem; margin: 0; }
.status-pill { white-space: nowrap; padding: .4rem .65rem; border: 1px solid rgba(240,120,50,.4); color: #e8a77d; font-size: .65rem; }
.status-muted { border-color: var(--line); color: #938982; } .chapter-placeholder { opacity: .7; }
.gallery-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 220px; gap: 1rem; margin-top: 2.5rem; }
.gallery-item { position: relative; padding: 0; overflow: hidden; text-align: left; cursor: zoom-in; border: 1px solid var(--line); background: #25201e; }
.gallery-item.gallery-tall { grid-row: span 2; } .gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent 50%); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; } .gallery-item:hover img { transform: scale(1.05); }
.gallery-item > span { position: absolute; z-index: 1; bottom: 1rem; left: 1rem; color: #f7c09d; font-size: .62rem; }
.lightbox { width: min(92vw, 1100px); max-width: none; max-height: 92vh; padding: 1rem; border: 1px solid rgba(240,120,50,.55); background: #111; color: var(--text); }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.lightbox img { max-width: 100%; max-height: 76vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lightbox p { color: #d4b5a4; text-align: center; margin: .8rem 2rem 0; font-size: .85rem; }
.lightbox-close { position: absolute; top: .3rem; right: .5rem; width: 42px; height: 42px; border: 0; background: #242424; color: white; font-size: 1.8rem; cursor: pointer; }
code { color: #f5a16d; }

/* Atmosfera: castello e braci, dietro ai contenuti e senza intercettare i clic. */
.atmosphere-canvas { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; opacity: .78; mix-blend-mode: screen; }
main, .site-footer { position: relative; z-index: 1; }
.site-header { position: fixed; z-index: 1000; }
.mobile-menu { z-index: 1001; }
.lightbox { z-index: 1100; }

@media (min-width: 1001px) { .mobile-menu { display: none; } }
@media (max-width: 1000px) {
  :root { --header-height: 86px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .story-grid { gap: 2rem; } .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: span 2; min-height: 280px; }
  .character-card,.character-card.character-reverse { grid-template-columns: minmax(190px,.8fr) 1.2fr; }
  .character-reverse .character-art { order: 0; } .character-copy { padding: 1.5rem; }
  .character-art,.character-art img { min-height: 330px; }
}
@media (max-width: 620px) {
  :root { --header-height: 78px; }
  .site-header { padding-inline: 1rem; gap: .75rem; }
  .brand-logo { width: 100%; height: 87px; }
  .brand-subtitle { max-width: 230px; font-size: .52rem; letter-spacing: .025em; }
  .menu-toggle { width: 42px; height: 42px; flex: 0 0 auto; }
  .hero { min-height: 500px; } .hero > img { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,9,9,.75), rgba(10,9,9,.12)), linear-gradient(0deg, rgba(12,12,12,.65), transparent 60%); }
  .hero-caption,.page-hero-content { width: calc(100% - 2rem); } .hero h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .content-section { width: calc(100% - 2rem); padding: 3.7rem 0; }
  .story-grid,.prose-columns { grid-template-columns: 1fr; gap: 1rem; } .prose-columns .lead { grid-row: auto; }
  .feature-grid,.info-grid { grid-template-columns: 1fr; } .feature-card,.feature-card:last-child { grid-column: auto; min-height: 300px; }
  .page-hero { min-height: 390px; } .page-hero h1 { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .character-card,.character-card.character-reverse { grid-template-columns: 1fr; } .character-reverse .character-art { order: 0; }
  .character-art,.character-art img { min-height: 310px; max-height: 430px; } .character-copy { padding: 1.5rem; }
  .chapter-row { grid-template-columns: 1fr auto; gap: .7rem 1rem; }
  .chapter-row > div { grid-column: 1 / -1; grid-row: 2; } .chapter-number { grid-column: 1; }
  .status-pill { grid-column: 2; grid-row: 1; font-size: .58rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: .65rem; }
  .gallery-item.gallery-tall { grid-row: span 2; }
  .gallery-item > span { left: .65rem; bottom: .65rem; font-size: .52rem; letter-spacing: .1em; }
  .landscape-panel { min-height: 330px; } .site-footer { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .atmosphere-canvas { opacity: .38; }
}
