.hero {
    position: relative;
    height: 100vh;
    background: url('../img/img1.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: 6rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

/* 🔹 Seccions generals */
.sec2, .sec3, .sec4, .sec5, .sec6 {
    scroll-margin-top: 80px;
}

/* 🔹 SEC2 */
.sec2 h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--verd-clar);
}

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

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

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

.sec3 .servei-card {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    text-align: center;
    color: #fff;
}

.sec3 .servei-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-green);
}

.sec3 .servei-content {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    transition: background 0.3s ease;
}

.sec3 .servei-card h5 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-decoration: underline var(--verd-clar);
}

.sec3 .servei-card p {
    font-size: 1.5rem;
    color: var(--blanc);
    margin-bottom: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.sec3 .servei-card:hover p {
    opacity: 1;
    max-height: 200px;
}

.sec3 a{
    text-decoration: none;
}

/* 🔹 SEC4 */

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

.sec4 .valor-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem 1rem;
    margin: 0.5rem 0;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sec4 .valor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-green);
}

.sec4 .valor-card .icon {
    font-size: 2.5rem;
    color: var(--verd-clar);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}


.sec4 .valor-card h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--marro);
    text-decoration: underline var(--verd-clar);
}

.sec4 .valor-card p {
    font-size: 1.2rem;
    color: var(--gris);
}
  

/* 🔹 SEC5 */

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

.sec5 .blockquote {
    font-style: italic;
    border-left: 5px solid var(--verd-clar);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gris);
}

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

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

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




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

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        font-weight: 600;
    }

    /* 🔹 SEC2 */
    .sec2 h2{
        font-size: 2rem;
    }
    .sec2 p{
        font-size: 1.2rem;
    }

    /* 🔹 SEC3 */
    .sec3 h2 {
        font-size: 2rem;
    }

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

    .sec3 .servei-card {
        height: 200px;
    }
    .sec3 .servei-card h5 {
        font-size: 1.5rem;
    }
    .sec3 .servei-card p {
        font-size: 1.2rem;
    }

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

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


    /* 🔹 SEC6 */
    .sec6-cta h2 {
        font-size: 2rem;
    }

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