/* Reset & Variables */
:root {
    /* Cursilho Colors (De Colores) refined for UI */
    --c-red: #E63946;
    --c-blue: #1B2D70;        /* Azul Escuro Oficial */
    --c-light-blue: #84B0DF;  /* Azul Claro Oficial */
    --c-green: #2A9D8F;
    --c-yellow: #F18500;      /* Laranja Oficial */
    
    /* Neutral / UI Colors */
    --c-bg: #F4F4F4;          /* Cinza Claro Oficial */
    --c-text: #2B2D42;
    --c-text-light: #6C757D;
    --c-white: #FFFFFF;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(27, 45, 112, 0.1);
    
    /* Fonts */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust for fixed navbar */
}

body {
    font-family: var(--font-body);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
}

/* Background Decoration */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(233, 196, 106, 0.2) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20vh;
    right: -10vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(69, 123, 157, 0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--c-light-blue);
    transition: 0.3s ease;
}

/* Top Banner */
.top-banner {
    background-color: var(--c-yellow);
    color: var(--c-white);
    padding: 0.5rem 0;
    font-family: var(--font-head);
}

.top-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.banner-year {
    font-size: 1.5rem;
    font-weight: 800;
}

.banner-phrase {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.banner-btn {
    background-color: var(--c-white);
    color: var(--c-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.3s ease;
}

.banner-btn i {
    font-size: 1.1rem;
    color: var(--c-blue);
}

.banner-btn:hover {
    background-color: var(--c-blue);
    color: var(--c-white);
}

.banner-btn:hover i {
    color: var(--c-white);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.navbar.navbar-scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--c-text);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-yellow); /* Alterado para a cor Laranja da faixa do topo */
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--c-blue); /* Azul Escuro Oficial do MCC */
    min-width: 260px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--c-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s, padding-left 0.3s;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 2rem;
}

.nav-link.active {
    color: var(--c-blue);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--c-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-head);
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--c-blue);
    color: var(--c-white);
}

.btn-primary:hover {
    background: var(--c-light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 45, 112, 0.4);
}

.btn-secondary {
    background: var(--c-red);
    color: var(--c-white);
}

.btn-secondary:hover {
    background: #c92a37;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--c-blue);
    color: var(--c-blue);
}

.btn-outline:hover {
    background: var(--c-blue);
    color: var(--c-white);
}

/* Main Content */
.main-content {
    padding-top: 20px; /* Reduced offset since navbar is sticky */
}

/* Sections */
.page-section {
    padding: 4rem 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#home.page-section {
    padding-top: 2rem; /* Reduced to push title up */
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--c-blue);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--c-text-light);
    font-size: 1.1rem;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(27, 45, 112, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Hero Section */
.hero {
    max-width: 1200px; /* Aumentado para dar mais espaço horizontal */
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(233, 196, 106, 0.3);
    color: #b38200;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--c-blue);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--c-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Flip Clock Timer (Top Banner) */
.flip-clock-wrapper {
    background: #1a1a1a;
    padding: 4px 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid #333;
    display: inline-block;
}

.flip-label {
    display: block;
    color: #fff;
    font-size: 0.55rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: var(--font-body);
}

.flip-clock {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card {
    position: relative;
    background: linear-gradient(to bottom, #3a3a3a 0%, #222 100%);
    border-radius: 4px;
    padding: 2px 4px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    overflow: hidden;
}

.flip-card span {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #e0e0e0;
    line-height: 1;
    z-index: 2;
}

.flip-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
    z-index: 3;
}

.flip-unit small {
    color: #cca43b; /* Gold/Yellow text */
    font-size: 0.45rem;
    margin-top: 2px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Countdown Banner */
.countdown-banner {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--c-blue), var(--c-light-blue));
    color: var(--c-white);
    border: none;
    box-shadow: 0 10px 30px rgba(27, 45, 112, 0.3);
}

.countdown-content h3 {
    margin-bottom: 0.2rem;
    font-size: 1.5rem;
    color: var(--c-white);
}

.countdown-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.time-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    min-width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-box span {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-head);
    line-height: 1;
    color: var(--c-white);
}

.time-box small {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
    .timer {
        gap: 0.6rem;
    }
    .time-box {
        min-width: 65px;
        padding: 0.8rem;
    }
    .time-box span {
        font-size: 1.5rem;
    }
    .time-box small {
        font-size: 0.75rem;
    }
}

/* Hero Banners (Carousel + Fixed) */
.hero-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px; /* Mais largo */
    margin: 0 auto;
}

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

.banner-caption {
    font-size: 1.05rem;
    color: var(--c-text-light);
    margin: 0;
    text-align: center;
}

.banner-carousel, .banner-fixed {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--glass-shadow);
    aspect-ratio: 16/9; /* Formato mais retangular/widescreen */
    color: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-white); /* Fundo branco para caso a imagem não preencha tudo */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* News Dynamic Caption (Replaces slide footer) */
.news-dynamic-caption {
    text-align: center;
    margin-top: 15px;
    padding: 1rem 1.5rem;
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.news-dynamic-caption .slide-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.news-dynamic-caption .badge-noticias {
    background: var(--c-yellow);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.news-dynamic-caption .badge-date {
    color: var(--c-yellow);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--c-yellow);
    padding: 2px 10px;
    border-radius: 20px;
}
.news-dynamic-caption h3 {
    color: var(--c-blue);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}


.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta a imagem para cobrir todo o requadro, cortando as sobras */
    z-index: -2;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 45, 112, 0.6); /* Azul escuro semi-transparente */
    z-index: -1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-content {
    padding: 2rem;
    text-align: center;
}

.carousel-content .dimensao {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.carousel-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--c-white);
    line-height: 1.1;
}

.carousel-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-indicators .indicator {
    width: 25px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-indicators .indicator.active {
    background: var(--c-white);
    width: 35px;
}

/* Grids */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Link Cards */
.link-card {
    text-align: center;
}

.link-card i {
    font-size: 3rem;
    color: var(--c-green);
    margin-bottom: 1rem;
}

.link-card h3 {
    margin-bottom: 0.5rem;
}

.link-card p {
    margin-bottom: 1.5rem;
    color: var(--c-text-light);
}

/* Timeline / Events */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
}

.event-date {
    background: var(--c-light-blue);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info {
    flex-grow: 1;
}

.event-info p {
    color: var(--c-text-light);
}

/* Event Sub-tabs (GEN/GER/GED) */
.events-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-tab-trigger {
    background: var(--c-white);
    border: 2px solid var(--c-blue);
    color: var(--c-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.event-tab-trigger:hover,
.event-tab-trigger.active {
    background: var(--c-blue);
    color: var(--c-white);
}

.events-tabs-content .event-sub-tab {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.events-tabs-content .event-sub-tab.active {
    display: block;
}

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

.badge-gen {
    background: var(--c-red);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-ged {
    background: var(--c-green);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Form */
.form-card {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--c-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-light-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

form .btn {
    width: 100%;
}

/* News */
.news-card {
    padding: 0;
    overflow: hidden;
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--c-light-blue), var(--c-blue));
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--c-red);
    font-weight: 600;
    text-transform: uppercase;
}

.news-content h3 {
    margin: 0.5rem 0;
}

.news-content p {
    color: var(--c-text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Interactive Bento Split Card */
.livros-bento-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--c-white);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    margin: 2rem 0;
}

.livros-text-side {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.livros-text-side h3 {
    font-size: 2.2rem;
    color: var(--c-blue);
    margin-bottom: 1rem;
}

.livros-text-side p {
    font-size: 1.1rem;
    color: var(--c-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.livros-text-side .hint-text {
    font-size: 0.9rem;
    color: var(--c-yellow);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.livros-image-side {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Contains the drop-shadow overflow on hover */
    display: flex;
}

.livros-image-side .base-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Optional: make base image slightly dimmer on hover of container so books stand out more */
    transition: filter 0.4s ease;
}

.livros-image-side:hover .base-img {
    filter: brightness(0.8);
}

/* Magic Pop-out Books via Clip-Path */
.book-layer {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s;
    filter: drop-shadow(0 0 0 transparent);
    z-index: 2;
}

.book-layer img {
    width: 100%; 
    height: 100%;
    object-fit: cover; /* must match base-img */
}

/* Coordinates based on the user's photo */
.book-layer.fundamentos {
    clip-path: polygon(45% 22%, 80% 17%, 85% 75%, 52% 80%);
}

.book-layer.guia {
    clip-path: polygon(75% 42%, 96% 45%, 91% 83%, 71% 79%);
}

@media (hover: hover) {
    .book-layer:hover {
        transform: scale(1.08) translateY(-10px);
        filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
        z-index: 10;
    }
}

/* Interactive Calendar */
.calendar-section {
    background: linear-gradient(135deg, #7bb4eb 0%, #3a82db 100%); /* Blue background from the images */
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}

/* Background pattern from images (dots and subtle shapes) */
.calendar-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 1;
}

.calendar-section .section-header h2 {
    color: var(--c-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.calendar-section .section-header p {
    color: rgba(255,255,255,0.9);
}

.calendar-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.calendar-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 20px;
    padding-bottom: 20px;
}
.calendar-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.calendar-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    padding: 2rem;
    color: var(--c-text);
}

/* Cover Slide */
.cover-slide {
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--c-white);
}

.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cover-subtitle {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 0 var(--c-blue);
    letter-spacing: 1px;
}

.cover-title {
    font-size: 9rem;
    line-height: 1;
    font-weight: 800;
    color: var(--c-blue);
    -webkit-text-stroke: 4px var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -10px 0;
}

.cover-mundinho {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 0.05em;
    -webkit-text-stroke: 0;
}
.cover-mundinho img {
    height: 100%;
    width: auto;
    max-width: none;
}

.cover-cruz {
    height: 110px;
    margin: 0 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.cover-brand {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 0 var(--c-blue);
}

.swipe-hint {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.swipe-hint p {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--c-blue);
    text-shadow: 1px 1px 0 var(--c-white);
    text-transform: uppercase;
}
.swipe-icon {
    font-size: 2.5rem;
    color: var(--c-white);
    animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

/* Month Slide */
.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.month-header h3 {
    font-size: 2.5rem;
    color: var(--c-white);
    -webkit-text-stroke: 2px var(--c-blue);
    font-weight: 800;
    letter-spacing: 1px;
}
.month-brand {
    text-align: right;
    line-height: 1;
}
.month-brand span:first-child {
    display: block;
    font-size: 0.8rem;
    color: var(--c-text-light);
}
.month-brand span:last-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-light-blue);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--c-blue);
    border: 2px solid var(--c-blue);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cal-day-head {
    background: var(--c-blue);
    color: var(--c-white);
    text-align: center;
    padding: 10px 0;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 1.3rem;
}

.cal-cell {
    background: #fffcfa; /* Very light yellow/creme background from images */
    text-align: center;
    padding: 15px 5px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-cell.empty {
    background: #fffcfa;
}

/* Event Colors */
.evt-ultreya { background: #9d4edd !important; color: white; }
.evt-escola { background: #70e000 !important; color: white; }
.evt-recepcao { background: #ffca3a !important; color: var(--c-text); }
.evt-cur-fem { background: #ff5d8f !important; color: white; }
.evt-cur-masc { background: #0081a7 !important; color: white; }
.evt-feriado { background: #ced4da !important; color: var(--c-text); }
.evt-brincolores { background: #ff595e !important; color: white; }
.evt-retiro { background: #ff595e !important; color: white; }
.evt-caminhada { background: #ff9f1c !important; color: white; }

/* Legend */
.calendar-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
    border-left: 3px solid var(--c-blue);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
}

.legend-color {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.legend-date {
    margin-left: auto;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--c-text-light);
}

/* Navigation Buttons & Dots */
.cal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--c-white);
    color: var(--c-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.cal-nav-btn:hover {
    background: var(--c-blue);
    color: var(--c-white);
}
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

.calendar-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.cal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}
.cal-dot.active {
    background: var(--c-white);
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cover-title { font-size: 5rem; }
    .cover-subtitle { font-size: 1.8rem; }
    .cover-brand { font-size: 1.6rem; }
    .swipe-hint p { font-size: 1rem; text-align: center; }
    .cover-cruz { height: 60px; }
    .cal-cell { padding: 10px 2px; font-size: 1rem; }
    .legend-item { font-size: 0.95rem; }
    .prev-btn, .next-btn { display: none; /* Rely on swipe on mobile */ }
    .calendar-wrapper { margin: 0 -1rem; padding: 0 1rem; }
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--c-blue);
}

.read-more:hover {
    color: var(--c-red);
}

/* Footer */
.footer {
    background: var(--c-blue);
    color: var(--c-white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.developed-by {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.developed-by i {
    color: var(--c-red);
}

.developed-by a {
    color: var(--c-yellow);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--c-white);
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-list.active {
        display: flex;
        align-items: center;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-banners {
        grid-template-columns: 1fr;
    }
    
    .banner-carousel, .banner-fixed {
        height: auto;
        aspect-ratio: 16/9;
    }

    .event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .event-card .btn {
        width: 100%;
    }

    /* Centering banner buttons on mobile */
    .banner-actions {
        justify-content: center;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0,0,0,0.03);
        box-shadow: none;
        min-width: 100%;
        padding: 0;
        margin-top: 0.5rem;
    }
    .nav-item.dropdown.mobile-open .dropdown-menu {
        display: block;
    }
    .dropdown-menu li a {
        color: var(--c-blue);
        padding: 0.8rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .dropdown-menu li a:hover {
        background: rgba(0,0,0,0.05);
    }
    
    .livros-bento-card {
        grid-template-columns: 1fr;
    }
    .livros-text-side {
        padding: 2rem;
    }
    .livros-text-side h3 {
        font-size: 1.8rem;
    }
    .livros-image-side {
        min-height: 250px;
    }
    /* Disable scale on hover for mobile to prevent overflow bugs, just keep shadow */
    .book-layer:hover {
        transform: translateY(-5px);
    }
}

/* =========================================
   Flipbook Modal & 3D CSS
   ========================================= */

.flipbook-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.flipbook-modal.active {
    opacity: 1;
    visibility: visible;
}

.flipbook-close {
    position: absolute;
    top: 20px; right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.flipbook-close:hover {
    color: var(--c-red);
    transform: rotate(90deg);
}

.flipbook-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    padding: 0 20px;
}

.flipbook-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100;
}

.flipbook-nav.prev {
    left: 20px;
}

.flipbook-nav.next {
    right: 20px;
}

.flipbook-nav:hover {
    background: var(--c-yellow);
    border-color: var(--c-yellow);
}

/* 3D Scene */
.book-scene {
    perspective: 2500px;
    width: 400px; /* Base width of one page */
    height: 600px; /* Base height */
    position: relative;
}

.book3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    /* Center it slightly to account for the open state */
    transform: translateX(0);
}

/* Page Styling */
.book-page {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smooth turning */
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1), 5px 5px 15px rgba(0,0,0,0.3);
    border-radius: 0 8px 8px 0;
}

.page-front, .page-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    border-radius: 0 8px 8px 0;
}

.page-text-content {
    padding: 2rem;
}

.page-front {
    z-index: 2;
    border-left: 2px solid rgba(0,0,0,0.1);
}

.page-back {
    transform: rotateY(180deg);
    z-index: 1;
    background-color: #f9f9f9;
}

/* Flipped State */
.book-page.flipped {
    transform: rotateY(-180deg);
}

/* Content specific styling */
.page-front h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.page-front h3 {
    color: var(--c-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.page-front p {
    color: var(--c-text);
    font-size: 1.1rem;
}

.placeholder-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive Flipbook */
@media (max-width: 900px) {
    .book-scene {
        width: 300px;
        height: 450px;
    }
}

/* Celular em pé (Vertical / Portrait) */
@media (max-width: 600px) and (orientation: portrait) {
    .book-scene {
        /* Metade da tela para cada página, para caber o livro aberto (2 páginas) */
        width: 45vw; 
        height: 67.5vw; 
    }
    
    .flipbook-nav {
        top: auto;
        bottom: 10vh;
        transform: none;
        width: 45px; height: 45px;
    }
    .flipbook-nav.prev { left: 20vw; }
    .flipbook-nav.next { right: 20vw; }
    
    .flipbook-close {
        top: 15px; right: 15px;
    }
}

/* Celular deitado (Horizontal / Landscape) */
@media (max-height: 600px) and (orientation: landscape) {
    .book-scene {
        /* Altura quase total da tela */
        height: 80vh;
        width: 53.3vh; /* Mantém a proporção 2:3 */
    }
    
    .flipbook-nav {
        width: 40px; height: 40px;
        font-size: 1.2rem;
    }
    .flipbook-nav.prev { left: 10px; }
    .flipbook-nav.next { right: 10px; }
}

/* Animations & Premium Effects */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
