/* Variáveis de cores (mantendo a paleta azul do portal) */
: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;
    --info-color: #17a2b8;
    --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: #ffffff;
    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;
}

.desktop-nav a:hover,
.main-nav a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

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

/* Breadcrumb */
.breadcrumb {
    background-color: var(--light-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
    font-size: 14px;
    align-items: center;
}

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

.breadcrumb li:not(:last-child) a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: var(--text-light);
}

.breadcrumb i {
    font-size: 12px;
    color: var(--text-light);
}

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

/* ==================== HERO SECTION (Estilo Portal Fazenda/SEI-Neves) ==================== */
.hero-section {
    position: relative;
    width: calc(100% - 40px);
    /* Margem lateral */
    max-width: 1400px;
    height: 60vh;
    /* Altura reduzida */
    min-height: 500px;
    margin: 0 auto 4rem auto;
    /* Removido margin-top pois já temos padding-top no main */
    border-radius: 40px;
    /* Bordas arredondadas modernas */
    background: linear-gradient(120deg, #0b2e4e 0%, #046eb4 100%);
    /* Fundo azul profundo */
    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%;
    /* Pattern sutil */
    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;
}

/* Círculos decorativos de luz */
.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;
    /* Ciano claro */
    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);
}

@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;
    }
}

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

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    margin: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-body {
    max-width: 100%;
}

.section-body>p {
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

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

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

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.feature-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ==================== ACCESS SECTION ==================== */
.access-info {
    text-align: center;
    padding: 40px;
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.access-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.access-stats p {
    font-size: 1rem;
    color: var(--text-color);
}

.access-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-top: 8px;
}

.btn-access {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn-access:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.access-note {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==================== DOWNLOAD SECTION ==================== */
.download-metadata {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
}

.download-metadata p {
    font-size: 1rem;
    color: var(--text-color);
}

.download-metadata strong {
    color: var(--primary-color);
    font-weight: 600;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

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

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

.download-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon i {
    font-size: 2rem;
    color: white;
}

.download-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.download-item p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.download-notice {
    background: #fff8e1;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
}

.download-notice p {
    margin: 0;
    color: #7c6300;
}

.download-notice i {
    color: #ff9800;
    margin-right: 8px;
}

/* ==================== AUDIENCE LIST ==================== */
.audience-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

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

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

.audience-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-icon i {
    font-size: 2rem;
    color: white;
}

.audience-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.audience-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ==================== REQUIREMENTS ==================== */
.requirements {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 25px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.requirement-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow-lg);
}

.requirement-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.requirement-item span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ==================== CONTACT INFO ==================== */
.opening-hours {
    text-align: center;
    padding: 25px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.opening-hours p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

/* CSS específico para ícone de contato */
.contact-item .contact-icon {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    border-radius: var(--border-radius) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    /* Remove margem automática se houver */
}

.contact-item .contact-icon i {
    color: white !important;
    font-size: 1.5rem !important;
}

/* ==================== BUG FIX: CONTACT VISIBILITY ==================== */
/* Garante que o texto dos cards de contato esteja sempre visível */
.contact-item {
    /* Desativa qualquer animação que possa ocultar o elemento */
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    /* Em caso de animação translateY */
    display: flex !important;
    align-items: center !important;
    /* Centraliza verticalmente */
    gap: 20px !important;
    padding: 25px !important;
    text-align: left !important;
}

/* Força a visibilidade e cor de todos os elementos filhos */
.contact-item * {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
}

/* Container do texto para garantir que o flex não bagunce */
.contact-item>div:last-child {
    flex: 1;
    min-width: 0;
    /* Permite que o texto quebre corretamente */
    display: block !important;
}

.contact-item h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--secondary-color) !important;
    margin-bottom: 8px;
    display: block !important;
}

.contact-item p,
.contact-item address {
    color: var(--text-color) !important;
    font-style: normal;
    line-height: 1.6;
    margin: 0;
    display: block !important;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-item a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
    /* Garante que emails longos quebrem */
    display: inline-block;
}

.contact-item a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* ==================== DEPARTMENT INFO ==================== */
.department-info {
    padding: 25px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.department-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.department-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.department-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.department-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==================== QUICK LINKS ==================== */
.quick-links-section {
    margin: 60px 0;
}

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

.related-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.related-link i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ==================== BACK TO TOP BUTTON ==================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

#back-to-top.show {
    display: flex;
}

/* ==================== TIMELINE SECTION ==================== */
.timeline-section {
    margin: 40px 0;
}

.timeline-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    /* Reduzido de 2rem */
    font-weight: 700;
    margin-bottom: 30px;
    /* Reduzido de 40px */
    display: flex;
    align-items: center;
    gap: 12px;
}


.timeline {
    position: relative;
    max-width: 700px;
    /* Reduzido de 800px */
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    /* Reduzido de 4px */
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    /* Reduzido de 50px */
    width: 50%;
    padding: 0 30px;
    /* Reduzido de 40px */
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 15px;
    /* Ajustado */
    width: 16px;
    /* Reduzido de 20px */
    height: 16px;
    /* Reduzido de 20px */
    background: var(--primary-color);
    border: 3px solid white;
    /* Reduzido de 4px */
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-light);
    /* Reduzido de 4px */
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    /* Reduzido de 8px 20px */
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    /* Reduzido de 1.1rem */
    margin-bottom: 12px;
    /* Reduzido de 15px */
    box-shadow: var(--box-shadow);
}

.timeline-content {
    background: white;
    padding: 20px;
    /* Reduzido de 25px */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-3px);
    /* Reduzido de 5px */
    box-shadow: var(--box-shadow-lg);
}

.timeline-content h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    /* Reduzido de 1.3rem */
    margin-bottom: 8px;
    /* Reduzido de 10px */
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
    /* Texto um pouco menor */
}

/* ==================== CONTENT SECTION ==================== */
.content-section {
    margin: 60px 0;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.content-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    border: 1px solid var(--border-color);
}

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

.card-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;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.figure-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.figure-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.figure-item h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.figure-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==================== GALLERY SECTION ==================== */
.gallery-section {
    margin: 60px 0;
}

.gallery-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.gallery-item {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 15px;
    text-align: center;
}

.gallery-caption p {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==================== SOURCES SECTION ==================== */
.sources-section {
    margin: 60px 0;
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    border-left: 4px solid var(--primary-color);
}

.sources-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sources-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.source-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.source-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 5px;
}

.source-item h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.source-item p {
    color: var(--text-color);
}

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



/* ==================== RODAPÉ V2 (LAYOUT NOVO) ==================== */
.footer {
    background: linear-gradient(135deg, #021B35 0%, #043263 100%);
    color: white;
    padding: 80px 0 30px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 50px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(4, 110, 180, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

/* Coluna 1: Logo */
.logo-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo .logo-img {
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-slogan {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 300px;
}

/* Colunas Gerais */
.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #00d2ff;
    border-radius: 2px;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column a i {
    font-size: 0.8rem;
    color: #4a9bd9;
    transition: transform 0.3s;
}

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

.footer-column a:hover i {
    color: #00d2ff;
}

/* Coluna 4: Fale Conosco */
.contact-column .contact-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer .contact-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    color: #ffffff;
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-item div {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.contact-item strong {
    display: block;
    color: white;
    margin-bottom: 4px;
    font-size: 1rem;
}

.contact-item a {
    color: white;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

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

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright p {
    margin-bottom: 5px;
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-icons a:hover {
    background: #036db3;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== 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;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-graphic {
        font-size: 80px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px;
        text-align: left !important;
    }

    .timeline-item::before {
        left: 22px !important;
    }

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

    .content-card {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .timeline-section h2,
    .content-section h2,
    .gallery-section h2,
    .sources-section h2 {
        font-size: 1.5rem;
    }

    .timeline-item {
        padding-left: 60px;
    }

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

/* Animação suave para cards */
.content-card.animated {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Modal da galeria */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.gallery-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-xl);
}

.gallery-modal img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto 20px;
    border-radius: var(--border-radius);
}

.gallery-modal p {
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.1;
}

.logo-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 10px;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Animação para timeline */
.timeline-item.visible {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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