/* ============================================================
   Barbu Service — Multiservizi di pulizia
   Brand: verde acceso (logo) + blu guanto + giallo scintilla
   Struttura ispirata a Pulse 1.0 (UniSalute): pulizia, gerarchia,
   spaziatura generosa, pill buttons. Raggi addolciti per il brand consumer.
   ============================================================ */

:root {
  /* Brand green scale */
  --green-50:  #EEFAE9;
  --green-100: #D9F4CE;
  --green-200: #BCEBAA;
  --green-300: #8FDD74;
  --green-400: #5FD13E;
  --green-500: #34C924;   /* bright brand green (logo) */
  --green-600: #1D8916;   /* primary action — 4.52:1 su bianco (AA) */
  --green-700: #17700F;   /* hover / dark — 6.25:1 su bianco (AA) */
  --green-800: #136311;
  --green-900: #0C4710;   /* deep text / dark surfaces */

  /* Accents */
  --blue-400: #4CA0EC;
  --blue-500: #1E84E0;    /* glove blue */
  --blue-600: #1566BE;
  --yellow:   #FFC81F;    /* sparkle */
  --yellow-soft: #FFF1C2;

  /* Neutrals */
  --ink:    #15211B;
  --ink-2:  #43534B;
  --ink-3:  #6C7A72;      /* 4.50:1 su bianco (AA) */
  --border: #E4EDE0;
  --border-strong: #CFDCC8;
  --white:  #FFFFFF;
  --bg:        #FFFFFF;
  --bg-soft:   #F4F9F1;   /* green-tinted page panel */
  --bg-mint:   #E9F6E3;
  --bg-dark:   #0C3F12;   /* footer / deep band */

  /* Radii — friendlier than DS 4px, still calm */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — soft, green-tinted */
  --sh-sm: 0 1px 2px rgba(18,60,20,.06), 0 2px 6px rgba(18,60,20,.05);
  --sh-md: 0 4px 12px rgba(18,60,20,.08), 0 2px 6px rgba(18,60,20,.05);
  --sh-lg: 0 18px 44px rgba(18,60,20,.14), 0 6px 16px rgba(18,60,20,.08);
  --sh-glow: 0 16px 40px rgba(52,201,36,.28);

  --maxw: 1200px;
  --header-h: 76px;
  /* Il fallback e' scelto per METRICA, non per gusto: in attesa di Manrope
     (display=swap) il testo viene disegnato col font successivo, e se questo
     ha larghezze diverse il numero di righe cambia allo swap -> layout shift.
     Misurato sul testo reale del sito: Manrope 304px, Arial/Helvetica 305px,
     system-ui (SF Pro) 318px. system-ui era il responsabile del CLS. */
  --font: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--mint { background: var(--bg-mint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--green-500); border-radius: 2px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px); margin: 14px 0 0;
}
.section-head p { margin-top: 16px; font-size: 19px; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: .01em;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: var(--sh-glow); }
.btn--primary:hover { background: var(--green-700); transform: translateY(-2px); }
.btn--wa { background: #188842; color: #fff; box-shadow: 0 12px 30px rgba(24,136,66,.32); }
.btn--wa:hover { background: #146F36; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--green-800); box-shadow: inset 0 0 0 2px var(--border-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--green-500); color: var(--green-700); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--light:hover { background: rgba(255,255,255,.26); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 17px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 50px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.brand__name b { color: var(--green-600); }
.brand__sub { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--green-700); background: var(--green-50); }
.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--green-800);
}
.header__phone svg { width: 17px; height: 17px; }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.burger span { display: block; width: 22px; height: 2.4px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after  { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s ease;
  overflow-y: auto;
}
body.menu-open .mobile-nav { transform: none; opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.mobile-nav a { padding: 15px 12px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 88% -10%, rgba(52,201,36,.16), transparent 60%),
    radial-gradient(50% 60% at -5% 110%, rgba(30,132,224,.10), transparent 60%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 84px 0 96px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px;
  background: #fff; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
  font-weight: 800; font-size: 13.5px; color: var(--green-800); margin-bottom: 26px;
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
.hero h1 {
  /* Titolo piu' lungo del claim precedente: corpo massimo ridotto e wrap
     bilanciato per tenerlo in tre righe e non spingere le CTA sotto la piega. */
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; text-wrap: balance;
}
/* Evidenziatore disegnato come sfondo del testo invece che come pseudo-elemento
   in posizione assoluta: cosi' segue il testo quando va a capo. Prima serviva
   white-space:nowrap per tenerlo su una riga sola, e quello spezzava il titolo
   lasciando parole orfane (e rischiava overflow sotto i 360px). */
.hero h1 .hl {
  color: var(--green-600);
  background: linear-gradient(var(--green-200), var(--green-200)) no-repeat;
  background-size: 100% .22em;
  background-position: 0 .88em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__lead { font-size: 20px; color: var(--ink-2); margin: 24px 0 0; max-width: 540px; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; }
.hero__trust li { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.hero__trust svg { width: 20px; height: 20px; color: var(--green-600); flex: none; }

/* hero visual */
.hero__visual { position: relative; }
.hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.hero__float {
  position: absolute; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero__float .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hero__float strong { display: block; font-size: 17px; }
.hero__float span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero__float--tl { top: 22px; left: -26px; }
.hero__float--br { bottom: 28px; right: -22px; }
.spark { position: absolute; color: var(--yellow); filter: drop-shadow(0 4px 8px rgba(0,0,0,.08)); }
.spark--1 { top: -14px; right: 30%; width: 34px; }
.spark--2 { bottom: 10%; left: -16px; width: 24px; }

/* ============================================================
   LOGO STRIP / quick contacts
   ============================================================ */
.quickbar { background: var(--green-900); color: #fff; }
.quickbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding: 20px 0; text-align: center; }
.quickbar__item { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15.5px; }
.quickbar__item svg { width: 20px; height: 20px; color: var(--green-400); flex: none; }
.quickbar__item a:hover { color: var(--green-300); }
.quickbar__sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); }

/* ============================================================
   SERVIZI (macro aree)
   ============================================================ */
.macro { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.macro-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 40px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.macro-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--green-200); }
.macro-card__tag { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.macro-card--priv .macro-card__tag { color: var(--green-700); }
.macro-card--biz  .macro-card__tag { color: var(--blue-600); }
.macro-card__ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.macro-card--priv .macro-card__ic { background: var(--green-100); color: var(--green-700); }
.macro-card--biz  .macro-card__ic { background: #E2F0FC; color: var(--blue-600); }
.macro-card__ic svg { width: 30px; height: 30px; }
.macro-card h3 { font-size: 27px; margin: 6px 0 12px; }
.macro-card > p { color: var(--ink-2); margin-bottom: 22px; }
.macro-list { display: grid; gap: 12px; }
.macro-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.macro-list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.macro-card--priv .macro-list svg { color: var(--green-600); }
.macro-card--biz  .macro-list svg { color: var(--blue-500); }

/* service grid (specific interventions) */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.svc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px 22px;
  transition: transform .18s, box-shadow .18s;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.svc__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 16px; }
.svc__ic svg { width: 26px; height: 26px; }
.svc h4 { font-size: 18px; margin-bottom: 6px; }
.svc p { font-size: 14.5px; color: var(--ink-3); font-weight: 600; line-height: 1.45; }

/* ============================================================
   STRAORDINARIE (feature band)
   ============================================================ */
.straord { background: var(--bg-dark); color: #fff; position: relative; overflow: hidden; }
.straord__bg { position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(52,201,36,.22), transparent 60%); }
.straord__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.straord .eyebrow { color: var(--green-400); }
.straord .eyebrow::before { background: var(--green-400); }
.straord h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 18px; }
.straord p { color: rgba(255,255,255,.82); font-size: 18px; }
.straord__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 28px; }
.straord__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.straord__list svg { width: 19px; height: 19px; color: var(--green-400); flex: none; margin-top: 2px; }
.straord__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  padding: 34px; backdrop-filter: blur(4px);
}
.straord__card h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.straord__card p { font-size: 15.5px; margin-bottom: 24px; }
.straord__photo { display: block; width: 100%; height: auto; aspect-ratio: 4/5; border-radius: var(--r-md); margin-bottom: 24px; }

/* ============================================================
   PROCESSO
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step__n {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-600); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(35,168,27,.3);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; left: 64px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green-300) 0 8px, transparent 8px 16px);
}

/* ============================================================
   GALLERIA prima/dopo
   ============================================================ */
.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.ba {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm);
  user-select: none; border: 1px solid var(--border);
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer image-slot { width: 100%; height: 100%; }
.ba__after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba__tag {
  position: absolute; top: 12px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; z-index: 4; backdrop-filter: blur(4px);
}
.ba__tag--before { left: 12px; background: rgba(21,33,27,.66); color: #fff; }
.ba__tag--after  { right: 12px; background: var(--green-600); color: #fff; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: #fff; z-index: 3;
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.06); cursor: ew-resize;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--sh-md);
  display: grid; place-items: center; color: var(--green-700);
}
.ba__knob svg { width: 22px; height: 22px; }
.gallery__note { text-align: center; margin-top: 22px; color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* ============================================================
   CHI SIAMO
   ============================================================ */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media image-slot { display: block; width: 100%; height: auto; aspect-ratio: 4/5; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.about__stat {
  position: absolute; bottom: -22px; right: -18px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 18px 24px; text-align: center;
}
.about__stat b { display: block; font-size: 34px; color: var(--green-600); line-height: 1; }
.about__stat span { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.about h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 16px; }
.about p { color: var(--ink-2); font-size: 17.5px; margin-bottom: 16px; text-wrap: pretty; }
.about__people { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.person {
  display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 20px 14px 14px;
}
.person__av { width: 48px; height: 48px; border-radius: 50%; background: var(--green-600); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.person b { display: block; font-size: 16px; }
.person span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.person a { display: block; font-size: 14.5px; color: var(--green-700); font-weight: 800; margin-top: 2px; }

/* ============================================================
   RECENSIONI
   ============================================================ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm); }
.stars { display: flex; gap: 3px; color: var(--yellow); margin-bottom: 16px; }
.stars svg { width: 19px; height: 19px; }
.review p { font-size: 16.5px; color: var(--ink); line-height: 1.55; margin-bottom: 22px; }
.review__by { display: flex; align-items: center; gap: 12px; }
.review__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; flex: none; }
.review__by b { font-size: 15px; }
.review__by span { font-size: 13px; color: var(--ink-3); font-weight: 600; display: block; }

/* ============================================================
   ZONA + ORARI
   ============================================================ */
.info-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.map-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.map-card__top { padding: 28px 30px 0; }
.map-card h3 { font-size: 24px; margin-bottom: 8px; }
.map-card p { color: var(--ink-2); font-size: 16px; }
.zones { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; padding: 0 30px; }
.zone-chip { background: var(--green-50); color: var(--green-800); border-radius: var(--r-pill); padding: 7px 15px; font-weight: 700; font-size: 14px; border: 1px solid var(--green-100); }
.map-embed { margin-top: 24px; height: 280px; border: 0; width: 100%; filter: saturate(1.05); }
.hours-card { background: var(--green-900); color: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-md); }
.hours-card h3 { color: #fff; font-size: 24px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.hours-card h3 svg { width: 24px; height: 24px; color: var(--green-400); }
.hours-card > p { color: rgba(255,255,255,.7); font-size: 14.5px; margin-bottom: 22px; }
.hours { display: grid; gap: 2px; }
.hours li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.hours li:last-child { border-bottom: none; }
.hours li span:first-child { font-weight: 700; }
.hours li .h { color: var(--green-300); font-weight: 700; }
.hours li .closed { color: rgba(255,255,255,.45); font-weight: 700; }
.hours li.today { position: relative; }
.hours li.today span:first-child::after { content: "oggi"; margin-left: 8px; font-size: 10.5px; background: var(--green-500); color: #06330a; padding: 2px 7px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.hours-card .btn { margin-top: 24px; }

/* ============================================================
   PREVENTIVO / CONTATTI
   ============================================================ */
.contact { max-width: 640px; margin-inline: auto; }
.contact__aside { text-align: center; }
.contact__aside .eyebrow, .contact__aside h2, .contact__aside > p { text-align: center; }
.contact__wa { display: flex; align-items: center; gap: 18px; text-align: left; background: #188842; color: #fff; border-radius: var(--r-lg); padding: 20px 24px; box-shadow: 0 12px 28px rgba(24,136,66,.32); margin: 8px 0 22px; transition: transform .18s, box-shadow .18s; }
.contact__wa:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31,184,85,.42); }
.contact__wa-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.contact__wa-ic svg { width: 30px; height: 30px; }
.contact__wa-body { display: flex; flex-direction: column; gap: 3px; }
.contact__wa-body b { font-size: 20px; line-height: 1.15; }
.contact__wa-body span { font-size: 14.5px; }
.contact__wa-arrow { width: 24px; height: 24px; margin-left: auto; flex: none; }
.contact__sep { font-size: 14px; color: var(--ink-3); font-weight: 600; margin: 0 0 14px; }
.contact__aside h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 16px; }
.contact__aside > p { color: var(--ink-2); font-size: 17.5px; margin-bottom: 28px; text-wrap: pretty; }
.contact__methods { display: grid; gap: 14px; }
.cmethod { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 20px; transition: box-shadow .18s, transform .18s, border-color .18s; }
.cmethod:hover { box-shadow: var(--sh-md); transform: translateX(3px); border-color: var(--green-200); }
.cmethod__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cmethod__ic.green { background: var(--green-100); color: var(--green-700); }
.cmethod__ic.wa { background: #DDF7E6; color: #1FB855; }
.cmethod__ic.mail { background: #E2F0FC; color: var(--blue-600); }
.cmethod__ic svg { width: 25px; height: 25px; }
.cmethod span { font-size: 13px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cmethod b { font-size: 18px; display: block; margin-top: 1px; }
.cmethod__link { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; color: inherit; }
.cmethod b { word-break: break-word; }
.copy-btn { position: relative; flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
.copy-btn:hover { color: var(--green-700); border-color: var(--green-200); background: var(--green-100); }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn::after { content: "Copiato!"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: #16331f; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.copy-btn.is-copied { color: var(--green-700); border-color: var(--green-200); }
.copy-btn.is-copied::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* form */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--sh-md); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--ink-3); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--green-600); }
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
.textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.error .input, .field.error .textarea, .field.error .select { border-color: #DE1135; box-shadow: 0 0 0 4px #FFE3E7; }
.field .err-msg { display: none; color: #DE1135; font-size: 13px; font-weight: 700; margin-top: 6px; }
.field.error .err-msg { display: block; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.form-success {
  display: none; text-align: center; padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check svg { width: 40px; height: 40px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--ink-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.faq-item.open { box-shadow: var(--sh-md); border-color: var(--green-200); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; text-align: left; font-weight: 800; font-size: 18px; color: var(--ink); }
.faq-q .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; transition: transform .25s, background .2s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--green-600); color: #fff; }
.faq-q .ic svg { width: 18px; height: 18px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a__in { padding: 0 26px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ============================================================
   CTA band
   ============================================================ */
.ctaband { background: var(--green-600); color: #fff; position: relative; overflow: hidden; }
.ctaband__bg { position: absolute; inset: 0; background: radial-gradient(50% 120% at 90% 10%, rgba(255,255,255,.18), transparent 60%); }
.ctaband__inner { position: relative; z-index: 1; text-align: center; }
/* padding verticale con selettore più specifico: altrimenti .wrap (media query)
   sovrascrive lo shorthand e su mobile il padding alto/basso si azzera. */
.ctaband .ctaband__inner { padding-block: 76px; }
.ctaband h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.ctaband p { color: rgba(255,255,255,.9); font-size: 20px; margin: 16px auto 32px; max-width: 600px; }
.ctaband .hero__cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.75); padding: 64px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand-badge { background: #fff; border-radius: var(--r-md); padding: 12px; display: inline-block; box-shadow: var(--sh-md); }
.footer__brand-badge img { height: 70px; width: auto; }
.footer__brand p { margin-top: 18px; font-size: 15px; line-height: 1.6; max-width: 320px; }
.footer h3 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { font-size: 15px; transition: color .15s; }
.footer ul a:hover { color: var(--green-300); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--green-400); flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.footer__bottom a:hover { color: var(--green-300); }

/* ============================================================
   Reveal animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* image-slot empty state — branded (host bg shows through the translucent frame) */
image-slot { background: var(--green-50); }

/* La <img> di ogni image-slot vive nel light DOM — così finisce nell'HTML
   servito ed è indicizzabile da Google Immagini — e viene proiettata dentro
   la shadow root del componente. Le regole di posizionamento devono stare
   qui: per il contenuto proiettato il documento esterno vince sempre sulle
   ::slotted() della shadow, compresa la `img { max-width: 100% }` di reset. */
image-slot > img[slot="img"] {
  position: absolute; max-width: none; display: block;
  transform: translate(-50%, -50%);
  -webkit-user-drag: none; user-select: none;
}
/* Prima che il componente venga registrato non esiste la .frame che ritaglia:
   questo tiene l'immagine inquadrata e dentro i bordi anche a JS non ancora
   eseguito. Dopo l'upgrade _applyView() scrive left/top/width/height inline. */
image-slot:not(:defined) { display: block; position: relative; overflow: hidden; }
image-slot:not(:defined) > img[slot="img"] {
  left: 50%; top: 50%; width: 100%; height: 100%; object-fit: cover;
}

/* floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%; background: #188842; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .18s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 920px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 64px; }
  /* width:100% indispensabile: con solo max-width + margin auto il grid item
     passa al sizing sul contenuto e la foto (img width:100%) collassa a 0. */
  .hero__visual { width: 100%; max-width: 460px; margin-inline: auto; }
  .straord__card { width: 100%; max-width: 420px; margin-inline: auto; }
  /* Decori (stelline + card flottanti) fuori dal flusso: su mobile creano
     disordine e si sovrappongono alla foto. */
  .spark, .hero__float { display: none; }
  .macro { grid-template-columns: 1fr; }
  .straord__inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .step::after { display: none; }
  .gallery { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .info-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .straord__list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }

  /* Foto hero più contenuta sui telefoni */
  .hero__visual { max-width: 340px; }
  /* Quickbar: items impilati e centrati, separatori nascosti */
  .quickbar__inner { flex-direction: column; gap: 12px; padding: 22px 0; }
  .quickbar__sep { display: none; }

  /* Topbar mobile: il CTA inline sforava lo schermo schiacciando l'hamburger.
     Resta solo brand + burger; il CTA è nel drawer. */
  :root { --header-h: 62px; }
  .header__cta .btn--primary { display: none; }
  .header__inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { height: 40px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 9.5px; letter-spacing: .14em; }
}

/* ============ COOKIE BANNER ============ */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; }
.cookie[hidden] { display: none; }
.cookie__in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 16px 20px; }
.cookie__txt { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.cookie__txt a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.cookie__btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .cookie__in { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
}

/* ============ MODALE PRIVACY ============ */
.modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8, 30, 14, .55); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 680px; max-height: 86vh; overflow: hidden; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); display: flex; flex-direction: column; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: color .18s, border-color .18s; }
.modal__close:hover { color: var(--green-700); border-color: var(--green-200); }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { overflow-y: auto; padding: 36px 36px 32px; }
.modal__body h2 { font-size: 26px; margin: 0 0 4px; padding-right: 40px; }
.modal__body > p:first-of-type { color: var(--ink-3); font-size: 13.5px; margin-top: 0; }
.modal__body h3 { font-size: 17px; margin: 22px 0 6px; }
.modal__body p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 8px; }
.modal__body a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.modal__body code { background: var(--green-50, #eef9f1); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
@media (max-width: 640px) {
  .modal__body { padding: 28px 22px 24px; }
}
