/* ============================================
   PLATAFORMA DE BUSCA MS - DESIGN INSTITUCIONAL
   Baseado no padrão visual do Ministério da Saúde
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* --- RESET E BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores institucionais - Padrão Governo/MS */
    --cor-primaria: #446dff;
    --cor-primaria-escura: #2a4fd4;
    --cor-primaria-clara: #6b8cff;
    --cor-secundaria: #198754;
    --cor-proadi: #446dff;
    --cor-pronas: #446dff;
    --cor-pronon: #446dff;
    
    /* Cores de destaque */
    --cor-verde: #0b970a;
    --cor-amarelo: #fece11;
    --cor-vermelho: #fd0606;
    
    /* Cores de estado */
    --cor-sucesso: #168821;
    --cor-alerta: #ffcd07;
    --cor-erro: #e52207;
    --cor-info: #155bcb;
    
    /* Tons neutros */
    --cor-texto: #1a1a1a;
    --cor-texto-suave: #555555;
    --cor-texto-claro: #888888;
    --cor-borda: #e0e0e0;
    --cor-fundo: #f4fafe;
    --cor-fundo-card: #ffffff;
    --cor-fundo-cinza: #f4fafe;
    
    /* Espaçamento */
    --espacamento-xs: 0.25rem;
    --espacamento-sm: 0.5rem;
    --espacamento-md: 1rem;
    --espacamento-lg: 1.5rem;
    --espacamento-xl: 2rem;
    --espacamento-xxl: 3rem;
    
    /* Tipografia */
    --fonte-familia: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fonte-titulo: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --fonte-mono: "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
    
    /* Bordas e sombras */
    --borda-raio: 8px;
    --borda-raio-lg: 16px;
    --borda-raio-pill: 50px;
    --sombra-card: 0 2px 8px rgba(0,0,0,0.08);
    --sombra-elevada: 0 8px 24px rgba(0,0,0,0.12);
    --sombra-suave: 0 1px 4px rgba(0,0,0,0.05);
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-familia);
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: none;
    color: var(--cor-primaria-escura);
}

/* --- CONTAINER --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--espacamento-lg);
}

/* --- HEADER --- */
.header {
    background: var(--cor-fundo);
    color: var(--cor-texto);
    padding: var(--espacamento-md) 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--espacamento-md);
    color: var(--cor-texto);
    font-weight: 600;
    font-size: 1.125rem;
}

.logo:hover {
    text-decoration: none;
    color: var(--cor-primaria);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    display: none;
}

.nav {
    display: flex;
    gap: var(--espacamento-xl);
}

.nav a {
    color: var(--cor-texto);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--espacamento-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--cor-primaria);
    border-bottom-color: var(--cor-primaria);
    text-decoration: none;
}

/* --- MAIN --- */
.main {
    flex: 1;
    padding: var(--espacamento-xxl) 0;
}

/* --- FOOTER --- */
.footer {
    background: var(--cor-fundo);
    color: var(--cor-texto);
    padding: var(--espacamento-xxl) 0 var(--espacamento-lg);
    border-top: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--espacamento-xl);
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--espacamento-xl);
    padding-bottom: var(--espacamento-xl);
}

.footer-logo {
    height: 50px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo.logo-lg {
    height: 60px;
}

.footer-logo.logo-sm {
    height: 40px;
}

.footer-info {
    text-align: center;
    color: var(--cor-texto-suave);
    font-size: 0.875rem;
}

.footer-info p {
    margin-bottom: var(--espacamento-sm);
}

/* --- BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--espacamento-md) var(--espacamento-xl);
    border: 2px solid transparent;
    border-radius: var(--borda-raio-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--cor-primaria);
    color: white;
    border-color: var(--cor-primaria);
}

.btn-primary:hover {
    background: var(--cor-primaria-escura);
    border-color: var(--cor-primaria-escura);
    color: white;
}

.btn-secondary {
    background: var(--cor-texto-suave);
    color: white;
    border-color: var(--cor-texto-suave);
}

.btn-secondary:hover {
    background: var(--cor-texto);
    border-color: var(--cor-texto);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--cor-borda);
    color: var(--cor-texto);
}

.btn-outline:hover {
    background: var(--cor-fundo-cinza);
    border-color: var(--cor-texto-suave);
    color: var(--cor-texto);
}

.btn-small {
    padding: var(--espacamento-sm) var(--espacamento-lg);
    font-size: 0.875rem;
}

/* --- PÁGINA INICIAL --- */
.hero {
    text-align: center;
    padding: var(--espacamento-xxl) 0;
    margin-bottom: var(--espacamento-xl);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: transparent;
    border: 60px solid var(--cor-verde);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: transparent;
    border: 50px solid var(--cor-vermelho);
    border-radius: 50%;
    z-index: -1;
}

/* Bola amarela dentro da rosquinha verde */
.hero .hero-yellow-ball {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    background: var(--cor-amarelo);
    border-radius: 50%;
    z-index: -1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #555555;
    margin-bottom: var(--espacamento-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--cor-texto-suave);
    margin-bottom: var(--espacamento-lg);
    line-height: 1.6;
}

.hero-subtitle .highlight {
    font-weight: 600;
}

.hero-subtitle .highlight-proadi {
    color: var(--cor-proadi);
}

.hero-subtitle .highlight-pronas {
    color: var(--cor-pronas);
}

.hero-subtitle .highlight-pronon {
    color: var(--cor-pronon);
}

.hero-description {
    font-size: 1rem;
    color: var(--cor-texto-suave);
    margin-bottom: var(--espacamento-xl);
}

.hero-description .ai-badge {
    color: var(--cor-primaria);
    font-weight: 600;
}

.search-form-hero {
    max-width: 750px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: var(--espacamento-lg);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--cor-fundo-card);
    border: none;
    border-radius: var(--borda-raio-pill);
    padding: var(--espacamento-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 4px 16px rgba(68, 109, 255, 0.25);
}

.search-icon {
    padding: 0 var(--espacamento-md);
    color: var(--cor-texto-suave);
    font-size: 1.25rem;
}

.search-box input[type="text"] {
    flex: 1;
    padding: var(--espacamento-md);
    font-size: 1rem;
    border: none;
    background: transparent;
    color: var(--cor-texto);
}

.search-box input[type="text"]:focus {
    outline: none;
}

.search-box input[type="text"]::placeholder {
    color: var(--cor-texto-claro);
}

.search-box .btn {
    margin-left: var(--espacamento-sm);
}

.search-options {
    display: flex;
    justify-content: center;
    gap: var(--espacamento-xl);
    flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: var(--espacamento-sm);
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--cor-texto);
    padding: var(--espacamento-sm) var(--espacamento-md);
    border-radius: var(--borda-raio);
    transition: background-color 0.2s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    background: var(--cor-fundo-cinza);
}

.radio-option input,
.checkbox-option input {
    cursor: pointer;
    accent-color: var(--cor-primaria);
    width: 18px;
    height: 18px;
}

/* --- ESTATÍSTICAS --- */
.stats-section {
    margin-bottom: var(--espacamento-xxl);
    padding: var(--espacamento-xxl);
    background: #e3e9ff;
    border-radius: var(--borda-raio-lg);
}

.stats-section h2 {
    text-align: center;
    margin-bottom: var(--espacamento-xl);
    color: #555555;
    font-size: 1.75rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--espacamento-lg);
    padding: 0 var(--espacamento-lg);
}

.stat-card {
    background: var(--cor-fundo-card);
    border-radius: var(--borda-raio-lg);
    padding: var(--espacamento-xl);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: var(--espacamento-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-elevada);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 1rem;
    color: var(--cor-texto-suave);
    margin-bottom: var(--espacamento-sm);
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cor-primaria);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--cor-texto-suave);
    margin-top: var(--espacamento-xs);
}

.stat-desc {
    font-size: 0.8125rem;
    color: var(--cor-texto-claro);
    margin-top: var(--espacamento-sm);
    line-height: 1.5;
}

.stat-total {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-primaria-escura) 100%);
    color: white;
    border: none;
}

.stat-total .stat-info h3,
.stat-total .stat-label,
.stat-total .stat-desc {
    color: rgba(255,255,255,0.85);
}

.stat-total .stat-number {
    color: white;
}

/* --- INFO SECTION --- */
.info-section {
    margin-bottom: var(--espacamento-xxl);
}

.info-section h2 {
    text-align: center;
    margin-bottom: var(--espacamento-xl);
    color: #555555;
    font-size: 1.75rem;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--espacamento-xl);
}

.info-card {
    background: var(--cor-fundo-card);
    border-radius: var(--borda-raio-lg);
    padding: var(--espacamento-xl);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-elevada);
}

.info-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--espacamento-lg);
    background: var(--cor-fundo-cinza);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-primaria);
    font-size: 1.5rem;
}

.info-card h3 {
    margin-bottom: var(--espacamento-md);
    color: var(--cor-primaria-escura);
    font-size: 1.125rem;
    font-weight: 600;
}

.info-card p {
    color: var(--cor-texto-suave);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* --- PÁGINA DE BUSCA --- */
.search-page {
    max-width: 100%;
}

.search-section {
    margin-bottom: var(--espacamento-xl);
}

.search-form {
    background: var(--cor-fundo-card);
    padding: var(--espacamento-xl);
    border-radius: var(--borda-raio-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
}

.search-input-group {
    display: flex;
    gap: var(--espacamento-md);
    margin-bottom: var(--espacamento-lg);
}

.search-input-group input {
    flex: 1;
    padding: var(--espacamento-md) var(--espacamento-lg);
    font-size: 1rem;
    border: none;
    border-radius: var(--borda-raio-pill);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.search-input-group input:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(68, 109, 255, 0.25);
}

.search-filters-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--espacamento-xl);
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--espacamento-md);
    flex-wrap: wrap;
}

.filter-group label:first-child {
    font-weight: 600;
    color: var(--cor-texto);
}

/* --- LAYOUT DE RESULTADOS --- */
.results-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--espacamento-xl);
}

@media (max-width: 900px) {
    .results-layout {
        grid-template-columns: 1fr;
    }
    
    .facets-sidebar {
        order: 2;
    }
}

/* --- SIDEBAR DE FACETS --- */
.facets-sidebar {
    background: var(--cor-fundo-card);
    border-radius: var(--borda-raio-lg);
    padding: var(--espacamento-xl);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
    border: none;
}

.facets-sidebar h2 {
    font-size: 1.25rem;
    margin-bottom: var(--espacamento-lg);
    padding-bottom: var(--espacamento-md);
    border-bottom: 2px solid var(--cor-primaria);
    color: var(--cor-primaria-escura);
    font-weight: 700;
}

.active-filters {
    margin-bottom: var(--espacamento-lg);
    padding-bottom: var(--espacamento-md);
    border-bottom: 1px solid var(--cor-borda);
}

.active-filters h3 {
    font-size: 0.875rem;
    color: var(--cor-texto-suave);
    margin-bottom: var(--espacamento-md);
    font-weight: 600;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--espacamento-xs);
    background: var(--cor-primaria);
    color: white;
    padding: var(--espacamento-xs) var(--espacamento-md);
    border-radius: var(--borda-raio-pill);
    font-size: 0.8125rem;
    margin: var(--espacamento-xs);
    transition: background-color 0.2s ease;
}

.filter-tag:hover {
    background: var(--cor-primaria-escura);
    color: white;
    text-decoration: none;
}

.filter-tag .remove {
    font-weight: bold;
    margin-left: var(--espacamento-xs);
}

.clear-filters {
    display: block;
    font-size: 0.875rem;
    margin-top: var(--espacamento-md);
    color: var(--cor-primaria);
    font-weight: 500;
}

.facet-group {
    margin-bottom: var(--espacamento-lg);
    padding-bottom: var(--espacamento-lg);
    border-bottom: 1px solid var(--cor-borda);
}

.facet-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.facet-group h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cor-primaria);
    margin-bottom: var(--espacamento-md);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.facet-list {
    list-style: none;
}

.facet-list li {
    margin-bottom: var(--espacamento-xs);
}

.facet-list a {
    display: flex;
    justify-content: space-between;
    padding: var(--espacamento-xs) 0;
    color: var(--cor-texto);
    font-size: 0.875rem;
}

.facet-list a:hover {
    color: var(--cor-primaria);
    text-decoration: none;
}

.facet-list a.active {
    color: var(--cor-primaria);
    font-weight: 600;
}

.facet-count {
    color: var(--cor-texto-suave);
    font-size: 0.75rem;
}

.facet-more {
    margin-top: var(--espacamento-sm);
}

.facet-more summary {
    font-size: 0.75rem;
    color: var(--cor-primaria);
    cursor: pointer;
}

/* --- RESULTADOS --- */
.results-main {
    min-width: 0;
}

.results-header {
    margin-bottom: var(--espacamento-lg);
}

.results-info {
    color: var(--cor-texto-suave);
}

.search-type {
    font-size: 0.875rem;
    font-style: italic;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: var(--espacamento-md);
}

.result-card {
    background: var(--cor-fundo-card);
    border-radius: var(--borda-raio-lg);
    padding: var(--espacamento-xl);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: none;
}

.result-card:hover {
    box-shadow: var(--sombra-elevada);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    align-items: center;
    gap: var(--espacamento-md);
    margin-bottom: var(--espacamento-sm);
    flex-wrap: wrap;
}

.result-badge {
    display: inline-block;
    padding: var(--espacamento-xs) var(--espacamento-md);
    border-radius: var(--borda-raio-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-proadi {
    background: linear-gradient(135deg, #1351b4 0%, #071d41 100%);
    color: white;
}

.badge-pronas {
    background: linear-gradient(135deg, #2670e8 0%, #1351b4 100%);
    color: white;
}

.badge-pronon {
    background: linear-gradient(135deg, #1351b4 0%, #2670e8 100%);
    color: white;
}

.result-nup {
    font-size: 0.875rem;
    color: var(--cor-texto-suave);
    font-family: var(--fonte-mono);
}

.result-score {
    font-size: 0.75rem;
    color: var(--cor-texto-suave);
    background: var(--cor-fundo);
    padding: var(--espacamento-xs) var(--espacamento-sm);
    border-radius: var(--borda-raio);
}

.result-title {
    font-size: 1.125rem;
    margin-bottom: var(--espacamento-md);
    line-height: 1.4;
    font-weight: 600;
}

.result-title a {
    color: var(--cor-primaria-escura);
}

.result-title a:hover {
    color: var(--cor-primaria);
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--espacamento-md);
    font-size: 0.875rem;
    color: var(--cor-texto-suave);
    margin-bottom: var(--espacamento-sm);
}

.result-excerpt {
    color: var(--cor-texto-suave);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--espacamento-md);
}

/* Highlighting de termos buscados */
.result-excerpt mark,
.result-highlight mark {
    background-color: #fff3cd;
    color: var(--cor-texto);
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 500;
}

.result-highlight p {
    margin-bottom: var(--espacamento-sm);
}

.result-highlight p:last-child {
    margin-bottom: 0;
}

.result-footer {
    padding-top: var(--espacamento-sm);
    border-top: 1px solid var(--cor-borda);
}

.no-results {
    text-align: center;
    padding: var(--espacamento-xl);
    color: var(--cor-texto-suave);
}

/* --- PAGINAÇÃO --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--espacamento-sm);
    margin-top: var(--espacamento-xl);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--espacamento-md);
    border: 2px solid var(--cor-borda);
    border-radius: var(--borda-raio-pill);
    color: var(--cor-texto);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--cor-fundo-cinza);
    border-color: var(--cor-texto-suave);
    text-decoration: none;
}

.page-link.current {
    background: var(--cor-primaria);
    color: white;
    border-color: var(--cor-primaria);
}

.page-ellipsis {
    color: var(--cor-texto-suave);
}

/* --- PÁGINA DE DOCUMENTO --- */
.documento-page {
    max-width: 960px;
}

.breadcrumb {
    font-size: 0.9375rem;
    color: var(--cor-texto-suave);
    margin-bottom: var(--espacamento-xl);
    display: flex;
    align-items: center;
    gap: var(--espacamento-sm);
}

.breadcrumb a {
    color: var(--cor-primaria);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.documento-header {
    margin-bottom: var(--espacamento-xxl);
}

.documento-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin: var(--espacamento-lg) 0;
    color: var(--cor-primaria-escura);
    font-weight: 700;
}

.documento-meta {
    display: flex;
    gap: var(--espacamento-xl);
    color: var(--cor-texto-suave);
    font-size: 0.9375rem;
}

.documento-content {
    background: var(--cor-fundo-card);
    border-radius: var(--borda-raio-lg);
    box-shadow: var(--sombra-card);
    overflow: hidden;
    border: 1px solid var(--cor-borda);
}

.documento-section {
    padding: var(--espacamento-xl);
    border-bottom: 1px solid var(--cor-borda);
}

.documento-section:last-child {
    border-bottom: none;
}

.documento-section h2 {
    font-size: 1.25rem;
    color: var(--cor-primaria);
    margin-bottom: var(--espacamento-lg);
    padding-bottom: var(--espacamento-md);
    border-bottom: 2px solid var(--cor-primaria);
    font-weight: 700;
}

.campo-list {
    display: grid;
    gap: var(--espacamento-md);
}

.campo-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--espacamento-md);
}

@media (max-width: 600px) {
    .campo-item {
        grid-template-columns: 1fr;
        gap: var(--espacamento-xs);
    }
}

.campo-item dt {
    font-weight: 600;
    color: var(--cor-texto-suave);
    font-size: 0.875rem;
}

.campo-item dd {
    color: var(--cor-texto);
}

.campo-texto-longo {
    max-height: 300px;
    overflow-y: auto;
    padding: var(--espacamento-sm);
    background: var(--cor-fundo);
    border-radius: var(--borda-raio);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.documento-footer {
    margin-top: var(--espacamento-xl);
    display: flex;
    gap: var(--espacamento-md);
}

/* --- ALERTAS --- */
.alert {
    padding: var(--espacamento-lg);
    border-radius: var(--borda-raio-lg);
    margin-bottom: var(--espacamento-lg);
    border: none;
}

.alert-warning {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: #e3f2fd;
    border-left: 4px solid var(--cor-primaria);
    color: #0c5460;
}

/* --- BADGES --- */
.badge {
    display: inline-block;
    padding: var(--espacamento-xs) var(--espacamento-md);
    border-radius: var(--borda-raio-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-proadi {
    background: linear-gradient(135deg, #1351b4 0%, #071d41 100%);
    color: white;
}

.badge-pronas {
    background: linear-gradient(135deg, #2670e8 0%, #1351b4 100%);
    color: white;
}

.badge-pronon {
    background: linear-gradient(135deg, #1351b4 0%, #2670e8 100%);
    color: white;
}

/* --- DECORATIVOS (Círculos de fundo como nas screenshots) --- */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.decorative-circle-1 {
    width: 200px;
    height: 200px;
    background: var(--cor-fundo-cinza);
    top: 100px;
    right: -50px;
}

.decorative-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(180deg, var(--cor-verde) 0%, var(--cor-primaria) 50%, transparent 100%);
    bottom: 0;
    left: -100px;
    opacity: 0.2;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .nav {
        gap: var(--espacamento-md);
    }
    
    .nav a {
        font-size: 0.875rem;
    }
    
    .footer-logos {
        gap: var(--espacamento-lg);
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-logo.logo-lg {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: var(--espacamento-md);
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        border-radius: var(--borda-raio-lg);
    }
    
    .search-box .btn {
        width: 100%;
        margin: 0;
    }
}
