/* ╭───────────────────────────────────────────────────────────╮
   │ Ecotoni srl — shared design system                        │
   │ Type · color · spacing · components for all pages         │
   ╰───────────────────────────────────────────────────────────╯ */

:root {
  /* Palette */
  --ink: #0d1411;
  --paper: #ffffff;
  --cream: #f5f1ea;
  --cream-line: #e6dfd0;
  --line: #e6e2da;
  --muted: #6f7470;
  --muted-soft: #9a9e98;
  --primary: #1f4d3a;
  --primary-soft: #d6e0d9;
  --accent: #c89568;
  --dark: #0d1411;
  --dark-soft: #1a221e;
  --dark-muted: #8a948e;

  /* Type */
  --f-display: "Inter Tight", "Inter", "Helvetica Neue", sans-serif;
  --f-sans: "Inter", "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", monospace;

  /* Motion */
  --ease-out: cubic-bezier(.2, .65, .25, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Layout helpers ─────────────────────────────────────── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 40px; }

/* ── Typography ─────────────────────────────────────────── */
.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.kicker.on-dark { color: var(--dark-muted); }
.kicker.accent { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.8vw, 54px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.lead.on-dark { color: var(--dark-muted); }

/* Highlight word inside display heading */
.display em { font-style: normal; color: var(--primary); font-weight: inherit; }
.display.on-dark em { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: 999px;
  transition: all .35s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(31, 77, 58, .5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(255,255,255,0.18); }
.btn-ghost.on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ── Nav (shared) ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.logo-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links > a, .nav-links > .has-menu {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease-out);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:not(.dd-item)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:not(.dd-item):hover::after { transform: scaleX(1); }
.nav-links a.current { color: var(--primary); font-weight: 500; }
.nav-links a.current::after { transform: scaleX(1); background: var(--primary); }
.nav-links .caret { font-size: 8px; opacity: 0.5; transition: transform .25s; }
.nav-links .has-menu:hover .caret { transform: rotate(180deg); }

/* Dropdown for Servizi */
.dd {
  position: relative;
}
/* Ponte invisibile per non perdere l'hover passando dal trigger al panel */
.dd::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px; right: -10px;
  height: 18px;
  display: none;
}
.dd:hover::after, .dd:focus-within::after { display: block; }
.dd-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-width: 280px;
  box-shadow: 0 24px 60px -20px rgba(13, 20, 17, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.dd:hover .dd-panel, .dd:focus-within .dd-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dd-item {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 5px;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.dd-item:hover { background: var(--cream); color: var(--primary); }
.dd-item .lbl { display: block; font-weight: 500; }
.dd-item .desc { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: all .35s var(--ease-out);
  flex-shrink: 0;
}
.nav-phone:hover { background: var(--primary); }
.nav-phone .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #5dd28b;
  box-shadow: 0 0 0 0 rgba(93, 210, 139, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 210, 139, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(93, 210, 139, 0); }
}

/* ── Page header (inner pages) ──────────────────────────── */
.pagehead {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
}
.pagehead .crumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.pagehead .crumb a { color: var(--muted); text-decoration: none; }
.pagehead .crumb a:hover { color: var(--ink); }
.pagehead .crumb .sep { margin: 0 8px; opacity: 0.5; }
.pagehead .crumb .here { color: var(--ink); }
.pagehead-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
}
.pagehead h1 { max-width: 16ch; }
.pagehead .pagelead { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 50ch; padding-bottom: 8px; }

/* ── Image helpers ──────────────────────────────────────── */
.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,20,17,0.0) 0%, rgba(13,20,17,0.25) 50%, rgba(13,20,17,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Hero (homepage) ────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-top: 22px; max-width: 14ch; }
.hero-lead { margin-top: 24px; max-width: 50ch; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-meta .item {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--muted);
}
.hero-meta .item svg { color: var(--primary); flex-shrink: 0; }
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #2a3933 0%, #1a221e 55%, #0d1411 100%);
}
.hero-visual > * { position: relative; z-index: 2; }
.hero-visual::before, .hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.hero-visual::before {
  background: radial-gradient(120% 90% at 70% 30%, rgba(200,149,104,0.16), transparent 60%);
}
.hero-visual::after {
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 24px);
}
.hero-tag {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hero-badge {
  position: absolute;
  top: 28px; left: 28px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-card {
  position: absolute;
  bottom: -36px; left: -36px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 26px;
  border-radius: 6px;
  box-shadow: 0 24px 60px -20px rgba(13, 20, 17, 0.18);
  max-width: 260px;
  z-index: 5;
}
.hero-card .num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.04em;
}
.hero-card .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Stats strip ────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 4px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(52px, 5.6vw, 78px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.stat .num .suffix { color: var(--primary); }
.stat .lbl { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 22ch; }

/* ── Section base ───────────────────────────────────────── */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head .right { padding-bottom: 6px; }
.section-head h2 { margin-top: 18px; }

/* ── Servizi cards ──────────────────────────────────────── */
.servizi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.servizio {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px 32px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all .5s var(--ease-out);
  text-decoration: none;
  color: var(--ink);
}
.servizio::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--primary) 200%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.servizio:hover { transform: translateY(-4px); border-color: var(--ink); }
.servizio:hover::before { opacity: 0.06; }
.servizio-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
  transition: transform .5s var(--ease-out);
}
.servizio:hover .servizio-icon { transform: scale(1.08) rotate(-3deg); }
.servizio h3 { margin-bottom: 0; }
.servizio p { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.servizio .more {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  margin-top: 28px;
}
.servizio .more .arrow { transition: transform .35s var(--ease-out); }
.servizio:hover .more .arrow { transform: translateX(4px); }

/* ── Materiali tabs + grid ──────────────────────────────── */
.materiali-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--cream);
  border-radius: 999px;
  margin-bottom: 36px;
}
.materiali-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .35s var(--ease-out);
  border: none;
  background: transparent;
  font-family: var(--f-sans);
}
.materiali-tab.active { background: var(--ink); color: var(--paper); }
.materiali-panel { display: none; animation: panel-in .5s var(--ease-out); }
.materiali-panel.active { display: grid; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.materiali-list {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.materiale {
  background: var(--paper);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .35s var(--ease-out);
  cursor: default;
  position: relative;
}
.materiale:hover { background: var(--cream); }
.materiale .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.45;
  transition: opacity .3s, transform .3s;
}
.materiale:hover .dot { opacity: 1; transform: scale(1.4); }
.materiale .name {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 22px;
  line-height: 1.15;
}
.materiale .desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Dark sustainability / proof ────────────────────────── */
.dark {
  background: var(--dark);
  color: var(--paper);
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.dark::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(31, 77, 58, 0.55), transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}
.dark h2 { color: var(--paper); }
.dark .lead { color: var(--dark-muted); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; }
.proof-list { display: flex; flex-direction: column; }
.proof-item {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 22px;
  align-items: start;
  transition: padding-left .4s var(--ease-out);
}
.proof-item:hover { padding-left: 8px; }
.proof-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.proof-item .ico {
  color: var(--accent);
  padding-top: 4px;
}
.proof-item h3 { color: var(--paper); font-size: 21px; }
.proof-item p { color: var(--dark-muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }
.proof-quote {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.2;
  color: var(--paper);
  max-width: 22ch;
  letter-spacing: -0.02em;
}

/* ── Sedi cards ─────────────────────────────────────────── */
.sedi-bg { background: var(--cream); border-top: 1px solid var(--cream-line); border-bottom: 1px solid var(--cream-line); }
.sedi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sede {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--cream-line);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.sede:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -28px rgba(13, 20, 17, 0.22); }
.sede-photo {
  aspect-ratio: 16 / 9;
  background: radial-gradient(80% 80% at 50% 30%, #3a4640 0%, #1c2520 100%);
  position: relative;
  overflow: hidden;
}
.sede-photo > .tag { position: relative; z-index: 3; }
.sede-photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 9px);
}
.sede-photo .tag {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper);
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  text-transform: uppercase;
}
.sede-body { padding: 32px 32px 36px; }
.sede h3 { font-size: 30px; }
.sede .role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.sede-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.sede-meta dt {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.sede-meta dd { margin: 0; font-size: 14px; line-height: 1.6; }
.sede-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Contact form ───────────────────────────────────────── */
.contact { background: var(--paper); padding: 140px 0; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-left { position: sticky; top: 100px; }
.contact-left h2 { margin-top: 22px; }
.contact-left .lead { margin-top: 22px; }
.contact-quick { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.qc-row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.qc-row:last-child { border-bottom: 1px solid var(--line); }
.qc-row dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.qc-row dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; }
.qc-row dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s; }
.qc-row dd a:hover { border-color: var(--primary); }
.qc-row .sub { font-family: var(--f-sans); font-weight: 400; font-size: 13px; color: var(--muted); display: block; margin-top: 6px; letter-spacing: normal; }

.form-card { background: var(--cream); border-radius: 8px; padding: 48px; border: 1px solid var(--cream-line); }
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: 5px;
  padding: 14px 16px;
  font-family: var(--f-sans); font-size: 15px; color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.08);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236f7470' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 36px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 18px; flex-wrap: wrap; }
.privacy { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; max-width: 320px; line-height: 1.5; }
.privacy input { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Generic list (for materials full page, permits, etc) ── */
.row-list { border-top: 1px solid var(--line); }
.row-list .row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out);
}
.row-list .row:hover { padding-left: 8px; }
.row-list .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.row-list .tag.green { color: var(--primary); }
.row-list h3 { font-size: 22px; margin-bottom: 4px; }
.row-list p { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 56ch; }
.row-list .end { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); font-family: var(--f-mono); letter-spacing: 0.1em; }

/* ── Footer ─────────────────────────────────────────────── */
footer.site-foot {
  background: var(--dark);
  color: var(--paper);
  padding: 100px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.foot-logo { display: flex; align-items: center; gap: 12px; }
.foot-logo .logo-text { color: var(--paper); }
.foot-tag {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark-muted);
  max-width: 32ch;
}
.foot-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 22px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-col li, .foot-col a {
  color: var(--dark-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .25s;
}
.foot-col a:hover { color: var(--paper); }
.foot-sedi { gap: 22px; }
.foot-sedi .sede-row {
  display: flex; flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.foot-sedi .sede-row .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.foot-sedi .sede-row span:not(.lbl) {
  color: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}
.foot-bot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dark-muted);
  text-transform: uppercase;
}

/* ── Reveal animations ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .nav-phone .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive (basic) ─────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid, .proof-grid, .contact-grid, .sedi-grid, .pagehead-grid { grid-template-columns: 1fr; gap: 48px; }
  .servizi-grid, .materiali-list { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 0; border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .contact-left { position: static; }
  .row-list .row { grid-template-columns: 100px 1fr; }
  .row-list .end { grid-column: 2; margin-top: 4px; }
}
@media (max-width: 720px) {
  .wrap, .wrap-wide, .wrap-narrow, .nav-inner { padding: 0 24px; }
  .servizi-grid, .materiali-list { grid-template-columns: 1fr; }
  .section-pad { padding: 80px 0; }
  .form-card { padding: 28px; }
  .form-row.cols-3, .form-row.cols-2 { grid-template-columns: 1fr; }
  .pagehead { padding: 60px 0 50px; }
  .row-list .row { grid-template-columns: 1fr; }
  .row-list .tag, .row-list .end { grid-column: 1; }
}

/* ╭───────────────────────────────────────────────────────────╮
   │ Mobile nav — hamburger + drawer                           │
   ╰───────────────────────────────────────────────────────────╯ */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
}
.nav-burger span {
  position: relative;
  display: block;
  width: 22px; height: 1.6px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 1.6px;
  background: var(--ink);
  transition: transform .35s var(--ease-out);
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }

/* Mostra burger e nasconde nav desktop sotto i 900px */
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: inline-flex; }
  /* Padding verticale maggiore al nav mobile cosi' il wordmark respira */
  .nav-inner { padding-top: 26px; padding-bottom: 26px; }
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(380px, 86vw);
  background: var(--paper);
  z-index: 110;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
  display: flex; flex-direction: column;
  padding: 74px 32px 40px;
  box-shadow: -24px 0 60px -28px rgba(13,20,17,0.18);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: color .2s, transform .2s;
}
.drawer-close:hover { color: var(--primary); transform: rotate(90deg); }
.drawer-close svg { width: 22px; height: 22px; }

.mobile-drawer a,
.mobile-drawer .drawer-group {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  background: transparent;
  border-top: 0; border-left: 0; border-right: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mobile-drawer a.current { color: var(--primary); }

.drawer-group {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.drawer-group .chev {
  font-size: 11px;
  opacity: 0.6;
  transition: transform .3s var(--ease-out);
  display: inline-block;
}
.drawer-group[aria-expanded="true"] .chev { transform: rotate(180deg); }

.mobile-drawer .sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out);
  display: block;
}
.drawer-group[aria-expanded="true"] + .sub { max-height: 400px; }
.mobile-drawer .sub a {
  font-size: 15px;
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}
.mobile-drawer .sub a:last-child { border-bottom: 1px solid var(--line); }

.mobile-drawer .drawer-phone {
  margin-top: 28px;
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 13px 22px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 0;
  align-self: flex-start;
  width: auto;
}
.mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,20,17,0.4);
  z-index: 105;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ╭───────────────────────────────────────────────────────────╮
   │ Floating WhatsApp                                          │
   ╰───────────────────────────────────────────────────────────╯ */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.55);
  z-index: 90;
  color: #fff;
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 22px 50px -12px rgba(37, 211, 102, 0.6); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 720px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* ╭───────────────────────────────────────────────────────────╮
   │ Cookie banner (GDPR-minimal)                              │
   ╰───────────────────────────────────────────────────────────╯ */
.cookie-bar {
  position: fixed;
  left: 22px; right: 22px; bottom: 22px;
  max-width: 720px;
  margin-left: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 26px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  z-index: 95;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
  transform: translateY(140%);
  transition: transform .5s var(--ease-out);
}
.cookie-bar.open { transform: translateY(0); }
.cookie-bar p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dark-muted);
}
.cookie-bar p strong { color: var(--paper); font-weight: 600; }
.cookie-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .btn-cookie {
  border: none; cursor: pointer;
  font-family: var(--f-sans);
  font-size: 13px; font-weight: 500;
  padding: 11px 18px;
  border-radius: 999px;
  transition: all .25s var(--ease-out);
}
.cookie-bar .btn-cookie.primary { background: var(--paper); color: var(--ink); }
.cookie-bar .btn-cookie.primary:hover { background: var(--accent); color: var(--paper); }
.cookie-bar .btn-cookie.ghost { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.2); }
.cookie-bar .btn-cookie.ghost:hover { border-color: var(--paper); }
@media (max-width: 720px) {
  .cookie-bar { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
}

/* ╭───────────────────────────────────────────────────────────╮
   │ Service pages — split content + process steps              │
   ╰───────────────────────────────────────────────────────────╯ */

/* "Cosa include il servizio" — testo a sinistra, lista a destra */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
@media (max-width: 900px) {
  .service-split { grid-template-columns: 1fr; gap: 36px; }
}

/* "Come funziona" — 4 step orizzontali con scroll-snap su mobile */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card {
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
}
.step-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.step-title {
  margin-top: 14px;
  color: var(--paper);
}
.step-desc {
  margin-top: 10px;
  color: var(--dark-muted);
  font-size: 13px;
  line-height: 1.6;
}
.step-arrow {
  position: absolute;
  right: -10px;
  top: 36px;
  color: var(--accent);
  font-size: 16px;
}

@media (max-width: 900px) {
  /* Su mobile diventa swipe orizzontale con snap card-by-card */
  .steps-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    gap: 12px;
    margin: 0 -24px;          /* allunga il contenitore fino al bordo schermo */
    padding: 4px 24px 18px;   /* spazio interno + spazio per la scrollbar */
    -webkit-overflow-scrolling: touch;
  }
  .step-card {
    flex: 0 0 78%;
    max-width: 320px;
    min-height: 180px;
    scroll-snap-align: start;
  }
  .step-arrow { display: none; }

  /* scrollbar sottile */
  .steps-grid::-webkit-scrollbar { height: 4px; }
  .steps-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 999px; }
  .steps-grid::-webkit-scrollbar-track { background: transparent; }

  /* Hint visivo: indicatore "scorri" */
  .steps-grid::after {
    content: "";
    flex: 0 0 8px;
  }
}

/* ╭───────────────────────────────────────────────────────────╮
   │ Google Maps embed (dove-siamo)                            │
   ╰───────────────────────────────────────────────────────────╯ */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.map-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.map-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -28px rgba(13,20,17,0.18); }
.map-card iframe {
  display: block;
  aspect-ratio: 16/10;
  border: 0;
  filter: saturate(0.9);
}
.map-card figcaption {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.map-card .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.map-card .addr {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.map-card .btn-ghost { align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px) {
  .maps-grid { grid-template-columns: 1fr; }
}

/* ╭───────────────────────────────────────────────────────────╮
   │ FAQ accordion                                             │
   ╰───────────────────────────────────────────────────────────╯ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  list-style: none;
}
.faq-head::-webkit-details-marker { display: none; }
.faq-head .plus {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: transform .35s var(--ease-out), background .25s var(--ease-out), color .25s;
  flex-shrink: 0;
  margin-left: 18px;
}
.faq-item[open] .faq-head .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq-body {
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 72ch;
}
