/* ==========================================================
   ESCOLA COPO DE LEITE — REDESIGN 2026
   Camada de modernização sobre o CSS legado.
   ========================================================== */

/* ----------------------------------------------------------
   TOKENS
   ---------------------------------------------------------- */

:root {
    --color-white: #ffffff;
    --color-cream: #fefbdd;
    --color-cream-soft: #f8eadd;
    --color-charcoal: #585959;
    --color-gray: #969691;
    --color-black: #161010;

    --color-sage: #c3d9b1;
    --color-olive: #999c75;
    --color-green-dark: #427457;
    --color-green: #15895a;
    --color-lime: #d6ffb7;

    --color-blue-soft: #acd1df;
    --color-blue: #94becd;
    --color-teal: #519daf;

    --color-pink-soft: #f6d6da;
    --color-pink: #feb5ce;
    --color-rose: #d5aac4;

    --color-lavender: #dec4e9;
    --color-purple-soft: #e1aad9;

    --color-yellow: #eed536;
    --color-mustard: #deb76e;
    --color-peach: #fed6a1;
    --color-orange-soft: #fdcd84;
    --color-orange: #dfa268;

    --color-brown: #a07e5a;
    --color-brown-dark: #685757;

    --color-primary: var(--color-green-dark);
    --color-secondary: var(--color-teal);
    --color-accent: var(--color-mustard);

    --color-background: #fffdf8;
    --color-surface: #ffffff;
    --color-text: var(--color-charcoal);
    --color-text-muted: #747776;

    --header-height: 88px;
    --announcement-height: 38px;

    --container: 1180px;
    --gutter: clamp(20px, 4vw, 42px);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --radius-xl: 48px;

    --shadow-soft: 0 18px 55px rgba(62, 82, 72, 0.11);
    --shadow-card: 0 14px 34px rgba(45, 67, 57, 0.10);

    --motion-instant: 160ms;
    --motion-fast: 240ms;
    --motion-medium: 480ms;
    --motion-normal: var(--motion-medium);
    --motion-slow: 780ms;

    --ease-premium: cubic-bezier(.16, 1, .3, 1);
    --ease-soft: cubic-bezier(.22, .61, .36, 1);

    /* aliases mantidos para componentes legados */
    --transition-fast: var(--motion-fast) var(--ease-premium);
    --transition-normal: var(--motion-normal) var(--ease-premium);
}

/* ----------------------------------------------------------
   RESET / BASE
   ---------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.page,
body.single {
    padding-top: 0;
}

body.menu-is-open,
html.menu-is-open {
    overflow: hidden;
}

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

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

body img {
    float: none;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 4px;
}

.wrapper {
    width: min(100% - (var(--gutter) * 2), var(--container));
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    top: 12px;
    left: 12px;
    z-index: 99999;
    padding: 12px 18px;
    clip: auto;
    background: #fff;
    color: var(--color-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

/* ----------------------------------------------------------
   TYPOGRAPHY / SHARED SECTION SYSTEM
   ---------------------------------------------------------- */

.site-main {
    position: relative;
    z-index: 1;
}

.section,
.section2 {
    position: relative;
    padding: clamp(72px, 9vw, 120px) 0;
    overflow: hidden;
}

.section h1,
.section h2,
.section h3,
.section2 h1,
.section2 h2,
.section2 h3,
.site-footer h2 {
    font-family: 'Nunito', 'Open Sans', sans-serif;
    letter-spacing: -0.035em;
}

.section h1,
.section h2,
.section2 h1,
.section2 h2 {
    margin: 0;
    padding: 0;
    color: var(--color-text);
    text-align: inherit;
}

.section p,
.section2 p {
    margin: 0 0 1em;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit !important;
    text-align-last: auto;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto clamp(36px, 6vw, 64px);
    text-align: center;
}

.section-heading--left {
    margin-left: 0;
    text-align: left;
}

.section-heading--compact {
    margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-kicker::before {
    content: '';
    width: 28px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-yellow);
}

.description {
    width: 100%;
    max-width: 760px;
    margin: 22px auto 0;
    padding: 0;
    color: var(--color-text-muted);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}

.description > :last-child {
    margin-bottom: 0;
}

.section-actions {
    margin-top: 38px;
    text-align: center;
}

.btn,
a.btn.btn-cta,
button.btn {
    width: auto !important;
    min-height: 48px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: static;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.96rem !important;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(66, 116, 87, 0.16);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.btn:hover,
a.btn.btn-cta:hover,
button.btn:hover {
    transform: translateY(-2px);
    background: #365f48;
    color: #fff;
    box-shadow: 0 14px 28px rgba(66, 116, 87, 0.22);
}

.btn:active,
a.btn.btn-cta:active,
button.btn:active,
.btn-ghost:active {
    transform: translateY(0) scale(0.98);
    transition-duration: var(--motion-instant);
}

.btn--light {
    background: #fff !important;
    color: var(--color-primary) !important;
}

.btn--light:hover {
    background: var(--color-cream) !important;
}

.btn-ghost {
    min-height: 48px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.09);
    transition:
        transform var(--transition-fast),
        background var(--transition-fast);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

/* ----------------------------------------------------------
   HEADER
   Sistema base do cabeçalho.
   Na Home, variáveis CSS atualizadas via requestAnimationFrame
   fazem a transição contínua entre vídeo e estado glass.
   ---------------------------------------------------------- */

.site-header.menu {
    --header-live-height: var(--header-height);
    --header-surface: rgba(255, 255, 255, 0.96);
    --header-border-color: rgba(66, 116, 87, 0.09);
    --header-blur: 18px;
    --header-shadow: 0 12px 35px rgba(56, 75, 65, 0.08);
    --header-link-color: var(--color-text);
    --header-nav-track: rgba(255, 255, 255, 0.62);
    --header-nav-border: rgba(66, 116, 87, 0.10);
    --header-rubber-color: rgba(195, 217, 177, 0.58);
    --header-logo-scale: 0.92;
    --header-progress: 1;

    width: 100%;
    height: var(--header-live-height);
    padding: 0;

    position: fixed;
    inset: 0 0 auto;

    z-index: 1000;

    border: 0;
    border-bottom: 1px solid var(--header-border-color);

    background: var(--header-surface);

    box-shadow: var(--header-shadow);

    backdrop-filter: blur(var(--header-blur));
    -webkit-backdrop-filter: blur(var(--header-blur));

    transition:
        height var(--motion-fast) var(--ease-premium);
}

.site-header.menu .site-header__inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-header .site-header__brand {
    width: auto;
    max-width: 184px;
    margin: 0;

    flex: 0 0 auto;
}

.site-header__logo-link {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.site-header__logo-stack {
    width: min(168px, 30vw);

    display: grid;
    place-items: center;

    position: relative;

    transform:
        scale(var(--header-logo-scale));
    transform-origin: left center;

    transition:
        scale var(--motion-fast) var(--ease-premium);
}

.site-header .site-header__logo {
    width: auto;
    max-width: 168px;
    max-height: 66px;

    display: block;

    grid-area: 1 / 1;

    transition:
        opacity var(--motion-fast) linear,
        filter var(--motion-fast) linear;
}

.site-header__logo--normal {
    position: relative;
    z-index: 1;
}

.site-header__logo--contrast {
    position: absolute;
    inset: 0;

    z-index: 2;

    margin: auto;

    filter:
        brightness(0)
        invert(1);

    pointer-events: none;
}

.site-header:not(.site-header--hero)
.site-header__logo--normal {
    opacity: 1;
}

.site-header:not(.site-header--hero)
.site-header__logo--contrast {
    display: none;
}

.site-header__logo-link:hover
.site-header__logo-stack {
    scale: 1.025;
}

.site-header__site-name {
    color: var(--header-link-color);

    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;

    transition:
        color var(--motion-fast) linear;
}

/*
 * Track de navegação.
 * O indicador elástico é decorativo; os links continuam sendo
 * os links reais emitidos pelo wp_nav_menu.
 */
.site-header.menu .site-header__navigation {
    width: auto;
    padding: 4px;

    position: relative;

    display: flex;
    align-items: center;

    border:
        1px solid
        var(--header-nav-border);

    border-radius: 20px;

    background:
        var(--header-nav-track);

    transform: none;

    transition:
        background var(--motion-fast) linear,
        border-color var(--motion-fast) linear;
}

.site-header.menu .site-header__navigation ul {
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 3px;

    list-style: none;
}

.site-header.menu .site-header__navigation ul li {
    margin: 0;
    padding: 0;
}

.site-header.menu .site-header__navigation ul li a {
    min-height: 42px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2;

    border-radius: 16px;

    color:
        var(--header-link-color);

    font-family: 'Nunito', sans-serif;
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;

    background: transparent !important;

    transition:
        color 160ms linear,
        transform var(--motion-fast) var(--ease-premium);
}

.site-header.menu .site-header__navigation ul li a::before,
.site-header.menu .site-header__navigation ul li a::after {
    display: none !important;
}

.site-header.menu .site-header__navigation ul li a:hover,
.site-header.menu .site-header__navigation ul li a:focus-visible,
.site-header.menu .site-header__navigation ul li.current-menu-item > a,
.site-header.menu .site-header__navigation ul li.current_page_item > a,
.site-header.menu .site-header__navigation ul li a.is-rubber-active {
    background: transparent !important;
}

.site-header.menu .site-header__navigation ul li a:hover {
    transform: translateY(-1px);
}

/*
 * "Rubber Segment" portado para JS/CSS vanilla.
 * Sem React, sem radio buttons e sem interferir no HTML semântico.
 */
.site-header__rubber-indicator {
    width: 100%;
    height: 46px;

    position: absolute;
    top: 50%;
    left: 0;

    z-index: 1;

    border-radius: 18px;

    background:
        var(--header-rubber-color);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.30);

    opacity: 0;

    transform:
        translate3d(0, -50%, 0);

    /*
     * O JS recorta a forma por clip-path a cada frame da mola.
     * Estado inicial: totalmente recortado.
     */
    clip-path: inset(50% 50% 50% 50%);

    pointer-events: none;

    will-change: clip-path;

    transition:
        opacity var(--motion-fast) linear;
}

.site-header__toggle {
    width: 46px !important;
    height: 46px;
    padding: 0;

    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    position: relative;
    z-index: 1002;

    border:
        1px solid
        rgba(66, 116, 87, 0.10) !important;

    border-radius: 16px;

    background:
        rgba(195, 217, 177, 0.34) !important;

    box-shadow:
        0 10px 28px
        rgba(45, 67, 57, 0.08);

    transition:
        background var(--motion-fast) var(--ease-premium),
        border-color var(--motion-fast) var(--ease-premium),
        transform var(--motion-fast) var(--ease-premium);
}

.site-header__toggle:hover {
    transform: translateY(-1px);
}

.site-header__toggle span {
    width: 21px;
    height: 2px;

    display: block;

    border-radius: 999px;

    background: var(--color-primary);

    transition:
        transform var(--motion-normal) var(--ease-premium),
        opacity 180ms linear,
        background var(--motion-fast) linear;
}

.site-header__toggle.is-open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.site-header__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.site-header__toggle.is-open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}

body.admin-bar .site-header.menu {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header.menu {
        top: 46px;
    }
}

/* ----------------------------------------------------------
   ANNOUNCEMENT
   ---------------------------------------------------------- */

.school-announcement {
    min-height: calc(var(--header-height) + var(--announcement-height));
    padding-top: var(--header-height);
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(90deg, #365f48, var(--color-primary));
    color: #fff;
}

.school-announcement #text-wrapper {
    min-height: var(--announcement-height);
    padding-block: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-announcement p {
    margin: 0;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-align: center;
}

/* ----------------------------------------------------------
   VIDEO BACKGROUND + HERO
   ---------------------------------------------------------- */

/*
 * O vídeo não pertence mais somente ao Hero.
 * Ele é uma camada fixa do viewport e permanece atrás da Home
 * enquanto as seções avançam sobre ele.
 */
.site-video-background {
    width: 100%;
    height: 100vh;
    height: 100dvh;

    position: fixed;
    inset: 0;

    z-index: 0;

    overflow: hidden;
    pointer-events: none;

    background: #15231c;

    transform: translateZ(0);
    backface-visibility: hidden;
}

.site-video-background__media,
.site-video-background__fallback {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    display: block;
}

.site-video-background__media {
    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.012) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.site-video-background__fallback {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.site-video-background__shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(11, 28, 19, 0.08) 0%,
            rgba(11, 28, 19, 0.03) 45%,
            rgba(11, 28, 19, 0.10) 100%
        );
}

/*
 * Hero agora é somente a primeira camada de conteúdo.
 * O vídeo que vemos atrás dele é a mesma camada que continuará
 * visível durante o restante da rolagem.
 */
.hero-video.full-banner.header {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 680px;

    margin: 0;
    padding: 0 !important;

    position: relative;
    z-index: 1;

    overflow: hidden;
    isolation: isolate;

    background: transparent;
}

.hero-video.header::before,
.hero-video.header::after {
    display: none !important;
    content: none !important;
}

.hero-video__overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(11, 28, 19, 0.78) 0%,
            rgba(11, 28, 19, 0.58) 31%,
            rgba(11, 28, 19, 0.27) 59%,
            rgba(11, 28, 19, 0.08) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 18, 13, 0.24) 0%,
            rgba(8, 18, 13, 0.02) 56%,
            rgba(8, 18, 13, 0.34) 100%
        );
}

.hero-video__overlay::after {
    content: '';

    width: min(38vw, 460px);
    aspect-ratio: 1;

    position: absolute;
    right: -12%;
    bottom: -34%;

    border-radius: 46% 54% 62% 38% / 45% 39% 61% 55%;

    background: rgba(254, 251, 221, 0.12);

    pointer-events: none;
}

.hero-video__content {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));

    height: 100%;
    min-height: inherit;

    margin: 0 auto;

    padding:
        calc(var(--header-height) + 42px)
        0
        88px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-video__text {
    width: min(100%, 700px);

    margin: 0;

    text-align: left;
}

.hero-video__eyebrow {
    margin: 0 0 16px !important;

    color: #fff !important;

    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-size: 0.83rem !important;
    font-weight: 800 !important;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-video__title {
    max-width: 700px;

    margin: 0;
    padding: 0;

    color: #fff !important;

    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-size: clamp(3rem, 5.6vw, 6.2rem);
    font-weight: 800;

    line-height: 0.97;
    letter-spacing: -0.055em;

    text-align: left;
    text-wrap: balance;

    text-shadow: 0 8px 38px rgba(0, 0, 0, 0.24);
}

.hero-video__lead {
    max-width: 590px;

    margin: 22px 0 0 !important;

    color: rgba(255, 255, 255, 0.90) !important;

    font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
    line-height: 1.65;

    text-align: left !important;
}

.hero-video__actions {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-video__actions .btn {
    min-height: 52px;

    padding-inline: 26px !important;

    background: #fff !important;
    color: var(--color-primary) !important;

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hero-video__actions .btn:hover {
    background: var(--color-cream) !important;
    color: var(--color-primary) !important;
}

.hero-video__actions .btn-ghost {
    min-height: 52px;

    padding-inline: 26px;

    color: #fff !important;

    border-color: rgba(255, 255, 255, 0.62);

    background: rgba(255, 255, 255, 0.10);
}

.hero-video__scroll {
    width: 31px;
    height: 50px;

    position: absolute;
    left: 50%;
    bottom: 26px;

    z-index: 3;

    transform: translateX(-50%);

    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
}

.hero-video__scroll span {
    width: 4px;
    height: 9px;

    position: absolute;
    top: 9px;
    left: 50%;

    border-radius: 999px;

    background: #fff;

    transform: translateX(-50%);

    animation: hero-scroll-indicator 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-indicator {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 17px);
    }
}

/* ----------------------------------------------------------
   NOSSA ESCOLA
   ---------------------------------------------------------- */

.section--school {
    background:
        radial-gradient(circle at 8% 18%, rgba(254, 181, 206, 0.38) 0 84px, transparent 86px),
        radial-gradient(circle at 95% 80%, rgba(172, 209, 223, 0.42) 0 110px, transparent 112px),
        var(--color-cream);
}

.section--school::after {
    content: '';
    width: 140px;
    height: 46px;
    position: absolute;
    left: -36px;
    bottom: 68px;
    border-radius: 999px;
    background: var(--color-yellow);
    transform: rotate(-18deg);
    opacity: 0.72;
}

.escola-list {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
    align-items: stretch;
}

.escola-item {
    width: 100%;
    max-width: none;
    min-height: 390px;
    height: auto;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(25, 38, 31, 0.02), rgba(25, 38, 31, 0.72)),
        var(--card-image, linear-gradient(135deg, var(--color-sage), var(--color-blue-soft)));
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow-card);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.escola-item::after {
    content: '';
    width: 120px;
    height: 120px;
    position: absolute;
    top: -36px;
    right: -34px;
    z-index: 0;
    border-radius: 42% 58% 50% 50%;
    background: rgba(254, 251, 221, 0.26);
    pointer-events: none;
}

.escola-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(52, 71, 61, 0.17);
}

.escola-item__link {
    min-height: 390px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    color: #fff;
    text-decoration: none;
}

.escola-item__number {
    position: absolute;
    top: 22px;
    left: 22px;
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.escola-item h2,
.escola-item h3 {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    position: static;
    background: transparent;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.escola-item p {
    margin: 12px 0 0;
    display: block;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

.escola-item__cta {
    margin-top: 17px;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
}

/* ----------------------------------------------------------
   VIDEO STORY / YOUTUBE
   ---------------------------------------------------------- */

.section--video-story {
    background: #fff;
}

.video-story {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
}

.video-story__copy h2 {
    margin: 10px 0 20px;
    color: var(--color-primary);
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    line-height: 1.04;
}

.video-story__copy p {
    max-width: 520px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.video-story__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-blue-soft);
    box-shadow: var(--shadow-soft);
}

.video-story__media::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.video-story__media iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border: 0;
}

/* ----------------------------------------------------------
   CALCULADORA
   ---------------------------------------------------------- */

.section--age {
    background:
        radial-gradient(circle at 88% 16%, rgba(238, 213, 54, 0.48) 0 72px, transparent 74px),
        var(--color-sage);
}

.age-finder {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(30px, 6vw, 78px);
    align-items: center;
}

.age-finder__visual {
    display: flex;
    justify-content: center;
}

.age-finder__visual img {
    width: min(100%, 430px);
    display: block;
    filter: drop-shadow(0 18px 22px rgba(55, 80, 64, 0.12));
}

.age-finder__content {
    padding: clamp(28px, 5vw, 54px);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.age-finder__content h2 {
    margin: 10px 0 16px;
    color: var(--color-primary);
    font-size: clamp(2.2rem, 4.4vw, 4.7rem);
    line-height: 1;
}

.age-finder__content > p {
    max-width: 600px;
    color: var(--color-text-muted);
}

.age-finder__form {
    margin-top: 26px;
}

.form-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: end;
}

.form-flex label {
    display: grid;
    gap: 7px;
    color: var(--color-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
}

.form-flex select,
.contact-form-card input:not([type="submit"]),
.contact-form-card textarea,
.site-footer input:not([type="submit"]),
.site-footer textarea {
    width: 100% !important;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(66, 116, 87, 0.18) !important;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font: inherit;
}

.contact-form-card textarea,
.site-footer textarea {
    min-height: 110px;
    resize: vertical;
}

.age-finder__and {
    padding-bottom: 14px;
    color: var(--color-primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
}

.age-finder__form .btn {
    margin-top: 18px;
}

/* ----------------------------------------------------------
   GALLERY
   ---------------------------------------------------------- */

.section--gallery,
.section--gallery-page {
    background:
        radial-gradient(circle at 4% 9%, rgba(222, 196, 233, 0.56) 0 76px, transparent 78px),
        var(--color-pink-soft);
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 26px);
}

.home-gallery-grid--archive {
    row-gap: 28px;
}

.home-gallery-card {
    min-height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-rose);
    box-shadow: var(--shadow-card);
}

.home-gallery-card a {
    height: 100%;
    min-height: inherit;
    display: block;
    position: relative;
    color: #fff;
}

.home-gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 500ms ease;
}

.home-gallery-card:hover img {
    transform: scale(1.055);
}

.home-gallery-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(20, 30, 25, 0.02) 20%,
            rgba(20, 30, 25, 0.74) 100%
        );
}

.home-gallery-card__title {
    max-width: calc(100% - 44px);
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 2;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
}

/* ----------------------------------------------------------
   TESTIMONIALS
   ---------------------------------------------------------- */

.section--testimonials {
    background:
        linear-gradient(135deg, rgba(222, 196, 233, 0.55), rgba(172, 209, 223, 0.34)),
        #fff;
}

.depoimento-lista {
    max-width: 900px;
    margin: 0 auto;
}

.depoimento-item {
    min-height: 0 !important;
    margin: 0 10px;
    padding: clamp(28px, 5vw, 54px);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
}

.texto-depoimento {
    min-height: 0;
    position: relative;
    padding: 0;
    color: var(--color-text);
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    line-height: 1.85;
}

.testimonial-mark {
    display: block;
    height: 58px;
    color: var(--color-primary);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 0.9;
    opacity: 0.35;
}

.testimonial-copy p {
    color: inherit !important;
    text-align: left !important;
}

.depoimento-autor {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--color-primary);
    font-size: 0.94rem;
}

.depoimento-autor span {
    color: var(--color-text-muted);
}

.slick-dots {
    margin-top: 24px;
}

.slick-dots li button::before {
    color: var(--color-primary);
}

/* ----------------------------------------------------------
   PARTNERS
   ---------------------------------------------------------- */

.section--partners {
    padding-block: clamp(58px, 7vw, 88px);
    background: #fff;
}

.lista-parceiros {
    height: auto !important;
    margin: 0;
}

.item-parceiro {
    min-height: 120px;
    padding: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.item-parceiro img {
    width: auto;
    max-width: 150px;
    max-height: 78px;
    object-fit: contain;
    filter: grayscale(0.18);
    opacity: 0.82;
    transition:
        filter var(--transition-fast),
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

.item-parceiro:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

/* ----------------------------------------------------------
   EVENTS
   ---------------------------------------------------------- */

.section--events {
    background: var(--color-blue-soft);
}

.eventos-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.evento-item {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.evento-item::after {
    display: none;
}

.image-feature {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.evento-item__body {
    padding: 22px;
}

.evento-item h2,
.evento-item h3 {
    margin: 10px 0 12px;
    padding: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 1.45rem;
    text-align: left;
}

span.data-evento,
.data-evento {
    position: static;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-cream);
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.evento-item__excerpt {
    color: var(--color-text-muted);
}

.evento-item__excerpt p {
    color: inherit !important;
}

.evento-item__link {
    color: var(--color-primary) !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

/* ----------------------------------------------------------
   INTERNAL PAGES
   ---------------------------------------------------------- */

.section--internal {
    padding-top: clamp(72px, 9vw, 110px);
    background:
        radial-gradient(circle at 94% 8%, rgba(172, 209, 223, 0.28) 0 100px, transparent 102px),
        var(--color-background);
}

.page-hero {
    margin-bottom: clamp(30px, 6vw, 62px);
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: clamp(26px, 6vw, 70px);
    align-items: center;
}

.page-hero__copy h1 {
    margin: 8px 0 0;
    color: var(--color-primary);
    font-size: clamp(2.65rem, 6vw, 5.8rem);
    line-height: 0.98;
}

.page-hero__image {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.page-hero__image img {
    width: 100%;
    min-height: 350px;
    max-height: 560px;
    display: block;
    object-fit: cover;
}

.content-card {
    padding: clamp(24px, 5vw, 52px);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.page-content {
    color: var(--color-text);
    font-size: 1.04rem;
    line-height: 1.85;
}

.page-content > :first-child {
    margin-top: 0;
}

.page-content > :last-child {
    margin-bottom: 0;
}

.page-content h2,
.page-content h3 {
    margin: 1.5em 0 0.55em;
    color: var(--color-primary);
}

.page-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content ul,
.page-content ol {
    padding-left: 1.3em;
}

.content-grid,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.internal-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.internal-gallery a {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.internal-gallery img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.internal-gallery a:hover img {
    transform: scale(1.04);
}

.section--groups {
    background: var(--color-sage);
}

.estrutura-lista {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.estrutura-item {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.estrutura-item h3 {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.estrutura-description {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.contact-form-card h2 {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-size: 2rem;
}

.contato-box {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.contato-item {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: var(--radius-sm);
    background: var(--color-cream);
}

.contato-item .social-link {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.contact-map {
    height: min(55vh, 520px);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.tour-content iframe {
    width: 100%;
    max-width: 100%;
}

/* ----------------------------------------------------------
   PAGINATION / EMPTY
   ---------------------------------------------------------- */

.pagination {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary);
    font-weight: 800;
}

.pagination .current {
    background: var(--color-primary);
    color: #fff;
}

.empty-state {
    padding: 28px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text-muted);
    text-align: center;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */

.site-footer {
    position: relative;
    z-index: 2;
    background: #2f5741;
    color: #fff;
}

.site-footer__top {
    padding: clamp(60px, 8vw, 96px) 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr 0.8fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.site-footer__logo {
    width: auto;
    max-width: 170px;
    max-height: 80px;
    margin-bottom: 22px;
    filter: brightness(0) invert(1);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
    line-height: 1.1;
}

.site-footer p,
.site-footer address {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    line-height: 1.7;
    font-style: normal;
}

.site-footer__social-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer__social-links a {
    padding: 11px 14px;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    transition:
        transform var(--transition-fast),
        background var(--transition-fast);
}

.site-footer__social-links a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.1);
}

.site-footer .wpcf7 p {
    margin-bottom: 10px;
}

.site-footer input[type="submit"] {
    width: auto !important;
    min-height: 46px;
    padding: 11px 20px;
    border: 0 !important;
    border-radius: 999px;
    background: var(--color-yellow);
    color: #394334;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

.site-footer__bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__bottom p {
    margin: 0;
    font-size: 0.8rem;
}

.site-footer__credit {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    text-decoration: none;
}

.whatsapp-cta {
    width: auto !important;
    min-width: 52px;
    min-height: 52px;
    padding: 10px 16px;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    background: #15895a;
    color: #fff !important;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 15px 36px rgba(25, 75, 49, 0.25);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity var(--transition-normal),
        transform var(--transition-normal),
        visibility var(--transition-normal);
}

.whatsapp-cta.stick {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-cta .whatsapp-icon {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

/* ----------------------------------------------------------
   MOTION SYSTEM
   Variantes com ritmos diferentes para heading, copy, mídia e cards.
   Só escondemos elementos quando o JS confirma suporte a observer.
   ---------------------------------------------------------- */

.motion-enhanced .motion-reveal {
    --motion-delay: 0ms;

    will-change:
        transform,
        opacity,
        clip-path;
}

.motion-enhanced
.motion-reveal--heading {
    opacity: 0;

    transform:
        translate3d(0, 24px, 0);

    clip-path:
        inset(
            0
            0
            26%
            0
            round 14px
        );

    transition:
        opacity var(--motion-normal) var(--ease-premium)
            var(--motion-delay),
        transform var(--motion-slow) var(--ease-premium)
            var(--motion-delay),
        clip-path var(--motion-slow) var(--ease-premium)
            var(--motion-delay);
}

.motion-enhanced
.motion-reveal--copy {
    opacity: 0;

    transform:
        translate3d(0, 16px, 0)
        scale(0.995);

    transition:
        opacity var(--motion-normal) var(--ease-premium)
            var(--motion-delay),
        transform var(--motion-slow) var(--ease-premium)
            var(--motion-delay);
}

.motion-enhanced
.motion-reveal--media {
    opacity: 0;

    transform:
        translate3d(0, 18px, 0)
        scale(0.975);

    clip-path:
        inset(
            3%
            2%
            7%
            2%
            round var(--radius-lg)
        );

    transition:
        opacity var(--motion-normal) var(--ease-premium)
            var(--motion-delay),
        transform var(--motion-slow) var(--ease-premium)
            var(--motion-delay),
        clip-path var(--motion-slow) var(--ease-premium)
            var(--motion-delay);
}

.motion-enhanced
.motion-reveal--stage {
    opacity: 0;

    transform:
        translate3d(0, 22px, 0)
        scale(0.985);

    transition:
        opacity var(--motion-medium) var(--ease-premium)
            var(--motion-delay),
        transform var(--motion-slow) var(--ease-premium)
            var(--motion-delay);
}

.motion-enhanced
.motion-reveal.motion-reveal--stage.is-motion-visible {
    clip-path: none;
}

.motion-enhanced
.motion-reveal--card {
    opacity: 0;

    transform:
        translate3d(0, 28px, 0)
        scale(0.985);

    transition:
        opacity var(--motion-normal) var(--ease-premium)
            var(--motion-delay),
        transform var(--motion-slow) var(--ease-premium)
            var(--motion-delay);
}

.motion-enhanced
.motion-reveal.is-motion-visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0)
        scale(1);

    clip-path:
        inset(
            0
            0
            0
            0
            round 0
        );

    will-change: auto;
}

.motion-reduced .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }
}

/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 980px) {
    .escola-list,
    .home-gallery-grid,
    .eventos-list,
    .estrutura-lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-story,
    .age-finder,
    .page-hero,
    .content-grid,
    .contact-layout,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .video-story__copy {
        max-width: 720px;
    }

    .age-finder__visual {
        order: 2;
    }

    .age-finder__content {
        order: 1;
    }

    .page-hero__copy {
        max-width: 760px;
    }

    .site-footer__grid {
        gap: 38px;
    }

    .site-footer__social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .site-footer__social-links a {
        flex: 1 1 150px;
    }
}

/* ----------------------------------------------------------
   MOBILE NAV
   Painel flutuante com abertura por máscara e sem dependência de hover.
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    :root {
        --header-height: 76px;
        --announcement-height: 44px;
    }

    .site-header.menu .site-header__inner {
        width: 100%;
        padding-inline: 20px;
    }

    .site-header .site-header__logo-stack {
        width: min(144px, 42vw);
    }

    .site-header .site-header__logo {
        max-width: 144px;
        max-height: 58px;
    }

    .site-header__toggle {
        display: flex;
    }

    .site-header__rubber-indicator {
        display: none;
    }

    .site-header.menu .site-header__navigation {
        width: auto;
        max-height:
            calc(
                100dvh
                - var(--header-live-height)
                - 28px
            );

        padding: 8px;

        position: absolute;
        top:
            calc(
                var(--header-live-height)
                + 8px
            );
        right: 12px;
        left: 12px;

        display: block;

        overflow-x: hidden;
        overflow-y: auto;

        border:
            1px solid
            rgba(66, 116, 87, 0.10);

        border-radius: 24px;

        background:
            rgba(255, 255, 255, 0.96);

        box-shadow:
            0 26px 70px
            rgba(35, 56, 45, 0.17);

        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);

        opacity: 0;
        visibility: hidden;

        transform:
            translate3d(0, -10px, 0)
            scale(0.985);

        transform-origin: top center;

        clip-path:
            inset(
                0
                0
                100%
                0
                round 24px
            );

        pointer-events: none;

        transition:
            opacity var(--motion-fast) linear,
            transform var(--motion-normal) var(--ease-premium),
            clip-path var(--motion-normal) var(--ease-premium),
            visibility 0s linear var(--motion-normal);
    }

    .site-header.menu .site-header__navigation.showup {
        opacity: 1;
        visibility: visible;

        transform:
            translate3d(0, 0, 0)
            scale(1);

        clip-path:
            inset(
                0
                0
                0
                0
                round 24px
            );

        pointer-events: auto;

        transition:
            opacity var(--motion-fast) linear,
            transform var(--motion-normal) var(--ease-premium),
            clip-path var(--motion-normal) var(--ease-premium),
            visibility 0s linear 0s;
    }

    .site-header.menu .site-header__navigation ul {
        width: 100%;
        padding: 6px;

        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-header.menu .site-header__navigation ul li {
        width: 100%;
    }

    /*
     * Itens entram em cascata curta (≈ 30ms por item) apenas
     * na abertura; ao fechar, saem juntos com o painel.
     */
    .site-header.menu .site-header__navigation > ul > li {
        opacity: 0;

        transform: translate3d(0, -6px, 0);

        transition:
            opacity var(--motion-instant) linear,
            transform var(--motion-fast) var(--ease-premium);
    }

    .site-header.menu .site-header__navigation.showup > ul > li {
        opacity: 1;

        transform: translate3d(0, 0, 0);

        transition-delay:
            calc(60ms + (var(--menu-index, 0) * 30ms));
    }

    .site-header.menu .site-header__navigation {
        overscroll-behavior: contain;
    }

    .site-header.menu .site-header__navigation ul li a,
    .site-header.menu .site-header__navigation.showup ul li a {
        width: 100%;
        min-height: 52px;
        padding-inline: 16px;

        justify-content: flex-start;

        border-radius: 16px;

        color:
            var(--color-text) !important;

        font-size: 1rem;
    }

    .site-header.menu .site-header__navigation ul li a:hover,
    .site-header.menu .site-header__navigation ul li a:focus-visible,
    .site-header.menu .site-header__navigation ul li.current-menu-item > a,
    .site-header.menu .site-header__navigation ul li.current_page_item > a {
        color:
            var(--color-primary) !important;

        background:
            rgba(195, 217, 177, 0.30)
            !important;

        transform: none;
    }

    .hero-video__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(20, 38, 29, 0.15) 0%,
                rgba(20, 38, 29, 0.36) 48%,
                rgba(20, 38, 29, 0.76) 100%
            );
    }

    .hero-video__content {
        align-items: flex-end;
        padding-bottom: 90px;
    }

    .hero-video__text {
        width: 100%;
        max-width: 720px;
    }

    .hero-video__title {
        max-width: 620px;
        font-size:
            clamp(
                2.8rem,
                9vw,
                5rem
            );
    }
}

/* ----------------------------------------------------------
   SMALL MOBILE
   ---------------------------------------------------------- */

@media (max-width: 640px) {
    :root {
        --gutter: 18px;
    }

    .section,
    .section2 {
        padding-block: 66px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: clamp(2.1rem, 11vw, 3.25rem);
    }

    .school-announcement #text-wrapper {
        padding-inline: 16px;
    }

    .school-announcement p {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .hero-video.full-banner.header {
        min-height: 560px;
        height: calc(100svh - var(--header-height) - var(--announcement-height));
    }

    .hero-video__media {
        object-position: center center;
    }

    .hero-video__title {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }

    .hero-video__lead {
        font-size: 0.98rem !important;
    }

    .hero-video__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-video__actions .btn,
    .hero-video__actions .btn-ghost {
        width: 100% !important;
    }

    .hero-video__scroll {
        display: none;
    }

    .escola-list,
    .home-gallery-grid,
    .eventos-list,
    .estrutura-lista {
        grid-template-columns: 1fr;
    }

    .escola-item,
    .escola-item__link {
        min-height: 340px;
    }

    .form-flex {
        grid-template-columns: 1fr;
    }

    .age-finder__and {
        display: none;
    }

    .age-finder__content {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .age-finder__content h2 {
        font-size: clamp(2rem, 11vw, 3.2rem);
    }

    .video-story__media {
        border-radius: var(--radius-lg);
    }

    .page-hero__image img {
        min-height: 260px;
    }

    .content-card {
        padding: 24px 20px;
    }

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

    .site-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .whatsapp-cta {
        right: 14px;
        bottom: 14px;
        min-width: 50px;
        min-height: 50px;
        padding: 11px;
    }

    .whatsapp-cta span {
        display: none;
    }
}

/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}


/* ----------------------------------------------------------
   SINGLE / 404
   ---------------------------------------------------------- */

.single-meta {
    margin: 14px 0 0 !important;
    display: inline-flex;
    padding: 7px 12px !important;
    border-radius: 999px;
    background: var(--color-cream);
    color: var(--color-primary) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
}

.single-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.single-gallery-grid__item {
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-rose);
    box-shadow: var(--shadow-card);
}

.single-gallery-grid__item img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.single-gallery-grid__item:hover img {
    transform: scale(1.045);
}

.error-page {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.error-page h1 {
    margin: 12px 0 18px;
    color: var(--color-primary);
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    line-height: 1;
}

.error-page p {
    max-width: 580px;
    margin: 0 auto 26px;
    color: var(--color-text-muted);
}

@media (max-width: 760px) {
    .single-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* ==========================================================
   HOME — VIDEO FIXO COMO FUNDO DO SITE
   O vídeo permanece no viewport; as seções rolam por cima.
   ========================================================== */

body.home {
    padding-top: 0 !important;
    background: #15231c;
}

/* A barra antiga não participa da experiência fullscreen da Home. */
body.home .school-announcement {
    display: none !important;
}

/* O main fica acima da camada de vídeo fixa. */
body.home .home-main,
body.home .site-main {
    position: relative;
    z-index: 1;

    background: transparent !important;
}

/* O vídeo fixo é a camada-base da Home. */
body.home .site-video-background {
    display: block;
}

/* Todas as seções ficam acima do vídeo. */
body.home .home-main > section {
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------
   HEADER PREMIUM SOBRE O FUNDO
   Fica fixo desde o primeiro frame; o JS atualiza as variáveis
   de forma contínua conforme o usuário percorre o Hero.
   ---------------------------------------------------------- */

.site-header--hero {
    --header-progress: 0;
    --header-compress: 16px;

    height:
        var(--header-live-height);

    position: fixed;
    top: 0;
    right: 0;
    left: 0;

    background:
        var(--header-surface);

    border-bottom-color:
        var(--header-border-color);

    box-shadow:
        var(--header-shadow);

    backdrop-filter:
        blur(var(--header-blur));
    -webkit-backdrop-filter:
        blur(var(--header-blur));
}

/*
 * Todo o estado visual do header da Home é derivado de um único
 * valor, --header-progress (0 = sobre o vídeo, 1 = compacto),
 * publicado pelo JS a cada frame de scroll.
 *
 * Cada camada usa o seu trecho do progresso:
 * - superfície/blur entram cedo (dão base para o contraste);
 * - tinta (links, logo, pill) cruza no meio;
 * - detalhes estruturais (borda, sombra) chegam por último.
 *
 * Seletor com três classes para vencer os padrões de
 * .site-header.menu sem !important.
 */
.site-header.menu.site-header--hero {
    --header-p-surface:
        clamp(0, calc(var(--header-progress) * 1.25), 1);
    --header-p-ink:
        clamp(0, calc((var(--header-progress) - 0.18) / 0.6), 1);
    --header-p-detail:
        clamp(0, calc((var(--header-progress) - 0.4) / 0.6), 1);

    --header-live-height:
        calc(
            var(--header-height)
            - (var(--header-progress) * var(--header-compress))
        );

    --header-surface:
        rgba(255, 255, 255, calc(var(--header-p-surface) * 0.9));

    --header-blur:
        calc(var(--header-p-surface) * 18px);

    --header-border-color:
        rgba(
            calc(255 - (189 * var(--header-p-detail))),
            calc(255 - (139 * var(--header-p-detail))),
            calc(255 - (168 * var(--header-p-detail))),
            calc(0.14 - (0.05 * var(--header-p-detail)))
        );

    --header-shadow:
        0
        calc(var(--header-p-detail) * 12px)
        calc(var(--header-p-detail) * 40px)
        rgba(35, 56, 45, calc(var(--header-p-detail) * 0.10));

    --header-link-color:
        rgba(
            calc(255 - (167 * var(--header-p-ink))),
            calc(255 - (166 * var(--header-p-ink))),
            calc(255 - (166 * var(--header-p-ink))),
            calc(0.96 + (0.04 * var(--header-p-ink)))
        );

    --header-nav-track:
        rgba(255, 255, 255, calc(0.055 + (0.485 * var(--header-p-surface))));

    --header-nav-border:
        rgba(
            calc(255 - (189 * var(--header-p-detail))),
            calc(255 - (139 * var(--header-p-detail))),
            calc(255 - (168 * var(--header-p-detail))),
            calc(0.13 - (0.03 * var(--header-p-detail)))
        );

    --header-rubber-color:
        rgba(
            calc(255 - (60 * var(--header-p-ink))),
            calc(255 - (38 * var(--header-p-ink))),
            calc(255 - (78 * var(--header-p-ink))),
            calc(0.16 + (0.46 * var(--header-p-ink)))
        );

    --header-logo-scale:
        calc(1 - (var(--header-progress) * 0.10));

    /*
     * O progresso já é suavizado pelo JS; transitions aqui
     * apenas atrasariam o acompanhamento do scroll.
     */
    transition: none;
}

.site-header--hero
.site-header__logo-stack {
    transition:
        scale var(--motion-fast) var(--ease-premium);
}

.site-header--hero
.site-header__logo--normal {
    opacity:
        var(--header-p-ink);

    transition: none;
}

.site-header--hero
.site-header__logo--contrast {
    opacity:
        calc(
            1
            - var(--header-p-ink)
        );

    transition: none;
}

.site-header.menu.site-header--hero
.site-header__navigation {
    transition: none;
}

.site-header.menu.site-header--hero
.site-header__navigation ul li a {
    transition:
        transform var(--motion-fast) var(--ease-premium);
}

.site-header--hero
.site-header__navigation {
    background:
        var(--header-nav-track);

    border-color:
        var(--header-nav-border);
}

.site-header--hero
.site-header__navigation
ul
li
a {
    color:
        var(--header-link-color);
}

.site-header--hero
.site-header__rubber-indicator {
    background:
        var(--header-rubber-color);
}

.site-header--hero
.site-header__toggle {
    border-color:
        var(--header-nav-border)
        !important;

    background:
        var(--header-nav-track)
        !important;
}

.site-header--hero
.site-header__toggle
span {
    background:
        var(--header-link-color);
}

/*
 * Ao abrir o menu mobile no topo, a superfície precisa virar
 * imediatamente uma base legível, sem depender do scroll.
 */
body.menu-is-open
.site-header--hero {
    --header-surface:
        rgba(255, 255, 255, 0.95)
        !important;

    --header-border-color:
        rgba(66, 116, 87, 0.09)
        !important;

    --header-blur:
        18px
        !important;

    --header-shadow:
        0 12px 40px
        rgba(35, 56, 45, 0.10)
        !important;

    --header-link-color:
        rgba(88, 89, 89, 1)
        !important;

    --header-nav-track:
        rgba(195, 217, 177, 0.28)
        !important;

    --header-nav-border:
        rgba(66, 116, 87, 0.10)
        !important;

    --header-progress:
        1
        !important;
}

body.admin-bar
.site-header--hero {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar
    .site-header--hero {
        top: 46px;
    }
}

/* ----------------------------------------------------------
   HERO TRANSPARENTE SOBRE A MESMA CAMADA FIXA
   ---------------------------------------------------------- */

body.home #top.hero-video,
body.home #top.hero-video.full-banner,
body.home #top.hero-video.full-banner.header {
    height: 100vh !important;
    height: 100svh !important;
    min-height: 680px !important;

    background: transparent !important;
}

/* ----------------------------------------------------------
   PAINÉIS TRANSLÚCIDOS — V2
   Transparência mais forte para manter o vídeo claramente visível.
   Os cards internos continuam mais opacos para preservar a leitura.
   ---------------------------------------------------------- */

body.home .section--school {
    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(254, 181, 206, 0.18) 0 84px,
            transparent 86px
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(172, 209, 223, 0.20) 0 110px,
            transparent 112px
        ),
        rgba(254, 251, 221, 0.60) !important;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .section--video-story {
    background: rgba(255, 255, 255, 0.56) !important;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .section--age {
    background:
        radial-gradient(
            circle at 88% 16%,
            rgba(238, 213, 54, 0.24) 0 72px,
            transparent 74px
        ),
        rgba(195, 217, 177, 0.60) !important;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .section--gallery {
    background:
        radial-gradient(
            circle at 4% 9%,
            rgba(222, 196, 233, 0.26) 0 76px,
            transparent 78px
        ),
        rgba(246, 214, 218, 0.60) !important;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .section--testimonials {
    background:
        linear-gradient(
            135deg,
            rgba(222, 196, 233, 0.20),
            rgba(172, 209, 223, 0.14)
        ),
        rgba(255, 255, 255, 0.54) !important;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .section--partners {
    background: rgba(255, 255, 255, 0.58) !important;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .section--events {
    background: rgba(172, 209, 223, 0.60) !important;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Cria uma separação sutil entre os painéis sem apagar o fundo. */
body.home .section--school,
body.home .section--video-story,
body.home .section--age,
body.home .section--gallery,
body.home .section--testimonials,
body.home .section--partners,
body.home .section--events {
    border-top: 1px solid rgba(255, 255, 255, 0.26);
}

/* Footer encerra visualmente a experiência do vídeo. */
body.home .site-footer {
    position: relative;
    z-index: 3;
}

/* ----------------------------------------------------------
   TABLET / HERO
   O menu mobile já é tratado no sistema global acima.
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    .site-header.menu.site-header--hero {
        --header-compress: 8px;
    }

    body.home .hero-video__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(10, 26, 18, 0.22) 0%,
                rgba(10, 26, 18, 0.18) 35%,
                rgba(10, 26, 18, 0.76) 100%
            ) !important;
    }

    body.home .hero-video__content {
        width:
            min(
                760px,
                calc(100% - 40px)
            );

        min-height: 620px;

        padding:
            112px
            0
            92px;

        align-items: flex-end;
    }

    body.home .hero-video__title {
        max-width: 650px;

        font-size:
            clamp(
                2.7rem,
                8vw,
                4.8rem
            );
    }
}

/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {
    body.home .site-video-background__media {
        object-position: 55% center;
    }

    body.home #top.hero-video,
    body.home #top.hero-video.full-banner.header {
        min-height: 640px !important;
    }

    body.home .hero-video__content {
        width: calc(100% - 36px);

        min-height: 640px;

        padding:
            100px
            0
            86px;

        align-items: flex-end;
    }

    body.home .hero-video__eyebrow {
        margin-bottom: 12px !important;

        font-size: 0.75rem !important;
    }

    body.home .hero-video__title {
        font-size: clamp(2.35rem, 11.8vw, 3.8rem);
        line-height: 0.99;
    }

    body.home .hero-video__lead {
        margin-top: 17px !important;

        font-size: 0.98rem !important;
        line-height: 1.55;
    }

    body.home .hero-video__actions {
        width: 100%;

        margin-top: 24px;

        flex-direction: column;
        align-items: stretch;
    }

    body.home .hero-video__actions .btn,
    body.home .hero-video__actions .btn-ghost {
        width: 100% !important;
        min-height: 50px;
    }

    body.home .hero-video__scroll {
        bottom: 18px;
    }

    /*
     * Mobile mantém mais contraste que o desktop,
     * mas ainda deixa o vídeo claramente perceptível.
     */
    body.home .section--school {
        background-color: rgba(254, 251, 221, 0.80) !important;
    }

    body.home .section--video-story,
    body.home .section--partners {
        background-color: rgba(255, 255, 255, 0.78) !important;
    }

    body.home .section--age {
        background-color: rgba(195, 217, 177, 0.80) !important;
    }

    body.home .section--gallery {
        background-color: rgba(246, 214, 218, 0.80) !important;
    }

    body.home .section--testimonials {
        background-color: rgba(255, 255, 255, 0.78) !important;
    }
}

/* ----------------------------------------------------------
   MOBILE PEQUENO
   ---------------------------------------------------------- */

@media (max-width: 390px) {
    body.home .hero-video__content {
        width: calc(100% - 28px);
    }

    body.home .hero-video__title {
        font-size: clamp(2.2rem, 12vw, 3.35rem);
    }
}

/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    body.home .site-video-background__media {
        transform: none;
    }

    body.home .hero-video__scroll span {
        animation: none !important;
    }

    body.home .site-header.menu,
    .site-header--hero {
        transition: none !important;
    }
}


/* ==========================================================
   ETAPA 2 — DEPTH CAROUSEL / NOSSA ESCOLA
   Escopo restrito à Home para não afetar .escola-list em
   páginas internas. Sem React e sem nova dependência.
   ========================================================== */

/*
 * Variáveis contínuas publicadas pelo motor de profundidade
 * (redesign.js → initDepthCarousel). Registradas como não
 * herdáveis para que a atualização por frame não recalcule
 * a árvore inteira de cada cartão.
 */
@property --depth-o {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

@property --depth-a {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

@property --depth-v {
    syntax: '<number>';
    inherits: false;
    initial-value: 1;
}

@property --depth-h {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

@property --tilt-x {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

@property --tilt-y {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

body.home .school-depth {
    --school-depth-card-width: clamp(300px, 31vw, 400px);
    --school-depth-card-height: clamp(430px, 43vw, 500px);
    --school-depth-spread: clamp(215px, 23vw, 310px);

    /* geometria da profundidade por unidade de deslocamento */
    --school-depth-z-front: 72px;
    --school-depth-z-step: 217px;
    --school-depth-y-step: 28px;
    --school-depth-rotate: 8deg;
    --school-depth-scale-step: 0.12;
    --school-depth-lift: 5px;

    width: 100%;
    margin-top: clamp(28px, 5vw, 54px);
    position: relative;
}

body.home .school-depth__viewport {
    width: 100%;
    position: relative;
    outline: none;
}

body.home .school-depth__viewport:focus-visible {
    border-radius: var(--radius-xl);
    outline: 3px solid var(--color-yellow);
    outline-offset: 7px;
}

/*
 * Sem JavaScript o componente continua usando o grid existente.
 * Só ativamos a composição em profundidade após o JS concluir
 * a inicialização e adicionar .is-enhanced.
 */
@media (min-width: 761px) {
    body.home .school-depth.is-enhanced .school-depth__viewport {
        min-height:
            calc(
                var(--school-depth-card-height)
                + 44px
            );

        overflow: clip;

        perspective: 1450px;
        perspective-origin: 50% 46%;

        touch-action: pan-y;
    }

    body.home .school-depth.is-enhanced .escola-list--depth {
        width: 100%;
        height: var(--school-depth-card-height);

        margin: 0;

        display: block;

        position: relative;

        transform-style: preserve-3d;

        /*
         * O trilho está no plano z=0 e, em 3D, ficaria à frente dos
         * cartões laterais (z negativo) no hit-testing, engolindo
         * o clique. Só os cartões recebem ponteiro; o viewport
         * continua recebendo o arraste nas áreas livres.
         */
        pointer-events: none;
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card {
        pointer-events: auto;

        --depth-near: min(var(--depth-a), 1);

        width: var(--school-depth-card-width);
        min-height: var(--school-depth-card-height);
        height: var(--school-depth-card-height);

        margin: 0;

        position: absolute;
        top: 0;
        left: 50%;

        overflow: hidden;

        border-radius: var(--radius-lg);

        transform-style: preserve-3d;

        /*
         * Toda a composição espacial vem do deslocamento contínuo:
         * o mesmo cálculo serve para repouso, arraste e transição.
         */
        transform:
            translate3d(
                calc(-50% + (var(--depth-o) * var(--school-depth-spread))),
                calc(
                    (var(--depth-near) * var(--school-depth-y-step))
                    - (var(--depth-h) * var(--school-depth-lift))
                ),
                calc(
                    var(--school-depth-z-front)
                    - (var(--depth-a) * var(--school-depth-z-step))
                    + (var(--depth-h) * 14px)
                )
            )
            rotateY(
                calc(
                    (var(--depth-o) * var(--school-depth-rotate) * -1)
                    + (var(--tilt-y) * 1deg)
                )
            )
            rotateX(calc(var(--tilt-x) * 1deg))
            scale(
                calc(
                    1
                    - (var(--depth-near) * var(--school-depth-scale-step))
                    + (var(--depth-h) * 0.012)
                )
            );

        opacity:
            calc(
                (
                    1
                    - (var(--depth-near) * 0.24)
                    + (var(--depth-h) * var(--depth-near) * 0.14)
                )
                * var(--depth-v)
            );

        filter:
            brightness(
                calc(
                    1
                    - (var(--depth-near) * 0.24)
                    + (var(--depth-h) * var(--depth-near) * 0.12)
                )
            )
            saturate(
                calc(
                    1
                    - (var(--depth-near) * 0.16)
                    + (var(--depth-h) * var(--depth-near) * 0.08)
                )
            );

        box-shadow:
            0 30px 70px
            rgba(34, 54, 44, calc(0.22 - (var(--depth-near) * 0.12)));

        cursor: pointer;

        will-change:
            transform,
            opacity,
            filter;

        /* O motor (rAF + mola) anima; transitions só atrasariam. */
        transition: none;
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card[data-depth-hidden] {
        visibility: hidden;
        pointer-events: none;
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__link {
        width: 100%;
        height: 100%;
        min-height: 100%;

        padding:
            clamp(24px, 3vw, 34px);

        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    /*
     * Os cartões laterais continuam identificáveis, mas não
     * competem com o conteúdo do cartão ativo.
     */
    body.home
    .school-depth.is-enhanced
    .school-depth__card:not(.is-active)
    .school-depth__content p,
    body.home
    .school-depth.is-enhanced
    .school-depth__card:not(.is-active)
    .escola-item__cta {
        max-height: 0;
        margin-top: 0;

        overflow: hidden;

        opacity: 0;

        transform:
            translate3d(0, 12px, 0);

        pointer-events: none;

        transition:
            opacity var(--motion-fast) linear,
            transform var(--motion-normal) var(--ease-premium),
            max-height var(--motion-normal) var(--ease-premium),
            margin var(--motion-normal) var(--ease-premium);
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card.is-active
    .school-depth__content p {
        max-height: 170px;

        opacity: 1;

        transform:
            translate3d(0, 0, 0);

        transition:
            opacity var(--motion-normal) var(--ease-premium) 90ms,
            transform var(--motion-normal) var(--ease-premium) 90ms,
            max-height var(--motion-normal) var(--ease-premium);
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card.is-active
    .escola-item__cta {
        max-height: 44px;

        opacity: 1;

        transform:
            translate3d(0, 0, 0);

        transition:
            opacity var(--motion-normal) var(--ease-premium) 150ms,
            transform var(--motion-normal) var(--ease-premium) 150ms,
            max-height var(--motion-normal) var(--ease-premium);
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card:not(.is-active)
    h3 {
        font-size:
            clamp(
                1.55rem,
                2.4vw,
                2rem
            );
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card.is-active
    h3 {
        font-size:
            clamp(
                2rem,
                3.2vw,
                2.75rem
            );
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card
    .escola-item__number {
        transition:
            transform var(--motion-normal) var(--ease-premium),
            background var(--motion-normal) var(--ease-premium),
            color var(--motion-normal) var(--ease-premium);
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card.is-active
    .escola-item__number {
        transform:
            translate3d(0, 0, 18px);

        background:
            rgba(255, 255, 255, 0.94);
    }
}

/* ----------------------------------------------------------
   CONTROLES (Nossa Escola + Galeria)
   Secundários: o gesto direto é a interação principal.
   Botões mantêm 44px de área de toque com círculo visual de 34px.
   ---------------------------------------------------------- */

body.home .school-depth__controls,
body.home .gallery-depth__controls {
    min-height: 44px;

    margin-top: clamp(14px, 2vw, 22px);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    transition: opacity var(--motion-fast) linear;
}

body.home .school-depth__control,
body.home .school-depth__dot,
body.home .gallery-depth__control,
body.home .gallery-depth__dot {
    appearance: none;
    -webkit-appearance: none;

    border: 0;

    background: transparent;

    font: inherit;

    cursor: pointer;
}

/*
 * O CSS legado define `button { width: 70% !important;
 * font-size: 1.1em !important }`; aqui é necessário neutralizar.
 */
body.home .school-depth__control,
body.home .gallery-depth__control {
    width: 44px !important;
    height: 44px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border-radius: 999px;

    color: var(--color-primary);

    font-size: 0.92rem !important;
    font-weight: 800;
    line-height: 1;

    transition:
        transform var(--motion-fast) var(--ease-premium);
}

body.home .school-depth__control::before,
body.home .gallery-depth__control::before {
    content: '';

    position: absolute;
    inset: 5px;

    border: 1px solid rgba(66, 116, 87, 0.16);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.52);

    transition:
        background var(--motion-fast) linear,
        border-color var(--motion-fast) linear,
        box-shadow var(--motion-fast) var(--ease-premium);
}

body.home .school-depth__control > span,
body.home .gallery-depth__control > span {
    position: relative;
}

body.home .school-depth__control:hover,
body.home .gallery-depth__control:hover {
    transform: translate3d(0, -1px, 0);
}

body.home .school-depth__control:hover::before,
body.home .gallery-depth__control:hover::before {
    border-color: rgba(66, 116, 87, 0.24);

    background: rgba(255, 255, 255, 0.92);

    box-shadow: 0 8px 20px rgba(45, 67, 57, 0.10);
}

body.home .school-depth__control:active,
body.home .gallery-depth__control:active {
    transform: scale(0.94);
    transition-duration: var(--motion-instant);
}

body.home .school-depth__control:focus-visible,
body.home .school-depth__dot:focus-visible,
body.home .gallery-depth__control:focus-visible,
body.home .gallery-depth__dot:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 0;
}

body.home .school-depth__dots,
body.home .gallery-depth__dots {
    min-height: 44px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Dot: alvo de 16×32px, marca visual de 6px; ativo vira pill curta. */
body.home .school-depth__dot,
body.home .gallery-depth__dot {
    width: 16px !important;
    height: 32px;

    padding: 0;

    position: relative;

    border-radius: 999px;

    transition:
        width var(--motion-medium) var(--ease-premium);
}

body.home .school-depth__dot::before,
body.home .gallery-depth__dot::before {
    content: '';

    width: 6px;
    height: 6px;

    position: absolute;
    top: 50%;
    left: 50%;

    border-radius: 999px;

    background: rgba(66, 116, 87, 0.30);

    transform: translate(-50%, -50%);

    transition:
        width var(--motion-medium) var(--ease-premium),
        background var(--motion-fast) linear;
}

body.home .school-depth__dot:hover::before,
body.home .gallery-depth__dot:hover::before {
    background: rgba(66, 116, 87, 0.58);
}

body.home .school-depth__dot.is-active,
body.home .gallery-depth__dot.is-active {
    width: 30px !important;
}

body.home .school-depth__dot.is-active::before,
body.home .gallery-depth__dot.is-active::before {
    width: 20px;

    background: var(--color-primary);
}

/*
 * Com mouse, os controles recuam quando o componente não está
 * em uso e voltam ao passar o ponteiro ou receber foco.
 * Em touch ficam sempre plenos (não existe hover).
 */
@media (hover: hover) and (pointer: fine) {
    body.home .school-depth__controls,
    body.home .gallery-depth__controls {
        opacity: 0.56;
    }

    body.home .school-depth:hover .school-depth__controls,
    body.home .school-depth:focus-within .school-depth__controls,
    body.home .gallery-depth:hover .gallery-depth__controls,
    body.home .gallery-depth:focus-within .gallery-depth__controls {
        opacity: 1;
    }
}

/* Cursor: área livre do palco = "agarrar"; arrastando = "agarrando". */
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    body.home .school-depth.is-enhanced .school-depth__viewport,
    body.home .gallery-depth.is-enhanced .gallery-depth__viewport {
        cursor: grab;
    }
}

body.home .school-depth.is-dragging,
body.home .school-depth.is-dragging *,
body.home .gallery-depth.is-dragging,
body.home .gallery-depth.is-dragging * {
    cursor: grabbing !important;

    user-select: none;
    -webkit-user-select: none;
}

/* ----------------------------------------------------------
   TABLET — profundidade reduzida
   ---------------------------------------------------------- */

@media (min-width: 761px) and (max-width: 1024px) {
    body.home .school-depth {
        --school-depth-card-width:
            clamp(290px, 39vw, 355px);

        --school-depth-card-height:
            clamp(410px, 50vw, 470px);

        --school-depth-spread:
            clamp(170px, 22vw, 225px);

        --school-depth-z-step: 177px;
        --school-depth-y-step: 24px;
        --school-depth-rotate: 6deg;
        --school-depth-scale-step: 0.10;
    }
}

/* ----------------------------------------------------------
   MOBILE — scroll-snap nativo, sem 3D forçado
   ---------------------------------------------------------- */

@media (max-width: 760px) {
    body.home .school-depth {
        margin-top: 28px;
    }

    body.home .school-depth.is-enhanced .school-depth__viewport {
        width:
            calc(
                100%
                + (var(--gutter) * 2)
            );

        margin-left:
            calc(
                var(--gutter)
                * -1
            );

        padding:
            8px
            var(--gutter)
            18px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type:
            x mandatory;

        scroll-padding-inline:
            var(--gutter);

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

        touch-action: pan-x pan-y;
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__viewport::-webkit-scrollbar {
        display: none;
    }

    body.home
    .school-depth.is-enhanced
    .escola-list--depth {
        width: max-content;

        margin: 0;

        padding: 0;

        display: flex;
        align-items: stretch;
        gap: 14px;

        grid-template-columns: none;
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card {
        width:
            min(
                82vw,
                350px
            );

        min-height: 390px;
        height: auto;

        flex:
            0
            0
            min(
                82vw,
                350px
            );

        position: relative;
        inset: auto;

        opacity: 1;

        filter: none;

        transform: none;

        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__link {
        min-height: 390px;
    }

    body.home
    .school-depth.is-enhanced
    .school-depth__card
    .school-depth__content p,
    body.home
    .school-depth.is-enhanced
    .school-depth__card
    .escola-item__cta {
        max-height: none;

        opacity: 1;

        transform: none;
    }

    body.home .school-depth__controls {
        margin-top: 8px;
    }
}

/* ----------------------------------------------------------
   REDUCED MOTION
   Mantém toda a funcionalidade sem transições espaciais.
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    body.home .school-depth *,
    body.home .school-depth *::before,
    body.home .school-depth *::after,
    body.home .gallery-depth *,
    body.home .gallery-depth *::before,
    body.home .gallery-depth *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ==========================================================
   ETAPA 3 — GALERIA EM PROFUNDIDADE (Home)
   Mesmo motor da Nossa Escola, composição própria: a foto é
   protagonista, a profundidade é mais rasa e a escala lateral
   mais marcada. Escopo .gallery-depth para não afetar o
   arquivo de galerias, que reutiliza .home-gallery-*.
   Sem JS, o markup mantém o grid original.
   ========================================================== */

body.home .gallery-depth {
    --gallery-depth-card-width: clamp(320px, 46vw, 580px);
    --gallery-depth-card-height: calc(var(--gallery-depth-card-width) * 0.66);
    --gallery-depth-spread: clamp(220px, 27vw, 360px);
    --gallery-depth-z-front: 40px;
    --gallery-depth-z-step: 170px;
    --gallery-depth-rotate: 4deg;
    --gallery-depth-scale-step: 0.2;

    /*
     * Hover (--depth-h, publicado pelo motor). A foto lateral avança
     * em Z até passar à frente do plano central (o trilho é
     * preserve-3d: a ordem visual vem da profundidade, não do
     * z-index) e endireita (sem rotação nem tilt) antes de cruzar
     * o plano, evitando interseção. A escala lateral compensa a perspectiva para o
     * ganho aparente ficar ~8–10%; a central cresce ~6%.
     */
    --gallery-depth-hover-rise: -4px;
    --gallery-depth-hover-z: 40px;
    --gallery-depth-hover-front: 90px;
    --gallery-depth-hover-advance: 1;
    --gallery-depth-hover-pull: 0.12;
    --gallery-depth-hover-scale: 0.033;
    --gallery-depth-hover-side-scale: -0.058;
    --gallery-depth-hover-flatten: 2;

    width: 100%;
    position: relative;
}

body.home .gallery-depth__viewport {
    width: 100%;
    position: relative;
    outline: none;
}

body.home .gallery-depth__viewport:focus-visible {
    border-radius: var(--radius-xl);
    outline: 3px solid var(--color-yellow);
    outline-offset: 7px;
}

/* Indicação "Ver foto": só existe com o componente ativo. */
.gallery-depth__hint {
    display: none;
}

body.home .gallery-depth.is-enhanced .gallery-depth__hint {
    padding: 8px 13px;

    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    border-radius: 999px;

    background: rgba(20, 32, 26, 0.46);
    color: #fff;

    font-family: 'Nunito', sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    transform: translate3d(0, 6px, 0);

    pointer-events: none;

    transition:
        opacity var(--motion-fast) linear,
        transform var(--motion-fast) var(--ease-premium);
}

body.home .gallery-depth__hint-icon {
    width: 12px;
    height: 12px;

    display: block;

    border: 2px solid currentColor;
    border-radius: 3px;
}

@media (min-width: 761px) {
    body.home .gallery-depth.is-enhanced .gallery-depth__viewport {
        min-height: calc(var(--gallery-depth-card-height) + 36px);

        padding-top: 14px;

        /* Só o eixo X é recortado: a foto em hover pode crescer
           alguns px acima/abaixo sem ser cortada. */
        overflow: clip;
        overflow-y: visible;

        perspective: 1600px;
        perspective-origin: 50% 50%;

        touch-action: pan-y;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__track {
        width: 100%;
        height: var(--gallery-depth-card-height);

        margin: 0;

        display: block;
        position: relative;

        transform-style: preserve-3d;

        /* Ver nota equivalente em .escola-list--depth. */
        pointer-events: none;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__card {
        --depth-near: min(var(--depth-a), 1);

        width: var(--gallery-depth-card-width);
        height: var(--gallery-depth-card-height);
        min-height: 0;

        margin: 0;

        position: absolute;
        top: 0;
        left: 50%;

        overflow: hidden;

        border-radius: var(--radius-lg);

        pointer-events: auto;

        /* Com --depth-h = 0 cada termo abaixo volta ao repouso original. */
        transform:
            translate3d(
                calc(
                    -50%
                    + (
                        var(--depth-o) * var(--gallery-depth-spread)
                        * (1 - (var(--depth-h) * var(--depth-near) * var(--gallery-depth-hover-pull)))
                    )
                ),
                calc(var(--depth-h) * var(--gallery-depth-hover-rise)),
                calc(
                    var(--gallery-depth-z-front)
                    - (var(--depth-a) * var(--gallery-depth-z-step))
                    + (
                        var(--depth-h)
                        * (
                            ((1 - var(--depth-near)) * var(--gallery-depth-hover-z))
                            + (
                                var(--depth-near) * var(--gallery-depth-hover-advance)
                                * (var(--gallery-depth-z-step) + var(--gallery-depth-hover-front))
                            )
                        )
                    )
                )
            )
            rotateY(
                calc(
                    (
                        var(--depth-o) * var(--gallery-depth-rotate) * -1
                        * (1 - min(1, var(--depth-h) * var(--gallery-depth-hover-flatten)))
                    )
                    + (var(--tilt-y) * (1 - var(--depth-near)) * 1deg)
                )
            )
            rotateX(calc(var(--tilt-x) * (1 - var(--depth-near)) * 1deg))
            scale(
                calc(
                    (
                        (1 - (var(--depth-near) * var(--gallery-depth-scale-step)))
                        * (1 + (var(--depth-h) * var(--depth-near) * var(--gallery-depth-hover-side-scale)))
                    )
                    + (var(--depth-h) * (1 - var(--depth-near)) * var(--gallery-depth-hover-scale))
                )
            );

        /*
         * Em hover a foto lateral fica plena: nítida e opaca. A opacidade
         * chega a 1 antes de ela cruzar o plano central (sem "fantasma").
         */
        opacity:
            calc(
                (
                    1
                    - (var(--depth-near) * 0.28 * (1 - min(1, var(--depth-h) * 2)))
                )
                * var(--depth-v)
            );

        filter:
            brightness(
                calc(
                    1
                    - (var(--depth-near) * 0.32 * (1 - var(--depth-h)))
                )
            )
            saturate(
                calc(
                    1
                    - (var(--depth-near) * 0.2 * (1 - var(--depth-h)))
                )
            );

        box-shadow:
            0 28px 64px
            rgba(34, 54, 44, calc(0.24 - (var(--depth-near) * 0.14 * (1 - var(--depth-h)))));

        cursor: pointer;

        will-change:
            transform,
            opacity,
            filter;

        transition: none;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__card[data-depth-hidden] {
        visibility: hidden;
        pointer-events: none;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__link {
        min-height: 0;

        position: absolute;
        inset: 0;
    }

    /* Hover só cria overlay discreto; a foto nunca escurece em repouso. */
    body.home .gallery-depth.is-enhanced .gallery-depth__card.is-active:hover .home-gallery-card__overlay,
    body.home .gallery-depth.is-enhanced .gallery-depth__link:focus-visible .home-gallery-card__overlay {
        opacity: 1;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__card.is-active:hover .gallery-depth__hint,
    body.home .gallery-depth.is-enhanced .gallery-depth__link:focus-visible .gallery-depth__hint {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__card.is-active:hover img {
        transform: scale(1.03);
    }
}

/*
 * Clique direto: com mouse, qualquer foto em hover mostra as mesmas
 * pistas do card ativo (overlay, "Abrir álbum" e título), porque um
 * clique já abre o álbum dela.
 */
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    body.home .gallery-depth.is-direct-click .gallery-depth__card:hover .home-gallery-card__overlay,
    body.home .gallery-depth.is-direct-click .gallery-depth__card:hover .home-gallery-card__title {
        opacity: 1;
    }

    body.home .gallery-depth.is-direct-click .gallery-depth__card:hover .gallery-depth__hint,
    body.home .gallery-depth.is-direct-click .gallery-depth__card:hover .home-gallery-card__title {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/*
 * Movimento reduzido: sem avanço espacial. A foto em hover só fica
 * plena (nítida/opaca) e cresce ~2%; clique e arraste seguem iguais.
 */
@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
    body.home .gallery-depth {
        --gallery-depth-hover-rise: 0px;
        --gallery-depth-hover-z: 0px;
        --gallery-depth-hover-advance: 0;
        --gallery-depth-hover-pull: 0;
        --gallery-depth-hover-scale: 0.02;
        --gallery-depth-hover-side-scale: 0.02;
        --gallery-depth-hover-flatten: 0;
    }
}

body.home .gallery-depth.is-enhanced .gallery-depth__card img {
    min-height: 0;

    transition: transform var(--motion-medium) var(--ease-premium);
}

body.home .gallery-depth.is-enhanced .gallery-depth__card:hover img {
    transform: none;
}

body.home .gallery-depth.is-enhanced .home-gallery-card__overlay {
    background:
        linear-gradient(
            180deg,
            rgba(20, 30, 25, 0) 52%,
            rgba(20, 30, 25, 0.46) 100%
        );

    opacity: 0;

    transition: opacity var(--motion-fast) linear;
}

/* Título vira etiqueta clara: legível sem escurecer a foto. */
body.home .gallery-depth.is-enhanced .home-gallery-card__title {
    max-width: calc(100% - 40px);

    padding: 8px 14px;

    left: 18px;
    bottom: 18px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);

    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.2;

    box-shadow: 0 8px 22px rgba(30, 45, 38, 0.16);

    opacity: 0;
    transform: translate3d(0, 6px, 0);

    transition:
        opacity var(--motion-fast) linear,
        transform var(--motion-medium) var(--ease-premium);
}

body.home .gallery-depth.is-enhanced .gallery-depth__card.is-active .home-gallery-card__title {
    opacity: 1;
    transform: translate3d(0, 0, 0);

    transition-delay: 90ms;
}

@media (min-width: 761px) and (max-width: 1024px) {
    body.home .gallery-depth {
        --gallery-depth-card-width: clamp(300px, 52vw, 480px);
        --gallery-depth-spread: clamp(180px, 25vw, 250px);
        --gallery-depth-z-step: 140px;
        --gallery-depth-scale-step: 0.18;
    }
}

@media (max-width: 760px) {
    body.home .gallery-depth.is-enhanced .gallery-depth__viewport {
        width: calc(100% + (var(--gutter) * 2));

        margin-left: calc(var(--gutter) * -1);

        padding: 8px var(--gutter) 18px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

        touch-action: pan-x pan-y;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__viewport::-webkit-scrollbar {
        display: none;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__track {
        width: max-content;

        margin: 0;
        padding: 0;

        display: flex;
        align-items: stretch;
        gap: 14px;

        grid-template-columns: none;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__card {
        width: min(84vw, 380px);
        min-height: 0;

        flex: 0 0 min(84vw, 380px);

        aspect-ratio: 4 / 3.3;

        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__link {
        min-height: 0;

        position: absolute;
        inset: 0;
    }

    /* Sem hover no touch: títulos visíveis, "Ver foto" no ativo. */
    body.home .gallery-depth.is-enhanced .home-gallery-card__title {
        opacity: 1;
        transform: none;
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__card.is-active .gallery-depth__hint {
        opacity: 1;
        transform: none;
    }

    body.home .gallery-depth.is-enhanced .home-gallery-card__title,
    body.home .gallery-depth.is-enhanced .gallery-depth__hint {
        bottom: 14px;
    }

    body.home .gallery-depth.is-enhanced .home-gallery-card__title {
        left: 14px;
        max-width: calc(100% - 128px);
    }

    body.home .gallery-depth.is-enhanced .gallery-depth__hint {
        right: 14px;
    }

    body.home .gallery-depth__controls {
        margin-top: 8px;
    }
}


/* ==========================================================
   ETAPA 4 — DEPOIMENTOS EM ACCORDION
   Não é escopado em body.home: o mesmo part PHP aparece na
   página Proposta Pedagógica.
   Sem JS: lista de cartões empilhados com todo o texto visível.
   ========================================================== */

.testimonial-accordion {
    --accordion-tab: 68px;
    --accordion-gap: 10px;
    --accordion-pad-x: clamp(28px, 4vw, 52px);
    --accordion-pad-top: 76px;
    --accordion-pad-bottom: 38px;
}

/* Tons pastel por painel (cíclicos; nenhum conteúdo fixo). */
.testimonial-panel:nth-child(6n + 1) { --panel-tone: var(--color-sage); }
.testimonial-panel:nth-child(6n + 2) { --panel-tone: var(--color-blue-soft); }
.testimonial-panel:nth-child(6n + 3) { --panel-tone: var(--color-pink-soft); }
.testimonial-panel:nth-child(6n + 4) { --panel-tone: var(--color-lavender); }
.testimonial-panel:nth-child(6n + 5) { --panel-tone: var(--color-peach); }
.testimonial-panel:nth-child(6n + 6) { --panel-tone: var(--color-cream-soft); }

/* Neutraliza a largura fixa legada (.depoimento-item { width: 860px }). */
.testimonial-accordion .testimonial-panel {
    width: auto;
}

.testimonial-accordion > .testimonial-panel + .testimonial-panel {
    margin-top: 14px;
}

.testimonial-panel__heading {
    margin: 0;
    padding: 0;

    font-size: inherit;
    letter-spacing: 0;
}

/* Neutraliza `button { width: 70% !important; ... }` legado. */
.testimonial-panel__trigger {
    width: auto !important;

    margin: 0 0 18px;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 12px;

    border-radius: 14px;

    background: transparent;
    color: var(--color-primary);

    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem !important;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;

    cursor: pointer;
}

.testimonial-panel__number {
    min-width: 38px;
    height: 30px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: var(--panel-tone, var(--color-sage));
    color: var(--color-primary);

    font-size: 0.82rem;
    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

.testimonial-panel__trigger:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

/* ---------------- Enhanced: base comum ---------------- */

.testimonial-accordion.is-enhanced {
    max-width: none;
}

.testimonial-accordion.is-enhanced > .testimonial-panel + .testimonial-panel {
    margin-top: 0;
}

.testimonial-accordion.is-enhanced .testimonial-panel {
    min-height: 0 !important;

    margin: 0;
    padding: 0;

    position: relative;

    overflow: hidden;
}

.testimonial-accordion.is-enhanced .testimonial-panel__trigger {
    margin: 0;
}

/* Texto entra depois da reorganização; autor um pouco depois. */
.testimonial-accordion.is-enhanced .texto-depoimento,
.testimonial-accordion.is-enhanced .depoimento-autor {
    opacity: 0;

    transform: translate3d(0, 10px, 0);

    transition:
        opacity var(--motion-instant) linear,
        transform var(--motion-fast) var(--ease-premium);
}

.testimonial-accordion.is-enhanced .testimonial-panel.is-active .texto-depoimento,
.testimonial-accordion.is-enhanced .testimonial-panel.is-active .depoimento-autor {
    opacity: 1;

    transform: translate3d(0, 0, 0);

    transition:
        opacity var(--motion-fast) linear,
        transform var(--motion-medium) var(--ease-premium);
}

.testimonial-accordion.is-enhanced .testimonial-panel.is-active .texto-depoimento {
    transition-delay: 100ms;
}

.testimonial-accordion.is-enhanced .testimonial-panel.is-active .depoimento-autor {
    transition-delay: 170ms;
}

.testimonial-accordion.is-switching-mode,
.testimonial-accordion.is-switching-mode * {
    transition: none !important;
}

/* ---------------- Modo horizontal (desktop) ---------------- */

.testimonial-accordion.is-row {
    height: var(--accordion-height, 440px);

    display: flex;
    align-items: stretch;
    gap: var(--accordion-gap);
}

.testimonial-accordion.is-row .testimonial-panel {
    flex: 0 0 var(--accordion-tab);

    border-radius: var(--radius-lg);

    background: var(--panel-tone, var(--color-sage));

    box-shadow: 0 10px 26px rgba(45, 67, 57, 0.08);

    transition:
        flex-basis var(--motion-medium) var(--ease-premium),
        background-color var(--motion-medium) linear,
        box-shadow var(--motion-medium) var(--ease-premium);
}

.testimonial-accordion.is-row .testimonial-panel.is-active {
    flex: 0 1 var(--accordion-active-width, 640px);

    background: rgba(255, 255, 255, 0.92);

    box-shadow: var(--shadow-soft);
}

/* Pré-visualização: a aba se abre alguns pixels; o ativo cede o espaço. */
.testimonial-accordion.is-row .testimonial-panel.is-preview {
    flex-basis: calc(var(--accordion-tab) + 22px);

    box-shadow: 0 16px 34px rgba(45, 67, 57, 0.13);
}

/* Aba inativa: o botão ocupa todo o painel. */
.testimonial-accordion.is-row .testimonial-panel__trigger {
    width: auto !important;

    padding: 22px 0 24px;

    position: absolute;
    inset: 0;
    z-index: 2;

    flex-direction: column;
    justify-content: space-between;
    gap: 16px;

    border-radius: inherit;
}

.testimonial-accordion.is-row .testimonial-panel__number {
    background: rgba(255, 255, 255, 0.72);

    transition:
        transform var(--motion-fast) var(--ease-premium),
        background var(--motion-fast) linear;
}

.testimonial-accordion.is-row .testimonial-panel.is-preview .testimonial-panel__number {
    transform: scale(1.06);
}

.testimonial-accordion.is-row .testimonial-panel__name {
    max-height: calc(var(--accordion-height, 440px) - 110px);

    overflow: hidden;

    color: var(--color-primary);

    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;

    writing-mode: vertical-rl;
    transform: rotate(180deg);

    transition: opacity var(--motion-fast) linear;
}

/* Painel ativo: só o número fica visível; o nome segue acessível. */
.testimonial-accordion.is-row .testimonial-panel.is-active .testimonial-panel__trigger {
    width: auto !important;
    height: auto;

    padding: 0;

    inset: 26px auto auto var(--accordion-pad-x);

    flex-direction: row;

    cursor: default;
}

.testimonial-accordion.is-row .testimonial-panel.is-active .testimonial-panel__number {
    background: var(--panel-tone, var(--color-sage));
}

.testimonial-accordion.is-row .testimonial-panel.is-active .testimonial-panel__name {
    width: 1px;
    height: 1px;

    position: absolute;

    overflow: hidden;

    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.testimonial-accordion.is-row .testimonial-panel__body {
    padding:
        var(--accordion-pad-top)
        var(--accordion-pad-x)
        var(--accordion-pad-bottom);

    position: absolute;
    inset: 0;
}

/*
 * Conteúdo com a largura final fixa: o painel apenas revela,
 * sem reflow do texto a cada frame da expansão.
 */
.testimonial-accordion.is-row .testimonial-panel__content {
    width:
        calc(
            var(--accordion-active-width, 640px)
            - (var(--accordion-pad-x) * 2)
        );
}

.testimonial-accordion.is-row .testimonial-mark {
    height: 44px;
}

/* ---------------- Modo vertical (mobile ou muitos itens) ---------------- */

.testimonial-accordion.is-stack {
    max-width: 900px;

    display: grid;
    gap: var(--accordion-gap);
}

.testimonial-accordion.is-stack .testimonial-panel {
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.86);

    box-shadow: 0 10px 26px rgba(45, 67, 57, 0.08);

    transition: box-shadow var(--motion-medium) var(--ease-premium);
}

.testimonial-accordion.is-stack .testimonial-panel.is-active {
    background: rgba(255, 255, 255, 0.94);

    box-shadow: var(--shadow-soft);
}

.testimonial-accordion.is-stack .testimonial-panel__trigger {
    width: 100% !important;
    min-height: 62px;

    padding: 14px 54px 14px 16px;

    position: relative;
}

.testimonial-accordion.is-stack .testimonial-panel__name {
    color: var(--color-text);

    font-size: 1rem;
}

.testimonial-accordion.is-stack .testimonial-panel.is-active .testimonial-panel__name {
    color: var(--color-primary);
}

/* Chevron discreto. */
.testimonial-accordion.is-stack .testimonial-panel__trigger::after {
    content: '';

    width: 9px;
    height: 9px;

    position: absolute;
    top: 50%;
    right: 22px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: translateY(-70%) rotate(45deg);

    transition: transform var(--motion-medium) var(--ease-premium);
}

.testimonial-accordion.is-stack .testimonial-panel.is-active .testimonial-panel__trigger::after {
    transform: translateY(-30%) rotate(-135deg);
}

/* Altura animada sem medir em JS: grid-template-rows 0fr → 1fr. */
.testimonial-accordion.is-stack .testimonial-panel__body {
    display: grid;
    grid-template-rows: 0fr;

    transition: grid-template-rows var(--motion-medium) var(--ease-premium);
}

.testimonial-accordion.is-stack .testimonial-panel.is-active .testimonial-panel__body {
    grid-template-rows: 1fr;
}

.testimonial-accordion.is-stack .testimonial-panel__content {
    min-height: 0;

    padding: 0 20px;

    overflow: hidden;
}

.testimonial-accordion.is-stack .texto-depoimento {
    padding-top: 2px;

    font-size: clamp(1rem, 4vw, 1.12rem);
    line-height: 1.75;
}

.testimonial-accordion.is-stack .testimonial-mark {
    height: 40px;

    font-size: 4rem;
}

.testimonial-accordion.is-stack .depoimento-autor {
    margin: 14px 0 20px;
}
/* Rodada 1A: somente o cenario continuo e o contraste dos textos expostos. */
body.home .section--school,
body.home .section--video-story,
body.home .section--age,
body.home .section--gallery,
body.home .section--testimonials,
body.home .section--partners,
body.home .site-footer,
body.home .site-video-background__shade,
body.home .hero-video__overlay,
body.home .hero-video__overlay::after {
    background: transparent !important;
}

body.home .hero-video__eyebrow,
body.home .hero-video__title,
body.home .hero-video__lead,
body.home .section-heading > h2,
body.home .section-heading > p,
body.home .section-heading > .description,
body.home .section-heading > .description p,
body.home .section-heading > .section-kicker,
body.home .video-story__copy > h2,
body.home .video-story__copy > p,
body.home .video-story__copy > .section-kicker,
body.home .site-footer h2,
body.home .site-footer__brand > p,
body.home .site-footer__brand > address,
body.home .site-footer__contact > p,
body.home .site-footer__social-note,
body.home .site-footer__social-links > a,
body.home .site-footer__bottom p,
body.home .site-footer__credit {
    color: var(--color-white) !important;
    text-shadow: 0 1px 2px rgba(22, 16, 16, 0.95), 0 2px 6px rgba(22, 16, 16, 0.65);
}


/* ==========================================================
   RODADA 1B — DEPOIMENTOS + PARCEIROS
   Somente proporção. Todos os seletores abaixo são escopados
   a .section--testimonials / .testimonial-accordion e
   .section--partners / .lista-parceiros.
   ========================================================== */

/* ---------------- Depoimentos: compactação vertical ---------------- */

/* Respiro da seção (era clamp(72px, 9vw, 120px) / 66px no mobile). */
.section.section--testimonials {
    padding-block: clamp(48px, 5.4vw, 72px);
}

/* Heading → componente (era clamp(36px, 6vw, 64px)). */
.section--testimonials .section-heading {
    margin-bottom: clamp(22px, 2.8vw, 36px);
}

.testimonial-accordion {
    --accordion-pad-top: 62px;
    --accordion-pad-bottom: 28px;
}

/* Mesma fonte; entrelinha menos aberta (era 1.85). */
.section--testimonials .texto-depoimento {
    line-height: 1.68;
}

/* A margem do último parágrafo somava-se à do autor. */
.section--testimonials .testimonial-copy > :last-child {
    margin-bottom: 0;
}

.section--testimonials .depoimento-autor {
    margin-top: 14px;
}

/* Horizontal: número e aspas um pouco mais próximos do topo. */
.testimonial-accordion.is-row .testimonial-panel.is-active .testimonial-panel__trigger {
    inset: 22px auto auto var(--accordion-pad-x);
}

.testimonial-accordion.is-row .testimonial-mark {
    height: 36px;
}

.testimonial-accordion.is-row .testimonial-panel__trigger {
    padding: 18px 0 20px;
}

/* Vertical (mobile / muitos itens). */
.testimonial-accordion.is-stack .testimonial-panel__trigger {
    min-height: 52px;
    padding-block: 10px;
}

.testimonial-accordion.is-stack .texto-depoimento {
    line-height: 1.65;
}

.testimonial-accordion.is-stack .testimonial-mark {
    height: 32px;
}

.testimonial-accordion.is-stack .depoimento-autor {
    margin: 10px 0 16px;
}

/*
 * Texto excepcionalmente longo: rolagem interna só no texto do
 * depoimento, com teto calculado pela altura da janela. Não
 * depende da altura do accordion (o JS mede o conteúdo já com
 * esse teto). Sem JS nada é limitado: todo o texto fica visível.
 * O JS marca .is-scrollable (tabindex/role) só quando transborda.
 */
.testimonial-accordion.is-enhanced .testimonial-copy {
    max-height: clamp(220px, 58vh, 460px);
    max-height: clamp(220px, 58svh, 460px);

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(66, 116, 87, 0.32) transparent;
}

.testimonial-accordion.is-row .testimonial-copy {
    max-height: clamp(190px, calc(100vh - 510px), 420px);
    max-height: clamp(190px, calc(100svh - 510px), 420px);
}

.testimonial-accordion .testimonial-copy.is-scrollable {
    padding-right: 12px;
    border-radius: 6px;
}

/* Indica que há mais texto; some ao chegar ao fim. */
.testimonial-accordion .testimonial-copy.is-scrollable:not(.is-scroll-end) {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
}

.testimonial-accordion .testimonial-copy.is-scrollable:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 4px;
}

.testimonial-accordion .testimonial-copy::-webkit-scrollbar {
    width: 6px;
}

.testimonial-accordion .testimonial-copy::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(66, 116, 87, 0.32);
}

.testimonial-accordion .testimonial-copy::-webkit-scrollbar-track {
    background: transparent;
}

/* ---------------- Parceiros: presença dos logos ---------------- */

/*
 * slick.css (versão do tema) fixa .slick-track em 600px:
 * a lista ficava com 600px de altura e os logos “perdidos”.
 */
.lista-parceiros .slick-track {
    height: auto;
}

/* style.css legado fixa height: 150px !important. */
.lista-parceiros .item-parceiro {
    height: clamp(104px, 10.5vw, 140px) !important;
    margin: 0 8px;
    padding: 12px;
}

.lista-parceiros .item-parceiro img {
    position: static;
    margin: 0;

    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(68px, 7.4vw, 100px);

    object-fit: contain;
}

/* Rodada 3A — composição do header e do mesmo menu WordPress, só na Home. */
body.home .site-header.menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

body.home .site-header.menu .site-header__inner {
    justify-content: flex-start;
    gap: 22px;
}

body.home .site-header__brand,
body.home .site-header__institutional,
body.home .site-header__toggle {
    pointer-events: auto;
}

body.home .site-header__institutional {
    max-width: 34em;
    margin: 0;
    color: var(--color-white);
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.45;
    text-wrap: balance;
    text-shadow: 0 1px 2px rgba(22, 16, 16, 0.95), 0 2px 5px rgba(22, 16, 16, 0.55);
}

body.home .site-header__logo--normal {
    opacity: 0;
}

body.home .site-header__logo--contrast {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(22, 16, 16, 0.85));
}

body.home .site-header__rubber-indicator {
    display: none;
}

body.home .site-header a:focus-visible,
body.home .site-header__toggle:focus-visible {
    outline: 2px solid var(--color-mustard);
    outline-offset: 3px;
}

@media (min-width: 901px) {
    body.home .site-header.menu .site-header__navigation {
        position: fixed;
        top: 50dvh;
        right: max(10px, env(safe-area-inset-right));
        bottom: auto;
        left: auto;
        width: min(280px, calc(100vw - 32px));
        max-height: calc(100dvh - 200px);
        padding: 4px;
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: translateY(-50%);
        pointer-events: none;
    }

    body.home .site-header.menu .site-header__navigation:hover,
    body.home .site-header.menu .site-header__navigation:focus-within {
        pointer-events: auto;
    }

    body.home .site-header.menu .site-header__menu {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        pointer-events: none;
    }

    body.home .site-header.menu .site-header__menu li {
        flex: 0 0 auto;
        width: 44px;
        pointer-events: none;
    }

    body.home .site-header.menu .site-header__menu li a {
        width: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 4px;
        color: var(--color-green-dark);
        transform: none;
        pointer-events: auto;
    }

    body.home .site-header.menu .site-header__menu li a::after {
        content: '';
        display: block !important;
        position: static;
        width: 8px;
        height: 8px;
        border: 2px solid var(--color-green-dark);
        border-radius: 50%;
        background: var(--color-cream);
        box-shadow: 0 0 0 1px var(--color-cream), 0 1px 3px rgba(22, 16, 16, 0.5);
        opacity: 1;
        transform: none;
        transition: transform 180ms ease, background 180ms ease;
    }

    body.home .site-header.menu .site-header__menu a.is-rubber-active::after,
    body.home .site-header.menu .site-header__menu:not(:has(a.is-rubber-active)) .current-menu-item > a::after,
    body.home .site-header.menu .site-header__menu:not(:has(a.is-rubber-active)) a[aria-current]:not([aria-current="false"])::after {
        background: var(--color-mustard);
        transform: scale(1.15);
    }

    body.home .site-header__label {
        position: absolute;
        right: 42px;
        width: max-content;
        max-width: 216px;
        padding: 7px 10px;
        border-radius: 4px;
        color: var(--color-green-dark);
        background: rgba(254, 251, 221, 0.97);
        box-shadow: 0 1px 4px rgba(22, 16, 16, 0.12);
        font-size: 0.82rem;
        line-height: 1.35;
        text-align: right;
        overflow-wrap: anywhere;
        opacity: 0;
        transform: translateX(4px);
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    body.home .site-header__menu a:hover .site-header__label,
    body.home .site-header__menu a:focus-visible .site-header__label {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 900px) {
    body.home .site-header.menu {
        --header-compress: 0px;
        height: auto;
    }

    body.home .site-header.menu .site-header__inner {
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 4px 12px;
        padding: 10px max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
    }

    body.home .site-header__institutional {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        font-size: 0.75rem;
    }

    body.home .site-header.menu .site-header__navigation ul {
        background: transparent;
    }

    body.home .site-header__toggle {
        grid-column: 2;
        grid-row: 1;
        background: rgba(254, 251, 221, 0.96) !important;
        border-color: rgba(66, 116, 87, 0.2) !important;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(22, 16, 16, 0.14);
    }

    body.home .site-header__toggle span {
        background: var(--color-green-dark);
    }

    body.home .site-header.menu .site-header__navigation {
        top: calc(100% + 8px);
        right: max(16px, env(safe-area-inset-right));
        left: auto;
        width: min(320px, calc(100vw - 32px));
        max-height: calc(100dvh - 140px - env(safe-area-inset-bottom));
        border-radius: 14px;
        background: var(--color-cream);
        border-color: rgba(66, 116, 87, 0.2);
        box-shadow: 0 4px 18px rgba(22, 16, 16, 0.14);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .site-header *,
    body.home .site-header *::after {
        animation: none !important;
        transition: none !important;
    }
}
