/* =============================================
   GEO-GREEN GAVARDO - Complete Stylesheet
   Palette: Verde naturale + Bianco
   Mobile-first, responsive
   ============================================= */

/* Variables */
:root {
  --green-dark: #1a5c2e;
  --green-main: #2d8a4e;
  --green-light: #4caf50;
  --green-pale: #e8f5e9;
  --green-accent: #66bb6a;
  --white: #ffffff;
  --off-white: #f8faf8;
  --gray-light: #f0f2f0;
  --gray-mid: #9e9e9e;
  --gray-dark: #424242;
  --text-main: #2c2c2c;
  --text-light: #666666;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--text-light); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===================== HEADER (all variants) ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

/* --- Variant A: index.html (BEM navbar__) --- */
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.navbar__wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar__logo a { display: flex; align-items: center; }
.navbar__logo img { height: 50px; width: auto; }
.navbar__menu { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.navbar__link {
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.navbar__link:hover, .navbar__link.active { color: var(--green-main); background: var(--green-pale); }
.navbar__cta {
  padding: 0.6rem 1.3rem;
  background: var(--green-main);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.navbar__cta:hover { background: var(--green-dark); }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}
.navbar__toggle span { width: 25px; height: 2.5px; background: var(--text-main); border-radius: 2px; transition: all var(--transition); display: block; }

/* --- Variant B: internal pages (header-content, nav, nav-list) --- */
.header-content { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo h2 { font-size: 1.2rem; color: var(--green-dark); white-space: nowrap; }
.logo a { color: var(--green-dark); }
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.nav-list li a {
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-list li a:hover, .nav-list li a.active { color: var(--green-main); background: var(--green-pale); }
.cta-button {
  background: var(--green-main) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.3rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.cta-button:hover { background: var(--green-dark) !important; }

/* --- Variant C: contatti/preventivo (nav-container, nav-brand, nav-menu) --- */
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 70px; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.nav-brand { display: flex; align-items: center; }
.nav-brand .logo h2 { font-size: 1.2rem; color: var(--green-dark); }
.nav-menu { display: flex; align-items: center; gap: 0.3rem; list-style: none; }
.nav-menu li a {
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--green-main); background: var(--green-pale); }
.nav-cta {
  padding: 0.6rem 1.3rem;
  background: var(--green-main);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-dark); }

/* Hamburger for all variants */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}
.hamburger span { width: 25px; height: 2.5px; background: var(--text-main); border-radius: 2px; transition: all var(--transition); display: block; }

/* Mobile Nav */
@media (max-width: 1024px) {
  .navbar__toggle, .hamburger { display: flex; }

  /* Variant A mobile */
  .navbar__menu {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 350px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    align-items: flex-start;
    gap: 0.2rem;
    overflow-y: auto;
    z-index: 1000;
  }
  .navbar__menu.open { right: 0; }
  .navbar__link { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; }

  /* Variant B mobile */
  .nav-list {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 350px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    align-items: flex-start;
    gap: 0.2rem;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-list.open { right: 0; }
  .nav-list li a { width: 100%; display: block; padding: 0.8rem 1rem; font-size: 1rem; }

  /* Variant C mobile */
  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 350px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    align-items: flex-start;
    gap: 0.2rem;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-menu.open { right: 0; }
  .nav-menu li a { width: 100%; display: block; padding: 0.8rem 1rem; font-size: 1rem; }
}

/* ===================== HERO SLIDER (homepage) ===================== */
.hero-slider {
  position: relative;
  width: 100%;
  margin-top: 70px;
  overflow: hidden;
  aspect-ratio: 2000/800;
  max-height: 80vh;
  background: #111;
}
.hero-slider__track { position: relative; width: 100%; height: 100%; }
.hero-slider__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slider__slide.active { opacity: 1; }
.hero-slider__slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Dots */
.hero-slider__dots {
  position: absolute; bottom: 1.5rem;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 5;
}
.hero-slider__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.hero-slider__dot.active { background: var(--white); }
/* Arrows */
.hero-slider__arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: var(--white);
  border: none; cursor: pointer;
  font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background var(--transition);
}
.hero-slider__arrow:hover { background: rgba(0,0,0,0.6); }
.hero-slider__arrow--prev { left: 1.5rem; }
.hero-slider__arrow--next { right: 1.5rem; }
@media (max-width: 768px) {
  .hero-slider__arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .hero-slider__arrow--prev { left: 0.8rem; }
  .hero-slider__arrow--next { right: 0.8rem; }
}

/* ===================== HERO STATIC (legacy, keep for any page using it) ===================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}
.hero__background {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero .container { position: relative; z-index: 2; }
.hero__content { text-align: center; color: var(--white); padding: 2rem; max-width: 800px; margin: 0 auto; }
.hero__title { color: var(--white); margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero__subtitle { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 2rem; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===================== PAGE HERO (internal pages) ===================== */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}
.page-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-short { min-height: 30vh; }
.hero-overlay, .page-hero .hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero-content, .page-hero .hero-content {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}
.hero-content h1 { color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }

/* Breadcrumb */
.breadcrumb { margin-top: 1rem; }
.breadcrumb ol { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.9rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.6); }
.breadcrumb li + li::before { content: "›"; color: rgba(255,255,255,0.5); margin-right: 0.5rem; }

/* ===================== BUTTONS (all variants) ===================== */
.btn, .button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: all var(--transition); text-align: center;
  text-decoration: none;
}
.btn--primary, .btn-primary, .button-primary { background: var(--green-main); color: var(--white); }
.btn--primary:hover, .btn-primary:hover, .button-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary, .btn-secondary { background: var(--white); color: var(--green-main); border: 2px solid var(--green-main); }
.btn--secondary:hover, .btn-secondary:hover { background: var(--green-pale); }
.btn--outline { background: transparent; color: var(--green-main); border: 2px solid var(--green-main); }
.btn--outline:hover { background: var(--green-pale); }
.btn--large, .btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn--small, .btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-phone { background: var(--green-main); color: var(--white); border-radius: 50px; padding: 0.7rem 1.5rem; font-weight: 600; }
.btn-phone:hover { background: var(--green-dark); }

/* ===================== BENEFITS (homepage) ===================== */
.benefits { padding: 3rem 0; background: var(--off-white); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.benefits__item { padding: 1rem 0.5rem; }
.benefits__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.benefits__title { font-size: 0.85rem; color: var(--green-dark); font-weight: 600; }

/* benefits-grid (internal pages) */
.benefits-grid, .section-benefits .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.benefit-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.benefit-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-item h3 { margin-top: 0.5rem; font-size: 1rem; }
.benefit-item p { font-size: 0.9rem; margin-top: 0.3rem; }
.benefit-item .icon, .benefit-item span:first-child { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== ABOUT (homepage) ===================== */
.about { padding: 5rem 0; }
.about__wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about__image { border-radius: var(--radius-md); overflow: hidden; }
.about__image img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.about__title { margin-bottom: 1rem; }
.about__text { color: var(--text-light); }
@media (max-width: 768px) {
  .about__wrapper { grid-template-columns: 1fr; }
}

/* ===================== SERVICES (homepage) ===================== */
.services { padding: 5rem 0; background: var(--off-white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card__image { overflow: hidden; }
.service-card__image img { width: 100%; height: 200px; object-fit: cover; transition: transform var(--transition); }
.service-card:hover .service-card__image img { transform: scale(1.05); }
.service-card__content { padding: 1.5rem; }
.service-card__title { margin-bottom: 0.5rem; font-size: 1.1rem; }
.service-card__description { font-size: 0.9rem; margin-bottom: 0.8rem; }
.service-card__link { color: var(--green-main); font-weight: 600; font-size: 0.9rem; }
.service-card__link:hover { color: var(--green-dark); }

@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

/* ===================== COLLECTION / PRODUCTS (homepage) ===================== */
.collection { padding: 5rem 0; }
.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.collection__cta { text-align: center; margin-top: 2.5rem; }

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__image { overflow: hidden; }
.product-card__image img, .product-image img { width: 100%; height: 200px; object-fit: cover; }
.product-card__content, .product-content { padding: 1.5rem; }
.product-card__title { color: var(--green-dark); margin-bottom: 0.5rem; }
.product-card__features, .product-features {
  list-style: none; text-align: left;
  margin: 0.8rem 0; padding: 0;
}
.product-card__features li, .product-features li {
  padding: 0.3rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}
.product-badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-main);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-image { overflow: hidden; border-radius: var(--radius-md); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) { .collection__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .collection__grid { grid-template-columns: 1fr; } }

/* ===================== STATS (homepage) ===================== */
.stats { padding: 4rem 0; background: var(--green-dark); }
.stats__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }
.stats__item { text-align: center; min-width: 150px; }
.stats__number { font-size: 2.5rem; color: var(--white); }
.stats__label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  margin: 0;
}
.cta-banner__content { max-width: 700px; margin: 0 auto; }
.cta-banner__title, .cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner__text, .cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.cta-banner__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===================== SECTION TITLES ===================== */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--green-dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ===================== SPLIT LAYOUT (internal pages) ===================== */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}
.split-image { border-radius: var(--radius-md); overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; border-radius: var(--radius-md); }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1rem; color: var(--text-light); }

@media (max-width: 768px) {
  .split-content { grid-template-columns: 1fr; }
  .split-image { order: -1; }
}

/* ===================== SECTION CONTENT (internal pages) ===================== */
.section-content, .section-intro, .section-benefits, .section-gallery,
.section-features, .section-highlight, .section-highlights, .section-cta,
.section-products, .section-comparison, .section-process { padding: 4rem 0; }
.section-content:nth-child(even) { background: var(--off-white); }

/* Features list */
.features-list { list-style: none; padding: 0; margin: 1rem 0; }
.features-list li {
  position: relative; padding-left: 1.8rem;
  margin-bottom: 0.7rem; color: var(--text-light);
}
.features-list li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green-main); font-weight: 700;
}
.feature { padding: 1.5rem; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-align: center; }
.feature h3 { margin-top: 0.5rem; }

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

/* ===================== COMPARISON TABLE (collezione) ===================== */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 2rem; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-table th { background: var(--green-dark); color: var(--white); padding: 1rem; font-weight: 600; text-align: left; }
.comparison-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--gray-light); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--green-pale); }

/* ===================== HIGHLIGHTS GRID ===================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.highlight {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.highlight h3 { margin-top: 0.5rem; font-size: 1.1rem; }
.highlight p { font-size: 0.9rem; }

/* ===================== USE CASES ===================== */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.use-case {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.use-case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.use-case h3 { margin-top: 0.5rem; font-size: 1rem; }
.use-case p { font-size: 0.85rem; }

/* ===================== PROCESS STEPS ===================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--green-main);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; }
.step p { font-size: 0.85rem; }

/* ===================== INSTALLATION LIST ===================== */
.installation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.installation-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.installation-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.installation-item p { font-size: 0.9rem; }

/* ===================== CONTACT PAGE ===================== */
.contact-section { padding: 4rem 0; }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.info-block { margin-bottom: 1.5rem; }
.info-block h3 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--green-dark); }
.info-block p, .info-block a { color: var(--text-light); font-size: 0.95rem; }
.info-block a:hover { color: var(--green-main); }
.phone-number { font-size: 1.3rem; font-weight: 700; color: var(--green-main) !important; }
.working-hours { margin-top: 1.5rem; }
.hours-list { margin-top: 0.5rem; }
.hour-item { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--gray-light); }
.day { font-weight: 500; }
.time { color: var(--text-light); }
.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-main);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--green-main); color: var(--white); }
.contact-map { border-radius: var(--radius-md); overflow: hidden; }
.map-placeholder {
  background: var(--gray-light); padding: 3rem; text-align: center;
  border-radius: var(--radius-md); min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.contact-cta { padding: 4rem 0; text-align: center; }

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contact-form-wrapper h2 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.contact-form-wrapper > p { margin-bottom: 1.5rem; }
.contact-form .btn-block { width: 100%; padding: 1rem; font-size: 1.1rem; }

/* Form messages (shared) */
.form-message {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  text-align: center;
}
.form-message.success {
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1px solid var(--green-light);
}
.form-message.error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

/* ===================== PREVENTIVO / FORM ===================== */
.preventivo-section { padding: 4rem 0; }
.preventivo-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.preventivo-form-wrapper h2 { margin-bottom: 0.5rem; }
.preventivo-form-wrapper > p { margin-bottom: 2rem; }
.preventivo-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Fieldsets */
.form-fieldset {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-fieldset legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-dark);
  padding: 0 0.5rem;
}

/* Form rows (multi-column) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-group--wide { grid-column: span 2; }
.form-group--narrow { grid-column: span 1; }
.form-row--3 .form-group--wide { grid-column: span 2; }
.form-row--3 .form-group--narrow { grid-column: span 1; }

@media (max-width: 600px) {
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .form-group--wide, .form-group--narrow { grid-column: span 1; }
  .form-row--3 .form-group--wide { grid-column: span 1; }
}

/* Form groups */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-weight: 600;
  font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text-main);
}
.form-group .required { color: #e53935; font-weight: 700; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0; border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--green-main);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Radio groups */
.form-radio-group {
  display: flex; gap: 1.5rem; margin-top: 0.3rem;
}
.form-radio {
  display: flex; align-items: center; gap: 0.4rem;
  font-weight: 400; cursor: pointer;
}
.form-radio input[type="radio"] {
  width: auto; margin: 0;
  accent-color: var(--green-main);
}

/* Checkbox */
.form-checkbox {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-weight: 400; cursor: pointer; font-size: 0.9rem;
}
.form-checkbox input[type="checkbox"] {
  width: auto; margin-top: 0.2rem;
  accent-color: var(--green-main);
}
.form-checkbox a { color: var(--green-main); text-decoration: underline; }
.form-group--privacy { margin: 1.5rem 0; }

/* File upload */
.file-upload-wrapper { position: relative; }
.form-group input[type="file"] {
  width: 100%; padding: 0.8rem;
  border: 2px dashed #ccc; border-radius: var(--radius-sm);
  background: var(--off-white); cursor: pointer;
  font-size: 0.9rem;
}
.form-group input[type="file"]:hover { border-color: var(--green-main); }
.form-hint { font-size: 0.8rem; color: var(--gray-mid); margin-top: 0.3rem; }
.form-note { font-size: 0.8rem; color: var(--gray-mid); margin-top: 1rem; text-align: center; }

.preventivo-sidebar {}
.sidebar-card {
  background: var(--green-pale);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.sidebar-card h3 { margin-bottom: 0.8rem; font-size: 1.1rem; }
.sidebar-card p { font-size: 0.9rem; }
.sidebar-card a { color: var(--green-main); font-weight: 600; }
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 0.4rem 0; }
.sidebar-links a { color: var(--green-main); font-size: 0.9rem; }
.sidebar-links a:hover { color: var(--green-dark); }

@media (max-width: 768px) {
  .preventivo-wrapper { grid-template-columns: 1fr; }
}

/* ===================== CALLBACK WIDGET (preventivo) ===================== */
.callback-section { padding: 4rem 0; }
.callback-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.callback-widget {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.callback-widget__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-main);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.callback-widget__icon svg { stroke: var(--white); }
.callback-widget h2 { margin-bottom: 0.5rem; }
.callback-widget > p { color: var(--text-light); margin-bottom: 2rem; }
.callback-form__field { margin-bottom: 1rem; }
.callback-form__field label {
  display: block; font-size: 0.85rem;
  color: var(--text-light); margin-bottom: 0.4rem;
}
.callback-form__field input {
  width: 100%; padding: 1rem 1.2rem;
  border: 2px solid #e0e0e0; border-radius: var(--radius-sm);
  font-size: 1.1rem; font-family: inherit;
  transition: border-color var(--transition); text-align: center;
}
.callback-form__field input:focus { outline: none; border-color: var(--green-main); }
.callback-form__submit {
  width: 100%; padding: 1rem;
  background: var(--green-main); color: var(--white);
  border: none; border-radius: 50px;
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  margin-top: 0.5rem;
}
.callback-form__submit:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.callback-phone {
  display: block; font-size: 1.4rem; font-weight: 700;
  color: var(--green-main) !important; margin-top: 0.5rem;
}
.callback-phone:hover { color: var(--green-dark) !important; }
.callback-info {}

@media (max-width: 768px) {
  .callback-wrapper { grid-template-columns: 1fr; }
}

/* ===================== FOOTER (all variants) ===================== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

/* BEM variant (index) */
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer__title { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer__text { font-size: 0.9rem; margin-bottom: 1rem; color: rgba(255,255,255,0.7); }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--green-main); color: var(--white); }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer__links a:hover { color: var(--white); }
.footer__contact p { margin-bottom: 0.7rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer__contact strong { color: rgba(255,255,255,0.9); }
.footer__contact a { color: rgba(255,255,255,0.7); }
.footer__contact a:hover { color: var(--white); }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.85rem;
}
.footer__bottom p { color: rgba(255,255,255,0.5); }

/* Flat variant (internal pages) */
.footer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-column h4 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-column p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.5rem; }
.footer-column ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-column ul li a:hover { color: var(--white); }
.footer-column a { color: rgba(255,255,255,0.7); }
.footer-column a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--green-main); color: var(--white); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.85rem;
}
.footer-bottom p { color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
  .footer__grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===================== WHATSAPP BUTTON ===================== */
.whatsapp-btn, .whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: all var(--transition);
}
.whatsapp-btn:hover, .whatsapp-float:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }

/* ===================== COOKIE BANNER (all variants) ===================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  padding: 1.2rem 2rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p, .cookie-banner__content p, .cookie-content p { margin: 0; font-size: 0.9rem; max-width: 600px; }
.cookie-banner__content { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.cookie-banner__buttons, .cookie-buttons, .cookie-actions {
  display: flex; gap: 0.8rem;
}
.cookie-accept, #acceptCookies, #cookieAccept {
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; border: none;
  background: var(--green-main); color: var(--white);
}
.cookie-decline, #rejectCookies, #cookieDecline {
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; border: none;
  background: var(--gray-light); color: var(--text-main);
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
