:root {
    /* Colors */
    --primary-color: #046eb4;
    --primary-dark: #024f85;
    --accent-color: #00d2ff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --footer-bg: #0f172a;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(4, 110, 180, 0.95) 0%, rgba(2, 79, 133, 0.9) 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);

    /* Transitions */
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* OpenDyslexic Font for Accessibility */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/opendyslexic/0.91.0/fonts/OpenDyslexic-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body.dyslexia-font * {
    font-family: 'OpenDyslexic', sans-serif !important;
}

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}





/* ===== BANNER PRINCIPAL ===== */
.main-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Barra de Atalhos */
.quick-links-bar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quick-links-bar .container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.quick-link-item {
    background: #0288d1;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
}

.quick-link-item:hover {
    background: #01579b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Seção de Serviços */
/* Seção de Serviços - Modern Glassmorphism */
.services-section {
    padding: 80px 0;
    /* Adicionando um gradiente sutil de fundo para destacar o glassmorphism */
    background: radial-gradient(circle at 10% 20%, rgb(241, 245, 249) 0%, rgb(226, 232, 240) 90%);
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fundo para efeito vidro */
.services-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(4, 110, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Mais responsivo */
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.65);
    /* Vidro fosco */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho deslizante no hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.service-card:hover::after {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px -10px rgba(4, 110, 180, 0.15);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 3rem;
    /* Gradiente no ícone */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(4, 110, 180, 0.1));
}

.service-card:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 12px rgba(4, 110, 180, 0.2));
}

.service-card span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.3s;
}

.service-card:hover span {
    color: var(--primary-color);
}

.services-more {
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-more {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-decoration: none;
}

.btn-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(4, 110, 180, 0.2);
}

/* Utilitários de Visibilidade para Serviços */
.service-card.hidden {
    display: none;
}

.service-card.visible {
    display: flex;
    animation: fadeInUp 0.5s ease forwards;
}

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

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

/* Seção de Notícias - Redesign Moderno */
.news-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 20px 10px;
    /* Espaço para sombra não cortar */
}

.news-card {
    background: white;
    border-radius: 24px;
    /* Mais arredondado */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(4, 110, 180, 0.15);
    border-color: rgba(4, 110, 180, 0.2);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover img {
    transform: scale(1.05);
    /* Zoom suave na imagem */
}

.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.news-date::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.news-excerpt {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
    /* Empurra o botão para o final */
}

.btn-read-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

.btn-read-more::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-read-more:hover {
    color: var(--primary-dark);
}

.btn-read-more:hover::after {
    transform: translateX(5px);
}

.news-more {
    text-align: center;
    margin-top: 50px;
}


/* ==================== RODAPÉ PREMIUM ==================== */
.footer {
    background: linear-gradient(135deg, #021B35 0%, #043263 100%);
    /* Azul Profundo */
    color: white;
    padding: 80px 0 30px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 60px;
    /* Borda arredondada estilo Portal Fazenda */
    border-top-right-radius: 60px;
    margin-top: 50px;
    /* Um respiro para separar do conteúdo acima */
}

/* Efeito de brilho no fundo do footer */
.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 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.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: var(--accent-color);
    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: inline-block;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-contact .contact-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    margin-top: 10px;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-contact strong {
    color: white;
}

.footer-logo img {
    max-width: 70px;
    /* Tamanho padrão para rodapé */
    height: auto;
    margin-bottom: 20px;
    filter: none;
    /* Cores originais */
}

/* Redes Sociais no Footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .social-icons {
    display: flex;
    gap: 15px;
}

.footer-bottom .social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

/* Responsividade */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
    }

    .child-img {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-cards {
        grid-template-columns: 1fr;
    }

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

    .cultural-images {
        margin-top: 30px;
    }

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

    .main-nav ul {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-bar .container {
        flex-direction: column;
    }

    .banner-left h1 {
        font-size: 32px;
    }
}

/* Serviços adicionais inicialmente ocultos */
.service-card.hidden {
    display: none;
    /* Oculta os serviços extras */
}


/* ==================== NOVO CABEÇALHO (Estilo Portal Fazenda) ==================== */

/* Floating Header Styles */
#main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1250px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#main-header.scrolled {
    top: 10px;
    width: 95%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
    transition: height 0.3s ease;
}

#main-header.scrolled .header-content {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-btn,
.mobile-menu-btn {
    border: none;
    background: white;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-btn:hover,
.mobile-menu-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 110, 180, 0.25);
}

.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        gap: 0.5rem;
        /* background-color: rgba(241, 245, 249, 0.5); removed background */
        padding: 0; /* removed padding */
        border-radius: 50px;
    }

    .desktop-nav a {
        font-weight: 500;
        color: var(--text-main);
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        text-decoration: none;
        white-space: nowrap;
    }

    .desktop-nav a:hover {
        background-color: rgba(255, 255, 255, 0.8);
        color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .desktop-nav a.active {
        background-color: var(--primary-color);
        color: white;
        box-shadow: 0 4px 12px rgba(4, 110, 180, 0.3);
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-menu-content a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu-content a:hover {
    color: var(--primary-color);
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ===== MAPA CULTURAL (Redesign Premium) ===== */
.map-banner {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 30px;
    /* Bordas bem arredondadas */
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #021B35;
    /* Fallback */
}

.map-banner:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
}

.map-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2, 27, 53, 0.95) 0%, rgba(4, 50, 99, 0.85) 60%, rgba(4, 110, 180, 0.7) 100%),
        url('assets/mídia/mapa-prn.png') no-repeat center center;
    background-size: cover;
    transition: transform 0.8s ease;
    z-index: 1;
}

.map-banner:hover .map-banner-bg {
    transform: scale(1.1);
}

.map-banner-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.map-icon-pulse {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Animação de pulso no ícone */
.map-icon-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    opacity: 0;
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.map-text {
    flex-grow: 1;
}

.map-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.map-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.map-cta {
    background: white;
    color: var(--primary-dark);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    /* Garante que o texto fique em uma linha */
    flex-shrink: 0;
    /* Impede que o botão encolha se o espaço apertar */
}

.map-banner:hover .map-cta {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

/* ===== SEÇÃO HISTÓRIA (NOVO) ===== */
.history-section {
    padding: 100px 0 140px;
    /* Padding extra embaixo para o footer 'subir' se quisermos, ou apenas respiro */
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo de fundo */
.history-section::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(4, 110, 180, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.history-content {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.history-text {
    flex: 1;
}

.history-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(4, 110, 180, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.highlight-text {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(4, 110, 180, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 20px;
}

.btn-history-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    transition: all 0.3s;
}

.btn-history-link:hover {
    color: var(--primary-color);
    padding-bottom: 8px;
}

/* Galeria Artística */
.history-gallery {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    position: absolute;
    border-radius: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    border: 5px solid white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Placeholder visual enquanto não tem foto */
.photo-old {
    width: 360px;
    height: 340px;
    background-color: #d0d0d0;
    /* Cinza Nostálgico */
    transform: rotate(-10deg) translateX(-40px);
    z-index: 2;
    top: 20px;
    left: 40px;
}

.photo-new {
    width: 280px;
    height: 360px;
    background-color: #035f9d;
    /* Azul Moderno */
    transform: rotate(5deg) translateX(40px);
    z-index: 3;
    top: 0;
    right: 40px;
}

.photo-overlay {
    color: white;
    /* Contrastar com azul */
    font-weight: 700;
    font-size: 1.5rem;
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.photo-old .photo-overlay {
    color: #888;
}

/* Cinza no frame antigo */

/* Hover Effect na Galeria */
.history-gallery:hover .photo-old {
    transform: rotate(-15deg) translateX(-60px) scale(0.95);
    filter: sepia(0.5);
    /* Efeito envelhecido extra */
}

.history-gallery:hover .photo-new {
    transform: rotate(8deg) translateX(50px) scale(1.05);
}

.decorative-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
    top: 50px;
    right: 50px;
}

/* Responsividade da História */
@media (max-width: 900px) {
    .history-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .history-gallery {
        width: 100%;
        height: 350px;
    }

    .history-text h2 {
        font-size: 2.2rem;
    }

    .photo-old {
        left: 50%;
        margin-left: -140px;
    }

    .photo-new {
        right: 50%;
        margin-right: -140px;
    }
}

.service-card.visible {
    display: flex;
    /* Mantém o layout flex original do serviço */
    animation: fadeInUp 0.5s ease forwards;
}

/* ==================== SEARCH MODAL STYLES ==================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.close-search-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-search-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.search-header {
    padding: 2.5rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.search-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.search-input-wrapper {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-light);
}

.search-input-wrapper i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-results {
    padding: 1.5rem 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.search-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 2rem 0;
}

.search-result-item {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.search-result-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-result-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.search-result-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    color: var(--text-light);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .search-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }

    .search-header h2 {
        font-size: 1.5rem;
    }

    .search-input-wrapper {
        padding: 1rem 1.5rem;
    }

    .search-results {
        padding: 1rem 1.5rem;
    }
}

/* ==================== MODERN HERO SECTION (Design Sensacional) ==================== */

.hero-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 5rem;
    /* Espaço para o dock flutuante */
}


.hero-background {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Aumentado um pouco mais para garantir espaço vertical */
    min-height: 700px;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Centraliza verticalmente */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 10s ease;
}

/* Efeito sutil de zoom na imagem */
.hero-wrapper:hover .hero-img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente ajustado: mais escuro/sólido onde está o texto para garantir leitura */
    background: linear-gradient(105deg, rgba(2, 27, 53, 0.95) 0%, rgba(4, 110, 180, 0.85) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    backdrop-filter: blur(2px);
    /* Leve blur na imagem de fundo para destacar o texto */
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    /* Organiza em coluna vertical */
    align-items: center;
    /* Centraliza horizontalmente */
    justify-content: center;
    /* Centraliza verticalmente no espaço disponível */
    height: 100%;
    padding-top: 0;
    /* Remove offset manual */
    text-align: center;
    /* Garante que o texto interno centralize */
    padding-bottom: 80px;
    /* Espaço para não bater no dock */
}

.hero-text-block {
    max-width: 900px;
    color: white;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-text-block h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    /* Bem grande e impactante */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-text-block h1 span {
    /* Gradiente mais vibrante, começando do branco para o ciano elétrico */
    background: linear-gradient(90deg, #ffffff 0%, #00e5ff 50%, #2979ff 100%);
    background-size: 200% auto;
    /* Permite animação sutil se desejar, ou apenas mais profundidade */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    /* Glow effect para destacar do fundo */
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.hero-text-block p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Container relativo para posicionar o dock */
.relative-container {
    position: relative;
    height: 0;
    /* Não ocupa espaço vertical no fluxo, permite overflow */
    z-index: 10;
}

/* DOCK FLUTUANTE DE ACESSO RÁPIDO */
.quick-access-dock {
    position: absolute;
    bottom: 50px;
    /* Sobe para sobrepor a imagem */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    /* Vidro fosco claro */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 35px;
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transform: translateY(50%);
    /* Centraliza na borda inferior do hero */
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    min-width: 120px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-card:hover {
    transform: translateY(-15px);
}

.quick-icon {
    width: 75px;
    height: 75px;
    /* Efeito iOS Glass Colorido */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    /* Superellipse iOS shape aproximado */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Cores específicas para cada ícone (Mais Vivas e Saturadas) */
.quick-card:nth-child(1) .quick-icon {
    /* IPTU - Azul Neon */
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.8) 0%, rgba(0, 140, 255, 0.6) 100%);
    box-shadow: 0 8px 32px 0 rgba(0, 191, 255, 0.4);
    border: 1px solid rgba(0, 191, 255, 0.5);
}

.quick-card:nth-child(2) .quick-icon {
    /* Nota Fiscal - Verde Esmeralda Vibrante */
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.6) 0%, rgba(0, 200, 150, 0.5) 100%);
    box-shadow: 0 8px 32px 0 rgba(0, 255, 170, 0.3);
    border: 1px solid rgba(0, 255, 170, 0.4);
}

.quick-card:nth-child(3) .quick-icon {
    /* Diário - Violeta/Rosa Choque */
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.6) 0%, rgba(180, 0, 255, 0.5) 100%);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 128, 0.3);
    border: 1px solid rgba(255, 0, 128, 0.4);
}

.quick-card:nth-child(4) .quick-icon {
    /* Licitações - Laranja/Dourado Premium */
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.7) 0%, rgba(255, 69, 0, 0.5) 100%);
    box-shadow: 0 8px 32px 0 rgba(255, 140, 0, 0.35);
    border: 1px solid rgba(255, 165, 0, 0.5);
}

.quick-card:nth-child(5) .quick-icon {
    /* Servidor - Indigo Profundo */
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.7) 0%, rgba(0, 0, 255, 0.5) 100%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 255, 0.35);
    border: 1px solid rgba(80, 80, 255, 0.5);
}

/* Hover Colors Intensified */
.quick-card:nth-child(1):hover .quick-icon {
    background: linear-gradient(135deg, #00bfff 0%, #008cff 100%);
}

.quick-card:nth-child(2):hover .quick-icon {
    background: linear-gradient(135deg, #00ffaa 0%, #00cc99 100%);
}

.quick-card:nth-child(3):hover .quick-icon {
    background: linear-gradient(135deg, #ff0080 0%, #b400ff 100%);
}

.quick-card:nth-child(4):hover .quick-icon {
    background: linear-gradient(135deg, #ffa500 0%, #ff4500 100%);
}

.quick-card:nth-child(5):hover .quick-icon {
    background: linear-gradient(135deg, #4b0082 0%, #0000ff 100%);
}


.quick-card:hover .quick-icon::after {
    opacity: 1;
    transform: scale(1);
    animation: rotateShine 1.5s linear infinite;
}

@keyframes rotateShine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.quick-card span {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    /* Levemente menor para elegância */
    margin-top: 5px;
    transition: color 0.3s ease;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.quick-card:hover span {
    color: var(--primary-color);
    text-shadow: 0 0 1px rgba(4, 110, 180, 0.3);
}

/* Animação de entrada */
.fade-in-up {
    animation: fadeInUpHero 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Responsividade Hero */
@media (max-width: 1200px) {
    .hero-text-block h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .hero-text-block h1 {
        font-size: 3.5rem;
    }

    .hero-wrapper {
        margin-bottom: 2rem;
    }

    .quick-access-dock {
        position: relative;
        bottom: auto;
        transform: translateY(-50px);
        margin: 0 1rem;
        padding: 2rem;
        border-radius: 24px;
        justify-content: center;
        width: auto;
    }
}

@media (max-width: 768px) {
    .hero-background {
        height: auto;
        min-height: 550px;
        border-radius: 0 0 40px 40px;
        padding: 8rem 0 8rem 0;
        /* Espaço para o header e para o dock */
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(4, 110, 180, 0.95) 0%, rgba(2, 79, 133, 0.85) 100%);
    }

    .hero-text-block {
        text-align: center;
        margin: 0 auto;
        padding: 0 1rem;
    }

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

    .welcome-badge {
        margin-bottom: 1.5rem;
    }

    .hero-text-block p {
        margin: 0 auto 2rem auto;
        font-size: 1.1rem;
    }

    .quick-access-dock {
        transform: translateY(-40px);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 1.5rem;
    }

    .quick-card {
        min-width: auto;
    }

    .quick-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ==================== WIDGET DE ACESSIBILIDADE ==================== */
.accessibility-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.accessibility-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Sombra elegante */
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10000;
}

.accessibility-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-dark);
}

.accessibility-panel {
    position: absolute;
    bottom: 80px;
    left: 0;
    background: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 220px;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.accessibility-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.access-title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 5px;
    padding-left: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accessibility-panel button {
    background: var(--bg-light);
    border: none;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

.accessibility-panel button i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.accessibility-panel button:hover {
    background: var(--primary-color);
    color: white;
}

.accessibility-panel button:hover i {
    color: white;
}

/* Modo Alto Contraste */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.high-contrast img,
body.high-contrast .hero-background,
body.high-contrast .map-banner-bg {
    filter: grayscale(100%) contrast(1.2) !important;
    opacity: 0.6;
}

body.high-contrast a,
body.high-contrast i {
    color: #ff0 !important;
}

body.high-contrast .accessibility-panel {
    border: 2px solid #fff;
    background: #000;
}

body.high-contrast .accessibility-btn {
    border: 2px solid #fff;
    background: #000;
    color: #ff0;
}

/* ==================== LGPD COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    /* Começa escondido */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9998;
    /* Abaixo do widget de acessibilidade */
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cookie-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(4, 110, 180, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.btn-cookie-primary,
.btn-cookie-outline {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-cookie-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(4, 110, 180, 0.3);
}

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

.btn-cookie-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-cookie-outline:hover {
    border-color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== SKIP LINKS (ACESSIBILIDADE eMAG) ==================== */
.skip-links {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 99999;
}

.skip-links a {
    display: block;
    padding: 10px 15px;
    background: #000;
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.skip-links a:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    outline: 3px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}