/*
Theme Name: MeSte Impianti
Theme URI: https://mesteimpianti.it
Author: Me.Ste. Impianti
Description: Tema professionale per Me.Ste. Impianti
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: meste
*/


:root {
  --navy: #1B3A6B;
  --navy-dark: #0F2347;
  --navy-light: #2E5090;
  --orange: rgb(203,13,39);
  --orange-light: rgb(220,50,70);
  --blue-water: #2E9BD4;
  --blue-water-light: #5BB8E8;
  --light-bg: #F4F6FA;
  --white: #FFFFFF;
  --gray: #6B7280;
  --gray-light: #E8ECF4;
  --text-dark: #1A2332;
  --text-mid: #4A5568;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #FFFFFF;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-logo span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--orange-light) !important; color: var(--white) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,155,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,90,27,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-water-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }

.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.07); }

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 4rem;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--orange);
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  color: var(--white);
  animation: slideIn 0.6s ease both;
}
.stat-card:nth-child(2) { animation-delay: 0.1s; margin-left: 2rem; border-left-color: var(--blue-water); }
.stat-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* ── SEZIONI COMUNI ── */
section { padding: 90px 5%; }

.section-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title span { color: var(--blue-water); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 600px;
}

/* ── CHI SIAMO ── */
#chi-siamo {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 8px;
  min-height: 420px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.about-img-placeholder::before {
  content: '🔧';
  font-size: 8rem;
  opacity: 0.2;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.about-img-placeholder .img-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.about-text p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-icon {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.value-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* ── MANUTENZIONI ── */
#manutenzioni { background: var(--white); }

.manutenzioni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.man-card {
  border: 1.5px solid var(--gray-light);
  border-top: 4px solid var(--navy);
  padding: 2rem 1.5rem;
  border-radius: 6px;
  transition: border-top-color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.man-card:hover {
  border-top-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,58,107,0.1);
}

.man-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.man-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}

.man-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.man-card ul {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.man-card ul li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 4px 0;
  padding-left: 1.2rem;
  position: relative;
}

.man-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.8rem;
}

/* ── CATASTO TERMICO ── */
#catasto-termico {
  background: var(--navy-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#catasto-termico::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(46,155,212,0.06) 100%);
  pointer-events: none;
}

.catasto-header { margin-bottom: 3rem; }
.catasto-header .section-title { color: var(--white); }
.catasto-header .section-subtitle { color: rgba(255,255,255,0.65); }

.catasto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.catasto-steps { display: flex; flex-direction: column; gap: 1.2rem; }

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.step:hover { background: rgba(255,255,255,0.07); }

.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  min-width: 2.5rem;
  padding-top: 2px;
}

.step h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.catasto-info {
  position: relative;
  z-index: 2;
}

.info-box {
  background: rgba(46,155,212,0.1);
  border: 1px solid rgba(46,155,212,0.3);
  border-left: 4px solid var(--blue-water);
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.info-box h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-water-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.info-box p, .info-box li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.info-box ul { padding-left: 1.2rem; }

.catasto-cta {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.catasto-cta:hover { background: var(--orange-light); }

/* ── SERVIZI ── */
#servizi { background: var(--light-bg); }

.servizi-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: end;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servizio-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.servizio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(27,58,107,0.12);
}

.servizio-header {
  background: var(--navy);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.servizio-card:nth-child(2) .servizio-header { background: var(--navy-light); }
.servizio-card:nth-child(3) .servizio-header { background: #1A5276; }
.servizio-card:nth-child(4) .servizio-header { background: #0E5C6E; }
.servizio-card:nth-child(5) .servizio-header { background: #1B4F72; }

.servizio-emoji {
  font-size: 2rem;
  background: rgba(255,255,255,0.12);
  width: 56px; height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.servizio-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.servizio-body {
  padding: 1.4rem 1.5rem;
}

.servizio-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.servizio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--gray-light);
  color: var(--navy);
  margin: 2px 2px 2px 0;
}

/* Card grande per Impianti (5a card — si estende su 3 colonne) */
.servizio-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
}
.servizio-card.wide .servizio-header {
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.servizio-card.wide .servizio-body { padding: 2rem; }

/* ── CONTATTI ── */
#contatti { background: var(--white); }

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px; height: 48px;
  background: var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}

.contact-item p {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.contact-form {
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
}

.contact-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--orange-light); }

/* ── STRIP GARANZIE ── */
.strip {
  background: var(--navy);
  padding: 40px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.strip-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  margin-bottom: 4px;
}

.strip-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.strip-item .strip-icon { font-size: 1.8rem; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  padding: 50px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand h2 span { color: var(--orange); }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── ANIMAZIONI ENTRATA ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { padding-left: 0; flex-direction: row; flex-wrap: wrap; }
  .about-grid, .catasto-grid, .servizi-intro, .contatti-grid { grid-template-columns: 1fr; gap: 2rem; }
  .manutenzioni-grid { grid-template-columns: 1fr 1fr; }
  .servizi-grid { grid-template-columns: 1fr 1fr; }
  .servizio-card.wide { grid-column: auto; display: block; }
  .strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}


/* ── CONTACT FORM 7 overrides ── */
.wpcf7-form .form-group { margin-bottom: 1rem; }
.wpcf7-form label { display:block; font-size:0.85rem; font-weight:600; color:var(--text-dark); margin-bottom:6px; letter-spacing:0.03em; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form select,
.wpcf7-form textarea {
  width:100%; padding:12px 14px;
  border:1.5px solid var(--gray-light);
  border-radius:6px; font-family:'Barlow',sans-serif;
  font-size:0.95rem; color:var(--text-dark);
  transition:border-color 0.2s; background:#fff;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { outline:none; border-color:var(--navy); }
.wpcf7-form textarea { min-height:120px; resize:vertical; }
.wpcf7-submit {
  width:100%; padding:15px;
  background:var(--orange); color:#fff;
  border:none; border-radius:6px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:1.1rem; font-weight:700;
  letter-spacing:0.05em; cursor:pointer;
  transition:background 0.2s;
}
.wpcf7-submit:hover { background:var(--orange-light); }
.wpcf7-response-output { margin-top:1rem; padding:10px 14px; border-radius:6px; font-size:0.9rem; }

/* ── PAGINE GENERICHE (page.php) ── */
.page-wrapper {
  padding-top: 68px; /* altezza navbar */
  min-height: 60vh;
  background: var(--white);
}
.page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 5%;
}
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--orange);
}
.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.page-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.page-content li { margin-bottom: 0.4rem; }
.page-content a { color: var(--orange); text-decoration: underline; }
.page-content a:hover { color: var(--navy); }
.page-content strong { color: var(--text-dark); font-weight: 600; }

/* ── FIX: Stat card layout e HSD card ── */
.stat-card .stat-items {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: flex-start !important;
  gap: 1.5rem !important;
}
.stat-card .stat-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0.3rem !important;
  flex: 1 !important;
}
.stat-card .stat-row .stat-num {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  line-height: 1 !important;
  display: block !important;
}
.stat-card .stat-row .stat-label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: 0.03em !important;
  text-align: center !important;
  display: block !important;
}

/* HSD Card */
.hsd-card {
  background: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 1.2rem 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}
.hsd-card img {
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}
.hsd-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  display: block !important;
}

/* ── HAMBURGER MENU MOBILE ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Stato aperto: X */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: #FFFFFF;
    border-top: 2px solid var(--orange);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 1.2rem 5%;
    gap: 0 !important;
    list-style: none;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem !important;
    color: var(--navy) !important;
  }
  .nav-links .nav-cta {
    color: var(--white) !important;
    font-weight: 700 !important;
    display: inline-block !important;
    margin-top: 6px;
  }
}

/* ── FIX MOBILE S23 / overflow orizzontale ── */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
* { box-sizing: border-box; }

@media (max-width: 768px) {
  /* Hero */
  .hero {
    grid-template-columns: 1fr !important;
    padding: 100px 5% 60px !important;
    min-height: auto !important;
  }
  .hero-content { max-width: 100% !important; }
  .hero h1 { font-size: 2.4rem !important; }
  .hero-visual {
    flex-direction: column !important;
    padding-left: 0 !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  .stat-card { width: 100% !important; }
  .stat-card .stat-items {
    flex-direction: row !important;
    justify-content: space-around !important;
  }
  .hsd-card { width: 100% !important; }

  /* Sezioni */
  section { padding: 60px 5% !important; }
  .about-grid,
  .catasto-grid,
  .contatti-grid { grid-template-columns: 1fr !important; }
  .manutenzioni-grid,
  .servizi-grid { grid-template-columns: 1fr !important; }
  .strip { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Immagini e contenitori */
  img { max-width: 100% !important; height: auto !important; }
  .about-img-placeholder { min-height: 280px !important; height: auto !important; }

  /* Steps catasto */
  .catasto-steps, .catasto-info { width: 100% !important; }

  /* Form */
  .form-row { grid-template-columns: 1fr !important; }
}

/* ── About image semplificata ── */
.about-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}
.about-img-wrap img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px !important;
}

/* ── Footer CTA Bar ── */
.footer-cta-bar {
  background: var(--orange);
  padding: 1.4rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-cta-bar p {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}
.footer-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.footer-cta-tel {
  background: #fff;
  color: var(--orange) !important;
}
.footer-cta-wa {
  background: #25D366;
  color: #fff !important;
}

@media (max-width: 768px) {
  .footer-cta-bar {
    flex-direction: column;
    text-align: center;
  }
  .footer-cta-buttons {
    justify-content: center;
    width: 100%;
  }
  .footer-cta-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ── Bottone WhatsApp flottante ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25D366;
  border-radius: 50px;
  padding: 14px 20px 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
  animation: none;
}
.whatsapp-float svg {
  flex-shrink: 0;
}
.whatsapp-float-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.75); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
    padding: 13px 16px 13px 14px;
  }
  .whatsapp-float-label {
    display: none;
  }
  .whatsapp-float {
    border-radius: 50%;
    padding: 14px;
  }
}

/* ── Banner promozione sostituzione caldaia ── */
.promo-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0A2940 100%);
  border: 2px solid var(--orange);
  border-radius: 10px;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  padding: 2rem 2.5rem;
}
.promo-banner-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.promo-icon {
  font-size: 3rem;
  flex-shrink: 0;
}
.promo-text {
  flex: 1;
  min-width: 200px;
}
.promo-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.promo-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.promo-text strong { color: var(--white); }
.promo-cta {
  background: #25D366;
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
@media (max-width: 768px) {
  .promo-banner { padding: 1.5rem; }
  .promo-banner-content { flex-direction: column; text-align: center; }
  .promo-cta { width: 100%; justify-content: center; }
}
