/* ============================================
   Favela Verde - Site Institucional (Refinado)
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #166534;
    --primary-dark: #14532d;
    --primary-darker: #052e16;
    --primary-light: #22c55e;
    --accent: #15803d;
    --text: #1c1917;
    --text-muted: #57534e;
    --bg: #ffffff;
    --bg-alt: #f0fdf4;
    --bg-alt-2: #ecfdf5;
    --border: #dcfce7;
    --border-strong: #bbf7d0;
    --shadow: 0 2px 12px rgba(22, 101, 52, 0.08);
    --shadow-md: 0 4px 20px rgba(22, 101, 52, 0.1);
    --shadow-lg: 0 12px 40px rgba(22, 101, 52, 0.12);
    --radius: 10px;
    --radius-lg: 14px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- Container ---- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--bg);
    box-shadow: 0 1px 0 var(--border);
    transition: box-shadow 0.25s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary-dark);
    padding: 0.5rem 0;
}

.header-top-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.header-top-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.header-top-link:hover {
    color: #fff;
}

.header-top-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.95)'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.header-top-icon-wa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.95)'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3C/svg%3E");
}

.header-top-icon-location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.header-top-city {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.header-main {
    background: var(--bg);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.logo-flor {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--bg-alt);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-alt);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    margin-top: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.92) 0%, rgba(5, 46, 22, 0.88) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.22;
    max-width: 720px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Fallback quando não há imagem no hero */
/* Overlay escuro sobre a imagem do hero */
.hero-bg--img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.88) 0%, rgba(5, 46, 22, 0.9) 100%);
    z-index: 1;
}

.hero-bg:not(.hero-bg--img) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
}

.hero-bg:not(.hero-bg--img)::after {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.btn-primary,
.btn-primary:hover {
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ---- Stats ---- */
.stats {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

.stat-item {
    padding: 0.5rem;
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Section ---- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Section com imagem ao lado */
.section-with-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .section-with-img {
        grid-template-columns: 1fr;
    }
    .section-with-img .section-img-wrap {
        order: -1;
    }
}

.section-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.section-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

/* ---- Galeria strip (full width) ---- */
.gallery-strip-section {
    padding: 0;
}

/* ---- Atividades ---- */
.atividades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .atividades-grid {
        grid-template-columns: 1fr;
    }
}

.atividade-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.atividade-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.atividade-card-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: transparent;
}

.atividade-card-primary .atividade-desc,
.atividade-card-primary .atividade-link {
    color: rgba(255, 255, 255, 0.95);
}

.atividade-card-primary .atividade-link:hover {
    color: #fff;
    text-decoration: underline;
}

.atividade-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--bg-alt);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atividade-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.atividade-card-primary .atividade-icon {
    background: rgba(255, 255, 255, 0.2);
}

.atividade-card-primary .atividade-icon svg {
    color: #fff;
}

.atividade-icon-cultura {
    background: rgba(22, 101, 52, 0.12);
}

.atividade-icon-cultura svg {
    color: var(--primary-dark);
}

.atividade-icon-projetos {
    background: rgba(22, 101, 52, 0.12);
}

.atividade-icon-projetos svg {
    color: var(--primary-dark);
}

.atividade-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.atividade-card-primary .atividade-title {
    color: #fff;
}

.atividade-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.atividade-card-primary .atividade-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.atividade-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.atividade-link:hover {
    opacity: 0.85;
}

/* ---- Galeria de fotos (strip) ---- */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 -24px;
}

@media (max-width: 768px) {
    .gallery-strip {
        grid-template-columns: 1fr;
        margin: 0 -16px;
    }
}

.gallery-strip-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-strip-item:hover img {
    transform: scale(1.05);
}

/* ---- Valores ---- */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .valores-grid {
        grid-template-columns: 1fr;
    }
}

.valor-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.valor-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.valor-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.valor-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Sobre ---- */
.sobre-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .sobre-layout {
        grid-template-columns: 1fr;
    }
}

.sobre-texto {
    text-align: left;
}

.sobre-texto p {
    margin-bottom: 1.25rem;
    color: var(--text);
    line-height: 1.7;
}

.sobre-intro {
    font-size: 1.0625rem;
    color: var(--text) !important;
}

.sobre-dados-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sobre-dados {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sobre-dado {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.9375rem;
}

.sobre-dado-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary-dark);
}

.sobre-dado-valor {
    font-weight: 600;
    color: var(--text);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.sobre-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.sobre-content p {
    margin-bottom: 1rem;
    color: var(--text);
}

.sobre-content .sobre-dados {
    grid-template-columns: repeat(2, 1fr);
    margin: 2rem 0;
}

.sobre-content .sobre-dado strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.sobre-content .btn {
    margin-top: 0.5rem;
}

/* ---- Projetos (página Projetos Sociais) ---- */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .projetos-grid {
        grid-template-columns: 1fr;
    }
}

.projeto-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.projeto-card:hover {
    box-shadow: var(--shadow-lg);
}

.projeto-card-img {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.projeto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projeto-card:hover .projeto-card-img img {
    transform: scale(1.03);
}

.projeto-card-body {
    padding: 1.5rem;
}

.projeto-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.projeto-card-body p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.equipe-ref {
    text-align: center;
    margin-bottom: 2rem;
}

.equipe-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.equipe-mini-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    max-width: 140px;
    transition: opacity 0.2s;
}

.equipe-mini-item:hover {
    opacity: 0.9;
}

.equipe-mini-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    margin-bottom: 0.5rem;
}

.equipe-mini-nome {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text);
}

.equipe-mini-cargo {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ---- Equipe ---- */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.equipe-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.equipe-card:hover {
    box-shadow: var(--shadow-lg);
}

.equipe-card-destaque {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.equipe-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.equipe-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--border-strong);
    display: block;
}

.equipe-nome {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.equipe-cargo {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.equipe-bio {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Localização ---- */
.localizacao-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .localizacao-content {
        grid-template-columns: 1fr;
    }
}

.localizacao-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.local-item h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.local-item p {
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.local-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.local-item a:hover {
    text-decoration: underline;
}

.localizacao-map {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-embed-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.map-embed-wrap::before {
    content: '';
    display: block;
    padding-bottom: 56.25%;
}

.map-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.map-embed-link {
    font-size: 0.875rem;
    text-align: center;
}

.map-embed-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.map-embed-link a:hover {
    text-decoration: underline;
}

/* ---- Contato CTA ---- */
.contato-cta {
    text-align: center;
    margin-bottom: 1rem;
}

.contato-cta .btn-lg {
    margin-bottom: 0.75rem;
}

.contato-cta p {
    font-size: 1rem;
    color: var(--text);
}

.contato-cta a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contato-cta a:hover {
    text-decoration: underline;
}

.contato-endereco {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-section p,
.footer-section li {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* ---- Page header (páginas internas) ---- */
.page-header {
    padding: 7rem 0 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    margin-top: 0;
}

.page-header.page-header--img {
    position: relative;
    background: var(--primary-dark);
}

.page-header--img .page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header--img .page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header--img .page-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 83, 45, 0.75);
    z-index: 1;
}

.page-header--img .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Legal ---- */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* ---- Formulário ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* ---- Navegação mobile ---- */
@media (max-width: 900px) {
    .nav {
        display: none;
    }
    .header-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
        z-index: 1000;
    }
    .nav.open .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav.open .nav-link {
        padding: 0.85rem 1rem;
        border-radius: 6px;
    }
    .nav.open .nav-link:hover {
        background: var(--bg-alt);
    }
}

/* ---- Responsividade geral ---- */
@media (max-width: 768px) {
    .hero {
        min-height: 75vh;
        padding: 6rem 0 3rem;
    }
    .section {
        padding: 2.5rem 0;
    }
    .section-header {
        margin-bottom: 1.5rem;
    }
    .stats {
        padding: 1.5rem 0;
    }
    .atividade-card {
        padding: 1.5rem;
    }
    .valor-card {
        padding: 1.25rem;
    }
    .footer-content {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .page-header {
        padding: 5.5rem 0 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 5rem 0 2.5rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .section-title {
        font-size: 1.35rem;
    }
    .section-subtitle {
        font-size: 0.9375rem;
    }
    .sobre-dado {
        padding: 0.85rem;
    }
    .equipe-card {
        padding: 1.5rem;
    }
    .contato-cta .btn-lg {
        width: 100%;
    }
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}
