/* Banner Mobile Fixes - Correções específicas para o banner mobile */

/* Controle de imagens desktop/mobile - movido para o final do arquivo */

/* 1. BANNER MOBILE CORRIGIDO */
.hero_bg_box {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero_bg_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    max-height: 100%;
    max-width: 100%;
}

/* Mobile - altura menor para não mostrar parte de baixo */
@media (max-width: 768px) {
    .hero_bg_box {
        height: 50vh;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .hero_bg_box {
        height: 40vh;
        overflow: hidden;
    }
}

@media (max-width: 320px) {
    .hero_bg_box {
        height: 35vh;
        overflow: hidden;
    }
}

.hero_bg_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Mobile geral - forçar posicionamento */
@media (max-width: 768px) {
    .hero_bg_box {
        overflow: hidden;
    }
}

/* Mobile específico para posicionamento da imagem */
@media (max-width: 768px) {
    .hero_bg_box img {
        object-position: center center;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .hero_bg_box img {
        object-position: center center;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 320px) {
    .hero_bg_box img {
        object-position: center center;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 2. HERO CONTENT MOBILE */
.hero_area .detail-box {
    position: relative;
    z-index: 10;
    background: rgba(75, 0, 130, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 30px 25px;
    margin: 20px 15px;
    box-shadow: 0 15px 40px rgba(75, 0, 130, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero_area .detail-box h1 {
    color: #e0aaff !important;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.hero_area .detail-box p {
    color: #f0e6ff !important;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.hero_area .btn1 {
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
    color: white !important;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero_area .btn1:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.6);
    color: white !important;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
}

/* 3. RESPONSIVIDADE MOBILE */

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    .hero_bg_box {
        min-height: 500px;
    }
    
    .hero_area .detail-box {
        padding: 25px 20px !important;
        margin: 15px 10px !important;
        border-radius: 20px !important;
        background: rgba(75, 0, 130, 0.85) !important;
    }
    
    .hero_area .detail-box h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        color: #d8b4fe !important;
    }
    
    .hero_area .detail-box p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
        color: #e9d5ff !important;
    }
    
    .hero_area .btn1 {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
        border-radius: 20px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Mobile médio (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero_bg_box {
        min-height: 600px;
    }
    
    .hero_area .detail-box {
        padding: 30px 25px !important;
        margin: 20px 15px !important;
        background: rgba(75, 0, 130, 0.8) !important;
    }
    
    .hero_area .detail-box h1 {
        font-size: 2rem !important;
        color: #d8b4fe !important;
    }
    
    .hero_area .detail-box p {
        font-size: 1.05rem !important;
        color: #e9d5ff !important;
    }
    
    .hero_area .btn1 {
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
    }
}

/* Mobile muito pequeno (até 320px) */
@media (max-width: 320px) {
    .hero_bg_box {
        min-height: 400px;
    }
    
    .hero_area .detail-box {
        padding: 20px 15px !important;
        margin: 10px 8px !important;
        border-radius: 18px !important;
        background: rgba(75, 0, 130, 0.9) !important;
    }
    
    .hero_area .detail-box h1 {
        font-size: 1.6rem !important;
        color: #d8b4fe !important;
        margin-bottom: 12px !important;
    }
    
    .hero_area .detail-box p {
        font-size: 0.9rem !important;
        color: #e9d5ff !important;
        margin-bottom: 18px !important;
    }
    
    .hero_area .btn1 {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        border-radius: 18px !important;
        letter-spacing: 0.3px !important;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero_bg_box {
        min-height: 700px;
    }
    
    .hero_area .detail-box {
        padding: 40px 35px !important;
        margin: 30px 25px !important;
        background: rgba(75, 0, 130, 0.75) !important;
    }
    
    .hero_area .detail-box h1 {
        font-size: 2.5rem !important;
        color: #d8b4fe !important;
    }
    
    .hero_area .detail-box p {
        font-size: 1.2rem !important;
        color: #e9d5ff !important;
    }
    
    .hero_area .btn1 {
        padding: 18px 35px !important;
        font-size: 1.1rem !important;
    }
}

/* 4. CORREÇÕES ESPECÍFICAS */
.hero_area {
    position: relative;
    overflow: hidden;
}

.hero_area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.hero_area .detail-box {
    position: relative;
    z-index: 10;
}

/* 5. GARANTIR QUE A IMAGEM SEJA VISÍVEL - APENAS QUANDO DEVE SER MOSTRADA */
.hero_bg_box .banner-desktop {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
}

.hero_bg_box .banner-mobile {
    display: none !important;
}

@media (max-width: 568px) {
    .hero_bg_box .banner-desktop {
        display: none !important;
    }
    
    .hero_bg_box .banner-mobile {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        filter: none !important;
    }
    
    /* Mostrar setas no mobile */
    .hero_area .carousel_btn-box,
    .slider_section .carousel_btn-box {
        display: flex !important;
        background: rgb(0, 0, 0) !important;
        border-radius: 25px !important;
        padding: 10px !important;
        position: absolute !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 15 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Mostrar indicadores com fundo preto no mobile */
    .carousel-indicators,
    .carousel-indicators-custom {
        display: flex !important;
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        gap: 8px !important;
    }
    
    .carousel-indicators [data-bs-target],
    .carousel-indicators-custom .carousel-indicator {
        width: 16px !important;
        height: 16px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 3px solid rgba(255, 255, 255, 0.8) !important;
        margin: 0 !important;
        padding: 0 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    
    .carousel-indicators [data-bs-target].active,
    .carousel-indicators-custom .carousel-indicator.active {
        background: black !important;
        border: 3px solid white !important;
        transform: scale(1.2) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Diminuir espaçamento entre banner e serviços */
    .slider_section {
        padding: 20px 0 !important;
    }
    
    .service_section,
    .product_section,
    .client_section {
        padding: 30px 0 !important;
    }
    
    /* Setas dos serviços com cor igual ao banner */
    .service_section .carousel_btn-box,
    .product_section .carousel_btn-box,
    .client_section .carousel_btn-box {
        background: black !important;
        border-radius: 25px !important;
        padding: 10px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Mostrar 2 serviços no mobile */
    .service_section .owl-carousel .owl-item {
        width: 50% !important;
        float: left !important;
    }
    
    .service_section .owl-carousel .owl-stage {
        display: flex !important;
    }
    
    .service_section .owl-carousel .owl-stage-outer {
        overflow: visible !important;
    }
    
    /* Foto do cliente na frente com altura ajustada */
    .client_section .client_owl-carousel .owl-item .box {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .client_section .client_owl-carousel .owl-item .box .img-box {
        position: relative !important;
        z-index: 10 !important;
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }
    
    .client_section .client_owl-carousel .owl-item .box .img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: relative !important;
        z-index: 11 !important;
    }
    
    .client_section .client_owl-carousel .owl-item .box .detail-box {
        position: relative !important;
        z-index: 1 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 15px !important;
        border-radius: 10px !important;
        flex: 1 !important;
        order: 2 !important;
        margin-left: 10px !important;
    }
}

/* Estilos para desktop - manter layout original mas com foto na frente */
@media (min-width: 768px) {
    .client_section .client_owl-carousel .owl-item .box {
        position: relative !important;
        display: block !important;
        text-align: center !important;
    }
    
    .client_section .client_owl-carousel .owl-item .box .img-box {
        position: relative !important;
        z-index: 10 !important;
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        margin: 0 auto 20px auto !important;
        order: unset !important;
    }
    
    .client_section .client_owl-carousel .owl-item .box .img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: relative !important;
        z-index: 11 !important;
    }
    
    .client_section .client_owl-carousel .owl-item .box .detail-box {
        position: relative !important;
        z-index: 1 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 20px !important;
        border-radius: 10px !important;
        order: unset !important;
        margin-left: 0 !important;
    }
}