/* ====================================================================
   style.css — Prati Sintetici & Giardini
   Font: Poppins (Google Fonts)
   Brand: #3d8b37 verde principale, #2d6a28 verde scuro, #8BC34A accento
   ==================================================================== */

/* ─── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:       #3d8b37;
  --green-dark:  #2d6a28;
  --green-light: #8BC34A;
  --green-pale:  #e8f5e9;
  --gray:        #9E9E9E;
  --gray-light:  #f5f5f5;
  --gray-dark:   #333333;
  --white:       #ffffff;
  --black:       #111111;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.16);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 48px;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--transition);
}

#navbar.scrolled .nav-logo {
  color: var(--gray-dark);
}

#navbar.scrolled .nav-logo .logo-icon {
  background: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-light);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }

#navbar.scrolled .nav-links a {
  color: var(--gray-dark);
}
#navbar.scrolled .nav-links a:hover {
  color: var(--green);
}
#navbar.scrolled .nav-links a::after {
  background: var(--green);
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61,139,55,0.35);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

#navbar.scrolled #hamburger span { background: var(--gray-dark); }

#hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.active span:nth-child(2) { opacity: 0; }
#hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-dark);
  transition: color var(--transition);
}

#mobile-menu a:hover { color: var(--green); }

/* ─── Hero section ────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Overlay testo finale hero */
#hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  /* gradiente scuro nella parte bassa per leggibilità */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.10) 50%,
    rgba(0,20,0,0.55) 100%
  );
}

#hero-overlay.active { pointer-events: all; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.40);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #8bc34a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(139,195,74,0.35);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 0 3px rgba(139,195,74,0.35); }
  50%       { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 6px rgba(139,195,74,0.15); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.18),
    0 4px 30px rgba(0,0,0,0.35);
  margin-bottom: 18px;
}

.hero-title span {
  color: #a8e063;
  -webkit-text-stroke: 0px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.90);
  font-weight: 400;
  max-width: 500px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0,0,0,0.30);
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(61,139,55,0.45), 0 1px 0 rgba(255,255,255,0.15) inset;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
  box-shadow: 0 8px 28px rgba(61,139,55,0.55), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.btn-outline {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--white);
  box-shadow: 0 4px 16px rgba(255,255,255,0.12);
}

.btn-green-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-green-outline:hover {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61,139,55,0.3);
}

/* ─── Navbar link attivo (pagina corrente) ──────────────────────────────── */
.nav-active {
  color: var(--green-light) !important;
  font-weight: 700 !important;
}
#navbar.scrolled .nav-active { color: var(--green) !important; }

/* ─── Galleria teaser (homepage) ─────────────────────────────────────────── */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Item largo (primo) */
.gallery-preview-item--wide {
  grid-column: span 2;
}

.gallery-preview-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-preview-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-preview-item--wide {
  aspect-ratio: 16/9;
}

.gallery-preview-item .gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
}

.gallery-preview-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,139,55,0);
  transition: background var(--transition);
}

.gallery-preview-item:hover .gallery-overlay {
  background: rgba(61,139,55,0.18);
}

/* Tile CTA "vedi tutto" */
.gallery-preview-cta {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
  aspect-ratio: 4/3;
}

.gallery-preview-cta .gallery-placeholder,
.gallery-preview-cta .gallery-overlay { display: none; }

.gallery-preview-cta-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.gallery-preview-cta-count {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gallery-preview-cta-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.gallery-preview-cta-link {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a8e063;
  transition: letter-spacing 0.2s;
}

.gallery-preview-cta:hover .gallery-preview-cta-link {
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .gallery-preview {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .gallery-preview-item--wide { grid-column: span 2; }
}

@media (max-width: 480px) {
  .gallery-preview { grid-template-columns: 1fr; }
  .gallery-preview-item--wide { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ─── Scroll indicator ────────────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 20;
  opacity: 0.75;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  animation: bounceDown 1.6s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.7; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ─── Sezioni generali ────────────────────────────────────────────────────── */
section {
  padding: 96px 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

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

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ─── Reveal animations ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Servizi ─────────────────────────────────────────────────────────────── */
#servizi {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid #eee;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--green);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 18px;
  transition: gap var(--transition);
}

.service-card:hover .service-link { gap: 10px; }

/* ─── Prodotti ────────────────────────────────────────────────────────────── */
#prodotti {
  background: linear-gradient(180deg, #f9fdf9 0%, #ffffff 100%);
}

/* Griglia manti sintetici */
.grass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 72px;
}

.grass-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid #e8f5e9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.grass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(61,139,55,0.14);
}

/* Striscia colorata superiore che usa l'accento della card */
.grass-card::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--card-accent, #4caf50);
}

/* Visualizzazione fibre */
.grass-fiber-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 18px 24px 12px;
  background: #f1f8f1;
  min-height: 90px;
}

.grass-fiber-bar {
  display: block;
  width: 6px;
  height: var(--fiber-h, 20px);
  background: linear-gradient(180deg, var(--card-accent, #4caf50) 0%, #2e7d32 100%);
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
}

/* Fibre leggermente sfasate per sembrare erba */
.grass-fiber-bar:nth-child(2) { height: calc(var(--fiber-h, 20px) * 0.85); }
.grass-fiber-bar:nth-child(4) { height: calc(var(--fiber-h, 20px) * 0.92); }
.grass-fiber-bar:nth-child(6) { height: calc(var(--fiber-h, 20px) * 0.78); }
.grass-fiber-bar:nth-child(8) { height: calc(var(--fiber-h, 20px) * 0.88); }

.grass-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.grass-thickness {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-accent, var(--green));
  margin-bottom: 4px;
}

.grass-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.grass-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.grass-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap var(--transition), color var(--transition);
}

.grass-cta::after {
  content: '→';
  transition: transform var(--transition);
}

.grass-cta:hover { color: var(--green-dark); }
.grass-cta:hover::after { transform: translateX(4px); }

/* Badge Premium */
.grass-card--premium {
  border-color: #1b5e20;
  background: linear-gradient(160deg, #f1f8f1 0%, #e8f5e9 100%);
}

.grass-premium-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(27,94,32,0.35);
}

/* Accessori */
.accessori-header {
  margin-bottom: 40px;
}

.accessori-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.accessori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}

.accessorio-card {
  background: var(--white);
  border: 1.5px solid #eee;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.accessorio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.accessorio-icon {
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 10px;
}

.accessorio-icon svg {
  width: 100%;
  height: 100%;
}

.accessorio-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.accessorio-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* ─── Perché sceglierci ───────────────────────────────────────────────────── */
#perche-sceglierci {
  background: var(--green-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#perche-sceglierci::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

#perche-sceglierci::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

#perche-sceglierci .section-tag {
  color: var(--green-light);
  background: rgba(139,195,74,0.15);
}

#perche-sceglierci .section-title {
  color: var(--white);
}

#perche-sceglierci .section-title span {
  color: var(--green-light);
}

#perche-sceglierci .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.perche-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background var(--transition), border-color var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(139,195,74,0.4);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.perche-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.perche-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.perche-point-icon {
  width: 40px;
  height: 40px;
  background: rgba(139,195,74,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.perche-point-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.perche-point-text p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ─── Processo / Come lavoriamo ───────────────────────────────────────────── */
#processo {
  background: var(--gray-light);
}

.processo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}

.processo-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-pale), var(--green-light), var(--green), var(--green-light), var(--green-pale));
  z-index: 0;
}

.processo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}

.processo-step:hover .step-number {
  background: var(--green);
  color: var(--white);
}

.processo-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.processo-step p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ─── Galleria ────────────────────────────────────────────────────────────── */
#galleria {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
}
.gallery-preview-item:hover .gallery-placeholder img { transform: scale(1.06); }

/* Sfumature di colore per i placeholder */
.gallery-item:nth-child(1) .gallery-placeholder,
.gallery-preview-item:nth-child(1) .gallery-placeholder { background: linear-gradient(135deg, #2d6a28 0%, #4caf50 60%, #8bc34a 100%); }

.gallery-item:nth-child(2) .gallery-placeholder,
.gallery-preview-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg, #004d40 0%, #00897b 60%, #4db6ac 100%); }

.gallery-item:nth-child(3) .gallery-placeholder,
.gallery-preview-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg, #1b5e20 0%, #43a047 100%); }

.gallery-item:nth-child(4) .gallery-placeholder,
.gallery-preview-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg, #33691e 0%, #8bc34a 100%); }

.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg, #558b2f 0%, #aed581 100%); }
.gallery-item:nth-child(6) .gallery-placeholder { background: linear-gradient(135deg, #1b5e20 0%, #69f0ae 100%); }

/* Icona decorativa sfondo */
.gallery-placeholder::before {
  content: '🌿';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 4rem;
  opacity: 0.18;
  pointer-events: none;
}

.gallery-item:nth-child(1) .gallery-placeholder::before,
.gallery-preview-item:nth-child(1) .gallery-placeholder::before { content: '🏡'; font-size: 6rem; }

.gallery-item:nth-child(2) .gallery-placeholder::before,
.gallery-preview-item:nth-child(2) .gallery-placeholder::before { content: '⛳'; }

.gallery-item:nth-child(3) .gallery-placeholder::before,
.gallery-preview-item:nth-child(3) .gallery-placeholder::before { content: '🌳'; }

.gallery-item:nth-child(4) .gallery-placeholder::before,
.gallery-preview-item:nth-child(4) .gallery-placeholder::before { content: '🌸'; }

.gallery-item:nth-child(5) .gallery-placeholder::before { content: '🪴'; font-size: 6rem; }
.gallery-item:nth-child(6) .gallery-placeholder::before { content: '🌿'; }

.gallery-label {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 1;
  pointer-events: none;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,139,55,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(61,139,55,0.25);
}

.gallery-overlay-icon {
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
#lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  max-width: 800px;
  width: 90%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox-inner .gallery-item {
  border-radius: 0;
  transform: none !important;
  box-shadow: none !important;
}

.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 12px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ─── Testimonianze ───────────────────────────────────────────────────────── */
#testimonianze {
  background: var(--green-pale);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testi-stars {
  color: #FFC107;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testi-text {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--green-light);
}

.testi-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--black);
}

.testi-role {
  font-size: 0.78rem;
  color: var(--gray);
}

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

.contatti-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contatti-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.contatti-info p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contatti-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contatti-item-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contatti-item-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.contatti-item-text span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Form */
.contact-form-wrapper {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--gray-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,139,55,0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-wrapper .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.contact-form-wrapper .btn.sent {
  background: #43a047;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.83rem;
  line-height: 1.75;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--green-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--green);
  transform: translateY(-2px);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .perche-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contatti-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  section { padding: 72px 24px; }

  #navbar { padding: 16px 24px; }
  #navbar.scrolled { padding: 12px 24px; }

  .nav-links { display: none; }
  #hamburger { display: flex; }
  #mobile-menu { display: flex; }

  /* Hero: canvas occupa l'intero schermo senza overflow */
  #hero {
    height: 100svh; /* small viewport height — evita barra indirizzi mobile */
    touch-action: pan-y; /* scroll nativo fluido */
  }

  /* Overlay hero — testo più compatto su mobile */
  #hero-overlay {
    padding: 20px 16px 32px;
    justify-content: flex-end; /* testo in basso così la scena 3D è visibile */
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  .btn { padding: 13px 22px; font-size: 0.85rem; }

  /* Scroll indicator nascosto su mobile (scroll touch implicito) */
  .scroll-indicator { display: none; }

  .processo-steps::before { display: none; }

  .gallery-grid { grid-template-columns: 1fr; }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .grass-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .accessori-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grass-name { font-size: 1.1rem; }
  .grass-desc { font-size: 0.8rem; }
  .accessorio-card { padding: 20px 16px; }
}

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.text-green { color: var(--green); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
