:root {
    --primary-color: #053e88; /* Azul */
    --secondary-color: #333; /* Cor escura para o texto */
    --background-light: #f9f9f9;
    --white: #fff;
    --accent-green: #34A853; /* Verde para botões */
  }
  .banner {
    position: relative;
    width: 100%;
    height: 350px;
    background-image: url('/img/capacitação/IMG-20250808-WA0004.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f9f9f9;
    overflow: hidden;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Efeito escurecido */
    
}

.texto {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeIn 1s ease-in-out;
}

.banner h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    animation: slideIn 1s ease-in-out;
    color: #f9f9f9;
}

.banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Botão "Ler Mais" */
.btn-ler-mais {
    display: inline-block;
    padding: 8px 25px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: #007bff;
    border-radius: 2px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-ler-mais:hover {
    background: var(--background-light);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Seção de Notícias */
.noticias {
    padding: 40px 20px;
    max-width: 1440px;
    margin: auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

.noticias h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Grid de Notícias */
.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Card de Notícia */
.noticia {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInUp 0.8s ease-out forwards;
}

.noticia:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.noticia img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 5px;
}

.noticia h3 {
    font-size: 18px;
    margin: 10px 0;
    color: var(--primary-color);
    
}

.noticia p {
    font-size: 14px;
    color: #333;
}

/* Animação do link */
.noticia a {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.noticia a::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease-in-out;
    margin-top: 3px;
}

.noticia a:hover {
    color: #0056b3;
}

.noticia a:hover::after {
    width: 100%;
}

/* Efeito de fade-out (desaparece) */
.fade-out {
    opacity: 0;
    transform: translateY(10px); /* Move o texto para baixo levemente */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Efeito de fade-in (reaparece) */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
