/* =================================================================== */
/* ESTILOS PARA A PÁGINA DE CONTEÚDO GENÉRICO (ex: Quem Somos)
/* =================================================================== */

/* --- Secção de conteúdo principal --- */
.conteudo-principal-texto,
.texto-central-conteudo {
    color: var(--dark-text, #555);
    font-size: 1.2rem;
    line-height: 1.8;
    /* Ajuste para melhor legibilidade */
    text-align: justify;
    margin-bottom: 40px;
}

/* Mantém o layout de 2 colunas apenas para o bloco "texto_rico" */
@media (min-width: 992px) {
    .conteudo-principal-texto {
        column-count: 2;
        column-gap: 50px;
    }
}

/* --- ESTILOS GERAIS PARA ELEMENTOS DO CKEDITOR --- */

.conteudo-principal-texto p,
.texto-central-conteudo p {
    margin-bottom: 1.5em;
}

.conteudo-principal-texto h1,
.texto-central-conteudo h1,
.conteudo-principal-texto h2,
.texto-central-conteudo h2,
.conteudo-principal-texto h3,
.texto-central-conteudo h3 {
    color: var(--heavy-text, #4a4a4a);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: left;
    /* Títulos geralmente ficam melhor alinhados à esquerda */
    break-before: column;
    /* Impede que um título comece no final de uma coluna */
}

.conteudo-principal-texto ul,
.texto-central-conteudo ul,
.conteudo-principal-texto ol,
.texto-central-conteudo ol {
    padding-left: 25px;
    margin-bottom: 1.5em;
}

.conteudo-principal-texto li,
.texto-central-conteudo li {
    margin-bottom: 0.5rem;
}

.conteudo-principal-texto a,
.texto-central-conteudo a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.conteudo-principal-texto blockquote,
.texto-central-conteudo blockquote {
    border-left: 4px solid var(--primary-blue);
    padding: 10px 20px;
    margin: 25px 0;
    background-color: #f9f9f9;
    font-style: italic;
}

/* --- ESTILOS PARA TABELAS --- */
.conteudo-principal-texto table,
.texto-central-conteudo table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    /* Impede que a tabela quebre entre colunas no layout de 2 colunas */
    break-inside: avoid;
}

.conteudo-principal-texto th,
.texto-central-conteudo th,
.conteudo-principal-texto td,
.texto-central-conteudo td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.conteudo-principal-texto th,
.texto-central-conteudo th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: var(--heavy-text, #333);
}

.conteudo-principal-texto tbody tr:nth-of-type(even),
.texto-central-conteudo tbody tr:nth-of-type(even) {
    background-color: #fdfdfd;
}

/* Responsividade para tabelas em ecrãs pequenos */
@media (max-width: 768px) {

    .conteudo-principal-texto table,
    .texto-central-conteudo table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border: 1px solid #ddd;
    }
}

/* Estilo para o Slogan, posicionado após o texto */
.content-slogan {
    padding-left: 25px;
    margin: 100px 0;
    /* Espaçamento vertical */
}

.content-slogan p {
    font-size: 2.0rem;
    /* Um pouco maior para mais destaque */
    font-style: italic;
    /* REMOVIDO: O itálico */
    font-weight: 500;
    color: var(--primary-blue);
    /* ALTERADO: Cor do texto para azul */
    margin: 0;
    text-transform: uppercase;
    /* Para corresponder à imagem */
    line-height: 1.6;
    text-align: center;
}


/* --- Secção Mensagem do Presidente (Estilo Limpo) --- */
.seccao-presidente {
    padding-bottom: 100px;
}

.seccao-presidente-titulo {
    text-align: left;
    margin-bottom: 40px;
}

.seccao-presidente-titulo h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--heavy-text);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.seccao-presidente-titulo h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 20px auto 0;
}

.presidente-imagem-wrapper {
    margin-bottom: 30px;
}

.presidente-foto {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Aumenta o espaçamento à esquerda do texto em ecrãs maiores */
@media (min-width: 768px) {
    .presidente-texto {
        padding-left: 30px;
        /* AFASTA O TEXTO DA FOTO */
    }
}

@media (max-width: 991px) {
    .presidente-texto {
        font-size: 0.9rem !important;
    }


    .seccao-presidente-titulo h2 {
        font-size: 1.5rem;
    }

    .seccao-presidente-titulo {
        text-align: center;
    }

    .seccao-presidente-titulo h2::after {
        content: '';
        display: block;
        width: 80px;
        height: 3px;
        background-color: var(--primary-blue);
        margin: 20px auto 0;
    }
}

.presidente-texto {
    color: var(--dark-text, #555);
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 25px;
}

/* Assinatura do presidente */
.presidente-assinatura {
    text-align: right;
    /* Alinha o texto à direita */
    padding-right: 15px;
    /* Pequeno ajuste para não colar na borda */
}

.presidente-assinatura p {
    margin: 0;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--primary-blue);
    /* Cor azul da plataforma */
    font-style: italic;
}

/*----------------------------------------------------------------------------------PÁGINA MISSAO--------------------------------------------------*/

/* --- ESTILOS PARA A PÁGINA MISSÃO (CSS ATUALIZADO) --- */

/* 1. Secção de Compromisso no Topo (MANTÉM-SE IGUAL) */
.commitment-section {
    padding: 60px 0 40px 0;
    background-color: #fff;
}

.commitment-text {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-blue);
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* 2. Secção de Conteúdo Principal (MANTÉM-SE IGUAL) */
.mission-vision-section-centered {
    padding: 40px 0 80px 0;
    background-color: #fff;
}

/* 3. Estilos dos Tópicos (MANTÉM-SE IGUAL) */
.content-topic {
    margin-bottom: 80px;
}

.content-topic:last-child {
    margin-bottom: 0;
}

.content-topic h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--azul-mais-escuro);
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    text-transform: uppercase;
}

/* Estilo geral para parágrafos em Missão e Visão */
.content-topic>.row p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}


/* 4. ESTILOS ESPECÍFICOS PARA A NOVA LISTA DE VALORES (ATUALIZADO) */
.valores-list p {
    color: #555;
    /* Cor cinza para o texto da descrição */
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    /* Espaçamento entre cada valor */
}

.valores-list p:last-child {
    margin-bottom: 0;
}

.valor-titulo {
    color: var(--azul-mais-escuro);
    /* Cor azul para o título */
    font-weight: 500;
    /* Mesmo peso que os títulos h2 */
}


/* 5. Ajustes para ecrãs mais pequenos (Responsive) (ATUALIZADO) */
@media (max-width: 767px) {
    .commitment-text {
        font-size: 1.4rem;
    }

    .content-topic h2 {
        font-size: 1.7rem;
        text-align: center;
    }

    .content-topic {
        margin-bottom: 60px;
    }

    /* Para a secção de valores, o layout já é responsivo por natureza,
       mas podemos centrar o texto se preferir. */
    .valores-list {
        text-align: center;
    }
}

/*---------------------------------------------------------------------------ANEXOS-------------------------------------------------------------------------*/

/* =================================================================
   ESTILOS COMPLETOS PARA A PÁGINA DE ANEXOS
================================================================= */

/* Container principal da secção de conteúdo */
.anexos-page-section {
    padding: 80px 0;
    /* Espaçamento vertical da secção */
}

/* Texto introdutório (se existir) */
.anexos-intro-text {
    /* Limita a largura para melhor legibilidade */
    margin-bottom: 50px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Container da lista de todos os anexos */
.anexos-list {
    border-top: 1px solid #e9ecef;
    /* Linha de topo para a lista */
}

/* Cada linha/item da lista de anexos */
.anexo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid #e9ecef;
    /* Linha entre os itens */
    transition: background-color 0.2s ease-in-out;
}

.anexo-item:hover {
    background-color: #f8f9fa;
    /* Fundo cinza claro ao passar o rato */
}

/* Lado esquerdo do item (ícone e info) */
.anexo-item__info {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Espaço entre o ícone e o texto */
}

/* Ícone do ficheiro */
.anexo-item__info .fas {
    font-size: 2rem;
    /* Tamanho do ícone (32px) */
    width: 35px;
    text-align: center;
}

/* Cores específicas para cada tipo de ícone (consistência visual) */
.anexo-item__info .fa-file-pdf {
    color: #dc3545;
}

.anexo-item__info .fa-file-word {
    color: #0d6efd;
}

.anexo-item__info .fa-file-excel {
    color: #198754;
}

.anexo-item__info .fa-file-archive {
    color: #ffc107;
}

.anexo-item__info .fa-file-image {
    color: #6f42c1;
}

/* Roxo para imagens */
.anexo-item__info .fa-file-alt {
    color: #6c757d;
}

/* Detalhes (título e data) */
.anexo-item__details {
    display: flex;
    flex-direction: column;
}

.anexo-item__title {
    font-size: 1.1rem;
    /* 17.6px */
    font-weight: 500;
    color: #212529;
    /* Preto suave */
}

.anexo-item__date {
    font-size: 0.9rem;
    /* 14.4px */
    color: #6c757d;
    /* Cinza */
    margin-top: 5px;
}

/* Lado direito do item (botões) */
.anexo-item__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Espaço entre os botões */
}

/* Estilo base para ambos os botões (Preview e Download) */
.anexo-item__button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #6c757d;
    /* Cor do ícone */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    /* Tamanho do ícone do botão */
    transition: all 0.2s ease-in-out;
}

/* Efeito hover para os botões */
.anexo-item__button:hover {
    background-color: var(--primary-blue);
    /* Use a variável de cor principal do seu site */
    border-color: var(--primary-blue);
    color: #fff;
    /* Ícone branco */
    transform: scale(1.1);
    /* Efeito de zoom subtil */
}

.gallery-item .img-thumbnail {
    /* Adiciona uma transição suave para o hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    padding: 0.25rem;
    background-color: #fff;
    border-radius: 0.25rem;
}

.gallery-item a:hover .img-thumbnail {
    /* Efeito de zoom e sombra ao passar o rato por cima */
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
}

.gallery-item-caption {
    /* Estiliza a legenda para corresponder ao seu exemplo */
    color: var(--primary-blue);
    /* Assumindo que tem uma variável CSS, senão use a cor ex: #005a9e */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lb-data .lb-close {
    position: absolute;
    /* Permite posicionamento relativo ao contentor */
    top: -350px !important;
    /* Move-o 35px para cima (para fora da área da legenda) */
    right: -35px !important;
    /* Alinha-o à direita */
    opacity: 0.8;
    /* Deixa-o ligeiramente transparente */
    transition: opacity 0.3s ease;
}

/* 
 * Aumenta a opacidade do botão quando o rato está por cima,
 * para dar feedback ao utilizador.
*/
.lb-data .lb-close:hover {
    opacity: 1;
}

/* 
 * Opcional: Aumenta ligeiramente a área de clique do botão,
 * tornando-o mais fácil de acertar, especialmente em mobile.
*/
.lb-data .lb-close {
    padding: 10px;
    top: -45px;
    /* Ajuste para compensar o padding */
    right: -5px;
    /* Ajuste para compensar o padding */
}

/* 
 * Opcional mas recomendado: Garante que o contentor da legenda
 * tem posicionamento relativo para que o botão de fechar se posicione
 * corretamente em relação a ele.
*/
.lightbox .lb-dataContainer {
    position: relative;
}

/* =================================================================== */
/* BANNER HÍBRIDO: PROPORCIONAL ATÉ 1600px | FULL SCREEN ACIMA DE 1600px
/* =================================================================== */

/* 1. COMPORTAMENTO BASE (Telemóvel, Tablet e Laptops até 1600px) */
/* Aqui priorizamos NÃO CORTAR a imagem lateralmente */
.banner-full-screen {
    width: 100%;

    /* Altura automática baseada na proporção */
    height: auto !important;
    min-height: unset !important;

    /* Força o formato Widescreen (16:9) */
    aspect-ratio: 16/9 !important;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* Alinhamento do Conteúdo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 2. COMPORTAMENTO PARA ECRÃS GRANDES (> 1600px) */
/* Aqui voltamos à lógica antiga: Ocupar a altura disponível do ecrã */
@media (min-width: 1601px) {
    .banner-full-screen {
        /* Desliga a proporção fixa para permitir esticar */
        aspect-ratio: unset !important;

        /* Define a altura fixa baseada no ecrã (menos o menu) */
        height: calc(100vh - 100px) !important;
        min-height: 600px !important;
    }
}

/* =================================================================== */
/* AJUSTE RESPONSIVO PARA BANNER FULL SCREEN (Abaixo de 1200px)        */
/* =================================================================== */

@media (max-width: 1200px) {
    .banner-full-screen {
        height: 380px !important;
        /* Altura proporcional excelente para tablets e telemóveis */
        min-height: 350px !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 100% !important;
    }

    /* Força uma leve máscara de escurecimento (overlay) para que qualquer texto branco seja legível */
    .banner-full-screen::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        /* Escurece o fundo em 25% para contraste */
        z-index: 1 !important;
    }

    /* Centra e ajusta o título/conteúdo por cima da imagem de fundo */
    .banner-full-screen .banner-content,
    .banner-full-screen h1,
    .banner-full-screen .titulo {
        text-align: center !important;
        font-size: 2rem !important;
        color: #ffffff !important;
        padding: 0 20px !important;
        width: 100% !important;
        z-index: 2 !important;
        /* Coloca o texto à frente da máscara */
    }
}

/* Ajuste fino para telemóveis muito pequenos (Abaixo de 576px) */
@media (max-width: 576px) {
    .banner-full-screen {
        height: 250px !important;
        /* Altura ideal para ecrãs de telemóvel normais */
        min-height: 250px !important;
    }

    .banner-full-screen .banner-content,
    .banner-full-screen h1,
    .banner-full-screen .titulo {
        font-size: 1.5rem !important;
        /* Texto ligeiramente menor para não quebrar muitas linhas */
    }
}

/* =================================================================== */
/* ESTILOS COMUNS (Conteúdo e Barra)
/* =================================================================== */

.banner-full-content {
    z-index: 2;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.banner-full-content h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* Barra de Avisos Sticky */
.bottom-banner.avisos-sticky-mode {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    /* Altura do menu */
    margin-top: -55px;
    /* Sobreposição */
    z-index: 999;
    width: 100%;
    margin-bottom: 0;
    border-top: none;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.bottom-banner.avisos-sticky-mode .owl-carousel {
    margin-bottom: 0 !important;
}

/* =================================================================== */
/* AJUSTES RESPONSIVOS (Tamanho de Letra)
/* =================================================================== */

@media (max-width: 992px) {
    .banner-full-content h1 {
        font-size: 2rem;
    }

    .banner-full-content {
        padding: 15px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .banner-full-content h1 {
        font-size: 1.5rem;
    }

    .banner-full-content {
        transform: scale(0.9);
        margin-bottom: 25px;
    }

    .bottom-banner.avisos-sticky-mode {
        margin-top: -50px;
    }
}

/* Reaproveita estilos do texto rico para este bloco */
.texto-imagem-section .conteudo-rico-texto p {
    color: var(--dark-text, #555);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-align: justify;
}

.texto-imagem-section .conteudo-rico-texto h2,
.texto-imagem-section .conteudo-rico-texto h3 {
    color: var(--heavy-text, #4a4a4a);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.texto-imagem-section .conteudo-rico-texto ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

/* Ajuste Mobile */
@media (max-width: 991px) {

    /* Remove os paddings laterais extras em mobile */
    .texto-imagem-section .pl-lg-5,
    .texto-imagem-section .pr-lg-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* --- Ícone Circular para o Acordeão --- */
.accordion-icon-circular {
    width: 45px;
    /* Tamanho fixo */
    height: 45px;
    /* Tamanho fixo igual à largura */
    border-radius: 50%;
    /* A MÁGICA: Transforma em círculo */
    object-fit: cover;
    /* Corta a imagem para preencher o círculo (não estica) */
    object-position: center;
    /* Centra a imagem */
    margin-right: 15px;
    /* Espaço para o texto */
    flex-shrink: 0;
    /* Impede que o ícone seja esmagado */

    /* Opcional: Fundo e Sombra para dar destaque se a imagem for transparente */
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    /* Borda subtil para definição */
}

.accordion-title-html p {
    margin-bottom: 0 !important;
}

.sustainability-accordion .accordion-button:not(:has(img)) {
    padding-left: 1.5rem;
}

.sustainability-section.section-no-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Também removemos qualquer margem superior que a coluna de conteúdo possa ter */
.section-no-header .content-column {
    padding-top: 0 !important;
}

/* Ajuste opcional para o acordeão colar no topo */
.section-no-header .sustainability-accordion {
    margin-top: 0 !important;
}

/* Se houver imagem lateral, podemos querer que ela também alinhe pelo topo */
.section-no-header .image-container {
    margin-top: 0 !important;
}

/*-----------------------------------LISTA DE ANEXOS---------------------------------*/

/* REPLICANDO O CSS DO TEU LAYOUT DE REFERÊNCIA */
.anexos-list {
    max-width: 1000px;
    margin: 0 auto;
}

.anexo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.anexo-item:last-child {
    border-bottom: none;
}

.anexo-item__info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.anexo-item__info i {
    font-size: 32px;
    color: #e74c3c;
    /* Cor vermelha para PDF como no teu print */
}

.anexo-item__details {
    display: flex;
    flex-direction: column;
}

.anexo-item__title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.anexo-item__date {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.anexo-item__actions {
    display: flex;
    gap: 10px;
}

/* Botões circulares cinzentos como no print */
.anexo-item__button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.anexo-item__button:hover {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.page-title-section h1 {
    font-weight: 700;
    color: #444;
}

.anexo-item__date {
    font-size: 14px;
    color: #888;
    margin-top: 2px;
    /* Ajusta conforme necessário */
    display: block;
    /* Garante que a data fique na linha de baixo */
}

/*------------------------------------------------------------------------REGRAS RESPONSIVE------------------------------------------*/