
:root {
    --page-background: #faf5e8;
    --page-surface: #ffffff;
    --page-text: #111111;
    --page-primary: #b83f68;
    --page-secondary: #963353;
    --page-dark: #000000;
    --page-light: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-background);
    color: #111111;
    line-height: 1.6;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.btn {
    display: inline-block; padding: 0.75rem 2rem; border: none;
    border-radius: 2rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all 0.3s;
}
.btn--primary { background: #111111; color: #ffffff; border: 3px solid var(--page-primary); }
.btn--primary:hover { background: var(--page-primary); color: #ffffff; transform: translateY(-2px); }
.skip-link {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--page-primary); color: #ffffff; padding: 0.75rem 1.5rem;
    z-index: 9999; border-radius: 0 0 0.5rem 0.5rem; font-weight: 700;
}
.skip-link:focus { top: 0; }
.header { background: #000000; color: #ffffff; }
.top-bar { background: #000000; padding: 0.3rem 0; font-size: 0.85rem; }
.top-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.top-bar__access { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.top-bar__links { display: flex; gap: 1.2rem; }
.top-bar__links a { color: var(--page-primary); }
.top-bar__links a:hover { color: #ffffff; }
.access-btn {
    background: transparent; border: 1px solid #ffffff; color: #ffffff;
    padding: 0.1rem 0.6rem; border-radius: 0.25rem; cursor: pointer;
    font-size: 0.8rem; transition: all 0.3s;
}
.access-btn:hover { background: #ffffff; color: #000000; }
.main-header { padding: 1rem 0; }
.main-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.logo a { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: #ffffff; }
.logo__text strong { font-size: 1.4rem; color: #ffffff; }
.logo__text small { font-size: 0.7rem; color: var(--page-primary); }
.logo__imagem { width: 45px; height: 45px; border-radius: 12px; flex-shrink: 0; display: block; }
.header-search { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.header-search form {
    display: flex; align-items: center; background: rgba(255,255,255,0.15);
    border-radius: 2rem; padding: 0.2rem 0.2rem 0.2rem 1rem;
}
.header-search input {
    background: transparent; border: none; padding: 0.4rem 0;
    color: #ffffff; outline: none; width: 180px; font-size: 0.9rem;
}
.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search button {
    background: var(--page-primary); border: none; color: #ffffff; padding: 0.4rem 1rem;
    border-radius: 2rem; cursor: pointer; transition: background 0.3s;
}
.header-search button:hover { background: var(--page-secondary); }
.header-social { display: flex; gap: 0.6rem; align-items: center; margin-left: 0.5rem; }
.header-social a { display: flex; align-items: center; justify-content: center; transition: all 0.3s; text-decoration: none; opacity: 0.9; }
.header-social a:hover { opacity: 1; transform: scale(1.1); }
.header-social svg { stroke: #ffffff; width: 22px; height: 22px; }
.main-nav { background: #000000; }
.main-nav .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
.menu-toggle {
    display: none; background: transparent; border: 1px solid #ffffff;
    color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.25rem;
    font-size: 1rem; cursor: pointer; margin: 0.4rem 0;
}
.nav-list { display: flex; flex-wrap: wrap; gap: 0.2rem; padding: 0; margin: 0; list-style: none; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block; padding: 0.8rem 1rem; color: var(--page-primary);
    font-weight: 500; border-radius: 0.25rem; transition: background 0.3s; text-decoration: none;
}
.nav-list > li > a:hover, .nav-list > li > a.active { background: var(--page-primary); color: #ffffff; text-decoration: none; }
.nav-list .has-dropdown > a::after { content: ' ▾'; }
.dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    background: #111111; min-width: 220px; border-radius: 0.25rem;
    padding: 0.3rem 0; box-shadow: 0 8px 16px rgba(0,0,0,0.3); z-index: 100; list-style: none;
}
.dropdown li a { display: block; padding: 0.6rem 1.2rem; color: var(--page-primary); transition: background 0.3s; text-decoration: none; }
.dropdown li a:hover { background: var(--page-primary); color: #ffffff; text-decoration: none; }
.nav-list li:hover .dropdown { display: block; }
.hero { background: #111111; color: #ffffff; padding: 4rem 0; }
.hero__inner { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: center; }
.hero__title { font-size: 2.8rem; line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
.hero__subtitle { font-size: 1.4rem; line-height: 1.5; margin-bottom: 1.8rem; }
.hero__image { text-align: center; font-size: 4rem; opacity: 0.9; }
.hero-logo-grande {
    width: 320px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
    transform: translateX(-35px);
}
.section { padding: 4rem 0; }
.section--alt { background: #ffffff; }
.section-title {
    font-size: 2rem; color: #000000; margin-bottom: 2rem;
    border-left: 5px solid var(--page-primary); padding-left: 1rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
    background: #ffffff; padding: 1.8rem; border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #000000;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.14); }
.card--link { display: block; color: #111111; text-decoration: none; }
.card--link:hover { color: #111111; text-decoration: none; background: #ffffff; }
.card__icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.card--team { text-align: center; background: #ffffff; }
.news-card time { display: block; margin-top: 0.8rem; font-size: 0.85rem; color: var(--page-primary); font-weight: 500; }
.footer {
    background: #000000; color: #ffffff; padding: 3rem 0 0; margin-top: 2rem;
}
.footer__inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
    padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h3 { margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.4rem; }
.footer a { color: var(--page-primary); }
.footer a:hover { color: #ffffff; }
.footer__bottom {
    background: rgba(0,0,0,0.2); padding: 1.2rem 0; margin-top: 1.5rem;
    text-align: center; font-size: 0.9rem;
}
.admin-float-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    border-radius: 50%; background: #000000; color: #ffffff;
    border: none; font-size: 28px; cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); z-index: 9999;
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.admin-float-btn:hover { transform: scale(1.1); background: var(--page-primary); }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__title { font-size: 2rem; }
    .menu-toggle { display: block; }
    .nav-list { display: none; flex-direction: column; width: 100%; padding: 0.5rem 0; }
    .nav-list.open { display: flex; }
    .dropdown { position: static; background: rgba(255,255,255,0.08); padding-left: 1.5rem; display: none; }
    .nav-list li:hover .dropdown { display: none; }
    .nav-list li.open .dropdown { display: block; }
    .footer__inner { grid-template-columns: 1fr; text-align: center; }

    /* ===== HEADER MAIS COMPACTO NO MOBILE ===== */
    .main-header {
        padding: 0.45rem 0;
    }

    .main-header__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    .logo a {
        gap: 0.5rem;
    }

    .logo__imagem {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .logo__text {
        min-width: 0;
    }

    .logo__text strong {
        display: block;
        font-size: 0.82rem;
        line-height: 1.05;
        white-space: nowrap;
    }

    .logo__text small {
        display: block;
        font-size: 0.56rem;
        line-height: 1.05;
        white-space: nowrap;
    }

    .header-search {
        margin: 0;
    }

    .header-search form {
        width: 100%;
        min-height: 34px;
        padding: 0.1rem 0.1rem 0.1rem 0.75rem;
    }

    .header-search input {
        width: 100%;
        padding: 0.2rem 0;
        font-size: 0.85rem;
    }

    .header-search button {
        padding: 0.3rem 0.75rem;
    }

    .header-social {
        gap: 0.35rem;
        margin: 0;
        justify-content: center;
        min-height: 20px;
    }

    .header-social svg {
        width: 17px;
        height: 17px;
    }

    .top-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}


/* ===== RESULTADOS DA BUSCA ===== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0.8rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid #e8e0d5;
    display: none;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #f0ece4;
    text-decoration: none;
    color: #111111;
    transition: all 0.2s;
    cursor: pointer;
}

.search-result-item:hover {
    background: #fff7fa;
    text-decoration: none;
    color: #111111;
}

.search-result-item strong {
    font-weight: 600;
    color: #111111;
}

.search-result-item .category {
    font-size: 0.7rem;
    background: var(--page-primary);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.search-result-empty span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.search-result-empty p {
    margin: 0;
    font-size: 1rem;
}

.search-result-empty strong {
    color: #111111;
}


@media (max-width: 430px) {
    .logo__text strong {
        font-size: 0.75rem;
    }

    .logo__text small {
        font-size: 0.52rem;
    }

    .logo__imagem {
        width: 30px;
        height: 30px;
    }
}


/* ===== TEMA DEFINITIVO: PRETO + ROSA ===== */
/* O antigo botão/modo de alto contraste não é mais exibido. */
.access-btn,
#high-contrast {
    display: none !important;
}

/* Destaques e links do tema */
a {
    color: var(--page-primary);
}

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

::selection {
    background: var(--page-primary);
    color: #ffffff;
}
/* ===== Página de Gráficos Comparativos ===== */
.graficos-comparativo{padding:3rem 0;background:var(--page-background)}
.graficos-comparativo .container{max-width:1400px}
.graficos-comparativo h1{font-size:2.5rem;color:#000;margin-bottom:3rem;padding-left:1rem;border-left:5px solid var(--page-primary)}
.graficos-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:2rem;margin-top:3rem}
.grafico-card{background:#fff;border-radius:1rem;padding:2rem;border:2px solid #e0e0e0;transition:all .3s ease;box-shadow:0 4px 12px rgba(0,0,0,.05)}
.grafico-card:hover{border-color:var(--page-primary);transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.1)}
.grafico-card h3{color:#000;font-family:'Playfair Display',Georgia,serif;font-size:1.5rem;margin-bottom:1.5rem;padding-left:1rem;border-left:5px solid var(--page-primary)}
.grafico-card img{width:100%;height:auto;border-radius:.5rem;margin-bottom:1.5rem;display:block}
.grafico-card .legenda{font-size:.9rem;color:#666;margin-bottom:1rem;text-align:center}
.grafico-card .topico{font-weight:600;color:#333;display:block;margin-bottom:.5rem}

/* ===== Paleta editável por página (Django Admin) ===== */
body { background: var(--page-background); color: var(--page-text); }
.section--alt, .card, .card--team { background: var(--page-surface); }
.header, .top-bar, .main-nav, .footer { background: var(--page-dark); color: var(--page-light); }
.hero { background: var(--page-dark); color: var(--page-light); }
.btn--primary { background: var(--page-dark); color: var(--page-light); border-color: var(--page-primary); }
.btn--primary:hover { background: var(--page-primary); color: var(--page-light); }
.section-title { color: var(--page-text); border-left-color: var(--page-primary); }
.top-bar__links a, .nav-list > li > a, .dropdown li a, .footer a, .news-card time { color: var(--page-primary); }
.nav-list > li > a:hover, .nav-list > li > a.active, .dropdown li a:hover, .header-search button { background: var(--page-primary); color: var(--page-light); }
.header-search button:hover { background: var(--page-secondary); }


/* Cabeçalho final: barra superior removida */
.top-bar { display: none !important; }
