/* Hero */
.hero-qui-som {
  height: 100vh;
  background: url('../img/img39.webp') center center / cover no-repeat;
  position: relative;
}
.hero-qui-som .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-qui-som .container {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

/* 🔹 SEC2 */
.sec2{
    padding-top: 150px;
    padding-bottom: 150px;
    background-color: white;
}
.sec2 h2{
    color: var(--verd-clar);
    font-weight: 700;
    font-size: 3rem;
    
}
.sec2 h3{
    font-weight: 400;
    font-size: 2rem;
}

.sec2 p{
    font-size: 1.2rem;
}

/* 🔹 SEC3 */
.sec3{
    padding-top: 150px;
    padding-bottom: 150px;
    background-color: #f8f9fa;
}
.sec3 h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--verd-clar);
}

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

.sec3 i {
  color: var(--verd-clar);
  font-size: 3rem;
}

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

.sec3 p{
    font-size: 1.2rem;
}


/* 🔹 SEC4 - Portafoli de projectes */
.sec4{
  background-color: white;
}
.sec4 h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--verd-clar);
}

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

/* 🔹 Botons de filtre */
.filter-btn {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  margin: 0.3rem;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  border: 2px solid var(--verd-clar);
  background-color: transparent;
  color: var(--verd-clar);
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--verd-clar);
  color: white;
  border-color: var(--verd-fosc);
}

/* 🔹 Portafoli imatges */
.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-green);
}

/* 🔹 Ocultació d’elements (fet per JS) */
.portfolio-item.hidden {
  opacity: 0 !important;
  transform: scale(0.95);
  pointer-events: none;
  display: none;
}



/* 🔹 SEC5 CTA final */

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

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

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



/* 🔹 Modal d’imatge ampliada */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 2rem;
  flex-direction: column;
}

.image-modal-content {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: var(--shadow-green);
  animation: zoomIn 0.4s ease;
  margin-bottom: 1rem;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
  transition: 0.3s;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 0.3rem 0.7rem;
  line-height: 1;
}

.image-modal-close:hover {
  color: var(--verd-clar);
}

/* 🔹 Animació d’entrada */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* 🔹 Animació d’entrada */
@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}



@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }

    /* 🔹 SEC2 */
    .sec2{
        padding-top: 50px;
        padding-bottom: 50px
    }
    .sec2 h2{
        font-size: 2rem;
    }
    .sec2 h3{
        font-size: 1.5rem;
    }
    .sec2 p{
        font-size: 1rem;
    }
    /* 🔹 SEC3 */
    .sec3{
        background-color: #f8f9fa;
    }
    .sec3 h2 {
        font-size: 2rem;
    }

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

    .sec3 p {
        font-size: 1.2rem;
    }

    /* 🔹 SEC4 */
    .sec4 h2 {
        font-size: 2rem;
    }

    .sec4 h3 {
        font-size: 1.5rem;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    /* 🔹 SEC5 */
    .sec5-cta h2 {
        font-size: 2rem;
    }

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

   
}