/* Delitti all'italiana — static landing, mobile-first */
:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --cream: #f7f1e6;
  --cream-2: #efe6d4;
  --blood: #b91c1c;
  --blood-hot: #dc2626;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --ink: #0b1220;
  --muted: #64748b;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blood); }
a:hover { color: var(--blood-hot); }
.container { width: min(1100px, 92vw); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  color: var(--cream);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .65rem 0; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: .02em;
  color: var(--cream); text-decoration: none; font-size: 1.05rem;
}
.brand span { color: var(--gold); }
.lang-switch { display: flex; gap: .35rem; flex-wrap: wrap; }
.lang-switch a {
  color: var(--cream); text-decoration: none;
  font-size: .78rem; font-weight: 700;
  padding: .28rem .5rem; border-radius: 999px;
  border: 1px solid transparent; opacity: .75;
}
.lang-switch a[aria-current="page"],
.lang-switch a:hover {
  opacity: 1; border-color: var(--gold); color: var(--gold-soft);
}
.top-cta {
  background: var(--blood); color: #fff !important;
  text-decoration: none; font-weight: 700; font-size: .85rem;
  padding: .45rem .9rem; border-radius: 999px;
  white-space: nowrap;
}
.top-cta:hover { background: var(--blood-hot); color: #fff !important; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; place-items: center;
  color: var(--cream); overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.55) contrast(1.05) saturate(1.05);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.35) 40%, rgba(15,23,42,.88) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(185,28,28,.25), transparent 55%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(960px, 92vw);
  padding: 5.5rem 0 4rem;
  text-align: left;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.45);
  color: var(--gold-soft);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.08; margin: 0 0 .85rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.hero .hook {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 36rem; margin: 0 0 1.6rem;
  color: #f1e9d8; opacity: .95;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: none; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: 1rem;
  padding: .9rem 1.35rem; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blood); color: #fff;
  box-shadow: 0 10px 28px rgba(185,28,28,.4);
}
.btn-primary:hover { background: var(--blood-hot); color: #fff; }
.btn-secondary {
  background: rgba(247,241,230,.12); color: var(--cream);
  border: 1px solid rgba(247,241,230,.35);
}
.btn-secondary:hover { background: rgba(247,241,230,.22); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px dashed rgba(201,162,39,.55);
}
.btn-amazon[aria-disabled="true"],
.btn-amazon.is-coming {
  background: #334155; color: #cbd5e1; cursor: not-allowed;
  box-shadow: none; opacity: .85;
  pointer-events: none;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  font-size: .92rem; color: #d6d3c8;
}
.hero-meta strong { color: var(--gold-soft); }
.hero-cover {
  position: absolute; right: 6%; bottom: 8%; z-index: 2;
  width: min(220px, 28vw); border-radius: 10px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(201,162,39,.45);
  transform: rotate(3deg);
}
@media (max-width: 820px) {
  .hero-cover { display: none; }
  .hero-content { text-align: center; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hook { margin-inline: auto; }
}

/* Sections */
section { padding: 3.5rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0 0 .5rem; color: var(--navy);
}
.section-lead { color: var(--muted); max-width: 40rem; margin: 0 0 1.75rem; }
.band-navy { background: var(--navy); color: var(--cream); }
.band-navy .section-title { color: var(--cream); }
.band-navy .section-lead { color: #94a3b8; }
.band-cream-2 { background: var(--cream-2); }

/* Video / trailer */
.video-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1.3fr .55fr .55fr;
}
@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  background: #020617; border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(201,162,39,.25);
  box-shadow: var(--shadow);
}
.video-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.video-card.portrait video { aspect-ratio: 9/16; max-height: 520px; margin-inline: auto; }
.video-card figcaption {
  padding: .75rem 1rem; font-size: .9rem; color: #cbd5e1;
}
.video-card figcaption strong { color: var(--gold-soft); }

/* Interactive case */
.case-panel {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.08);
  overflow: hidden;
}
.case-head {
  background: linear-gradient(135deg, var(--navy), #7f1d1d);
  color: var(--cream); padding: 1.25rem 1.4rem;
}
.case-head h3 { margin: 0 0 .35rem; font-family: var(--font-display); font-size: 1.45rem; }
.case-head p { margin: 0; opacity: .9; font-size: .95rem; }
.case-body { padding: 1.25rem 1.4rem 1.6rem; display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .case-body { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.story { font-size: 1.02rem; }
.meta-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0; }
.pill {
  background: var(--cream-2); border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; font-weight: 700;
}
.pill.weapon { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.suspects { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.suspects li {
  background: var(--cream); border-left: 4px solid var(--gold);
  padding: .55rem .75rem; border-radius: 8px;
}
.suspects code {
  font-weight: 800; color: var(--blood); background: #fee2e2;
  padding: .1rem .4rem; border-radius: 6px; margin-right: .35rem;
}
.clues { margin: 0; padding-left: 1.15rem; }
.clues li { margin: .35rem 0; }
.map-wrap {
  background: #0b1220; color: #e2e8f0;
  border-radius: 12px; padding: 1rem; overflow-x: auto;
}
.map-wrap h4 { margin: 0 0 .75rem; color: var(--gold-soft); font-size: .95rem; }
.map-grid {
  display: grid;
  grid-template-columns: 28px repeat(4, minmax(64px, 1fr));
  gap: 4px; min-width: 300px;
}
.map-cell, .map-label {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 8px; font-size: .72rem; text-align: center;
  padding: .25rem; line-height: 1.15; font-weight: 700;
}
.map-label { background: transparent; color: #94a3b8; aspect-ratio: auto; min-height: 28px; }
.map-cell { border: 1px solid rgba(255,255,255,.12); position: relative; cursor: pointer; }
.map-cell:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.map-cell.zone-s { background: #1e3a5f; }
.map-cell.zone-c { background: #7f1d1d; }
.map-cell.zone-t { background: #14532d; }
.map-cell.zone-k { background: #44403c; }
.map-cell.blocked { opacity: .55; cursor: default; }
.map-cell .obj { font-size: .85rem; opacity: .9; }
.map-cell .letter {
  position: absolute; inset: auto auto 4px 4px;
  background: var(--gold); color: var(--navy);
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem;
  font-size: .78rem; color: #cbd5e1;
}
.map-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.swatch { width: .85rem; height: .85rem; border-radius: 3px; display: inline-block; }
.swatch.s { background: #1e3a5f; }
.swatch.c { background: #7f1d1d; }
.swatch.t { background: #14532d; }
.swatch.k { background: #44403c; }
.case-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.reveal-box {
  display: none; margin-top: 1rem;
  background: #111827; color: #f8fafc;
  border: 1px solid var(--gold); border-radius: 12px; padding: 1rem 1.1rem;
}
.reveal-box.is-open { display: block; }
.reveal-box strong { color: var(--gold-soft); }
.guess-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.guess-row button {
  border: 1px solid rgba(15,23,42,.15); background: var(--cream);
  border-radius: 999px; padding: .45rem .85rem; font-weight: 700; cursor: pointer;
}
.guess-row button:hover { border-color: var(--blood); color: var(--blood); }
.guess-row button.correct { background: #14532d; color: #fff; border-color: #14532d; }
.guess-row button.wrong { background: #7f1d1d; color: #fff; border-color: #7f1d1d; }
.feedback { min-height: 1.4em; font-weight: 700; margin-top: .4rem; }

/* What's inside */
.features {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.feature {
  background: var(--white); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; border: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.feature .ico { font-size: 1.5rem; margin-bottom: .4rem; }
.feature h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Social proof */
.proof {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.proof blockquote {
  margin: 0; background: var(--white);
  border-left: 4px solid var(--blood);
  padding: 1rem 1.1rem; border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--navy-2);
}
.proof cite { display: block; margin-top: .55rem; font-style: normal; font-size: .82rem; color: var(--muted); font-weight: 700; }

/* Author */
.author {
  display: grid; gap: 1.25rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .author { grid-template-columns: 160px 1fr; } }
.author-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--gold);
  background: var(--navy);
}
.author h3 { margin: 0 0 .4rem; font-family: var(--font-display); }
.author p { margin: 0 0 .75rem; color: var(--muted); }

/* FAQ */
.faq details {
  background: var(--white); border-radius: 10px;
  padding: .85rem 1rem; margin-bottom: .6rem;
  border: 1px solid rgba(15,23,42,.08);
}
.faq summary {
  cursor: pointer; font-weight: 800; color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--blood); }
.faq details[open] summary::before { content: "– "; }
.faq p { margin: .55rem 0 0; color: var(--muted); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: .5rem; padding: .65rem .75rem;
  background: rgba(15,23,42,.96); border-top: 1px solid rgba(201,162,39,.35);
  justify-content: center; flex-wrap: wrap;
}
.sticky-cta .btn { flex: 1 1 140px; padding: .75rem 1rem; font-size: .92rem; }
@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.75rem; }
}

/* Footer + picker */
footer {
  background: #020617; color: #94a3b8;
  padding: 2.5rem 0 5.5rem; font-size: .9rem;
}
footer a { color: var(--gold-soft); }
.footer-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer-grid strong { color: var(--cream); display: block; margin-bottom: .35rem; }
.footer-note { margin-top: 1.5rem; font-size: .8rem; opacity: .8; }

/* Language picker page */
.picker-hero {
  min-height: 100vh; display: grid; place-items: center;
  background:
    linear-gradient(160deg, rgba(15,23,42,.92), rgba(127,29,29,.75)),
    url("../img/hero-art.jpg") center/cover;
  color: var(--cream); text-align: center; padding: 2rem;
}
.picker-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 .5rem;
}
.picker-hero p { max-width: 32rem; margin: 0 auto 1.75rem; opacity: .92; }
.lang-cards {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  width: min(820px, 100%); margin-inline: auto;
}
.lang-card {
  background: rgba(247,241,230,.1);
  border: 1px solid rgba(201,162,39,.4);
  border-radius: 14px; padding: 1.1rem .9rem;
  color: var(--cream); text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.lang-card:hover { transform: translateY(-3px); background: rgba(201,162,39,.18); color: #fff; }
.lang-card strong { display: block; font-size: 1.15rem; margin-bottom: .25rem; }
.lang-card span { font-size: .85rem; opacity: .85; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
