/* ============================================================
   Bema Service Serrande — Serrande per garage · Roma
   Design system "Pronto Intervento 24/7"
   Identità dal biglietto da visita: Giallo cantiere + Nero/antracite
   ============================================================ */

:root {
  /* ---- Palette brand ---- */
  --primary: #ffb800;          /* Giallo segnale / cantiere — CTA, azioni, highlight */
  --primary-strong: #e8a400;   /* hover / press */
  --primary-soft: #fff3d0;     /* tint su fondo chiaro (badge, hover, focus) */

  --accent: #ff5a00;           /* urgenza 24/7 · stato attivo (usato con testo scuro) */

  --ink: #151515;              /* nero intenso — testo principale su chiaro */
  --ink-soft: #4a4a4a;         /* testo secondario su chiaro */
  --ink-faint: #8a8a8a;

  --dark: #141414;             /* header · footer · hero · CTA band */
  --dark-2: #1e1e1e;           /* superficie scura elevata */
  --dark-line: #2e2e2e;        /* bordo su fondo scuro */

  --bg: #ffffff;
  --surface: #f5f5f7;          /* sfondo sezione chiaro */
  --surface-2: #ebebee;
  --line: #e4e4e7;
  --white: #ffffff;

  /* ---- Tipografia ---- */
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.2rem, 5.5vw, 3.6rem);
  --fs-title: clamp(1.7rem, 3.5vw, 2.4rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.06rem;
  --fs-small: 0.92rem;
  --fs-caption: 0.82rem;
  --lh-tight: 1.1;
  --lh-body: 1.6;

  /* ---- Spazio e forma ---- */
  --space: 1rem;
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.06);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.08), 0 16px 44px rgba(0,0,0,.12);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --maxw: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav (scuro) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,20,20,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--dark-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 66px;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-size: 1.05rem; }
.brand-sub { display: block; font-size: .62rem; font-weight: 500; color: #9a9a9a; letter-spacing: .04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .4rem; }
.nav-links a {
  color: #c9c9c9; font-size: .98rem; font-weight: 500;
  padding: .5rem .9rem; border-radius: 999px; transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: var(--dark-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--primary); background: rgba(255,184,0,.12); }

.nav-cta { display: flex; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .98rem;
  background: var(--primary); color: var(--ink);
  transition: var(--transition); white-space: nowrap;
}
.btn:hover { background: var(--primary-strong); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--surface-2); color: var(--ink); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .95rem; font-size: .9rem; }

/* Telefono in evidenza (header) */
.btn-phone { background: var(--primary); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-phone:hover { background: var(--primary-strong); }
.btn-phone svg { width: 16px; height: 16px; }

/* Pronto Intervento 24/7 — urgenza */
.btn-urgent { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-urgent:hover { background: #e54f00; }
.btn-outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--white); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero (video di sfondo) ---------- */
.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative; overflow: hidden; color: var(--white);
  background: var(--dark);
  min-height: 76vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .55;
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0; display: none;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.78) 45%, rgba(10,10,10,.35) 72%, rgba(10,10,10,.55) 100%),
    radial-gradient(900px 500px at 85% -10%, rgba(255,184,0,.14), transparent 60%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); background: var(--primary);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.2rem; color: var(--white); }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: #c7c7c7; margin-bottom: 2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { margin-top: 1.2rem; font-size: var(--fs-small); color: #9a9a9a; }

/* Badge Pronto Intervento 24/7 */
.badge-247 {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .02em; padding: .42rem .9rem; border-radius: 999px;
}
.badge-247 .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 0 rgba(21,21,21,.5); animation: pulse 1.8s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21,21,21,.45); }
  70% { box-shadow: 0 0 0 8px rgba(21,21,21,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,21,21,0); }
}

/* ---------- Sezioni ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: var(--fs-title); letter-spacing: -.02em; line-height: var(--lh-tight); margin-bottom: .8rem; }
.section-head p { color: var(--ink-soft); }
.section-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Card (schede servizi) ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--primary); color: var(--ink);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--fs-h3); letter-spacing: -.01em; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: var(--fs-body); }

/* ---------- Zona di lavoro ---------- */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.zone {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .8rem;
  font-weight: 600; font-size: .98rem; transition: var(--transition);
}
.zone:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--ink); }
.zone .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }

/* ---------- CTA banner (scuro) ---------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(255,184,0,.22), transparent 60%),
    var(--dark);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius); color: var(--white);
  padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: var(--fs-title); letter-spacing: -.02em; margin-bottom: .6rem; color: var(--white); }
.cta-band p { opacity: .85; margin-bottom: 1.8rem; }

/* ---------- Contatti / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { display: grid; gap: 1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
}
.contact-item .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: var(--ink); display: grid; place-items: center; flex: none; }
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: .15rem; }
.contact-item a { font-weight: 600; color: var(--ink); }
.contact-item a:hover { color: var(--primary); text-decoration: none; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.map-card iframe { display: block; width: 100%; border: 0; min-height: 460px; }
.map-card .map-cap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center; padding: .9rem 1.2rem; font-size: var(--fs-small); color: var(--ink-soft); border-top: 1px solid var(--line); }
.map-card .map-cap b { color: var(--ink); font-weight: 600; }
.form-note { font-size: var(--fs-caption); color: var(--ink-faint); margin-top: .9rem; }
.form-note a { color: var(--ink-soft); text-decoration: underline; }

/* ---------- Statistiche ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; text-align: center; }
.stat { padding: 1.5rem 1rem; }
.stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Perché noi ---------- */
.check-list li { display: flex; gap: .7rem; padding: .45rem 0; color: var(--ink-soft); }
.check-list svg { width: 20px; height: 20px; color: var(--ink); flex: none; margin-top: .15rem; }

/* ---------- Footer (scuro) ---------- */
.site-footer { background: var(--dark); margin-top: var(--section); padding: 3.5rem 0 2rem; border-top: 1px solid var(--dark-line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 1rem; color: var(--white); }
.footer-grid a { display: block; color: #b5b5b5; padding: .3rem 0; font-size: .95rem; }
.footer-grid a:hover { color: var(--primary); text-decoration: none; }
.footer-brand p { color: #b5b5b5; font-size: .95rem; margin-top: .8rem; max-width: 30em; }
.footer-brand .brand { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--dark-line); margin-top: 2.5rem; padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: #8a8a8a; font-size: var(--fs-small);
}
.footer-bottom a { color: #b5b5b5; text-decoration: underline; }
.footer-grid .muted, .footer-grid [style] { color: #b5b5b5; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: var(--fs-small); color: var(--ink-faint); padding-top: 1.2rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--primary); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100;
  background: var(--dark-2); color: var(--white); border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-hover);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  max-width: 640px; margin: 0 auto; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: var(--transition);
}
.cookie-banner.show { opacity: 1; pointer-events: auto; transform: none; }
.cookie-banner p { font-size: var(--fs-small); line-height: 1.5; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; }

/* ---------- Util ---------- */
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.accent { color: var(--primary); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Hero: pannello logo su video ---------- */
.hero-media, .anatomy-figure { margin-left: 0; margin-right: 0; }
.hero-media {
  margin-top: 2.6rem; max-width: 520px;
  background: rgba(15,15,15,.45);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 1.2rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: auto; display: block; }

/* ---------- Selettore tipi (serranda / tapparella / basculante) ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.6rem; }
.type-card {
  display: block; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: var(--radius); padding: 1.1rem; text-align: center;
  transition: var(--transition);
}
.type-card:hover { text-decoration: none; background: var(--surface); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.type-card .media {
  border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
}
.type-card .media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.type-card h3 { margin-top: .95rem; font-size: var(--fs-h3); letter-spacing: -.01em; }
.type-card p { color: var(--ink-soft); font-size: var(--fs-small); margin-top: .3rem; }

/* ---------- Figura anatomia ---------- */
.anatomy-figure {
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: var(--radius); padding: 1.4rem; margin: 1.6rem 0 2.6rem;
}
.anatomy-figure img { width: 100%; height: auto; }
.anatomy-figcaption { text-align: center; color: var(--ink-faint); font-size: var(--fs-caption); margin-top: 1.1rem; }

/* ---------- Griglia componenti (le parti / pezzo rotto) ---------- */
.part-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.part-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1.6rem; box-shadow: var(--shadow); transition: var(--transition);
}
.part-card:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.part-card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--primary); color: var(--ink);
}
.part-card .icon svg { width: 24px; height: 24px; }
.part-card h3 { font-size: var(--fs-h3); letter-spacing: -.01em; margin-bottom: .5rem; }
.part-card p { color: var(--ink-soft); font-size: var(--fs-body); }
.part-note {
  margin-top: .95rem; padding-top: .85rem; border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--ink-soft);
  display: flex; gap: .55rem; align-items: flex-start;
}
.part-note b { color: var(--ink); font-weight: 600; flex: none; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.blog-card:hover { text-decoration: none; background: var(--surface); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-card .thumb {
  aspect-ratio: 16 / 9; background: var(--dark-2);
  display: grid; place-items: center; position: relative;
}
.blog-card .thumb .play {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--primary); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow); z-index: 1;
}
.blog-card .thumb::after {
  content: "Video intervento"; position: absolute; left: .8rem; bottom: .8rem;
  font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(20,20,20,.72); color: var(--white); padding: .3rem .6rem; border-radius: 999px;
}
.blog-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.blog-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.blog-card h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.blog-card p { color: var(--ink-soft); font-size: .95rem; margin-top: auto; }

/* Video time-lapse (interventi, fotogramma ogni 30s) */
.video-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius-lg);
  padding: 3rem 2rem; text-align: center; color: var(--ink-soft);
  background: var(--surface); margin: 1.6rem 0 2.2rem;
  display: grid; place-items: center; gap: .9rem; min-height: 300px;
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.video-placeholder b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.video-placeholder small { color: var(--ink-soft); font-size: var(--fs-small); max-width: 46em; line-height: 1.6; }

/* Articolo singolo */
.post { max-width: 760px; }
.post h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1rem; }
.post .lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.post h2 { font-size: 1.5rem; margin: 2.6rem 0 .8rem; letter-spacing: -.01em; }
.post p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.post ul { list-style: none; margin: 0 0 1.2rem; color: var(--ink-soft); }
.post ul li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.post ul li::before {
  content: ""; position: absolute; left: .2rem; top: .78rem;
  width: 8px; height: 8px; border-radius: 2px; background: var(--primary);
}
.post .post-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--ink-faint); font-size: var(--fs-small); margin-bottom: 1.8rem; }
.post .post-meta b { color: var(--ink); font-weight: 600; }
.post .post-cta { margin-top: 2.6rem; background: var(--dark); color: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; }
.post .post-cta h3 { color: var(--white); margin-bottom: .4rem; }
.post .post-cta p { color: #cfcfcf; margin-bottom: 1.3rem; }
.post .post-cta .btn { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .part-grid { grid-template-columns: repeat(2, 1fr); }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  /* Mobile velocità: niente video, uso immagine WebP compressa */
  .hero-bg { display: none; }
  .hero-bg-img { display: block; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; justify-content: center; gap: .6rem;
    background: rgba(20,20,20,.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.25rem; padding: .9rem 2rem; color: var(--white); }
  .nav-links a[aria-current="page"] { color: var(--primary); }
  .nav-cta { display: none; }
  .grid-3, .grid-2, .type-grid, .part-grid, .zone-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
