/* Reset e base */
.banner-rotativo-container {
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f9f9f9;
    width: 100%;
    max-width: 100%;
}

/* Slides - CORREÇÃO IMPORTANTE: posição relativa para slides visíveis */
.slide-banner {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: none;
}

.slide-banner.active {
    opacity: 1;
    display: block;
}

.slide-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

.slide-banner a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

/* Navegação */
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev:hover, .banner-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Indicadores */
.banner-indicators {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.banner-indicator {
    display: inline-block;
    cursor: pointer;
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
    line-height: 1;
}

.banner-indicator.active {
    color: #0073aa;
    transform: scale(1.2);
}

.banner-indicator:hover {
    color: #005a87;
    transform: scale(1.1);
}

/* ========== RESPONSIVIDADE ========== */

/* Tablet (768px para baixo) */
@media (max-width: 768px) {
    .banner-rotativo-container {
        border-radius: 20px;
        height: var(--banner-altura-tablet, 300px) !important;
    }
    
    .banner-prev, .banner-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .banner-prev {
        left: 15px;
    }
    
    .banner-next {
        right: 15px;
    }
    
    .slide-banner img {
        border-radius: 20px;
    }
    
    .banner-indicators {
        margin-top: 12px;
    }
    
    .banner-indicator {
        font-size: 20px;
    }
}

/* Mobile (480px para baixo) */
@media (max-width: 480px) {
    .banner-rotativo-container {
        border-radius: 15px;
        height: var(--banner-altura-mobile, 200px) !important;
        margin: 15px auto;
    }
    
    .banner-prev, .banner-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
    
    .slide-banner img {
        border-radius: 15px;
    }
    
    .banner-indicators {
        margin-top: 10px;
        gap: 6px;
    }
    
    .banner-indicator {
        font-size: 18px;
    }
}

/* Mobile muito pequeno (360px para baixo) */
@media (max-width: 360px) {
    .banner-rotativo-container {
        height: 180px !important;
        border-radius: 12px;
    }
    
    .banner-prev, .banner-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .slide-banner img {
        border-radius: 12px;
    }
}

/* Acessibilidade - Melhorar contraste em modo alto contraste */
@media (prefers-contrast: high) {
    .banner-prev, .banner-next {
        background: rgba(0,0,0,0.8);
        border: 2px solid white;
    }
}

/* Reduzir movimento para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    .slide-banner {
        transition: opacity 0.1s ease;
    }
    
    .banner-prev, .banner-next,
    .banner-indicator {
        transition: none;
    }
}

/* Orientação paisagem em mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .banner-rotativo-container {
        height: 250px !important;
    }
}