/* ==========================================================
   2M EDILIMPIANTI S.R.L. — Stylesheet
   Design system: tema chiaro enterprise, bianco + blu + ambra
   (colori del logo), tipografia Sora / Inter, linee sottili
   "blueprint", dettagli tecnici, zero cliché da cantiere.
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-deep: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --line: rgba(15, 35, 65, .13);
  --line-soft: rgba(15, 35, 65, .07);
  --grid-line: rgba(20, 70, 130, .055);
  --text: #131c29;
  --text-soft: #35435a;
  --muted: #5a6b80;
  --accent: #b5720c;
  --accent-strong: #8a5709;
  --accent-fill: #f5a51e;
  --accent-fill-hover: #ec9410;
  --accent-btn: #a8680b;
  --accent-ink: #2a1a02;
  --accent-soft: rgba(245, 165, 30, .13);
  --blue: #4f8ada;
  --blue-deep: #2f5ea3;
  --blue-soft: rgba(79, 138, 218, .13);
  --whatsapp: #25d366;
  --whatsapp-deep: #12a150;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 2px 6px rgba(15, 35, 65, .06);
  --shadow: 0 24px 55px -20px rgba(15, 35, 65, .28);
  --shadow-soft: 0 18px 40px -24px rgba(15, 35, 65, .35);
  --container: 1180px;
  --font-display: "Sora", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-fill); color: var(--accent-ink); }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--text);
}
h1, h2 { font-weight: 700; }

h1 { font-size: clamp(2.5rem, 5vw, 3.85rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.26rem; letter-spacing: -.015em; }

p { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Micro-label / eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .76rem;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-fill), rgba(245, 165, 30, .25));
}

.section-head { max-width: 720px; margin-bottom: 62px; }
.section-head p { margin-top: 18px; font-size: 1.07rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Bottoni — stile Material Design 3 (filled / outlined) ----------
   Forma a pillola, superficie piatta, nessuna ombra pesante: la reazione
   all'interazione è affidata a un sottile "state layer" (overlay tonale)
   come da linee guida MD3. ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .22s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .08s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { flex-shrink: 0; }

/* Il colore del testo dei bottoni resta identico in ogni stato
   (evita che la regola generica a:hover lo faccia virare all'ambra). */

/* Filled — azione principale (ambra profonda + testo bianco: contrasto morbido) */
.btn-primary, .btn-primary:hover, .btn-primary:active { color: #fff; }
.btn-primary { background: var(--accent-btn); }
.btn-primary:hover { box-shadow: inset 0 0 0 200px rgba(255, 255, 255, .1), 0 1px 2px rgba(15, 35, 65, .16); }
.btn-primary:active { box-shadow: inset 0 0 0 200px rgba(255, 255, 255, .16); }

/* Outlined — azione secondaria */
.btn-outline, .btn-outline:hover, .btn-outline:active { color: var(--accent-strong); }
.btn-outline { background: transparent; border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); box-shadow: inset 0 0 0 200px rgba(181, 114, 12, .05); }
.btn-outline:active { box-shadow: inset 0 0 0 200px rgba(181, 114, 12, .1); }

/* Filled — WhatsApp */
.btn-whatsapp, .btn-whatsapp:hover, .btn-whatsapp:active { color: #fff; }
.btn-whatsapp { background: #21b45a; }
.btn-whatsapp:hover { box-shadow: inset 0 0 0 200px rgba(255, 255, 255, .12), 0 1px 2px rgba(15, 35, 65, .13); }
.btn-whatsapp:active { box-shadow: inset 0 0 0 200px rgba(255, 255, 255, .2); }
.btn-whatsapp svg { width: 18px; height: 18px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
  font-size: .82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  padding: 6px 0;
}
.topbar span, .topbar a { color: var(--muted); }
.topbar a { transition: color .2s var(--ease); }
.topbar a:hover { color: var(--accent); }
.topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar-links a { font-weight: 500; letter-spacing: .01em; }

/* icona WhatsApp inline (topbar / footer) */
.ico-wa { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 10px 30px -12px rgba(15, 35, 65, .18);
  background: rgba(255, 255, 255, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 76px; width: auto; display: block; }

.main-nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }

.main-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  border-radius: 9px;
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:not(.btn):hover { background: rgba(15, 35, 65, .04); }
.main-nav > ul > li > a.active { color: var(--text); }
.main-nav > ul > li > a.active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 5px;
  height: 2px;
  background: var(--accent-fill);
  border-radius: 2px;
}

.nav-cta { margin-left: 16px; }
.nav-cta .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; min-height: 38px; font-size: .88rem; border-radius: 100px; }
/* Il colore dei link di menu non deve sovrascrivere quello dei bottoni */
.main-nav .nav-cta a, .main-nav .nav-cta a:hover { color: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; font-size: .7em; margin-left: 6px; opacity: .6; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 8px;
  min-width: 384px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(15, 35, 65, .03) inset;
  list-style: none;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 36px;
  width: 11px;
  height: 11px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-label {
  padding: 6px 14px 12px;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}

.dropdown a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
}
.dropdown a:hover { background: var(--surface-2); color: var(--text); }
.dropdown a:hover strong { color: var(--accent); }
.dropdown a:hover .dd-icon { border-color: rgba(245, 165, 30, .5); transform: translateY(-1px); }

.dd-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 165, 30, .04));
  border: 1px solid rgba(245, 165, 30, .22);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.dropdown strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  transition: color .18s var(--ease);
}
.dropdown small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
  margin-top: 3px;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  line-height: 0;
  cursor: pointer;
  padding: 9px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(245, 165, 30, .5); background: var(--accent-soft); }
.nav-toggle svg { display: block; }

/* ---------- Sfondo blueprint ---------- */
.blueprint {
  position: relative;
  background-color: #fbfcfe;
  overflow: hidden;
}
/* Trama tecnica da disegno di cantiere (monocromatica, sfumata: "enterprise"):
   crocini di riferimento CAD + tratteggio diagonale + tratteggio incrociato
   piu rado per profondita. */
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* linea piu marcata ogni 5 (ritmo da scala tecnica) */
    repeating-linear-gradient(135deg, rgba(28, 58, 100, .07) 0, rgba(28, 58, 100, .07) 1px, transparent 1px, transparent 65px),
    /* tratteggio fine */
    repeating-linear-gradient(135deg, rgba(28, 58, 100, .038) 0, rgba(28, 58, 100, .038) 1px, transparent 1px, transparent 13px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 68%);
  mask-image: linear-gradient(180deg, #000, transparent 68%);
  pointer-events: none;
}
.blueprint > * { position: relative; z-index: 1; }

/* ---------- Hero (home) ---------- */
.hero { padding: 100px 0 112px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .9fr;
  gap: 70px;
  align-items: center;
}

.hero h1 { margin: 0 0 24px; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .05em;
  height: .12em;
  background: linear-gradient(90deg, rgba(245, 165, 30, .32) 0%, rgba(245, 165, 30, .08) 55%, transparent 100%);
  border-radius: 3px;
  filter: blur(.3px);
  z-index: -1;
}

.hero .lead { font-size: 1.15rem; max-width: 552px; margin-bottom: 38px; color: var(--text-soft); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.trust-row li:hover {
  border-color: rgba(245, 165, 30, .38);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.trust-row .tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 165, 30, .04));
  border: 1px solid rgba(245, 165, 30, .28);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-row .tick svg { display: block; }

/* Colonna visuale con cornice architettonica */
.hero-visual { position: relative; }
.hero-visual .visual-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1.5px solid rgba(245, 165, 30, .38);
  border-radius: var(--radius);
  pointer-events: none;
}
.hero-visual .img-ph { aspect-ratio: 4 / 4.6; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }

.float-card {
  position: absolute;
  left: -30px;
  bottom: 34px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 300px;
  z-index: 2;
}
.float-card .icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 165, 30, .04));
  border: 1px solid rgba(245, 165, 30, .2);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card strong { font-family: var(--font-display); font-size: .98rem; display: block; font-weight: 600; }
.float-card span { color: var(--muted); font-size: .84rem; }

/* ---------- Marquee servizi ---------- */
.marquee {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: .7rem; letter-spacing: 0; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  padding: 90px 0 78px;
  border-bottom: 1px solid var(--line-soft);
  background-color: #fbfcfe;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(28, 58, 100, .07) 0, rgba(28, 58, 100, .07) 1px, transparent 1px, transparent 65px),
    repeating-linear-gradient(135deg, rgba(28, 58, 100, .038) 0, rgba(28, 58, 100, .038) 1px, transparent 1px, transparent 13px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); }
.page-hero h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-fill), rgba(245, 165, 30, .3));
  margin-top: 22px;
}
.page-hero .lead { font-size: 1.1rem; margin-top: 22px; max-width: 640px; color: var(--text-soft); }

.breadcrumb {
  font-size: .74rem;
  color: var(--muted);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 26px; }
.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 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-fill), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 165, 30, .4);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}
.card:hover::before { transform: scaleX(1); }

.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 165, 30, .03));
  border: 1px solid rgba(245, 165, 30, .22);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: transform .3s var(--ease);
}
.card:hover .icon { transform: translateY(-2px) scale(1.03); }

/* Icone centrate nelle card servizi della home page */
#servizi .card .icon { margin-left: auto; margin-right: auto; }

.card h3 { margin-bottom: 12px; }
.card p { font-size: .96rem; flex-grow: 1; }

.card .card-link {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .card-link::after { content: "→"; transition: transform .25s var(--ease); }
.card:hover .card-link::after { transform: translateX(5px); }

/* ---------- Liste con spunte ---------- */
.check-list { list-style: none; display: grid; gap: 15px; }
.check-list li { display: flex; gap: 15px; align-items: flex-start; color: var(--muted); font-size: .98rem; }
.check-list li strong { color: var(--text); font-weight: 600; }
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 165, 30, .04));
  border: 1px solid rgba(245, 165, 30, .24);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b5720c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 3px;
}

/* ---------- Split testo/immagine ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > *:first-child { order: 2; }

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

.split > .img-frame { overflow: visible; }
.split > .img-frame::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1.5px solid rgba(245, 165, 30, .32);
  border-radius: var(--radius);
  pointer-events: none;
}
.split > .img-frame > * { border-radius: var(--radius); overflow: hidden; }

.img-ph {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(24rem 16rem at 70% 20%, rgba(245, 165, 30, .1), transparent 60%),
    linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 60%, #e5eaf2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  text-align: center;
  padding: 20px;
  position: relative;
}
.img-ph::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  pointer-events: none;
}

/* ---------- Statistiche ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 8px 34px; border-left: 2px solid var(--line); }
.stat:first-child { border-left-color: var(--accent-fill); }
.stat:nth-child(3) { border-left-color: var(--blue); }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--text);
}
.stat .label {
  margin-top: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 600;
}

/* ---------- Step numerati ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  counter-increment: step;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: rgba(245, 165, 30, .35); box-shadow: var(--shadow-soft); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -.03em;
  display: block;
  line-height: 1;
  margin-bottom: 18px;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(245, 165, 30, .8);
}
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { font-size: .92rem; }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-item:hover { transform: translateY(-5px); border-color: rgba(245, 165, 30, .4); box-shadow: var(--shadow-soft); }
.gallery-item .img-ph { aspect-ratio: 1 / 1; }
.gallery-item img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 20px 16px;
  background: linear-gradient(transparent, rgba(5, 8, 12, .94));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.005em;
}

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .88rem;
  transition: all .22s var(--ease);
}
.filter-btn:hover { border-color: var(--accent-fill); color: var(--accent); background: var(--accent-soft); }
.filter-btn.active { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -8px rgba(168, 104, 11, .5); }

/* ---------- FAQ (accordion) ---------- */
.faq { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.faq-item[open] { border-color: rgba(245, 165, 30, .42); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: -.01em;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .28s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--accent-strong); }
.faq-body { padding: 0 26px 22px; }
.faq-body p { font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0; background: transparent; border: none; }
.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
  background:
    radial-gradient(38rem 22rem at 0% 0%, rgba(245, 165, 30, .18), transparent 62%),
    radial-gradient(32rem 20rem at 100% 100%, rgba(79, 138, 218, .12), transparent 65%),
    var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 60px;
  margin: 104px auto;
  max-width: var(--container);
  position: relative;
  overflow: hidden;
}
.cta-band .inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-fill), transparent 60%);
}
.cta-band h2 { max-width: 560px; }
.cta-band p { margin-top: 12px; max-width: 520px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contatti ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: start; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-fill), transparent 60%);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 16px;
  font-family: inherit;
  font-size: .98rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: #9aa7b6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(245, 165, 30, .15);
}
textarea { resize: vertical; min-height: 132px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

.form-note { font-size: .82rem; margin-top: 16px; }

.contact-cards { display: grid; gap: 18px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { border-color: rgba(245, 165, 30, .35); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.contact-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 165, 30, .03));
  border: 1px solid rgba(245, 165, 30, .22);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 5px; }
.contact-card p { font-size: .93rem; }
.contact-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: 78px 0 0;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-grid h4 {
  font-size: .76rem;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-body);
}

.footer-grid ul { list-style: none; display: grid; gap: 11px; }
.footer-grid li { color: var(--muted); }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { font-size: .9rem; margin-top: 4px; }

.footer-about .logo { margin-bottom: 18px; }
.footer-about .logo img { height: 68px; }

.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .8rem;
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }

/* ---------- WhatsApp flottante ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ee06f, #12a150);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(18, 161, 80, .6);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, .5);
  z-index: -1;
  animation: waPulse 2.6s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 32px -8px rgba(18, 161, 80, .72); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@keyframes waPulse {
  0% { transform: scale(1); opacity: .6; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > *:first-child { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .hero-visual { max-width: 560px; }
  .hero-visual .img-ph, .hero-visual img { aspect-ratio: 16 / 10; }
  .topbar-inner { justify-content: center; }
  .topbar-inner > span:first-child { display: none; }
}

@media (max-width: 760px) {
  section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 76px; }
  .cta-band .inner { padding: 44px 30px; margin: 68px 28px; flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .stat { padding: 4px 22px; }
  .float-card { left: 12px; bottom: 16px; }
  .hero-visual::before { display: none; }
  .split > .img-frame::before { display: none; }
  .topbar { display: none; }
  .hero h1 em { white-space: normal; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 94px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 28px 30px;
    display: none;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 94px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 10px; font-size: 1.05rem; }
  .main-nav > ul > li > a.active::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 12px;
    display: none;
    min-width: 0;
  }
  .dropdown::before { display: none; }
  .dropdown-label { display: none; }
  .has-dropdown.open .dropdown { display: block; }
}
