/* 🔹 HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url('../img/img21.webp') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

/* 🔹 Secció 2 de Manteniment */
.sec2-maint {
  background-color: white;
  scroll-margin-top: 80px;
}

.sec2-maint h2 {
  font-size: 3rem;
  color: var(--verd-clar);
  margin-bottom: 1rem;
  font-weight: 700;
}

.sec2-maint p,
.sec2-maint li {
  font-size: 1.5rem;
  color: var(--marro);
}

.sec2-maint ul li {
  margin-bottom: 0.75rem;
}

/* Card d’imatge a tota la amplada i alçada */
.maintenance-card {
  position: relative;
  width: 100%;
  min-height: 400px;
}

.maintenance-bg {
  position: absolute;
  inset: 0;
  background: url('../img/img23.webp') center center / cover no-repeat;
}

/* 🔹 SEC3-MAINT: Serveis específics de manteniment */
.sec3-maint {
  background-color: var(--blanc);
  scroll-margin-top: 80px;
}

.sec3-maint h2 {
  font-size: 3rem;
  color: var(--verd-clar);
  font-weight: 700;
}

.sec3-maint h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.sec3-maint .maint-box {
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--verd-clar);
}

.sec3-maint .maint-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-green);
}

.sec3-maint .maint-box i {
  transition: color 0.3s ease, transform 0.3s ease;
  color: var(--verd-clar);

}


.sec3-maint .maint-box h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sec3-maint .maint-box p {
  font-size: 1.2rem;
  color: var(--gris);
}

.sec4 h2{
  color: var(--verd-clar);
}

/* 🔹 SEC4-MAINT: CTA final */

.sec4-cta {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)),
              url('../img/img24.webp') center center / cover no-repeat;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.sec4-cta h2 {
  font-size: 3rem;
  font-weight: 700;
}

.sec4-cta p {
  font-size: 2rem;
  font-weight: 500;
  color: var(--blanc);
}


/* 🔹 RESPONSIVE */

@media (max-width: 767.98px) {
  .maintenance-card {
    min-height: 300px;
  }
}


@media (max-width: 575.98px) {
    .hero {
      background: url('../img/img21.webp') center center / cover no-repeat scroll;
      background-attachment: scroll;
      height: 100vh;
    }

    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }

    .sec2-maint h2 {
        font-size: 2rem;
    }

    .sec2-maint p,
    .sec2-maint li {
        font-size: 1.2rem;
    }
    .sec3-maint h2 {
        font-size: 2rem;
    }

    .sec3-maint h3 {
        font-size: 1.5rem;
    }

    .sec3-maint p {
        font-size: 1.2rem;
    }
    /* 🔹 SEC4 */
    .sec4-cta h2 {
        font-size: 2rem;
    }

    .sec4-cta p {
        font-size: 1.5rem;
    }
}