
/* Minimal reset aprimorado - SUBSTITUA O SEU TOPO POR ESTE */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw; /* Troque 100% por 100vw (view-width) */
    overflow-x: hidden; /* Isso mata a barra lateral horizontal */
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    padding-top: 100px;
    position: relative;
}
@media (max-width: 992px) {
    body {
        padding-top: 70px; /* Ajuste para mobile se necessário */
    }
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.82);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

#splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-content img {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    background: transparent;
    display: inline-block;
}

.splash-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.splash-content p {
    font-size: 1.2rem;
}

@keyframes splashLogoIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    #splash-screen {

        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);

        /* Melhor espaçamento em telas pequenas */
        padding: 20px;
        text-align: center;
    }

    /* Título */
    #splash-screen h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    /* Texto adicional (se tiver) */
    #splash-screen p {
        font-size: 14px;
    }

    /* Caso uses classe blur no conteúdo */
    .blur {
        filter: blur(5px);
    }
}

.container{width:90%;max-width:1200px;margin:0 auto}
.hero {
    position: relative;
    width: 100%; /* Força a largura total */
    left: 0;     /* Garante alinhamento à esquerda */
    color: #fff;
    padding: 8rem 0 6rem;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero-slide {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
    z-index:0;
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    z-index:1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero .label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-yellow);
    color: #000;
    border-radius: 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Responsividade aprimorada da hero */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.2rem; }
}

@media (max-width: 992px) {
    .hero {
        padding: 6rem 0 4rem;
        min-height: 50vh;
    }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; max-width: 500px; }
    .hero .label { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 3rem;
        min-height: 45vh;
    }
    .hero .container { padding: 0 20px; }
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    .hero .label {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    .button.large {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        width: auto;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0 2.5rem;
        min-height: 40vh;
    }
    .hero .container { padding: 0 15px; }
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    .hero .label {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    .button.large {
        font-size: 0.9rem;
        padding: 0.7rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3.5rem 0 2rem;
        min-height: 35vh;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.875rem;
    }
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    .hero .label {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    .button.large {
        font-size: 0.85rem;
        padding: 0.65rem 1.1rem;
    }
}

.button {
    display:inline-block;
    text-decoration:none;
    color:#fff;
    padding:.75rem 1.5rem;
    border-radius:.5rem;
    font-weight:600;
}

.button-yellow {
    background: var(--accent-yellow);
    color:#000;
}

.button-yellow:hover {
    background:#e0a800;
}

.button.large {
    font-size:1.125rem;
}
:root {
    /* Cores */
    --primary-green: #0c4b32;
    --accent-yellow: #caa349;
    --accent-gold: #caa349;
    --bg-gray: #edf1ed;
    --bg-surface: #f6f8f4;
    --text-dark: #121f1a;
    --text-muted: #5e6b66;
    --border-color: rgba(18, 33, 27, 0.12);
    --shadow: 0 16px 45px rgba(18, 33, 27, 0.08);
    --dark-blue: #0f2c25;
    --text-light: #8b9a92;
    
    /* Breakpoints */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 992px;
    
    /* Border Radius */
    --br-sm: 8px;
    --br-md: 12px;
    --br-lg: 20px;
    --br-xl: 28px;
    --br-2xl: 36px;
    --br-3xl: 48px;
    --br-4xl: 56px;
}

.welcome-section {
    background-color: var(--bg-gray);
    padding: 60px 20px;
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.welcome-card {
    background: white;
    border-radius: var(--br-2xl);
    display: flex;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    gap: 50px;
    align-items: center;
}

@media(max-width: var(--bp-md)){
    .welcome-card { padding: 30px; gap: 30px; border-radius: var(--br-lg); }
}

@media(max-width: var(--bp-sm)){
    .welcome-card { padding: 20px; gap: 20px; }
}

/* Estilo da Imagem */
.image-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--br-lg);
    overflow: hidden;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 350px;
}

.image-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.image-label {
    background: var(--primary-green);
    color: white;
    padding: 15px 20px;
    border-radius: var(--br-sm);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.image-label h3 { margin: 0; font-size: 1.1rem; }
.image-label p { margin: 5px 0 0; font-size: 0.7rem; font-weight: bold; opacity: 0.9; }

/* Estilo do Texto */
.content-column {
    flex: 2;
}

.quote-icon {
    color: var(--accent-yellow);
    font-size: 4rem;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.subtitle {
    color: var(--primary-green);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.title {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin-bottom: 30px;
}

.welcome-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    text-align: justify;
    text-justify: inter-word;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.footer-info strong { font-size: 0.9rem; color: var(--text-dark); }
.footer-info p { margin: 0; font-size: 0.8rem; color: #999; }

/* Responsividade para Celular */
@media (max-width: 768px) {
    .welcome-card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    .image-column { margin: 0 auto; }
    .divider { margin: 10px auto 30px; }
    .footer-info { justify-content: center; flex-direction: column; text-align: center; }
    .title { font-size: 1.8rem; }
    .welcome-text { font-size: 1rem; }
}

@media (max-width: 480px) {
    .welcome-card { padding: 20px; }
    .title { font-size: 1.2rem; }
    .welcome-text { font-size: 0.8rem; }
    .quote-icon { font-size: 2rem; }
    .subtitle { font-size: 0.7rem; }
}

.about-municipio {
    padding: 100px 20px;
    background-color: #ffffff;
}

@media(max-width: var(--bp-md)){
    .about-municipio { padding: 60px 20px; }
}

@media(max-width: var(--bp-sm)){
    .about-municipio { padding: 40px 15px; }
}

.main-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

@media(max-width: var(--bp-lg)){
    .main-flex { gap: 40px; }
}

@media(max-width: var(--bp-md)){
    .main-flex { gap: 30px; }
}

.info-side { flex: 1; }

.top-tag {
    color: var(--primary-green);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.main-title {
    font-size: 2.8rem;
    color: #1a2a3a;
    font-weight: 800;
    margin: 10px 0;
}

@media(max-width: var(--bp-md)){
    .main-title { font-size: 2rem; margin: 8px 0; }
}

@media(max-width: var(--bp-sm)){
    .main-title { font-size: 1.4rem; }
}

.yellow-bar {
    width: 60px;
    height: 5px;
    background-color: var(--accent-yellow);
    margin-bottom: 40px;
}

.description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 40px;
    text-align: justify;
}

@media(max-width: var(--bp-md)){
    .description { font-size: 1rem; margin-bottom: 30px; max-width: 100%; }
}

@media(max-width: var(--bp-sm)){
    .description { font-size: 0.9rem; }
}

/* Cards de Estatísticas */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

@media(max-width: var(--bp-md)){
    .stats-row { flex-direction: column; gap: 15px; }
}

@media(max-width: var(--bp-sm)){
    .stats-row { gap: 12px; }
}

.stat-card {
    background: #f8fbf9;
    padding: 25px 40px;
    border-radius: var(--br-lg);
    flex: 1;
    border: 1px solid rgba(0,0,0,0.02);
}

.stat-card .number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-green);
}

.stat-card .label {
    font-size: 0.75rem;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
}

/* Botão Explorar */
.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 800;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.explore-btn:hover { transform: translateX(5px); }

/* Lado da Imagem */
.visual-side { flex: 1; position: relative; }

.image-container {
    position: relative;
    border-radius: var(--br-4xl);
    overflow: visible; /* Para o badge vazar a borda */
}

.image-container img {
    width: 100%;
    border-radius: var(--br-4xl);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    left: -30px; /* Faz o efeito de sobreposição */
    background: var(--accent-yellow);
    padding: 15px 25px;
    border-radius: var(--br-3xl);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
    border: 4px solid white;
}

.floating-badge span {
    font-weight: 800;
    font-size: 0.75rem;
    color: #1a2a3a;
}

/* Responsividade */
@media (max-width: 992px) {
    .main-flex { flex-direction: column; text-align: center; gap: 60px; }
    .yellow-bar { margin: 10px auto 40px; }
    .description { margin: 0 auto 40px; }
    .floating-badge { left: 50%; transform: translateX(-50%); bottom: -20px; }
}

@media (max-width: 768px) {
    .about-municipio {
        padding: 50px 20px;
    }

    .main-flex {
        gap: 40px;
    }

    .main-title {
        font-size: 2rem;
        text-align: center;
    }

    .description {
        font-size: 0.95rem;
        text-align: center;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .stats-row {
        gap: 15px;
    }

    .stat-card {
        padding: 20px 25px;
        text-align: center;
    }

    .stat-card .number {
        font-size: 1.6rem;
    }

    .visual-side {
        order: -1; /* Imagem vem primeiro no mobile */
    }

    .floating-badge {
        position: relative;
        left: auto;
        transform: none;
        bottom: auto;
        margin-top: 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-municipio {
        padding: 30px 15px;
    }

    .main-flex {
        gap: 30px;
    }

    .main-title {
        font-size: 1.6rem;
        margin: 8px 0;
    }

    .yellow-bar {
        width: 50px;
        height: 4px;
        margin: 10px auto 25px;
    }

    .description {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }

    .stats-row {
        gap: 10px;
    }

    .stat-card {
        padding: 18px 20px;
    }

    .stat-card .number {
        font-size: 1.4rem;
    }

    .stat-card .label {
        font-size: 0.7rem;
    }

    .explore-btn {
        font-size: 0.8rem;
    }

    .image-container img {
        border-radius: var(--br-xl);
    }

    .floating-badge {
        padding: 12px 20px;
        border-radius: var(--br-xl);
    }

    .floating-badge span {
        font-size: 0.7rem;
    }
}

.services-section {
    padding: 80px 20px;
    background-color: #eee;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h1,
.section-header h2,
.section-header h3 {
    text-align: center;
}

.yellow-bar.center {
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: var(--br-xl);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    /* Sombreamento suave idêntico ao print */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-icon-box {
    width: 50px;
    height: 50px;
    background-color: #e8f5e9; /* Verde bem clarinho */
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br-md);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #1a2a3a;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1; /* Garante que os botões fiquem alinhados */
}

.btn-acceder {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-acceder span {
    font-size: 1.2rem;
    line-height: 0;
    margin-bottom: 2px;
}

/* Responsividade */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        text-align: center;
        align-items: center;
    }
}


.projects-section {
    padding: 60px 20px;
}

.project-card-main {
    background-color: var(--primary-green);
    border-radius: var(--br-3xl);
    padding: 60px;
    color: white;
}

@media(max-width: var(--bp-md)){
    .project-card-main { padding: 40px; border-radius: var(--br-xl); }
}

@media(max-width: var(--bp-sm)){
    .project-card-main { padding: 25px; border-radius: var(--br-lg); }
    .project-card-main .title-white { font-size: 1.6rem; }
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.tag-light {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-yellow);
}

.title-white {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.btn-outline {
    background: white;
    color: var(--primary-green);
    padding: 12px 25px;
    border-radius: var(--br-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.btn-outline:hover {
    opacity: 0.9;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media(max-width: var(--bp-md)){
    .projects-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media(max-width: var(--bp-sm)){
    .projects-grid { gap: 15px; }
    .project-item { padding: 25px; }
    .project-item h3 { font-size: 1rem; }
    .project-item p { font-size: 0.85rem; }
    .project-icon-top { display: none; }
}

.project-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--br-xl);
    position: relative;
}

.project-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: var(--br-lg);
    font-size: 0.65rem;
    font-weight: 900;
    margin-bottom: 25px;
}

.project-badge.yellow { background-color: var(--accent-yellow); color: #000; }
.project-badge.blue { background-color: #00c2ff; color: white; }

/* Placeholder shared style */
.placeholder-noticias-page2 body,
/* Placeholder Styles - Consolidado */
[class*="placeholder-"] body,
.placeholder-noticias-page2 body,
.placeholder-portal body,
.placeholder-mensagem body,
.placeholder-noticia1 body,
.placeholder-noticia2 body,
.placeholder-noticia3 body,
.placeholder-noticia4 body,
.placeholder-plano-urbanizacao-pua-2024 body,
.placeholder-pagamentos body,
.placeholder-pagar-taxa-mercado body,
.placeholder-postura-higiene-publica body,
.placeholder-reportar-residuos body,
.placeholder-requerer-duat body,
.placeholder-regularizar-cartao-transportador body,
.placeholder-ver-apoios-acao-social body {
    background: #f7faf7;
}

.placeholder-main-content,
.placeholder-noticias-page2 main,
.placeholder-portal main,
.placeholder-mensagem main {
    background: #fff;
    border-radius: var(--br-2xl);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    padding: 30px;
    margin: 30px auto;
    max-width: 1100px;
}

.placeholder-main-content h1,
.placeholder-noticias-page2 h1,
.placeholder-portal h1,
.placeholder-mensagem h1 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.notification {
    background: #fffde7;
    color: var(--accent-yellow);
    border: 1px solid #f5d16b;
    border-radius: var(--br-md);
    padding: 15px 18px;
    margin-bottom: 20px;
}

.placeholder-noticias-page2 p,
.placeholder-portal p,
.placeholder-mensagem p {
    color: #333;
    line-height: 1.7;
    max-width: 840px;
}

@media(max-width: var(--bp-md)){
    .placeholder-main-content,
    .placeholder-noticias-page2 main,
    .placeholder-portal main,
    .placeholder-mensagem main { padding: 22px; margin: 16px; }
}
.project-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-item p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Barra de Progresso */
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--br-md);
}

.progress-fill {
    height: 100%;
    background: var(--accent-yellow);
    border-radius: var(--br-md);
}

/* Estilo de Data de Entrega */
.delivery-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00c2ff;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Responsividade */
@media (max-width: 850px) {
    .projects-grid { grid-template-columns: 1fr; }
    .projects-header { flex-direction: column; gap: 20px; }
    .project-card-main { padding: 40px 20px; border-radius: var(--br-xl); }
}

.news-section {
    padding: 80px 20px;
    background-color: #f0efef;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.news-grid {
    display: grid;
    /* Define 3 colunas para manter as 3 notícias numa linha */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    padding: 20px 0;
}

/* Responsividade para Mobile */
@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr; /* Ocupa a largura toda no celular */
        gap: 20px;
    }
}

.news-card {
    background: #ffffff;
    border-radius: 50px; /* Cantos bem arredondados como na foto */
    overflow: hidden; /* ESSENCIAL: Corta a foto e o conteúdo nos cantos */
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); /* Sombra suave profissional */
    border: 1px solid rgba(0,0,0,0.03); /* Borda quase invisível para definição */
    height: 100%;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 260px; /* Altura fixa para manter simetria */
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a foto sem distorcer */
    display: block;
}

.news-content {
    padding: 35px; /* Mais espaço interno (respiro) */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-tag {
    color: #2d5a27; 
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 1.5rem; /* Títulos mais fortes */
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 15px;
    /* Limita o título a 2 linhas para manter o alinhamento */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0; /* O padding do container já resolve */
}
.read-more {
    text-decoration: none;
    color: #1a2a3a;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsividade */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .news-card { flex-direction: column; }
    .news-image { min-width: 100%; height: 200px; }
}


/* NEWSLETTER STYLES */
.newsletter-section { padding: 60px 20px 100px; }

.newsletter-card {
    background-color: var(--primary-green);
    border-radius: var(--br-4xl);
    padding: 80px 40px;
    text-align: center;
    color: white;
    width: 100%; 
    box-sizing: border-box; 
}

@media(max-width: var(--bp-md)){
    .newsletter-card { padding: 50px 30px; border-radius: var(--br-2xl); }
    .newsletter-card h2 { font-size: 1.8rem; }
}

@media(max-width: var(--bp-sm)){
    .newsletter-card { padding: 30px 20px; border-radius: var(--br-lg); }
    .newsletter-card h2 { font-size: 1.3rem; }
    .newsletter-card p { font-size: 0.9rem; max-width: 100%; }
}

.tag-yellow {
    color: var(--accent-yellow);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.newsletter-card h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 15px 0;
}

.newsletter-card p {
    max-width: 500px;
    margin: 30px auto;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

@media(max-width: var(--bp-md)){
    .newsletter-form { gap: 10px; }
    .newsletter-form input { font-size: 0.95rem; padding: 14px 15px 14px 45px; }
    .btn-subscribe { padding: 0 25px; font-size: 0.9rem; }
}

@media(max-width: var(--bp-sm)){
    .newsletter-form { flex-direction: column; gap: 12px; }
    .input-group { width: 100%; }
    .btn-subscribe { width: 100%; padding: 12px 20px; }
}

.input-group {
    position: relative;
    flex: 1;
}

.mail-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
}

.newsletter-form input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border-radius: var(--br-md);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.btn-subscribe {
    background: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 0 40px;
    border-radius: var(--br-md);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-subscribe:hover { transform: scale(1.05); }

/* Responsividade */
@media (max-width: 768px) {
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-card h2 { font-size: 1.8rem; }
}

@media(max-width: var(--bp-sm)){
    .section-header { margin-bottom: 30px; }
    .services-section { padding: 50px 15px; }
    .news-section { padding: 50px 15px; }
    .projects-section { padding: 40px 15px; }
    .newsletter-section { padding: 40px 15px 80px; }
}

/* SEÇÃO: SERVIÇOS RÁPIDOS */
.quick-services {
    background: #fff;
    padding: 3.5rem 0 2.5rem;
    margin: -2rem 0 3rem 0;
    position: relative;
    z-index: 10;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(34, 139, 34, 0.12);
}

.quick-services::before {
    content: '';
    position: absolute;
    top: 1.6rem;
    left: 8%;
    right: 8%;
    height: 1px;
    background: rgba(34, 139, 34, 0.18);
}

.quick-services::after {
    content: '⌄';
    position: absolute;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #228B22;
    color: #228B22;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.quick-service-card {
    background: #fff;
    border-radius: 999px;
    padding: 1rem 1.8rem;
    text-align: center;
    text-decoration: none;
    color: #1a2a3a;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    border: 1.5px solid #228B22;
    font-weight: 700;
    gap: 0.75rem;
    width: 100%;
}

.quick-service-card:hover {
    transform: translateY(-2px);
    border-color: #0b5d12;
    box-shadow: 0 18px 40px rgba(34, 139, 34, 0.12);
}

.quick-services .quick-icon {
    display: block;
}

.quick-services .quick-icon i {
    font-size: 1.5rem;
    color: #228B22;
}

.quick-services .quick-service-card p {
    display: none;
}

.quick-service-card h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}

/* Responsivo */
@media (max-width: 992px) {
    .quick-services-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .quick-services {
        padding: 3rem 0 2rem;
        margin: -1.7rem 0 2rem 0;
    }
    
    .quick-services::before {
        left: 6%;
        right: 6%;
    }
    
    .quick-services-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .quick-service-card {
        padding: 0.95rem 1.4rem;
        min-height: 58px;
    }
    
    .quick-service-card h3 {
        font-size: 0.95rem;
    }
    
    .quick-services::after {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        top: 0.75rem;
    }
}

@media (max-width: 580px) {
    .quick-services-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .quick-service-card {
        padding: 0.85rem 1.2rem;
        min-height: 54px;
    }

    .quick-service-card h3 {
        font-size: 0.92rem;
    }
}

@media (max-width: 420px) {
    .quick-services {
        padding: 2.5rem 0 1.8rem;
    }

    .quick-services::before {
        left: 4%;
        right: 4%;
    }

    .quick-services::after {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        top: 0.7rem;
    }

    .quick-service-card {
        padding: 0.75rem 1rem;
        min-height: 50px;
    }
}

/* SEÇÃO: BEM-VINDO AO MUNICÍPIO */
.welcome-about-section {
    padding: 4rem 0;
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
}

.welcome-about-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.ver-mais-btn {
    background: #228B22;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.ver-mais-btn:hover {
    background: #1a6b1a;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: left;
}

.text-content h2 strong {
    color: #228B22;
}

.text-content p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

.welcome-about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    background: #fff;
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 4px solid #228B22;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 260ms ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(34, 139, 34, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #228B22;
    margin-bottom: 0.5rem;
}

.stat-item.clickable {
    cursor: pointer;
    position: relative;
}

.stat-item.clickable:hover {
    background: #f8f8f8;
}

.arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.stat-item.clickable.expanded .arrow {
    transform: rotate(180deg);
}

.bairros-list {
    display: none;
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.bairros-list:not(.hidden) {
    display: block;
    max-height: 500px;
    padding: 15px;
}

.bairros-summary {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #444;
}

.bairros-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.bairros-list th,
.bairros-list td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.bairros-list th {
    font-weight: 700;
    color: #222;
    background: #f8f8f8;
}

.bairros-list tr:nth-child(even) {
    background: #fcfcfc;
}

.bairros-list td {
    color: #555;
    line-height: 1.4;
}

.bairros-list td:last-child {
    white-space: nowrap;
}


/* Responsivo */
@media (max-width: 768px) {
    .welcome-about-section {
        padding: 2.5rem 0;
    }
    
    .welcome-about-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .ver-mais-btn {
        align-self: flex-end;
    }
    
    .text-content h2 {
        font-size: 1.5rem;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
    
    .welcome-about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
}

/* SEÇÃO: TÓPICOS DO CONSELHO MUNICIPAL */
.council-topics-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.02) 0%, rgba(255, 204, 0, 0.02) 100%);
    position: relative;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.topic-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 320ms ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #228B22 0%, #ffcc00 100%);
    opacity: 0;
    transition: opacity 320ms ease;
}

.topic-card:hover {
    border-color: #ffcc00;
    box-shadow: 0 12px 32px rgba(34, 139, 34, 0.12);
    transform: translateY(-8px);
}

.topic-card:hover::before {
    opacity: 1;
}

.topic-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.08) 0%, rgba(255, 204, 0, 0.08) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #228B22;
    transition: all 320ms ease;
}

.topic-card:hover .topic-icon {
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.15) 0%, rgba(255, 204, 0, 0.15) 100%);
    transform: scale(1.12) rotate(6deg);
}

.topic-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-top: 0.5rem;
}

.topic-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    text-align: center;
}

.topic-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #228B22;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 260ms ease;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    justify-content: center;
}

.topic-link:hover {
    color: #ffcc00;
}

.topic-link span {
    transition: transform 260ms ease;
    display: inline-block;
}

.topic-card:hover .topic-link span {
    transform: translateX(4px);
}

/* Responsivo */
@media (max-width: 768px) {
    .council-topics-section {
        padding: 3rem 0;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .topic-card {
        padding: 1.5rem;
    }
    
    .topic-card h3 {
        font-size: 1rem;
    }
    
    .topic-card p {
        font-size: 0.8rem;
    }
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .doc-grid { grid-template-columns: 1fr; }
    .category-menu { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .cat-link { white-space: nowrap; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Global typography and micro-interactions ===== */
p:not(.section-header p):not(.title):not(.main-title):not(.description), li, .page-content, .content { text-align: justify; text-justify: inter-word; line-height: 1.6; }
.card, .card-white, .service-card, .project-item, .market-card { transition: transform 260ms ease, box-shadow 260ms ease; will-change: transform; }
.card:hover, .service-card:hover, .project-item:hover, .market-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(2,40,20,0.06); }
img.reveal { opacity: 0; transform: translateY(8px) scale(0.995); transition: opacity 600ms ease, transform 600ms ease; }
img.reveal.in-view { opacity: 1; transform: none; }
