/* =========================================================
   HOLIDAY HOUSE ANNUNZIATA — 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 / unita.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; }
