/* NovaQuest — sezione del sito John Debowie.
 * Comanda NovaQuest: palette delle Linee Guida (sabbia di fondo, giallo, rosso, nero);
 * JD resta come ospite: la barra in alto, in VT323.
 * Versione d'attesa (29 ottobre 2026): mappa sotto la nebbia, di NQ 01 solo copertina e scheda.
 */

@font-face { font-family: "MedievalSharp"; src: url("fonts/MedievalSharp-Book.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/CormorantGaramond-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("fonts/PTSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("fonts/PTSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("fonts/PTSans-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }
@font-face { font-family: "VT323"; src: url("fonts/VT323-latin.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #1C1410;
  --ink-2: #251B15;
  --ink-3: #33261d;
  --parchment: #FFFFFF;
  --parchment-2: #ECE5DA;
  --red: #C00000;
  --gold: #DA9F00;   /* giallo scuro del logo */
  --gold-hi: #FFD500; /* giallo chiaro del logo */
  --sand: #A18865;
  --jd-purple: #6C3D9E;
  --jd-ochre: #C8B84A;

  --f-mark: "MedievalSharp", Georgia, serif;
  --f-head: "Cormorant Garamond", Georgia, serif;
  --f-body: "PT Sans", "Segoe UI", system-ui, sans-serif;
  --f-tape: "VT323", ui-monospace, monospace;

  --cut: 18px;
  --slant: 6vw;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* grana sottile da carta stampata, su tutte le sezioni */
.realm, .feature, .collection, .vault, .music, .foot { position: relative; isolation: isolate; }
.realm::before, .feature::before, .collection::before, .vault::before, .music::before, .foot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- barra JD (ospite) ---------- */
.jdbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 48px; padding: 0 var(--gutter);
  background: rgba(16, 11, 9, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(218, 159, 0, .25);
  font: 22px/1 var(--f-tape); letter-spacing: .02em;
}
.jdbar a { text-decoration: none; color: var(--jd-ochre); }
.jdbar-home:hover { color: var(--gold-hi); }
.jdbar-nav { display: flex; gap: clamp(12px, 2.4vw, 28px); }
.jdbar-nav a { color: var(--parchment-2); font: 700 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.jdbar-nav a:hover { color: var(--gold-hi); }

/* ---------- elementi comuni ---------- */
.kicker, .tag, .soon {
  font: 700 12px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
}
.wordmark {
  font: 400 clamp(46px, 8vw, 104px)/.95 var(--f-mark); margin: 0;
  color: var(--gold-hi);
  background: linear-gradient(180deg, #FFE04D 0%, var(--gold-hi) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 var(--red)) drop-shadow(0 10px 24px rgba(0,0,0,.6));
}
.wordmark-sm { font-size: 40px; filter: drop-shadow(0 2px 0 var(--red)); }

.titleline { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.titleline::before, .titleline::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.titleline::after { background: linear-gradient(90deg, var(--gold), transparent); }
.titleline h2 {
  font: 600 clamp(30px, 4.4vw, 52px)/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; text-align: center;
}
.titleline-ink::before { background: linear-gradient(90deg, transparent, var(--ink)); }
.titleline-ink::after { background: linear-gradient(90deg, var(--ink), transparent); }
.section-lede { max-width: 620px; margin: 0 auto 36px; text-align: center; color: var(--sand); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font: 700 14px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background .2s, color .2s, transform .2s;
  border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-hi); color: var(--ink); }
.btn-gold:hover { background: #FFE04D; }
.btn-line { background: rgba(28,20,16,.35); color: var(--parchment); box-shadow: inset 0 0 0 2px var(--parchment); }
.btn-line:hover { background: var(--parchment); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--parchment); }
.btn-ink:hover { background: var(--red); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 30% 50%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--ink) 0%, rgba(28,20,16,.55) 32%, rgba(28,20,16,0) 62%),
    linear-gradient(90deg, rgba(28,20,16,.0) 30%, rgba(28,20,16,.75) 100%);
}
.hero-body { position: relative; padding-bottom: clamp(56px, 9vh, 110px); display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero-body .kicker { color: var(--jd-ochre); font-family: var(--f-tape); font-size: 22px; letter-spacing: .06em; text-transform: none; margin-bottom: 4px; }
.hero h1 { font: 500 italic clamp(26px, 3.6vw, 44px)/1.1 var(--f-head); margin: 10px 0 14px; color: var(--parchment); }
.lede { max-width: 480px; color: var(--parchment-2); font-size: 18px; }
.hero .actions { justify-content: flex-end; margin-top: 8px; }

/* ---------- NQ 01 ---------- */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  background: var(--ink-2);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding: calc(var(--slant) + 40px) 0;
  margin: -1px 0;
}
.feature-art {
  position: relative; align-self: stretch; display: grid; place-items: center;
  background: radial-gradient(ellipse at 45% 50%, rgba(192,0,0,.55), rgba(107,26,26,.35) 45%, transparent 70%);
}
.feature-art img { width: 112%; max-width: none; margin-left: -6%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.feature-body { padding: 0 var(--gutter); max-width: 600px; }
.tag { color: var(--gold-hi); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tag span { background: var(--red); color: var(--parchment); padding: 6px 10px; }
.nqtitle { font: 400 clamp(40px, 5.4vw, 68px)/1 var(--f-mark); color: var(--gold-hi); }
.feature-sub { font: 500 italic 26px/1.2 var(--f-head); color: var(--red); margin: 10px 0 18px; filter: brightness(1.5); }
.feature p { color: var(--parchment-2); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 26px 0 28px; background: rgba(161,136,101,.25); border: 1px solid rgba(161,136,101,.25); }
.specs div { background: var(--ink-2); padding: 12px 14px; }
.specs dt { font: 700 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 6px; }
.specs dd { margin: 0; font-size: 15px; line-height: 1.3; }
.catalog { font: 20px/1 var(--f-tape); color: var(--jd-ochre); margin: 22px 0 0; opacity: .85; }
.feature .feature-note { font-size: 14px; color: var(--sand); margin: 14px 0 0; }

/* ---------- la colonna sonora ---------- */
.music { background: var(--sand); color: var(--ink); padding: 92px 0 100px; }
.music .section-lede { color: var(--ink); }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tracks li {
  background: #FFFFFF; padding: 26px 26px 28px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.tracks .kicker { color: var(--red); margin-bottom: 10px; }
.tracks h3 { font: 400 26px/1.1 var(--f-mark); color: var(--ink); margin-bottom: 10px; }
.tracks p { margin: 0; font-size: 16px; }
.modes { margin-top: 44px; }
.modes-title { font: 600 clamp(26px, 3vw, 34px)/1.1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; text-align: center; margin-bottom: 22px; }
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.modes-grid > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.modes-grid .kicker { color: var(--red); margin-bottom: 8px; }
.modes-grid p:last-child { margin: 0; }
@media (max-width: 720px) { .modes-grid { grid-template-columns: 1fr; } }

/* ---------- piede ---------- */
.foot { background: #120d0a; padding: 56px 0 64px; border-top: 1px solid rgba(218,159,0,.2); }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.foot-sig { color: var(--sand); margin: 10px 0 0; font-size: 15px; }
.foot-sig a { color: var(--jd-ochre); }
.disclaimer { color: rgba(161,136,101,.85); font-size: 13px; max-width: 620px; justify-self: end; margin: 0; }

/* ---------- logo ufficiale ---------- */
.logo { display: block; width: clamp(260px, 38vw, 560px); height: auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,.55)); }
.logo-sm { width: 220px; filter: none; }

/* ---------- che cos'è NovaQuest ---------- */
.about { padding: 84px 0 40px; background: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.about .kicker { color: var(--gold-hi); margin-bottom: 18px; }
.about-text { font: 500 italic clamp(22px, 2.3vw, 29px)/1.4 var(--f-head); color: var(--parchment); margin: 0 0 18px; }
.about-sig { font: 22px/1 var(--f-tape); color: var(--jd-ochre); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid rgba(161,136,101,.3); }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts img { width: 34px; height: auto; margin-top: 4px; }
.facts h3 { font: 700 14px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 6px; }
.facts p { margin: 0; color: var(--parchment-2); font-size: 16px; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- selettore della lingua ---------- */
.jdbar-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.lang { display: flex; gap: 4px; font: 18px/1 var(--f-tape); }
.lang a { padding: 3px 6px; color: var(--sand); box-shadow: inset 0 0 0 1px rgba(161,136,101,.35); }
.lang a:hover { color: var(--gold-hi); }
.lang a[aria-current] { color: var(--ink); background: var(--jd-ochre); box-shadow: none; pointer-events: none; }

/* ---------- il Regno sotto la nebbia ---------- */
.realm { padding: 72px 0 80px; background: var(--ink); }
.fogmap {
  position: relative; margin: 0 auto; width: min(100% - 2 * var(--gutter), 1300px); aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(218,159,0,.5), 0 0 0 6px var(--ink), 0 0 0 7px rgba(218,159,0,.35), 0 30px 80px rgba(0,0,0,.6);
}
.fogmap img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.fogmap-note {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(86%, 440px); padding: 26px 30px 24px; text-align: center;
  background: rgba(28,20,16,.88); box-shadow: inset 0 0 0 1px rgba(218,159,0,.45), 0 20px 50px rgba(0,0,0,.45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.fogmap-note .kicker { color: var(--gold-hi); margin: 0 0 12px; }
.fogmap-note h3 { font: 400 clamp(24px, 3vw, 34px)/1.1 var(--f-mark); color: var(--parchment); margin-bottom: 10px; }
.fogmap-note p { margin: 0; color: var(--parchment-2); font-size: 16px; }

/* ---------- NQ 01: copertina ---------- */
.feature-art { padding: 0 var(--gutter); }
.feature-art .cover { width: min(100%, 520px); height: auto; max-width: none; margin: 0; box-shadow: 0 0 0 1px rgba(218,159,0,.4); filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.specs-4 { grid-template-columns: repeat(2, 1fr); }
.section-lede:has(+ .section-lede) { margin-bottom: 14px; }

/* ---------- schermi stretti ---------- */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature-art .cover { width: min(100%, 440px); }
  .feature-body { margin: 0 auto; }
  .tracks { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .disclaimer { justify-self: start; }
}
@media (max-width: 720px) {
  .jdbar-nav { display: none; }
  .hero-body { align-items: flex-start; text-align: left; }
  .hero .actions { justify-content: flex-start; }
  .hero-img { object-position: 22% 50%; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(28,20,16,.75) 45%, rgba(28,20,16,.1) 80%); }
  .fogmap { width: 100%; aspect-ratio: 4 / 5; box-shadow: none; }
  .specs-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .jdbar-home span + span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
