<style>
/* ===================================
   MELHORIAS DE RESPONSIVIDADE MOBILE
   Aplicadas em: 2026-01-18
   =================================== */

/* Garantir que TODAS as imagens sejam responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Prevenir overflow horizontal em mobile */
body {
    overflow-x: hidden;
}

/* Melhorar touch targets em mobile */
@media (max-width: 767px) {
    /* Botões e links clicáveis */
    .btn,
    a.btn,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    /* Carousel arrows maiores em mobile */
    .slick-arrow {
        width: 44px !important;
        height: 44px !important;
    }
    
    /* Espaçamento entre elementos tocáveis */
    .carousel-box {
        padding: 4px;
    }
    
    /* Live Conference - Video responsivo */
    #home-live-training .embed-responsive {
        min-height: 200px;
    }
    
    /* Shorts - Cards maiores em mobile */
    .shorts-card {
        min-height: 280px;
    }
    
    /* Featured Categories - Tamanho adequado */
    .home-category-banner {
        min-width: 100px;
    }
    
    /* Texto legível */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1, .h1 { font-size: 24px; }
    h2, .h2 { font-size: 20px; }
    h3, .h3 { font-size: 18px; }
    h4, .h4 { font-size: 16px; }
    h5, .h5 { font-size: 14px; }
    
    /* Padding lateral consistente */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Live Purchase Counter - Compacto em mobile */
    .live-purchase-counter-widget {
        padding: 15px 0;
        margin: 15px 0;
    }
    
    .counter-number {
        font-size: 32px !important;
    }
    
    .counter-icon i {
        font-size: 36px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    /* Live Conference - Layout otimizado para tablet */
    #home-live-training .col-lg-8 {
        flex: 0 0 65%;
        max-width: 65%;
    }
    
    #home-live-training .col-lg-4 {
        flex: 0 0 35%;
        max-width: 35%;
    }
}

/* Landscape mobile */
@media (max-width: 767px) and (orientation: landscape) {
    /* Video player ocupa mais espaço em landscape */
    #home-live-training .embed-responsive {
        min-height: 250px;
    }
    
    /* Chat fica menor em landscape */
    #home-live-training .home-chat-col {
        min-height: 250px !important;
    }
}

/* Prevenir zoom em inputs em iOS */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Smooth scroll para mobile */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Carousels com scroll suave */
    .slick-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Garantir que modals sejam fullscreen em mobile */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    
    .modal-content {
        height: 100%;
        border-radius: 0;
    }
}

/* Performance: GPU acceleration para animações */
.has-transition,
.hov-scale-img img,
.slick-slide {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Prevenir text selection em elementos interativos */
.slick-arrow,
.btn,
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Melhorar performance de scroll */
* {
    -webkit-overflow-scrolling: touch;
}

/* Safe area para iPhones com notch */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}
</style>
