/* =========================
   FOOTER SESI - PADRÃO PORTAL
========================= */
#rodape {
    width: 100%;
    margin-top: 30px;
    background:
        radial-gradient(circle at 12% 0%, rgba(81,173,50,.18), transparent 28%),
        linear-gradient(180deg, #223a63 0%, #182744 100%);
    color: #fff;
    font-family: "Inter", Arial, sans-serif;
}

#rodape * {
    box-sizing: border-box;
}

#rodape a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    display: inline-flex;
    transition: .22s ease;
}

#rodape a:hover {
    color: #9df07e;
    transform: translateX(4px);
    text-decoration: none;
}

#rodape .footer-wrapper {
    width: 100%;
}

#rodape .container-principal {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 230px;
    gap: 40px;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 54px 60px 38px;
}

#rodape .coluna-esquerda,
#rodape .coluna-central,
#rodape .coluna-direita {
    min-width: 0;
}

#rodape .titulo-secao {
    background: rgba(255,255,255,.08);
    border-left: 3px solid #52ae32;
    color: #fff;
    text-align: center;
    padding: 9px 10px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 6px;
}

#rodape .titulo-secao-secundario {
    margin-top: 14px;
}

#rodape .bloco {
    margin-bottom: 24px;
}

#rodape .corpo-secao {
    margin-top: 10px;
}

#rodape .linha {
    border-bottom: 1px solid rgba(255,255,255,.14);
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.35;
}

#rodape #menu-aba {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

#rodape #menu-aba button {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: .22s ease;
}

#rodape #menu-aba button:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-2px);
}

#rodape #menu-aba button.ativo {
    background: linear-gradient(135deg, #52ae32, #2f8f21);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(81,173,50,.24);
}

#rodape .aba-footer {
    display: none;
}

#rodape .aba-footer.ativa {
    display: block;
}

#rodape .bloco-grid,
#rodape .bloco-grid-2,
#rodape .bloco-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 26px;
}

#rodape .coluna-direita {
    display: flex;
    justify-content: flex-end;
}

#rodape .logos-rodape {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 220px;
}

#rodape .logos-rodape li {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 11px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .22s ease;
}

#rodape .logos-rodape li:hover {
    background: rgba(255,255,255,.10);
    transform: translateY(-3px);
}

#rodape .logos-rodape img {
    max-width: 170px;
    max-height: 44px;
    object-fit: contain;
    display: block;
}

#rodape .barra-inferior {
    width: 100%;
    background: rgba(255,255,255,.04);
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 20px 24px;
    text-align: center;
}

#rodape .barra-inferior::before {
    content: "";
    display: block;
    width: 150px;
    height: 2px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, #52ae32, transparent);
}

body.high-contrast #rodape .barra-inferior::before {
    background: linear-gradient(90deg, transparent, #FFD700, transparent) !important;
}

#rodape .barra-inferior p {
    margin: 0;
    line-height: 1.6;
    padding: 0 20px;
}

#rodape .linha-endereco {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
}

#rodape .linha-copyright {
    margin-top: 4px !important;
    font-size: 13px;
    color: rgba(255,255,255,.68);
}

/* =========================
   FOOTER RESPONSIVO
========================= */
@media (max-width: 1100px) {
    #rodape .container-principal {
        grid-template-columns: 1fr;
        padding: 44px 28px 34px;
    }

    #rodape .coluna-direita {
        justify-content: center;
    }

    #rodape .logos-rodape {
        width: 100%;
        max-width: 720px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    #rodape .logos-rodape li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    #rodape .container-principal {
        padding: 38px 18px 28px;
    }

    #rodape #menu-aba {
        grid-template-columns: 1fr;
    }

    #rodape .bloco-grid,
    #rodape .bloco-grid-2,
    #rodape .bloco-grid-3 {
        grid-template-columns: 1fr;
    }

    #rodape .logos-rodape {
        grid-template-columns: repeat(2, 1fr);
    }

    #rodape .linha-endereco {
        font-size: 13px;
    }

    #rodape .linha-copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #rodape .logos-rodape {
        grid-template-columns: 1fr;
    }
}