:root {
  --ink: #121413;
  --panel: #1b1f1e;
  --paper: #f6f3ec;
  --muted: #6b6f6b;
  --line: rgba(18, 20, 19, 0.14);
  --gold: #d8b56d;
  --gold-soft: #f0dfb7;
  --white: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}
.brand img {
  width: 86px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}
.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
}
.nav a,
.header-call {
  text-decoration: none;
  font-weight: 700;
}
.nav a[aria-current="page"] { color: #8d6a1f; }
.header-call {
  padding: 11px 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 8vw, 86px) clamp(20px, 6vw, 78px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.96), rgba(12, 14, 13, 0.76) 46%, rgba(12, 14, 13, 0.42)),
    radial-gradient(circle at 78% 28%, rgba(216, 181, 109, 0.22), transparent 34%),
    #0d0f0e;
}
.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(216, 181, 109, 0.16) 44% 45%, transparent 45% 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,0.05) 47px 48px),
    url("../images/logo-funky-impianti.jpg");
  background-repeat: no-repeat;
  background-size: auto, auto, min(44vw, 540px);
  background-position: center, center, right 7vw center;
  opacity: 0.38;
}
.hero-content {
  position: relative;
  max-width: 720px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}
h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}
h3 { font-size: 1.14rem; }
.hero-lead {
  max-width: 620px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.88);
}
.hero-actions,
.final-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid currentColor;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  color: #15130e;
  background: var(--gold);
  border-color: var(--gold);
}
.btn.secondary {
  color: var(--white);
  background: transparent;
}
.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin-top: 28px;
}
.hero-summary span {
  min-height: 58px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 6vw, 78px);
}
.intro,
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}
.section-heading { max-width: 860px; }
.text-column {
  font-size: 1.08rem;
  color: #343833;
}
.services-band {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 6vw, 78px);
  background: var(--panel);
  color: var(--white);
}
.services-band.compact { padding-top: 74px; padding-bottom: 74px; }
.light h2 { color: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
}
.service-grid article {
  min-height: 250px;
  padding: 28px;
  background: var(--panel);
}
.service-grid span,
.steps strong {
  display: inline-flex;
  width: 38px;
  height: 38px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #17130b;
  font-weight: 900;
}
.service-grid p { color: rgba(255,255,255,0.76); }

.process { background: #fffaf0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.steps div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.54);
}
.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(54px, 7vw, 96px) clamp(20px, 6vw, 78px);
  background: #151716;
  color: var(--white);
}
.trust p:last-child {
  color: rgba(255,255,255,0.76);
  font-size: 1.08rem;
}
.request-section { background: var(--paper); }
.quick-request {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin-top: 30px;
}
.quick-request label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.quick-request label:has(textarea),
.quick-request button,
.contact-request h2 { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
  background: var(--white);
}
textarea { resize: vertical; }
.request-alt { margin-top: 16px; color: var(--muted); }
.request-alt a { font-weight: 800; }
.faq { background: #fffaf0; }
.faq-list {
  max-width: 920px;
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.62);
}
summary {
  font-weight: 900;
  cursor: pointer;
}
details p { margin: 12px 0 0; color: #41453f; }
.final-cta {
  display: grid;
  justify-items: start;
  padding: clamp(56px, 8vw, 94px) clamp(20px, 6vw, 78px);
  background: var(--ink);
  color: var(--white);
}
.final-cta h2 { max-width: 840px; }

.page-hero {
  padding: clamp(64px, 10vw, 128px) clamp(20px, 6vw, 78px) clamp(42px, 6vw, 86px);
  background: #111312;
  color: var(--white);
}
.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
}
.page-hero p:last-child {
  max-width: 720px;
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
}
.service-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  padding: 1px;
  margin: clamp(44px, 7vw, 80px) clamp(20px, 6vw, 78px);
}
.service-detail article {
  padding: clamp(28px, 5vw, 52px);
  background: var(--paper);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
}
.contact-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: #fffaf0;
  border: 1px solid var(--line);
}
.contact-panel a { font-weight: 800; }
.muted { color: var(--muted); }

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(210px, 0.8fr) auto;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 78px);
  background: #080908;
  color: var(--white);
}
.footer p { margin: 4px 0; color: rgba(255,255,255,0.72); }
.footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  text-decoration: none;
}

.reveal {
  animation: riseIn 700ms ease both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 68px;
  }
  .brand img { width: 68px; height: 38px; }
  .header-call { display: none; }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: var(--radius);
    border: 1px solid var(--ink);
    background: transparent;
    font-weight: 900;
  }
  .nav {
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
    padding-top: 8px;
  }
  .nav.is-open {
    display: grid;
    gap: 8px;
  }
  .nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .hero {
    min-height: auto;
    padding: 34px 18px 32px;
  }
  .hero-visual {
    background-size: auto, auto, 310px;
    background-position: center, center, right -86px top 34px;
    opacity: 0.32;
  }
  h1 {
    font-size: clamp(2.45rem, 13vw, 4.1rem);
    line-height: 0.96;
    margin-bottom: 16px;
  }
  h2 { font-size: clamp(1.85rem, 8vw, 3rem); }
  .hero-lead { font-size: 1.02rem; }
  .hero-actions .btn { width: 100%; }
  .hero-summary {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .hero-summary span {
    min-height: 44px;
    padding: 10px 12px;
  }
  .intro,
  .story,
  .trust,
  .contact-layout,
  .footer {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .steps,
  .quick-request,
  .service-detail {
    grid-template-columns: 1fr;
  }
  .service-detail {
    margin: 34px 18px;
  }
  .section,
  .services-band,
  .page-hero,
  .final-cta {
    padding-left: 18px;
    padding-right: 18px;
  }
  .service-grid article { min-height: 0; }
}
