@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
    /* === DARK FOUNDATION === */
    --bg-dark-1: #0a0a0a;
    --bg-dark-2: #0f0f0f;
    --bg-dark-3: #141414;
    --bg-section-alt: #111111;

    /* === BRAND COLORS (luminous accents) === */
    --primary: #00802f;
    --primary-glow: rgba(0, 128, 47, 0.35);
    --secondary: #6a1b9a;
    --secondary-glow: rgba(106, 27, 154, 0.3);
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.2);

    /* === TEXT === */
    --text: #f0f0f0;
    --text-muted: #7a7a7a;
    --text-soft: rgba(255, 255, 255, 0.6);
    --white: #ffffff;

    /* === GLASS (dark mode) === */
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);

    /* === SHADOWS & FX === */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-premium: 0 25px 60px rgba(0, 0, 0, 0.6);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background: var(--bg-dark-1);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/pattern.png') repeat;
    opacity: 0.015;
    pointer-events: none;
    z-index: 1000;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -1px;
    font-weight: 900;
    color: var(--white);
}

/* === GLASSMORPHISM DARK === */
.premium-glass {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--glass-hover);
    box-shadow: var(--shadow-premium);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ========================================
   HEADER — Transparent → Glass on Scroll
   ======================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    height: 120px;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 4%;
    justify-content: space-between;
    transition: var(--transition);
}

header.scrolled {
    height: 80px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
    height: 82px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 55px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.1;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
}

.btn-account {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    transition: var(--transition);
}

.btn-account:hover {
    background: var(--accent);
    color: #000000;
    transform: scale(1.05);
}

/* ========================================
   HERO SECTION — Full Viewport Immersive
   ======================================== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero.jpg') center/cover no-repeat;
    transform: scale(1.1);
    transition: transform 10s ease-out;
    z-index: -1;
}

/* Dark gradient overlay — valoriza a imagem */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.1) 35%,
        rgba(0, 0, 0, 0.6) 80%,
        rgba(10, 10, 10, 1) 100%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
}

.hero .edition {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
    animation: fadeInUp 1s ease forwards;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 12px;
    text-transform: uppercase;
    text-shadow: 0 0 80px rgba(255, 215, 0, 0.1), 0 5px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--text-soft);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    animation: fadeInUp 1s 0.4s ease forwards;
    opacity: 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-round {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 0 40px var(--accent-glow);
    margin: 0 auto;
    animation: fadeIn 1.5s 0.6s ease forwards;
    opacity: 0;
}

.btn-round:hover {
    transform: scale(1.1) rotate(5deg);
    background: #ffffff;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
}

.btn-primary-mini {
    padding: 15px 40px;
    border-radius: 50px;
    background: var(--white);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary-mini:hover {
    transform: scale(1.05);
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ========================================
   VALUES BAR — Integrated Dark
   ======================================== */
.values-bar {
    padding: 25px 0;
    background: transparent;
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.values-bar span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   MANIFESTO
   ======================================== */
.manifesto {
    padding: 160px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.manifesto-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--white);
}

.manifesto-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.9;
}

.manifesto-text strong {
    color: var(--accent);
}

/* ========================================
   PREMIUM CARDS
   ======================================== */
.card-grid {
    padding: 80px 4%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.premium-card {
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.premium-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.premium-card:hover img {
    transform: scale(1.08);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
}

.card-content h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-container {
    transition: var(--transition);
    box-shadow: var(--shadow-premium);
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ========================================
   CONVIDADOS / GUESTS
   ======================================== */
.guest-card {
    transition: var(--transition);
}

.guest-card img {
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.guest-card:hover img {
    transform: scale(1.1);
}

.guest-card h4 {
    font-family: 'Playfair Display', serif;
    margin-top: 15px;
    letter-spacing: 1px;
    color: var(--white);
}

/* ========================================
   Z-PATTERN BLOCKS
   ======================================== */
.z-block {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.z-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.z-block h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    color: var(--white);
}

.z-block img {
    transition: transform 1.5s ease-out;
}

.z-block:hover img {
    transform: scale(1.05);
}

/* ========================================
   PARTNERS
   ======================================== */
.parceiros div {
    transition: var(--transition);
}

.parceiros div:hover {
    opacity: 1 !important;
    filter: grayscale(0) !important;
    transform: translateY(-5px);
}

/* ========================================
   CAROUSEL SYSTEM
   ======================================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 4%;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: 400px;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.carousel-item.portrait {
    width: 300px;
    height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 60px 4%;
}

.testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h5 {
    font-size: 1rem;
    margin: 0;
    color: var(--accent);
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   Z-BLOCK EVEN/ODD BACKGROUNDS
   ======================================== */
.z-block:nth-child(even) {
    background: transparent !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    nav { display: none; }
    nav.open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(0,0,0,0.95); padding: 30px 0 40px; border-bottom: 1px solid var(--glass-border); backdrop-filter: blur(20px); animation: fadeIn 0.3s ease; }
    nav.open ul { flex-direction: column; align-items: center; gap: 25px; }
    nav.open a { font-size: 1rem; }
    .hamburger { display: block !important; }
    
    .hero h1 { font-size: 5rem; letter-spacing: 6px; }
    .z-block { flex-direction: column !important; }
    .z-block div { width: 100% !important; padding: 50px 6% !important; flex: none !important; }
    .z-block div:first-child { height: 400px !important; }
    .stats-row { grid-template-columns: 1fr !important; gap: 40px; margin: 80px 4% !important; padding: 40px !important; }
    .manifesto { grid-template-columns: 1fr; padding: 80px 6%; gap: 50px; }
    .manifesto-text p { font-size: 1.05rem; }
    footer > div:first-child { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
}

@media (max-width: 768px) {
    /* Typographic & Spacing Restructuration */
    section { padding: 80px 0 !important; }
    .hero h1 { font-size: 3.5rem; letter-spacing: 4px; }
    .hero .tagline { font-size: 1.1rem; padding: 0 5%; }
    
    h2 { font-size: 2.5rem !important; padding: 0 4%; }
    h3 { font-size: 2rem !important; }

    /* Values bar */
    .values-bar { flex-wrap: wrap; gap: 15px; padding: 25px 4%; text-align: center; justify-content: center; overflow: visible; }
    .values-bar span { font-size: 0.6rem; letter-spacing: 2px; }

    /* Fix Carousel width overflow */
    .carousel-item { width: 85vw !important; max-width: 320px; }
    .carousel-item.portrait { width: 80vw !important; max-width: 280px; height: 400px; }
    .carousel-container { padding: 20px 4%; }
    
    /* Stats row */
    .stats-row div h3 { font-size: 2.8rem !important; }

    /* Testimonials */
    .testimonials-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 6%; }
    
    /* Parceiros & Realização */
    .parceiros { padding: 60px 4% !important; }
    .parceiros div[style*="display: flex"] { gap: 20px !important; margin-bottom: 40px !important; }
    .parceiros div[style*="background: #fff"] { width: 95px !important; height: 95px !important; padding: 10px !important; }
    .parceiros img { max-height: 55px !important; height: auto !important; width: auto !important; max-width: 85% !important; }

    /* Footer */
    footer { padding: 80px 6% 40px !important; }
    .footer-brand { text-align: center; grid-column: span 2; }
    .footer-logo { max-width: 150px !important; margin: 0 auto 20px auto !important; display: block; }
    footer > div:first-child { grid-template-columns: 1fr 1fr !important; gap: 40px 20px !important; }
    footer > div:last-child { flex-direction: column; text-align: center; gap: 15px; justify-content: center; }

    /* OVERRIDES GLOBAIS PARA INLINE CSS (Quebrando estouradores de tela em Sub-Páginas) */
    h1[style*="font-size: 4rem"] {
        font-size: 2.5rem !important;
    }
    
    section[style*="padding: 160px"] {
        padding: 120px 4% 60px !important;
    }

    section[style*="padding: 60px 0"], section[style*="padding: 40px"] {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }
    
    /* Quebrando flex inline que não enrola no mobile */
    div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    
    /* Ajuste fino na Programacao e Cards (time row + content wrapper) */
    .premium-glass[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 15px !important;
    }
    
    /* Para o dia dos filtros na Programacao */
    .day-tab {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }
    
    .premium-glass > div[style*="min-width: 80px"],
    .premium-glass > div[style*="min-width: 100px"] {
        min-width: auto !important;
        font-size: 1.2rem !important;
    }
    
    .activity-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    /* Ajuste fino no Z-Blocks (Experiências) */
    .z-block {
        flex-direction: column !important;
        background: rgba(255,255,255,0.02) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }
    
    .z-block > div[style*="overflow: hidden"] {
        width: 100% !important;
        height: 300px !important;
    }
    
    .z-block > div[style*="padding: 80px"] {
        padding: 30px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Grids espremidos (Formacoes / Financiamento / Loja) */
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Solução limpa para barra de rolagem fantasma do Glow 120vw */
    .ambient-glow {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
}
