* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
}
.hero {
  background: linear-gradient(rgba(0, 100, 0, 0.65), rgba(0, 100, 0, 0.65)),
    url("/assets/images/hero.jpg") center 45% / cover no-repeat;
  color: white;
  padding: 100px 0;
  padding-top: 12rem;
  padding-bottom: 7rem;
}

.icon-box {
  font-size: 40px;
  color: #3db94d;
}
.bg-green {
  background-color: #3db94d;
}
.bg-light-green {
  background-color: #f1f8f4;
}

#azienda,
#servizi,
#antincendio,
#antincendio-attivita,
#dicono-di-noi,
#contatti,
#garden,
#garden-prodotti {
  scroll-margin-top: 56px;
}

.service-card {
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* barra colorata laterale */
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background-color: #3db94d;
  opacity: 0.85;
}

/* hover */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
}

/* icona */
.service-card i {
  background: rgba(46, 125, 50, 0.1);
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* titolo */
.service-card h5 {
  margin-top: 1rem;
}

/* bottone */
.service-card .btn {
  border-radius: 20px;
  font-weight: 500;
}

.why-item {
  padding-left: 1.5rem;
  border-left: 3px solid #2e7d32;
  color: #fff;
}

.why-item i {
  color: #2e7d32;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.antincendio-hero {
  background: linear-gradient(rgba(102, 0, 14, 0.7), rgba(214, 28, 28, 0.7)),
    url("/assets/images/hero_antincendio.png") center 65% / cover no-repeat;
  padding-top: 12rem;
  padding-bottom: 7rem;
}

.stats-section {
  background: radial-gradient(circle at top, rgba(46, 125, 50, 0.25), #111);
}

.stat-box {
  padding: 1.5rem 1rem;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #2e7d32;
  line-height: 1;
}

.plus-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #2e7d32;
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ccc;
}

.contact-section {
  position: relative;
}

.contact-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-box a {
  color: #2e7d32;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

.map-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dicono-di-noi .review-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dicono-di-noi .stars i {
  color: #fbc02d;
}

#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #2e7d32;
  color: #fff;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#backToTop:hover {
  background: #256b2b;
}

@media (max-width: 416px) {
  .btn-second {
    margin-top: 15px;
  }
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .logo-wrapper {
    display: none;
  }
  .logo-img {
    display: none;
  }
  .logo-mobile {
    height: 36px;
    width: auto;
  }
  .hero {
    padding-top: 8rem;
  }
  .soft-menu .nav-link.active {
    color: #2e7d32;
    font-weight: 600;
  }
  .navbar {
    height: 64px;
  }

  .navbar-collapse {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: white;
    padding-inline: 15px;
  }
}

@media (min-width: 992px) {
  .soft-menu .nav-link {
    position: relative;
    font-weight: 500;
    color: #212529;
    padding: 0.5rem 0;
  }

  /* underline soft */
  .soft-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #2e7d32;
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
  }

  /* hover */
  .soft-menu .nav-link:hover::after {
    width: 60%;
  }

  /* active */
  .soft-menu .nav-link.active::after {
    width: 80%;
    background-color: #3db94d;
  }

  .navbar .nav-link {
    font-size: 0.9rem;
  }
}

/* Wrapper logo */
.logo-wrapper {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-18em);
  z-index: 1050;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stato nascosto */
.logo-hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Immagine logo */
.logo-img {
  height: 6.5em;
  width: auto;
  background: white;
  padding-block: 3px;
  padding-inline: 2em;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.garden-hero {
  background: linear-gradient(rgba(255, 193, 7, 0.95), rgba(255, 213, 79, 0.85)),
    url("/assets/images/garden-hero.jpg") center 55% / cover no-repeat;
  padding-top: 12rem;
  padding-bottom: 7rem;
}

/* =========================================================
   GARDEN PRODUCTS SECTION
========================================================= */
.garden-products-section {
  background: linear-gradient(180deg, #f6faf6 0%, #eef5ef 100%);
  padding: 5rem 0;
}

.garden-title {
  color: #2f6b3f;
}

.garden-subtitle {
  color: #6f8f78;
  max-width: 600px;
  margin: 0 auto;
}

/* CARD */
.garden-card {
  height: 100%;
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 2.5rem 1.8rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(47, 107, 63, 0.12);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* decorazione foglia soft */
.garden-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(47, 107, 63, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.garden-card i {
  font-size: 2.6rem;
  color: #3f8f5b;
  margin-bottom: 1.2rem;
  transition: transform 0.35s ease;
}

.garden-card h5 {
  font-weight: 700;
  color: #2f6b3f;
  margin-bottom: 0.6rem;
}

.garden-card p {
  font-size: 0.9rem;
  color: #6f8f78;
  line-height: 1.5;
}

/* HOVER */
.garden-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(47, 107, 63, 0.22);
}

.garden-card:hover::before {
  opacity: 1;
}

.garden-card:hover i {
  transform: scale(1.1) rotate(-2deg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e1e1e;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  font-size: 14px;
}

.cookie-banner a {
  color: #7ed957;
  text-decoration: underline;
}

.cookie-buttons button {
  margin-left: 8px;
}
