/* ==========================================
   CSS Variables & Design System (BW4FIT Experience)
   ========================================== */
:root {
    /* Requested Palette */
    --primary: #e64a19;       /* Vibrant Orange */
    --bg-dark-green: #0d2818; /* Dark Green */
    --black: #000000;
    --white: #ffffff;
    
    /* Adaptative background/text tokens */
    --bg-dark: #000000;
    --bg-card-dark: rgba(13, 40, 24, 0.6); /* Translucent green-black */
    --bg-card-light: #ffffff;
    --border-light: rgba(13, 40, 24, 0.1);
    --border-dark: rgba(255, 255, 255, 0.08);
    
    --text-primary-dark: #ffffff;
    --text-secondary-dark: #a3b899;
    --text-primary-light: #1c2e24;
    --text-secondary-light: #4b6b58;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   Resets & Defaults
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--text-primary-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-green);
    border-radius: 4px;
    border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================
   Alternating Blocks (Light vs Dark)
   ========================================== */
.block-light {
    background-color: var(--white);
    color: var(--text-primary-light);
}

.block-light .section-title {
    color: var(--bg-dark-green);
}

.block-light .section-desc,
.block-light .sobre-text {
    color: var(--text-secondary-light);
}

.block-light .maps-meta p,
.block-light .maps-meta h3 {
    color: var(--text-primary-light);
}

.block-dark {
    background-color: var(--bg-dark-green);
    color: var(--text-primary-dark);
}

.block-dark .section-title {
    color: var(--white);
}

.block-dark .section-desc {
    color: var(--text-secondary-dark);
}

/* ==========================================
   Typography & Common Elements
   ========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ff7043 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .gradient-text {
    text-shadow: none;
}

.highlight-orange {
    color: var(--primary);
}

/* Dynamic Cards for Dark/Light Sections */
.glass-card {
    background: var(--bg-card-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    color: var(--text-primary-dark);
}

.glass-card:hover {
    border-color: rgba(230, 74, 25, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(230, 74, 25, 0.25);
}

/* Light Card Overrides */
.light-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -5px rgba(13, 40, 24, 0.08);
    color: var(--text-primary-light);
}

.light-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 45px -10px rgba(230, 74, 25, 0.15);
}

.light-card h3, .light-card h4 {
    color: var(--bg-dark-green);
}

.light-card p, .light-card .info-item p {
    color: var(--text-secondary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 14px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 20px -2px rgba(230, 74, 25, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: #ff5722;
    box-shadow: 0 10px 25px 0px rgba(230, 74, 25, 0.6);
    transform: translateY(-3px);
}

.btn-primary:disabled {
    background: rgba(13, 40, 24, 0.15);
    color: var(--text-secondary-light);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.85;
}

.btn-secondary {
    background: transparent;
    border: none;
    color: #ffffff;
}

.btn-secondary:hover {
    color: var(--primary);
    transform: none;
}

.btn-outline {
    background: transparent;
    border: none;
    color: #ffffff;
}

.btn-outline:hover {
    color: var(--primary);
    transform: none;
}

/* Sections */
.section {
    padding: 110px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header.align-left {
    text-align: left;
    margin-left: 0;
    margin-bottom: 30px;
}

.section-tagline {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.15rem;
}

.maps-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: center;
    background: rgba(13, 40, 24, 0.04);
    border: 1px solid rgba(13, 40, 24, 0.08);
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.maps-meta h3 {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    margin-bottom: 16px;
    color: var(--bg-dark-green);
}

.maps-meta p {
    margin: 10px 0;
    line-height: 1.7;
    color: var(--text-secondary-light);
}

.maps-frame {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(13, 40, 24, 0.08);
}

.maps-frame iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .maps-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

/* ==========================================
   Header Style
   ========================================== */
/* ==========================================
   Topbar (Orange Press Bar — not fixed)
   ========================================== */
.topbar {
    position: relative;
    z-index: 1001;
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.topbar a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: opacity 0.2s;
}
.topbar a:hover {
    opacity: 0.82;
    text-decoration: underline;
}
.topbar i {
    font-size: 0.85rem;
}

/* ==========================================
   Header / Navigation
   ========================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    filter: hue-rotate(-8deg) saturate(1.15) brightness(0.95);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav-actions .btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-actions .btn:hover {
    color: var(--primary);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ==========================================
   Hero Section Style (Slideshow Highlighted)
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 130px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 40, 14, 0.75), rgba(0, 140, 80, 0.35), rgba(10, 30, 20, 0.8));
    background-size: 300% 300%;
    animation: heroGradient 12s ease infinite;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--hero-shadow-x, 50%) var(--hero-shadow-y, 50%), rgba(84, 255, 145, 0.22), transparent 24%);
    mix-blend-mode: screen;
    opacity: 0.8;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background: rgba(230, 74, 25, 0.2);
    border: 1.5px solid var(--primary);
    color: #ff8a65;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    animation: heroTitleGlow 2s ease-in-out infinite;
}

.hero-slogan {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 24px;
    min-height: 2.4rem;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 48px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Countdown Timer */
.countdown {
    display: flex;
    gap: 20px;
    margin-bottom: 56px;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    min-width: 100px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    margin-top: 6px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* ==========================================
   Sobre Section Style
   ========================================== */
.sobre-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.sobre-text {
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.sobre-text.highlight {
    color: var(--bg-dark-green);
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    font-weight: 600;
}

.sobre-info-box h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 4px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.address-sub {
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

/* ==========================================
   Colégio Vesper Section Style
   ========================================== */
.vesper-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.vesper-img-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid rgba(230, 74, 25, 0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.vesper-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.vesper-img:hover {
    transform: scale(1.03);
}

.vesper-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.vesper-text.highlight-border {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    color: var(--white);
    font-weight: 500;
}

.vesper-welcome {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 24px;
}

/* ==========================================
   Pilares Section Style
   ========================================== */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.pilar-card {
    position: relative;
    padding: 40px;
}

.pilar-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 28px;
}

.pilar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* ==========================================
   Programação Section Style
   ========================================== */
.programacao {
    background: linear-gradient(180deg, rgba(13, 40, 24, 0.95) 0%, rgba(7, 9, 14, 1) 100%);
}

.programacao .section-desc {
    max-width: 780px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.85);
}

.programacao .section-desc a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.programacao .section-desc a:hover {
    color: #ff8f65;
}

.programacao-subsecao {
    margin-bottom: 50px;
}
.programacao-subsecao:last-of-type {
    margin-bottom: 0;
}
.programacao-subsecao-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.programacao-subsecao-titulo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.programacao-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1400px;
}



/* Ensure card content has consistent padding */
.programacao-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.programacao-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.programacao-card:hover {
    transform: translateY(-8px) rotateY(-2deg);
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.33);
    border-color: rgba(230, 74, 25, 0.45);
}

.programacao-card.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.programacao-card.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.programacao-card-image {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0;
    text-align: center;
    overflow: hidden;
    border-radius: 16px;
}

.programacao-card-image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.programacao-card-institute {
    font-size: 0.8rem;
    margin: 0;
}

.icone-pulando {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.programacao-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(42, 255, 141, 0.16);
    color: #7cff9f;
    font-size: 1.2rem;
    border: 1px solid rgba(42, 255, 141, 0.28);
}

.programacao-card-image span {
    max-width: 100%;
}

.botao-gradiente {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px !important;
    background: linear-gradient(120deg, #3beb7a, #2fc4ff, #b8ff6f, #3beb7a);
    background-size: 240% 240%;
    color: #000000;
    box-shadow: 0 0 2px 2px rgba(59, 235, 122, 0.8), 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: botaoGradient 5s ease infinite;
}

.botao-gradiente::before {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 999px;
}

.botao-gradiente::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: inherit;
    border-radius: 999px;
}

.botao-gradiente:hover {
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
}

@keyframes botaoGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.programacao-card-content {
    padding: 26px 24px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.programacao-card-content h3 {
    font-size: 1.25rem;
    color: var(--white);
}

.programacao-card-time {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.programacao-card-content p {
    color: rgba(255, 255, 255, 0.67);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Programação Pedagógica
   ========================================== */
.programacao-pedagogica {
    background: linear-gradient(180deg, rgba(7, 9, 14, 1) 0%, rgba(13, 40, 24, 0.92) 50%, rgba(7, 9, 14, 1) 100%);
}

.programacao-pedagogica .section-desc {
    max-width: 780px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.85);
}

.pedagogica-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pedagogica-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}

.pedagogica-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(230, 74, 25, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.pedagogica-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border-color: rgba(230, 74, 25, 0.35);
    background: rgba(255, 255, 255, 0.09);
}

.pedagogica-card:hover::before {
    opacity: 1;
}

.pedagogica-card-titulo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
}

.pedagogica-card-detalhe {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pedagogica-card-detalhe i {
    font-size: 0.78rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

@media (max-width: 991px) {
    .programacao-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pedagogica-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 840px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 80px;
    }
}

@media (max-width: 680px) {
    .programacao-grid {
        grid-template-columns: 1fr;
    }
    .programacao-card-image {
        min-height: 160px;
        padding: 24px 14px;
    }
    .botao-gradiente {
        width: 100%;
    }
    .pedagogica-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes heroGradient {
    0% { background-position: 0% 30%; }
    50% { background-position: 100% 70%; }
    100% { background-position: 0% 30%; }
}

@keyframes heroTitleGlow {
    0%, 100% {
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(86, 255, 162, 0.15);
    }
    50% {
        text-shadow: 0 6px 22px rgba(0, 0, 0, 0.8), 0 0 38px rgba(86, 255, 162, 0.35);
    }
}

/* ==========================================
   Nossos Números Section Style
   ========================================== */
.numeros-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.edicoes-anos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.edicoes-anos span {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-dark);
    padding: 12px 24px;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    transition: var(--transition);
}

.edicoes-anos span:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(230, 74, 25, 0.05);
}

.numero-badge {
    text-transform: uppercase;
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.accent-card {
    border-color: rgba(230, 74, 25, 0.4);
    background: rgba(230, 74, 25, 0.04);
    text-align: center;
}

.numero-valor {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 20px 0 12px 0;
}

/* ==========================================
   Melhores Momentos (Galeria Grid)
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 0;
    border: 1px solid var(--border-light);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(13, 40, 24, 0.95), transparent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* ==========================================
   ONGs Section Style
   ========================================== */
.ongs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 24px;
}

.ong-card {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.ong-logo {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.95);
    transition: var(--transition);
}

.ong-card:hover .ong-logo {
    filter: grayscale(0) brightness(1.2);
    transform: scale(1.05);
}

.ong-card h4 {
    font-size: 1.05rem;
    color: var(--text-secondary-dark);
}

/* ==========================================
   Inscrição Section Style
   ========================================== */
.inscricao-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.inscricao-text {
    font-size: 1.15rem;
    color: var(--text-secondary-light);
    margin-bottom: 32px;
}

.alerta-solidario {
    display: flex;
    gap: 20px;
    border-color: rgba(230, 74, 25, 0.25);
    background: rgba(230, 74, 25, 0.02);
}

.alerta-icon {
    font-size: 2rem;
    color: var(--primary);
}

.alerta-solidario h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.inscricao-widget-container {
    padding: 40px;
    border-color: var(--border-light);
}

.inscricao-widget-container h3 {
    font-size: 1.65rem;
    margin-bottom: 6px;
    text-align: center;
}

.widget-sub {
    color: var(--text-secondary-light);
    text-align: center;
    margin-bottom: 24px;
}

.even3-widget-box {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    min-height: 280px;
    border: 1px solid var(--border-light);
}

/* ==========================================
   Na Mídia Section Style (Larger Grid & Logos)
   ========================================== */
.midia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.midia-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 36px;
}

.midia-logo {
    height: 52px;              /* Enlarged logo sizing */
    max-width: 200px;           /* Enlarged logo sizing */
    object-fit: contain;
    align-self: flex-start;
    margin-bottom: 24px;
    filter: grayscale(1) brightness(0.95);
    transition: var(--transition);
}

.midia-card:hover .midia-logo {
    filter: grayscale(0) brightness(1.2);
}

.midia-card p {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 1.15rem;        /* Enlarged font sizing for better legibility */
    line-height: 1.4;
}

.midia-link-text {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   Parcerias & Logos Section (Realização/Patrocínio/Apoio/Mídia)
   ========================================== */
.parcerias-secao {
    padding: 90px 0;
    background-color: var(--white);
    color: var(--bg-dark-green);
    border-top: 1px solid var(--border-light);
}

.parceria-bloco {
    margin-bottom: 50px;
}

.parceria-bloco:last-child {
    margin-bottom: 0;
}

.parceria-bloco h3 {
    font-family: var(--font-heading);
    color: var(--text-secondary-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 36px;
}

/* Hierarchical sizes for logos */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid rgba(13, 40, 24, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(13, 40, 24, 0.03);
    transition: var(--transition);
    min-width: 100px;
    min-height: 100px;
}

.logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13, 40, 24, 0.08);
    border-color: var(--primary);
}

.logo-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

/* 1. Realização */
.realiza-grid .logo-item {
    width: 130px;
    height: 130px;
    padding: 16px;
}

/* 2. Patrocinadores */
.patroc-grid .logo-item {
    width: 115px;
    height: 115px;
    padding: 12px;
}

/* 3. Apoio */
.apoio-grid .logo-item {
    width: 100px;
    height: 100px;
    padding: 10px;
}

/* 4. Apoio de Mídia */
.midia-apoio-grid .logo-item {
    width: 100px;
    height: 100px;
    padding: 8px;
}

.placeholder-logo {
    color: var(--text-secondary-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-style: dashed;
    border-color: rgba(13, 40, 24, 0.2);
    width: 200px !important;
}

.parceria-divider {
    border: 0;
    height: 1px;
    background: rgba(13, 40, 24, 0.08);
    margin: 40px 0;
}

/* ==========================================
   Footer Section Style
   ========================================== */
.footer {
    border-top: 1px solid var(--border-dark);
    padding: 60px 0 40px 0;
    background: var(--black);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
    filter: hue-rotate(-8deg) saturate(1.15) brightness(0.95);
}

.footer-left p {
    color: var(--text-secondary-dark);
    max-width: 350px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary-dark);
    text-align: right;
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.faq-card {
    padding: 28px;
}

.faq-card h3 {
    margin-bottom: 12px;
    color: var(--bg-dark-green);
}

.faq-card p {
    color: var(--text-secondary-light);
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 991px) {
    .section {
        padding: 85px 0;
    }
    
    .sobre-layout, .vesper-layout, .inscricao-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sobre-info-box {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }
    
    .vesper-img-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .numeros-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .realiza-grid .logo-item {
        width: 130px;
        height: 130px;
        padding: 12px;
    }
    .patroc-grid .logo-item {
        width: 115px;
        height: 115px;
        padding: 10px;
    }
    .apoio-grid .logo-item {
        width: 100px;
        height: 100px;
        padding: 8px;
    }
    .midia-apoio-grid .logo-item {
        width: 100px;
        height: 100px;
        padding: 6px;
    }
}

/* --- Mobile Navigation (tablet + mobile) --- */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 8px;
        transition: background 0.25s ease;
        z-index: 1001;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.1);
        outline: none;
    }

    .menu-toggle.active i::before {
        content: "\f00d"; /* fa-xmark */
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(7, 9, 14, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 100px 24px 40px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav .nav-link {
        display: block;
        width: 100%;
        max-width: 320px;
        text-align: center;
        font-size: 1.15rem;
        font-weight: 600;
        padding: 16px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: #ffffff;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .nav .nav-link:hover,
    .nav .nav-link:focus {
        color: var(--primary);
        background: rgba(255, 255, 255, 0.04);
    }

    .nav #theme-toggle {
        margin-top: 20px;
    }
}

/* --- Smaller mobile refinements --- */
@media (max-width: 768px) {
    .countdown {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 12px;
    }
    
    .countdown-value {
        font-size: 2.2rem;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .copyright {
        text-align: center;
    }
}

/* ==========================================
   Micro-animations
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

.animate-slide-up-delay {
    opacity: 0;
    animation: slideUp 1s ease-out 0.3s forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

/* ==========================================
   ZiYou Highlight Section — Responsivo
   ========================================== */

/* Fade-in suave e único (sem looping) */
@keyframes ziyouFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ziyou-fade-in {
    opacity: 0;
    animation: ziyouFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* ── DESKTOP: layout com background-image e card flutuante ── */
.ziyou-highlight {
    position: relative;
    width: 100%;
    background-color: #0a0a0a;
    background-image: url('programacao/ziyou-bw4fit.webp');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0;
}

/* Vignette lateral — escurece apenas a borda direita, foto fica limpa à esquerda */
.ziyou-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(0,0,0,0.0)  0%,
            rgba(0,0,0,0.35) 50%,
            rgba(0,0,0,0.72) 100%
        );
    z-index: 1;
    pointer-events: none;
}

/* Bloco de imagem: oculto no desktop (a foto é feita via background-image) */
.ziyou-img-block {
    display: none;
}
.ziyou-img-mobile {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Bloco de conteúdo: card colado à borda direita no desktop */
.ziyou-content-block {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;        /* Aumentado para não limitar o deslocamento à direita */
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 80px 5% 80px 24px; /* Padding-right seguro e padding-left para evitar colisão na borda */
}

/* Card glassmorphism — mais translúcido, integrado à foto */
.ziyou-glass-card {
    background: rgba(15, 15, 15, 0.35);   /* Opacidade reduzida conforme solicitado */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-right: 4px solid var(--primary);
    border-radius: 16px;
    padding: 44px 38px;
    max-width: 440px;
    width: 100%;
    text-align: left;
    box-shadow:
        -6px 10px 40px rgba(0, 0, 0, 0.3),
        4px 0 20px rgba(230, 74, 25, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ziyou-glass-card:hover {
    transform: translateY(-6px);
    box-shadow:
        -8px 18px 50px rgba(0, 0, 0, 0.5),
        4px 0 28px rgba(230, 74, 25, 0.3);
}

/* Tag eyebrow */
.ziyou-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Título */
.ziyou-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

/* Parágrafo */
.ziyou-desc {
    color: #d8e0ea;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Rodapé com horário */
.ziyou-time-wrapper {
    display: flex;
    justify-content: flex-start;
}
.ziyou-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(230, 74, 25, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(230, 74, 25, 0.4);
}
.ziyou-time i {
    color: var(--primary);
}

/* ── TABLET (769px – 1024px): ainda usa background-image, card mais compacto ── */
@media (max-width: 1024px) and (min-width: 769px) {
    .ziyou-highlight {
        min-height: 70vh;
    }
    .ziyou-content-block {
        padding: 60px 24px;
    }
    .ziyou-glass-card {
        max-width: 400px;
        padding: 36px 28px;
    }
    .ziyou-title {
        font-size: 1.65rem;
    }
}

/* ── MOBILE (≤ 768px): empilha foto acima + card abaixo, SEM sobreposição ── */
@media (max-width: 768px) {

    /* Desativa o layout desktop: remove background-image e flex */
    .ziyou-highlight {
        background-image: none !important;
        background-color: #0a0a0a;
        min-height: unset;
        flex-direction: column;
        align-items: stretch;
        max-width: 100vw;
        overflow: hidden;
    }

    /* Remove o pseudo-elemento de vignette (não faz sentido sem a bg-image) */
    .ziyou-highlight::before {
        display: none;
    }

    /* Mostra a imagem real no topo */
    .ziyou-img-block {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;   /* proporção natural, sem corte nem espaço vazio */
        overflow: hidden;
        flex-shrink: 0;
    }

    /* Card de texto: bloco simples abaixo da foto, integrado ao fundo escuro */
    .ziyou-content-block {
        position: static;
        z-index: auto;
        max-width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        background-color: #0a0a0a;
    }

    .ziyou-glass-card {
        /* No mobile vira um bloco sólido integrado ao fundo — sem glass pesado */
        background: #111111;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-top: 3px solid var(--primary);
        border-right: none;
        border-radius: 0;
        padding: 32px 20px 40px;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        transform: none !important; /* desativa hover no mobile */
    }

    .ziyou-glass-card:hover {
        transform: none;
        box-shadow: none;
    }

    .ziyou-title {
        font-size: 1.5rem;
    }

    .ziyou-tag {
        font-size: 0.72rem;
    }

    .ziyou-desc {
        font-size: 0.97rem;
    }
}

/* ── MOBILE pequeno (≤ 480px) ── */
@media (max-width: 480px) {
    .ziyou-img-block {
        aspect-ratio: 3 / 2;
    }
    .ziyou-title {
        font-size: 1.35rem;
    }
}
