/* =========================================================
   B&B LA VALLE DEL SOLE — BLOG STYLESHEET (assets/blog.css)
   Foglio di stile CONDIVISO dalle pagine del blog.

   Le sezioni 1-8 sono estratte 1:1 dal design system di
   index.html / camere.html (stesse variabili colore, stessi
   font Google — DM Serif Display + DM Sans —, stessa nav
   "solida" delle pagine interne, stesso footer, stessi
   bottoni .btn/.btn-fill/.btn-line con freccia disegnata via
   CSS). Nessuna invenzione: stessa identità del sito, non
   quella del modello agricantus-2000 (che usa un'altra
   palette e bottoni a pillola arrotondata — qui i bottoni
   sono squadrati e maiuscoli, i "tag" sono le uniche forme
   a pillola, esattamente come in index.html/legal templates).

   Le pagine blog NON includono selettore lingua né cookie
   banner: nessun servizio terzo (Google Translate, Google
   Maps) viene caricato da queste pagine — il footer rimanda
   direttamente a index.html per Privacy/Cookie/Termini
   (dove vive il modale legale completo).

   Il sito NON ha un drawer mobile (nemmeno nelle 8 pagine
   esistenti: sotto i 900px il menu si nasconde e resta solo
   il brand) — le pagine blog replicano fedelmente lo stesso
   comportamento, non ne inventano uno nuovo.

   La sezione 9 contiene i componenti NUOVI, specifici del
   blog (pillola categoria, filtri, featured, griglia/card,
   hero tipografico articolo, prose, callout, box CTA
   soggiorno, articoli correlati, .article-figure).
========================================================= */

/* ===== 1. VARIABILI (identiche a index.html) ===== */
:root {
  --calce: #F8F4ED;
  --calce-2: #EDE6D5;
  --calce-3: #E0D5BC;
  --olive: #5C6B45;
  --olive-2: #3F4A2E;
  --olive-3: #2A3320;
  --ocra: #C9963F;
  --ocra-2: #A77727;
  --terra: #A85A3F;
  --ink: #2A1F19;
  --ink-80: rgba(42,31,25,0.82);
  --ink-60: rgba(42,31,25,0.58);
  --ink-40: rgba(42,31,25,0.38);
  --ink-20: rgba(42,31,25,0.18);
  --ink-10: rgba(42,31,25,0.10);
  --font-display: 'DM Serif Display', 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== 2. RESET + TIPOGRAFIA BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0 !important; padding: 0 !important; max-width: 100vw !important; width: 100% !important; overflow-x: hidden !important; }
body { font-family: var(--font-sans); background: var(--calce); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
main { display: block; width: 100%; }
img { max-width: 100%; display: block; background: var(--calce-2); }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--olive); color: var(--calce); }

/* ===== 3. NAV (identica alle pagine interne — camere.html, dintorni.html —
   nav sempre "solida", niente stato scrolled: le pagine blog non hanno un
   hero a tutta pagina sotto la nav) ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s var(--ease);
  color: var(--ink); background: var(--calce);
  border-bottom: 1px solid var(--ink-10);
}
.nav-brand { font-family: var(--font-display); font-size: 22px; display: flex; align-items: center; gap: 12px; }
.nav-brand .ic { width: 32px; height: 32px; background: var(--ocra); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--calce); font-weight: 700; font-size: 14px; font-family: var(--font-sans); }
.nav-menu { display: flex; gap: 36px; list-style: none; }
.nav-menu a { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--terra); }
.nav-cta { background: var(--ocra); color: var(--ink); padding: 10px 22px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.nav-cta:hover { background: var(--ocra-2); color: var(--calce); }
@media (max-width: 900px) {
  .nav-menu li { display: none; }
  .nav-menu { gap: 0; }
  .nav-cta { display: none; }
}

/* ===== 4. LAYOUT BASE ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(70px, 10vw, 110px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 700; color: var(--olive); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--ocra); }

.h-display {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04; letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.h-display em, .h-display i { font-style: italic; color: var(--terra); }

.lead { margin-top: 22px; max-width: 62ch; font-size: 17px; line-height: 1.7; color: var(--ink-80); }

/* ===== 5. BREADCRUMB (identico a .cm-breadcrumb / .dn-breadcrumb) ===== */
.breadcrumb { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-60); margin-bottom: 22px; transition: color 0.3s; }
.breadcrumb:hover { color: var(--terra); }

/* ===== 6. BOTTONI (identici a .btn/.btn-fill/.btn-line di index.html) ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; transition: all 0.3s var(--ease); }
.btn-fill { background: var(--ocra); color: var(--ink); }
.btn-fill:hover { background: var(--ocra-2); color: var(--calce); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-20); }
.btn-line:hover { background: var(--ink); color: var(--calce); border-color: var(--ink); }
/* variante per bottoni su sfondo scuro (blog-cta / blog-featured) */
.btn-line-inverse { background: transparent; color: var(--calce); border: 1.5px solid rgba(248,244,237,0.4); }
.btn-line-inverse:hover { background: rgba(248,244,237,0.12); border-color: var(--calce); }
.btn .arrow { width: 20px; height: 1.5px; background: currentColor; position: relative; flex-shrink: 0; }
.btn .arrow::after { content: ''; position: absolute; right: -1px; top: -3px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.btn:hover .arrow::after { transform: rotate(45deg) translate(2px, -2px); }

/* Link "go" con freccia disegnata via CSS — un'unica sorgente di freccia,
   riusata da featured / card / correlati: mai testo con "→" per evitare
   frecce doppie (glifo + pseudo-elemento). */
.go { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.go .arrow { width: 18px; height: 1.5px; background: currentColor; position: relative; flex-shrink: 0; }
.go .arrow::after { content: ''; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.3s var(--ease); }
a:hover .go .arrow::after { transform: rotate(45deg) translate(2px, -2px); }

/* ===== 7. REVEAL ON SCROLL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ===== 8. FOOTER (identico a index.html/camere.html) ===== */
footer { background: var(--olive-3); color: var(--calce); padding: 60px var(--gutter) 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand h4 { font-family: var(--font-display); font-size: 36px; margin-bottom: 12px; }
.footer-brand h4 i { color: var(--ocra); font-style: italic; }
.footer-brand p { color: rgba(248,244,237,0.7); font-size: 14px; max-width: 30ch; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocra); margin-bottom: 14px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: rgba(248,244,237,0.78); font-size: 14px; margin-bottom: 6px; transition: color 0.3s; }
.footer-col a:hover { color: var(--ocra); }
.footer-bottom { border-top: 1px solid rgba(248,244,237,0.15); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: rgba(248,244,237,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-bottom a { color: var(--ocra); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }

.footer-legal { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px var(--gutter) 0; font-family: var(--font-display); font-style: italic; font-size: 14px; color: rgba(248,244,237,0.65); border-top: 1px solid rgba(248,244,237,0.12); max-width: var(--max); margin: 0 auto; }
.footer-legal a { color: rgba(248,244,237,0.7); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer-legal a:hover { color: var(--ocra); border-bottom-color: var(--ocra); }
.footer-legal .sep { width: 3px; height: 3px; background: rgba(248,244,237,0.3); border-radius: 50%; }
@media (max-width: 600px) { .footer-legal { gap: 12px; font-size: 13px; } .footer-legal .sep { display: none; } }

/* =========================================================
   9. COMPONENTI BLOG (nuovi)
========================================================= */

/* --- Pillola categoria (unica forma "a pillola" del sito, come i
   tag della Cookie Policy: .legal-body .cookie-block .tag) --- */
.blog-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--olive-2);
  background: var(--calce-2);
  border: 1px solid var(--ink-10);
  border-radius: 999px;
  padding: 7px 14px;
}

/* --- Header pagina blog.html (identico a .cm-hero/.dn-hero) --- */
.blog-hero { padding: clamp(128px, 18vw, 170px) 0 8px; background: var(--calce-2); border-bottom: 1px solid var(--ink-10); }
.blog-hero .lead { margin-top: 20px; }

/* --- Filtri categoria (pillole cliccabili, JS vanilla) --- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 24px; }
.blog-filters button {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-80); background: var(--calce);
  border: 1px solid var(--ink-20); border-radius: 999px;
  padding: 10px 18px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.blog-filters button:hover { border-color: var(--terra); color: var(--terra); }
.blog-filters button.active { background: var(--ink); color: var(--calce); border-color: var(--ink); }

/* --- Featured article (card grande in evidenza, sfondo scuro come
   .s-booking/.cm-cta-sec, stesso bagliore radiale ocra usato lì) --- */
.blog-featured {
  display: block; position: relative; overflow: hidden;
  background: var(--olive-3); color: var(--calce);
  border-radius: 6px;
  padding: clamp(36px, 5vw, 60px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.blog-featured::before {
  content: ''; position: absolute; top: -200px; left: -200px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,63,0.18) 0%, transparent 70%);
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -30px rgba(42,31,25,0.4); }
.blog-featured .kicker {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ocra); margin-bottom: 22px;
}
.blog-featured h2 {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.015em;
  max-width: 18ch; color: var(--calce); text-wrap: balance;
}
.blog-featured h2 em { font-style: italic; color: var(--ocra); }
.blog-featured .excerpt { position: relative; z-index: 1; margin-top: 18px; max-width: 56ch; font-size: 15px; color: rgba(248,244,237,0.82); line-height: 1.65; }
.blog-featured .meta { position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(248,244,237,0.55); }
.blog-featured .go { position: relative; z-index: 1; margin-top: 28px; color: var(--calce); }

/* --- Griglia magazine + card articolo --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--calce); border: 1px solid var(--ink-10); border-radius: 6px;
  padding: 28px 26px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -28px rgba(42,31,25,0.22); border-color: var(--ink-20); }
.blog-card .blog-pill { align-self: flex-start; margin-bottom: 16px; }
.blog-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2vw, 22px); color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }
.blog-card .excerpt {
  margin-top: 12px; color: var(--ink-80); font-size: 14px; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .blog-meta { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--ink-60); letter-spacing: 0.04em; }
.blog-card .go { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-10); color: var(--terra); }
.blog-card[hidden] { display: none; }

@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* --- Hero tipografico articolo (identico a .cm-hero) --- */
.article-hero { padding: clamp(128px, 18vw, 170px) 0 56px; background: var(--calce-2); border-bottom: 1px solid var(--ink-10); }
.article-hero .blog-pill { margin-bottom: 24px; }
.article-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.06; letter-spacing: -0.015em;
  color: var(--ink); max-width: 18ch; text-wrap: balance;
}
.article-hero h1 em { font-style: italic; color: var(--terra); }
.article-hero .subtitle { margin-top: 22px; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-80); max-width: 62ch; line-height: 1.65; }
.article-meta { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); }
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-40); }

/* --- Corpo articolo (prose), colonna stretta come .cm-article --- */
.article-body { padding: clamp(56px, 8vw, 90px) 0; }
.article-body .container { max-width: 760px; }
.prose { max-width: 70ch; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--ink-80); }
.prose p + p { margin-top: 18px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--ink); letter-spacing: -0.01em; margin-top: 46px; margin-bottom: 16px; line-height: 1.2; }
.prose h2 em { font-style: italic; color: var(--olive); }
.prose ul { margin: 20px 0; padding-left: 0; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.prose li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--ink-80); line-height: 1.65; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ocra); }
.prose strong { color: var(--ink); font-weight: 700; }

/* --- Callout (identico a .callout di index.html) --- */
.callout { background: var(--calce-2); border-left: 3px solid var(--ocra); padding: 16px 20px; border-radius: 4px; font-size: 14.5px; color: var(--ink-80); line-height: 1.65; margin: 30px 0; max-width: 70ch; }
.callout strong { color: var(--ink); }

/* --- Box CTA soggiorno (dentro / fine articolo, stesso trattamento
   scuro + bagliore ocra di .blog-featured / .s-booking) --- */
.blog-cta {
  margin: 46px 0; max-width: 70ch; position: relative; overflow: hidden;
  background: var(--olive-3); color: var(--calce);
  border-radius: 6px; padding: clamp(32px, 4vw, 44px);
}
.blog-cta::before { content: ''; position: absolute; top: -160px; left: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(201,150,63,0.18) 0%, transparent 70%); }
.blog-cta h4 { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 2.4vw, 28px); color: var(--calce); letter-spacing: -0.01em; max-width: 22ch; }
.blog-cta h4 em { font-style: italic; color: var(--ocra); }
.blog-cta p { position: relative; z-index: 1; margin-top: 12px; font-size: 14.5px; color: rgba(248,244,237,0.8); max-width: 48ch; line-height: 1.6; }
.blog-cta .actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.blog-cta .actions .link { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ocra); border-bottom: 1px solid rgba(201,150,63,0.4); padding-bottom: 3px; transition: color 0.3s, border-color 0.3s; }
.blog-cta .actions .link:hover { color: var(--calce); border-bottom-color: var(--calce); }

/* --- Articoli correlati --- */
.blog-related { padding: clamp(56px, 8vw, 90px) 0; background: var(--calce-2); border-top: 1px solid var(--ink-10); }
.blog-related .h-display { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.blog-related-grid .blog-card { background: var(--calce); }
@media (max-width: 900px) { .blog-related-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .article-hero { padding-top: 150px; }
}

/* --- Foto articolo (patrimonio del sito o materiale fornito dal cliente,
   nessun servizio esterno caricato) --- */
.article-figure { margin: 36px 0 8px; }
.article-figure img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 6px; display: block; }
.article-figure figcaption { margin-top: 10px; font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--ink-60); }
.article-figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.prose .article-figure { margin: 34px 0; }


/* ---- aggiunte: selettore lingua + banner cookie + modale legale ---- */
/* Language switcher */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 0; font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: inherit; border: 1.5px solid rgba(42,31,25,0.3); background: transparent; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.lang-btn:hover { background: var(--ocra); border-color: var(--ocra); color: var(--ink); }
.lang-cur { font-weight: 700; }
.lang-arr { font-size: 8px; transition: transform 0.3s; opacity: 0.7; }
.lang-switch.open .lang-arr { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: var(--calce); border-radius: 0; padding: 6px; min-width: 180px; box-shadow: 0 14px 36px -10px rgba(42,31,25,0.28); display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 200; border: 1px solid rgba(42,31,25,0.08); }
.lang-switch.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown button { text-align: left; padding: 11px 14px; border-radius: 0; font-family: var(--font-display); font-size: 15px; font-weight: 400; color: var(--ink); background: transparent; border: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s, color 0.2s; }
.lang-dropdown button .code { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.22em; opacity: 0.5; font-weight: 600; }
.lang-dropdown button:hover { background: var(--calce-2); color: var(--olive-2); }
.lang-dropdown button.active { background: var(--olive-3); color: var(--calce); }
.lang-dropdown button.active .code { color: var(--ocra); opacity: 0.95; }

/* Google Translate chrome cleanup */
.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-banner-frame, .goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover { display: none !important; background: transparent !important; box-shadow: none !important; }
#goog-gt-tt { display: none !important; }
.goog-te-gadget { font-size: 0 !important; height: 0 !important; overflow: hidden !important; }
font[style*="background-color"], font.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; color: var(--olive); margin-bottom: 20px; }
.eyebrow::before { content:""; width: 24px; height: 2px; background: var(--ocra); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; transition: all 0.3s var(--ease); }
.btn-fill { background: var(--ocra); color: var(--ink); }
.btn-fill:hover { background: var(--ocra-2); color: var(--calce); }
.btn-line { background: transparent; color: var(--calce); border: 1.5px solid rgba(248,244,237,0.5); }
.btn-line:hover { background: var(--calce); color: var(--ink); border-color: var(--calce); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1!important; transform:none!important; } }

/* Cookie banner */
.cookie-banner { position: fixed; left: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 9990; background: var(--olive-3); color: var(--calce); border-radius: 6px; box-shadow: 0 30px 80px rgba(42,31,25,0.45); padding: clamp(20px, 2.5vw, 26px) clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s var(--ease); max-width: 1080px; margin: 0 auto; border: 1px solid rgba(201,150,63,0.22); }
.cookie-banner.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-text { font-size: 13.5px; line-height: 1.6; color: rgba(248,244,237,0.85); }
.cookie-banner-text h5 { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--calce); margin-bottom: 6px; letter-spacing: -0.01em; }
.cookie-banner-text h5 em { color: var(--ocra); font-style: italic; }
.cookie-banner-text a { color: var(--ocra); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-text a:hover { color: var(--calce); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.cookie-btn { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 20px; border-radius: 4px; cursor: pointer; transition: all .25s ease; border: 1px solid transparent; white-space: nowrap; }
.cookie-btn.ghost { background: transparent; color: rgba(248,244,237,0.8); border-color: rgba(248,244,237,0.22); }
.cookie-btn.ghost:hover { color: var(--ink); border-color: var(--calce); background: var(--calce); }
.cookie-btn.primary { background: var(--ocra); color: var(--ink); border-color: var(--ocra); }
.cookie-btn.primary:hover { background: var(--ocra-2); border-color: var(--ocra-2); color: var(--calce); }
.cookie-btn.link { background: transparent; color: rgba(248,244,237,0.6); border: 0; padding: 12px 10px; text-decoration: underline; text-underline-offset: 4px; }
.cookie-btn.link:hover { color: var(--calce); }
@media (max-width: 820px) { .cookie-banner { grid-template-columns: 1fr; gap: 16px; padding: 20px 20px 18px; } .cookie-banner-actions { justify-content: flex-start; } .cookie-btn { flex: 1 1 calc(50% - 5px); text-align: center; padding: 12px 10px; } .cookie-btn.link { flex-basis: 100%; } }

/* Policy + prefs modal */
.legal-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 48px); background: rgba(42,31,25,0.78); backdrop-filter: saturate(1.1) blur(6px); -webkit-backdrop-filter: saturate(1.1) blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.legal-overlay.open { display: flex; opacity: 1; }
.legal-card { background: var(--calce); color: var(--ink); width: 100%; max-width: 860px; max-height: 92vh; border-radius: 6px; box-shadow: 0 40px 100px rgba(42,31,25,0.5); display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px) scale(0.98); transition: transform .45s var(--ease); border: 1px solid var(--calce-2); }
.legal-overlay.open .legal-card { transform: translateY(0) scale(1); }
.legal-head { padding: 30px clamp(24px, 4vw, 44px) 22px; border-bottom: 1px solid var(--ink-10); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; background: var(--calce); position: sticky; top: 0; z-index: 2; }
.legal-head .kicker { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--olive-2); font-weight: 700; display: block; margin-bottom: 8px; }
.legal-head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.legal-head h3 em { font-style: italic; color: var(--olive); font-weight: 400; }
.legal-head .updated { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); margin-top: 8px; }
.legal-close { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--ink-20); background: transparent; cursor: pointer; color: var(--ink); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.legal-close:hover { background: var(--ink); color: var(--calce); border-color: var(--ink); transform: rotate(90deg); }
.legal-close::before, .legal-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; }
.legal-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.legal-close::after { transform: translate(-50%,-50%) rotate(-45deg); }

.legal-body { padding: 26px clamp(24px, 4vw, 44px) clamp(32px, 5vw, 48px); overflow-y: auto; flex: 1; font-size: 14.5px; line-height: 1.75; color: var(--ink-80); overscroll-behavior: contain; }
.legal-body::-webkit-scrollbar { width: 8px; }
.legal-body::-webkit-scrollbar-thumb { background: var(--ink-20); border-radius: 4px; }
.legal-body .lead { font-family: var(--font-display); font-style: italic; font-size: 15.5px; color: var(--ink-80); margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--ink-10); }
.legal-body h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--ink); margin-top: 34px; margin-bottom: 12px; letter-spacing: -0.01em; scroll-margin-top: 120px; }
.legal-body h4:first-of-type { margin-top: 0; }
.legal-body h5 { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-top: 22px; margin-bottom: 10px; }
.legal-body p { margin-bottom: 12px; }
.legal-body p strong, .legal-body li strong { color: var(--ink); font-weight: 700; }
.legal-body ul, .legal-body ol { padding-left: 20px; margin-bottom: 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--olive-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--olive); }
.legal-body .callout { background: var(--calce-2); border-left: 3px solid var(--ocra); padding: 14px 18px; margin: 18px 0; font-size: 14px; border-radius: 4px; }
.legal-body .placeholder { display: inline-block; background: rgba(201,150,63,0.18); color: var(--ocra-2); padding: 1px 8px; border-radius: 3px; font-weight: 600; font-size: 0.95em; border: 1px dashed var(--ocra); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 13.5px; }
.legal-body table th, .legal-body table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink-10); vertical-align: top; }
.legal-body table th { font-family: var(--font-sans); font-weight: 700; color: var(--ink); background: var(--calce-2); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-body table td { color: var(--ink-80); }
.legal-body .cookie-block { background: #fff; border: 1px solid var(--ink-10); border-radius: 4px; padding: 18px 22px; margin: 16px 0; }
.legal-body .cookie-block h5 { margin-top: 0; margin-bottom: 8px; }
.legal-body .cookie-block .tag { display: inline-block; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.legal-body .tag-tech { background: var(--ink-10); color: var(--ink); }
.legal-body .tag-third { background: rgba(92,107,69,0.18); color: var(--olive-2); }
.legal-body .cookie-block dl { margin-top: 8px; font-size: 13px; }
.legal-body .cookie-block dl div { display: grid; grid-template-columns: 150px 1fr; padding: 6px 0; border-bottom: 1px dashed var(--ink-10); }
.legal-body .cookie-block dl div:last-child { border-bottom: 0; }
.legal-body .cookie-block dt { font-weight: 700; color: var(--ink); font-size: 12px; }
.legal-body .cookie-block dd { color: var(--ink-80); font-size: 13px; }
.legal-body .foot-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ink-10); font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--ink-60); }

.cookie-prefs-card { max-width: 620px; }
.cookie-prefs-body { padding: 22px 32px 8px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.6; color: var(--ink-80); }
.cookie-prefs-body p { margin-bottom: 12px; }
.cookie-prefs-body a { color: var(--olive-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-category { padding: 16px 0; border-bottom: 1px solid var(--ink-10); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: flex-start; }
.cookie-category:last-of-type { border-bottom: 0; }
.cookie-category-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.cookie-category-desc { font-size: 13px; color: var(--ink-60); line-height: 1.55; }
.cookie-category .status { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); margin-top: 6px; font-weight: 700; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: var(--ink-20); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.switch .slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: var(--calce); border-radius: 50%; transition: transform .2s var(--ease); }
.switch input:checked + .slider { background: var(--olive); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: rgba(92,107,69,0.55); cursor: not-allowed; }
.cookie-prefs-foot { padding: 18px 32px 24px; border-top: 1px solid var(--ink-10); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-prefs-foot .cookie-btn.ghost { color: var(--ink-60); border-color: var(--ink-20); }
.cookie-prefs-foot .cookie-btn.ghost:hover { color: var(--calce); border-color: var(--ink); background: var(--ink); }
.cookie-prefs-foot .cookie-btn.primary { background: var(--olive); color: var(--calce); border-color: var(--olive); }
.cookie-prefs-foot .cookie-btn.primary:hover { background: var(--olive-2); border-color: var(--olive-2); }
@media (max-width: 500px) { .cookie-prefs-body, .cookie-prefs-foot, .legal-head { padding-left: 20px; padding-right: 20px; } .cookie-prefs-foot { flex-direction: column; } .cookie-prefs-foot .cookie-btn { width: 100%; text-align: center; } }

body.no-scroll { overflow: hidden; }
