/* =========================================================
   SiHouse — foglio di stile principale
   Design system: design-system/MASTER.md
   ========================================================= */


:root {
  /* Brand (dal logo) */
  --brand: #95B958;
  --brand-600: #6E9438;
  --brand-700: #4A7323;
  --brand-800: #3A5C1B;
  --brand-50: #F3F7EC;
  --brand-100: #E4EED3;
  --ink: #36322E;
  --ink-2: #5A544E;
  --ink-3: #7A736C;

  /* Superfici */
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --sand: #F2EFE8;
  --line: #E4E0D8;
  --star: #E3A008;
  --danger: #B42318;
  --danger-bg: #FEF3F2;

  /* Tipografia */
  --font-h: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-b: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Forma e profondità */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(54, 50, 46, .06), 0 1px 3px rgba(54, 50, 46, .08);
  --shadow-md: 0 8px 24px -8px rgba(54, 50, 46, .18);
  --shadow-lg: 0 24px 48px -16px rgba(54, 50, 46, .28);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --section: 72px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms;
  --t: 280ms;

  /* z-index */
  --z-header: 40;
  --z-fab: 30;
  --z-drawer: 60;
  --z-dialog: 100;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --section: 112px; --header-h: 80px; }
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-800); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 300; letter-spacing: -.015em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }
ul { padding-left: 1.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: #D9D4CD; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.125rem; }
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-h); font-weight: 500; font-size: .8125rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.section--dark .eyebrow { color: var(--brand); }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--brand); }

/* ---------- Icone ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--brand-700); --btn-fg: #fff; --btn-bd: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-family: var(--font-h); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; touch-action: manipulation;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { --btn-bg: var(--brand-800); --btn-bd: var(--brand-800); color: var(--btn-fg); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(.98); }
.btn .icon { transition: transform var(--t-fast) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.6); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-h); font-weight: 500; text-decoration: none; color: var(--brand-700);
}
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(250, 249, 246, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(54,50,46,.5); }
/* Home: menu nascosto all'apertura (il logo è già nell'hero), compare allo scorrimento */
.site-header--reveal { position: fixed; left: 0; right: 0; transform: translateY(-100%);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform .35s var(--ease); }
.site-header--reveal.is-shown { transform: none; }
@media (prefers-reduced-motion: reduce) { .site-header--reveal { transition: none; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }
@media (min-width: 900px) { .brand img { height: 42px; } }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  color: var(--ink); text-decoration: none; font-family: var(--font-h); font-weight: 400; font-size: 1rem;
  border-radius: 999px; transition: background var(--t-fast) var(--ease);
}
.main-nav a:not(.btn):hover { background: var(--brand-50); color: var(--ink); }
.main-nav a:not(.btn)[aria-current="page"] { color: var(--brand-700); font-weight: 500; }
.main-nav a:not(.btn)[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--brand); border-radius: 2px;
}
.main-nav .btn { margin-left: 10px; }
@media (min-width: 1040px) { .main-nav { display: block; } .nav-toggle { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 50%; color: var(--ink);
}
@media (min-width: 1040px) { .header-inner > .nav-toggle { display: none; } }

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  visibility: hidden; pointer-events: none;
}
.drawer__scrim { position: absolute; inset: 0; background: rgba(30, 27, 24, .5); opacity: 0; transition: opacity var(--t) var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
  background: var(--bg); padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform var(--t) var(--ease); overflow-y: auto;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer__top img { height: 30px; width: auto; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-family: var(--font-h); font-size: 1.375rem; font-weight: 300; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer nav a[aria-current="page"] { color: var(--brand-700); font-weight: 400; }
.drawer__contacts { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(88svh, 820px); display: flex; align-items: flex-end;
  padding-block: 120px 56px;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30,27,24,.25) 0%, rgba(30,27,24,.15) 35%, rgba(30,27,24,.82) 100%),
    linear-gradient(90deg, rgba(30,27,24,.55) 0%, rgba(30,27,24,0) 70%);
}
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 20px; }
.hero__lead { max-width: 58ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.92); }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .eyebrow { color: var(--brand); }
@media (min-width: 900px) { .hero { padding-block: 96px 64px; } }

/* Titolo dell'hero con logo animato centrato sopra */
.hero__head { width: fit-content; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero__head h1 { max-width: none; white-space: nowrap; align-self: stretch; font-size: min(4rem, 7.5vw); }
.hero { overflow-x: clip; }
.hero__brand { position: relative; isolation: isolate; width: 100%; margin-bottom: clamp(14px, 2.2vw, 28px); pointer-events: none; }
.hero__brand::before { content: ""; position: absolute; inset: -30% -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24,22,19,.5), rgba(24,22,19,.25) 60%, rgba(24,22,19,0)); }
/* Numeri che contano: schede animate nella parte destra dell'hero (solo schermi larghi) */
.hero__stats { display: none; }
@media (min-width: 1200px) {
  .hero__stats { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; width: 270px;
    position: absolute; z-index: 1; top: 50%; transform: translateY(-42%);
    right: max(32px, calc((100vw - var(--container)) / 2 + var(--gutter))); }
}
.hs { background: rgba(24,22,19,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(149,185,88,.6); border-radius: var(--r); padding: 14px 20px; color: #fff;
  opacity: 0; transform: translateY(18px); animation: hs-up .7s var(--d, 1s) cubic-bezier(.22,1,.36,1) forwards; }
.hs--shift { margin-left: -44px; }
.hs strong { display: flex; align-items: center; gap: 8px; font-family: var(--font-h); font-weight: 400; font-size: 2.25rem; line-height: 1.1; color: var(--brand); }
.hs strong .icon { width: 24px; height: 24px; }
.hs > span { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.4; color: rgba(255,255,255,.92); }
@keyframes hs-up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hs { animation: none; opacity: 1; transform: none; } }

.hb { width: 100%; height: auto; overflow: visible; display: block; }
.hb-draw { fill: none; stroke: var(--brand); stroke-width: 15; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hb-draw 1.3s .2s cubic-bezier(.65,0,.35,1) forwards; }
.hb-i { stroke-width: 14; animation-duration: .6s; animation-delay: .75s; }
.hb-line { animation-duration: 1s; animation-delay: 1.55s; }
.hb-leaf { fill: var(--brand); transform-box: fill-box; transform-origin: 0% 100%;
  animation: hb-leaf .9s 1.1s cubic-bezier(.34,1.56,.64,1) both, hb-sway 6s 2.6s ease-in-out infinite; }
.hb-l { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 340px; fill: var(--brand); text-anchor: middle;
  opacity: 0; transform: translateY(60px); animation: hb-rise .7s var(--d, 1s) cubic-bezier(.22,1,.36,1) forwards; }
.hb-tag { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 104px; fill: rgba(255,255,255,.88);
  opacity: 0; animation: hb-fade .9s 2.1s ease-out forwards; }
@keyframes hb-draw { to { stroke-dashoffset: 0; } }
@keyframes hb-leaf { from { opacity: 0; transform: scale(0) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes hb-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes hb-rise { to { opacity: 1; transform: none; } }
@keyframes hb-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hb-draw { animation: none; stroke-dashoffset: 0; }
  .hb-leaf, .hb-l, .hb-tag { animation: none; opacity: 1; transform: none; }
}

.trust-bar { background: var(--ink); color: #E8E4DE; }
.trust-bar ul {
  list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 14px 32px;
  grid-template-columns: 1fr;
}
.trust-bar li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.trust-bar .icon { color: var(--brand); width: 24px; height: 24px; }
.trust-bar .stars { color: var(--star); }
@media (min-width: 640px) { .trust-bar ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .trust-bar ul { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero { background: var(--sand); padding-block: 56px 64px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%);
  border: 3px solid var(--brand); opacity: .35; pointer-events: none;
}
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 62ch; font-size: 1.125rem; margin-bottom: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: .9375rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; }
@media (min-width: 900px) { .page-hero { padding-block: 88px 96px; } }

/* ---------- Cornice del logo (motivo) ---------- */
.framed { position: relative; isolation: isolate; }
.framed::before {
  --b: 3px;
  content: ""; position: absolute; inset: -16px 16px 16px -16px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--brand), var(--brand)) left top / 72% var(--b) no-repeat,
    linear-gradient(var(--brand), var(--brand)) right top / 6% var(--b) no-repeat,
    linear-gradient(var(--brand), var(--brand)) left top / var(--b) 100% no-repeat,
    linear-gradient(var(--brand), var(--brand)) right top / var(--b) 100% no-repeat,
    linear-gradient(var(--brand), var(--brand)) left bottom / 100% var(--b) no-repeat;
}
.framed::after {
  content: ""; position: absolute; top: -34px; right: calc(16px + 9%); width: 30px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%2395B958' d='M30 1C29 11 25 17 14 17c-2 0-3.4-.5-4.4-1.2C7.5 20 4.7 23.5 1.5 26.5L.6 25.6C4 22.4 7.2 18.6 9.3 14.6 7.6 11 10 7 14.5 5.4 20 3.5 26 4.5 30 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.framed img { border-radius: var(--r-sm); }
.framed--right::before { inset: -16px -16px 16px 16px; }
.framed--right::after { right: calc(-16px + 9%); }
@media (max-width: 639px) {
  .framed::before { inset: -10px 10px 10px -10px; }
  .framed--right::before { inset: -10px -10px 10px 10px; }
  .framed::after { top: -26px; width: 24px; height: 24px; }
}

/* ---------- Intro / statement ---------- */
.intro-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; } }
.statement {
  font-family: var(--font-h); font-weight: 300; color: var(--ink);
  font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 28px;
}
.statement em { font-style: normal; color: var(--brand-700); font-weight: 400; }

/* ---------- Card valore ---------- */
.value-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.value-card {
  background: var(--surface); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.value-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.value-card:hover .value-card__media img { transform: scale(1.04); }
.value-card__body { padding: 24px 24px 28px; position: relative; }
.value-card__icon {
  position: absolute; top: -26px; left: 24px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--surface);
}
.value-card__icon .icon { width: 24px; height: 24px; }
.value-card h3 { margin-top: 18px; }
.value-card p { margin: 0; font-size: 1rem; }

/* ---------- Steps processo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step {
  counter-increment: step; position: relative; padding: 28px 24px 26px;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); background: rgba(255,255,255,.03);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-h); font-weight: 300; font-size: 2.5rem; line-height: 1; color: var(--brand); margin-bottom: 18px;
}
.step h3 { font-size: 1.1875rem; margin-bottom: 8px; color: #fff; }
.step p { margin: 0; font-size: .9875rem; color: #CFC9C1; }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.steps-cta p { margin: 0; max-width: 60ch; color: #E8E4DE; }

/* ---------- Galleria ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery__item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--r-sm);
  background: var(--sand); aspect-ratio: 10 / 7; cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30,27,24,.55));
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery--feature .gallery__item:first-child { grid-column: span 2; }
/* dalla sesta foto in poi: riquadri grandi affiancati (riga completa, niente buchi) */
.gallery--feature .gallery__item:nth-child(n+6) { grid-column: span 2; }
@media (min-width: 900px) {
  .gallery { gap: 16px; grid-template-columns: repeat(3, 1fr); }
  .gallery--feature { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .gallery--feature .gallery__item { aspect-ratio: auto; min-height: 220px; }
  /* le foto (anche verticali) non devono allungare le righe della griglia */
  .gallery--feature .gallery__item img { position: absolute; inset: 0; }
  .gallery--feature .gallery__item:first-child,
  .gallery--feature .gallery__item:nth-child(n+6) { grid-column: span 2; grid-row: span 2; }
}
@media (hover: none) { .gallery__zoom { opacity: 1; transform: none; } }
.gallery-note { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.gallery-note p { margin: 0; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 18, 16, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in var(--t) var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lightbox__count { font-family: var(--font-h); font-size: .9375rem; letter-spacing: .08em; color: #CFC9C1; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 12px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox__caption { text-align: center; padding: 14px 16px 22px; color: #E8E4DE; font-size: 1rem; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; display: grid; place-items: center; transition: background var(--t-fast) var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (min-width: 900px) { .lb-prev { left: 28px; } .lb-next { right: 28px; } .lightbox__stage { padding: 0 96px; } }

/* ---------- Prima e dopo (home): confronto trascinabile ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 980px; margin-inline: auto; }
@media (min-width: 700px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba { margin: 0; }
.ba__frame {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r);
  background: var(--sand); box-shadow: var(--shadow-md); user-select: none; -webkit-user-select: none;
}
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(24,22,19,.12); pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-md);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.ba__knob .icon { width: 18px; height: 18px; margin: 0 -3px; }
.ba__frame:hover .ba__knob { transform: translate(-50%, -50%) scale(1.06); }
.ba__frame:has(.ba__range:focus-visible) .ba__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--brand-700); }
.ba__tag {
  position: absolute; top: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; pointer-events: none;
  font-family: var(--font-h); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(24,22,19,.72); transition: opacity var(--t-fast) var(--ease);
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: var(--brand-700); }
/* l'input copre tutta la foto: si trascina ovunque, da tastiera con le frecce */
.ba__range {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
  touch-action: pan-y; /* sul telefono lo scorrimento verticale della pagina resta libero */
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 56px; height: 56px; }
.ba__range::-moz-range-thumb { width: 56px; height: 56px; border: 0; }
.ba figcaption { margin-top: 14px; font-size: .9375rem; color: var(--ink-2); text-align: center; }
.ba figcaption strong { color: var(--ink); font-family: var(--font-h); font-weight: 500; }

/* ---------- Recensioni ---------- */
.reviews-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px 10px 12px; width: fit-content;
}
.reviews-summary__g { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.reviews-summary__score { font-family: var(--font-h); font-weight: 500; font-size: 1.375rem; color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 18px; height: 18px; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 48px); }
.reviews-head .section-head { margin-bottom: 0; }

.reviews { columns: 1; column-gap: 20px; }
@media (min-width: 700px) { .reviews { columns: 2; } }
@media (min-width: 1100px) { .reviews { columns: 3; } }
.review {
  break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 26px 22px; box-shadow: var(--shadow-sm); position: relative;
}
.review__quote { position: absolute; top: 20px; right: 22px; width: 32px; height: 32px; color: var(--brand-100); }
.review blockquote { margin: 14px 0 18px; color: var(--ink-2); font-size: 1.0125rem; }
.review blockquote p { margin: 0 0 .6em; }
.review.is-clamped blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review__more {
  background: none; border: 0; padding: 0; min-height: 44px; margin: -10px 0 6px; color: var(--brand-700);
  font-family: var(--font-h); font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand-100); color: var(--brand-800);
  display: grid; place-items: center; font-family: var(--font-h); font-weight: 500; flex: none;
}
.review__name { font-family: var(--font-h); font-weight: 500; color: var(--ink); line-height: 1.2; display: block; }
.review__src { font-size: .875rem; color: var(--ink-3); }
.reviews-cta { text-align: center; margin-top: 16px; }

/* ---------- Chi siamo ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split--wide-text { grid-template-columns: .9fr 1.1fr; }
  .split--reverse > :first-child { order: 2; }
}
.person-role { font-family: var(--font-h); color: var(--brand-700); font-weight: 500; font-size: 1.0625rem; margin-bottom: 20px; }
.quote-line {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 20px; margin: 24px 0 0;
  font-family: var(--font-h); font-weight: 300; font-size: 1.3125rem; color: var(--ink); line-height: 1.4;
}

.team-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 26px 28px 30px; }
.team-card h3 { margin-bottom: 4px; }
.team-card .person-role { margin-bottom: 14px; font-size: 1rem; }
.team-card p { font-size: 1rem; margin: 0; }

.area { display: grid; gap: 32px; align-items: stretch; }
@media (min-width: 900px) { .area { grid-template-columns: 1fr 1.3fr; gap: 56px; } }
.area-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.area-list li { display: flex; gap: 12px; align-items: flex-start; }
.area-list .icon { color: var(--brand-700); margin-top: 3px; }
.map-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--sand); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
/* Banner cookie (compatto: testo, Ok, X) */
.cookie-banner { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 12px; pointer-events: none;
  opacity: 0; transform: translateY(16px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner__box { pointer-events: auto; max-width: 820px; margin: 0 auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r); box-shadow: 0 14px 40px rgba(54,50,46,.2);
  padding: 12px 8px 12px 18px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 12px; }
.cookie-banner p { grid-column: 1 / -1; font-size: .9375rem; line-height: 1.5; margin: 0; color: var(--ink-2); padding-right: 4px; }
.cookie-banner p a { color: var(--brand-700); text-decoration: underline; }
.cookie-banner__ok { grid-column: 2; min-height: 44px; min-width: 88px; justify-content: center; }
.cookie-banner__x { grid-column: 3; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.cookie-banner__x:hover { background: var(--sand); color: var(--ink); }
@media (min-width: 640px) {
  .cookie-banner { padding: 20px; }
  .cookie-banner__box { grid-template-columns: 1fr auto auto; padding: 10px 10px 10px 20px; }
  .cookie-banner p { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
.has-cookie-banner .wa-fab { opacity: 0; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Pagine legali e 404 */
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2.2em 0 .6em; }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal h3 { font-size: 1.125rem; margin: 1.4em 0 .4em; }
.legal ul:not(.check-list) { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--brand-700); }
.todo { background: #FFF3C4; color: #6B4E00; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent a { color: var(--brand-700); text-decoration: underline; }
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.page-hero .page-404__code { font-family: 'Jost', sans-serif; font-weight: 300; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--brand); margin: 0 0 8px; letter-spacing: -.02em; }
.page-404__links { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.page-404__links a { color: var(--brand-700); font-weight: 600; }

/* Mappa caricata solo su richiesta (niente dati a Google senza clic) */
.map-facade { display: grid; place-items: center; text-align: center; padding: 28px 20px;
  background-color: var(--sand);
  background-image: linear-gradient(rgba(54,50,46,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(54,50,46,.06) 1px, transparent 1px);
  background-size: 32px 32px; }
.map-facade__inner { max-width: 340px; display: grid; justify-items: center; gap: 12px; }
.map-facade__pin { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(149,185,88,.25); }
.map-facade__pin .icon { width: 26px; height: 26px; }
.map-facade__addr { margin: 0; color: var(--ink); line-height: 1.45; }
.map-facade__btn { --btn-bg: var(--surface); }
.map-facade__note { margin: 0; font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
.map-facade__note a { color: var(--brand-700); text-decoration: underline; }

/* ---------- Metodo: capitoli ---------- */
.chapters { display: grid; gap: clamp(72px, 10vw, 128px); }
.chapter { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: 80px; }
  .chapter:nth-child(even) .chapter__media { order: 2; }
}
.chapter__num {
  display: inline-block; font-family: var(--font-h); font-weight: 300; font-size: 3.5rem; line-height: 1; color: var(--brand);
  margin-bottom: 8px;
}
.chapter__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chapter__media--contain img { object-fit: contain; background: #fff; }
/* Schema "unico referente" (Come lavoriamo): SVG con testi veri */
.diagram { display: block; width: 100%; height: auto; padding: 14px; background: #fff; border-radius: var(--r-sm); }
.diagram text { font-family: var(--font-h); }
.dg-panel--bad { fill: #FBF3F0; }
.dg-panel--good { fill: var(--brand-50); }
.dg-title { font-size: 36px; font-weight: 500; fill: var(--ink); }
.dg-sub { font-size: 26px; font-weight: 500; }
.dg-sub--bad { fill: #A23B2A; }
.dg-sub--good { fill: var(--brand-700); }
.dg-line { stroke-width: 3; stroke-linecap: round; }
.dg-line--bad { stroke: #C9776A; stroke-dasharray: 2 9; }
.dg-line--good { stroke: var(--brand-600); }
.dg-line--main { stroke: var(--brand-700); stroke-width: 6; }
.dg-node { fill: #fff; stroke-width: 2.5; }
.dg-ico { color: var(--ink); stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dg-label { font-size: 28px; fill: var(--ink); }
.dg-you { fill: var(--ink); }
.dg-you--bad { fill: #A23B2A; }
.dg-you-t { font-size: 30px; font-weight: 500; fill: #fff; }
.dg-hub { fill: var(--brand-700); }
.dg-hub-t { font-size: 27px; font-weight: 500; fill: #fff; }
.dg-note { font-size: 24px; fill: var(--brand-700); font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--brand-700); margin-top: 4px; width: 20px; height: 20px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9375rem;
}
.toc a:hover { border-color: var(--brand); background: var(--brand-50); }

/* ---------- CTA + Form ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; min-height: 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
a.contact-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-item__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.contact-item__icon .icon { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--ink-3); font-size: .875rem; }
.contact-item strong { font-weight: 600; font-family: var(--font-b); }

.form-card { background: var(--surface); border-radius: var(--r-lg); padding: 28px 22px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .form-card { padding: 40px; } }
.form-card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 6px; }
.form-card > p { font-size: 1rem; margin-bottom: 26px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 600; color: var(--ink); font-size: .9875rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.req { color: var(--danger); margin-left: 2px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid #D6D1C8; background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input::placeholder { color: #9A938B; }
.input:hover { border-color: #BDB6AB; }
.input:focus { outline: none; border-color: var(--brand-700); box-shadow: 0 0 0 4px rgba(149, 185, 88, .3); }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2336322E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat;
}
.input[aria-invalid="true"] { border-color: var(--danger); background-color: var(--danger-bg); }
.field-error { display: none; align-items: center; gap: 6px; margin-top: 6px; color: var(--danger); font-size: .9375rem; }
.field-error.is-visible { display: flex; }
.field-error .icon { width: 16px; height: 16px; }
.hint { display: block; margin-top: 6px; font-size: .875rem; color: var(--ink-3); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9875rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand-700); flex: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-actions small { color: var(--ink-3); font-size: .875rem; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .icon--arrow { display: none; }

.form-status { border-radius: var(--r-sm); padding: 14px 16px; font-size: .9875rem; display: none; gap: 10px; align-items: flex-start; margin-top: 4px; }
.form-status.is-visible { display: flex; }
.form-status--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #FDA29B; }
.form-status--error a { color: var(--danger); font-weight: 600; }
.form-status .icon { margin-top: 2px; }

.form-success { text-align: center; padding: 24px 8px; }
.form-success__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.form-success__icon .icon { width: 34px; height: 34px; }
.form-success h3 { font-size: 1.75rem; font-weight: 300; }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--ink); color: #E8E4DE; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 64px); display: grid; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; border: 3px solid var(--brand); opacity: .4; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding-top: 64px; font-size: 1rem; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; }
.site-footer h2 { font-family: var(--font-h); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--brand-700); }
.footer-links .icon { color: var(--brand-700); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.social a:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px 28px; font-size: .875rem; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- FAB WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: var(--z-fab);
  width: 58px; height: 58px; border-radius: 50%; background: #1F7A46; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.wa-fab:hover { background: #17633A; color: #fff; transform: scale(1.05); }
.wa-fab .icon { width: 28px; height: 28px; }

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

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

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

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- FAQ (accordion nativo, leggibile da motori e AI) ---------- */
.faq-wrap { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.section--white .faq details { background: var(--bg); }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 20px; font-family: var(--font-h); font-weight: 500; font-size: 1.125rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A7323' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-700); }
.faq__a { padding: 0 20px 18px; }
.faq__a p { margin: 0; font-size: 1.0125rem; }

/* H1 con eyebrow integrata (keyword locale nell'H1) */
h1 .eyebrow { display: flex; width: fit-content; line-height: 1.4; margin-bottom: 16px; }
.hero h1 .eyebrow { color: var(--brand); }
.cta-band .eyebrow { color: var(--brand); }

/* ---------- Griglia servizi (pagina Serramenti) ---------- */
.svc-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .svc--wide { grid-column: span 3; } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; transition: border-color var(--t-fast) var(--ease), transform var(--t) var(--ease); }
.svc:hover { border-color: var(--brand); transform: translateY(-2px); }
.svc__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.svc__icon .icon { width: 24px; height: 24px; }
.svc h3 { font-size: 1.1875rem; margin: 2px 0 6px; }
.svc p { margin: 0; font-size: 1rem; }
