/* ============================================
   HERÓIS DO AMOR — Design System
   Visual: apresentação institucional AHA
   Amarelo girassol · Teal #4399AB · fundo branco
   ============================================ */

:root {
    /* Teal institucional (o “verde” da apresentação) */
    --teal-900: #2a6b78;
    --teal-800: #368a99;
    --teal-700: #4399ab;
    --teal-600: #449aaa;
    --teal-100: #d4eef2;
    --teal-50: #eef7f8;

    /* Verde de apoio (tema AHA / tipografia) */
    --green-900: #143d22;
    --green-800: #196b24;
    --green-700: #246b32;
    --green-600: #4ea72e;
    --green-100: #e4f5e0;
    --green-50: #f2faf0;

    /* Amarelo girassol + creme de fundo */
    --sun-600: #d4a017;
    --sun-500: #e8b000;
    --sun-400: #f5c518;
    --sun-300: #ffe066;
    --sun-200: #fff0b0;
    --sun-100: #fff6c8;
    --sun-50: #fffbeb;

    --ink: #1a2a24;
    --ink-soft: #3d4f44;
    --ink-muted: #5c6f64;
    --paper: #ffffff;
    --white: #ffffff;
    --line: rgba(42, 107, 120, 0.16);

    --success: #4ea72e;
    --error: #c62828;
    --warning: #ef6c00;

    --font-display: "Sora", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --space-2xl: 5.5rem;
    --space-3xl: 7.5rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-soft: 0 12px 40px rgba(42, 107, 120, 0.12);
    --header-h: 5rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --container: 1120px;

    /* Aliases (páginas/admin legados) */
    --primary-yellow: var(--sun-400);
    --primary-green: var(--teal-700);
    --dark-gray: #333333;
    --light-gray: var(--teal-50);
    --border-gray: var(--line);
    --text-dark: var(--ink);
    --text-light: var(--ink-muted);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-soft);
    background:
        radial-gradient(ellipse 70% 45% at 100% -5%, rgba(245, 197, 24, 0.45), transparent 55%),
        radial-gradient(ellipse 55% 40% at 0% 15%, rgba(67, 153, 171, 0.18), transparent 50%),
        var(--paper);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

a:hover { color: var(--sun-500); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--sun-400);
    outline-offset: 3px;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

/* ——— Botões ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    text-decoration: none;
    line-height: 1.2;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--teal-700);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-900);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(67, 153, 171, 0.35);
}

.btn-secondary {
    background: var(--sun-400);
    color: var(--ink);
    border-color: var(--sun-500);
}

.btn-secondary:hover {
    background: var(--sun-300);
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(245, 197, 24, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: var(--teal-700);
    color: var(--teal-900);
}

.btn-outline:hover {
    background: var(--teal-700);
    color: var(--white);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: var(--sun-400);
    color: var(--ink);
    border-color: var(--sun-400);
}

/* ——— Header ——— */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    overflow: visible;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 var(--line);
}

.site-header:not(.is-scrolled):not(.is-solid) {
    background: transparent;
}

.site-header:not(.is-scrolled):not(.is-solid) .logo-text,
.site-header:not(.is-scrolled):not(.is-solid) .nav-link,
.site-header:not(.is-scrolled):not(.is-solid) .menu-toggle {
    color: var(--white);
}

.site-header:not(.is-scrolled):not(.is-solid) .logo-img {
    filter: none;
    opacity: 1;
}

.site-header:not(.is-scrolled):not(.is-solid) .lang-link {
    color: rgba(255, 255, 255, 0.8);
}

.site-header:not(.is-scrolled):not(.is-solid) .lang-link.is-active {
    color: var(--ink);
    background: var(--sun-400);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 3.25rem;
    width: 3.25rem;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}

.logo-img--footer {
    height: 3.75rem;
    width: 3.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.15;
    transition: color 0.25s var(--ease);
    max-width: 8.5rem;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-soft);
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal-900);
    background: rgba(245, 197, 24, 0.35);
}

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

.language-selector {
    display: flex;
    gap: 0.2rem;
}

.lang-link {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.45rem;
    border-radius: 4px;
    color: var(--ink-muted);
}

.lang-link.is-active {
    background: var(--sun-400);
    color: var(--ink);
}

.header-cta {
    display: none;
}

@media (min-width: 1100px) {
    .header-cta { display: inline-flex; padding: 0.55rem 1rem; font-size: 0.8rem; }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--ink);
    padding: 0.35rem;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

body.is-nav-open {
    overflow: hidden;
}

/* ——— Hero (home) ——— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    overflow: hidden;
    padding: calc(var(--header-h) + 2rem) 0 4.5rem;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1600&q=75")
        center / cover no-repeat;
    transform: scale(1.04);
    animation: heroKen 22s var(--ease) infinite alternate;
    z-index: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(14, 40, 22, 0.88) 0%, rgba(14, 40, 22, 0.55) 48%, rgba(14, 40, 22, 0.35) 100%),
        linear-gradient(to top, rgba(14, 40, 22, 0.75) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    animation: riseIn 1s var(--ease) both;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.brand-mark span {
    display: block;
    color: var(--sun-400);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    max-width: 22ch;
}

.hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    max-width: 36ch;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Page hero (internas) */
.page-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 2.5rem) 0 3rem;
    overflow: hidden;
    color: var(--white);
}

.page-hero .hero-media {
    background-image: url("https://images.unsplash.com/photo-1497486751825-1233686d5d80?auto=format&fit=crop&w=1400&q=70");
    animation: none;
    transform: none;
}

.page-hero .hero-scrim {
    background: linear-gradient(120deg, rgba(14, 40, 22, 0.9) 0%, rgba(20, 70, 35, 0.65) 100%);
}

.page-hero .brand-mark {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sun-400);
    margin-bottom: 0.6rem;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero .hero-lead {
    margin-bottom: 0;
    max-width: 42ch;
}

/* ——— Seções ——— */
section {
    padding: var(--space-2xl) 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

.hero,
.page-hero,
.impact-strip {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(67, 153, 171, 0.16) 0%, rgba(255, 240, 176, 0.65) 100%);
}

.section-sun {
    background:
        linear-gradient(160deg, var(--sun-200) 0%, var(--sun-100) 45%, rgba(67, 153, 171, 0.14) 100%);
}

.section-dark {
    background:
        linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 55%, #5eb3c2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 240, 176, 0.32), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(245, 197, 24, 0.2), transparent 35%);
    pointer-events: none;
}

.section-dark > .container { position: relative; z-index: 1; }

.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-dark p { color: rgba(255, 255, 255, 0.82); }

.section-head {
    max-width: 38rem;
    margin-bottom: var(--space-xl);
}

.section-head.centered {
    text-align: center;
    margin-inline: auto;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-800);
    margin-bottom: 0.75rem;
}

.section-dark .section-eyebrow { color: var(--sun-300); }

.section-head h2 { margin-bottom: 0.75rem; }

.section-head p {
    font-size: 1.1rem;
    color: var(--ink-muted);
    margin-bottom: 0;
}

.section-dark .section-head p { color: rgba(255, 255, 255, 0.75); }

/* Compat: títulos antigos */
.section-title {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto var(--space-xl);
}

.section-title h2 { margin-bottom: 0.75rem; }

.section-title p {
    font-size: 1.1rem;
    color: var(--ink-muted);
    margin: 0;
}

/* ——— Impacto ——— */
.impact-strip {
    padding: var(--space-xl) 0;
    background:
        linear-gradient(90deg, rgba(245, 197, 24, 0.5), rgba(255, 240, 176, 0.95) 42%, rgba(67, 153, 171, 0.2));
    border-block: 1px solid rgba(245, 197, 24, 0.4);
}

.impact-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.impact-numbers--about {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.impact-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    color: var(--sun-500);
    font-size: 1.75rem;
}

.impact-copy {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
    margin: 0;
    max-width: 28ch;
    margin-inline: auto;
}

.about-slogan {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--green-700);
    letter-spacing: -0.02em;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.impact-item {
    padding: 1rem 0.5rem;
}

.impact-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--teal-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-muted);
}

/* ——— Split / conteúdo ——— */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.split-visual {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-100);
    box-shadow: var(--shadow-soft);
    position: relative;
    content-visibility: auto;
}

.split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 61, 34, 0.28), transparent 45%);
    pointer-events: none;
}

.split-copy .lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.values-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
}

.values-list li {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    background: var(--sun-300);
    color: var(--ink);
    border-radius: var(--radius-sm);
}

/* ——— Feature band ——— */
.feature-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    padding-top: 1.25rem;
    border-top: 2px solid var(--sun-400);
}

.feature-item--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--ease, ease), border-color 0.3s var(--ease, ease);
}

.feature-item--link:hover,
.feature-item--link:focus-visible {
    transform: translateY(-3px);
    border-top-color: var(--green-600);
    outline: none;
}

.feature-item--link:hover h3,
.feature-item--link:focus-visible h3 {
    color: var(--green-700);
}

.feature-item h3 {
    margin: 0.75rem 0 0.5rem;
    color: var(--teal-900);
}

.feature-item p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    color: var(--teal-800);
    font-size: 1.25rem;
}

/* ——— Home: quem ajudamos ——— */
.help-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    margin-bottom: var(--space-2xl, 3.5rem);
}

.help-pillar {
    position: relative;
    padding: 0 0 0 1.15rem;
    border-left: 3px solid var(--sun-400);
}

.help-pillar__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.85rem;
    color: var(--teal-800);
    font-size: 1.35rem;
    background: rgba(67, 153, 171, 0.14);
    border-radius: 10px;
}

.help-pillar h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--teal-900);
}

.help-pillar p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.how-join {
    padding-top: var(--space-xl, 2.5rem);
    border-top: 1px solid var(--line);
}

.how-join .section-head {
    margin-bottom: var(--space-lg, 1.75rem);
}

.how-join__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--teal-900);
}

.how-join__cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl, 2.5rem);
}

/* ——— Cards (só interação / formulários) ——— */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--sun-500);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    color: var(--teal-900);
}

.card-text {
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ——— Grid ——— */
.grid {
    display: grid;
    gap: 1.75rem;
}

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

/* ——— Formulários ——— */
.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0;
    margin: 0;
    border-radius: 3px;
    flex-shrink: 0;
    accent-color: var(--teal-700, #4399ab);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

input.error,
textarea.error,
select.error {
    border-color: var(--error);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.check-list {
    list-style: none;
    margin: 1.25rem 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: var(--ink-soft);
}

.check-list i {
    color: var(--green-600);
    margin-top: 0.25rem;
}

/* ——— CTA band ——— */
.cta-band {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.cta-band h2 {
    color: var(--sun-400);
    margin-bottom: 0.75rem;
}

.cta-band p {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ——— Projeto ——— */
.project-intro {
    max-width: 46rem;
}

.project-intro .lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.project-cnpj {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--green-700);
    margin-bottom: 0;
}

.activity-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1.5rem;
    margin: 0;
}

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--ink-soft);
}

.activity-list i {
    color: var(--green-600);
    margin-top: 0.3rem;
}

.partner-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin: 0;
    max-width: 40rem;
}

.partner-list li {
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--sun-400);
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
}

/* ——— Carrossel ——— */
.carousel {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #1a2e22;
    max-height: 380px;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-soft);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    pointer-events: none;
    display: grid;
    place-items: center;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(250, 251, 248, 0.92);
    color: var(--green-800);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.carousel-btn:hover {
    background: var(--sun-400);
    color: var(--ink);
}

.carousel-btn--prev { left: 0.65rem; }
.carousel-btn--next { right: 0.65rem; }

.carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(20, 61, 34, 0.25);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.carousel-dot.is-active {
    background: var(--green-700);
    transform: scale(1.25);
}

@media (max-width: 560px) {
    .carousel {
        max-width: 100%;
    }

    .carousel-viewport {
        max-height: 280px;
        aspect-ratio: 1 / 1;
    }

    .carousel-slide img {
        max-height: 280px;
    }
}

/* ——— Eventos (lista pública) ——— */
.event-grid {
    align-items: stretch;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card__image {
    margin: -0.15rem -0.15rem 1rem;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--green-100, #e8f3ea);
}

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

.event-card__date {
    border-radius: var(--radius-md, 12px);
    padding: 1.15rem 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.event-card__date--a {
    background: linear-gradient(135deg, var(--sun-400, #f5c518), var(--green-600, #2e7d32));
}

.event-card__date--b {
    background: linear-gradient(135deg, var(--green-600, #2e7d32), var(--sun-400, #f5c518));
}

.event-card__day {
    display: block;
    font-family: var(--font-display, inherit);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.event-card__month,
.event-card__time {
    display: block;
    font-size: 0.92rem;
    opacity: 0.95;
}

.event-card__location {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.event-card__location i {
    color: var(--primary-green, var(--green-600));
    margin-top: 0.2rem;
}

.event-card__desc {
    flex: 1;
}

.event-card__more {
    width: 100%;
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
}

.event-detail-modal {
    max-width: min(640px, 100%);
}

.event-detail-modal__media {
    margin: 0 0 1rem;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--green-100, #e8f3ea);
}

.event-detail-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-modal__date {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-700, #246b32);
}

.event-detail-modal h2 {
    margin: 0 2rem 0.75rem 0;
    font-size: 1.35rem;
    color: var(--green-800, #1b5e28);
}

.event-detail-modal__location {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 1rem;
    color: var(--ink-soft, #3d4f44);
}

.event-detail-modal__location i {
    color: var(--primary-green, var(--green-600));
    margin-top: 0.2rem;
}

.event-detail-modal__body {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--ink-soft, #3d4f44);
}

.events-empty {
    text-align: center;
    margin-top: 0.5rem;
    padding: 2rem 1.25rem;
    background: var(--light-gray, #f3f6f4);
    border-radius: var(--radius-md, 12px);
    color: var(--ink-muted, #5c6f64);
}

.events-empty p + p {
    margin-top: 0.75rem;
}

/* ——— Galeria ——— */
.gallery-section {
    background:
        linear-gradient(180deg, rgba(255, 240, 176, 0.9) 0%, rgba(67, 153, 171, 0.12) 100%);
}

.gallery-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.gallery-album {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 0;
    background: var(--white, #fff);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 10px 28px rgba(20, 61, 34, 0.08);
    transition: transform 0.35s var(--ease, ease), box-shadow 0.35s var(--ease, ease);
    font: inherit;
    color: inherit;
}

.gallery-album:hover,
.gallery-album:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(20, 61, 34, 0.14);
    outline: none;
}

.gallery-album__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow));
}

.gallery-album__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease, ease);
}

.gallery-album:hover .gallery-album__media img,
.gallery-album:focus-visible .gallery-album__media img {
    transform: scale(1.05);
}

.gallery-album__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(14, 40, 22, 0.35);
    color: #fff;
    font-size: 1.75rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-album:hover .gallery-album__overlay,
.gallery-album:focus-visible .gallery-album__overlay {
    opacity: 1;
}

.gallery-album__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem 1.15rem;
}

.gallery-album__title {
    font-family: var(--font-display, inherit);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--green-800, #1b5e28);
}

.gallery-album__meta {
    font-size: 0.9rem;
    color: var(--ink-muted, #5c6f64);
}

.gallery-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ink-muted, #5c6f64);
}

.gallery-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-green);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 40, 22, 0.65), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-album-modal__content {
    max-width: min(960px, 100%);
    width: 100%;
}

.gallery-album-modal__title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.45rem;
    color: var(--green-800, #1b5e28);
}

.gallery-album-modal__count {
    margin: 0 0 1.15rem;
    color: var(--ink-muted, #5c6f64);
    font-size: 0.95rem;
}

.gallery-album-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.gallery-album-modal__shot {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: #e8eee9;
}

.gallery-album-modal__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-album-modal__shot:hover img {
    transform: scale(1.05);
}

.gallery-album-modal__shot-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(14, 40, 22, 0.75));
    text-align: left;
}

.gallery-lightbox .modal-content,
.gallery-lightbox__content {
    max-width: min(920px, 100%);
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 2.5rem 1rem;
    text-align: center;
    position: relative;
}

.gallery-lightbox__content img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox__caption,
.gallery-lightbox__counter {
    color: #fff;
    margin: 0.75rem 0 0;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-800, #1b5e28);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.gallery-lightbox__nav--prev { left: 0; }
.gallery-lightbox__nav--next { right: 0; }

.gallery-lightbox .modal-close {
    color: #fff;
    top: -0.25rem;
    right: 0;
}

/* ——— Modal / Alerts ——— */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(14, 40, 22, 0.65);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
}

.alert {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: var(--green-100);
    color: var(--green-900);
    border: 1px solid rgba(46, 125, 50, 0.25);
}

.alert-error {
    background: #fdecea;
    color: #7f1d1d;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: var(--sun-50);
    color: #7a4e00;
    border: 1px solid rgba(240, 180, 41, 0.4);
}

/* Toast centralizado */
.toast-host {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
    background: rgba(15, 35, 40, 0.28);
}

.toast-alert {
    pointer-events: auto;
    max-width: min(32rem, 100%);
    margin: 0;
    padding: 1.15rem 1.35rem;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 35, 40, 0.28);
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-alert.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.checkout-panel {
    margin-top: 0.5rem;
}

.checkout-summary {
    margin-bottom: 1.35rem;
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(67, 153, 171, 0.12), rgba(240, 180, 41, 0.1));
    border: 1px solid rgba(67, 153, 171, 0.2);
    text-align: center;
}

.checkout-summary__label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted, #5c6f64);
}

.checkout-summary__amount {
    margin: 0.25rem 0 0.4rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-800, #1b5e28);
}

.checkout-summary__meta {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-muted, #5c6f64);
}

.page-hero--compact {
    min-height: 38vh;
}

/* ——— Doação Stone ——— */
.donate-panel {
    max-width: 560px;
    margin: 0 auto;
}

.donate-status {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md, 10px);
    font-size: 0.95rem;
    line-height: 1.45;
}

.donate-status.is-soon {
    background: rgba(67, 153, 171, 0.1);
    border: 1px solid rgba(67, 153, 171, 0.28);
    color: #1f4f58;
}

.donate-status.is-ready {
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.28);
    color: #1b5e20;
}

.donate-form fieldset {
    border: 0;
    margin: 0 0 1.25rem;
    padding: 0;
}

.donate-form legend {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--ink, #1a2b30);
}

.donate-amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.donate-amount-chip {
    cursor: pointer;
}

.donate-amount-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.donate-amount-chip span {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(42, 107, 120, 0.25);
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    color: var(--primary-green, #2a6b78);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.donate-amount-chip input:checked + span,
.donate-amount-chip input:focus-visible + span {
    background: rgba(67, 153, 171, 0.14);
    border-color: var(--teal, #4399ab);
    color: #164048;
}

.donate-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.donate-secure-note {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--muted, #5a6b70);
}

.donate-submit {
    width: 100%;
}

@media (max-width: 560px) {
    .donate-card-row {
        grid-template-columns: 1fr;
    }
}

/* ——— WhatsApp flutuante ——— */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1500;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.85rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease), background 0.2s;
    animation: whatsappPulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: scale(1.08);
    background: #1ebe57;
    color: #fff;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
    outline: none;
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.15); }
}

@media (max-width: 600px) {
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.7rem;
    }
}

.quote-band {
    padding: var(--space-xl) 0;
    background:
        linear-gradient(160deg, rgba(255, 240, 176, 0.95), rgba(67, 153, 171, 0.12));
}

.video-frame {
    max-width: 920px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0f1f24;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(42, 107, 120, 0.18);
}

.video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0f1f24;
}

.site-quote {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.site-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--teal-900);
    margin: 0 0 0.85rem;
}

.site-quote cite {
    font-style: normal;
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.about-objective {
    margin-top: var(--space-xl);
    padding: 1.5rem 1.5rem 1.5rem 1.35rem;
    border-left: 4px solid var(--sun-400);
    background: rgba(255, 255, 255, 0.45);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-objective h3 {
    margin: 0 0 0.65rem;
    color: var(--teal-900);
}

.about-objective p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ——— Footer ——— */
.site-footer {
    background: linear-gradient(175deg, var(--teal-900) 0%, #1f5560 100%);
    color: rgba(255, 255, 255, 0.78);
    padding: var(--space-2xl) 0 1.5rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo-img {
    filter: none;
}

.footer-brand .logo-text {
    color: var(--white);
    max-width: none;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 28ch;
    font-size: 0.98rem;
}

.footer-col h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sun-400);
    margin-bottom: 1rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.footer-col a:hover { color: var(--sun-400); }

.social-links {
    display: flex;
    gap: 0.65rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin: 0;
    font-size: 1.1rem;
    transition: background 0.25s, color 0.25s;
}

.social-links a:hover {
    background: var(--sun-400);
    color: var(--green-900);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.footer-bottom a:hover { color: var(--sun-400); }

/* ——— Motion ——— */
@keyframes heroKen {
    from { transform: scale(1.04) translate(0, 0); }
    to { transform: scale(1.1) translate(-1.5%, -1%); }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Compat animações antigas */
.fade-in,
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.is-visible,
.slide-in-left.is-visible,
.slide-in-right.is-visible {
    opacity: 1;
    transform: none;
}

/* ——— Responsivo ——— */
@media (max-width: 960px) {
    .split,
    .feature-band,
    .help-pillars,
    .footer-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .activity-list {
        grid-template-columns: 1fr;
    }

    .split-visual {
        aspect-ratio: 16 / 10;
        order: -1;
    }

    .impact-numbers {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .impact-numbers--about {
        grid-template-columns: 1fr;
    }

    .nav-main {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        z-index: 1100;
        flex-direction: column;
        align-items: stretch;
        background: var(--paper);
        padding: 1rem 1.25rem 1.5rem;
        box-shadow: var(--shadow-soft);
        gap: 0.25rem;
        border-bottom: 1px solid var(--line);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-main.is-open { display: flex; }

    .nav-link {
        color: var(--ink) !important;
        padding: 0.85rem 0.75rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1200;
        flex-shrink: 0;
        min-width: 2.75rem;
        min-height: 2.75rem;
        margin-left: auto;
    }

    .header-actions {
        flex-shrink: 0;
    }

    .language-selector {
        margin-left: 0;
    }

    .hero {
        min-height: 92vh;
        align-items: flex-end;
        padding-bottom: 3rem;
    }

    section { padding: var(--space-xl) 0; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 1.75rem, var(--container)); }

    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

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

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

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

/* Preferência de redução de movimento */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero-media { animation: none; transform: none; }

    .reveal,
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .hero-content {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
