@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #1f5568;
    --secondary-color: #E9C46A;
    --accent-color: #F4A261;
    --background-color: #264653;
    --text-color: #FFFFFF;
    --buttom-color: #E1B92B;
}

body {
    background-color: #ececea;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Aplicando escala apenas ao conteúdo */
#site-content {
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%;
    height: 125%;
}

/* Ajuste para telas médias */
@media screen and (max-width: 1200px) {
    #site-content {
        transform: scale(0.9);
        width: 111%;
        height: 111%;
    }
}

/* Ajuste para tablets */
@media screen and (max-width: 992px) {
    #site-content {
        transform: scale(1);
        width: 100%;
        height: 100%;
    }
}

/* Ajuste para celulares */
@media screen and (max-width: 768px) {
    #site-content {
        transform: scale(1);
        width: 100%;
        height: 100%;
    }
}

/* Cabeçalho */
.section-header {
    background-color: var(--primary-color);
    display: flex;
}

.logo-1 {
    display: flex;
    margin-left: 2px;
}

.logo {
    width: 50%;
    cursor: pointer;
}

.title {
    color: var(--text-color);
    font-weight: bold;
    font-size: 20px;
}

/* Botão */
.hamburger {
    display: none;
    font-size: 2rem;
    /* Tamanho do ícone */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    color: #eeeaea;
    /* Cor do ícone */
}

/* Efeito hover */
.hamburger:hover {
    background: rgba(255, 217, 0, 0.1);
}

/* Animação de clique */
.hamburger:active {
    transform: scale(0.9);
}

/* Transformação ao ativar o menu */
.hamburger.active {
    color: red;
    /* Muda a cor quando ativo */
}

/* Menu de navegação */
.comands ul {
    display: flex;
    list-style: none;
    margin: 45px;
    padding: 0;
    gap: 15px;
    justify-content: center;
    align-items: center;
    right: 0;
    margin-right: 60px;
}

.comands ul li {
    padding: 10px 15px;
    background: var(--background-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.comands ul li:hover {
    background: red;
}

a {
    color: var(--text-color);
    text-decoration: none;
    margin: 20px;
    font-weight: bold;
}

a:hover {
    color: var(--secondary-color);
}

/* Quando o menu estiver ativo */
.comands.active {
    display: block;
}

.hamburger.active {
    color: red;
    /* Muda a cor do botão quando o menu estiver ativo */
}

/* Efeito de hover nos botões */
.section-second {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Seção de notícias */
.news-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Centraliza no meio da página */
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Grid de notícias */
.news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsivo */
    gap: 20px;
    /* Espaçamento entre os itens */
}

/* Estilo dos artigos */
article {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

article:hover {
    transform: scale(1.02);
}

/* Imagem da notícia */
article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Título das notícias */
.title_news {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px;
    text-decoration: none;
}

.title_news:hover {
    color: #E9C46A;
}

/* Descrição */
article p {
    font-size: 14px;
    color: #555;
    margin: 10px;
}

/* Botão de leitura */
.btn-ler {
    display: block;
    width: max-content;
    background: var(--background-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 10px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-ler a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.btn-ler:hover {
    background: #E76F51;
}

/* Nossa história */
.col-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
    margin: 20px;
    padding: 10px;
}

.hist-img {
    width: 60%;
    border-radius: 10%;
    cursor: pointer;
}

.legenda {
    font-size: 12px;
}















/* Rodapé */
.footer {
    padding: 20px;
    text-align: center;
}

.footer-links ul,
.footer-menu ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.footer-links li,
.footer-menu li {
    display: inline;
    margin-right: 15px;
}

.footer-links a,
.footer-menu a {
    color: var(--background-colorsss);
    text-decoration: none;
}

.footer-links a:hover,
.footer-menu a:hover {
    text-decoration: underline;
}

.footer-content {
    margin-bottom: 20px;
}

.logo-2 .logo {
    width: 100px;
    height: auto;
}

.title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

hr {
    border: 1px solid #ddd;
    margin: 20px 0;
}

.footer-content p {
    font-size: 14px;
    color: #1a1818;
}

.link-emp {
    color: #1a1818;
}

.back-to-top {
    margin-top: 20px;
}

.back-to-top button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.back-to-top button:hover {
    background-color: #0056b3;
}










/* Responsividade */
@media (max-width: 1180px) {
    .section-header {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .hist-img {
        width: 97%;
    }

    .logo {
        width: 70%;
        cursor: pointer;
    }

    .comands {
        display: none;
    }

    .title {
        font-size: 15px;
    }

    .hamburger {
        display: block;
    }

    .comands {
        display: none;
        /* Oculta o menu por padrão */
        position: absolute;
        top: 70px;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        /* Adiciona a camada superior */
    }

    .comands ul {
        display: flex;
        flex-direction: column;
        /* Exibir itens verticalmente */
        gap: 10px;
    }

    .carousel {
        width: 100%;
        height: 250px;
    }

    .carousel-inner {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
        height: 100%;
        margin-right: 28px;
    }

    /* Botões de navegação */
    .prev,
    .next {
        margin-top: 10px;
    }

    .news {
        grid-template-columns: 1fr;
    }

    article img {
        height: 150px;
    }

    .title_news {
        font-size: 16px;
    }

    .btn-ler {
        padding: 6px 12px;
    }

    .footer-menu li {
        display: flex;
        margin-right: 5px;
        flex-direction: column;
    }

    h1 {
        font-size: 20px;
    }

    .section-second {
        display: flex;
        flex-direction: column;
    }

    .col-1 {
        width: 80%;
        margin: 10px;
        padding: 5px;
    }

}



.footer .social-share {
    display: flex;
    justify-content: center;
    /* Centraliza horizontalmente no rodapé */
    gap: 10px;
    padding: 10px 0;
}











.cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s;
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin: 10px 0;
    color: #333;
}

.card p {
    color: #666;
}

.card:hover {
    transform: scale(1.05);
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.text-content p {
    color: #333;
    line-height: 1.6;
}

.gallery-page {
    display: none;
    /* Esconde todas as páginas por padrão */
}

.gallery-page.active {
    display: block;
    /* Mostra apenas a página ativa */
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover {
    background-color: var(--primary-color);
}

#page-number {
    font-weight: bold;
    margin: 0 10px;
}




/* Esconder os elementos inicialmente */
.hidden,
.hidden-center {
    opacity: 0;
    transform: scaleX(0);
    /* Começa com largura zero (escondido) */
    transform-origin: center;
    /* Expande a partir do centro */
    transition: opacity 1.5s ease, transform 1.5s ease;
    /* Suaviza a transição */
}

/* Classe que será adicionada para tornar os elementos visíveis */
.visible {
    opacity: 1;
    transform: scaleX(1);
    /* Expande para a largura total */
}





/* Estilo Geral */
.news-section {
    padding: 20px;
    background-color: #f9f9f9;
}

.news-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.news-section p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.news-section ul {
    list-style-type: none;
    padding: 0;
    font-size: 1rem;
}

.news-section ul li {
    margin: 10px 0;
}

.news-section i {
    margin-right: 10px;
}

/* Estilo Específico para os Artigos */
article {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

article h2 {
    font-size: 1.6rem;
    color: #007bff;
    margin-bottom: 10px;
}

article p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}



/* Responsividade para diferentes tamanhos de tela */
@media (max-width: 768px) {
   
    .news-section {
        padding: 15px;
        width: 70%;
    }

    .news-section h2 {
        font-size: 1.6rem;
    }

    .news-section p {
        font-size: 0.9rem;
    }

    article {
        padding: 15px;
    }

    article h2 {
        font-size: 1.4rem;
    }

    article p {
        font-size: 0.9rem;
    }

    article ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 10px;
    }

    .news-section h2 {
        font-size: 1.4rem;
    }

    .news-section p {
        font-size: 0.8rem;
    }

    article {
        padding: 10px;
    }

    article h2 {
        font-size: 1.2rem;
    }

    article p {
        font-size: 0.8rem;
    }

    article ul li {
        font-size: 0.8rem;
    }
    
}









/* Estilo para a imagem ampliada */
.lightbox {
    display: none;
    /* Começa escondido */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}






/* Estilo do modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Fundo escuro semi-transparente */
    overflow: auto;
}

/* Conteúdo do modal */
.modal-content {
    position: relative;
    margin: 5% auto;
    /* Centraliza o modal */
    padding: 20px;
    max-width: 800px;
    /* Largura máxima do modal */
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    top: 80%;
}

#open-gallery-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

/* Botão para fechar o modal */
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #000;
    cursor: pointer;
}

.close-modal:hover {
    color: #555;
}

body.modal-open {
    overflow: hidden;
}


/* Container das imagens no modal */
#modal-gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Estilo das imagens no modal */
#modal-gallery-container img {
    max-width: 100%;
    max-height: 80vh;
    /* Altura máxima da imagem */
    border-radius: 8px;
}

/* Controles do modal (botões de navegação) */
.modal-controls {
    text-align: center;
    margin-top: 20px;
}

.modal-controls button {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.modal-controls button:hover {
    background-color: #0056b3;
}

/* Contador de imagens */
#modal-image-counter {
    font-size: 18px;
    margin: 0 20px;
}







/* Estilo para o overlay que cobre toda a tela */
.welcome-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transition: visibility 0.3s, opacity 0.3s;
}

/* Estilo da mensagem de boas-vindas */
.welcome-message {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 70%;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.welcome-message h1 {
    font-size: 24px;
    color: #333;
}

.welcome-message p {
    font-size: 16px;
    color: #555;
    margin: 20px 0;
}

.close-welcome {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.blog {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.blog:hover {
    background-color: var(--background-color);
    z-index: 1;
}

.close-welcome:hover {
    background-color: #0056b3;
}

/* Responsividade */
@media (max-width: 600px) {
    .welcome-message {
        width: 60%;
        padding: 20px;
    }

    .welcome-message h1 {
        font-size: 20px;
    }

    .welcome-message p {
        font-size: 14px;
    }
    .modal-content {
        top: 90%;
    }
}



.news-covers-section {
    padding: 20px;
    background: #f5f5f5;
}

.news-covers-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.news-covers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Cada card ocupa 100% da largura até que o tamanho da tela permita múltiplos cards lado a lado */
.news-cover {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

/* Layout horizontal em telas grandes */
@media (min-width: 992px) {
    .news-cover {
        width: calc(33.333% - 40px); /* 3 cards por linha com gap considerado */
    }
}

/* Layout com 2 cards por linha em telas médias */
@media (max-width: 991px) and (min-width: 600px) {
    .news-cover {
        width: calc(50% - 40px);
    }
}

/* Layout em coluna em telas pequenas */
@media (max-width: 599px) {
    .news-cover {
        width: 100%;
    }
}

.news-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.news-cover h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.news-cover p {
    margin: 0 0 10px;
    font-size: 0.9em;
    color: #666;
}

.news-cover a {
    text-decoration: none;
    color: inherit;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #0066cc;
    color: #fff;
}
