/* ==================================================
   FOOTER — ANCESGEN (VERSÃO CORRIGIDA)
================================================== */

.ancesgen-footer {
    max-width: 1450px;
    margin: 0 auto;
    padding: 20px 20px 40px; /* 20px nas laterais para não grudar */
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    clear: both; /* Garante que nada suba para o rodapé */
}

/* DIVISOR */
.ancesgen-footer .institucional-divisor {
    height: 2px;
    background: #000;
    margin-bottom: 20px;
    width: 100%;
}

/* ÁREA DOS LOGOS - O segredo para não acavalar */
.footer-logos {
    display: flex;
    justify-content: space-between; /* Empurra um grupo para cada lado */
    align-items: center;
    flex-wrap: nowrap; /* Impede que subam uns nos outros */
    width: 100%;
}

.footer-logo-left {
    flex-shrink: 0; /* Impede a logo da UFRGS de ser espremida */
}

.footer-logo-left img {
    width: 95px;
    height: auto;
}

/* CONJUNTO DA DIREITA */
.footer-logos-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Espaço entre cada logo da direita */
    flex-shrink: 0;
}

.footer-logos-right img {
    width: auto;
    height: 45px; /* Altura fixa para alinhar todos horizontalmente */
    max-width: 100px;
    object-fit: contain;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-logos {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-logos-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}