:root {
    --width: 0;
    --margin: 0;
}

.own-carousel__outer {
    position: relative;
    overflow: hidden;
    user-select: none;
    padding: 2px;
}

.own-carousel__outer--noticia {
    position: relative;
    overflow: hidden;
    user-select: none;
    padding: 2px;
}

.own-carousel__container.own-carousel__container--noticias {
    padding: 0px 20px;
}

@media (max-width: 600px) {
    .own-carousel__outer--noticia {
        /*margin: 0px 40px;*/
    }
}

.own-carousel {
    display: flex;
}

.own-carousel__item {
    flex-shrink: 0;
    flex-basis: var(--width);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.own-carousel__item--noticia {
    flex-shrink: 0;
    flex-basis: var(--width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.own-carousel__item p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: calc(1.4em * 5.3);
    padding-bottom: 0.25em;
    font-family: var(--fonte-texto);
    font-weight: var(--peso-texto);
}



/*.own-carousel__container.own-servicos {
    --margin-left: 0 !important;
}*/

.own-carousel__item.own-carousel__item--servico:not(:first-child) {
    margin-left: var(--margin);
}

.hovereffect img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}


.own-carousel__container {
    position: relative;
}



.own-carousel__control{
    gap: 5px;
}

/******************* SERVIÇOS *****************/
.services-box {
    max-width: 180px;
    min-height: 180px;
    display: flex;
    align-items: center;
    /*    justify-content: center;*/
    padding: 20px 5px 5px 5px;
    text-align: center;
}


    .services-box svg {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
        object-fit: contain;
    }


    .services-box img {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
        object-fit: cover;
    }


.own-carousel__outer.services-center-content {
    position: relative;
    margin-top: 40px;
}

/* Reposiciona os botões */
.own-carousel__control.own-controls--service {
/*    position: absolute;
    top: 35%;
    left: -10px;
    transform: translateY(-50%);
    width: 102%;*/
    display: flex;
    /*justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 10;*/
}

/* Botões individuais */
.control-prev--service,
.control-next--service {
    /*border: 1px solid var(--cor-botao-slides);*/
    transition: transform 0.3s ease;
    color: #ccc;
}


    .control-prev--service:hover,
    .control-next--service:hover {
        color: var(--cor-botao-slides-hover); /* destaque ao passar o mouse */
    }

    .control-prev--service svg,
    .control-next--service svg {
        width: 30px;
        height: 30px;
        fill: currentColor;
        transition: transform 0.3s ease, fill 0.3s ease;
    }


    .control-prev--service:hover svg,
    .control-next--service:hover svg {
        transform: scale(1.1);
    }

.control-prev--service {
    /*transform: translateX(-20%);*/
}

.control-next--service {
    /*transform: translateX(20%);*/
}

@media (max-width: 992px) {
    .control-next--service {
        /*transform: translateX(35%);*/
    }
}

@media (max-width: 767px) {
    .control-prev--service {
        /*transform: translateX(-50%);*/
    }

    .control-next--service {
        /*transform: translateX(50%);*/
    }
}


@media (max-width: 450px) {
    .control-next--service {
        /*transform: translateX(75%);*/
    }
}

/* own-carousel__outer.services-center-content--service {
    position: relative;
    width: 100%;
    max-width: 1000px;
    }*/

/*.own-carousel__item.own-carousel__item {
    align-items: center;    
}*/

.widget-containerfull-widget[data-largura-completa="True"]
.own-carousel__control.own-controls--service {
    padding: 0 60px;
}

/*@media (min-width: 1201px) and (max-width: 1400px) {
    .services-box {
        min-height: 230px;*/
        /*max-height: 230px;*/
        /*max-width: 200px;
        gap: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 25px 10px 10px 10px;
        text-align: center;
    }


        .services-box svg {
            width: 65px;
            height: 65px;
            margin-bottom: 10px;
            object-fit: contain;
        }


        .services-box img {
            width: 65px;
            height: 65px;
            margin-bottom: 10px;
            object-fit: cover;
        }

    .own-carousel__item.own-carousel__item--servico {
        align-items: center;
        max-width: 235px;
    }

    .own-carousel__container[class^="own-servicos-"] {
        position: relative;
        display: flex;
    }

    .own-carousel__outer.services-center-content {
        position: relative;
        justify-content: center;
        display: flex;
        max-width: 912px;
    }

    .own-carousel.own-carousel__service {
        display: flex;
        max-width: 912px;
    }
}
*/

/*
@media (min-width: 767px) and (max-width: 992px) {
    .services-box {
        max-width: 160px;
        min-height: 160px;
        display: flex;
        align-items: center;
        padding: 15px 5px 5px 5px;
        text-align: center;
    }


        .services-box svg {
            width: 50px;
            height: 50px;
            margin-bottom: 15px;
            object-fit: contain;
        }


        .services-box img {
            width: 50px;
            height: 50px;
            margin-bottom: 15px;
            object-fit: cover;
        }
}*/
/*
    .own-carousel__item.own-carousel__item--servico {
        align-items: center;
    }

    .own-carousel__container[class^="own-servicos-"] {
        position: relative;
        display: flex;
    }

    .own-carousel__outer.services-center-content {
        position: relative;
        justify-content: center;
        display: flex;
        max-width: 800px;
    }

    .own-carousel.own-carousel__service {
        display: flex;
        max-width: 800px;
    }

    .control-prev--service {
        transform: translateX(-15%);
    }

    .control-next--service {
        transform: translateX(15%);
    }
}


@media (min-width: 651px) and (max-width: 991px) {
    .services-box {
        min-height: 210px;
        max-height: 210px;*/
        /*max-width: 200px;*/
        /*gap: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 30px 15px 15px 15px;
        text-align: center;
    }


        .services-box svg {
            width: 70px;
            height: 70px;
            margin-bottom: 10px;
            object-fit: contain;
        }


        .services-box img {
            width: 70px;
            height: 70px;
            margin-bottom: 10px;
            object-fit: cover;
        }

    .own-carousel__item.own-carousel__item--servico {
        align-items: center;*/
        /*max-width: 240px;*/
    /*}

    .own-carousel__container[class^="own-servicos-"] {
        position: relative;
        display: flex;
    }

    .own-carousel__outer.services-center-content {
        position: relative;
        justify-content: center;
        display: flex;
        max-width: 550px;
    }

    .own-carousel.own-carousel__service {
        display: flex;
        max-width: 550px;
    }

    .control-prev--service {
        transform: translateX(-15%);
    }

    .control-next--service {
        transform: translateX(15%);
    }
}

@media (min-width: 600px) and (max-width: 768px) {
    .own-carousel__control.own-controls--service {
        padding: 0 50px;
    }
}

@media (min-width: 500px) and (max-width: 599px) {
    .own-carousel__control.own-controls--service {
        padding: 0 40px;
    }
}

@media (min-width: 400px) and (max-width: 499px) {
    .own-carousel__control.own-controls--service {
        padding: 0 30px;
    }
}

@media (max-width: 399px) {
    .own-carousel__control.own-controls--service {
        padding: 0 20px;
    }
}*/


/******************* GALERIA DE IMAGENS *****************/


.card.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 0 !important;
    transition: transform 0.3s ease;
}

.own-carousel--imagem {
    display: flex;
    /*padding: 15px 15px 15px 0px;*/
    gap: 5px;
}

.own-carousel__item.own-carousel__item--imagem {
    display: flex;
}


.card.service-card img.img-fluid.anexos-resize {
    width: 100%;
    height: auto; /* <- remove a altura fixa */
    aspect-ratio: 16 / 9; /* <- padroniza o quadro, pode trocar p/ 4/3, 1/1, etc. */
    object-fit: cover; /* <- recorte consistente, inclusive para fotos quadradas */
    display: block;
    border-radius: 10px;
}


.card.service-card:hover img.img-fluid.anexos-resize {
    transform: scale(1.05);
}


.card.service-card .mt-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: bold;
    text-align: center;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}


.card .service-card .shadow-sm .h-100 .w-100 .p-2 {
    padding: 0px !important;
}

.own-carousel__outer--imagem {
    position: relative;
    overflow: hidden;
    user-select: none;
    padding: 10px 0px 2px 0px;
}

@media (min-width: 600px) and (max-width: 980px) {

    .own-carousel--imagem {
        gap: 10px;
    }
}

@media (max-width: 599px) {

    .own-carousel--imagem {
        gap: 0px;
    }

    .own-carousel__outer--imagem {
        padding: 10px 0px 0px 0px;
    }
}

/*========================================================
* Formatação do Dots para Carrossel
========================================================== */


.own-carousel__dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 20px;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: var(--cor-dots-carrossel);
    border-radius: 50%;
    cursor: pointer;    
    transition: opacity 0.3s;
}

    .carousel-dot.active {
        opacity: 1;
        background-color: var(--cor-dots-carrossel-hover);
    }

/*========================================================
* Carrossel Noticias
========================================================== */

.own-carousel__container--noticias {
    /*justify-items: flex-start;*/
}

.own-carousel__control.own-controls--noticia {
    /*position: absolute;
    top: 50%;
    left: 0;
    width: 100%;*/
    display: flex;
    /*justify-content: space-between;*/
    /*padding: 0 10px;*/
    /*transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;*/
}

.control-prev--noticia,
.control-next--noticia {
    pointer-events: all;
    /*border: 1px solid var(--cor-botao-slides);*/
    transition: transform 0.3s ease;
    color: #ccc;    
}

    .control-prev--noticia:hover,
    .control-next--noticia:hover {
        color: var(--cor-botao-slides-hover); /* destaque ao passar o mouse */
    }

    .control-prev--noticia svg,
    .control-next--noticia svg {
        width: 30px;
        height: 30px;
        fill: currentColor;
        transition: transform 0.3s ease, fill 0.3s ease;
    }


    .control-prev--noticia:hover svg,
    .control-next--noticia:hover svg {
        transform: scale(1.1);
    }



/* Estilo exclusivo para o carrossel de notícias */
.own-carousel__outer--noticia {
    position: relative;
    justify-content: center;
    /*max-width: 93%;*/
}

@media (max-width: 590px) {
    .own-carousel__outer--noticia {
        /*max-width: 89%;*/
    }
}

@media (min-width: 600px) and (max-width: 991px) {
    .own-carousel__outer--noticia {
        /*max-width: 89%;*/
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .own-carousel__outer--noticia {
        /*max-width: 91%;*/
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .own-carousel__outer--noticia {
        /*max-width: 92%;*/
    }
}


.own-carousel__container--noticias .own-carousel > * {
    flex-basis: var(--width);
    flex-shrink: 0;
    box-sizing: border-box;
    margin-right: var(--margin) !important;
}

    .own-carousel__container--noticias .own-carousel > *:last-child {
        margin-right: 0 !important;
    }


@media (max-width: 600px) {
    /* 1 card por tela, sem sobra */
    .own-carousel__container--noticias .own-carousel > * {
        flex-basis: 100% !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    /* zera o padding lateral do container para não “comer” 2px */
    .own-carousel__outer--noticia {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/*========================================================
* Carrossel Imagens
========================================================== */

.own-carousel__container--imagem {
    justify-items: center;
}

.own-carousel__control.own-controls--imagem {
    /*position: absolute;
    top: 50%;
    left: 0;
    width: 100%;*/
    display: flex;
    /*justify-content: space-between;*/
    /*padding: 0 10px;*/
    /*transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;*/
}

.control-prev--imagem,
.control-next--imagem {
    /*border: 1px solid var(--cor-botao-slides);*/
    transition: transform 0.3s ease;
    color: #ccc;
}

    .control-prev--imagem:hover,
    .control-next--imagem:hover {
        color: var(--cor-botao-slides-hover);
    }

    .control-prev--imagem svg,
    .control-next--imagem svg {
        width: 30px;
        height: 30px;
        fill: currentColor;
        transition: transform 0.3s ease, fill 0.3s ease;
    }


    .control-prev--imagem:hover svg,
    .control-next--imagem:hover svg {
        transform: scale(1.1);
    }

.own-carousel__item--imagem .mt-1 h5 {
    color: #FFF !important;
}

@media (max-width: 991.98px) {

    .own-carousel__item--imagem .mt-1 h5 {
        font-size: 1rem;
    }
}


    /* Estilo exclusivo para o carrossel de notícias */
    /*.own-carousel__outer--noticia {
    position: relative;
    justify-content: center;
    max-width: 93%;
}

@media (max-width: 590px) {
    .own-carousel__outer--noticia {
        max-width: 89%;
    }
}

@media (min-width: 600px) and (max-width: 991px) {
    .own-carousel__outer--noticia {
        max-width: 89%;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .own-carousel__outer--noticia {
        max-width: 91%;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .own-carousel__outer--noticia {
        max-width: 92%;
    }
}*/


