footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    color: #FFF;
    font-family: var(--inter);
    padding: 226px 0 40px;
    height: 1150px;
    transition: 1s ease;
}

.footer-background {
    z-index: 1;
    position: absolute;
    bottom: 0;
    width: 100%;
}

@media (min-width: 1400px) {
    footer { overflow-y: hidden; }
    .footer-background { top: 0; }
}

#background-desk { display: block; }
#background-mob { display: none; }

.articles-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding: 0 163px;
    max-width: 1400px;
    margin: auto;
    z-index: 2;
}

.articles-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 50%;
    margin-top: 40px;
}

.footer-cases-info h2 {
    font-size: 60px;
    line-height: 72px;
    font-family: 'InterTight-Bold';
    color: #FFF;
}

.footer-cases-info p {
    font-size: 20px;
    line-height: 28px;
    font-family: 'InterTight-Regular';
    padding-top: 30px;
}

.btn-see-more-projects {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 26px;
    width: 330px;
    height: 52px;
    background-color: transparent;
    color: #FFF;
    font-family: 'InterTight-SemiBold';
    font-size: 22px;
    padding: 13px 23px;
    box-sizing: border-box;
}

.project-img-container {
    position: relative;
    width: 100%;
    height: 362px;
}

.project-img {
    width: 100%;
    max-width: 490px;
    min-width: 320px;
    box-shadow: 0px 30px 30px var(--color5);
    border: 2px solid var(--color22);
    border-radius: 40px;
}

.carousel-images {
    position: relative;
    width: 486px;
    height: 352px;
}

.carousel-image {
    position: absolute;
    width: 486px;
    height: 354px;
    border-radius: 40px;
    border: 2px solid #FFF6;
    box-shadow: 0px 30px 30px #00000033;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.8s;
    opacity: 0;
    z-index: 0;
}

.carousel-image:nth-child(1) { z-index: 4; transform: translateY(0); opacity: 1; left: calc(50% - 245px); }
.carousel-image:nth-child(2) { z-index: 3; transform: translateY(20px); left: calc(50% - 225px); width: 450px; opacity: 0.9; }
.carousel-image:nth-child(3) { z-index: 2; transform: translateY(40px); left: calc(50% - 205px); width: 410px; opacity: 0.7; }
.carousel-image:nth-child(4) { z-index: 1; transform: translateY(60px); left: calc(50% - 185px); width: 370px; opacity: 0.5; }

.carousel-pagination {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 49px;
    z-index: 999;
}

.dot {
    position: relative;
    width: 64px;
    height: 64px;
}

.dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid #FFF;
}

.dot.active, .dot.active img { width: 86px; height: 86px; opacity: 1; }

.contact-container-space-top {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 100%;
    height: 308px;
    padding: 0 60px;
    z-index: 2;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 19px 24px;
    max-width: 1280px;
    width: 100%;
    transition: 0.5s ease;
}

.call-to-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.call-to-action h3 {
    font-size: 28px;
    font-family: 'InterTight-SemiBold';
    color: #FFF;
}

.call-to-action span {
    font-size: 16px;
    font-family: 'InterTight-Regular';
    color: #FFF;
    text-align: left;
    width: 100%;
}

.footer-whatsapp-icon img { width: 72px; height: 72px; }

.footer-infos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: auto;
    z-index: 2;
    padding: 40px 60px 0;
}

.copyright {
    font-size: 16px;
    font-family: 'InterTight-Regular';
}

/*MOBILE*/
@media (max-width: 769px) {
    .footer-content-quemSomos {
        padding: 0px 20px;
    }

    .whatsapp-contact {
        height: 186px;
        position: relative;
    }

    .whatsapp-contact>div>h3 {
        font-size: 30px;
        max-width: 200px;
        text-align: left;
    }

    .whatsapp-contact> div > img {
        position: absolute;
        right: -10px;
        top: -20px;
        height: 140px;
        width: 140px;
        filter: drop-shadow(-15px 27px 18px rgba(0, 0, 0, 0.15));
    }

    .call-to-action {
        align-items: flex-start;
    }

    .footer-infos>nav {
        display: none;
    }
}

@media (min-width: 769px) {
    .footer-visible .whatsapp-contact > div > h3 {
        font-size: 46px;
        transition: all 0.3s ease-in-out;
    }
    
    .footer-visible .whatsapp-contact {
        height: 160px;
        position: relative; /* Certifique-se de que o elemento pai tenha posição relativa */
        transition: height 0.3s ease-in-out;
    }
    
    .footer-visible .whatsapp-contact > div > img {
        transform: scale(1.7);
        position: absolute;
        right: 80px;
        top: 0px;
        transition: transform 0.3s ease-in-out; /* Adiciona uma transição suave ao efeito de escala */
    }
    
    .footer-visible .whatsapp-contact > div > span {
        font-size: 30px;
        transition: font-size 0.3s ease-in-out;
    }    
    
}

@media (max-width: 769px) {
    footer {
        padding: 0px 20px 20px;
        height: fit-content;
        margin-top: 140px;
    }

    #background-desk { display: none; }
    #background-mob { display: block; }

    .articles-container {
        flex-direction: column-reverse;
        gap: 26px;
        padding: 0;
        margin-bottom: 28px;
        width: 100%;
    }

    .footer-cases-info h2 {
        font-size: 38px;
    }

    .footer-cases-info p {
        font-size: 16px;
        padding: 0;
        max-width: 320px;
        max-height: 108px;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 22px;
    }

    .articles-text {
        display: flex;
        flex-direction: column;
        /* gap: 16px; */
        width: 100%;
        /* margin: 0px; */
    }

    .footer-background {
        left: 0;
    }

    .carousel-pagination {
        justify-content: center;
    }

    .contact-container-space-top {
        height: auto;
        padding: 0;
    }

    .footer-infos {
        padding: 0;
    }

    .footer-infos > nav {
        display: none;
    }

    .project-img-container { height: 236px; }
    .project-img { max-width: 320px; border-radius: 30px; }

    .carousel-images { width: 100%; height: 320px; padding-top: 50px; }
    .carousel-image { width: 320px; height: 236px; border-radius: 30px; }

    .carousel-image:nth-child(1) { left: calc(50% - 160px); }
    .carousel-image:nth-child(2) { left: calc(50% - 147px); width: 294px; opacity: 0.9; }
    .carousel-image:nth-child(3) { left: calc(50% - 134px); width: 268px; opacity: 0.7; }
    .carousel-image:nth-child(4) { left: calc(50% - 120px); width: 240px; opacity: 0.5; }

    .dot { width: 46px; height: 46px; }
    .dot img { width: 46px; height: 46px; }

    .btn-see-more-projects {
        border-radius: 28px;
        width: 100%;
        height: 44px;
        font-size: 16px;
        padding: 11px 33px;
        margin-top: 14px;
    }

    .copyright {
       padding: 30px 0;
       width: 100%;
       text-align: center;
    }
}

