@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

.font-cinzel { font-family: 'Cinzel Decorative', serif; }
.font-crimson { font-family: 'Crimson Text', serif; }

.divider {
    position: relative;
    height: 30px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    width: 35%;
    background: linear-gradient(
        to var(--direction, right),
        transparent,
        #862e1c 20%,
        #862e1c 80%,
        transparent
    );
}

.divider::before {
    --direction: right;
}

.divider::after {
    --direction: left;
}

.divider-center {
    margin: 0 20px;
    display: flex;
    align-items: center;
    color: #862e1c;
}

.divider-ornament {
    font-size: 1.2rem;
    margin: 0 8px;
}

.divider-dot {
    width: 4px;
    height: 4px;
    background-color: #862e1c;
    border-radius: 50%;
    margin: 0 8px;
}

@media (max-width: 640px) {
    .divider::before,
    .divider::after {
        width: 25%;
    }

    .divider-center {
        margin: 0 10px;
    }

    .divider-ornament {
        font-size: 1rem;
        margin: 0 5px;
    }

    .divider-dot {
        margin: 0 5px;
    }
}

@layer utilities {
    .prose {
        max-width: 65ch;
        line-height: 1.75;
    }

    .prose p {
        margin-top: 1.25em;
        margin-bottom: 1.25em;
    }
}

.modal-open {
    overflow: hidden;
}

#modalContent {
    white-space: pre-wrap; 
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.noticia-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.noticia-imagem-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
}

.noticia-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-imagem {
    transform: scale(1.08);
}

.noticia-conteudo {
    padding: 1.5rem 0.5rem;
}

.noticia-data {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.noticia-titulo {
    font-size: 1.35rem;
    color: #862e1c;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.noticia-link {
    text-decoration: none;
    display: block;
}

.noticia-card:hover .noticia-titulo {
    color: #b54d31;
}

/* Efeito de overlay sutil ao hover */
.noticia-imagem-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.noticia-card:hover .noticia-imagem-container::after {
    opacity: 1;
}

@media (max-width: 1200px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .noticia-imagem-container {
        height: 250px;
    }
}

.header-bg {
    background-image: url('/assets/fundo-cabeçalho.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 300px;
}
.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
}
.carousel-item.active {
    display: block;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#carousel-container {
    display: flex;
    transition: transform 1s cubic-bezier(0.25, 0.8, 0.5, 1); /* Transição mais suave */
}

#carousel-container > div {
    opacity: 0; /* Começa invisível */
    transition: opacity 1s ease-in-out; /* Efeito de fade */
}

#carousel-container > div.active {
    opacity: 1; /* Torna visível apenas o slide ativo */
}

.noticia-item {
    margin-bottom: 2rem;
}

.imagem-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.noticia-imagem {
    transition: transform 0.3s ease;
}

.imagem-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(134, 46, 28, 0.1); /* Cor #862e1c com opacidade */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imagem-container:hover::after {
    opacity: 1;
}

.imagem-container:hover .noticia-imagem {
    transform: scale(1.05);
}

.noticia-titulo {
    transition: color 0.3s ease;
}

.noticia-titulo:hover {
    color: #b13d25; /* Versão mais clara do #862e1c */
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #bbb;
}