/* =========================================================
   Fabrizio Delogu — Ristrutturazioni Edili FMD — nero+oro
   Foglio di stile unico. CSS custom puro, zero framework.
   ========================================================= */

:root {
  /* palette brand — nero + oro (dal logo FMD) */
  --brand:        #141414;   /* nero carbone */
  --brand-dark:   #0b0b0b;
  --brand-soft:   #232019;
  --accent:       #C9A24B;   /* oro caldo — riservato alle CTA/accenti */
  --accent-dark:  #9c7c2e;

  --ink:   #1a1a1a;          /* titoli */
  --text:  #3a3a3a;          /* corpo */
  --muted: #6f6f6f;          /* testo secondario */

  --bg:      #ffffff;
  --bg-alt:  #f6f3ec;        /* off-white caldo */
  --bg-dark: #141414;
  --line:    #e7e1d3;

  /* tipografia */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* sistema */
  --shadow-sm: 0 1px 3px rgba(20,20,20,.06), 0 1px 2px rgba(20,20,20,.04);
  --shadow-md: 0 10px 30px rgba(20,20,20,.08);
  --shadow-lg: 0 30px 60px rgba(20,20,20,.14);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- reset leggero ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { color: var(--text); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.4rem);
}
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: #dcd6c9;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #bdb6a8; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-head.center .eyebrow { justify-content: center; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(201,162,75,.32);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,162,75,.4); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.6px var(--line);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.6px var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.section-dark .btn-outline,
.hero .btn-outline,
.page-hero .btn-outline,
.cta-band .btn-outline { color: #fff; box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.28); }
.section-dark .btn-outline:hover,
.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.cta-band .btn-outline:hover { box-shadow: inset 0 0 0 1.6px var(--accent); color: var(--accent); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.nav-brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: .95rem; font-weight: 700;
  letter-spacing: .02em;
}
.nav-brand .mark span { transform: translateY(-1px); }
.nav-links { display: flex; align-items: center; gap: .4rem; }
.nav-links > li > a {
  padding: .55rem .9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .96rem;
  color: var(--text);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links > li > a:hover { color: var(--ink); background: rgba(20,20,20,.05); }
.nav-links a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; }
.nav-cta { margin-left: .5rem; }
.nav-cta.btn { padding: .62rem 1.3rem; }
.nav-cta.btn:hover { color: var(--brand-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(201,162,75,.14), transparent 60%),
    linear-gradient(180deg, #141414 0%, #1c1c1c 100%);
  color: #e7ecf3;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero .container { position: relative; z-index: 2; max-width: 900px; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: #c4bdae; max-width: 56ch; margin-top: 1.4rem; font-size: clamp(1.08rem,1.7vw,1.32rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 3.4rem);
  margin-top: 3.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stats .stat-num span { color: var(--accent); }
.hero-stats .stat-lab { color: #9a9384; font-size: .9rem; margin-top: .4rem; }

/* ---------- page hero (interne) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(2.4rem, 6vw, 4rem)) 0 clamp(2.4rem, 6vw, 3.6rem);
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(201,162,75,.13), transparent 60%),
    linear-gradient(180deg, #141414, #1c1c1c);
  color: #fff;
}
.page-hero h1 { color: #fff; margin-top: .6rem; max-width: 20ch; }
.page-hero .lead { color: #c4bdae; margin-top: 1rem; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: #948d7e; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; color: #948d7e; }
.breadcrumb a { color: #c4bdae; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: #6a6456; }
.breadcrumb [aria-current="page"] { color: var(--accent); }

/* ---------- grid utilities ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- card ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddd5c6; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(150deg, #232019, #141414);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* card servizio con numero */
.service-card { position: relative; overflow: hidden; }
.service-card .num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  color: var(--bg-alt);
  position: absolute; top: .6rem; right: 1.2rem;
  line-height: 1;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-list { margin-top: 1rem; display: grid; gap: .55rem; }
.service-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--text); }
.service-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px; margin-top: .18rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, #232019, #141414);
  position: relative;
}
.split-media.portrait { display: grid; place-items: center; }
.split-body h2 { margin-bottom: 1rem; }
.split-body p + p { margin-top: 1rem; }
.tick-list { margin-top: 1.4rem; display: grid; gap: .7rem; }
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; }
.tick-list li svg { flex: none; width: 22px; height: 22px; color: var(--accent-dark); margin-top: .15rem; }

/* portrait placeholder monogram */
.portrait-mark {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(201,162,75,.9);
  font-size: clamp(4rem, 10vw, 7rem);
  letter-spacing: -0.03em;
}
.portrait-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(0deg, rgba(8,20,38,.9), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.portrait-tag small { display: block; color: var(--accent); font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- numeri / stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; text-align: center; }
.stats-band .stat-num { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 700; color: #fff; line-height: 1; }
.stats-band .stat-num span { color: var(--accent); }
.stats-band .stat-lab { color: #9a9384; margin-top: .5rem; font-size: .92rem; }

/* ---------- testimonianze ---------- */
.quote-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.quote-card .stars { color: var(--accent); letter-spacing: 2px; font-size: .95rem; }
.quote-card blockquote { font-size: 1.05rem; color: var(--ink); line-height: 1.6; font-family: var(--font-body); }
.quote-card .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(150deg,#232019,#141414);
  color: var(--accent); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.quote-card .who strong { display: block; color: var(--ink); font-size: .96rem; }
.quote-card .who span { color: var(--muted); font-size: .85rem; }

/* ---------- blog card ---------- */
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/9; background: linear-gradient(150deg,#232019,#141414); position: relative; display: grid; place-items: center; }
.post-thumb .glyph { color: rgba(201,162,75,.85); }
.post-card .post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card .read { margin-top: auto; color: var(--accent-dark); font-weight: 600; font-family: var(--font-display); font-size: .92rem; }

/* ---------- CTA banner ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(135deg, #141414, #232019);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 1rem; }
.cta-band p { color: #c4bdae; max-width: 52ch; margin: 0 auto 1.8rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: start; }
.contact-info { display: grid; gap: 1.1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.contact-item .ci-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--brand); color: var(--accent); display: grid; place-items: center; }
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item h4 { margin-bottom: .15rem; }
.contact-item a, .contact-item p { color: var(--muted); font-size: .96rem; }
.contact-item a:hover { color: var(--accent-dark); }

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .45rem; font-family: var(--font-display); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font: inherit;
  color: var(--ink);
  background: #fcfbf8;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,75,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.field-check input { width: auto; margin-top: .25rem; accent-color: var(--accent-dark); }
.field-check a { color: var(--accent-dark); text-decoration: underline; }
.form-status { margin-top: .9rem; font-size: .92rem; color: var(--accent-dark); min-height: 1.2em; font-weight: 500; }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left;
  padding: 1.1rem 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq-q .ico { flex: none; width: 22px; height: 22px; position: relative; transition: transform .3s var(--ease); }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--accent-dark); transform: translateY(-50%); }
.faq-q .ico::after { transform: translateY(-50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item.is-open .faq-q .ico::after { transform: translateY(-50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .97rem; }

/* ---------- article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article p { margin-bottom: 1.15rem; line-height: 1.75; }
.article h2 { margin: 2.4rem 0 1rem; }
.article h3 { margin: 1.8rem 0 .7rem; }
.article ul.dot { margin: 0 0 1.15rem; display: grid; gap: .5rem; }
.article ul.dot li { padding-left: 1.4rem; position: relative; }
.article ul.dot li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.article .callout {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6rem 0;
}
.article .callout p { margin: 0; color: var(--ink); }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* legal pages */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { margin: 2rem 0 .8rem; font-size: 1.5rem; }
.legal h3 { margin: 1.4rem 0 .5rem; font-size: 1.15rem; }
.legal p, .legal li { color: var(--text); margin-bottom: .7rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal ul li { margin-bottom: .4rem; }
.legal a { color: var(--accent-dark); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-dark); color: #b0a998; padding-top: clamp(3rem,6vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.6rem,3vw,2.6rem); padding-bottom: 2.6rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; margin-bottom: .8rem; display: inline-flex; gap: .6rem; align-items: center; }
.footer-brand .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); color: var(--accent); display: grid; place-items: center; font-size: .9rem; }
.footer-col p { color: #9a9385; font-size: .92rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col ul a, .footer-col ul li { color: #9a9385; font-size: .93rem; transition: color .2s var(--ease); }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #7c766a;
}
.footer-bottom a { color: #9a9385; }
.footer-bottom a:hover { color: var(--accent); }
.footer-credit a { color: var(--accent); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: #fff;
    padding: 1rem clamp(1.2rem,4vw,2rem) 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links > li > a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--bg-alt); }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta.btn { padding: .85rem 1.3rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16/11; max-height: 420px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- brand logo header ---------- */
.brand-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--font-body); font-weight: 600; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-dark); margin-top: 3px; }

/* ---------- immagini in split e card ---------- */
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 1.3rem; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .thumb img { transform: scale(1.05); }

/* ---------- galleria lavori ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: .9rem; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1; }
.gallery figure.tall { grid-row: span 2; aspect-ratio: 1 / 2.06; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem .8rem; font-size: .82rem; color: #fff; font-weight: 600;
  font-family: var(--font-display);
  background: linear-gradient(0deg, rgba(11,11,11,.8), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.tall { grid-row: auto; aspect-ratio: 1; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
}
