/* ==========================================================================
   CLASS S.R.L.S. – Foglio di stile
   Mobile-first, variabili in :root, nessuna dipendenza esterna.
   ========================================================================== */

:root {
  /* Colori */
  --c-bg: #ffffff;
  --c-bg-alt: #f6f4ef;
  --c-surface: #ffffff;
  --c-text: #3d3d3d;
  --c-text-muted: #6b6b6b;
  --c-heading: #1f1f1f;
  --c-line: #e6e2da;
  --c-accent: #0b1f5e;
  --c-accent-hover: #142c7a;
  --c-accent-soft: #e9edf7;
  --c-gold: #bf8b37;
  --c-gold-soft: #f7efe1;
  --c-dark: #15172a;
  --c-on-dark: #ffffff;
  --c-success: #1f7a4d;
  --c-error: #b42318;
  --c-whatsapp: #25d366;

  /* Tipografia */
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-head: "Sora", "Manrope", system-ui, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-h1: clamp(2.125rem, 1.3rem + 4vw, 4rem);
  --lh-tight: 1.15;
  --lh-body: 1.6;

  /* Spaziature */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(3.5rem, 6vw, 6.5rem);
  --gutter: 1rem;
  --container: 1200px;

  /* Raggi e ombre */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(20, 20, 40, 0.06), 0 1px 3px rgba(20, 20, 40, 0.05);
  --sh-md: 0 6px 18px rgba(20, 20, 40, 0.08), 0 2px 6px rgba(20, 20, 40, 0.05);
  --sh-lg: 0 20px 50px rgba(20, 20, 40, 0.16);

  /* Varie */
  --header-h: 76px;
  --t-fast: 160ms;
  --t-base: 260ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--c-heading);
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 2rem; } }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  background: var(--c-accent); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); z-index: 1000;
}
.skip-link:focus { top: var(--s-4); }

.todo {
  background: #fff3cd; color: #7a4b00; border: 1px dashed #d9a400;
  padding: 0 0.35em; border-radius: 4px; font-weight: 600; font-size: 0.85em;
}

.eyebrow {
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--s-3);
}
.lead { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 62ch; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: var(--r-pill); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--c-accent-hover); box-shadow: var(--sh-md); }
.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.7); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: rgba(255,255,255,0.18); border-color: #fff; }
.btn-ghost { background: var(--c-accent-soft); color: var(--c-accent); }
.btn-ghost:hover { background: #dfe5f3; }
.btn-lg { min-height: 56px; padding: 0.9rem 1.8rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-icon { width: 48px; height: 48px; padding: 0; background: var(--c-accent-soft); color: var(--c-accent); }
/* Pulsante telefono nell'header: solo icona sugli schermi stretti, icona + numero dai 600px */
.phone-btn .phone-num { display: none; }
@media (min-width: 600px) {
  .phone-btn { width: auto; padding: 0 1.1rem 0 0.9rem; gap: var(--s-2); font-weight: 800; letter-spacing: 0.01em; }
  .phone-btn .phone-num { display: inline; white-space: nowrap; }
}
/* Con il menu a 5 voci, sui desktop il telefono è la sola icona per non mandare a capo il menu */
@media (min-width: 1280px) {
  .phone-btn { width: 48px; padding: 0; gap: 0; }
  .phone-btn .phone-num { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: var(--header-h);
  transition: min-height var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.site-header.is-scrolled .header-inner { min-height: 64px; }
.brand img { height: 48px; width: auto; transition: height var(--t-base) var(--ease); }
.site-header.is-scrolled .brand img { height: 40px; }
@media (min-width: 768px) { .brand img { height: 62px; } .site-header.is-scrolled .brand img { height: 52px; } }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-cta { display: none; }
.hamburger {
  width: 48px; height: 48px; border: 0; background: transparent; border-radius: var(--r-sm);
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span { width: 24px; height: 2.5px; background: var(--c-heading); border-radius: 2px; transition: transform var(--t-base) var(--ease), opacity var(--t-base); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menu mobile */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  padding: var(--s-4) var(--gutter) var(--s-6);
  box-shadow: var(--sh-lg);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease), visibility 0s var(--t-base);
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: block; padding: var(--s-4) var(--s-2); font-weight: 700; font-size: 1.125rem;
  color: var(--c-heading); border-bottom: 1px solid var(--c-line);
}
.nav-list a:hover { text-decoration: none; color: var(--c-accent); }
.nav-list a.is-active { color: var(--c-accent); }
.nav-mobile-extra { display: grid; gap: var(--s-3); margin-top: var(--s-5); }

/* Menu completo da 1280px: sotto, con logo, dicitura dell'entità e "← Home", si usa l'hamburger */
@media (min-width: 1280px) {
  .nav {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .nav-list { flex-direction: row; flex-wrap: nowrap; gap: 0; }
  .nav-list a {
    padding: var(--s-2) 10px; font-size: 0.975rem; border: 0; border-radius: var(--r-pill);
    position: relative; white-space: nowrap;
  }
  .brand { flex: none; }
  .nav-list a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
    background: var(--c-gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-base) var(--ease);
  }
  .nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
  .nav-mobile-extra, .hamburger { display: none; }
  .header-cta { display: inline-flex; }
}

.nav-badge {
  display: inline-block; vertical-align: middle; margin-left: 0.35em;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: #f2a516; color: #1c1f27; border-radius: 999px; padding: 0.15em 0.55em; line-height: 1.4;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; align-items: end;
  min-height: min(92svh, 820px); color: #fff; overflow: hidden;
  background: var(--c-dark);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 60%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,35,0.40) 0%, rgba(10,14,35,0.30) 35%, rgba(10,14,35,0.86) 100%);
}
.hero-content { text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.hero-content { position: relative; padding-top: var(--s-9); padding-bottom: var(--s-8); max-width: calc(var(--container)); }
.hero .eyebrow { color: #ffc24d; text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.45); }
.hero h1 { color: #fff; max-width: 26ch; margin-bottom: var(--s-4); text-wrap: balance; }
.hero-sub { font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.375rem); max-width: 72ch; color: rgba(255,255,255,0.9); margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-direction: column; gap: var(--s-3); }
@media (min-width: 600px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 1024px) { .hero-content { padding-bottom: var(--s-9); } }

/* Fascia fiducia */
.trust { background: var(--c-dark); color: #fff; }
.trust-inner { display: grid; gap: var(--s-4); padding-block: var(--s-5); }
.trust-item { display: flex; align-items: center; gap: var(--s-3); }
.trust-item svg { width: 36px; height: 36px; fill: var(--c-gold); flex: none; }
.trust-item strong { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.0625rem; }
.trust-item span { font-size: var(--fs-sm); color: rgba(255,255,255,0.72); }
@media (min-width: 768px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,0.12); padding-left: var(--s-6); }
}

/* ---------- Riquadro promozionale Fotovoltaico (home) ---------- */
.promo-pv { padding-block: var(--s-7) 0; }
.promo-pv-card {
  display: grid; gap: var(--s-5); overflow: hidden; color: #fff; text-decoration: none;
  border-radius: var(--r-lg); background: #1c1f27; box-shadow: var(--sh-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.promo-pv-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--sh-lg); }
.promo-pv-art { position: relative; min-height: 200px; background: linear-gradient(135deg, #fff3d6 0%, #ffd27a 55%, #f2a516 100%); display: grid; place-items: center; }
.promo-pv-art svg { width: 70%; max-width: 320px; height: auto; }
.promo-pv-body { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: center; }
.promo-pv-body .eyebrow { color: #f2a516; margin: 0; }
.promo-pv-body h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin: 0; text-wrap: balance; }
.promo-pv-body p { margin: 0; color: rgba(255,255,255,0.75); max-width: 60ch; }
.promo-pv-body .btn { justify-self: start; margin-top: var(--s-2); background: #f2a516; color: #1c1f27; }
.promo-pv-card:hover .btn { background: #ffb62a; }
@media (min-width: 768px) {
  .promo-pv-card { grid-template-columns: 1fr 1.6fr; }
  .promo-pv-art { min-height: 100%; }
  .promo-pv-body { padding: var(--s-6); }
}

/* ---------- Sezioni ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head h2 { text-wrap: balance; }
.section-cta { text-align: center; margin-top: var(--s-7); }

/* ---------- Servizi: bento ---------- */
.bento { display: grid; gap: var(--s-4); }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #d8d3c8; }
.card h3 { margin-bottom: var(--s-2); }
.card p { margin: 0; color: var(--c-text-muted); }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-4);
  border-radius: var(--r-md); background: var(--c-accent-soft); color: var(--c-accent);
}
.card-icon svg { width: 26px; height: 26px; fill: currentColor; }
.card-feature, .card-wide { padding: 0; overflow: hidden; }
.card-feature .card-body, .card-wide .card-body { padding: var(--s-5); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; order: -1; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature, .card-wide { grid-column: span 2; }
  .card-feature, .card-wide { display: grid; grid-template-columns: 1.1fr 1fr; }
  .card-feature .card-img, .card-wide .card-img { order: 0; height: 100%; aspect-ratio: auto; min-height: 240px; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: var(--s-5); }
  .card { grid-column: span 2; padding: var(--s-6); }
  .card-feature { grid-column: span 4; }
  .card-wide { grid-column: span 6; grid-template-columns: 1fr 1.4fr; }
  .card-feature .card-body, .card-wide .card-body { padding: var(--s-6); display: flex; flex-direction: column; justify-content: center; }
  .card-feature .card-body { padding-right: var(--s-7); }
}

/* ---------- Come lavoriamo ---------- */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.step {
  position: relative; background: var(--c-surface); border-radius: var(--r-lg); padding: var(--s-5);
  border: 1px solid var(--c-line); box-shadow: var(--sh-sm);
}
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-4);
  border-radius: 50%; background: var(--c-accent); color: #fff; font-family: var(--f-head); font-weight: 700;
}
.step h3 { margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--c-text-muted); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); position: relative; }
  .steps::before {
    content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--s-5) + 22px);
    border-top: 2px dashed #cfd5e6; z-index: 0;
  }
  .step { z-index: 1; }
}

/* ---------- Chi siamo ---------- */
.about { display: grid; gap: var(--s-7); align-items: center; }
.about-text p { max-width: 62ch; }
.values { display: grid; gap: var(--s-4); margin: var(--s-6) 0; }
.values li { display: flex; gap: var(--s-3); align-items: flex-start; }
.values svg { width: 28px; height: 28px; flex: none; fill: var(--c-gold); margin-top: 2px; }
.values strong { display: block; font-family: var(--f-head); font-weight: 600; color: var(--c-heading); }
.values span { color: var(--c-text-muted); }
.about-photo { margin: 0; }
.about-photo .placeholder {
  display: grid; place-content: center; justify-items: center; gap: var(--s-2);
  aspect-ratio: 4 / 5; max-height: 560px; border-radius: var(--r-lg);
  background: var(--c-bg-alt); border: 2px dashed #cfc9bd; color: var(--c-text-muted); text-align: center; padding: var(--s-5);
}
.about-photo .placeholder svg { width: 64px; height: 64px; fill: #cfc9bd; }
.about-photo img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-photo .mosaic {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-3);
  aspect-ratio: 4 / 5; max-height: 560px;
}
.about-photo .mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--sh-md); }
.about-photo .mosaic img:first-child { grid-column: 1 / -1; border-radius: var(--r-lg); }
.about-photo figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--c-text-muted); }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); } }

/* ---------- Galleria ---------- */
.gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
.gallery li { border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--sh-sm); }
.gallery a { display: block; color: inherit; position: relative; }
.gallery a:hover { text-decoration: none; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff;
  transition: transform 500ms var(--ease);
}
.gallery .is-product img { object-fit: contain; padding: 12%; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }
.gallery .is-product a:hover img { transform: scale(1.04); }
.gallery .cap {
  display: block; padding: var(--s-3) var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--c-heading);
  border-top: 1px solid var(--c-line); background: #fff; line-height: 1.4;
}
/* I segnaposto [DA COMPLETARE] restano nel codice come promemoria, ma non si vedono nella galleria */
.gallery .cap .todo { display: none; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 24, 0.94);
  display: grid; place-items: center; padding: var(--s-4);
}
.lightbox.is-open { display: grid; }
.lb-figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: grid; justify-items: center; gap: var(--s-3); }
.lb-img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--sh-lg); user-select: none; }
.lb-caption { color: rgba(255,255,255,0.85); text-align: center; font-size: var(--fs-sm); max-width: 70ch; }
.lb-counter { position: absolute; top: var(--s-4); left: var(--s-4); margin: 0; color: rgba(255,255,255,0.7); font-size: var(--fs-sm); }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background var(--t-fast);
}
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: var(--s-4); right: var(--s-4); font-size: 2rem; }
.lb-prev { left: var(--s-2); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--s-2); top: 50%; transform: translateY(-50%); }
@media (min-width: 768px) { .lb-prev { left: var(--s-5); } .lb-next { right: var(--s-5); } }

/* Prima / dopo */
.before-after { margin-bottom: var(--s-7); }
.before-after h3 { margin-bottom: var(--s-4); }
.ba {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 9; max-height: 640px;
  background: var(--c-dark); box-shadow: var(--sh-md); user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after-wrap { position: absolute; inset: 0; width: var(--pos, 50%); overflow: hidden; }
.ba-after-wrap img { width: calc(100% / (var(--pos-ratio, 0.5))); max-width: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: var(--sh-md);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; transform: translateY(-50%);
}
.ba-handle span::before { left: 7px; border-right-color: var(--c-accent); }
.ba-handle span::after { right: 7px; border-left-color: var(--c-accent); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba-label {
  position: absolute; bottom: var(--s-4); padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  background: rgba(0,0,0,0.55); color: #fff; font-size: var(--fs-sm); font-weight: 700; pointer-events: none;
}
.ba-label-before { right: var(--s-4); }
.ba-label-after { left: var(--s-4); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: var(--s-7); }
.contact-list { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
.contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-list svg { width: 26px; height: 26px; flex: none; fill: var(--c-gold); margin-top: 3px; }
.contact-list .label { display: block; font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 2px; }
.contact-list a { font-weight: 700; font-size: 1.0625rem; }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg-alt); border: 1px solid var(--c-line); min-height: 280px; display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-placeholder { display: grid; place-content: center; justify-items: center; gap: var(--s-3); text-align: center; padding: var(--s-6); }
.map-placeholder p { margin: 0; }
.map-placeholder small { color: var(--c-text-muted); font-size: 0.8rem; max-width: 36ch; }

.contact-form {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--sh-md); display: grid; gap: var(--s-4);
}
.field { display: grid; gap: var(--s-2); }
.field-row { display: grid; gap: var(--s-4); }
.field label { font-weight: 700; font-size: var(--fs-sm); color: var(--c-heading); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--c-heading); background: #fff;
  border: 1.5px solid #cfcbc2; border-radius: var(--r-sm); padding: 0.8rem 0.95rem; min-height: 50px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--c-error); }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-3); }
.field-check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--c-accent); }
.field-check label { font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.is-ok { color: var(--c-success); }
.form-status.is-error { color: var(--c-error); }
.form-note { margin: 0; text-align: center; font-size: var(--fs-sm); color: var(--c-text-muted); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; }
  .contact-form { padding: var(--s-6); position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,0.78); padding-top: var(--s-8); font-size: 0.95rem; }
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: var(--s-3); }
.footer-grid a { color: #fff; }
.footer-grid li { margin-bottom: var(--s-2); }
.footer-logo { height: 60px; width: auto; margin-bottom: var(--s-4); }
.site-footer .todo { background: rgba(255,243,205,0.15); color: #f3d9a4; border-color: #bf8b37; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: var(--s-5); font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); } }

/* ---------- WhatsApp ---------- */
.whatsapp {
  position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--c-whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  transition: transform var(--t-fast) var(--ease);
}
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Pagine legali ---------- */
.legal { padding-block: var(--s-7) var(--s-9); }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.5rem; margin-top: var(--s-6); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: var(--s-4); }
.legal .notice { background: #fff3cd; border: 1px solid #d9a400; border-radius: var(--r-md); padding: var(--s-4); margin-bottom: var(--s-6); }

/* ---------- Comparsa allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .gallery a:hover img { transform: none; }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header, .whatsapp, .lightbox, .hero-media, .hero-overlay, .map, .contact-form { display: none !important; }
  .hero { min-height: 0; color: #000; background: #fff; }
  .hero h1 { color: #000; }
}
