/* =================================================================== */
/* ========================== ESTRUTURA FOOTER ======================= */
/* =================================================================== */

.site-footer {
    background-color: #f0f2f5;
    padding: 60px 0 30px 0;
    font-size: 15px;
    color: var(--dark-text);
    border-top: 1px solid #e0e0e0;
}

.site-footer .footer-col {
    padding: 0 30px;
}

.site-footer .footer-logo img {
    max-height: 150px;
    width: auto;
    margin-bottom: 20px;
}

/* Títulos das Colunas (Estilo Acessível) */
.footer-titulo-acessivel {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

/* Links e Texto */
.site-footer p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.site-footer p i {
    color: var(--primary-blue);
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

.site-footer a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-blue);
}

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

.footer-links li {
    margin-bottom: 10px;
}

/* =================================================================== */
/* ================= REDES SOCIAIS (LAYOUT QUADRADO 2x2) ============= */
/* =================================================================== */

.footer-social {
    display: grid;
    /* Cria 2 colunas fixas de 40px */
    grid-template-columns: repeat(2, 40px);
    /* Espaço entre os ícones */
    gap: 12px;
    margin-top: 10px;
    width: max-content;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: #ffffff !important;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    background-color: var(--azul-mais-escuro);
    color: #ffffff !important;
}

/* =================================================================== */
/* ======================= BLOCOS DE CONTACTO ======================== */
/* =================================================================== */

.contact-blocks-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-block {
    flex: 1;
    min-width: 200px;
}

.contact-block strong {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--heavy-text);
}

/* =================================================================== */
/* ========================== CERTIFICADOS =========================== */
/* =================================================================== */

.certificados-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.cert-img {
    max-width: 45px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cert-img2 {
    max-width: 65px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cert-img3 {
    max-width: 40px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.cert-img:hover,
.cert-img2:hover,
.cert-img3:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* =================================================================== */
/* ======================= BARRA ACESSO RÁPIDO ======================= */
/* =================================================================== */

.quick-access-bar {
    padding: 30px 0;
    background-color: var(--bg-white);
}

.quick-access-bar a.item {
    display: block;
    padding: 10px;
    transition: transform 0.3s ease;
}

.quick-access-bar a.item:hover {
    transform: translateY(-8px);
}

.quick-access-bar a.item img {
    height: 150px;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.quick-access-slider .owl-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =================================================================== */
/* ========================= BARRA COPYRIGHT ========================= */
/* =================================================================== */

.footer-bottom {
    background-color: #e6e9ed;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.footer-bottom p {
    margin: 0;
}

/* =================================================================== */
/* ========================== RESPONSIVIDADE ========================= */
/* =================================================================== */

@media (max-width: 991px) {
    .site-footer .footer-col {
        padding: 0 15px;
        margin-bottom: 40px;
        text-align: center;
        /* Centra os títulos estruturais de cada coluna */
    }

    /* Garante o alinhamento centrado dos links das páginas legais */
    .footer-links {
        text-align: center;
        padding: 0;
    }

    /* Corrige o wrapper de contactos para manter a legibilidade à esquerda */
    .contact-blocks-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    /* Transforma a grelha 2x2 de ícones numa linha horizontal única e centrada */
    .footer-social {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 10px auto 0 auto !important;
        width: 100% !important;
        gap: 12px;
        /* Mantém o espaçamento uniforme entre os 4 botões */
    }
}

@media (max-width: 480px) {
    .certificados-center-container {
        gap: 15px;
    }

    .cert-img {
        max-width: 35px;
    }

    .cert-img2 {
        max-width: 55px;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px 0;
    border-top: 3px solid var(--primary-blue);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: var(--dark-text);
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cookie-reject {
    background: #eee;
    color: #555;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cookie-link {
    align-self: center;
    font-size: 14px;
    color: var(--primary-blue);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

.gestor-title {
    color: var(--heavy-text);
    font-weight: 700;
}

.section-divider {
    width: 70px;
    height: 4px;
    background-color: var(--primary-blue);
    margin-bottom: 30px;
    border-radius: 2px;
}

.cookie-card {
    transition: all 0.3s ease;
    border: 1px solid #eee !important;
}

.cookie-card:hover {
    border-color: var(--azul-claro) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Botões */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    color: #fff !important;
}

/* Switch/Interruptor Azul */
.form-check-input:checked {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}