/* =========================================================
   MARIS TERRA B&B — BLOG STYLESHEET (assets/blog.css)
   Foglio condiviso da blog.html e dai 20 articoli.
   Palette e font sono gli stessi di index.html: oro #d9a648,
   sabbia #f4ecdb, terracotta #c25e3a, ink #1a1410, Montserrat
   per il testo e Caveat per gli accenti manoscritti.
========================================================= */

:root {
  --oro: #d9a648;
  --oro-2: #a6823c;
  --oro-3: #8b6a2f;
  --crema: #fbf7ee;
  --sabbia: #f4ecdb;
  --sabbia-2: #e8ddc4;
  --bianco: #faf8f5;
  --terra: #c25e3a;
  --terra-2: #a04527;
  --verde: #3d5532;
  --ink: #1a1410;
  --ink-80: rgba(26,20,16,0.82);
  --ink-60: rgba(26,20,16,0.58);
  --ink-40: rgba(26,20,16,0.38);
  --ink-20: rgba(26,20,16,0.18);
  --ink-10: rgba(26,20,16,0.10);
  --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
  --font-script: 'Caveat', cursive;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* overflow-x: clip (mai hidden): hidden disattiva silenziosamente position:sticky */
html, body { margin: 0 !important; padding: 0 !important; max-width: 100vw !important; width: 100% !important; overflow-x: clip !important; }
body { font-family: var(--font-sans); background: var(--bianco); color: var(--ink); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
main { display: block; width: 100%; }
img { max-width: 100%; display: block; background: var(--sabbia); }
img.broken { background: var(--sabbia-2); }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
::selection { background: var(--oro); color: var(--ink); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(60px, 9vw, 100px) 0; }

/* ---------- NAV (solida, come le pagine interne) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 12px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: rgba(250,248,245,0.96); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--ink-10); transition: all 0.4s var(--ease); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 34px; width: auto; background: none; }
.nav-menu { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-menu a { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ink-80); transition: color 0.3s; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--oro-2); }
.nav-cta { background: var(--oro); color: var(--ink); padding: 11px 22px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.3s, color 0.3s; white-space: nowrap; }
.nav-cta:hover { background: var(--oro-2); color: var(--crema); }
@media (max-width: 980px) { .nav-menu { display: none; } }
@media (max-width: 420px) { .nav-cta { padding: 10px 14px; font-size: 10.5px; } }

/* ---------- TIPOGRAFIA CONDIVISA ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; font-weight: 700; color: var(--oro-2); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--oro); }
.h-display { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.h-display em, .h-display i { font-family: var(--font-script); font-style: normal; font-weight: 500;
  color: var(--terra); letter-spacing: 0; font-size: 1.16em; line-height: 0.9; }
.lead { margin-top: 20px; max-width: 62ch; font-size: 16px; line-height: 1.75; color: var(--ink-80); }
.breadcrumb { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-60); margin-bottom: 20px; transition: color 0.3s; }
.breadcrumb:hover { color: var(--terra); }

/* ---------- BOTTONI ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 6px;
  font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.3s var(--ease); }
.btn-fill { background: var(--oro); color: var(--ink); }
.btn-fill:hover { background: var(--oro-2); color: var(--crema); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-20); }
.btn-line:hover { background: var(--ink); color: var(--crema); border-color: var(--ink); }
.btn-line-inverse { background: transparent; color: var(--crema); border: 1.5px solid rgba(251,247,238,0.4); }
.btn-line-inverse:hover { background: rgba(251,247,238,0.14); border-color: var(--crema); }
/* freccia disegnata via CSS: mai un "→" anche nel testo, altrimenti si vedono due frecce */
.btn .arrow, .go .arrow { width: 18px; height: 1.5px; background: currentColor; position: relative; flex-shrink: 0; }
.btn .arrow::after, .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); }
.btn:hover .arrow::after, a:hover .go .arrow::after { transform: rotate(45deg) translate(2px, -2px); }
.go { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- REVEAL ---------- */
.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; } }

/* ---------- FIGURE FOTO LUOGHI ---------- */
.article-figure { margin: 34px 0 8px; }
.article-figure img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 8px; }
.article-figure figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--ink-60); font-style: italic; }
.article-figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: var(--crema); 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-size: 26px; letter-spacing: -0.02em; color: var(--crema); margin-bottom: 12px; }
.footer-brand h4 i { font-family: var(--font-script); font-style: normal; color: var(--oro); font-size: 1.2em; }
.footer-brand p { color: rgba(251,247,238,0.7); font-size: 13.5px; max-width: 32ch; }
.footer-col h5 { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--oro); margin-bottom: 14px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: rgba(251,247,238,0.78); font-size: 13.5px; margin-bottom: 6px; transition: color 0.3s; }
.footer-col a:hover { color: var(--oro); }
.footer-legal { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 26px var(--gutter) 0; margin-top: 34px; font-size: 12.5px; color: rgba(251,247,238,0.6);
  border-top: 1px solid rgba(251,247,238,0.12); max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-legal a { color: rgba(251,247,238,0.7); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.footer-legal a:hover { color: var(--oro); border-bottom-color: var(--oro); }
.footer-legal .sep { width: 3px; height: 3px; background: rgba(251,247,238,0.3); border-radius: 50%; }
.footer-bottom { border-top: 1px solid rgba(251,247,238,0.15); margin-top: 22px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 10.5px;
  color: rgba(251,247,238,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-bottom a { color: var(--oro); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .footer-legal { gap: 12px; } .footer-legal .sep { display: none; } }

/* =========================================================
   COMPONENTI BLOG
   Le pagine del blog NON caricano servizi terzi (niente
   Google Translate, niente mappe): il footer rimanda a
   index.html, dove vivono i modali legali completi.
========================================================= */
.blog-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--oro-2); background: var(--sabbia);
  border: 1px solid var(--ink-10); border-radius: 999px; padding: 7px 14px; }

.blog-hero { padding: clamp(122px, 17vw, 165px) 0 10px; background: var(--sabbia); border-bottom: 1px solid var(--ink-10); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 38px 0 26px; }
.blog-filters button { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-80); background: var(--crema); 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(--crema); border-color: var(--ink); }

.blog-featured { display: block; position: relative; overflow: hidden; background: var(--ink); color: var(--crema);
  border-radius: 14px; padding: clamp(34px, 5vw, 58px); 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(217,166,72,0.2) 0%, transparent 70%); }
.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -30px rgba(26,20,16,0.42); }
.blog-featured > * { position: relative; z-index: 1; }
.blog-featured .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro); margin-bottom: 20px; }
.blog-featured h2 { font-size: clamp(1.7rem, 3.8vw, 2.9rem); line-height: 1.12; letter-spacing: -0.035em;
  max-width: 20ch; color: var(--crema); text-wrap: balance; }
.blog-featured h2 em { font-family: var(--font-script); font-style: normal; font-weight: 500; color: var(--oro); font-size: 1.16em; letter-spacing: 0; }
.blog-featured .excerpt { margin-top: 18px; max-width: 58ch; font-size: 15px; color: rgba(251,247,238,0.82); line-height: 1.7; }
.blog-featured .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,247,238,0.55); }
.blog-featured .go { margin-top: 26px; color: var(--crema); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: var(--crema); border: 1px solid var(--ink-10);
  border-radius: 12px; padding: 26px 24px; 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(26,20,16,0.24); border-color: var(--oro); }
.blog-card .blog-pill { align-self: flex-start; margin-bottom: 15px; }
.blog-card h3 { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.3; }
.blog-card .excerpt { margin-top: 11px; color: var(--ink-80); font-size: 13.5px; line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .go { margin-top: 16px; padding-top: 15px; 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; } }

.article-hero { padding: clamp(122px, 17vw, 165px) 0 52px; background: var(--sabbia); border-bottom: 1px solid var(--ink-10); }
.article-hero .blog-pill { margin-bottom: 22px; }
.article-hero h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.1; letter-spacing: -0.035em; max-width: 20ch; text-wrap: balance; }
.article-hero h1 em { font-family: var(--font-script); font-style: normal; font-weight: 500; color: var(--terra); font-size: 1.16em; letter-spacing: 0; }
.article-hero .subtitle { margin-top: 20px; font-size: 16px; color: var(--ink-80); max-width: 62ch; line-height: 1.7; }
.article-meta { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 11px; 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); }

.article-body { padding: clamp(50px, 7vw, 84px) 0; }
.article-body .container { max-width: 780px; }
.prose { max-width: 70ch; }
.prose p { font-size: 15.5px; line-height: 1.85; color: var(--ink-80); }
.prose p + p { margin-top: 17px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 42px; margin-bottom: 14px; }
.prose a { color: var(--terra-2); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose i { font-style: italic; }
.callout { background: var(--sabbia); border-left: 3px solid var(--oro); padding: 16px 20px; border-radius: 6px;
  font-size: 14px; color: var(--ink-80); line-height: 1.7; margin: 28px 0; max-width: 70ch; }
.callout strong { color: var(--ink); }

.blog-cta { margin: 44px 0 0; max-width: 70ch; position: relative; overflow: hidden; background: var(--ink);
  color: var(--crema); border-radius: 14px; padding: clamp(30px, 4vw, 42px); }
.blog-cta::before { content: ''; position: absolute; top: -160px; left: -160px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(217,166,72,0.2) 0%, transparent 70%); }
.blog-cta > * { position: relative; z-index: 1; }
.blog-cta h4 { font-size: clamp(20px, 2.4vw, 26px); color: var(--crema); letter-spacing: -0.03em; max-width: 24ch; }
.blog-cta h4 em { font-family: var(--font-script); font-style: normal; font-weight: 500; color: var(--oro); font-size: 1.16em; letter-spacing: 0; }
.blog-cta p { margin-top: 12px; font-size: 14.5px; color: rgba(251,247,238,0.8); max-width: 50ch; line-height: 1.65; }
.blog-cta .actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.blog-cta .actions .link { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--oro);
  border-bottom: 1px solid rgba(217,166,72,0.45); padding-bottom: 3px; transition: color 0.3s, border-color 0.3s; }
.blog-cta .actions .link:hover { color: var(--crema); border-bottom-color: var(--crema); }

.blog-related { padding: clamp(52px, 8vw, 84px) 0; background: var(--sabbia); border-top: 1px solid var(--ink-10); }
.blog-related .h-display { font-size: clamp(1.6rem, 3.1vw, 2.3rem); }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
@media (max-width: 900px) { .blog-related-grid { grid-template-columns: 1fr; } }
