/* style-index.css - Página Inicial */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }

/* Propagandas */
.propaganda { background: #e9ecef; border: 2px dashed #adb5bd; display: flex; align-items: center; justify-content: center; color: #6c757d; font-size: 0.9em; }
.propaganda.topo { height: 90px; width: 100%; }
.propaganda.rodape { height: 120px; width: 100%; margin-top: 30px; }

/* Navegação */
.navbar-publico { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; }
.navbar-publico .logo { font-size: 1.5em; font-weight: bold; }
.navbar-publico .menu { display: flex; gap: 10px; }
.navbar-publico .btn { padding: 8px 16px; background: rgba(255,255,255,0.2); color: white; text-decoration: none; border-radius: 5px; }
.navbar-publico .btn:hover { background: rgba(255,255,255,0.3); }

/* HERO */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 60px 20px; text-align: center; }
.hero-conteudo h1 { font-size: 2.5em; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-conteudo p { font-size: 1.3em; margin-bottom: 30px; opacity: 0.9; }
.busca-hero { display: flex; max-width: 600px; margin: 0 auto; gap: 10px; }
.busca-hero input { flex: 1; padding: 15px 20px; border: none; border-radius: 30px; font-size: 1.1em; box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.btn-busca { padding: 15px 30px; background: #27ae60; color: white; border: none; border-radius: 30px; font-size: 1.1em; cursor: pointer; }
.btn-busca:hover { background: #229954; }

/* CATEGORIAS */
.categorias { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.categorias h2 { text-align: center; color: #2c3e50; margin-bottom: 30px; font-size: 1.8em; }
.grid-categorias { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.card-categoria { background: white; padding: 25px; border-radius: 12px; text-align: center; text-decoration: none; color: #333; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: transform 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.card-categoria:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.card-categoria .icone { font-size: 2.5em; }
.card-categoria .nome { font-weight: 600; color: #2c3e50; font-size: 1.1em; }
.card-categoria .total { color: #667eea; font-size: 0.9em; }

/* DESTAQUE */
.destaque { background: #f8f9fa; padding: 40px 20px; }
.destaque h2 { text-align: center; color: #2c3e50; margin-bottom: 30px; font-size: 1.8em; }
.grid-destaque {
    display: grid;
    grid-template-columns: repeat(3,  minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
    max-width: 1000px; 
    margin: 0 auto;
}

/* Tablet */
@media (max-width: 900px) {
    .grid-destaque {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celular */
@media (max-width: 600px) {
    .grid-destaque {
        grid-template-columns: 1fr;
    }
}

.card-destaque { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: transform 0.2s; }
.card-destaque:hover { transform: translateY(-5px); }
.card-destaque .imagem { height: 200px; background: #e9ecef; display: flex; align-items: center; justify-content: center; }
.card-destaque .imagem img { width: 100%; height: 100%; object-fit: cover; }
.card-destaque .sem-imagem { font-size: 4em; }
.card-destaque h3 { padding: 15px 20px 5px; color: #2c3e50; font-size: 1.3em; }
.card-destaque .funcao { padding: 0 20px; color: #666; font-size: 0.9em; }
.btn-ver { display: block; margin: 15px 20px 20px; padding: 12px; background: #667eea; color: white; text-align: center; text-decoration: none; border-radius: 8px; }
.btn-ver:hover { background: #5568d3; }

/* CONTAINER DAS BARRAS */
.barras-container {
    position: relative;
}

/* HERO precisa ser referência imagem sobreposta*/
.hero {
    position: relative;
}

/* IMAGEM SOBREPOSTA */
.imagem-sobreposta {

    position: absolute;

    top: 120px;
    left: 40px;

    width: clamp(100px, 18vw, 280px);

    height: auto;

    opacity: 0.85;

    z-index: 999;

    pointer-events: none;
}

/* =========================
   HOVER NAS IMAGENS
========================= */

.imagem {
    position: relative;
    overflow: hidden;
}

.imagem a {
    display: block;
}

.imagem img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* MENSAGEM */

.overlay {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: 14px;

    opacity: 0;

    transition: opacity 0.3s;

}

/* MOSTRAR AO PASSAR O MOUSE */

.imagem:hover .overlay {

    opacity: 1;

}

/* RODAPÉ */
.rodape-site { background: #2c3e50; color: white; text-align: center; padding: 20px; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero-conteudo h1 { font-size: 1.8em; }
    .busca-hero { flex-direction: column; }
    .grid-categorias { grid-template-columns: repeat(2, 1fr); }
}