:root {
    --primary: #cc1719;
    --secondary: #ffcb00;
    --dark: #1a0a0a;
    --background: #ffffff;
    --surface: #f7f4f4;
    --text: #1a1a1a;
    --muted: rgba(26, 10, 10, 0.6);
    --white: #ffffff;
    --font: 'Avory I PE Variable', 'Oswald', system-ui, -apple-system, sans-serif;
    --brand: 'Avory I PE Variable', 'Oswald', system-ui, sans-serif;
    --cor-vermelho: #cc1719;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--background);
}

/* ── Barra Gov ─────────────────────────────────────────── */
.barra-gov {
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    padding: 8px 0;
}

.container-gov {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.links-gov a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 16px;
    text-transform: uppercase;
}

.links-gov a:hover {
    color: var(--primary);
}

/* ── Header ────────────────────────────────────────────── */
header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid var(--secondary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 120px;
}

.logo-area {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.logo-area svg,
.logo-area img {
    height: 96px;
    width: auto;
    display: block;
    fill: var(--white);
    cursor: pointer;
}

/* ── Menu ───────────────────────────────────────────────── */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.menu-item {
    font-family: var(--font);
    text-transform: uppercase;
    padding: 20px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    color: var(--white);
    transition: color 0.2s;
    white-space: nowrap;
}

/* Itens de menu que são links (<a>) herdam a cor branca do .menu-item */
.menu-item > a {
    color: inherit;
    text-decoration: none;
}

.menu-item:hover {
    color: var(--secondary);
}

.search-btn {
    color: var(--white);
    padding: 20px 14px;
    cursor: pointer;
}

.search-btn:hover {
    color: var(--secondary);
}

/* ── Dropdown ───────────────────────────────────────────── */
.dropdown {
    display: none;
    position: absolute;
    background: var(--white);
    top: calc(100% - 2px);
    left: 0;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--secondary);
    border-radius: 0 0 8px 8px;
}

.dropdown a {
    display: block;
    padding: 13px 18px;
    color: var(--dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(204, 23, 25, 0.1);
    transition: background 0.15s, color 0.15s;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--secondary);
    color: var(--dark);
}

.menu-item:hover .dropdown,
.dropdown.open {
    display: block;
}

/* ── Submenu aninhado (Projeto) ─────────────────────────── */
.dropdown-item {
    display: block;
    padding: 13px 18px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(204, 23, 25, 0.1);
    cursor: pointer;
    background: rgba(204, 23, 25, 0.05);
}

.dropdown-item:hover {
    background: var(--secondary);
    color: var(--dark);
}

.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.18);
    border-top: 3px solid var(--secondary);
    border-radius: 0 8px 8px 8px;
    z-index: 1100;
}

.has-submenu:hover .submenu,
.submenu.open {
    display: block;
}

/* ── Banner ─────────────────────────────────────────────── */
.banner {
    width: 100%;
    height: clamp(150px, 25vw, 300px);
    background: #cc191b;
    border-top: 5px solid #fdc90a;
    border-bottom: 5px solid #fdc90a;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}



/* faixa vermelha na base — ancora com o menu */
.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
}

.banner-img {
    max-width: 95%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.banner-title {
    display: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cc191b;
}

.banner h2 {
    font-family: var(--brand);
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    margin: 0;
    letter-spacing: 0.06em;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.banner p {
    margin: 20px 0 0;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(26, 10, 10, 0.65);
    font-weight: 700;
}

/* ── Seções Principais ──────────────────────────────────── */
main {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 320px;
}

section {
    display: none;
}

section.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

section h2 {
    font-family: var(--brand);
    color: var(--primary);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 8px;
}

/* linha decorativa abaixo dos títulos */
section h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--secondary);
    margin-top: 10px;
}

section p {
    line-height: 1.7;
    color: var(--muted);
    font-size: 1rem;
}

/* ── Slideshow de Fotos ─────────────────────────────────── */
.slideshow {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    user-select: none;
}

.slides {
    position: relative;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: 14px 18px;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.2s;
}

.slide-btn:hover {
    background: var(--primary);
}

.slide-btn.prev {
    left: 8px;
}

.slide-btn.next {
    right: 8px;
}

.slide-dots {
    text-align: center;
    padding: 14px 0 4px;
}

.dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: var(--primary);
}

/* ── Conceito ───────────────────────────────────────────── */
.conceito-section {
    position: relative;
    overflow: hidden;
}

.conceito-decor {
    position: absolute;
    width: 120px;
    opacity: 0.18;
    pointer-events: none;
    right: 0;
}

.conceito-decor--top {
    top: 0;
    transform: scaleY(1);
}

.conceito-decor--bottom {
    bottom: 0;
    transform: scaleY(-1);
}

.conceito-p {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.conceito-img-full {
    margin-bottom: 36px;
}

.conceito-quote {
    border-left: 4px solid var(--primary);
    padding: 14px 22px;
    margin: 0 0 36px;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--dark);
    background: rgba(204, 23, 25, 0.05);
    border-radius: 0 6px 6px 0;
    line-height: 1.65;
    max-width: 600px;
}

.conceito-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.conceito-duo--top {
    margin-bottom: 36px;
}

@media (max-width: 600px) {
    .conceito-duo {
        grid-template-columns: 1fr;
    }

    .conceito-decor {
        width: 70px;
    }
}

/* ── Mural ──────────────────────────────────────────────── */
.mural-frame {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
    cursor: zoom-in;
}

.mural-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 60%, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.mural-img,
.mural-frame img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.mural-frame:hover .mural-img,
.mural-frame:hover img {
    transform: scale(1.03);
}

.mural-zoom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    cursor: zoom-in;
}

.mural-zoom i {
    font-size: 1.8rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    pointer-events: none;
}

.mural-frame:hover .mural-zoom i {
    background: var(--primary);
}

/* Lupa sobre a foto */
.slide {
    position: relative;
}

.zoom-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    cursor: zoom-in;
}

.zoom-overlay i {
    font-size: 3rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slide:hover .zoom-overlay {
    opacity: 1;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox.open {
    display: flex;
}

#lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ── Formulário e Pesquisa ──────────────────────────────── */
.contact-form,
.search-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 520px;
}

input,
textarea {
    padding: 14px 16px;
    border: 2px solid rgba(204, 23, 25, 0.2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204, 23, 25, 0.15);
    background: var(--white);
}

button {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 15px 28px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 23, 25, 0.3);
}

/* ── Rodapé ─────────────────────────────────────────────── */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

footer h3 {
    font-family: var(--brand);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 0;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 6px;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    line-height: 2;
}

footer a:hover {
    color: var(--secondary);
}

/* ── Mobile Toggle ─────────────────────────────────────── */
.mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

/* ── Responsividade ─────────────────────────────────────── */
@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        border-top: 3px solid var(--secondary);
    }

    .nav-menu.open {
        display: flex;
    }

    .menu-item {
        width: 100%;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        position: static;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
    }

    .dropdown a {
        color: rgba(255, 255, 255, 0.85);
        padding-left: 36px;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .dropdown a:hover {
        background: var(--secondary);
        color: var(--dark);
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding-left: 36px;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background: rgba(0, 0, 0, 0.2);
        z-index: auto;
    }

    .submenu a {
        padding-left: 52px;
    }

    .container-gov {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nav-container {
        height: 90px;
    }

    .logo-area img {
        height: 64px;
    }
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-transform: none;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--dark);
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #f9f9f9;
}

.faq-answer p {
    padding: 16px 20px;
    margin: 0;
    color: #333;
    line-height: 1.6;
}
/* ── Equipe (Quem Somos) ────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 25px;
    border-top: 5px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-family: var(--brand);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    flex-grow: 1;
    margin-bottom: 20px;
    text-align: justify;
}

.lattes-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: color 0.2s;
    margin-top: auto;
}

.lattes-btn:hover {
    color: var(--secondary);
}

.lattes-btn i {
    font-size: 1.1rem;
}

.team-card {
    align-items: center;
    text-align: center;
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #eee;
}

/* --- Pesquisas --- */
.research-controls {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.search-box input:focus {
    border-color: var(--cor-vermelho);
    box-shadow: 0 0 8px rgba(181, 27, 39, 0.2);
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.research-card {
    background: white;
    padding: 1.5rem;
    border-left: 6px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.research-card[data-status="EM ANDAMENTO"] { border-left-color: #2ecc71; }
.research-card[data-status="CONCLUÍDO"] { border-left-color: var(--cor-vermelho); }
.research-card[data-status="DESATIVADO"] { border-left-color: #95a5a6; }

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.badge-andamento { background: #e8f8f0; color: #27ae60; }
.badge-concluido { background: #fdf2f2; color: var(--cor-vermelho); }
.badge-desativado { background: #f0f0f0; color: #7f8c8d; }

.research-card h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.25rem;
    line-height: 1.4;
}

.research-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.research-meta span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.research-meta i {
    color: var(--cor-vermelho);
}

.lattes-link {
    margin-left: 6px;
    color: var(--cor-vermelho);
    text-decoration: none;
    font-weight: 600;
}

.lattes-link:hover {
    text-decoration: underline;
}

.research-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s;
}

.research-desc.expanded {
    display: block;
    -webkit-line-clamp: initial;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--cor-vermelho);
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 0;
    font-size: 0.9rem;
    display: block;
}

@media (max-width: 768px) {
    .research-controls {
        padding: 1.5rem;
    }
}

.initial-message {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
    background: var(--surface);
    border-radius: 12px;
    border: 2px dashed #ddd;
    margin-top: 1rem;
}

/* =========================== EVENTOS (público) =========================== */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.evento-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.evento-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.evento-card .capa { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f0f0f0; display: block; }
.evento-card .capa-vazia {
    width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
    color: #cfcfcf; background: var(--surface); font-size: 2.4rem;
}
.evento-card .info { padding: 14px 16px; }
.evento-card .info h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--primary); }
.evento-card .meta { color: #666; font-size: .9rem; display: flex; flex-direction: column; gap: 2px; }
.evento-card .meta .fotos-qtd { color: #999; font-size: .8rem; margin-top: 6px; }

/* Detalhe do evento — fotos empilhadas, uma por linha (responsivo, scroll vertical) */
#eventos-detalhe { display: none; }
.detalhe-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 4px 0 16px; border-bottom: 3px solid var(--secondary); margin-bottom: 22px;
}
.btn-home {
    background: var(--primary); color: #fff; border: none; border-radius: 8px;
    padding: 9px 18px; font: inherit; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-home:hover { background: #a91315; }
.detalhe-titulo { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.evento-fotos { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.evento-fotos img {
    width: 100%; max-width: 1000px; height: auto; display: block;
    border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.evento-fotos .sem-fotos { color: #999; padding: 40px; text-align: center; }

/* Accordion de filtros (página de eventos enxuta) */
.filtros-accordion { border: 1px solid #eee; border-radius: 10px; margin-bottom: 18px; background: #fff; overflow: hidden; }
.filtros-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--primary); color: #fff; border: none; padding: 12px 18px; font: inherit;
    font-weight: 700; font-size: 1rem; cursor: pointer;
}
.filtros-toggle .chev { transition: transform .2s ease; }
.filtros-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.filtros-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.filtros-body.open { max-height: 600px; }
.filtros-body .research-controls { padding: 14px 16px; margin: 0; }

/* Barra superior da listagem de eventos: Home + accordion na mesma linha */
.eventos-topbar { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.eventos-topbar .btn-home { white-space: nowrap; }
.eventos-topbar .filtros-accordion { flex: 1; margin-bottom: 0; }

/* =================== Conteúdos (Biblioteca / Acesso / Notícias) =================== */
.conteudo-lista { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin: 0 auto; }
.conteudo-item {
    background: #fff; border: 1px solid #eee; border-left: 4px solid var(--primary);
    border-radius: 10px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.conteudo-tag {
    display: inline-block; background: #fdecec; color: var(--primary); font-size: .75rem;
    font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; text-transform: uppercase;
}
.conteudo-titulo { margin: 0 0 6px; font-size: 1.1rem; color: var(--text); }
.conteudo-meta { margin: 0 0 10px; color: #666; font-size: .9rem; }
.conteudo-data { color: #999; font-size: .85rem; display: block; margin-bottom: 4px; }
.conteudo-link {
    display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
    font-weight: 700; text-decoration: none;
}
.conteudo-link:hover { text-decoration: underline; }

/* Linhas compactas (Acesso à Informação e Documentos): título + link na mesma linha */
.conteudo-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.conteudo-linha .conteudo-titulo { margin: 0; font-size: 1rem; font-weight: 600; }

/* Documentos: separador por agrupador + bloco com divisórias entre itens */
.conteudo-grupo {
    max-width: 900px; margin: 26px auto 8px; color: var(--primary);
    border-bottom: 2px solid var(--secondary); padding-bottom: 6px; font-size: 1.2rem;
}
.conteudo-grupo-bloco {
    display: flex; flex-direction: column; max-width: 900px; margin: 0 auto;
    border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff;
}
.conteudo-grupo-bloco .conteudo-item {
    border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eee; border-left: 0; padding: 12px 16px;
}
.conteudo-grupo-bloco .conteudo-item:last-child { border-bottom: 0; }

.conteudo-vazio, .conteudo-erro, .conteudo-carregando { color: #999; text-align: center; padding: 20px; }

@media (max-width: 600px) {
    .conteudo-item { padding: 14px; }
    .conteudo-titulo { font-size: 1rem; }
}
