body, main {
    overflow-x: hidden !important;
}
body{
    background-color: #f2f2f2;
}
main{
    height: calc(100dvh - 88px);
}
main .swiper {
    width: 100%;
    height: 100%;
}
main .swiper .swiper-slide{
    display: flex;
    justify-content: center;
    position: relative;
}
main .swiper .swiper-slide picture,
main .swiper .swiper-slide img{
    overflow: hidden;
    /* transform: scale(1.5); */
    transform: scale(1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 2s ease-in-out;
}
main .swiper .swiper-slide .text{
    position: absolute;
    top: 225px;
    display: flex;
    flex-direction: column;
    row-gap: 17px;
}
main .swiper .swiper-slide .text h1,
main .swiper .swiper-slide .text h2{
    text-shadow: -5px 5px 10px #000;
    font-family: 'Lato' !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    width: 1200px;
    color: #fff;
    padding: 4px 15px;
    position: relative;
    z-index: 1;
}
main .swiper .swiper-slide .text h1:before,
main .swiper .swiper-slide .text h2:before{
    display: inline-flex;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--dourado);
    z-index: -1;
    left: 50%;
    transform: scaleX(0) translateX(-50%);
    transition: all 2s ease-in-out;
    transform-origin: right;
}
main .swiper .swiper-slide.swiper-slide-active .text h1:before{
    transform: scaleX(1) translateX(-50%) ;
}
main .swiper .swiper-slide.swiper-slide-active img{
    transform: scale(1);
}

.swiper .swiper-pagination-bullet{
    width: 23px !important;
    height: 23px !important;
    border: 2px solid #fff !important;
    background-color: transparent !important;
    margin: 0 7px !important;
    border-radius: 0% !important;
    cursor: pointer !important;
    opacity: 1 !important; /* Ensure the bullet is fully visible */
}
.swiper .swiper-pagination-bullet-active{
    border: 2px solid transparent !important;
    background-color: #fff !important;
}
section.diferenciais {
    position: relative;
    min-height: 866px;
    padding-top: 46px;
    padding-bottom: 41px;
}
section.diferenciais .cards-diferenciais{
    width: 1220px;
    z-index: 10;
    position: absolute;
    left: 50%;
    top: -80px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
section.diferenciais .cards-diferenciais .item{
    background-color: #cecece;
    overflow: hidden;
    cursor: pointer;
    width: 326px;
    height: 256px;
    position: relative;
    display: flex;
    color: var(--roxo);
    align-items: center;
    justify-content: center;
    text-align: center;
}
section.diferenciais .cards-diferenciais .item .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
section.diferenciais .cards-diferenciais .item:hover {
    background-color: var(--roxo);
    color: #cecece;
}
section.diferenciais .cards-diferenciais .item:hover .text p{
    height: fit-content;
    opacity: 1;
    transform: scaleY(1);
    padding-top: 22px;
}
section.diferenciais .cards-diferenciais .item .text p{
    margin: 0 auto;
    text-align: center;
    transition: all .3s ease-in-out;
    transform: scaleY(0);
    transform-origin: bottom;
    height: 0;
    width: 255px;
    opacity: 0;
    color: #cecece;
}
section.diferenciais .cards-diferenciais .item .text h3{
    text-transform: uppercase;
    font-size: 25px;
    font-family: 'Lato';
    font-weight: 600;
}
section.diferenciais h2#title-section{
    pointer-events: none !important;
    z-index: -1;
    transform: translateX(-23px);
    font-size: 180.83px;
    font-family: 'Lato';
    font-weight: 700;
    margin-top: 70px;
    text-align: center;
    margin-bottom: 20px;
    color: #dcdcdc;
}
section.diferenciais .top-grid{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
section.diferenciais .grid{
    width: 100%;
    height: 440px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(80px, 0.75fr) 1fr 1fr minmax(80px, 0.75fr);
    grid-template-areas:
    "image1 image1 image1 image2"
    "image3 image4 image4 image5";
}
section.diferenciais .grid .image{
    overflow: hidden;
    display: inline-flex;
}
section.diferenciais .grid .image:hover img{
    filter: none;
}
section.diferenciais .grid .image img{
    transition: all .3s ease-in-out;
    /*
    filter: grayscale(1) contrast(0.75);
    */
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section.diferenciais .grid .image1{
    grid-area: image1;
}
section.diferenciais .grid .image2{
    grid-area: image2;
}
section.diferenciais .grid .image3{
    grid-area: image3;
}
section.diferenciais .grid .image4{
    grid-area: image4;
}
section.diferenciais .grid .image5{
    grid-area: image5;
}
section.diferenciais .top-grid h3{
    font-size: 32.72px;
    font-family: 'Lato';
    color: var(--roxo);
}
section.diferenciais .top-grid h3 a{
    font-weight: 700;
}
section.servicos{
    position: relative;
    background-color: #6c2840;
    height: 326px;
}
section.servicos h2{
    font-size: 121.6px;
    font-family: 'Lato';
    font-weight: 700;
    color: #d2d2d2;
    z-index: 2;
}
section.servicos span{
    pointer-events: none;
    color: hsla(0, 0%, 50%, 0.103);
    z-index: 1;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 40px) scale(3.25);
    font-family: 'Lato';
    font-weight: 700;
    font-size: 120px;
}
section.servicos .cards-servicos{
    gap: 20px;
    position: absolute;
    display: flex;
    width: 1230px;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
    bottom: -80px;
    z-index: 3;
}
section.servicos .cards-servicos .card{
    width: 100%;
    height: 231px;
    background-color: #cecece;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s ease-out;
}
section.servicos .cards-servicos .card:hover{
    background-color: #666666;
    color: #fff;
}
section.servicos .cards-servicos .card h3{
    font-size: 26.06px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
section.news{
    margin-top: 170px;
}
section.news h2{
    text-align: left;
    font-weight: 500;
    font-size: 25px;
    color: var(--roxo);
}
section.news .wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
section.news .wrapper::before{
    z-index: -1;
    pointer-events: none;
    content: "";
    position: absolute;
    right: 150px;
    top: 50%;
    transform: translateY(-51%);
    width: 509px;
    height: 484px;
    background-image: url("../img/home/grade_news.webp");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
section.news .wrapper .swiper{
    width: 613px;
    height: 429px;
    margin-bottom: 11px !important;
    margin: 0;
    overflow: hidden;
}
section.news .wrapper .swiper .swiper-slide{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color_text);
}
section.news .wrapper .swiper .swiper-slide a{
    width: 100%;
    height: 100%;
    display: inline-flex;
}
section.news .wrapper .swiper .swiper-slide img,
section.news .wrapper .swiper .swiper-slide iframe{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section.news .wrapper .swiper .swiper-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s ease-in-out;
}
section.news .wrapper .image:hover img{
    transform: scale(1.15);
}
section.news .wrapper .text{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 90px;
    padding: 23px 20px;
    width: 650px;
    height: fit-content;
    margin-top: 84px;
    z-index: 1;
    transform: translateX(4px);
    border: 4px solid #696969;
    /* height: fit-content; */
}
section.news .wrapper h3{
    color: var(--roxo);
    font-size: 25px;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 0px;
}
section.news .wrapper h4{
    font-size: 16.67px;
    margin-bottom: 3px;
}
section.news .wrapper p{
    font-size: 16.67px;
}
section.news .wrapper .text .bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
section.news .wrapper .text .bottom h6{
    background-color: var(--roxo);
    color: #fff;
    font-size: 16.67px;
    padding: 3px 7px;
}
section.news .wrapper .text .bottom .asset{
    transform: translateX(-30px);
    display: flex;
    gap: 7px;
}
section.news .wrapper .text .bottom .asset span{
    background-color: var(--roxo);
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.swiper-pagination-fraction{
    font-family: 'Lato' !important;
    color: #fff !important;
    width: fit-content !important;
    margin: 0 auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}
.swiper-button-next, .swiper-button-prev{
    background-color: var(--roxo);
}
.swiper-button-next:after, .swiper-button-prev:after{
    font-size: 20px !important;
    color: #fff;
}

@media(max-width: 768px){
    main{
        height: 400px;
    }
    main .swiper .swiper-slide .text{
        top: 50%;
        padding: 0 15px;
        transform: translateY(-50%);
    }
    main .swiper .swiper-slide .text h1,
    main .swiper .swiper-slide .text h2{
        width: 100%;
        font-size: 1rem !important;
        transform: translateY(-50px);
    }
    main .swiper .swiper-slide .text h1:before,
    main .swiper .swiper-slide .text h2:before{
        opacity: 0.7;
    }
    main .swiper .swiper-slide img,
    main .swiper .swiper-slide picture{
        object-position: left;
    }
    section.diferenciais .cards-diferenciais {
        width: 100%;
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    section.diferenciais .cards-diferenciais .item{
        padding: 10px;
        width: 100%;
        transform: scale(0.9);
        flex-basis: 50%;
        background-color: var(--roxo);
        color: #cecece;
    }
    section.diferenciais .cards-diferenciais .item .text h3{
        /* font-size: 16.67px;         */
    }
    section.diferenciais .cards-diferenciais .item:last-child{
        flex-basis: 100%;
    }
    section.diferenciais .cards-diferenciais .item .text p{
        /* height: fit-content; */
        /* opacity: 1; */
        /* transform: scaleY(1); */
        /* padding-top: 22px; */
        width: 100% !important;
    }
    section.diferenciais h2#title-section{
        margin-top: 360px !important;
        transform: translateX(0px);
        margin: 0 auto;
        font-size: 50px;
    }
    section.diferenciais .top-grid{
        align-items: start;
        flex-direction: column;
        margin-bottom: 15px;
    }
    section.diferenciais .grid{
        grid-template-columns: none;
        grid-template-areas:
        "image1 image2"
        "image3 image4"
        "image5 image5";
    }
    section.servicos h2{
        font-size: 70px;
    }
    section.servicos span{
        transform: translate(-50%, -80px) scale(0.62);
    }
    section.servicos .cards-servicos{
        transform: translateX(-50%) scale(0.9);
        flex-wrap: wrap;
        width: 100%;
        bottom: -270px;
        justify-content: center;
    }
    section.servicos .cards-servicos .card{
        flex-basis: 47%;
    }
    section.servicos .cards-servicos .card h3{
        font-size: 20.83px;
    }
    section.news{
        margin-top: 300px;
    }
    section.news h2{
        padding-left: 0;
        margin-bottom: 20px;
    }
    section.news .wrapper{
        flex-direction: column-reverse;
    }
    section.news .wrapper::before{
        width: 100%;
        right: 0;
    }
    section.news .wrapper .swiper{
        width: 100%;
        height: 280px;
    }
    section.news .wrapper .swiper .swiper-slide{
        height: auto;
    }
    section.news .wrapper .text{
        transform: none;
        width: 100%;
        margin-top: 20px;
        row-gap: 30px;
    }
}
