/* Carrossel de Banners - Estilo Correios */

.bannersro {
    margin: 15px 0 80px 0;
    position: relative;
}






.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-item.active {
    opacity: 1;
}



.carousel-item img,
.carousel-item picture,
.banner-geral,
.banner-placeholder {
    max-width: 100%;
    height: auto;
    object-fit: none;
    display: block;
    background: transparent;
    border-radius: 0;
    margin: 0 auto;
    text-align: center;
}

/* Botões externos do carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #0073ab;
    border: 2px solid #004080;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
    outline: none;
}

.carousel-btn:hover {
    background-color: #004080;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

/* Responsividade para botões externos */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 48px;
        color: #999999;
        background-color: transparent;
        border: none;
    }
    
    .carousel-btn:hover {
        color: #666666;
        background-color: transparent;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
}



/* Responsividade */
@media (max-width: 768px) {
    .bannersro {
        margin: 150px 0 15px 0;
        position: relative;
    }
    

    

    
    .carousel-item {
        height: 240px;
        width: 600px;
    }
    
    .carousel-item img,
    .carousel-item picture,
    .banner-geral {
        width: 100%;
        height: 100%;
        object-fit: scale-down;
    }
    

}

@media (max-width: 480px) {
    .bannersro {
        margin: 100px 0 15px 0;
        position: relative;
    }
    
    .carousel-item {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    

    
    .carousel-item img,
    .carousel-item picture,
    .banner-geral {
        width: 300px !important;
        height: 150px !important;
        object-fit: scale-down !important;
        display: block !important;
    }
}