/* 1. CONFIGURAÇÕES GERAIS */
:root {
    --primary-color: #0056b3;    /* Azul Confiança */
    --secondary-color: #f39c12;  /* Laranja Energia Social */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* 2. CABEÇALHO (HEADER) */
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 110px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Para o efeito de brilho */
}

.logo img {
    height: 85px;
    width: auto;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

.logo:hover img {
    transform: scale(1.08);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--secondary-color);
}

/* 3. NAVEGAÇÃO E DROPDOWN */
nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-top: 3px solid var(--secondary-color);
}

.dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    display: block;
    font-size: 13px;
    border-bottom: 1px solid #555;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #0087e0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 4. HERO SLIDER */
.hero {
    position: relative;
    height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* 5. VALÊNCIAS (BOTÕES QUE REVELAM IMAGEM) */
footer {
    background: #1a252f;
    color: white;
    padding: 60px 5% 20px;
}

/* Container das Valências */
.valencias-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* O Card com tamanho normal (reduzido) */
/* O Card (Botão) */
/* O Card (Botão) */
.valencia-card {
    width: 170px;
    height: 60px;
    background-color: #2c3e50;
    border-left: 4px solid var(--secondary-color);
    position: relative;
    /* IMPORTANTE: Removi o overflow: hidden para a imagem poder sair */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Container do Conteúdo */
.valencia-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

/* A Imagem que vai saltar para fora */
.reveal-img {
    width: 80px;        /* Tamanho maior para ficar bem visível fora */
    height: auto;
    position: absolute;
    bottom: 0;          /* Começa alinhada ao botão */
    opacity: 0;         /* Invisível por padrão */
    pointer-events: none; /* Evita que a imagem atrapalhe o clique */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
}

/* Texto do Botão */
.valencia-card span {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    z-index: 5;
}

/* --- EFEITO HOVER --- */

.valencia-card:hover {
    background-color: #34495e;
    z-index: 100; /* Garante que o botão e imagem fiquem por cima de tudo */
}

.valencia-card:hover .reveal-img {
    opacity: 1;
    /* Faz a imagem subir cerca de 70px para fora do botão */
    transform: translateY(-70px) scale(1.2); 
}

.valencia-card:hover span {
    color: var(--secondary-color);
}
/* 6. RODAPÉ FINAL */
.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #bdc3c7;
    font-size: 0.8rem;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    header { flex-direction: column; height: auto; padding: 20px; }
    nav ul { gap: 10px; margin-top: 15px; }
    .hero { height: 400px; }
}

.noticia-card:hover { transform: scale(1.02); transition: 0.3s; }

/* Estilo para o botão que abre o menu (ACTIVIDADES) */
.dropbtn {
    background: #eee;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
}

/* O segredo para alinhar: usar Flexbox ou remover larguras fixas estranhas */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333; /* Fundo escuro conforme imagem */
    min-width: 280px; /* Largura suficiente para o texto não quebrar */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 0; /* Remove paddings internos que causam desalinhamento */
}

/* Estilo dos links dentro do dropdown */
.dropdown-content a {
    color: #ffffff !important; 
    padding: 12px 20px;
    text-decoration: none;
    display: block; /* Ocupa a linha toda, evitando que fiquem lado a lado */
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid #444; /* Linha subtil entre itens */
    text-align: left;
    transition: background 0.3s;
}

/* Remove a borda do último item */
.dropdown-content a:last-child {
    border-bottom: none;
}

/* Efeito Azul conforme a tua imagem */
.dropdown-content a:hover {
    background-color: #3498db !important;
    color: white !important;
}

/* Mostra o menu ao passar o rato */
.dropdown:hover .dropdown-content {
    display: block;
}