/* 
   APS Visionary Hero Styles
   Based on Institutional Design System 1.0
*/

:root {
    --primary-green: #2C7F39;
    --secondary-green: #3EA849;
    --accent-emerald: #34D399;
    --midnight: #1C1C1C;
    --bone: #EAEAE5;
    --warm-white: #F9F4E8;
    --mint-bg: #E9F5EB; /* Verde Institucional Clarinho */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --grid-color: rgba(255, 255, 255, 0.08);

    /* Global Cohesion Tokens */
    --panel-radius: 2.5rem;
    --card-radius: 2rem;
    --shared-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    --glass-blur: blur(20px);
}

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

html,
body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout & Containers --- */

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

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

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Balanced for legibility */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* --- Architectural Grid --- */

.grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.grid-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--grid-color);
}

.grid-line-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grid-color);
}

/* --- Beams --- */

@keyframes beam-h {
    0% {
        left: -200px;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes beam-v {
    0% {
        top: -200px;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.beam-h {
    position: absolute;
    height: 1px;
    width: 200px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: beam-h 10s infinite;
}

.beam-v {
    position: absolute;
    width: 1px;
    height: 200px;
    background: linear-gradient(180deg, transparent, #fff, transparent);
    animation: beam-v 12s infinite;
}

/* --- Content Layers --- */

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--panel-radius);
    max-width: 800px;
    box-shadow: var(--shared-shadow);
    margin-top: 5vh;
    /* Afasta levemente do topo */
}

/* --- Section Dividers & Unity --- */

.hero-bottom-mask {
    position: absolute;
    bottom: -1px;
    /* Avoid 1px gap */
    left: 0;
    width: 100%;
    height: 15vh;
    z-index: 5;
    /* Atrás do porco */
    pointer-events: none;
}

.hero-bottom-mask svg {
    width: 100%;
    height: 100%;
}

.section-divider-blur.divider-top {
    bottom: auto;
    top: -100px;
    background: linear-gradient(to top, transparent, var(--midnight) 50%, #ffffff 100%);
}

.global-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.global-grid .grid-line-v,
.global-grid .grid-line-h {
    position: absolute;
    background: var(--grid-color);
    opacity: 0.3;
}

.global-grid .grid-line-v {
    width: 1px;
    top: 0;
    bottom: 0;
}

.global-grid .grid-line-h {
    height: 1px;
    left: 0;
    right: 0;
}

.global-grid.light-grid .grid-line-v,
.global-grid.light-grid .grid-line-h {
    background: rgba(44, 127, 57, 0.08);
    /* Suave verde institucional */
}

/* --- Typography --- */

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-emerald);
}

p.subheading {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* --- Buttons --- */

.btn-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.primary-btn {
    background: var(--primary-green);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(44, 127, 57, 0.3);
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--secondary-green);
    box-shadow: 0 15px 30px rgba(44, 127, 57, 0.5);
}

.secondary-btn {
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* --- Reveal Animations --- */

.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-150px) rotate(-10deg);
}

.reveal-right {
    transform: translateX(150px) rotate(10deg);
}

.reveal-thrown {
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-unfold.active,
.role-stats.active {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.reveal-unfold {
    transform: perspective(2000px) rotateX(-35deg) translateY(150px);
    opacity: 0;
    transition: all 3.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: top;
    will-change: transform, opacity;
}

.text-mask {
    overflow: hidden;
    display: block;
}

.text-mask span {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-mask-left span {
    font-weight: 700;
    transform: translateX(-110%);
}

.text-mask-right span {
    transform: translateX(110%);
}

.active .text-mask span,
.active .text-mask-left span,
.active .text-mask-right span {
    transform: translate(0, 0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-800 {
    transition-delay: 0.8s;
}

.delay-1200 {
    transition-delay: 1.2s;
}

.delay-1600 {
    transition-delay: 1.6s;
}

.delay-600 {
    transition-delay: 0.6s;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
}

@media screen and (min-width: 769px) {
    header.scrolled {
        top: 0;
        left: 0;
        width: 100%;
        padding: 0.8rem 8%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        transform: none;
    }

    header.scrolled .nav-links a {
        color: var(--primary-green);
    }

    header.scrolled .nav-links a::after {
        background: var(--primary-green);
    }

    header.scrolled .nav-links a:hover {
        color: var(--secondary-green);
    }

    header.scrolled .logo-img {
        height: 48px;
        filter: none;
        /* Remove o brilho esmeralda no fundo branco */
    }
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 64px;
    /* Aumentado para destaque */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.2));
    /* Brilho sutil esmeralda */
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.5)) brightness(1.1);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-emerald);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Mobile Menu Trigger & Overlay --- */

.mobile-menu-trigger {
    display: none;
    position: fixed;
    top: 2rem;
    right: 5%;
    z-index: 10001;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-trigger.dark {
    background: rgba(44, 127, 57, 0.8);
    /* Esmeralda mais sólido para o "Glass" aparecer no branco */
    border-color: var(--primary-green);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 20px rgba(44, 127, 57, 0.2);
}

.mobile-menu-trigger.dark .hamburger span {
    background-color: #ffffff;
    /* Tiras brancas conforme solicitado */
}

@media screen and (max-width: 768px) {
    .mobile-menu-trigger {
        display: flex;
    }
}

.hamburger {
    width: 26px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.hamburger span:nth-child(2) {
    width: 100%;
}

.mobile-menu-trigger.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: 0 10px 25px rgba(44, 127, 57, 0.3);
}

.mobile-menu-trigger.active .hamburger span {
    background-color: #ffffff;
    /* Tiras brancas dentro do menu (X de fechar) */
}

.mobile-menu-trigger.active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    width: 100%;
}

.mobile-menu-trigger.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu-trigger.active .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 100%;
}

/* Menu Overlay - "Architecture Bone" Grid Style Refinement */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bone);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 0 0 0;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
    height: 100dvh;
}

.mobile-menu-overlay.open {
    transform: translateY(0);
}

/* Institutional Grid Pattern */
.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(44, 127, 57, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 127, 57, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.mobile-menu-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 8%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-overlay.open .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

.link-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 0.2em;
    min-width: 45px;
    opacity: 0.6;
}

.link-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--midnight);
    letter-spacing: -0.02em;
    flex-grow: 1;
    transition: transform 0.4s ease;
}

.mobile-nav-links a iconify-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.6);
}

.mobile-nav-links a:hover .link-text {
    transform: translateX(10px);
}

.mobile-nav-links a:hover iconify-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delays for Links */
.mobile-nav-links a:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-nav-links a:nth-child(2) {
    transition-delay: 0.3s;
}

.mobile-nav-links a:nth-child(3) {
    transition-delay: 0.4s;
}

.mobile-nav-links a:nth-child(4) {
    transition-delay: 0.5s;
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 2rem 8% calc(4.5rem + env(safe-area-inset-bottom, 2rem));
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.02);
}

.footer-tagline {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 1.2rem;
}

.mobile-menu-footer .primary-btn {
    width: 100% !important;
    text-align: center;
    margin-bottom: 2.5rem;
}

.mobile-socials {
    display: flex;
    gap: 3.5rem;
    font-size: 1.8rem;
    color: var(--midnight);
    opacity: 0.3;
}

/* --- Media Queries --- */

/* Tablet Portrait & Landscape (up to 1024px) */
@media screen and (max-width: 1024px) {
    .hero-content {
        padding: 0 5%;
    }

    .glass-panel {
        padding: 2.5rem;
        max-width: 90%;
    }

    h1 {
        font-size: 4.5rem;
    }
}

/* Mobile Devices (up to 768px) */
@media screen and (max-width: 768px) {
    header {
        position: absolute !important;
        /* Logo agora rola com a página */
        top: 0 !important;
        padding: 2.5rem 5% !important;
        z-index: 100 !important;
        background: transparent !important;
    }

    header .nav-links,
    header .primary-btn {
        display: none !important;
    }

    .mobile-menu-trigger {
        display: flex;
    }

    .logo-img {
        height: 52px;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transform: none !important;
        /* Prevenindo que animações ocultem o logo */
    }

    .hero-content {
        padding: 0 5%;
        justify-content: flex-end;
        padding-bottom: 20%;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
        width: 100%;
        max-width: none;
        backdrop-filter: blur(15px);
    }

    h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    p.subheading {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-container {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    /* Reduce complexity of grid for mobile performance */
    .grid-line-v:nth-child(even),
    .grid-line-h {
        display: none;
    }

    .grid-line-v {
        opacity: 0.1;
    }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .mobile-menu-trigger {
        top: 1.5rem;
        right: 5%;
        width: 48px;
        height: 48px;
    }

    .mobile-nav-links a {
        font-size: 2.8rem;
    }
}

/* --- Impact & Representatividade Section (Revitalized) --- */

.impact-section {
    position: relative;
    padding: 10rem 0;
    background: #fff;
    overflow: hidden;
    min-height: 100vh;
}

/* Diagonal Branding Split */
.impact-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('apsonline.com.br/assets/diagonal_bg.png') center/cover no-repeat;
    clip-path: polygon(100% 1%, 100% 100%, 0 100%);
    /* Lifted up the start point to 10% */
    z-index: 1;
    opacity: 0.8;
    /* Removed the "whitish" filter, making it vibrant */
    pointer-events: none;
}

/* Internal Architecture Grid */
.impact-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
}

.impact-grid-lines .grid-line-v {
    background: rgba(0, 0, 0, 0.05);
}

.impact-grid-lines .grid-line-h {
    background: rgba(0, 0, 0, 0.05);
}

.impact-header {
    margin-bottom: 6rem;
    max-width: 900px;
    padding: 2rem 4rem;
    /* Increased padding as requested */
    border-left: 4px solid var(--accent-emerald);
    /* Added authoritative vertical line */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem 2rem 2rem 0.5rem;
}

.impact-header h2 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.impact-header p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    /* Justified text as requested */
}

.impact-header h2 .highlight {
    color: #059669;
    /* Slightly deeper emerald for better contrast on white */
    display: block;
}

/* --- Institutional Impact Mosaic (Visionary Corporate) --- */

.impact-mosaic-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.mosaic-item {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white */
    backdrop-filter: blur(20px);
    /* Premium glassmorphism */
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Glass border */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.mosaic-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-emerald);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    background: #fff;
    /* Solid white on hover for clarity */
}

.mosaic-main {
    grid-column: span 7;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.mosaic-main .bg-img {
    position: absolute;
    inset: 0;
    background-image: url('apsonline.com.br/assets/BANNER4315_eb111a6ed472.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease;
}

.mosaic-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #fff;
}

.mosaic-stat-box {
    grid-column: span 5;
    grid-row: span 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mosaic-stat-box.emerald {
    background-color: var(--accent-emerald);
    color: #fff;
}

.mosaic-mini {
    grid-column: span 5;
    grid-row: span 1;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mosaic-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
    font-size: 32px;
}

.mosaic-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #111;
    background: linear-gradient(135deg, #111 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mosaic-stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: #059669;
    /* Vibrant but legible emerald */
}

.mosaic-text-block {
    grid-column: span 12;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: none;
}

.mosaic-text-content {
    max-width: 60%;
}

.mosaic-text-content h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.mosaic-text-content p {
    font-size: 1.15rem;
    color: #374151;
    /* Darker grey for better readability */
    line-height: 1.6;
}

/* Stat Elements */
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: #999;
}

.pill-tag {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(44, 127, 57, 0.05);
    border: 1px solid rgba(44, 127, 57, 0.1);
    border-radius: 50px;
    color: var(--primary-green);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.mission-text {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 400;
    color: #fff;
}

.bento-icon {
    width: 64px;
    height: 64px;
    border-radius: 1.2rem;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 28px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Animations Reveal */
.impact-section .reveal {
    transition-delay: calc(var(--delay) * 1ms);
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 5;
    transform: rotate(3deg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media screen and (max-width: 1024px) {

    .bento-main,
    .bento-stat,
    .bento-stat-2,
    .bento-mini {
        grid-column: span 12;
    }

    .bento-grid {
        grid-auto-rows: auto;
        min-height: 300px;
    }
}

/* --- Role Section (O Papel da APS) - Premium Refactor --- */

.role-section {
    padding: 12rem 8% 8rem;
    background-color: var(--warm-white);
    position: relative;
    overflow: visible;
    color: var(--midnight);
    z-index: 30;
    /* Elevado para sobrepor a seção seguinte */
}

/* Textura de Papel Premium (Noise Overlay) */
.role-section::before,
.events-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    /* Ruído sutil */
    pointer-events: none;
    z-index: 1;
}

/* Grid Arquitetônico (Abaixo da textura) */
.role-section-grid-layer {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* O "Terço Direito" Verde com Fusão Sofisticada */
.role-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: 0;
    width: 45%;
    height: 120%;
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--secondary-green) 100%);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.05);
    z-index: 1;
    transform-origin: right;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
    /* Cria a curva orgânica */
    opacity: 0.9;
}

.role-section.active::after {
    transform: scaleX(1);
}

.role-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    /* Garante que os cards fiquem na frente do porco */
}

.role-header {
    max-width: 720px;
    margin-bottom: 6rem;
}

.micro-headline {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.micro-headline::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-emerald);
}

.role-header .tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(44, 127, 57, 0.08);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.role-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 2rem;
}

.role-header h2 .highlight-dark {
    color: var(--primary-green);
}

.role-header p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(28, 28, 28, 0.8);
    font-weight: 450;
    text-align: justify;
    hyphens: auto;
}

/* Role Cards Grid & Deck Refactor */
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

@media screen and (min-width: 1025px) {
    .role-grid {
        display: block;
        height: 700px;
        width: 500px;
        position: absolute;
        top: 0;
        right: -5%;
        /* Move slightly out of container to hit the pig */
        z-index: 110;
    }

    .role-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 900px;
    }

    .role-header {
        max-width: 55%;
        /* Reduced to make room for the deck */
        margin-bottom: 0;
        padding-right: 2rem;
    }

    .role-stats {
        margin-top: 4rem;
        max-width: 50%;
    }

    /* Deck Layout refinement */
    .role-grid {
        display: block;
        height: 850px;
        width: 520px;
        position: absolute;
        top: 1vw;
        /* Posição para alinhar com o porco */
        right: -8%;
        z-index: 110;
        perspective: 1500px;
    }

    /* Individually Positioned Deck Cards */
    .role-grid .role-card:nth-child(1) {
        position: absolute;
        top: 150px;
        /* Card central que cobre a perna */
        right: 0;
        transform: rotate(3deg) translateY(0);
        z-index: 3;
        /* Sempre no topo */
    }

    .role-grid .role-card:nth-child(2) {
        position: absolute;
        top: 0;
        right: 40px;
        transform: rotate(-6deg) translateY(0);
        z-index: 1;
    }

    .role-grid .role-card:nth-child(3) {
        position: absolute;
        top: 300px;
        right: 60px;
        transform: rotate(-2deg) translateY(0);
        z-index: 2;
    }

    .role-grid .role-card {
        width: 440px;
        height: 560px;
        min-height: auto;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }
}

.role-card {
    background: #ffffff;
    padding: 4rem 3rem;
    border-radius: var(--card-radius);
    border: 1px solid rgba(44, 127, 57, 0.12);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
    /* Aumentado verticalmente conforme solicitado */
    box-shadow: var(--shared-shadow);
}

.role-card.featured {
    border-color: var(--accent-emerald);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 30px 60px -20px rgba(44, 127, 57, 0.15);
    transform: translateY(-20px);
}

.role-card.featured::before {

    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    padding: 0.4rem 0.8rem;
    background: var(--primary-green);
    color: #fff;
    border-radius: 5px;
}

.role-card:hover {
    transform: translateY(-25px);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-emerald);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    font-size: 2.8rem;
    color: var(--primary-green);
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(44, 127, 57, 0.05);
}

.role-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--midnight);
}

.role-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(28, 28, 28, 0.6);
}

.role-card.has-bg {
    border: none !important;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Mudado para o topo */
    gap: 1.5rem;
    padding: 2.5rem !important;
    /* Mais compacto para o painel respirar */

    /* Efeito de Flutuação 3D */
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.3),
        0 40px 80px -20px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px) perspective(1000px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-card.has-bg:hover {
    transform: translateY(-35px) scale(1.05) rotate(0deg) !important;
    z-index: 200 !important;
    box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 0.4);
}


/* Background Zoom & Color Effect Wrapper */
.role-card.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: grayscale(0%) brightness(0.9);
    /* Sempre colorido */
    transition:
        transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s ease;
    z-index: 0;
}

.role-card.has-bg:hover::before {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
    /* Apenas ajuste de brilho no hover */
}

.role-card.has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.95) 100%);
    border-radius: inherit;
    z-index: 1;
    transition: opacity 0.8s ease;
}

.role-card.has-bg:hover::after {
    opacity: 0;
    /* Remove o degrade no hover */
}

.role-card.has-bg>* {
    position: relative;
    z-index: 2;
}

.role-card.has-bg .card-prefix {
    color: var(--accent-emerald);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.9;
}

.role-card.has-bg .card-icon {
    width: 60px;
    /* Reduzido levemente para caber no novo layout */
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.2rem;
    color: #ffffff;
    margin-bottom: 0;
    /* Removido margin bottom */
    font-size: 1.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Panel for Text */
.card-text-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    /* Detalhe de luz */
}

.role-card.has-bg h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff !important;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.role-card.has-bg p {
    font-family: 'Geist', sans-serif;
    color: rgba(255, 255, 255, 0.98) !important;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    opacity: 1;
}

/* Card Decoration - Institutional Mosaic */
.card-decoration {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 1;
    pointer-events: none;
}

.card-decoration iconify-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.card-decoration .dec-1 {
    transform: translateY(20px) rotate(-10deg);
}

.card-decoration .dec-2 {
    transform: translateY(60px) rotate(15deg);
}

.role-card.has-bg:hover .card-decoration iconify-icon {
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translate(0, 0) rotate(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Institucional Stats (Prova Social) - Premium Refactor */
.role-stats {
    display: flex;
    gap: 6rem;
    margin-top: 6rem;
    padding-top: 5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Elemento decorativo para autoridade */
.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5rem;
    width: 30px;
    height: 4px;
    background: var(--accent-emerald);
    border-radius: 2px;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;

    /* Efeito de Espelhamento (Shine) */
    background: linear-gradient(120deg,
            var(--primary-green) 0%,
            var(--primary-green) 40%,
            #ffffff 50%,
            var(--primary-green) 60%,
            var(--primary-green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-gold 4s linear infinite;

    margin-bottom: 0.8rem;
    filter: drop-shadow(0 10px 20px rgba(44, 127, 57, 0.15));
}

@keyframes shine-gold {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #888;
    max-width: 150px;
    line-height: 1.4;
}

/* --- Cinematic Mobile Adaptation --- */

@media screen and (max-width: 1024px) {
    .role-section {
        padding: 6rem 5%;
    }

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

    .role-section::after {
        width: 35%;
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .pig-decoration {
        width: 55%;
        right: -5%;
    }
}

@media screen and (max-width: 768px) {
    .hero-bottom-mask {
        height: 10vh;
        z-index: 20;
    }

    .role-section {
        padding: 8rem 6% 6rem;
        background-color: var(--warm-white);
        overflow: hidden;
    }

    /* Subtle mobile curve decoration */
    .role-section::after {
        width: 150%;
        height: 400px;
        top: auto;
        bottom: -100px;
        left: -25%;
        border-radius: 50% 50% 0 0;
        clip-path: none;
        opacity: 0.15;
        z-index: 1;
        transform: rotate(-5deg) !important;
    }

    .role-header {
        max-width: 100%;
        margin-bottom: 4rem;
        text-align: left;
        position: relative;
        z-index: 10;
    }

    .micro-headline {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        margin-bottom: 1.5rem;
    }

    .role-header h2 {
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 1.5rem;
    }

    .role-header p {
        font-size: 1.15rem;
        line-height: 1.5;
        color: rgba(28, 28, 28, 0.7);
        text-align: left;
    }

    .role-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 6rem;
        position: relative;
        z-index: 10;
    }

    .role-card.featured.has-bg,
    .role-card {
        min-height: 450px !important;
        height: 450px !important;
        padding: 2rem !important;
        border-radius: 2rem !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    }

    .card-text-panel {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    .role-card h3 {
        font-size: 1.5rem !important;
    }

    .role-card p {
        font-size: 1rem !important;
    }

    .role-stats {
        flex-direction: column;
        gap: 4rem;
        padding-top: 5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        align-items: center;
        text-align: center;
    }

    .stat-item::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .stat-value {
        font-size: 4.5rem;
    }

    .pig-decoration {
        display: none !important;
    }

    .reveal-left,
    .reveal-right,
    .reveal-thrown,
    .reveal-unfold {
        transform: translateY(30px) !important;
        opacity: 0;
    }
}

.pig-decoration {
    position: absolute;
    right: -5%;
    top: -10vw;
    width: 45%;
    opacity: 0.9;
    z-index: 15;
    /* Na frente da curva, atrás dos cards */
    pointer-events: none;
    filter: drop-shadow(-20px 20px 50px rgba(0, 0, 0, 0.2)) contrast(1.1);
    transition: all 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pig-decoration.reveal-right {
    transform: translateX(300px) rotate(15deg);
    opacity: 0;
}

.pig-decoration.reveal-right.active {
    transform: translateX(0) rotate(0);
    opacity: 1;
}

/* --- Events Section (Premium Story Split) --- */

.events-section {
    background: var(--warm-white);
    color: var(--midnight);
    padding: 0;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Mantido abaixo da seção anterior */
}

.events-container {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 80vh;
}

/* Visual Side (60%) */
.events-visual {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.events-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    /* Aumentada levemente a opacidade */
    filter: sepia(100%) hue-rotate(95deg) saturate(1.8) brightness(0.65);
    /* Verde mais escuro e sóbrio */
}

.event-cards-container {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Alinhado à borda direita do lado visual */
    padding-right: 3rem;
    /* Pequeno espaçamento da linha divisória */
}

.event-card-img {
    position: absolute;
    width: 460px; /* Aumentado */
    height: 640px; /* Aumentado */
    background: #fff;
    padding: 0.7rem; /* Moldura mais fina */
    box-shadow: 
        -20px 40px 80px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50px) scale(0.9) rotateY(-5deg);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem; /* Mais reto para ar institucional */
    z-index: 5;
    perspective: 1000px;
}

/* Cantoneiras Esmeralda (The Tech/Premium detail) */
.event-card-img::before,
.event-card-img::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-emerald);
    z-index: 10;
    pointer-events: none;
    transition: all 0.6s ease;
}

.event-card-img::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.event-card-img::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.event-card-img:hover::before,
.event-card-img:hover::after {
    width: 60px;
    height: 60px;
}

.event-card-img.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem; /* Borda interna mais suave */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(249, 244, 232, 0) 0%, var(--warm-white) 100%);
    z-index: 2;
}

/* Content Side (40%) */
.events-content {
    flex: 0 0 40%;
    padding: 4rem 5rem 6rem;
    /* Ajustado para acomodar o header */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinhado ao topo */
    position: relative;
    z-index: 3;
    background: var(--warm-white);
}

.section-header-top.floating {
    position: absolute;
    top: 6rem;
    left: 6rem;
    z-index: 10;
    margin-bottom: 0;
}

.events-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5.5rem;
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 300;
    color: #ffffff;
    /* Branco para o vídeo */
    margin: 0;
    text-align: left;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.events-title span {
    display: block;
    font-weight: 800;
    color: var(--accent-emerald);
    /* Esmeralda vibrante */
    margin-left: -2px;
}

.title-accent {
    width: 60px;
    height: 6px;
    background: var(--accent-emerald);
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slides-info-wrapper {
    position: relative;
    min-height: 400px;
    margin-top: 2rem;
}

.slide-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-info.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slide-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    color: var(--midnight);
}

.slide-info p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 3rem;
    max-width: 90%;
}

.institutional-context {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3.5rem;
    background: rgba(44, 127, 57, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(44, 127, 57, 0.1);
}

.institutional-context iconify-icon {
    font-size: 2rem;
}

/* Nav Indicators */
.events-nav {
    margin-top: 4rem;
}

.nav-indicators {
    display: flex;
    gap: 2rem;
}

.indicator {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: pointer;
    width: 80px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    color: var(--midnight);
}

.indicator.active {
    opacity: 1;
}

.indicator .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.progress-bar .fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-emerald);
}

.indicator.active .fill {
    animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .events-section {
        min-height: auto;
    }

    .events-container {
        flex-direction: column;
    }

    /* Top: Immersive Visual Area */
    .events-visual {
        flex: 0 0 55vh;
        width: 100%;
        height: 55vh;
        overflow: visible !important;
        background: #000;
        position: relative;
        z-index: 10;
    }

    .section-header-top.floating {
        position: absolute;
        top: 3rem;
        left: 8%;
        z-index: 20;
    }

    .events-title {
        font-size: 2.5rem;
        text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }

    .events-title span {
        font-size: 2.8rem;
    }

    .title-accent {
        width: 40px;
        height: 4px;
        margin-top: 1rem;
    }

    .event-cards-container {
        justify-content: center;
        padding-right: 0;
        bottom: -50px;
        top: auto;
        height: 300px;
        z-index: 25;
    }

    .event-card-img {
        width: 220px;
        height: 300px;
        padding: 0.3rem;
        border-width: 1px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

    .visual-overlay {
        background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.4) 100%);
    }

    /* Bottom: Content & Narrative Area */
    .events-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 6rem 8% 5rem;
        background: #ffffff;
        position: relative;
        z-index: 5;
    }

    .slides-info-wrapper {
        min-height: 340px;
        margin-top: 1rem;
        order: 2;
    }

    .slide-info h2 {
        font-size: 2.2rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        color: #1a1a1a !important;
    }

    .slide-info p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    /* Mobile Interaction (Nav above content) */
    .events-nav {
        order: 1;
        margin-top: 0;
        margin-bottom: 2.5rem;
        display: flex;
        justify-content: center;
        z-index: 30;
    }

    .nav-indicators {
        gap: 1.5rem;
    }

    .indicator {
        width: 55px;
    }

    .indicator .num {
        font-size: 0.7rem;
    }
}

/* --- Association CTA Section Styles --- */

.cta-section {
    position: relative;
    padding: 8rem 0;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--warm-white); /* Retornando ao Marfim */
    overflow: visible;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Corrected property name */
    gap: 5rem;
    align-items: center;
}

.cta-content-left {
    text-align: left;
}
.cta-actions-card {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 2.5rem;
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.08),
        0 20px 40px -10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(44, 127, 57, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 5;
}

/* Newsletter Input Styling */
.newsletter-form {
    display: flex;
    flex-direction: row; /* Alinhamento horizontal */
    gap: 0.5rem;
    width: 100%;
    background: #ffffff;
    padding: 0.4rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(44, 127, 57, 0.08);
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--midnight);
}

.newsletter-input:focus {
    outline: none;
}

.cta-actions .primary-btn {
    width: auto;
    white-space: nowrap;
    padding: 0.8rem 2rem;
    background: var(--primary-green);
    border-radius: 0.8rem;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.cta-actions .secondary-btn {
    width: fit-content;
    padding: 0;
    justify-content: flex-start;
    background: transparent;
    color: var(--midnight);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.6;
    border: none;
}

.cta-actions .secondary-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.03);
}

.cta-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--midnight);
}

.cta-header h2 .highlight {
    color: var(--primary-green);
}

.cta-header p {
    font-size: 1.15rem;
    color: rgba(28, 28, 28, 0.7);
    max-width: 100%;
    margin: 0;
    font-weight: 450;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-actions .primary-btn {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    background: var(--primary-green);
    border-radius: 1rem;
}

.cta-actions .secondary-btn {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: #f8faf9;
    color: var(--midnight);
    font-weight: 700;
}

.cta-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    width: 100%;
}

.whatsapp-support {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(28, 28, 28, 0.5);
}

.whatsapp-support iconify-icon {
    font-size: 1.25rem;
    color: var(--primary-green);
}

.whatsapp-support a {
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
}

.whatsapp-support a:hover {
    text-decoration: underline;
}

/* Micro-headline utilities if not defined elsewhere */
.micro-headline.white {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Responsiveness for CTA */

@media screen and (max-width: 768px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 6%;
    }

    .cta-section {
        padding: 5rem 0 7rem;
    }

    .cta-content-left {
        text-align: left;
    }

    .cta-header h2 {
        font-size: clamp(2.2rem, 9vw, 2.8rem);
        line-height: 1.1;
    }

    .cta-actions-card {
        padding: 2.5rem 1.5rem;
        border-radius: 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        background: transparent;
        border: none;
    }

    .newsletter-input {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 1rem;
        width: 100%;
        padding: 1.2rem;
    }

    .newsletter-form .primary-btn {
        width: 100% !important;
        padding: 1.2rem !important;
        border-radius: 1rem !important;
        justify-content: center;
    }

    .cta-actions {
        gap: 1rem;
    }

    .cta-actions .secondary-btn {
        width: 100%;
        padding: 1.2rem;
        border-radius: 1rem;
        justify-content: center;
        background: #f8fafc;
        border: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--midnight);
        opacity: 1;
        font-weight: 700;
    }

    .cta-footer {
        padding-top: 1.5rem;
    }

    .whatsapp-support {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
    }
}

/* --- Institutional Footer Styles --- */

.main-footer {
    background-color: #080a09; /* Deep institutional midnight */
    color: #f8fafc;
    padding: 8rem 0 0;
    position: relative;
    overflow: hidden;
    z-index: 50;
}

.footer-grid-layer {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(44, 127, 57, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 127, 57, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8% 6rem;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 6rem;
    position: relative;
    z-index: 10;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Logo branca */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 380px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
    background: var(--primary-green);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 20px rgba(44, 127, 57, 0.3);
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-emerald);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(8px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-info iconify-icon {
    font-size: 1.5rem;
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.contact-info span {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    background: #050505;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

.legal-links {
    display: flex;
    gap: 2.5rem;
}

.legal-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-emerald);
}

@media screen and (max-width: 768px) {
    .main-footer {
        padding: 5rem 0 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 8% 4.5rem;
        text-align: left;
    }

    .footer-col {
        align-items: flex-start;
        gap: 1.8rem;
    }

    .brand-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 3.5rem;
    }

    .footer-logo img {
        height: 45px;
    }

    .footer-description {
        font-size: 0.95rem;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.4);
        line-height: 1.7;
    }

    .footer-socials {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .footer-title {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        opacity: 0.6;
    }

    .footer-links {
        gap: 1.2rem;
    }

    .footer-links a {
        padding: 0.2rem 0;
        font-size: 1rem;
    }

    .contact-info {
        gap: 2rem;
    }

    .contact-info li {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.2rem;
        text-align: left;
    }

    .contact-info iconify-icon {
        font-size: 1.3rem;
        margin-top: 0.2rem;
    }

    .contact-info span {
        font-size: 0.95rem;
    }

    .footer-bottom {
        padding: 3rem 8%;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding: 0;
    }

    .legal-links {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

/* --- Cinematic Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
    overflow: hidden;
}

#preloader.loaded {
    transform: translateY(-100%);
    pointer-events: none;
}

.preloader-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.preloader-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    white-space: nowrap;
    display: flex;
    opacity: 0.15;
    pointer-events: none;
}

.preloader-marquee span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15vh;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    display: inline-block;
    padding-right: 5rem;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.preloader-logo {
    position: relative;
    z-index: 10;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.preloader-logo img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.loader-line-container {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-emerald);
    animation: lineLoad 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes lineLoad {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

body.loading-active {
    overflow: hidden;
}
/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    position: relative;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn iconify-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: #20BA5A;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.7);
}

/* High-End Pulsing Animation */
.whatsapp-btn::before,
.whatsapp-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    opacity: 0.6;
}

.whatsapp-btn::before {
    animation: wa-ripple 2s infinite;
}

.whatsapp-btn::after {
    animation: wa-ripple 2s infinite 1s;
}

@keyframes wa-ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Institutional Label Tooltip */
.whatsapp-label {
    position: absolute;
    right: 85px;
    background: white;
    color: #1a1a1a;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid white;
}

.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }
    .whatsapp-btn {
        width: 58px;
        height: 58px;
    }
    .whatsapp-btn iconify-icon {
        font-size: 30px;
    }
    .whatsapp-label {
        display: none;
    }
}
