/* Discover Dolomites — styles
   Brand tokens are taken from the book covers: bold geometric sans,
   high-contrast serif accent, red rule. Change them here. */
:root {
  --ink: #0e1317;
  --paper: #f7f5f1;
  --stone: #ebe7df;
  --muted: #5a646b;
  --red: #c8202f;
  --red-dark: #a51a27;
  --white: #fff;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow, .narrow { max-width: 760px; }
.center { text-align: center; }
.center.narrow { margin-left: auto; margin-right: auto; }

/* Type */
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow.light { color: rgba(255, 255, 255, 0.85); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 22px; }
h3 { font-size: 1.6rem; font-weight: 800; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.on-photo .lead { color: rgba(255, 255, 255, 0.9); }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.fine.light { color: rgba(255, 255, 255, 0.8); }
.link-arrow { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link-arrow.dark { color: var(--white); border-color: var(--red); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center-row { justify-content: center; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font: 700 0.9rem var(--sans); letter-spacing: 0.04em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--red); color: var(--white); }
.btn.primary:hover { background: var(--red-dark); }
.btn.ghost { border-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--ink); }
.btn.outline { border-color: var(--ink); color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; color: var(--white); transition: background 0.25s, box-shadow 0.25s; }
.site-header.solid { background: rgba(14, 19, 23, 0.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { text-decoration: none; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.03em; white-space: nowrap; }
.logo b { font-weight: 800; }
.logo i { font-style: normal; color: var(--red); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.nav > a { text-decoration: none; opacity: 0.92; }
.nav > a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.dropdown { position: relative; }
.dropdown-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 0; opacity: 0.92; }
.dropdown-menu { position: absolute; top: 100%; left: -14px; min-width: 200px; background: var(--ink); border-radius: var(--radius); padding: 8px 0; display: none; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.dropdown.open .dropdown-menu, .dropdown:hover .dropdown-menu { display: block; }
.dropdown.lang .dropdown-menu { left: auto; right: -10px; }
.dropdown-menu a, .dropdown-menu .soon { display: block; padding: 9px 18px; text-decoration: none; font-weight: 500; }
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); }
.dropdown-menu .soon { opacity: 0.45; cursor: default; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform 0.2s, top 0.2s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--ink); }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .bg { object-position: 50% 50%; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 16, 0.5) 0%, rgba(8, 12, 16, 0.12) 38%, rgba(8, 12, 16, 0.6) 100%); }
.shade.heavy { background: linear-gradient(180deg, rgba(8, 12, 16, 0.58), rgba(8, 12, 16, 0.66)); }
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 24px); padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.8rem, 10.5vw, 8rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; }
.hero h1 b { font-weight: 800; }
.hero h1 i { font-style: normal; color: var(--red); }
.hero .rule { display: block; width: 72px; height: 5px; background: var(--red); margin: 30px 0 24px; }
.hero-sub { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 10px; }
.hero-regions { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.88; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--white); text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 34px; background: currentColor; margin: 10px auto 0; }

/* Strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.light { background: var(--paper); }
.section.stone { background: var(--stone); }
.photo-section { position: relative; padding: clamp(80px, 11vw, 150px) 0; color: var(--white); overflow: hidden; background: var(--ink); }
.photo-section.tall { padding: clamp(110px, 16vw, 210px) 0; }
.on-photo { position: relative; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-light { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; text-align: center; }
.stats strong { display: block; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--red); line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.92rem; }

/* Spots & features */
.spots { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.spots li { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 18px 22px; }
.spots strong { display: block; font-size: 1.05rem; }
.spots span { font-size: 0.92rem; opacity: 0.88; }
.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.features li { position: relative; padding-left: 22px; font-weight: 600; font-size: 0.95rem; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 3px; background: var(--red); }

/* Book feature */
.book-feature { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.book-feature.reverse { grid-template-columns: 1fr 360px; }
.book-feature.reverse .cover { order: 2; }
.cover { display: block; box-shadow: 0 28px 60px rgba(14, 19, 23, 0.35); border-radius: 3px; overflow: hidden; transition: transform 0.3s; }
.cover:hover { transform: translateY(-4px) rotate(-0.4deg); }
.cover img { width: 100%; }
.book-feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.book-feature h3 small { display: block; font-family: var(--serif); font-weight: 600; font-size: 0.62em; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 8px; }
.subtitle { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); margin-top: 12px; }

/* Journal */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.journal-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(14, 19, 23, 0.08); display: flex; flex-direction: column; }
.journal-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.journal-card > div { padding: 22px 24px 26px; }
.journal-card h3 { font-size: 1.15rem; line-height: 1.25; margin: 8px 0 10px; letter-spacing: -0.01em; }
.journal-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.tags { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.soon-label { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid rgba(14, 19, 23, 0.25); border-radius: 999px; padding: 4px 12px; }

/* Highlight cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; aspect-ratio: 4 / 5; background: var(--ink); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover img { transform: scale(1.06); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 16, 0) 45%, rgba(8, 12, 16, 0.82)); }
.card-tag { position: absolute; z-index: 1; top: 14px; left: 14px; background: var(--red); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.card-body { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; }
.card-body strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.card-body em { display: block; font-style: normal; font-size: 0.85rem; opacity: 0.88; margin-top: 4px; }

/* Map */
.map { width: 100%; max-width: 680px; height: auto; margin: 36px auto 0; display: block; }
.map .range { fill: rgba(200, 32, 47, 0.08); stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.map .route path { fill: none; stroke: rgba(14, 19, 23, 0.22); stroke-width: 2; }
.map .pin circle { fill: var(--red); stroke: var(--paper); stroke-width: 3; }
.map .pin text { font: 700 14px var(--sans); fill: var(--ink); }

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: clamp(32px, 6vw, 90px); justify-content: center; margin-top: 56px; text-align: center; }
.book .series { margin: 26px 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.book h3 { font-size: 1.5rem; }
.book .subtitle { margin: 8px 0 14px; }

/* Checklist */
.signup { display: flex; gap: 10px; max-width: 520px; margin: 30px auto 0; }
.signup input { flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 2px solid transparent; font: 500 1rem var(--sans); }
.form-msg { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.check-items { list-style: none; margin: 34px auto 0; padding: 0; max-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; text-align: left; font-size: 0.95rem; font-weight: 500; }
.check-items li { position: relative; padding-left: 26px; }
.check-items li::before { content: "✓"; position: absolute; left: 0; color: var(--white); font-weight: 800; }

/* Series band + footer */
.band { background: var(--ink); color: var(--white); padding: 34px 0; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.band p { margin: 0; opacity: 0.9; }
.site-footer { background: #090d10; color: rgba(255, 255, 255, 0.78); padding: 56px 0 40px; font-size: 0.88rem; }
.footer-inner { display: grid; gap: 22px; }
.site-footer .logo { color: var(--white); font-size: 1.3rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; }
.site-footer p { margin: 0; opacity: 0.7; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card img, .cover, .btn { transition: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .journal-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .split, .split-light { grid-template-columns: 1fr; }
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; max-height: calc(100svh - var(--header-h)); overflow-y: auto; display: none; font-size: 1rem; }
  .nav.open { display: flex; }
  .nav > a, .dropdown-btn { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); width: 100%; text-align: left; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
  .site-header { background: rgba(14, 19, 23, 0.94); }
}

/* Phone */
@media (max-width: 760px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; gap: 34px; }
  .book-feature, .book-feature.reverse { grid-template-columns: 1fr; }
  .book-feature .cover, .book-feature.reverse .cover { order: 0; max-width: 300px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body strong { font-size: 0.98rem; }
  .card-body em { display: none; }
  .book-grid { grid-template-columns: 1fr; }
  .book .cover { max-width: 280px; margin: 0 auto; }
  .signup { flex-direction: column; }
  .check-items { grid-template-columns: 1fr; }
  .hero-regions { letter-spacing: 0.08em; line-height: 1.8; }
}
