/* ============================================================
   GEOLEGNO — design system (HTML/CSS puro)
   Accent: rovere (logo) · Brand scuro: marrone
   Tema via variabili CSS: sistema + data-theme manuale
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #F4F1EA;          /* bone */
  --surface: #FCFBF6;     /* bianco caldo */
  --surface-2: #ECE6D9;   /* bone profondo */
  --ink: #241A12;         /* bruno scuro */
  --ink-soft: #6B5B49;    /* bruno-grigio */
  --line: rgba(36, 26, 18, 0.12);
  --line-strong: rgba(36, 26, 18, 0.22);
  --forest: #3B2A1B;      /* bruno scuro (pannelli) */
  --forest-2: #2A1E13;    /* bruno molto scuro */
  --accent: #B3814E;      /* rovere (logo) */
  --accent-strong: #8A5E30;
  --on-accent: #15110A;
  --bone: #F4F1EA;
  --err: #b3402f;

  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --container: 82.5rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #171009;
  --surface: #211711;
  --surface-2: #2C2016;
  --ink: #ECEAE0;
  --ink-soft: #B4A793;
  --line: rgba(236, 234, 224, 0.14);
  --line-strong: rgba(236, 234, 224, 0.26);
  --forest: #2A1E13;
  --forest-2: #1F160D;
  --accent: #C99A5C;
  --accent-strong: #E0B074;
  --on-accent: #15110A;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171009;
    --surface: #211711;
    --surface-2: #2C2016;
    --ink: #ECEAE0;
    --ink-soft: #B4A793;
    --line: rgba(236, 234, 224, 0.14);
    --line-strong: rgba(236, 234, 224, 0.26);
    --forest: #2A1E13;
    --forest-2: #1F160D;
    --accent: #C99A5C;
    --accent-strong: #E0B074;
    --on-accent: #15110A;
    color-scheme: dark;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Scala globale del sito: equivale allo zoom browser ~117% (1,17×).
   Tutto il layout è in rem, quindi scala in proporzione.
   Per tarare la dimensione basta cambiare questo valore (100% = dimensione base). */
html { font-size: 117%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tint { background: color-mix(in srgb, var(--surface-2) 40%, var(--bg)); }
.border-top { border-top: 1px solid var(--line); }
.eyebrow { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-strong); }
.tnum { font-variant-numeric: tabular-nums; }
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.h-sec { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.7rem); }
.h-sub { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.4rem); }
.max-3xl { max-width: 48rem; }
.max-2xl { max-width: 42rem; }
.max-xl { max-width: 36rem; }
.max-md { max-width: 28rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.85rem 1.5rem;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line); color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* barra sempre piena: nessun contenuto che traspare sotto il menu */
.site-nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--line); color: var(--ink);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto; height: 4.25rem;
  padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand .logo { height: 2.2rem; width: auto; }
@media (min-width: 480px) { .brand .logo { height: 2.6rem; } }
/* logo swaps by theme; on inner-page dark hero (nav not scrolled) force the light logo */
.logo-dark { display: block; }
.logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-dark { display: none; }
  :root:not([data-theme="light"]) .logo-light { display: block; }
}
.nav-links { display: none; list-style: none; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.92rem; font-weight: 500; opacity: 0.9; transition: color 0.2s, opacity 0.2s; }
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-links a.active { color: var(--accent); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: currentColor; cursor: pointer; transition: border-color 0.2s, transform 0.1s;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.lang-toggle { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; padding-inline: 0.7rem; width: auto; text-transform: uppercase; }
/* sotto i 1024px la lingua vive nel menu mobile: lascia spazio al logo */
.nav-actions .lang-toggle { display: none; }
.nav-cta { display: none; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav-burger { display: grid; }
/* burger: hamburger quando chiuso, X quando aperto */
.nav-burger .i-x { display: none; }
.nav-burger .i-list { display: block; }
.site-nav.menu-open .nav-burger .i-list { display: none; }
.site-nav.menu-open .nav-burger .i-x { display: block; }

/* mobile menu */
.mobile-menu { overflow: hidden; max-height: 0; border-top: 1px solid transparent; background: var(--bg); color: var(--ink); transition: max-height 0.3s var(--ease); }
/* il menu può usare tutto lo spazio sotto la nav e scorre se non ci sta (telefoni bassi) */
.site-nav.menu-open .mobile-menu { max-height: calc(100dvh - 4.25rem); border-top-color: var(--line); overflow-y: auto; }
.mobile-menu ul { list-style: none; padding: 0.5rem var(--pad) 1rem; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li:last-child { border-bottom: 0; padding-top: 1rem; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; font-size: 1.125rem; font-weight: 500; }
.mobile-menu a .arr { color: var(--accent); width: 1.25rem; height: 1.25rem; flex: none; }
.mobile-menu .btn { width: 100%; justify-content: center; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-actions .lang-toggle { display: grid; }
  .mobile-menu .m-lang { display: none; }
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; min-height: 100dvh; padding: 6rem var(--pad) 4rem; }
.hero-grid { width: 100%; max-width: var(--container); margin-inline: auto; display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { max-width: 36rem; }
.hero-copy .eyebrow { color: var(--accent); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.04; }
.hero h1 .accent { color: var(--accent); display: block; }
.hero h1 .l1 { display: block; }
.hero-lede { margin-top: 1.5rem; max-width: 28rem; font-size: 1.125rem; color: var(--ink-soft); }
.hero-btns { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--line); }
.hero-media .par { position: absolute; inset: -8%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; border-radius: 1.5rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .hero-media { aspect-ratio: auto; height: 78vh; }
}

/* ============================================================
   PAGE HERO (pagine interne)
   ============================================================ */
.page-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: 58vh; }
.page-hero.short { min-height: 44vh; }
.page-hero .par { position: absolute; inset: -10%; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,20,15,0.92), rgba(12,20,15,0.55) 55%, rgba(12,20,15,0.55)); }
.page-hero .ph-inner { position: relative; width: 100%; max-width: var(--container); margin-inline: auto; padding: 7.5rem var(--pad) 3.5rem; color: var(--bone); }
.crumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; color: rgba(244,241,234,0.7); }
.crumb a:hover { color: var(--bone); }
.page-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); max-width: 48rem; line-height: 1.05; }
.page-hero .lede { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; color: rgba(244,241,234,0.8); }

/* ============================================================
   Section header + stats + steps
   ============================================================ */
.sec-head .eyebrow { margin-bottom: 1rem; }
.sec-head h2 { line-height: 1.1; }
.sec-head p { margin-top: 1.25rem; }

.stats { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.stat-v { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 1.5rem + 2vw, 3rem); }
.stat-l { margin-top: 0.5rem; max-width: 20ch; font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.steps { margin-top: 3rem; display: grid; gap: 2.5rem 2rem; list-style: none; }
.step { position: relative; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step::before { content: ""; position: absolute; top: -0.1875rem; left: 0; height: 0.375rem; width: 2.25rem; border-radius: 999px; background: var(--accent); }
.step .n { font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; color: var(--accent-strong); }
.step h3 { margin-top: 0.25rem; font-size: 1.25rem; }
.step p { margin-top: 0.5rem; color: var(--ink-soft); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.three { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Bento
   ============================================================ */
.bento { margin-top: 3rem; display: grid; gap: 1rem; }
.bento article { position: relative; min-height: 13.125rem; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--line); }
.bento-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.bento-img:hover img { transform: scale(1.05); }
.bento-img .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,20,15,0.85), rgba(12,20,15,0.15) 55%, transparent); }
.bento .body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.bento-img .body { color: var(--bone); }
.bento .n { font-family: var(--font-display); font-size: 0.875rem; }
.bento-img .n { color: rgba(244,241,234,0.7); }
.bento h3 { font-size: 1.25rem; line-height: 1.3; }
.bento .body p { margin-top: 0.5rem; max-width: 24rem; font-size: 0.875rem; }
.bento-img .body p { color: rgba(244,241,234,0.75); }
.bento-text { display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.bento-text.forest { border-color: transparent; background: var(--forest); color: var(--bone); }
.bento-text.forest .n { color: rgba(244,241,234,0.7); }
.bento-text.forest p { color: rgba(244,241,234,0.75); }
.bento-text.surface { background: var(--surface); color: var(--ink); }
.bento-text.surface .n { color: var(--accent-strong); }
.bento-text.surface p { color: var(--ink-soft); }
.bento h3 { font-size: 1.25rem; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 13.125rem; }
  .bento .span2 { grid-column: span 2; }
  .bento .span3 { grid-column: span 3; }
  .bento .rows2 { grid-row: span 2; }
  .bento h3 { font-size: 1.5rem; }
}

/* ============================================================
   Why (full-bleed media)
   ============================================================ */
.why { position: relative; overflow: hidden; }
.why > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(12,20,15,0.92), rgba(12,20,15,0.7) 45%, rgba(12,20,15,0.25)); }
.why .why-inner { position: relative; max-width: var(--container); margin-inline: auto; padding: clamp(5rem, 12vw, 8rem) var(--pad); color: var(--bone); }
.why .why-copy { max-width: 36rem; }
.why .eyebrow { color: var(--accent); margin-bottom: 1rem; }
.why h2 { line-height: 1.1; }
.why .lede { margin-top: 1.25rem; max-width: 28rem; color: rgba(244,241,234,0.8); }
.why-points { margin-top: 2.25rem; display: grid; gap: 1.25rem; list-style: none; }
.why-points li { border-left: 2px solid var(--accent); padding-left: 1rem; }
.why-points p.t { font-weight: 600; }
.why-points p.d { margin-top: 0.1rem; font-size: 0.875rem; color: rgba(244,241,234,0.7); }
@media (min-width: 640px) { .why-points { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Gallery (home) + figure caption
   ============================================================ */
.figcap { margin-top: 0.9rem; }
.figcap .cat { font-size: 0.75rem; color: var(--ink-soft); }
.figcap .title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.home-gallery { margin-top: 3rem; display: grid; gap: 2.5rem 1.5rem; }
.home-gallery figure { }
.home-gallery .frame { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 1rem; border: 1px solid var(--line); }
.home-gallery .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.home-gallery figure:hover .frame img { transform: scale(1.05); }
@media (min-width: 768px) {
  .home-gallery { grid-template-columns: repeat(12, 1fr); }
  .home-gallery .g7 { grid-column: span 7; }
  .home-gallery .g5 { grid-column: span 5; }
}

/* ============================================================
   Realizzazioni — filtro + griglia + lightbox
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { border-radius: 999px; border: 1px solid var(--line-strong); padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); background: transparent; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.filter-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery-grid { margin-top: 2.5rem; display: grid; gap: 2.25rem 1.5rem; grid-template-columns: 1fr; }
.gallery-grid figure { opacity: 1; transition: opacity 0.35s var(--ease); }
.gallery-grid figure.hide { display: none; }
.tile-btn { display: block; width: 100%; overflow: hidden; border-radius: 1rem; border: 1px solid var(--line); cursor: pointer; background: none; padding: 0; }
.tile-btn .frame { position: relative; display: block; aspect-ratio: 4/3; }
.tile-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tile-btn:hover img { transform: scale(1.05); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 5vw; background: rgba(12,20,15,0.92); opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 0.75rem; }
.lightbox .lb-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: none; background: rgba(244,241,234,0.14); color: var(--bone); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-close svg { width: 1.25rem; height: 1.25rem; }
.lightbox .lb-cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: rgba(244,241,234,0.75); font-size: 0.9rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--forest); color: var(--bone); }
.cta-band .inner { max-width: var(--container); margin-inline: auto; padding: clamp(5rem, 10vw, 6rem) var(--pad); text-align: center; }
.cta-band h2 { max-width: 42rem; margin-inline: auto; line-height: 1.15; }
.cta-band p { max-width: 36rem; margin: 1rem auto 0; color: rgba(244,241,234,0.7); }
.cta-band .btn { margin-top: 2rem; }

/* ============================================================
   Split (story / feature / contatti)
   ============================================================ */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split .media { position: relative; aspect-ratio: 5/4; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--line); }
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split .o1 { order: 1; } .split .o2 { order: 2; } }

.side-list { margin-top: 1.25rem; display: grid; gap: 2.25rem; }
.value { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.value h3 { font-size: 1.25rem; }
.value p { margin-top: 0.5rem; color: var(--ink-soft); }
.values-grid { margin-top: 3rem; display: grid; gap: 2.25rem 3rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

/* Timeline */
.timeline { position: relative; margin-top: 3rem; display: grid; gap: 2.5rem; border-left: 1px solid var(--line); padding-left: 2rem; list-style: none; }
.timeline li { position: relative; }
.timeline .dot { position: absolute; left: -2.1rem; top: 0.35rem; width: 0.75rem; height: 0.75rem; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline .y { font-family: var(--font-display); font-weight: 600; color: var(--accent-strong); }
.timeline h3 { margin-top: 0.1rem; font-size: 1.125rem; }
.timeline p { margin-top: 0.25rem; max-width: 42rem; color: var(--ink-soft); }

/* Certs */
.logos { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.logo-ph { display: grid; place-items: center; aspect-ratio: 3/2; border-radius: 1rem; border: 1px dashed var(--line-strong); background: color-mix(in srgb, var(--surface-2) 50%, var(--bg)); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logos { grid-template-columns: repeat(5, 1fr); } }

/* Certificati / documenti (anteprime PDF) */
.certs { margin-top: 3rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .certs { grid-template-columns: repeat(3, 1fr); } }
.cert-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; border: 1px solid var(--line); background: var(--surface); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.cert-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.45); }
.cert-thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cert-badge { position: absolute; top: 0.6rem; left: 0.6rem; padding: 0.22rem 0.5rem; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; }
.cert-body { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.cert-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.cert-sub { font-size: 0.82rem; color: var(--ink-soft); }
.cert-open { margin-top: auto; padding-top: 0.7rem; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--accent-strong); }
.cert-open svg { width: 0.9rem; height: 0.9rem; }
.cert-card:hover .cert-open .arr { transform: translate(2px, -2px); }

/* Impact dark band */
.band-dark { background: var(--forest-2); color: var(--bone); }
.band-dark .stats { border-top-color: rgba(244,241,234,0.14); }
.band-dark .stat-v { color: var(--accent); }
.band-dark .stat-l { color: rgba(244,241,234,0.65); }
.band-dark .lede { color: rgba(244,241,234,0.7); }

/* ============================================================
   Contatti info + Locator
   ============================================================ */
.contact-list { margin-top: 2rem; display: grid; gap: 1.25rem; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-list svg { width: 1.5rem; height: 1.5rem; flex: none; margin-top: 0.15rem; color: var(--accent-strong); }
.contact-list .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.contact-list .v { font-weight: 500; }
.contact-list a.v:hover { color: var(--accent-strong); }
.locator { margin-top: 2rem; max-width: 28rem; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--line); background: var(--surface-2); }
.locator svg { width: 100%; display: block; }
@keyframes glPulse { 0% { transform: scale(0.5); opacity: 0.45; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
.gl-pulse { transform-box: fill-box; transform-origin: center; animation: glPulse 2.6s var(--ease) infinite; }

.why-list { margin-top: 2rem; display: grid; gap: 1rem; list-style: none; }
.why-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 500; }
.why-list .check { margin-top: 0.15rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-strong); }
.why-list .check svg { width: 0.85rem; height: 0.85rem; }
.prefer-list { margin-top: 0.75rem; display: grid; gap: 0.75rem; list-style: none; }
.prefer-list li { display: flex; align-items: center; gap: 0.75rem; }
.prefer-list svg { width: 1.25rem; height: 1.25rem; color: var(--accent-strong); flex: none; }
.prefer-list a:hover { color: var(--accent-strong); }

/* ============================================================
   Forms
   ============================================================ */
.form-card { border-radius: 1.5rem; border: 1px solid var(--line); background: var(--surface); padding: clamp(1.5rem, 4vw, 2rem); }
.form-row { margin-bottom: 1rem; }
.form-2 { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.form-label { margin-bottom: 0.5rem; display: block; font-size: 0.875rem; font-weight: 500; }
.field { width: 100%; border-radius: 0.75rem; border: 1px solid var(--line); background: var(--bg); padding: 0.75rem 1rem; color: var(--ink); outline: none; transition: border-color 0.2s; }
.field::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.field:focus { border-color: var(--accent); }
textarea.field { resize: vertical; min-height: 7rem; }
.field.err { border-color: var(--err); }
.err-msg { margin-top: 0.4rem; font-size: 0.875rem; color: var(--err); }
.checkbox { margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: var(--ink-soft); }
.checkbox input { margin-top: 0.15rem; width: 1rem; height: 1rem; accent-color: var(--accent); flex: none; }
.checkbox label { cursor: pointer; }
.checkbox .err-msg { flex-basis: 100%; margin-top: 0.1rem; }
.form-note { margin-bottom: 1.25rem; font-size: 0.875rem; color: var(--ink-soft); }
.form-card .btn { width: 100%; justify-content: center; }
.form-ok { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--accent-strong); }
.form-ok[hidden] { display: none; }
.form-err { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--err); }
.form-err[hidden] { display: none; }
/* honeypot antispam: invisibile agli utenti, i bot lo compilano */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ============================================================
   Accordion (FAQ)
   ============================================================ */
.accordion { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }
.acc-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; text-align: left; background: none; border: none; cursor: pointer; }
.acc-q .q { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.acc-icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); transition: transform 0.3s var(--ease), color 0.2s, border-color 0.2s; }
.acc-icon svg { width: 1rem; height: 1rem; }
.acc-item.open .acc-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease); }
.acc-a p { max-width: 42rem; padding-bottom: 1.5rem; color: var(--ink-soft); }
@media (min-width: 768px) { .acc-q .q { font-size: 1.25rem; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--forest-2); color: var(--bone); }
.footer-inner { max-width: var(--container); margin-inline: auto; padding: 4rem var(--pad) 2.5rem; }
.footer-cols { display: grid; gap: 2.5rem; }
.footer-logo { height: 2.9rem; width: auto; display: block; }
.footer-brand p { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.7; color: rgba(244,241,234,0.55); }
.footer-col h4, .footer-contact h4 { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.footer-col ul { margin-top: 1rem; list-style: none; display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.875rem; color: rgba(244,241,234,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--bone); }
.footer-contact ul { margin-top: 1rem; list-style: none; display: grid; gap: 0.75rem; font-size: 0.875rem; color: rgba(244,241,234,0.7); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.65rem; }
.footer-contact svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.2rem; color: var(--accent); }
.footer-contact a:hover { color: var(--bone); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,241,234,0.12); display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.75rem; color: rgba(244,241,234,0.45); }
.footer-bottom a:hover { color: var(--bone); }
.footer-bottom .links { display: flex; gap: 1.25rem; }
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
/* content is visible by default; only hidden pre-scroll when JS is available */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero load stagger */
.rise > * { opacity: 0; transform: translateY(22px); animation: riseIn 0.7s var(--ease) forwards; }
.rise > *:nth-child(1) { animation-delay: 0.05s; }
.rise > *:nth-child(2) { animation-delay: 0.13s; }
.rise > *:nth-child(3) { animation-delay: 0.21s; }
.rise > *:nth-child(4) { animation-delay: 0.29s; }
.rise > *:nth-child(5) { animation-delay: 0.37s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise > * { opacity: 1; transform: none; animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ============================================================
   Banner cookie / informativa
   ============================================================ */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000;
  max-width: 44rem; margin-inline: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 1rem;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.6);
  padding: 1.25rem 1.4rem;
  transform: translateY(160%); opacity: 0;
  transition: transform 0.45s var(--ease, cubic-bezier(0.2,0.7,0.2,1)), opacity 0.45s;
}
.cookie-banner.is-visible { transform: none; opacity: 1; }
.cookie-banner h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.cookie-banner p { font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 1rem; }
.cookie-banner a { color: var(--accent-strong); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { font-size: 0.85rem; padding: 0.6rem 1.15rem; }
@media (max-width: 520px) { .cookie-actions .btn { flex: 1 1 auto; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: opacity 0.3s; } }

/* Pagina Cookie Policy */
.legal { max-width: 52rem; }
.legal h2 { margin-top: 2.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; }
.legal ul { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.legal li { margin-bottom: 0.55rem; }
.legal .cookie-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
.legal .cookie-table th, .legal .cookie-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .cookie-table th { color: var(--ink); font-weight: 600; }
.legal .cookie-table td { color: var(--ink-soft); }

/* ============================================================
   Hero — rullino foto (carosello)
   ============================================================ */
.hero-reel { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide figcaption { position: absolute; top: 0.9rem; left: 0.9rem; }
.hero-cat {
  display: inline-block; padding: 0.32rem 0.72rem; border-radius: 999px;
  background: rgba(23, 16, 9, 0.6); color: #F4F1EA;
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.hero-reel-dots { position: absolute; left: 0; right: 0; bottom: 0.9rem; z-index: 3; display: flex; gap: 0.4rem; justify-content: center; }
.hero-reel-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.5); cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}
.hero-reel-dots button:hover { background: rgba(255, 255, 255, 0.8); }
.hero-reel-dots button.is-active { width: 20px; border-radius: 4px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
