:root {
    --primary-color: #036db3;
    --primary-light: #4a9bd9;
    --primary-dark: #004b8d;
    --secondary-color: #2c3e50;
    --accent-color: #ffffff;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --dark-color: #036db3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fafbfc;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== CABEÇALHO ==================== */
.header-prefeitura {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.header-prefeitura::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.03"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

/* Header Top */
.header-top {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.header-social {
    display: flex;
    gap: 16px;
}

.header-social a {
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
    padding: 8px;
    border-radius: 6px;
}

.header-social a:hover {
    color: var(--primary-dark);
    background: rgba(3, 109, 179, 0.1);
    transform: translateY(-1px);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar input {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 280px;
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(3, 109, 179, 0.1);
}

.search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Header Main */
.header-main-full {
    background: transparent;
    width: 100%;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: relative;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav {
    background-color: transparent;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
    border-radius: var(--border-radius);
    font-size: 15px;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb .current {
    color: var(--text-light);
}

.separator {
    color: var(--text-light);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 8px;
}

/* ==================== HERO SECTION (Estilo Portal Fazenda/SEI-Neves) ==================== */
.hero-section {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1400px;
    height: 60vh;
    min-height: 500px;
    margin: 0 auto 4rem auto;
    border-radius: 40px;
    background: linear-gradient(120deg, #0b2e4e 0%, #046eb4 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(4, 110, 180, 0.15);
    padding: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    width: 100%;
    padding: 0 4rem;
}

.hero-text {
    max-width: 700px;
    text-align: left;
    margin-right: auto;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #4ddbff;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #4ddbff;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ddbff;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 550px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Remove estilos antigos do hero */
.hero-subtitle,
.hero-stats,
.hero-graphic {
    display: none;
}

@media (max-width: 768px) {
    .hero-section {
        border-radius: 20px;
        height: auto;
        padding: 4rem 0;
        width: calc(100% - 30px);
    }

    .hero-content {
        padding: 0 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== NAVEGAÇÃO RÁPIDA ==================== */
.nav-rapida {
    margin-bottom: 60px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.nav-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-light);
}

.nav-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.nav-content h3 {
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-content p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.nav-arrow {
    margin-left: auto;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-card:hover .nav-arrow {
    transform: translateX(4px);
}

/* Estilos para os cards ocultos/visíveis */
.nav-card.hidden {
    display: none;
}

.nav-card.visible {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}

/* Container do botão */
.nav-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Botão Ver Mais/Ver Menos */
.btn-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.btn-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.btn-toggle.expanded .fa-chevron-down {
    transform: rotate(180deg);
}

/* Animação para os cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste para grid responsivo quando expandido */
.nav-grid.expanded {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==================== CONTATO CARDS ==================== */

/* Estilos para cards de informação (sem link) */
.nav-card.info-card {
    cursor: default;
    border: 2px solid #e9ecef;
}

.nav-card.info-card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
    border-color: var(--border-color);
}

.nav-card.info-card .nav-arrow {
    display: none;
}

.nav-card.info-card .nav-content p {
    line-height: 1.4;
}

/* Melhorias para texto em várias linhas */
.nav-content p {
    line-height: 1.4;
}

/* Ajuste para grid com 6 cards */
.nav-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Remover botão "Ver Mais" se não for mais necessário */
.nav-actions {
    display: none;
}

/* ==================== DOCUMENTOS ORÇAMENTÁRIOS ==================== */
.documentos-consolidados {
    margin: 3rem 0;
}

.documentos-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Cards Compactos */
.documento-compact-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.documento-compact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Header do Card */
.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.compact-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.documento-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.compact-title h3 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.compact-title p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.compact-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.ano {
    background: var(--primary-color);
    color: white;
}

.badge.status {
    background: var(--light-color);
    color: var(--text-light);
}

.badge.novo {
    background: var(--success-color);
    color: white;
}

/* Informações Compactas */
.compact-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.compact-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.compact-info .info-item:last-child {
    margin-bottom: 0;
}

.compact-info .info-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Ações do Card */
.compact-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
}

.btn-toggle-arquivos {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-toggle-arquivos:hover {
    background: #e9ecef;
    border-color: var(--primary-light);
}

.btn-toggle-arquivos.active i {
    transform: rotate(180deg);
}

.btn-download-main {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-download-main:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Lista de Arquivos Compacta */
.arquivos-lista.compact {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.arquivos-lista.compact.show {
    max-height: 500px;
    margin-top: 1rem;
}

.arquivos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.arquivos-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.arquivos-count {
    background: var(--text-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.arquivos-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
}

/* Customização da scrollbar */
.arquivos-grid::-webkit-scrollbar {
    width: 8px;
}

.arquivos-grid::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
    margin: 5px 0;
}

.arquivos-grid::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
    border: 2px solid var(--light-color);
}

.arquivos-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Para Firefox */
.arquivos-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--light-color);
}

.arquivo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.arquivo-item:hover {
    background: white;
    border-color: var(--primary-color);
    text-decoration: none;
    color: var(--text-color);
    transform: translateX(4px);
    box-shadow: var(--box-shadow);
}

.arquivo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.arquivo-info {
    flex: 1;
    min-width: 0;
}

.arquivo-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.arquivo-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.arquivo-info small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.arquivo-item .fa-download {
    color: var(--primary-color);
    opacity: 0.7;
    transition: var(--transition);
    flex-shrink: 0;
}

.arquivo-item:hover .fa-download {
    opacity: 1;
    transform: scale(1.1);
}

/* ==================== RECURSOS ==================== */
.recursos-section {
    margin-bottom: 60px;
}

.recursos-section h2 {
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.recurso-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.recurso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-light);
}

.recurso-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.recurso-card h3 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.recurso-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.recurso-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.recurso-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Footer Moderno */
/* Footer Moderno - Styles Moved to styles-geoneves.css
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a2530 100%);
    color: white;
    padding: 60px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.footer-top {
    padding-bottom: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #b0b7c3;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: block;
    padding: 4px 0;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-contact .contact-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b7c3;
}

.footer-contact a {
    color: #b0b7c3;
    text-decoration: none;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    transition: var(--transition);
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
*/

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-top-content {
        flex-direction: column;
        gap: 16px;
    }

    .header-main {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .search-bar input {
        width: 100%;
        max-width: 300px;
    }

    .hero-section {
        padding: 40px 24px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-graphic {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .documentos-grid-compact {
        grid-template-columns: 1fr;
    }

    .compact-header {
        flex-direction: column;
        gap: 1rem;
    }

    .compact-badges {
        flex-direction: row;
        align-self: flex-start;
    }

    .compact-actions {
        flex-direction: column;
    }

    .arquivos-grid {
        max-height: 350px;
    }

    .arquivo-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .arquivo-info strong {
        font-size: 0.85rem;
    }

    .arquivo-info span {
        font-size: 0.75rem;
    }

    .recursos-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-nav a {
        padding: 10px 16px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .documento-compact-card {
        padding: 1rem;
    }

    .compact-title {
        gap: 0.75rem;
    }

    .documento-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .compact-title h3 {
        font-size: 1.1rem;
    }

    .arquivos-grid {
        max-height: 300px;
    }

    .btn {
        width: 100%;
    }
}