/* =============================================================
   BALDANZA — Editorial Dark Warm
   1. Tokens · 2. Reset · 3. Utilities · 4. Typography
   5. Buttons · 6. Nav · 7. Splash · 8. Hero · 9. Sections
   10. Effects · 11. Responsive · 12. Reduced-motion
   ============================================================= */

/* ============================ 1. TOKENS ============================ */
:root {
  --bg:       #0e0b09;
  --bg-2:     #14100c;
  --bg-3:     #1c1611;   /* card */
  --bg-4:     #241c15;   /* card hover / panel */
  --cream:    #f2ebda;
  --cream-2:  #ddd2bc;
  --cream-3:  #93866e;   /* metadata / muted */
  --gold:     #c49a5b;
  --gold-2:   #d9bd83;
  --gold-deep:#8a6a34;
  --line:     rgba(242, 235, 218, 0.12);
  --line-2:   rgba(242, 235, 218, 0.06);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Times New Roman", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 186px;
}

/* ============================ 2. RESET ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ============================ 3. UTILITIES ============================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.section-num {
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream-3); font-weight: 500; margin-bottom: 1.4rem;
}
.lede { color: var(--cream-2); max-width: 56ch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--gold-2); font-weight: 500; letter-spacing: .01em;
  border-bottom: 1px solid rgba(196,154,91,.3); padding-bottom: 3px;
  transition: gap .3s var(--ease-out), border-color .3s var(--ease-out);
}
.link-arrow span { transition: transform .3s var(--ease-out); }
.link-arrow:hover { gap: .8rem; border-color: var(--gold); }
.link-arrow:hover span { transform: translateX(4px); }

/* ============================ 4. TYPOGRAPHY ============================ */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--cream); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--gold-2); }

.hero-title { font-size: clamp(2.7rem, 8vw, 6.6rem); line-height: .98; text-wrap: balance; letter-spacing: -0.02em; }

h2 { font-size: clamp(2rem, 5vw, 3.6rem); text-wrap: balance; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

/* ============================ 5. BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 2px;
  font-size: .84rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
  will-change: transform;
}
.btn-sm { padding: .7rem 1.2rem; font-size: .76rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold); color: #241a0c; }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); }

.btn-ghost { border: 1px solid var(--line); color: var(--cream); background: rgba(242,235,218,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }

/* ============================ 6. NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(14,11,9,.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin-inline: auto; height: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em; color: var(--cream); }
.nav-logo img { height: 170px; width: auto; display: block; }
.nav-links { display: none; gap: 2rem; }
.nav-links a {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2);
  position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions .btn-primary { display: none; }

.nav-burger { display: flex; flex-direction: column; gap: 5px; width: 30px; padding: 6px 2px; }
.nav-burger span { height: 1.5px; width: 100%; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s; }
.nav.is-open .nav-burger span:first-child { transform: translateY(3.2px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 899;
  background: rgba(14,11,9,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem var(--gutter) 2rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.nav.is-open .nav-drawer { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-drawer a { padding: .85rem 0; font-size: 1.05rem; color: var(--cream); border-bottom: 1px solid var(--line-2); }
.nav-drawer a.btn { margin-top: 1rem; border-bottom: 0; justify-content: center; }

/* ============================ 7. SPLASH ============================ */
.splash {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: grid; place-items: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); transition: opacity .8s var(--ease-out), clip-path 1s var(--ease-out); }
.splash-mark { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.splash-word { font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.4rem); color: var(--cream); letter-spacing: .02em; opacity: 0; animation: splashIn 1s .1s var(--ease-out) forwards; }
.splash-logo { width: min(240px, 58vw); height: auto; opacity: 0; animation: splashIn 1s .1s var(--ease-out) forwards; }
.splash-line { width: 0; height: 1px; background: var(--gold); animation: splashLine 1.4s .3s var(--ease-out) forwards; }
@keyframes splashIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes splashLine { to { width: 120px; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }

/* ============================ 8. HERO ============================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: var(--nav-h) 0 clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,11,9,.55) 0%, rgba(14,11,9,.28) 32%, rgba(14,11,9,.72) 78%, rgba(14,11,9,.96) 100%),
    linear-gradient(90deg, rgba(14,11,9,.7) 0%, rgba(14,11,9,.12) 60%);
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(38% 40% at 18% 78%, rgba(196,154,91,.30), transparent 70%),
    radial-gradient(34% 34% at 82% 22%, rgba(138,106,52,.22), transparent 70%);
  filter: blur(30px);
  mix-blend-mode: screen;
  animation: meshDrift 22s ease-in-out infinite;
}
@keyframes meshDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-3%,0) scale(1.08); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hero .kicker { margin-bottom: 1.4rem; }
.hero-title { color: var(--cream); max-width: 16ch; margin-bottom: 1.8rem; }
.hero-sub { max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--cream-2); margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px;
  display: grid; place-items: start center; padding-top: 7px;
}
.hero-scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--gold); animation: scrollDot 1.8s var(--ease-out) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70% { opacity: 1; transform: translateY(12px); } 100% { opacity: 0; transform: translateY(16px); } }

/* ============================ 9. SECTIONS ============================ */
section { position: relative; }
.intro, .finiture, .materiali, .realiz, .acqua, .servizi, .perche { padding-block: clamp(4.5rem, 11vh, 9rem); }

/* --- INTRO --- */
.intro { background: var(--bg); border-top: 1px solid var(--line-2); }
.intro-grid { display: grid; gap: 2rem; }
.intro-body h2 { max-width: 20ch; margin-bottom: 1.6rem; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.8rem; max-width: 640px; }
.intro-stats li { border-top: 1px solid var(--line); padding-top: 1rem; }
.stat-value { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-2); line-height: 1; }
.stat-label { display: block; font-size: .8rem; letter-spacing: .04em; color: var(--cream-3); margin-top: .5rem; }

/* --- MARQUEE --- */
.marquee { margin-top: clamp(3rem, 7vh, 6rem); border-block: 1px solid var(--line); padding-block: 1.3rem; overflow: hidden; }
.marquee-track { display: flex; gap: 2rem; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.9rem); color: var(--cream-3); }
.marquee-track span:nth-child(even) { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- FINITURE / SHOWROOM --- */
.finiture { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.finiture-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.finiture-head h2 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1.4rem; }
.finiture-hint { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); margin-top: 1.6rem; }

.showcase { overflow: hidden; }
.showcase-track {
  display: flex; gap: 1.4rem;
  padding-inline: var(--gutter);
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
}
.showcase-track::-webkit-scrollbar { height: 3px; }
.showcase-track::-webkit-scrollbar-thumb { background: var(--line); }

.mat-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 78vw, 340px);
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out);
  transform-style: preserve-3d;
}
.mat-card:hover { border-color: rgba(196,154,91,.5); }
.mat-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--bg-4); }
.mat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .8s var(--ease-out); filter: saturate(1.02); }
.mat-card:hover .mat-media img { transform: scale(1.07); filter: saturate(1.14) brightness(1.04); }
.mat-body { padding: 1.4rem 1.5rem 1.7rem; }
.mat-kicker { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.mat-body h3 { margin: .5rem 0 .6rem; }
.mat-body p { font-size: .92rem; color: var(--cream-3); }

/* material swatches (CSS) */
.mat-swatch { display: grid; place-items: center; }
.mat-chip {
  font-family: var(--serif); font-size: 2rem; color: rgba(255,255,255,.85);
  width: 74px; height: 74px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  background: rgba(0,0,0,.15); backdrop-filter: blur(2px);
}
.swatch-ottone { background: linear-gradient(135deg, #7a5a26 0%, #d9b877 30%, #8a6a34 55%, #e7cf9a 78%, #9c7738 100%); }
.swatch-nero { background: linear-gradient(120deg, #14100c 0%, #2a2521 40%, #0c0a08 60%, #35302a 100%); }
.swatch-travertino { background: linear-gradient(160deg, #cdb491 0%, #b89a72 45%, #d8c3a1 70%, #b18f66 100%); }
.swatch-terrazzo {
  background:
    radial-gradient(circle at 20% 30%, #c9a15f 0 5px, transparent 6px),
    radial-gradient(circle at 65% 55%, #6b6f63 0 6px, transparent 7px),
    radial-gradient(circle at 40% 78%, #a83f2e 0 4px, transparent 5px),
    radial-gradient(circle at 80% 25%, #3f3a32 0 5px, transparent 6px),
    radial-gradient(circle at 30% 60%, #d8cdba 0 4px, transparent 5px),
    #e6ddc9;
}
.swatch-microcemento { background: linear-gradient(150deg, #6f6a63 0%, #565049 50%, #7a746b 100%); }

.finiture-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  margin-top: clamp(2rem, 4vh, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line);
}
.finiture-foot p { color: var(--cream-2); max-width: 46ch; }

/* --- MATERIALI --- */
.materiali { background: var(--bg-2); }
.materiali-grid { display: grid; gap: 3rem; }
.materiali-intro h2 { max-width: 16ch; margin-bottom: 1.4rem; }
.feature-list { margin-top: 2rem; display: grid; gap: 1rem; }
.feature-list li { position: relative; padding-left: 1.6rem; color: var(--cream-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.feature-list strong { color: var(--cream); font-weight: 600; }

.cats-title { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.cats-title:nth-of-type(2) { margin-top: 2rem; }
.chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.chip-grid li {
  padding: .85rem 1rem; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 3px; font-size: .9rem; color: var(--cream-2);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.chip-grid li:hover { border-color: rgba(196,154,91,.5); color: var(--cream); transform: translateY(-2px); }
.chip-grid-solo { grid-template-columns: 1fr; }
.materiali-more { margin-top: 1.8rem; }

/* --- REALIZZAZIONI --- */
.realiz { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.realiz-grid { display: grid; gap: 1.4rem; margin-top: 1rem; }
.realiz-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  transition: border-color .4s var(--ease-out);
}
.realiz-card:hover { border-color: rgba(196,154,91,.4); }
.realiz-media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.realiz-media-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.realiz-card:hover .realiz-media-img img { transform: scale(1.05); }
.realiz-media-tone { display: grid; place-items: center; }
.tone-restauro {
  background:
    linear-gradient(120deg, rgba(196,154,91,.14), transparent 60%),
    repeating-linear-gradient(45deg, #1c1611 0 22px, #201a13 22px 44px);
}
.tone-label { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--cream-3); }
.realiz-text { padding: 1.6rem 1.8rem 2rem; }
.realiz-text h3 { margin-bottom: .8rem; }
.realiz-text p { color: var(--cream-3); font-size: .95rem; }
.mini-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.mini-list li { font-size: .78rem; letter-spacing: .04em; color: var(--gold-2); border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 40px; }

/* --- ACQUA --- */
.acqua { background: var(--bg); }
.acqua-grid { display: grid; gap: 1.4rem; margin-top: 1rem; }
.acqua-card { position: relative; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); min-height: 400px; display: flex; align-items: flex-end; }
.acqua-media { position: absolute; inset: 0; z-index: 0; }
.acqua-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.acqua-card:hover .acqua-media img { transform: scale(1.06); }
.acqua-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,11,9,0) 12%, rgba(14,11,9,.5) 48%, rgba(14,11,9,.95) 100%); }
.acqua-text { position: relative; z-index: 2; padding: 2rem; }
.acqua-text h3 { color: var(--cream); margin-bottom: .6rem; }
.acqua-text p { color: var(--cream-2); font-size: .95rem; max-width: 42ch; }
.acqua-list { margin-top: .9rem; display: grid; gap: .45rem; }
.acqua-list li { position: relative; padding-left: 1.15rem; color: var(--cream-2); font-size: .9rem; }
.acqua-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* --- SERVIZI --- */
.servizi { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.servizi h2 { max-width: 18ch; margin-bottom: clamp(2rem, 4vh, 3.5rem); }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.svc-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.8rem; transition: border-color .4s var(--ease-out), background .4s var(--ease-out), transform .4s var(--ease-out);
  transform-style: preserve-3d;
}
.svc-card:hover { border-color: rgba(196,154,91,.45); background: var(--bg-4); }
.svc-ico { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); margin-bottom: 1.2rem; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-card h3 { margin-bottom: .6rem; }
.svc-card p { color: var(--cream-3); font-size: .92rem; }
.svc-cta { background: linear-gradient(135deg, var(--bg-4), var(--bg-3)); border-color: rgba(196,154,91,.3); display: flex; flex-direction: column; gap: .7rem; justify-content: center; }
.svc-cta h3 { color: var(--gold-2); }

/* --- PERCHÉ --- */
.perche { background: var(--bg-2); }
.perche-grid { display: grid; gap: 2.5rem; }
.perche-head h2 { max-width: 15ch; }
.perche-list { display: grid; gap: 0; }
.perche-list li { padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--cream-2); }
.perche-list li:last-child { border-bottom: 1px solid var(--line); }
.perche-list strong { color: var(--cream); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; display: inline; margin-right: .4rem; }

/* --- CONTATTI --- */
.contatti { position: relative; background: var(--bg); padding-block: clamp(4.5rem, 11vh, 9rem); overflow: hidden; border-top: 1px solid var(--line-2); }
.contatti-halo {
  position: absolute; inset: -40% -10% auto -10%; height: 80%; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 50% at 50% 30%, rgba(196,154,91,.16), transparent 70%);
  filter: blur(80px);
}
.contatti-inner { position: relative; z-index: 1; display: grid; gap: 3rem; }
.contatti-head .kicker { margin-bottom: 1.2rem; }
.contatti-head h2 { max-width: 16ch; margin-bottom: 1.4rem; }
.contatti-direct { margin-top: 2.2rem; }
.contatti-lines { margin-top: 2rem; display: grid; gap: 1rem; }
.contatti-lines p { display: grid; gap: .2rem; }
.c-lab { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); }
.contatti-lines a, .contatti-lines p > span:last-child { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); }
.contatti-lines a:hover { color: var(--gold-2); }

/* form */
.preventivo {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; align-content: start;
}
.form-title { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: .3rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 3px; color: var(--cream); font: inherit; font-size: .95rem;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--bg-2); }
.field input::placeholder, .field textarea::placeholder { color: #5f574a; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c49a5b' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }

.preventivo .btn-primary { margin-top: .4rem; position: relative; overflow: hidden; }
.btn-check { position: absolute; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s var(--ease-out); }
.btn-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.preventivo.is-sent .btn-label { opacity: 0; }
.preventivo.is-sent .btn-check { opacity: 1; transform: scale(1); animation: drawCheck .6s .1s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form-note { font-size: .82rem; color: var(--cream-3); }
.preventivo.is-sent .form-note { color: var(--gold-2); }

/* ============================ FOOTER ============================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vh, 5rem) 2rem; }
.footer-inner { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand { text-align: center; }
.footer-logo { font-family: var(--serif); font-size: 1.8rem; color: var(--cream); }
.footer-logo img { height: 88px; width: auto; margin: 0 auto; }
.footer-tag { color: var(--cream-3); font-size: .9rem; margin-top: .3rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.footer-nav a { font-size: .9rem; color: var(--cream-2); }
.footer-nav a:hover { color: var(--gold-2); }
.footer-contact { display: grid; gap: .5rem; }
.footer-contact a { color: var(--cream); font-size: .95rem; }
.footer-contact a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.6rem; }
.footer-bottom p, .footer-credits { font-size: .8rem; color: var(--cream-3); }
.footer-credits a { color: var(--gold-2); }

/* ============================ 10. EFFECTS (reveal / tilt) ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* DEFENSIVE: split-text elements must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

.split-word { display: inline-block; }
[data-split] .split-word { opacity: 0; transform: translateY(0.5em); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-split].is-visible .split-word { opacity: 1; transform: none; }

/* ============================ 11. RESPONSIVE ============================ */
@media (min-width: 720px) {
  .intro-grid { grid-template-columns: 180px 1fr; }
  .materiali-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2rem,5vw,4rem); }
  .realiz-grid { grid-template-columns: 1fr 1fr; }
  .realiz-lg { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr; }
  .realiz-lg .realiz-media { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .realiz-reverse { grid-template-columns: 1fr 1.15fr; }
  .realiz-reverse .realiz-text { order: -1; }
  .acqua-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
  .footer-nav { grid-template-columns: 1fr; }
  .contatti-inner { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-primary { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-drawer { display: none; }
  .perche-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 4rem; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .contatti-inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

@media (min-width: 1280px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================ 12. REDUCED MOTION (intrusive only) ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .hero-scroll span { animation: none; }
  .marquee-track { animation-duration: 90s; }
}
