@import url("config.css");

.carousel {
    position: relative;

    width: 100%;

    overflow: hidden;
}

.carousel-container {
    margin-top: 3rem;

    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-post {
    flex: 0 0 100%;
    display: flex;
    justify-content: space-between;
    align-items: inherit;
    font-size: 2rem;
}

.carousel-mobile-post {
    display: flex;
    align-items: initial;
    justify-content: space-between;
    gap: 20px;
    overflow: auto;
}

.service__box {
    flex: 1;

    max-width: 29%;
    height: 32rem;

    padding: 5rem 3rem;

    border-radius: .5rem;

    transition: .4s;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    position: relative;

}

.service__box:nth-child(1) {
    background-image: url(../assets/Foto\ Rasslan.svg);
    backdrop-filter: grayscale(0.5);
}


.carousel-post:nth-child(1) .service__box:nth-child(2) {
    background-image: url(../assets/Foto\ vitor.svg);
}

.carousel-post:nth-child(2) .service__box:nth-child(1) {
    background-image: url(../assets/Foto\ Dayane.svg);
}




.carousel-mobile .carousel-mobile-post .service__box:nth-child(2) {
    background-image: url(../assets/Foto\ vitor.svg);
}


.carousel-mobile .carousel-mobile-post .service__box:nth-child(4) {
    background-image: url(../assets/Foto\ Dayane.svg);
}


.cover__equipe {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    z-index: 2;
}

section#equipe .service__box h3 {
    font-size: 2.2rem;
    text-transform: uppercase;
    font-family: var(--title-font);
    text-align: center;
    margin-top: 210px;
    color: var(--primary-color);
    z-index: 4;
}

section#equipe .service__box h5 {
    font-size: 1.8rem;
    text-transform: uppercase;
    font-family: var(--title-font);
    text-align: center;
    color: var(--light-text-color);
    z-index: 7;
}

#prevBtn,
#nextBtn {
    cursor: pointer;

    margin-left: 1.5rem;
}

@media (max-width: 769px) {

    #prevBtn,
    #nextBtn {
        display: none;
    }

    .service__box {
        max-width: 80%;
        margin-top: 4rem;
        text-align: center;

        background-position: center;
    }

    h3 {
        text-align: center;
        padding-top: 3px;
    }

    P {
        padding-top: 4px;
        text-align: center;
    }

    section#equipe .service__box h3 {
        font-size: 1.8rem;
        text-transform: uppercase;
        font-family: var(--title-font);
        text-align: center;
        margin-top: 210px;
        color: var(--primary-color);
    }

}

@media (max-width: 620px) {
    .service__box {
        flex: 0 0 auto;
        max-width: 100%;
    }

    section#equipe .service__box:first-child {
        margin-left: 2rem;
        /* ajuste este valor conforme necessário */
    }

    section#equipe .service__box:last-child {
        margin-right: 2rem;
        /* ajuste este valor conforme necessário */
    }


}

@media (max-width: 320px) {

    .service__box {
        flex: 0 0 auto;
        max-width: 100%;
    }

    section#equipe .service__box:first-child {
        margin-left: 2rem;
        /* ajuste este valor conforme necessário */
    }
}