/* Correção rápida para responsividade em tablets */

/* Tablets em modo paisagem e portrait */
@media (min-width: 768px) and (max-width: 1024px) {
    
    /* ESCONDER COMPLETAMENTE o menu móvel em tablets */
    #mobile-menu,
    #mobile-menu.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
        pointer-events: none !important;
    }
    
    /* ESCONDER o botão hambúrguer em tablets */
    .mobile-menu-toggle,
    #mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* FORÇAR menu desktop a aparecer em tablets */
    header nav,
    header .main-menu,
    .desktop-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ajustar header para tablets */
    header {
        height: auto !important;
        min-height: 70px !important;
        padding: 10px 0 !important;
    }
    
    /* Ajustar container do header */
    header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important;
    }
    
    /* FORÇAR logo a aparecer em tablets */
    .logo,
    .left-section .logo,
    header .logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Logo responsivo para tablets */
    .logo img {
        height: 50px !important;
        width: auto !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Garantir que a seção esquerda apareça */
    .left-section {
        display: flex !important;
        align-items: center !important;
        visibility: visible !important;
    }
    
    /* Layout completo do header para tablets */
    header .container > div {
        display: flex !important;
        align-items: center !important;
    }
    
    /* Seção direita do header */
    .right-section {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    /* Navegação principal */
    nav,
    .main-nav {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Menu principal responsivo para tablets */
    .main-menu {
        display: flex !important;
        gap: 20px !important;
        font-size: 14px !important;
    }
    
    .main-menu a {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
    
    /* Botão "Informe-se agora" responsivo */
    .btn-informe-se {
        padding: 8px 16px !important;
        font-size: 13px !important;
        margin-left: 15px !important;
    }
    
    /* Seletor de idiomas responsivo */
    .language-selector {
        font-size: 13px !important;
    }
    
    /* Garantir que o body não tenha overflow hidden */
    body {
        overflow: auto !important;
    }
    
    /* Remover qualquer classe que possa estar bloqueando o scroll */
    body.menu-open {
        overflow: auto !important;
    }
}

/* Tablets em modo portrait específico */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .main-menu {
        gap: 15px !important;
        font-size: 13px !important;
    }
    
    .main-menu a {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
}

/* iPad Pro e tablets grandes */
@media (min-width: 1024px) and (max-width: 1366px) {
    #mobile-menu,
    #mobile-menu.active {
        display: none !important;
        visibility: hidden !important;
    }
    
    .mobile-menu-toggle,
    #mobile-menu-toggle {
        display: none !important;
    }
    
    header nav,
    header .main-menu {
        display: flex !important;
        visibility: visible !important;
    }
}
