/* css/pagina-inicio.css - SLIDESHOW CORRIGIDO PARA 4 SLIDES */

.slideshow-container {
    position: relative;
    width: 100%;
    height: 550px;
    margin: 20px auto 40px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: #f4f4f4;
}

.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: crossfade 24s infinite; 
    border-radius: 8px 8px 0 0;
}

@keyframes crossfade {
    0%, 25%, 100% { opacity: 0; } /* Ajustado para 4 partes */
    4%, 21%   { opacity: 1; }     /* Visível entre 4% e 21% do tempo do seu slot */
}

.slideshow-container .slide:nth-child(1) { animation-delay: 0s; }
.slideshow-container .slide:nth-child(2) { animation-delay: 6s; }
.slideshow-container .slide:nth-child(3) { animation-delay: 12s; }
.slideshow-container .slide:nth-child(4) { animation-delay: 18s; }


.slide-caption {
    position: absolute;
    width: 100%;
    height: 100px;
    left: 0;
    bottom: -100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 10px;
    box-sizing: border-box;
}

.slide-caption h1 {
    font-size: 1.8em;
    margin: 5px 0 0 0;
    font-weight: bold;
    color: #5F181E;
    text-align: center;
}

/* === CONTEÚDO PRINCIPAL === */

.container-principal {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto; /* Espaçamento superior/inferior e centralizado */
    padding: 20px;
}

.secao-noticias {
    margin-bottom: 50px;
}

.secao-noticias h2, .secao-destaques h2 {
    font-size: 2em;
    color: #333;
    border-bottom: 2px solid #5F181E;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.lista-noticias {
    list-style: none;
    padding: 0;
}

.lista-noticias li {
    padding: 10px;
    border-bottom: 1px dashed #ccc;
}

.lista-noticias li:last-child {
    border-bottom: none;
}

.lista-noticias a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    transition: color 0.3s;
}

.lista-noticias a:hover {
    color: #5F181E;
}

/* === SEÇÃO DE CARDS (antigo #b3) === */
/* Usando Flexbox para um layout moderno e responsivo */

.card-container {
    display: flex;
    flex-wrap: wrap; /* Permite que os cards quebrem para a linha de baixo */
    gap: 25px; /* Espaçamento entre os cards */
    justify-content: center; /* Centraliza os cards quando há espaço sobrando */
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Garante que a imagem não vaze das bordas arredondadas */
    width: calc(25% - 20px); /* Aproximadamente 4 cards por linha, com o gap */
    min-width: 250px; /* Largura mínima para telas menores */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px); /* Efeito de "levantar" */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
}

.card h3 {
    font-size: 1.3em;
    margin: 15px;
    color: #5F181E;
}

.card p {
    font-size: 1em;
    line-height: 1.5;
    margin: 0 15px 15px 15px;
}