/*
Theme Name: Fab.i HU Theme
Theme URI: https://hu.uel.br/fabi
Author: V2E / Eder
Description: Tema customizado de alta performance.
Version: 1.5
*/

/* ==========================================================================
   1. VARIÁVEIS GLOBAIS - DESIGN SYSTEM FAB.I HU
   ========================================================================== */
:root {
    /* Dimensões Globais */
    --header-height: 100px; 

    /* FAB.I CYAN (Identidade principal) */
    --fabi-cyan-50:  #E5F5F8;
    --fabi-cyan-100: #C2E7ED;
    --fabi-cyan-300: #7ADBE6;
    --fabi-cyan-500: #29A0B6;
    --fabi-cyan-600: #218396;
    --fabi-cyan-700: #1B6979;
    --fabi-cyan-900: #0F3B44;

    /* OCEAN BLUE (Apoio Institucional) */
    --fabi-ocean-50:  #EBF2F6;
    --fabi-ocean-500: #2A6A8C;
    --fabi-ocean-700: #1C465C;
    --fabi-ocean-900: #0E232E;

    /* TECH AMBER (Alertas/Destaques) */
    --fabi-amber-50:  #FFF8ED;
    --fabi-amber-100: #FEE7C3;
    --fabi-amber-500: #F59E0B;
    --fabi-amber-600: #D97706;

    /* SLATE (Tipografia e Fundos) */
    --fabi-slate-50:  #F8FAFC;
    --fabi-slate-100: #F1F5F9;
    --fabi-slate-200: #E2E8F0;
    --fabi-slate-300: #CBD5E1;
    --fabi-slate-500: #64748B;
    --fabi-slate-600: #475569;
    --fabi-slate-800: #1E293B;
    --fabi-slate-900: #0F172A;

    /* SEMÂNTICA */
    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-error:   #EF4444;
    --status-white:   #FFFFFF;
    
    /* SOMBRAS (Elevations) */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-cyan: 0 8px 16px var(--fabi-cyan-100);
}

/* ==========================================================================
   2. RESET GERAL E TIPOGRAFIA BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--fabi-slate-600);
    background-color: var(--fabi-slate-50);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--fabi-slate-800);
    font-weight: 800;
    margin-top: 0;
}

/* Respiro global do conteúdo */
#conteudo-principal {
    padding-top: var(--header-height);
}

/* ==========================================================================
   3. HEADER PRINCIPAL (ESTADO INICIAL: TRANSPARENTE E ABERTO)
   ========================================================================== */
#fabi-header.site-header {
    position: fixed;
    top: 0; /* Começa colado no topo */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 5%; /* Respiro generoso no topo */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Correção da barra do WP logado no estado inicial */
body.admin-bar #fabi-header.site-header {
    top: 32px;
}

/* Container Transparente no Topo */
#fabi-header.site-header .header-container {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 0; /* Sem pílula no começo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none; /* Sem sombra no começo */
    transition: all 0.4s ease;
    flex-wrap: nowrap; 
    min-width: 0;
}

/* --------------------------------------------------------------------------
   ESTADO AO ROLAR (A MÁGICA DA PÍLULA)
   -------------------------------------------------------------------------- */
#fabi-header.site-header.is-scrolled {
    padding: 0 5%; /* Remove o padding externo excessivo */
    top: 20px; /* Desce para flutuar */
}

/* Correção da barra do WP logado ao rolar */
body.admin-bar #fabi-header.site-header.is-scrolled {
    top: 52px; /* 32px da barra + 20px de respiro */
}

/* A Pílula aparece! */
#fabi-header.site-header.is-scrolled .header-container {
    background-color: #ffffff;
    padding: 10px 30px;
    border-radius: 30px; /* Arredonda */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Ganha sombra */
}

/* --------------------------------------------------------------------------
   Elementos Internos do Header
   -------------------------------------------------------------------------- */
.site-branding {
    flex-shrink: 0;
    margin-right: 20px;
}

.custom-logo {
    max-height: 65px;
    width: auto;
    transition: all 0.3s ease;
}

/* Opcional: Logo levemente menor ao rolar */
#fabi-header.site-header.is-scrolled .custom-logo {
    max-height: 50px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #0f172a; 
    padding: 5px;
    flex-shrink: 0;
}

/* -- HEADER: DESKTOP (> 800px) -- */
@media (min-width: 992px) {
    .nav-group {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;
        gap: 20px;
        min-width: 0;
    }

    .main-navigation {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .nav-menu {
        display: flex;
        gap: 20px;
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 0;
    }

    .nav-menu li a {
        text-decoration: none;
        color: #0f172a; /* Texto escuro pois o hero agora é claro */
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.2s;
        white-space: nowrap !important;
    }

    .nav-menu li a:hover {
        color: var(--fabi-cyan-600);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
    }

    .social-links {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    .social-links a {
        color: #0f172a;
        opacity: 0.8;
        transition: all 0.2s;
        display: flex;
    }
    
    .social-links a:hover {
        opacity: 1;
        color: var(--fabi-cyan-600);
        transform: translateY(-2px);
    }

    .btn-cta {
        display: inline-block;
        background-color: var(--fabi-cyan-500);
        color: var(--status-white);
        padding: 10px 20px;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: background 0.2s;
        white-space: nowrap;
    }

    .btn-cta:hover {
        background-color: var(--fabi-cyan-600);
    }
}

/* -- HEADER: MOBILE (< 991px) -- */
@media (max-width: 991px) {
    #fabi-header.site-header .header-container {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        padding: 10px 20px;
        position: relative;
    }

    /* Força a pílula mais suave no mobile, mesmo no topo */
    #fabi-header.site-header {
        padding: 10px 5%;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .nav-group {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--status-white);
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 999;
        gap: 25px;
        margin-top: 10px;
    }

    .nav-group.is-open {
        display: flex !important;
    }

    .main-navigation { width: 100%; }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-menu li a {
        white-space: normal !important; 
        font-size: 1.1rem;
        padding: 10px;
        text-align: center;
        width: 100%;
        color: #0f172a;
        text-decoration: none;
        font-weight: 500;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 20px;
        align-items: center;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .social-links a { color: #0f172a; }

    .btn-cta {
        display: inline-block;
        background-color: var(--fabi-cyan-500);
        color: var(--status-white);
        padding: 12px 24px;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 600;
        width: auto;
        min-width: 180px;
        text-align: center;
    }
}

/* ==========================================================================
   4. HERO COVER (TEMA CLARO / ALINHADO À ESQUERDA)
   ========================================================================== */
.home-hero-cover {
    position: relative;
    width: 95%;
    min-height: 55vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    overflow: hidden;
}

.home-hero-cover .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); 
    background-image: none;
    z-index: 1;
}

.hero-content.ui-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    width: 95%;
}

.hero-inner-content {
    text-align: left;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: contentIn 0.8s ease-out both;
}

.home-hero-cover .hero-title {
    color: #0f172a;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.home-hero-cover .text-cyan { color: #0891b2; }

.home-hero-cover .hero-subtitle {
    color: #334155;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.home-hero-cover .hero-subtitle strong {
    color: #0f172a;
    font-weight: 800;
}

.hero-inner-content .ui-button-group {
    justify-content: flex-start;
    width: 100%;
    gap: 1rem;
}

.home-hero-cover .scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #0f172a;
    z-index: 2;
    animation: bounce 2s infinite;
}

@media (min-width: 992px) {
    .home-hero-cover .hero-content.ui-container {
        max-width: 95%; 
        padding-left: 3rem; 
    }
}

/* ==========================================================================
   5. UI KIT E COMPONENTES
   ========================================================================== */
.ui-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.ui-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.gray-section { background-color: var(--fabi-slate-100); }

.dark-section {
    background-color: var(--fabi-ocean-900);
    text-align: center;
    border-top: 1px solid var(--fabi-ocean-700);
    border-bottom: 1px solid var(--fabi-ocean-700);
}

.dark-section .ui-title-lg { color: var(--status-white); }
.ui-text-light { color: var(--fabi-slate-300); font-size: 1.15rem; line-height: 1.6; max-width: 700px; margin: 0 auto; }

.ui-title-lg {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--fabi-slate-800);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.ui-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.cyan-badge {
    background-color: var(--fabi-cyan-50);
    color: var(--fabi-cyan-700);
    border: 1px solid var(--fabi-cyan-300);
}

.ui-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ui-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--fabi-cyan-500);
    color: var(--status-white);
    box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
    background-color: var(--fabi-cyan-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px var(--fabi-cyan-100);
}

.btn-outline-white {
    border-color: #0f172a; 
    color: #0f172a;
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: #0f172a;
    color: var(--status-white);
    transform: translateY(-2px);
}

.btn-outline-cyan {
    background-color: transparent;
    border-color: var(--fabi-cyan-300);
    color: var(--fabi-cyan-300);
}

.btn-outline-cyan:hover {
    background-color: var(--fabi-cyan-300);
    color: var(--fabi-ocean-900);
    box-shadow: 0 0 20px rgba(122, 219, 230, 0.4);
}

.btn-ghost {
    background-color: var(--fabi-slate-50);
    color: var(--fabi-slate-600);
}

.btn-ghost:hover {
    background-color: var(--fabi-cyan-50);
    color: var(--fabi-cyan-600);
}

.ui-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ui-card {
    background-color: var(--status-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--fabi-slate-200);
    transition: all 0.3s ease;
}

.card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fabi-cyan-300);
}

.border-amber { border-top: 4px solid var(--fabi-amber-500); }

.card-icon {
    margin-bottom: 20px;
    display: inline-flex;
    padding: 15px;
    border-radius: 16px;
}

.cyan-icon { background: var(--fabi-cyan-50); color: var(--fabi-cyan-500); }
.ocean-icon { background: var(--fabi-ocean-50); color: var(--fabi-ocean-500); }
.amber-icon { background: var(--fabi-amber-50); color: var(--fabi-amber-500); }

.card-title {
    color: var(--fabi-slate-800);
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}

.card-text {
    color: var(--fabi-slate-600);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.ui-alerts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.ui-alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--fabi-slate-800);
    display: flex;
    align-items: center;
    border-left: 5px solid;
    box-shadow: var(--shadow-sm);
    background-color: var(--status-white);
}

.alert-success { border-color: var(--status-success); }
.alert-warning { border-color: var(--status-warning); }
.alert-error { border-color: var(--status-error); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes contentIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* ==========================================================================
   6. FOOTER (RODAPÉ) E PARCEIROS
   ========================================================================== */

.site-footer {
    background-color: var(--fabi-ocean-900);
    color: var(--fabi-slate-300);
    font-family: 'Inter', sans-serif;
}

/* --- 1. Mural de Parceiros (Logo Wall) --- */
.footer-partners {
    background-color: var(--status-white);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--fabi-slate-200);
}

.partners-title {
    color: var(--fabi-slate-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 40px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 60px; /* 40px vertical, 60px horizontal */
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo {
    max-height: 45px; /* Mantém todas as logos padronizadas na altura */
    max-width: 140px; /* Evita que logos compridas quebrem o grid */
    object-fit: contain;
    /* O Segredo: Deixa tudo em tons de cinza claro */
    filter: grayscale(100%) opacity(0.5) contrast(120%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo:hover {
    /* Retorna a cor original ao passar o mouse */
    filter: grayscale(0%) opacity(1) contrast(100%);
    transform: scale(1.05);
}

/* --- 2. Área Principal do Footer --- */
.footer-main {
    padding: 80px 20px 60px;
    border-top: 4px solid var(--fabi-cyan-500); /* Linha ciano separando */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-text {
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 400px;
}

.footer-heading {
    color: var(--status-white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links a, .footer-contact a {
    color: var(--fabi-slate-300);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--fabi-cyan-300);
}

/* --- 3. Barra de Copyright --- */
.footer-bottom {
    background-color: #08171f; /* Um tom ainda mais escuro que o Ocean-900 */
    padding: 20px;
    font-size: 0.85rem;
    text-align: center;
}

.footer-bottom .ui-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.6;
}

.developer-credit strong {
    color: var(--fabi-cyan-500);
}

/* --- Responsivo do Footer --- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Empilha as colunas no celular */
        text-align: center;
        gap: 40px;
    }

    .footer-text {
        margin: 0 auto;
    }

    .partners-grid {
        gap: 30px;
    }

    .partner-logo {
        max-height: 35px; /* Logos um pouco menores no celular */
    }

    .footer-bottom .ui-container {
        flex-direction: column;
        justify-content: center;
    }
}
/* ==========================================================================
   AJUSTES DO MENU DO RODAPÉ (WIDGETS)
   ========================================================================== */

/* Remove as bolinhas e zera o recuo da lista */
.footer-col ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Dá um respiro entre os links */
.footer-col ul li {
    margin-bottom: 10px; 
}

/* Formatação do link: cor branca e sem sublinhado */
.footer-col ul li a {
    color: #ffffff !important; 
    text-decoration: none !important;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Efeito ao passar o mouse (Hover) */
.footer-col ul li a:hover {
    opacity: 0.8; 
    /* Se quiser que o link fique com a cor do tema ao passar o mouse, 
       remova a linha de cima e use: color: var(--fabi-cyan-500) !important; */
}

/* ==========================================================================
   FIX MOBILE - Menu, Overflow, Footer
   ========================================================================== */

:root {
    --status-white: #ffffff;
}

/* Menu mobile - garantir que funciona */
@media (max-width: 991px) {
    .nav-group {
        display: none !important;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 5%;
        right: 5%;
        width: 90%;
        background: #ffffff;
        padding: 25px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        z-index: 9999;
        gap: 20px;
        margin-top: 8px;
    }
    
    .nav-group.is-open {
        display: flex !important;
    }

    #menu-toggle {
        display: block !important;
    }

    /* Prevenir overflow de texto */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .header-container {
        flex-wrap: nowrap !important;
        padding: 10px 15px !important;
    }

    .site-branding {
        flex-shrink: 0;
        max-width: 60%;
    }
    .site-branding img, .custom-logo {
        max-width: 100%;
        height: auto;
        max-height: 50px;
    }

    /* Footer mobile */
    .footer-grid {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .footer-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-institutions {
        flex-wrap: wrap !important;
    }
    .footer-institutions img {
        max-height: 35px !important;
        max-width: 45% !important;
    }

    .footer-logo {
        max-width: 200px !important;
    }

    /* Partners grid mobile */
    .partners-grid {
        gap: 15px 20px !important;
    }
    .partner-logo {
        max-height: 35px !important;
        max-width: 120px !important;
    }

    /* Footer bottom mobile */
    .footer-bottom .ui-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    /* Geral - prevenir overflow */
    img { max-width: 100%; height: auto; }
    table { max-width: 100%; overflow-x: auto; }
    .ui-container { max-width: 100%; overflow: hidden; padding: 0 15px; }

    /* Hero mobile */
    .home-hero-cover {
        width: 100% !important;
        min-height: auto !important;
        padding: 3rem 1rem !important;
    }
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        word-break: break-word;
    }
}

/* Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-group.is-open {
        left: 10%;
        right: 10%;
        width: 80%;
    }
    .partners-grid {
        gap: 20px 40px !important;
    }
}

/* ==========================================================================
   FIX MOBILE - Menu, Overflow, Footer
   ========================================================================== */

:root {
    --status-white: #ffffff;
}

/* Menu mobile - garantir que funciona */
@media (max-width: 991px) {
    .nav-group {
        display: none !important;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 5%;
        right: 5%;
        width: 90%;
        background: #ffffff;
        padding: 25px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        z-index: 9999;
        gap: 20px;
        margin-top: 8px;
    }
    
    .nav-group.is-open {
        display: flex !important;
    }

    #menu-toggle {
        display: block !important;
    }

    /* Prevenir overflow de texto */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .header-container {
        flex-wrap: nowrap !important;
        padding: 10px 15px !important;
    }

    .site-branding {
        flex-shrink: 0;
        max-width: 60%;
    }
    .site-branding img, .custom-logo {
        max-width: 100%;
        height: auto;
        max-height: 50px;
    }

    /* Footer mobile */
    .footer-grid {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .footer-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-institutions {
        flex-wrap: wrap !important;
    }
    .footer-institutions img {
        max-height: 35px !important;
        max-width: 45% !important;
    }

    .footer-logo {
        max-width: 200px !important;
    }

    /* Partners grid mobile */
    .partners-grid {
        gap: 15px 20px !important;
    }
    .partner-logo {
        max-height: 35px !important;
        max-width: 120px !important;
    }

    /* Footer bottom mobile */
    .footer-bottom .ui-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    /* Geral - prevenir overflow */
    img { max-width: 100%; height: auto; }
    table { max-width: 100%; overflow-x: auto; }
    .ui-container { max-width: 100%; overflow: hidden; padding: 0 15px; }

    /* Hero mobile */
    .home-hero-cover {
        width: 100% !important;
        min-height: auto !important;
        padding: 3rem 1rem !important;
    }
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        word-break: break-word;
    }
}

/* Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-group.is-open {
        left: 10%;
        right: 10%;
        width: 80%;
    }
    .partners-grid {
        gap: 20px 40px !important;
    }
}
