﻿/* =============================================
   CENFAP – Estilos Principais
   ============================================= */

:root {
    --azul: #1a3a6b;
    --azul-medio: #1e5799;
    --azul-claro: #2980b9;
    --amarelo: #f5a623;
    --amarelo-claro: #ffd166;
    --verde: #27ae60;
    --branco: #ffffff;
    --cinza-claro: #f8f9fa;
    --cinza: #6c757d;
    --texto: #2c3e50;
    --sombra: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--texto);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ---- TOP BAR ---- */
.topbar {
    background: var(--azul);
    color: #fff;
    font-size: 0.82rem;
    padding: 7px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar-whatsapp {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s;
}
.topbar-whatsapp:hover { opacity: .8; color: #4ade80; }

/* ---- NAVBAR ---- */
.navbar { padding: 12px 0; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
}
.brand-icon-white {
    background: rgba(255,255,255,0.15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--azul); }
.brand-sub { font-size: 0.62rem; color: var(--cinza); }
.nav-link { font-size: 0.82rem; font-weight: 600; color: var(--texto) !important; padding: 6px 10px !important; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--azul-claro) !important; }
.btn-whatsapp { background: #25d366; color: #fff !important; border-radius: 20px; font-size: 0.8rem; font-weight: 600; border: none; }
.btn-whatsapp:hover { background: #1ebe5d; }

/* ---- HERO ---- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-modern {
    background: #0d2347;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* Foto de Maceió cobre TODO o banner como marca d'água */
.hero-bg-city {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    opacity: 0.22;
    z-index: 0;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: #0d2347;
    z-index: 1;
}

/* Layout: flex sem container — foto cola nas bordas */
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    min-height: 320px;
    width: 100%;
}

/* Texto esquerda — com padding interno */
.hero-left {
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 80px 20%;
}
.hero-left h1 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    font-weight: 800;
}
.hero-left h1 span { color: var(--amarelo); }
.hero-left p {
    color: rgba(255,255,255,0.78);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 380px;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Foto direita — cola no topo e na direita */
.hero-right {
    flex: 0 0 52%;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    min-height: 280px;
}

/* Degradê da esquerda para o centro: azul → transparente */
.hero-photo-fade {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 55%;
    background: linear-gradient(to right,
        rgba(13,35,71,1)   0%,
        rgba(13,35,71,0.7) 35%,
        rgba(13,35,71,0.2) 65%,
        transparent        100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Onda amarela/verde no canto inferior direito */
.hero-wave-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 80px;
    z-index: 4;
    pointer-events: none;
}
.hero-wave-corner svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Botões */
.btn-hero-primary {
    background: var(--amarelo);
    color: var(--azul);
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 8px;
    border: none;
    font-size: 0.88rem;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-hero-primary:hover { background: #e09510; color: var(--azul); transform: translateY(-2px); }
.btn-hero-outline {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.45);
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.15); color: #fff; }

@media (max-width: 991px) {
    .hero-inner { flex-direction: column; }
    .hero-left  { flex: none; padding: 36px 24px 28px; }
    .hero-right { flex: none; height: 220px; }
    .hero-curve { display: none; }
    .hero-wave-corner { width: 260px; height: 60px; }
}
@media (max-width: 767px) {
    .hero-left h1 { font-size: 1.5rem; }
    .hero-right { display: none; }
}

@media (max-width: 991px) {
    .hero-container { padding-top: 40px; padding-bottom: 70px; }
    .hero-img-col { justify-content: center; }
    .hero-img-frame { max-width: 100%; border-radius: 16px 16px 0 16px; }
}
@media (max-width: 767px) {
    .hero-text h1 { font-size: 1.7rem; }
    .hero-img-col { display: none; }
    .hero-container { padding-bottom: 60px; }
}

/* ---- DESTAQUES RÁPIDOS ---- */
.destaques { background: #fff; padding: 40px 0; }
.destaque-card {
    background: var(--cinza-claro);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    border-bottom: 3px solid var(--azul-claro);
    transition: transform .2s, box-shadow .2s;
}
.destaque-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.destaque-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; margin: 0 auto 12px;
}
.destaque-card h4 { font-size: 1.4rem; color: var(--azul); margin-bottom: 4px; }
.destaque-card p { font-size: 0.82rem; color: var(--cinza); margin: 0; }

/* ---- SEÇÕES GERAIS ---- */
.section { padding: 70px 0; }
.section-alt { background: var(--cinza-claro); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--azul); margin-bottom: 8px; }
.section-subtitle { color: var(--cinza); font-size: 1rem; margin-bottom: 40px; }
.section-label {
    display: inline-block;
    background: rgba(26,58,107,0.08);
    color: var(--azul-claro);
    padding: 4px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; margin-bottom: 10px;
}
.divider-line {
    width: 50px; height: 4px;
    background: linear-gradient(90deg, var(--azul-claro), var(--amarelo));
    border-radius: 2px; margin: 12px 0 20px;
}

/* ---- QUEM SOMOS ---- */
.sobre-img {
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    width: 100%;
}
.missao-card {
    background: var(--azul);
    color: #fff; border-radius: var(--radius);
    padding: 24px; margin-bottom: 16px;
}
.missao-card h5 { color: var(--amarelo); margin-bottom: 8px; }
.area-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #eee;
}
.area-item:last-child { border-bottom: none; }
.area-icon {
    width: 38px; height: 38px; min-width: 38px;
    background: rgba(26,58,107,0.08);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--azul-claro); font-size: 1.1rem;
}
.area-item h6 { margin-bottom: 2px; font-size: 0.9rem; color: var(--azul); }
.area-item p { margin: 0; font-size: 0.8rem; color: var(--cinza); }

/* ---- OBJETIVOS ---- */
.objetivo-card {
    background: #fff; border-radius: var(--radius);
    padding: 28px 24px; text-align: center;
    box-shadow: var(--sombra); height: 100%;
    border-top: 4px solid var(--azul-claro);
    transition: transform .2s;
}
.objetivo-card:hover { transform: translateY(-4px); }
.objetivo-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem; margin: 0 auto 16px;
}
.objetivo-card h5 { color: var(--azul); margin-bottom: 8px; }
.objetivo-card p { color: var(--cinza); font-size: 0.88rem; margin: 0; }

/* ---- CURSOS ---- */
.curso-card {
    background: #fff; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--sombra);
    transition: transform .2s, box-shadow .2s; height: 100%;
}
.curso-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.curso-img {
    height: 160px; background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 3rem; position: relative; overflow: hidden;
}
.curso-img img { width: 100%; height: 100%; object-fit: cover; }
.curso-categoria {
    position: absolute; top: 10px; left: 10px;
    background: var(--amarelo); color: var(--azul);
    font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.curso-body { padding: 18px; }
.curso-nivel {
    font-size: 0.72rem; color: var(--cinza);
    background: var(--cinza-claro); padding: 2px 8px; border-radius: 10px;
    display: inline-block; margin-bottom: 8px;
}
.curso-body h5 { font-size: 0.95rem; color: var(--azul); margin-bottom: 8px; }
.curso-body p { font-size: 0.82rem; color: var(--cinza); margin-bottom: 14px; }
.btn-curso {
    background: var(--azul); color: #fff;
    border: none; border-radius: 6px; padding: 7px 16px;
    font-size: 0.8rem; font-weight: 600; text-decoration: none;
    transition: background .2s; display: inline-block;
}
.btn-curso:hover { background: var(--azul-claro); color: #fff; }

/* ---- PROJETOS ---- */
.projeto-card {
    background: #fff; border-radius: var(--radius);
    padding: 24px; box-shadow: var(--sombra);
    display: flex; align-items: flex-start; gap: 16px;
    transition: transform .2s; height: 100%;
}
.projeto-card:hover { transform: translateY(-4px); }
.projeto-logo {
    width: 70px; min-width: 70px; height: 70px;
    border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem;
}
.projeto-logo img { width: 100%; height: 100%; object-fit: cover; }
.projeto-info h5 { font-size: 0.95rem; color: var(--azul); margin-bottom: 6px; }
.projeto-info p { font-size: 0.82rem; color: var(--cinza); margin: 0; }

/* ---- EVENTOS ---- */
.evento-card {
    background: #fff; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--sombra);
    display: flex; gap: 0; transition: transform .2s;
}
.evento-card:hover { transform: translateY(-3px); }
.evento-data {
    background: var(--azul); color: #fff;
    min-width: 70px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 16px 10px;
}
.evento-data .dia { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.evento-data .mes { font-size: 0.72rem; text-transform: uppercase; font-weight: 600; }
.evento-info { padding: 16px; flex: 1; }
.evento-info h6 { font-size: 0.9rem; color: var(--azul); margin-bottom: 4px; }
.evento-info p { font-size: 0.8rem; color: var(--cinza); margin: 0; }
.evento-local { font-size: 0.75rem; color: var(--azul-claro); margin-top: 6px; }

/* ---- STATS ---- */
.stats-section {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
    padding: 60px 0;
}
.stat-item { text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--amarelo); margin-bottom: 4px; }
.stat-item p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0; }

/* ---- MAPA ALAGOAS ---- */
.mapa-section { background: var(--cinza-claro); }
.mapa-wrap {
    background: #fff; border-radius: var(--radius);
    padding: 30px; box-shadow: var(--sombra); text-align: center;
}
.mapa-wrap img { max-width: 100%; border-radius: 8px; }

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, #0d2b5e 0%, var(--azul-medio) 100%);
    padding: 70px 0; text-align: center;
}
.cta-section h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 28px; }
.btn-cta {
    background: var(--amarelo); color: var(--azul);
    font-weight: 700; padding: 14px 36px; border-radius: 8px;
    border: none; font-size: 1rem; text-decoration: none;
    display: inline-block; transition: all .2s;
}
.btn-cta:hover { background: #e09510; color: var(--azul); transform: translateY(-2px); }

/* ---- PARCEIROS ---- */
.parceiro-item {
    background: #fff; border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--sombra); height: 90px;
    filter: grayscale(60%); transition: filter .2s, transform .2s;
}
.parceiro-item:hover { filter: grayscale(0); transform: scale(1.04); }
.parceiro-item img { max-height: 55px; max-width: 100%; object-fit: contain; }
.parceiro-placeholder {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    color: var(--azul); font-size: 0.9rem; text-align: center;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--azul);
    padding: 60px 0 0;
}
.footer-title {
    color: var(--amarelo); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px; font-weight: 700;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--amarelo); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 40px 0 20px; }
.footer-bottom { padding-bottom: 24px; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 56px; height: 56px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); color: #fff; }

/* ---- FILTROS DE CURSOS ---- */
.filter-btn {
    background: #fff; border: 2px solid #dee2e6;
    color: var(--texto); padding: 7px 18px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--azul); border-color: var(--azul); color: #fff;
}

/* ---- FORMULÁRIO CONTATO ---- */
.form-control, .form-select {
    border-radius: 8px; border: 1.5px solid #dee2e6;
    padding: 10px 14px; font-size: 0.9rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.12);
}
.btn-submit {
    background: var(--azul); color: #fff;
    border: none; border-radius: 8px; padding: 12px 32px;
    font-weight: 700; font-size: 0.95rem; transition: background .2s;
}
.btn-submit:hover { background: var(--azul-claro); }

/* ---- ADMIN ---- */
.admin-sidebar {
    background: var(--azul); min-height: 100vh;
    width: 250px; position: fixed; top: 0; left: 0; z-index: 100;
    padding: 0; overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75) !important;
    padding: 12px 20px !important; font-size: 0.88rem !important;
    display: flex; align-items: center; gap: 10px;
    border-left: 3px solid transparent; transition: all .2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff !important; background: rgba(255,255,255,0.08);
    border-left-color: var(--amarelo);
}
.admin-sidebar .nav-link i { font-size: 1rem; width: 20px; }
.admin-content { margin-left: 250px; min-height: 100vh; background: #f0f2f5; }
.admin-topbar {
    background: #fff; padding: 14px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex; justify-content: space-between; align-items: center;
}
.admin-main { padding: 28px 24px; }
.stat-card {
    background: #fff; border-radius: var(--radius);
    padding: 24px; box-shadow: var(--sombra);
    display: flex; align-items: center; gap: 16px;
}
.stat-card-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
}
.stat-card h3 { font-size: 1.8rem; margin-bottom: 2px; color: var(--azul); }
.stat-card p { margin: 0; font-size: 0.82rem; color: var(--cinza); }
.admin-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--sombra); overflow: hidden;
}
.admin-card-header {
    padding: 16px 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.admin-card-header h5 { margin: 0; font-size: 1rem; color: var(--azul); }
.admin-card-body { padding: 20px; }
.table th { font-size: 0.82rem; color: var(--cinza); font-weight: 600; text-transform: uppercase; }
.table td { font-size: 0.88rem; vertical-align: middle; }
.badge-ativo { background: #d1fae5; color: #065f46; font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; }
.badge-inativo { background: #fee2e2; color: #991b1b; font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; }
.btn-admin-primary {
    background: var(--azul); color: #fff; border: none;
    border-radius: 6px; padding: 8px 18px; font-size: 0.85rem;
    font-weight: 600; text-decoration: none; display: inline-block; transition: background .2s;
}
.btn-admin-primary:hover { background: var(--azul-claro); color: #fff; }

/* ---- RESPONSIVO ---- */
@media (max-width: 991px) {
    .admin-sidebar { width: 100%; min-height: auto; position: relative; }
    .admin-content { margin-left: 0; }
    .hero { padding: 60px 0; }
}
@media (max-width: 767px) {
    .hero h1 { font-size: 1.8rem; }
    .topbar .container { justify-content: center; text-align: center; }
    .stat-card { flex-direction: column; text-align: center; }
}

/* ---- ANIMAÇÕES ---- */
.fade-up { opacity: 0; transform: translateY(20px); transition: all .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   TOPBAR + ACESSIBILIDADE (unificados)
   ============================================= */
.topbar-cenfap {
    background: var(--azul);
    color: #fff;
    font-size: 0.78rem;
    padding: 6px 0;
}
.topbar-cenfap .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar-info {
    color: rgba(255,255,255,.82);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.topbar-acess-label {
    color: rgba(255,255,255,.75);
    font-weight: 600;
    white-space: nowrap;
}
.topbar-font-btns {
    display: flex;
    gap: 3px;
}
.topbar-font-btns button {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 4px;
    padding: 1px 7px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.6;
    transition: background .15s;
}
.topbar-font-btns button:nth-child(1) { font-size: 0.68rem; }
.topbar-font-btns button:nth-child(2) { font-size: 0.78rem; }
.topbar-font-btns button:nth-child(3) { font-size: 0.9rem;  }
.topbar-font-btns button:hover,
.topbar-font-btns button:focus {
    background: rgba(255,255,255,.25);
    outline: 2px solid var(--amarelo);
    outline-offset: 1px;
}
.topbar-wa {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .2s;
}
.topbar-wa:hover { opacity: .8; color: #4ade80; }

/* Acessibilidade no menu mobile */
.navbar-acess-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: .82rem;
    color: var(--cinza);
}
.navbar-acess-mobile button {
    background: var(--cinza-claro);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

html { font-size: 16px; transition: font-size .2s; }
body { font-size: 1rem; }

/* VLibras – não sobrescrever posicionamento do widget */
[vw] { display: block; }

@media (max-width: 767px) {
    .topbar-info { display: none; }
    .topbar-acess-label { display: none; }
}

/* =============================================
   LOGO
   ============================================= */

/* Navbar */
.navbar-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 991px) {
    .navbar-logo { height: 68px; }
}
@media (max-width: 575px) {
    .navbar-logo { height: 54px; }
}

/* Footer */
.footer-logo {
    height: 180px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
}

/* Admin sidebar */
.sidebar-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

@media (max-width: 991px) {
    .navbar-logo { height: 44px; }
}

/* =============================================
   CONFIGURAÇÕES – Cards de Logo
   ============================================= */
.cfg-logo-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1.5px solid #eee;
    height: 100%;
}
.cfg-logo-preview {
    border-radius: 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}
.cfg-logo-preview img {
    max-height: 88px;
    max-width: 100%;
    object-fit: contain;
}

/* =============================================
   EVENTOS – Admin cards com imagem
   ============================================= */
.evento-admin-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    border-radius: 12px 12px 0 0;
}
.evento-admin-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.evento-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.3); font-size: 3.5rem;
}
.evento-admin-data {
    position: absolute; bottom: 10px; left: 10px;
    background: var(--azul);
    color: #fff; border-radius: 8px;
    padding: 6px 12px; text-align: center;
    line-height: 1.1;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.evento-admin-data .dia  { display: block; font-size: 1.4rem; font-weight: 800; }
.evento-admin-data .mes  { display: block; font-size: .7rem; text-transform: uppercase; font-weight: 600; }
.evento-admin-data .ano  { display: block; font-size: .65rem; opacity: .7; }
.evento-admin-status {
    position: absolute; top: 10px; right: 10px;
    font-size: .72rem; padding: 3px 10px; border-radius: 20px;
}

/* =============================================
   EVENTOS – Página pública
   ============================================= */
.evento-pub-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    display: flex; flex-direction: column;
}
.evento-pub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.evento-pub-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    flex-shrink: 0;
}
.evento-pub-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s;
}
.evento-pub-card:hover .evento-pub-thumb img { transform: scale(1.04); }
.evento-pub-sem-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.25); font-size: 4rem;
}
.evento-pub-data {
    position: absolute; bottom: 12px; left: 12px;
    background: var(--azul);
    color: #fff; border-radius: 8px;
    padding: 8px 14px; text-align: center;
    line-height: 1.1;
    box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.evento-pub-data .dia  { display: block; font-size: 1.6rem; font-weight: 800; }
.evento-pub-data .mes  { display: block; font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.evento-pub-data .ano  { display: block; font-size: .65rem; opacity: .7; }
.evento-pub-body {
    padding: 18px; flex: 1; display: flex; flex-direction: column;
}
.evento-pub-body h5 {
    font-size: 1rem; color: var(--azul); margin-bottom: 6px;
}
.evento-pub-local {
    font-size: .8rem; color: var(--azul-claro);
    margin-bottom: 8px;
}
.evento-pub-body p {
    font-size: .85rem; color: var(--cinza);
    margin: 0; flex: 1;
}

/* =============================================
   NOTÍCIAS – Redesign moderno
   ============================================= */

/* Reset de links de notícia */
.noticia-destaque-link,
.noticia-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}
.noticia-destaque-link:hover,
.noticia-card-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* ---- Destaque hero ---- */
.noticia-destaque {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    position: relative;
}
.noticia-destaque-img {
    position: relative;
    height: 420px;
    overflow: hidden;
}
.noticia-destaque-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.noticia-destaque:hover .noticia-destaque-img img { transform: scale(1.04); }
.noticia-sem-img-destaque {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.15); font-size: 6rem;
}
.noticia-destaque-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(10,20,50,.92) 0%,
        rgba(10,20,50,.45) 55%,
        transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 36px 32px;
}
.noticia-destaque-overlay h2 {
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.noticia-destaque-overlay p {
    color: rgba(255,255,255,.82);
    font-size: .9rem;
    margin-bottom: 14px;
    max-width: 560px;
}
.noticia-data-badge {
    color: rgba(255,255,255,.65);
    font-size: .78rem;
}

/* ---- Badges de categoria ---- */
.noticia-cat-badge {
    display: inline-block;
    background: var(--amarelo);
    color: var(--azul);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-decoration: none !important;
    letter-spacing: .3px;
}
.noticia-cat-badge-lg {
    display: inline-block;
    background: var(--azul);
    color: #fff !important;
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background .2s;
}
.noticia-cat-badge-lg:hover { background: var(--azul-claro); color: #fff !important; }

/* ---- Card de notícia ---- */
.noticia-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.05);
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,.13);
}
.noticia-card-img {
    height: 190px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    flex-shrink: 0;
}
.noticia-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}
.noticia-card:hover .noticia-card-img img { transform: scale(1.06); }
.noticia-card-img .noticia-cat-badge {
    position: absolute; top: 10px; left: 10px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.noticia-sem-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.2); font-size: 3rem;
}
.noticia-card-body {
    padding: 18px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.noticia-meta {
    font-size: .73rem;
    color: var(--cinza);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.noticia-card-body h5 {
    font-size: .95rem;
    color: var(--azul);
    margin-bottom: 8px;
    line-height: 1.45;
    flex: 1;
}
.noticia-card-body p {
    font-size: .82rem;
    color: var(--cinza);
    margin-bottom: 14px;
    line-height: 1.55;
}
.noticia-lermais {
    font-size: .8rem;
    color: var(--azul-claro);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
}
.noticia-card:hover .noticia-lermais { gap: 8px; }

/* ---- Sidebar ---- */
.noticia-sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.05);
}
.sidebar-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cinza-claro);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Categorias como pills */
.cat-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-list li {
    list-style: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.cat-list a {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 14px !important;
    background: var(--cinza-claro);
    color: var(--texto) !important;
    text-decoration: none !important;
    font-size: .82rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1.5px solid transparent;
    transition: all .18s ease;
    white-space: nowrap;
}
.cat-list a:hover {
    background: rgba(26,58,107,.08);
    border-color: var(--azul-claro);
    color: var(--azul) !important;
    text-decoration: none !important;
}
.cat-list a.active {
    background: var(--azul) !important;
    color: #fff !important;
    border-color: var(--azul) !important;
    font-weight: 600;
    text-decoration: none !important;
}
.cat-list a .badge-count {
    background: rgba(255,255,255,.25);
    color: inherit;
    font-size: .68rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.cat-list a.active .badge-count { background: rgba(255,255,255,.3); }

/* Notícia mini (sidebar) */
.noticia-mini {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .15s ease;
}
.noticia-mini:hover { transform: translateX(3px); text-decoration: none !important; }
.noticia-mini:last-child { border-bottom: none; padding-bottom: 0; }
.noticia-mini.active { opacity: .55; pointer-events: none; }
.noticia-mini-img {
    width: 58px;
    min-width: 58px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--azul), var(--azul-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.noticia-mini-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.noticia-mini-info { flex: 1; min-width: 0; }
.noticia-mini-info span {
    display: block;
    font-size: .83rem;
    color: var(--texto);
    line-height: 1.35;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.noticia-mini-info small {
    color: var(--cinza);
    font-size: .72rem;
    margin-top: 3px;
    display: block;
}

/* =============================================
   NOTÍCIA – Página individual
   ============================================= */
.noticia-titulo { font-size: clamp(1.4rem,3vw,2rem); color: var(--azul); margin-bottom: 12px; }
.noticia-resumo-lead { font-size: 1.05rem; color: var(--cinza); border-left: 4px solid var(--azul-claro); padding-left: 16px; margin-bottom: 24px; }
.noticia-capa-wrap { border-radius: var(--radius); overflow: hidden; }
.noticia-capa-img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.noticia-conteudo { font-size: .95rem; line-height: 1.8; color: var(--texto); }
.noticia-conteudo p { margin-bottom: 16px; }

/* Compartilhar */
.noticia-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; text-decoration: none; transition: transform .2s;
}
.share-btn:hover { transform: scale(1.1); color: #fff; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tw { background: #000; }

/* =============================================
   GALERIA – Slides
   ============================================= */
.noticia-galeria { border-top: 2px solid var(--cinza-claro); padding-top: 32px; }
.galeria-titulo {
    font-size: 1.1rem; color: var(--azul); margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.galeria-count {
    background: var(--azul); color: #fff;
    font-size: .72rem; padding: 2px 10px; border-radius: 20px; font-weight: 600;
}
.galeria-slide-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); }

/* Slide principal */
.galeria-slide-main {
    position: relative; background: #111;
    height: 420px; overflow: hidden;
}
.galeria-slide { display: none; width: 100%; height: 100%; }
.galeria-slide.active { display: block; animation: fadeSlide .4s ease; }
.galeria-slide img {
    width: 100%; height: 100%; object-fit: contain;
    cursor: zoom-in; display: block;
}
.galeria-legenda {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.6); color: #fff;
    padding: 8px 16px; font-size: .82rem; text-align: center;
}
@keyframes fadeSlide { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

/* Botões de navegação */
.galeria-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.5); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; z-index: 10;
    transition: background .2s;
}
.galeria-btn:hover { background: rgba(0,0,0,.8); }
.galeria-prev { left: 12px; }
.galeria-next { right: 12px; }
.galeria-counter {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(0,0,0,.5); color: #fff;
    font-size: .75rem; padding: 3px 10px; border-radius: 20px;
}

/* Thumbnails */
.galeria-thumbs {
    display: flex; gap: 6px; padding: 10px;
    background: #1a1a1a; overflow-x: auto;
    scrollbar-width: thin; scrollbar-color: #444 #1a1a1a;
}
.galeria-thumb {
    width: 72px; min-width: 72px; height: 52px;
    border-radius: 6px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; transition: border-color .2s, opacity .2s;
    opacity: .6;
}
.galeria-thumb:hover { opacity: .9; }
.galeria-thumb.active { border-color: var(--amarelo); opacity: 1; }
.galeria-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.95);
    align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox-content img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-legenda { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 10px; }
.lightbox-counter { color: rgba(255,255,255,.4); font-size: .75rem; margin-top: 4px; }
.lightbox-close {
    position: fixed; top: 20px; right: 24px;
    background: rgba(255,255,255,.1); border: none; color: #fff;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
    cursor: pointer; z-index: 10000; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-prev, .lightbox-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1); border: none; color: #fff;
    width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem;
    cursor: pointer; z-index: 10000; transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* =============================================
   ADMIN – Galeria thumbs
   ============================================= */
.galeria-admin-thumb {
    position: relative; border-radius: 8px; overflow: hidden;
    aspect-ratio: 1; background: #f0f2f5;
}
.galeria-admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria-admin-del {
    position: absolute; top: 4px; right: 4px;
    background: rgba(220,38,38,.85); color: #fff; border: none;
    width: 24px; height: 24px; border-radius: 50%; font-size: .7rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.galeria-admin-del:hover { background: #dc2626; }
.galeria-admin-leg {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.6); color: #fff;
    font-size: .68rem; padding: 3px 6px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.galeria-upload-area {
    border: 2px dashed #dee2e6; border-radius: var(--radius);
    padding: 32px; text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.galeria-upload-area:hover,
.galeria-upload-area.drag-over {
    border-color: var(--azul-claro); background: rgba(41,128,185,.04);
}

@media (max-width: 767px) {
    .galeria-slide-main { height: 240px; }
    .noticia-destaque-img { height: 260px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* =============================================
   MAPA ALAGOAS – Leaflet interativo
   ============================================= */
.mapa-alagoas-wrap {
    background: rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 14px;
    overflow: hidden;
}
#mapaAlagoasLeaflet {
    height: 340px;
    width: 100%;
    border-radius: 10px;
    background: transparent !important;
}
/* Remove fundo padrão do Leaflet */
.leaflet-container {
    background: transparent !important;
}
.mapa-tooltip {
    background: rgba(13,35,71,.9) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: .8rem;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.mapa-leaflet-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.mapa-leaflet-pin i {
    color: #f5a623;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.mapa-leaflet-pin span {
    background: rgba(13,35,71,.88);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 2px;
    font-family: 'Poppins', sans-serif;
}

/* Lista de polos abaixo do mapa */
.mapa-polos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.mapa-polo-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .8rem;
    color: #fff;
    cursor: pointer;
    transition: background .18s, transform .15s;
}
.mapa-polo-item:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
}
.mapa-polo-pin {
    color: #f5a623;
    font-size: .85rem;
    line-height: 1;
}

/* =============================================
   PRESENÇA NO ESTADO – Seção mapa + foto
   ============================================= */
.presenca-section {
    position: relative;
    background: #0d2347;
    overflow: hidden;
    padding: 0;
}

/* Textura de fundo sutil */
.presenca-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26,92,56,.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(41,128,185,.15) 0%, transparent 55%);
    z-index: 0;
}

/* Container interno */
.presenca-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 48px;
    padding-top: 60px;
    padding-bottom: 80px; /* espaço para onda */
    flex-wrap: wrap;
}

/* Coluna do mapa */
.presenca-mapa-col {
    flex: 1 1 380px;
    min-width: 0;
}
/* Ajusta o card do mapa para fundo escuro */
.presenca-mapa-col .mapa-alagoas-wrap {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.presenca-mapa-col .mapa-polos-lista {
    border-top-color: rgba(255,255,255,.12);
}
.presenca-mapa-col .mapa-polo-item {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
    color: #fff;
}
.presenca-mapa-col .mapa-polo-pin { color: #f5a623; }

/* Coluna da foto */
.presenca-foto-col {
    flex: 1 1 340px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
}

/* Frame da foto — mesmo estilo do hero */
.presenca-foto-frame {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 20px 20px 0 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    background: linear-gradient(135deg, #1a5c38, #27ae60);
    min-height: 320px;
}
.presenca-foto-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
}
.presenca-foto-fallback {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    color: rgba(255,255,255,.4);
    text-align: center;
    gap: 12px;
    font-size: .9rem;
}
.presenca-foto-fallback i { font-size: 4rem; }

/* Badge flutuante com contagem de municípios */
.presenca-badge {
    position: relative;
    align-self: flex-end;
    margin-top: 16px;
    background: var(--azul);
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    z-index: 10;
}
.presenca-badge-num {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--amarelo);
    line-height: 1;
}
.presenca-badge-txt {
    font-size: .75rem;
    color: rgba(255,255,255,.8);
    line-height: 1.3;
    font-weight: 600;
}

/* Onda na base */
.presenca-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}
.presenca-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

@media (max-width: 991px) {
    .presenca-container { gap: 32px; padding-top: 40px; padding-bottom: 70px; }
    .presenca-foto-frame { max-width: 100%; border-radius: 16px 16px 0 16px; }
}
@media (max-width: 767px) {
    .presenca-foto-col { display: none; }
    .presenca-container { padding-bottom: 60px; }
}

/* =============================================
   NAVBAR – Dropdown menu
   ============================================= */
.dropdown-menu-cenfap {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    padding: 8px 0;
    min-width: 220px;
    margin-top: 6px !important;
    border-top: 3px solid var(--azul-claro);
}
.dropdown-menu-cenfap .dropdown-item {
    font-size: .83rem;
    font-weight: 500;
    color: var(--texto);
    padding: 9px 18px;
    display: flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.dropdown-menu-cenfap .dropdown-item i {
    color: var(--azul-claro);
    font-size: .9rem;
    width: 18px;
}
.dropdown-menu-cenfap .dropdown-item:hover,
.dropdown-menu-cenfap .dropdown-item:focus {
    background: rgba(26,58,107,.06);
    color: var(--azul);
}
.dropdown-menu-cenfap .dropdown-item:hover i { color: var(--azul); }

/* Seta do dropdown */
.nav-item.dropdown > .nav-link::after {
    border: none;
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: .65rem;
    vertical-align: middle;
    margin-left: 3px;
    transition: transform .2s;
}
.nav-item.dropdown.show > .nav-link::after {
    transform: rotate(180deg);
}

/* Navbar mais compacta com tantos itens */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-size: .78rem !important;
        padding: 6px 7px !important;
    }
}

/* =============================================
   PRESENÇA – Card interativo de polo
   ============================================= */
.presenca-polo-card {
    background: linear-gradient(145deg, #1a5c38, #27ae60) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px;
}

/* Estado padrão */
.presenca-polo-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    flex: 1;
}
.presenca-polo-default > i {
    font-size: 2.8rem;
    color: rgba(255,255,255,.35);
}
.presenca-polo-default > span {
    color: rgba(255,255,255,.65);
    font-size: .88rem;
    max-width: 220px;
    line-height: 1.5;
}

/* Pills de cidade */
.presenca-polo-pills-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.presenca-pill {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, transform .15s;
    font-family: 'Open Sans', sans-serif;
}
.presenca-pill:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-2px);
}

/* Info do polo */
.presenca-polo-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    animation: fadeInUp .3s ease;
}
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}
.presenca-polo-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.presenca-polo-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    flex-shrink: 0;
}
.presenca-polo-header h4 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 3px;
    font-family: 'Poppins', sans-serif;
}
.presenca-polo-cidade {
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.presenca-polo-lista {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.presenca-polo-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,.85);
    font-size: .83rem;
    line-height: 1.45;
}
.presenca-polo-lista li i {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.presenca-polo-voltar {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    align-self: flex-start;
    font-family: 'Open Sans', sans-serif;
    margin-top: 4px;
}
.presenca-polo-voltar:hover { background: rgba(255,255,255,.25); }

/* =============================================
   RESPONSIVIDADE GLOBAL
   ============================================= */

/* Topbar */
@media (max-width: 767px) {
    .topbar-cenfap .container { flex-direction: column; gap: 6px; text-align: center; }
    .topbar-left, .topbar-right { justify-content: center; flex-wrap: wrap; }
    .topbar-info { display: none; }
}

/* Navbar */
@media (max-width: 991px) {
    .navbar-logo { height: 44px; }
    .dropdown-menu-cenfap { min-width: 100%; }
}

/* Hero */
@media (max-width: 991px) {
    .hero-inner { flex-direction: column; }
    .hero-left  { flex: none; max-width: 100%; padding: 36px 24px 28px; }
    .hero-right { flex: none; max-width: 100%; height: 220px; }
    .hero-photo-fade { display: none; }
    .hero-wave-corner { width: 200px; height: 50px; }
}
@media (max-width: 767px) {
    .hero-left h1 { font-size: 1.5rem; }
    .hero-right { display: none; }
    .hero-left { padding-bottom: 60px; }
}

/* Seção presença */
@media (max-width: 991px) {
    .presenca-container { flex-direction: column; gap: 24px; padding-top: 32px; padding-bottom: 70px; }
    .presenca-mapa-col, .presenca-foto-col { flex: none; max-width: 100%; }
    .presenca-foto-frame { min-height: 260px; }
}
@media (max-width: 767px) {
    .presenca-foto-col { display: none; }
}

/* Cards objetivos */
@media (max-width: 575px) {
    .objetivo-card { padding: 20px 16px; }
    .objetivo-icon { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* Cursos */
@media (max-width: 575px) {
    .curso-card .curso-img { height: 120px; }
    .curso-body h5 { font-size: .88rem; }
}

/* Admin sidebar responsivo */
@media (max-width: 991px) {
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 16px;
    }
    .admin-sidebar .sidebar-brand { padding: 8px 0; border: none; }
    .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
    .admin-sidebar .nav-link { padding: 6px 10px !important; font-size: .78rem !important; border-left: none !important; border-radius: 6px; }
    .admin-content { margin-left: 0; }
    .admin-main { padding: 16px; }
}

/* Tabelas admin */
@media (max-width: 767px) {
    .table-responsive-admin { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-card-body .table { min-width: 500px; }
    .stat-card { flex-direction: column; text-align: center; gap: 8px; }
}

/* Notícias */
@media (max-width: 767px) {
    .noticia-destaque-img { height: 220px; }
    .noticia-destaque-overlay { padding: 16px; }
    .noticia-destaque-overlay h2 { font-size: 1.1rem; }
    .cat-list { gap: 6px; }
}

/* Galeria */
@media (max-width: 575px) {
    .galeria-slide-main { height: 200px; }
    .galeria-thumb { width: 52px; min-width: 52px; height: 40px; }
}

/* Footer */
@media (max-width: 767px) {
    .footer { padding: 40px 0 0; }
    .footer-title { margin-top: 16px; }
}

/* Mapa */
@media (max-width: 767px) {
    #mapaAlagoasLeaflet { height: 280px; }
}

/* Presença polo card */
@media (max-width: 575px) {
    .presenca-polo-card { padding: 20px 16px; }
    .presenca-polo-pills-hint { gap: 6px; }
    .presenca-pill { font-size: .72rem; padding: 4px 10px; }
}

/* Topbar clima/hora */
@media (max-width: 575px) {
    .topbar-clock, .topbar-sep, .topbar-weather { font-size: .72rem; }
    .topbar-font-btns button { padding: 1px 5px; }
}

/* Agente tutor */
.agente-tutor-btn {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--azul);
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    cursor: pointer;
    z-index: 998;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agente-tutor-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,.4); }
.agente-tutor-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.agente-tutor-btn i { color: #fff; font-size: 1.5rem; }

.agente-tutor-chat {
    position: fixed;
    bottom: 160px;
    right: 28px;
    width: 320px;
    max-height: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
    z-index: 997;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}
.agente-tutor-chat.open { display: flex; }

.agente-chat-header {
    background: var(--azul);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.agente-chat-header img {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    object-fit: cover;
}
.agente-chat-header .agente-nome { font-weight: 700; font-size: .9rem; font-family: 'Poppins',sans-serif; }
.agente-chat-header .agente-status { font-size: .72rem; color: rgba(255,255,255,.7); }
.agente-chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: .8;
    line-height: 1;
}
.agente-chat-close:hover { opacity: 1; }

.agente-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
}
.agente-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .83rem;
    line-height: 1.5;
}
.agente-msg.bot {
    background: var(--azul);
    color: #fff;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.agente-msg.user {
    background: #e9ecef;
    color: var(--texto);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.agente-chat-sugestoes {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fff;
    border-top: 1px solid #eee;
}
.agente-sug-btn {
    background: rgba(26,58,107,.08);
    border: 1px solid rgba(26,58,107,.2);
    color: var(--azul);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: 'Open Sans', sans-serif;
}
.agente-sug-btn:hover { background: var(--azul); color: #fff; }

.agente-chat-input {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}
.agente-chat-input input {
    flex: 1;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: .83rem;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}
.agente-chat-input input:focus { border-color: var(--azul-claro); }
.agente-chat-input button {
    background: var(--azul);
    border: none;
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .15s;
    flex-shrink: 0;
}
.agente-chat-input button:hover { background: var(--azul-claro); }

@media (max-width: 575px) {
    .agente-tutor-chat { width: calc(100vw - 32px); right: 16px; bottom: 140px; }
    .agente-tutor-btn  { right: 16px; bottom: 80px; }
}
