/* style.css */



/* Definição de variáveis CSS para as cores */

:root {

    --primary-color: rgb(57, 89, 84);

    --dark-text-color: rgb(26, 26, 26);

    --light-background-color: rgb(237, 244, 242);

    --accent-color-1: rgb(25, 41, 88);

    --accent-color-2: rgb(255, 165, 0);

    --light-text-color: #ffffff;

    --link-color: var(--primary-color);

    --link-hover-color: var(--accent-color-2);

}



/* Reset Básico de CSS para consistência entre navegadores */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: Arial, sans-serif;

    line-height: 1.6;

    color: var(--dark-text-color);

    background-color: var(--light-background-color);

}



.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px;

}



a {

    color: var(--link-color);

    text-decoration: none;

    transition: color 0.3s ease;

}



a:hover {

    color: var(--link-hover-color);

    text-decoration: underline;

}



/* 1. Cabeçalho */

.main-header {

    background-color: rgb(141, 141, 141);

    color: var(--light-text-color);

    padding: 10px 0;

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

}



.header-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

}



.logo img {

    height: 60px;

    width: auto;

}



.main-nav ul {

    list-style: none;

    display: flex;

    flex-wrap: wrap;

}



.main-nav ul li {

    margin-left: 20px;

}



.main-nav ul li a {

    color: var(--light-text-color);

    font-weight: bold;

    padding: 5px 0;

}



.main-nav ul li a:hover,

.main-nav ul li a.active-link { /* Novo estilo para link ativo */

    color: var(--primary-color);

    text-decoration: none;

}



.social-icons a {

    color: var(--light-text-color);

    font-size: 24px;

    margin-left: 15px;

}



.social-icons a:hover {

    color: var(--primary-color);

}



/* 2. Seções de Conteúdo (Gerais) */

section {

    padding: 60px 0;

    text-align: center;

}

/* Exceção para o Carrossel: não deve ter padding vertical */
.hero-section {
    padding: 0; /* Adicionar esta linha */
}

section h2 {

    font-size: 2.5em;

    margin-bottom: 30px;

    color: inherit;

}



/* 3. Carrossel de Imagens */

.hero-section {

    position: relative;

    width: 100%;

    height: 600px;

    overflow: hidden;

    background-color: var(--dark-text-color);

}



.carousel-container {

    position: relative;

    width: 100%;

    height: 100%;

}



.carousel-image {

    position: absolute;

    width: 100%;

    height: auto;

    display: block;

    left: 0;

    object-fit: cover;

    object-position: center;

    opacity: 0;

    transition: opacity 1s ease-in-out;

}



.carousel-image.active {

    opacity: 1;

}



/* 4. Seção "Sobre o FONAFATI" */

.about-fonafati-short {

    background-color: var(--primary-color);

    color: var(--light-text-color);

}



.about-fonafati-short p {

    font-size: 1.1em;

    max-width: 800px;

    margin: 0 auto 30px auto;

}



.about-links .button {

    display: inline-block;

    background-color: var(--primary-color);

    color: var(--light-text-color);

    padding: 12px 25px;

    margin: 0 10px;

    border-radius: 5px;

    transition: background-color 0.3s ease;

    font-weight: bold;

}



.about-links .button:hover {

    background-color: var(--accent-color-2);

    text-decoration: none;

}



/* 5. Seção "Notícias" (LAYOUT GRID DE CARDS) */

.section-news {

    background-color: var(--light-background-color);

}



.section-news h2 {

    color: var(--dark-text-color);

}



/* CONFLITO CORRIGIDO: Removido .news-item antigo. Adicionando GRID */

.news-grid {

    display: grid;

    /* Layout de 3 colunas, responsivo (mínimo 280px por coluna) */

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;

    margin-bottom: 30px;

}



.news-card {

    background-color: #fff;

    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    overflow: hidden;

    position: relative;

    transition: transform 0.2s;

    /* Para que todos os cards fiquem com a mesma altura */

    display: flex; 

    flex-direction: column;

}



.news-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

}



.card-image-container {

    position: relative;

    padding-top: 75%; /* Proporção 4:3 */

    overflow: hidden;

}



.card-image {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.card-content {

    padding: 15px;

    text-align: center;

    flex-grow: 1; /* Faz o conteúdo ocupar o espaço restante */

}



.card-content h3 {

    font-size: 1.1em;

    margin-top: 0;

    color: var(--dark-text-color);

    /* Garante que o título não saia do card */

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.card-date {

    font-size: 0.85em;

    color: #777;

    margin: 5px 0 10px 0;

}



.card-link {

    /* Torna todo o card clicável */

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 10;

}



.more-news-button-container {

    text-align: center; /* Centralizando o botão para melhor visualização na index */

    margin-top: 20px;

}



.more-news-button {

    background-color: var(--accent-color-1); /* Azul escuro */

    color: var(--light-text-color);

    padding: 10px 20px;

    border: none;

    border-radius: 4px;

    text-decoration: none;

    font-weight: bold;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    transition: background-color 0.2s;

}



.more-news-button:hover {

    background-color: var(--primary-color);

}



/* 6. Seção "Qual a Missão do FONAFATI" */

.what-we-do {

    background-color: var(--primary-color);

    color: var(--light-text-color);

}



.what-we-do h2 {

    color: var(--light-text-color);

}



/* 7. Seção "Associações e Sindicatos Filiados" */

.section-partners {

    background-color: var(--light-background-color);

    color: var(--dark-text-color);

}



.section-partners h2 {

    color: var(--dark-text-color);

}



.section-partners .button {

    display: inline-block;

    background-color: var(--primary-color);

    color: var(--light-text-color);

    padding: 12px 25px;

    margin-top: 20px;

    border-radius: 5px;

    transition: background-color 0.3s ease;

    font-weight: bold;

}



/* 8. Seção "Diretoria" (NOVA SEMÂNTICA DL) */

.section-diretoria {

    background-color: var(--primary-color);

    color: var(--light-text-color);

}



.section-diretoria h2,

.section-diretoria .council-title {

    color: var(--light-text-color);

    text-align: center;

}



.board-members-list,

.fiscal-council-list {

    text-align: left;

    max-width: 600px;

    margin: 20px auto;

    font-size: 1.1em;

}



.board-members-list dt,

.fiscal-council-list dt {

    font-weight: bold;

    margin-top: 10px;

    color: var(--accent-color-2); /* Destaca a função */

}



.board-members-list dd,

.fiscal-council-list dd {

    margin-left: 20px;

    margin-bottom: 5px;

}





/* 9. Seção "Artigos e Opiniões" */

.section-articles {

    background-color: var(--light-background-color);

    color: var(--dark-text-color);

}



.section-articles h2 {

    color: var(--dark-text-color);

}



.article-item {

    display: flex;

    align-items: center;

    background-color: #fff;

    padding: 20px;

    border-radius: 8px;

    margin-bottom: 20px;

    text-align: left;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}



.article-item:last-child {

    margin-bottom: 0;

}



.article-item .article-image {

    width: 150px;

    height: 100px;

    object-fit: cover;

    border-radius: 5px;

    margin-right: 20px;

    flex-shrink: 0;

}



.article-item h3 {

    font-size: 1.3em;

    margin-bottom: 10px;

    flex-grow: 1;

    color: var(--dark-text-color);

}



.article-item .read-more-link {

    color: var(--primary-color);

    font-weight: bold;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.3s ease;

}



.article-item .read-more-link:hover {

    color: var(--accent-color-2);

    text-decoration: underline;

}



/* 10. Seção "Documentos" (COM ÍCONES) */

.section-documents {

    background-color: var(--primary-color);

    color: var(--light-text-color);

}



.section-documents h2 {

    color: var(--light-text-color);

}



.section-documents ul {

    list-style: none;

    padding: 0;

    max-width: 600px;

    margin: 0 auto;

}



.section-documents ul li {

    background-color: rgba(255, 255, 255, 0.1);

    margin-bottom: 10px;

    padding: 15px 20px;

    border-radius: 5px;

    text-align: left;

    transition: background-color 0.3s ease;

}



.section-documents ul li:hover {

    background-color: rgba(255, 255, 255, 0.2);

}



.section-documents ul li a {

    color: var(--light-text-color);

    font-weight: bold;

    display: block;

    transition: color 0.3s ease;

}



.section-documents ul li a i {

    margin-right: 10px;

}



.section-documents ul li a:hover {

    color: var(--accent-color-2);

    text-decoration: underline;

}



/* 11. Estilos para a Página de Arquivo (mais-noticias.html) */

.section-archive {

    padding: 60px 0;

    text-align: left; /* Alinha o conteúdo da página de arquivo à esquerda */

}



.section-archive h1 {

    font-size: 2.5em;

    margin-bottom: 30px;

    border-bottom: 2px solid #eee;

    padding-bottom: 15px;

    text-align: center;

}



.archive-item {

    display: flex;

    align-items: flex-start;

    padding: 20px 0;

    gap: 20px;

}



.archive-image {

    width: 180px;

    height: 120px;

    object-fit: cover;

    border-radius: 4px;

    flex-shrink: 0;

}



.archive-text-content {

    flex-grow: 1;

}



.archive-text-content h2 {

    font-size: 1.5em;

    margin-top: 0;

    margin-bottom: 5px;

    text-align: left;

}



.archive-text-content time {

    display: block;

    font-size: 0.9em;

    color: #888;

    margin-bottom: 10px;

}



.archive-text-content p {

    margin-bottom: 10px;

}



.archive-list hr {

    border: 0;

    height: 1px;

    background-color: #f0f0f0;

    margin: 10px 0;

}



/* Rodapé */

footer {

    background-color: rgb(141, 141, 141);

    color: var(--light-text-color);

    text-align: center;

    padding: 30px 0;

    font-size: 0.9em;

}



/* 12. Responsividade */

@media (max-width: 768px) {

    .header-content {

        flex-direction: column;

        text-align: center;

    }



    .main-nav ul {

        margin-top: 15px;

        flex-direction: column;

        align-items: center;

    }



    .main-nav ul li {

        margin: 5px 0;

    }



    .social-icons {

        margin-top: 15px;

    }



    .hero-section {

        height: 400px;

    }

    

    /* Na Index, os cards de Notícias e Artigos se empilham */

    .news-grid {

        grid-template-columns: 1fr;

    }



    .article-item {

        flex-direction: column;

        text-align: center;

        align-items: center;

    }

    

    .article-item .article-image {

        margin-right: 0;

        margin-bottom: 15px;

        width: 100%;

        height: auto;

    }

    

    /* Na página de Arquivo, os itens também se empilham */

    .archive-item {

        flex-direction: column;

        align-items: center;

        text-align: center;

    }

    .archive-image {

        width: 100%;

        height: auto;

        max-height: 200px;

        margin-bottom: 10px;

    }

    .archive-text-content h2,

    .archive-text-content time,

    .archive-text-content p {

        text-align: center;

    }

}
/* Estilos para os Botões de Navegação do Carrossel */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 2em;
    cursor: pointer;
    z-index: 100; /* Acima das imagens */
    transition: background-color 0.3s ease;
    border-radius: 5px;
    user-select: none; /* Impede a seleção de texto nos botões */
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

/* Estilos para os Indicadores (Bolinhas) */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* Espaço entre as bolinhas */
    z-index: 100;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5); /* Bolinhas semi-transparentes */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.3); /* Borda sutil para contraste */
}

.indicator-dot.active {
    background-color: var(--primary-color); /* Cor de destaque para a bolinha ativa */
    transform: scale(1.2); /* Aumenta um pouco a bolinha ativa */
    border-color: var(--primary-color);
}

/* Responsividade para botões e indicadores em telas menores */
@media (max-width: 768px) {
    .carousel-button {
        padding: 10px 15px;
        font-size: 1.5em;
        left: 10px;
        right: 10px;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 5px;
    }

    .indicator-dot {
        width: 10px;
        height: 10px;
    }
}