/* Hero Slider Responsive - Auto-ajuste por tipo de mídia */

.hero-slider-responsive,
#heroSlider {
    width: 100% !important;
    overflow: hidden !important;
}

/* Regra geral para telas grandes (aplicada imediatamente) */
@media (min-width: 1920px) {
    .hero-slider-responsive,
    #heroSlider,
    .hero-slider-responsive .owl-stage-outer,
    .hero-slider-responsive .owl-stage,
    .hero-slider-responsive .owl-item {
        height: 650px !important;
        min-height: 600px !important;
        max-height: 700px !important;
    }
}

/* Telas Ultra Large - 4K+, 5K, Ultrawide (≥2560px) */
@media (min-width: 2560px) {
    .hero-slider-responsive,
    #heroSlider {
        height: 750px !important;
        max-height: 800px !important;
        min-height: 700px !important;
    }
    
    .hero-slider-responsive .owl-item,
    .hero-slider-responsive .owl-stage-outer,
    .hero-slider-responsive .owl-stage {
        height: 750px !important;
        max-height: 800px !important;
        min-height: 700px !important;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 3.5rem !important;
        max-width: 1000px !important;
        line-height: 1.2 !important;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1.8rem !important;
        max-width: 800px !important;
        line-height: 1.4 !important;
    }
    
    .hero-slider-responsive .container {
        max-width: 1200px !important;
    }
}

/* Desktop Full HD+ (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559.98px) {
    .hero-slider-responsive,
    #heroSlider {
        height: 650px !important;
        max-height: 700px !important;
        min-height: 600px !important;
    }
    
    .hero-slider-responsive .owl-item,
    .hero-slider-responsive .owl-stage-outer,
    .hero-slider-responsive .owl-stage {
        height: 650px !important;
        max-height: 700px !important;
        min-height: 600px !important;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 3.2rem !important;
        max-width: 900px !important;
        line-height: 1.2 !important;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1.6rem !important;
        max-width: 700px !important;
        line-height: 1.4 !important;
    }
}

/* Telas Extra Large - 4K e Ultrawide (≥1600px) */
@media (min-width: 1600px) {
    .hero-slider-responsive {
        height: 80vh !important;
        max-height: 1000px;
        min-height: 700px;
    }
    
    .hero-slider-responsive .owl-item {
        height: 80vh;
        max-height: 1000px;
        min-height: 700px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 4rem;
        max-width: 1000px !important;
        line-height: 1.1;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 2rem;
        max-width: 800px !important;
        line-height: 1.4;
    }
}

/* Desktop Large - Notebooks 17" e Monitores Grandes (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .hero-slider-responsive {
        height: 75vh !important;
        max-height: 850px;
        min-height: 650px;
    }
    
    .hero-slider-responsive .owl-item {
        height: 75vh;
        max-height: 850px;
        min-height: 650px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 3.5rem;
        max-width: 900px !important;
        line-height: 1.2;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1.8rem;
        max-width: 750px !important;
    }
}

/* Desktop - Notebooks 15" (1200px - 1399px) - OTIMIZADO */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hero-slider-responsive {
        height: 520px !important; /* Altura perfeita para notebooks 15" */
    }
    
    .hero-slider-responsive .owl-item {
        height: 520px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 3rem;
        max-width: 800px !important;
        line-height: 1.2;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1.5rem;
        max-width: 600px !important;
    }
}

/* Laptop - Notebooks 13-14" (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-slider-responsive {
        height: 450px !important;
    }
    
    .hero-slider-responsive .owl-item {
        height: 450px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1.3rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-slider-responsive {
        height: 400px !important;
    }
    
    .hero-slider-responsive .owl-item {
        height: 400px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 2rem;
        line-height: 1.3;
        max-width: 90% !important;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1.1rem;
        max-width: 85% !important;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-slider-responsive {
        height: 350px !important;
    }
    
    .hero-slider-responsive .owl-item {
        height: 350px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 1.8rem;
        line-height: 1.2;
        max-width: 95% !important;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1rem;
        max-width: 90% !important;
    }
    
    .hero-slider-responsive .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* Mobile Large (≤575px) */
@media (max-width: 575.98px) {
    .hero-slider-responsive {
        height: 300px !important;
    }
    
    .hero-slider-responsive .owl-item {
        height: 300px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 1.5rem;
        line-height: 1.2;
        max-width: 95% !important;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 0.9rem;
        max-width: 95% !important;
        line-height: 1.3;
    }
    
    .hero-slider-responsive .mb-4 {
        margin-bottom: 0.8rem !important;
    }
}

/* Mobile Small (≤375px) */
@media (max-width: 375px) {
    .hero-slider-responsive {
        height: 280px !important;
    }
    
    .hero-slider-responsive .owl-item {
        height: 280px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 1.3rem;
        line-height: 1.1;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 0.85rem;
    }
}

/* Orientação landscape em dispositivos móveis */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-slider-responsive {
        height: 85vh !important;
        min-height: 250px;
    }
    
    .hero-slider-responsive .owl-item {
        height: 85vh;
        min-height: 250px;
    }
    
    .hero-slider-responsive .text-12 {
        font-size: 1.8rem;
    }
    
    .hero-slider-responsive .text-6 {
        font-size: 1rem;
    }
}

/* Ajustes gerais para todos os slides */
.hero-slider-responsive .owl-item {
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Melhorias de texto em diferentes resoluções */
.hero-slider-responsive .appear-animation {
    transition: all 0.3s ease;
}

/* Otimizações de performance para mobile */
@media (max-width: 767.98px) {
    .hero-slider-responsive .appear-animation {
        animation-duration: 0.5s !important;
    }
    
    .hero-slider-responsive .owl-nav button {
        width: 35px;
        height: 35px;
    }
    
    .hero-slider-responsive .owl-dots .owl-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Ajustes para telas muito altas */
@media (min-height: 900px) and (min-width: 1200px) {
    .hero-slider-responsive {
        height: 60vh !important;
        max-height: 700px;
    }
    
    .hero-slider-responsive .owl-item {
        height: 60vh;
        max-height: 700px;
    }
}

/* Ajustes para telas baixas - netbooks */
@media (max-height: 650px) and (min-width: 992px) {
    .hero-slider-responsive {
        height: 400px !important;
    }
    
    .hero-slider-responsive .owl-item {
        height: 400px;
    }
}