/* ==========================================================
   Falegnameria Ebanisteria Bevilacqua
   ========================================================== */

:root {
  --ink: #1c140e;
  --walnut: #2b1e15;
  --walnut-2: #3a2a1d;
  --cream: #f4ede2;
  --paper: #faf6ef;
  --oak: #c08a4e;
  --amber: #d9a463;
  --muted: #8a7764;
  --line: rgba(28, 20, 14, .12);
  --line-light: rgba(244, 237, 226, .14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--oak); color: var(--paper); }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oak);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144;
}
.h2 em { font-style: italic; color: var(--oak); font-weight: 300; }
.h2--big { font-size: clamp(44px, 7vw, 108px); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  pointer-events: none;
}
.loader__door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: var(--ink);
  transition: transform 1.3s var(--ease-in-out);
  overflow: hidden;
}
.loader__door::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grain-dark, none) center / cover;
  opacity: .35;
}
.loader__door--l { left: 0; border-right: 1px solid rgba(217,164,99,.25); }
.loader__door--r { right: 0; }
.loader__mark {
  position: relative; width: 96px; height: 96px;
  fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .5s ease, transform .8s var(--ease);
}
.loader__mark circle, .loader__mark path {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 1.4s var(--ease) forwards;
}
.loader__mark path { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
body.is-loaded .loader__door--l { transform: translateX(-101%); }
body.is-loaded .loader__door--r { transform: translateX(101%); }
body.is-loaded .loader__mark { opacity: 0; transform: scale(.8); }
body.is-gone .loader { display: none; }

/* ---------- Metro (progress) ---------- */
.ruler {
  position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 120;
  pointer-events: none;
}
.ruler__fill {
  height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background:
    repeating-linear-gradient(90deg, rgba(28,20,14,.7) 0 1px, transparent 1px 10px),
    linear-gradient(var(--amber), var(--oak));
  background-size: 10px 3px, 100% 100%;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 0, 0 0;
}

/* ---------- Cursore ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: 0; transition: opacity .3s; }
  .cursor.is-active { opacity: 1; }
  .cursor__dot, .cursor__ring {
    position: fixed; top: 0; left: 0; border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor__dot { width: 6px; height: 6px; background: var(--amber); }
  .cursor__ring {
    width: 38px; height: 38px; border: 1px solid rgba(217,164,99,.7);
    transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s;
  }
  .cursor.is-hover .cursor__ring { width: 74px; height: 74px; background: rgba(217,164,99,.12); border-color: transparent; }
  .cursor.is-view .cursor__ring { width: 96px; height: 96px; background: var(--amber); border-color: transparent; }
  .cursor.is-view .cursor__ring::after {
    content: "Apri"; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink);
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--cream);
  transition: padding .5s var(--ease), background .5s, color .5s, transform .5s var(--ease), box-shadow .5s;
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(250, 246, 239, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; flex-direction: column; line-height: 1; }
.nav__name { font-family: var(--serif); font-size: 26px; font-style: italic; letter-spacing: -.01em; }
.nav__sub { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: 10px 20px !important; border-radius: 99px;
  border: 1px solid currentColor; transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--ink); color: var(--cream);
    font-family: var(--serif); font-size: 36px; font-weight: 400;
    clip-path: circle(0% at calc(100% - 42px) 42px);
    transition: clip-path .8s var(--ease-in-out);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 42px) 42px); }
  .nav.is-open {
    color: var(--cream); background: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; transform: none;
  }
  .nav__cta { font-family: var(--sans); font-size: 16px; margin-top: 12px; }
}

/* ---------- Bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 32px; border-radius: 99px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light::before { background: var(--amber); }
.btn--ghost { border: 1px solid rgba(244,237,226,.5); color: var(--cream); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--pad) clamp(70px, 11vh, 120px);
  background: var(--ink); color: var(--cream);
  overflow: hidden;
}
.hero__wood {
  position: absolute; inset: -12% -6%;
  background: var(--grain-hero, var(--walnut)) center / cover;
  animation: drift 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: scale(1.05) translate3d(0, var(--py, 0px), 0); }
  to   { transform: scale(1.18) translate3d(-2%, var(--py, 0px), 0); }
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(28,16,8,.82) 0%, rgba(28,16,8,.55) 45%, rgba(28,16,8,.05) 100%),
    linear-gradient(180deg, rgba(28,16,8,.5) 0%, rgba(28,16,8,0) 30%, rgba(28,16,8,0) 60%, rgba(28,16,8,.75) 100%);
}
.hero__content { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(52px, 11vw, 176px);
  line-height: .9; letter-spacing: -.035em;
  margin: 0 0 36px;
  font-variation-settings: "opsz" 144;
}
.hero__title .split { display: block; }
.split--italic { font-style: italic; padding-left: .55em; color: rgba(244,237,226,.75); }
.split--accent { color: var(--amber); font-weight: 400; }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); max-width: 520px; color: rgba(244,237,226,.78); margin: 0 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(70px, 11vh, 120px);
  width: 28px; height: 46px; border: 1px solid rgba(244,237,226,.45); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--amber); animation: wheel 2s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* split letters */
.char { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.char > span {
  display: inline-block; transform: translateY(110%) rotate(6deg);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 28ms + var(--d, 0ms));
}
body.is-loaded .char > span { transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--amber); color: var(--ink);
  overflow: hidden; padding: 22px 0;
  transform: rotate(-1.2deg) scale(1.02); margin-top: -18px; position: relative; z-index: 2;
}
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; white-space: nowrap; }
.marquee i { width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(90px, 13vw, 170px) var(--pad); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .h2 em { color: var(--amber); }
.section--cream { background: var(--cream); }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head .h2 { margin: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legno (placeholder) ---------- */
.wood-tile { background-color: var(--walnut-2); background-size: cover; background-position: center; }

/* ---------- Chi siamo ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about > * { margin-left: 0; margin-right: 0; }
.about__media { position: relative; aspect-ratio: 4 / 5; width: 100%; }
.about__media.reveal { transform: none; opacity: 1; }
/* il clip sta sull'immagine: se fosse sul contenitore l'IntersectionObserver non lo vedrebbe mai */
.about__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-in-out); }
.about__media.is-in .about__img { clip-path: inset(0 0 0 0); }
.about__img { position: absolute; inset: -8% 0; border-radius: 4px; }
.about__media { overflow: hidden; border-radius: 4px; }
.about__badge {
  position: absolute; right: 22px; bottom: 22px; width: 132px; height: 132px;
  border-radius: 50%; background: var(--paper); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.about__badge-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__badge-text text { font-size: 15.5px; letter-spacing: .2em; text-transform: uppercase; fill: var(--ink); font-weight: 600; }
.about__badge-icon { width: 34px; height: 34px; fill: none; stroke: var(--oak); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__text p { color: #4a3b2e; max-width: 520px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; }
.stat__num { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 64px); line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; }
.stat__plus { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); color: var(--oak); margin-left: 2px; }
.stat__label { flex-basis: 100%; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Servizi ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.service {
  position: relative; background: var(--ink); padding: clamp(32px, 3.5vw, 52px);
  overflow: hidden; transform-style: preserve-3d;
  transition: background .5s;
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(217,164,99,.16), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.service:hover::before { opacity: 1; }
.service__icon {
  width: 52px; height: 52px; margin-bottom: 34px;
  fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease);
}
.service:hover .service__icon { transform: translateY(-6px) rotate(-6deg); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 12px; letter-spacing: -.01em; }
.service p { margin: 0; color: rgba(244,237,226,.66); font-size: 15.5px; }

/* ---------- Lavori ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; transition: background .35s, color .35s, border-color .35s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.works__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(220px, 24vw, 340px); grid-auto-flow: dense; gap: 18px;
}
.work { position: relative; margin: 0; overflow: hidden; border-radius: 4px; cursor: pointer; background: var(--walnut-2); }
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
.work__img { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
img.work__img { width: 100%; height: 100%; object-fit: cover; }
.work:hover .work__img { transform: scale(1.08); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px;
  background: linear-gradient(transparent, rgba(28,20,14,.85));
  color: var(--cream); font-family: var(--serif); font-size: 22px;
  transform: translateY(14px); opacity: .9; transition: transform .6s var(--ease), opacity .6s;
}
.work figcaption span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.work:hover figcaption { transform: none; opacity: 1; }
.work.is-hidden { display: none; }
.work.reveal { transform: translateY(60px) scale(.96); }
.work.reveal.is-in { transform: none; }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; text-align: center; }

/* ---------- Processo ---------- */
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.process__line { position: absolute; top: 26px; left: 0; width: 100%; height: 20px; overflow: visible; margin-top: -10px; }
.process__line path { fill: none; stroke: var(--oak); stroke-width: 1.5; stroke-dasharray: 1000; stroke-dashoffset: var(--draw, 1000); vector-effect: non-scaling-stroke; }
.step { position: relative; padding-top: 72px; }
.step__n {
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--oak);
  font-family: var(--serif); font-size: 17px; color: var(--oak);
}
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.step p { margin: 0; color: #5a4a3c; font-size: 15.5px; }

/* ---------- Recensioni ---------- */
.reviews__slider { overflow: hidden; }
.reviews__track { display: flex; transition: transform .9s var(--ease); }
.review { flex: 0 0 100%; margin: 0; padding: 0 clamp(0px, 6vw, 120px); }
.review p {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -.01em; margin: 24px 0 32px;
}
.review footer { font-size: 15px; font-weight: 600; }
.review footer span { display: block; font-weight: 400; color: rgba(244,237,226,.5); font-size: 13px; margin-top: 2px; }
.stars { display: flex; gap: 6px; }
.stars i { width: 16px; height: 16px; background: var(--amber); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.reviews__nav { display: flex; align-items: center; gap: 20px; margin-top: 56px; padding: 0 clamp(0px, 6vw, 120px); }
.rv-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.rv-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rv-btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.reviews__dots { display: flex; gap: 8px; }
.reviews__dots button { width: 28px; height: 3px; background: var(--line-light); border-radius: 2px; transition: background .3s, width .4s var(--ease); }
.reviews__dots button.is-active { background: var(--amber); width: 52px; }

/* ---------- Contatti ---------- */
.contact__intro { margin-bottom: clamp(48px, 6vw, 80px); }
.contact__intro p:last-child { color: #4a3b2e; max-width: 480px; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ccard {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 28px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s, transform .5s var(--ease);
}
.ccard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
a.ccard:hover { color: var(--cream); border-color: var(--ink); transform: translateY(-4px); }
a.ccard:hover::before { transform: scaleY(1); }
.ccard svg { width: 30px; height: 30px; fill: none; stroke: var(--oak); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 36px; }
.ccard__label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ccard__value { font-family: var(--serif); font-size: 21px; }
.ccard__value--sm { font-size: 16px; overflow-wrap: anywhere; }
.contact__bottom { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; margin-top: 18px; }
.hours { padding: 30px 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.hours h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 18px; }
.hours dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; }
.map { position: relative; min-height: 280px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.map__placeholder { position: absolute; inset: 0; filter: saturate(.6) brightness(.85); }
.map span { position: relative; color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 22px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(244,237,226,.6); padding: 40px var(--pad) 100px; overflow: hidden; }
.footer__big {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(80px, 21vw, 340px); line-height: .85; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(217,164,99,.45);
  text-align: center; margin: 0 0 32px; white-space: nowrap;
  transform: translateX(var(--fx, 0));
}
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; max-width: var(--max); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line-light); }
.footer__row a:hover { color: var(--amber); }

/* ---------- WhatsApp flottante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--amber); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: scale(0); transition: transform .6s var(--ease);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--amber); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,14,10,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 60px 20px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  width: min(1000px, 92vw); height: min(70vh, 640px); border-radius: 4px;
  background-size: cover; background-position: center;
  transform: scale(.92); transition: transform .7s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__img.is-photo { background-size: contain; background-repeat: no-repeat; }
.lightbox__cap { color: var(--cream); font-family: var(--serif); font-size: 24px; margin: 0; }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--cream); display: grid; place-items: center; }
.lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .process__line { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .about { grid-template-columns: 1fr; }
  .about__badge { width: 104px; height: 104px; right: 14px; bottom: 14px; }
  .about__badge-text text { font-size: 15px; }
  .stats { gap: 12px; }
  .stat__num { font-size: 32px; }
  .stat__plus { font-size: 22px; }
  .services__grid { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .work--wide { grid-column: span 2; }
  .work figcaption { font-size: 17px; padding: 40px 14px 14px; }
  .contact__grid, .contact__bottom { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .split--italic { padding-left: .3em; }
  .btn { padding: 15px 26px; }
}

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

/* ---------- Lavori: "Mostra altri" ---------- */
.works__foot { display: flex; justify-content: center; margin-top: 40px; }
.works__foot [hidden] { display: none; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark::before { background: var(--oak); }
.btn--dark span { opacity: .6; margin-left: 6px; font-weight: 500; }
.work figcaption span:only-child { margin-bottom: 0; }

/* ---------- Lightbox: frecce e contatore ---------- */
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-light);
  display: none; place-items: center; color: var(--cream); background: rgba(20,14,10,.5);
  transition: background .3s, border-color .3s, color .3s;
}
.lightbox.has-nav .lightbox__nav { display: grid; }
.lightbox__nav:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__img { transition: transform .7s var(--ease), background-image .3s; }
.lightbox__count { margin: -12px 0 0; color: rgba(244,237,226,.5); font-size: 13px; letter-spacing: .12em; }
@media (max-width: 760px) {
  .lightbox__nav { top: auto; bottom: 22px; transform: none; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox { padding-bottom: 100px; }
}

/* ---------- Recensioni Google ---------- */
.g-logo { width: 20px; height: 20px; margin-right: 10px; flex: none; background: #fff; border-radius: 50%; padding: 2px; }
.reviews__cta { margin-top: 48px; padding: 0 clamp(0px, 6vw, 120px); }
.review-strip { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(70px, 9vw, 120px); }
.review-strip__inner { text-align: center; max-width: 640px; }
.review-strip .stars { justify-content: center; margin-bottom: 22px; }
.review-strip .stars i { width: 22px; height: 22px; }
.review-strip .h2 { margin-bottom: 18px; }
.review-strip p { color: rgba(244,237,226,.7); margin: 0 0 32px; }

/* ---------- Mappa caricata al clic ---------- */
.map__consent {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 28px 24px; margin: 20px; border-radius: 10px;
  background: rgba(250,246,239,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  max-width: 420px;
}
.map__consent > svg { width: 30px; height: 30px; fill: none; stroke: var(--oak); stroke-width: 1.6; }
.map__consent strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.map__consent small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.map__consent small a { text-decoration: underline; }
.map__consent .btn { padding: 13px 26px; }
.map.is-loaded .map__consent, .map.is-loaded .map__placeholder { display: none; }

/* ---------- Footer link ---------- */
.footer__links { display: inline-flex; gap: 22px; }
.footer__links a:hover { color: var(--amber); }
