/* TOPMAT Edilizia — Foglio di stile principale */
/* Colori: arancio #C84B1E, grigio #6B6B6B, scuro #1C1C1C */

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

html, body { max-width: 100%; }
img, video, iframe, svg { max-width: 100%; }

:root {
  --orange: #C84B1E;
  --orange-dark: #A83A14;
  --orange-light: #E55A24;
  --gray: #6B6B6B;
  --gray-light: #F4F4F4;
  --dark: #1C1C1C;
  --text: #2C2C2C;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-gray { background: var(--gray-light); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.text-gray { color: var(--gray); }

/* BOTTONI */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5d; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--orange);
}
.btn-white:hover { background: var(--gray-light); color: var(--orange-dark); }

/* ═══════════════ HEADER ═══════════════ */
/*
 * Struttura a 3 colonne Flexbox:
 * [LOGO — flex:0 0 auto] [NAV — flex:1 centrato] [CTA — flex:0 0 auto]
 * L'altezza dell'header è determinata dal logo (height fissa sull'img).
 * Nessun height fisso sull'header-inner — si adatta al contenuto.
 * Tutti i testi hanno white-space:nowrap — nessun a-capo involontario.
 */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;     /* allineamento verticale uguale per tutti e 3 i blocchi */
  gap: 24px;
  padding: 12px 0;         /* padding uniforme top/bottom — nessun height fisso */
}

/* ── COLONNA 1: Logo ──────────────────────────────────────── */
.logo {
  flex: 0 0 auto;          /* non cresce, non si restringe */
  display: flex;
  align-items: center;
  line-height: 0;          /* elimina spazio phantom sotto l'img */
  text-decoration: none;
}
.logo img {
  display: block;
  height: 180px;           /* unico valore che conta — larghezza si adatta al ratio */
  width: auto;             /* rispetta il ratio naturale del logo */
  max-width: 500px;        /* sicurezza su viewport molto grandi */
}

/* ── COLONNA 2: Navigazione ───────────────────────────────── */
.nav {
  flex: 1 1 0%;            /* prende tutto lo spazio disponibile */
  min-width: 0;            /* permette shrink corretto in flex */
  display: flex;
  align-items: center;
  justify-content: center; /* voci centrate nello spazio rimanente */
  gap: 4px;
  flex-wrap: nowrap;
}
.nav a {
  flex-shrink: 0;          /* le voci non si comprimono mai */
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
  padding: 9px 13px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--orange); background: var(--gray-light); }
.nav a.active { color: var(--orange); font-weight: 700; }

/* ── WhatsApp mobile nell'header (nascosto su desktop) ──── */
.header-wa-mobile {
  display: none;
  align-items: center;
  gap: 4px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.header-wa-mobile:hover { background: #1ebe5d; color: var(--white); }

/* ── Dropdown prodotti ───────────────────────────────────── */
.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
  padding: 9px 13px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle { color: var(--orange); background: var(--gray-light); }
.nav-dropdown-toggle.has-active { color: var(--orange); font-weight: 700; }
.nav-dropdown-arrow { font-size: 0.65rem; opacity: 0.6; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 230px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 500;
  padding: 6px 0;
  /* ponte invisibile: copre il gap tra toggle e menu */
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown-menu a:hover { background: var(--gray-light); color: var(--orange); }
.nav-dropdown-menu a.active { color: var(--orange); font-weight: 700; background: #fff5f2; }

/* ── COLONNA 3: CTA (telefono + hamburger) ────────────────── */
.header-cta {
  flex: 0 0 auto;          /* non cresce, non si restringe */
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.header-tel:hover { color: var(--orange); }

/* ── Hamburger (solo mobile) ──────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  line-height: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.menu-toggle:hover { background: var(--gray-light); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s;
  transform-origin: center;
}
.menu-toggle span:nth-child(1) { margin-bottom: 5px; }
.menu-toggle span:nth-child(2) { margin-bottom: 5px; }

/* Stato aperto — diventa X arancio */
.menu-toggle.active span { background: var(--orange); }
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-cantiere.jpg'), linear-gradient(135deg, #C84B1E 0%, #8B2500 40%, #1C1C1C 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 720px;
  padding: 60px 0;
}
.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════════ SEGMENTAZIONE ═══════════════ */
.segment { padding: 0; margin-top: -2px; }
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.segment-card {
  padding: 48px 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.segment-card:last-child { border-right: none; }
.segment-card.imprese { background: var(--dark); color: var(--white); }
.segment-card.progettisti { background: #2C2C2C; color: var(--white); }
.segment-card.rivenditori { background: var(--orange); color: var(--white); }
.segment-card:hover { opacity: 0.92; transform: translateY(-3px); }
.segment-icon { font-size: 2.5rem; margin-bottom: 16px; }
.segment-card h3 { color: var(--white); margin-bottom: 10px; font-size: 1.4rem; }
.segment-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.5; }
.segment-arrow {
  display: inline-block;
  margin-top: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ═══════════════ NUMERI ═══════════════ */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.number-item strong {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.number-item span { color: var(--gray); font-size: 0.95rem; }

/* ═══════════════ BRAND ═══════════════ */
.brands-title {
  text-align: center;
  margin-bottom: 48px;
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brands-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
/* Ogni logo vive in un contenitore fisso 160x70px —
   object-fit:contain normalizza proporzioni diverse */
.brand-logo-wrap {
  width: 160px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-wrap--large {
  width: 317px;
  height: 139px;
}
/* Rimuove il bordo nero dal JPEG VZ senza modificare il file */
.brand-logo-vz {
  clip-path: inset(3px);
}
.brand-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.80;
  transition: opacity 0.2s;
  display: block;
}
.brand-logo:hover { opacity: 1; }

/* ═══════════════ PRODOTTI ═══════════════ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray); max-width: 560px; margin: 0 auto; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 24px;
  justify-content: center;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--text); }
.product-card-img {
  aspect-ratio: 4/3;
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.product-card-body { padding: 20px; }
.product-card-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.product-card-body p { color: var(--gray); font-size: 0.88rem; margin-bottom: 16px; }
.product-card-link {
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════ PERCHÉ TOPMAT ═══════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-card {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}
.why-icon { font-size: 2rem; margin-bottom: 16px; }
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--gray); font-size: 0.92rem; }

/* ═══════════════ CANTIERI / PORTFOLIO ═══════════════ */
.cantieri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cantiere-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.cantiere-card:hover { box-shadow: var(--shadow); }
.cantiere-img {
  aspect-ratio: 4/3;
  background: var(--gray-light);
  overflow: hidden;
}
.cantiere-img img { width: 100%; height: 100%; object-fit: cover; }
.cantiere-body { padding: 20px; }
.cantiere-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cantiere-body h3 { font-size: 1rem; margin-bottom: 6px; }
.cantiere-body p { color: var(--gray); font-size: 0.88rem; }

/* ═══════════════ CTA SEZIONE ═══════════════ */
.cta-section {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.72); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: #111;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ═══════════════ WHATSAPP STICKY ═══════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.25s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.05); color: var(--white); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55); }
.whatsapp-icon { font-size: 1.4rem; }

/* MOBILE BOTTOM BAR */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  padding: 6px 0;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.mobile-bar a.whatsapp-bar { color: #25D366; }
.mobile-bar a.call-bar { color: var(--orange); }
.mobile-bar a:hover { color: var(--dark); }
.mobile-bar-icon { font-size: 1.3rem; }

/* ═══════════════ PAGINE INTERNE ═══════════════ */
.page-hero {
  background-color: var(--dark);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 0;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.6);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; font-size: 1.1rem; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* PROBLEMI/SOLUZIONI */
.problems-box {
  background: #FFF5F2;
  border: 1px solid #F5C5B4;
  border-radius: var(--radius);
  padding: 36px;
  margin: 40px 0;
}
.problems-box h3 { color: var(--orange-dark); margin-bottom: 20px; }
.problem-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.problem-icon { color: #C84B1E; font-weight: 700; flex-shrink: 0; }

.solutions-box {
  background: #F0FFF4;
  border: 1px solid #A8D5B5;
  border-radius: var(--radius);
  padding: 36px;
  margin: 40px 0;
}
.solutions-box h3 { color: #1A6B3C; margin-bottom: 20px; }
.solution-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.solution-icon { color: #1A6B3C; font-weight: 700; flex-shrink: 0; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--gray-light);
  border-radius: var(--radius);
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.9rem; }

/* FORM */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
}
.form-card h3 { margin-bottom: 8px; }
.form-card .subtitle { color: var(--gray); font-size: 0.9rem; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }
.form-note {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 12px;
  text-align: center;
}

/* TWO COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.two-col.reversed { direction: rtl; }
.two-col.reversed > * { direction: ltr; }

/* ═══════════════ RESPONSIVE ═══════════════ */

/* 1200px — nav leggermente più compatto */
@media (max-width: 1200px) {
  .nav a { padding: 9px 10px; font-size: 0.87rem; }
}

/* 1024px — laptop */
@media (max-width: 1024px) {
  .logo img { height: 150px; }
  .nav a { padding: 8px 8px; font-size: 0.83rem; }
  .header-tel { font-size: 0.85rem; }
  .header-inner { gap: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 768px — tablet/mobile: hamburger */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding-top: 80px;
    padding-bottom: 80px;
    z-index: 998;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Su mobile: appiattisce il dropdown — toggle nascosto, voci sempre visibili */
  .nav.open .nav-dropdown { width: 100%; }
  .nav.open .nav-dropdown-toggle { display: none; }
  .nav.open .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .nav.open a,
  .nav.open .nav-dropdown-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    white-space: normal;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
  }
  .nav.open a:last-child { border-bottom: none; }
  .nav.open a:active,
  .nav.open .nav-dropdown-menu a:active { background: var(--gray-light); color: var(--orange); }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; }
  .header-tel { font-size: 0.78rem; gap: 3px; }
  .header-tel span { display: inline; font-size: 0.78rem; }
  .header-wa-mobile { display: none; }   /* WhatsApp solo nella barra in basso */
  .header-inner { padding: 8px 0; gap: 12px; }
  .logo img { height: 48px; }
  table { max-width: 100%; overflow-x: auto; display: block; }

  .segment-grid { grid-template-columns: 1fr; }
  .segment-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .segment-card:last-child { border-bottom: none; }
  .numbers-grid { grid-template-columns: 1fr; gap: 28px; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cantieri-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { min-height: 500px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .whatsapp-float { display: none; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 70px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .brands-grid { gap: 28px; }
  .brand-logo-wrap { width: 120px; height: 52px; }
  .brand-logo { max-width: 120px; max-height: 52px; }
}

/* 480px — mobile piccolo */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .form-card { padding: 24px; }
  .logo img { height: 108px; }
  .header-inner { padding: 6px 0; gap: 10px; }
  .nav.open { inset: 138px 0 0 0; }
}
