@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700;800;900&display=block');

@font-face {
    font-family: 'Sailors Condensed';
    src: url('assets/fonts/SailorsCondensed.woff2') format('woff2'),
         url('assets/fonts/SailorsCondensed.woff') format('woff'),
         url('assets/fonts/SailorsCondensed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

:root {
    /* Color Palette */
    --primary: #005aad;
    --primary-dark: #004282;
    --primary-light: #e6f1fb;
    
    --secondary: #4c72ff;
    --secondary-dark: #280f91;
    
    --accent: #ffbd2b;
    --accent-hover: #e6a71e;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --bg-main: #ffffff;
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;
    
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-heading: 'Lexend Deca', sans-serif;
    --font-body: 'Lexend Deca', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--primary); /* Blue background fills any sidebars */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.text-light { color: #cbd5e1; }
.text-sm { font-size: 0.875rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-text {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--accent);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Base Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

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

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cycles-grid {
    max-width: 1100px;
    margin: 4rem auto 0 auto;
    gap: 1rem;
}

.align-center {
    align-items: center;
}

/* Base Utilities */
.position-relative {
    position: relative;
}

.z-1 {
    z-index: 1;
}

.shadow-sm {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.p-4 {
    padding: 1.5rem;
}

.rounded {
    border-radius: var(--border-radius);
}

.bg-white {
    background-color: var(--bg-main);
}

/* Turnos Section */
/* Infantil Image Banner */
.infantil-banner {
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infantil-banner .bg-image-turnos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg-turnos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.infantil-banner .bg-image-fundamental-i {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg-fundamental-i.jpg'); /* Fundamental I background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.infantil-banner .bg-image-fundamental-ii {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg-fundamental-ii.jpg'); /* Fundamental II background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.infantil-banner .turnos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 96, 176, 0.8);
    z-index: 0;
}

.infantil-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.infantil-title {
    font-family: 'Sailors Condensed', 'Impact', 'Arial Narrow', sans-serif;
    font-size: 4.875rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0;
    text-align: center;
}

/* Turnos Blue Section */
.turnos-blue-section {
    background-color: var(--primary);
}

.turnos-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    border-top: 4px solid var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.turnos-card-bottom {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-light);
}

.turnos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.turnos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.turnos-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.turnos-list li:last-child {
    border-bottom: none;
}

.turnos-list li span {
    font-weight: 500;
    color: var(--text-muted);
}

.turnos-idades li strong {
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
}

.turnos-list li strong {
    color: var(--text-main);
}


.align-start {
    align-items: flex-start;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-main);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 189, 43, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

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

/* Nav Submenu (Ensino) */
.nav-submenu {
    position: relative;
}

.nav-submenu-toggle {
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-submenu-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-submenu:hover .nav-submenu-arrow {
    transform: rotate(180deg);
}

.nav-submenu-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    overflow: hidden;
    z-index: 100;
}

.nav-submenu:hover .nav-submenu-menu,
.nav-submenu.open .nav-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu.open .nav-submenu-arrow {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .nav-submenu-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 1rem;
        background: #f5f5f5;
        border-radius: 6px;
        margin-top: 0.25rem;
    }
    .nav-submenu.open .nav-submenu-menu {
        display: block;
    }
}

.nav-submenu-menu a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-submenu-menu a:last-child {
    border-bottom: none;
}

.nav-submenu-menu a:hover,
.nav-submenu-menu a.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Nav Dropdown (Área Restrita) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.64rem 1.28rem;
}

.nav-dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: #ffffff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
    overflow: hidden;
}

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

.nav-dropdown-menu a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

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

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

.hide-desktop {
    display: none;
}

.nav-area-restrita {
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-restrita-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0;
}

.nav-area-restrita a {
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 0.3rem 0;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hide-desktop {
        display: flex;
    }
}

/* Hero Section — background image approach */
.hero-section {
    position: relative;
    min-height: 52vh; /* Reduzido em 25% de 70vh */
    background-color: var(--primary);
    background-size: contain;       /* full photo, no crop */
    background-repeat: no-repeat;
    /* Align right edge of photo with the container's right edge (1200px + 1.5rem padding) */
    background-position: calc(100% - max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem))) center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;                    /* gradient covers the text area */
    height: 100%;
    background: linear-gradient(to right, var(--primary) 50%, transparent 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 9rem;
    padding-bottom: 7rem;
}

.hero-content {
    max-width: 550px;
    width: 100%;
    color: white;
}

.hero-pretitle {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(1.67rem, 3.33vw, 2.79rem);
    line-height: 1.25;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.5;
}

.btn-warning {
    background-color: var(--accent);
    color: var(--text-main);
    border-radius: 50px;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-warning:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 189, 43, 0.4);
}

@media (max-width: 768px) {
    .hero-section {
        display: block;
        min-height: auto;
        background-image: none !important;
        padding-top: 0;
    }
    .hero-section::before {
        content: '';
        display: block;
        margin-top: 80px;
        width: 100%;
        height: 56vw;
        background-image: url('assets/hero_home.jpg');
        background-size: cover;
        background-position: center;
    }
    .hero-overlay {
        display: none;
    }
    .hero-container {
        background-color: var(--primary);
        padding: 2.5rem 1.5rem !important;
        width: 100%;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-title {
        margin-top: 0;
        color: white;
    }
    .hero-subtitle {
        color: white;
        max-width: 100%;
    }
}

/* About Split Layout */
.about-split {
    background-color: white;
    padding: 5.76rem 0;
}

.about-heading {
    display: flex;
    align-items: center;
    align-self: center; /* center within the grid row */
}

.massive-title {
    font-size: clamp(1.85rem, 3.69vw, 2.97rem);
    color: #0b60b0;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0; /* remove any default h2 margin */
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
}


.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(76, 114, 255, 0.3);
}

.feature-title {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-text p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Reusable Image styling */
.rounded-img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Hashtag Section */
.hashtag-section {
    background-color: #0b60b0; /* Blue matching the reference */
    color: white;
}

.hashtag-title {
    font-size: clamp(1.49rem, 2.98vw, 2.68rem);
    font-family: var(--font-body);
    font-weight: 700;
    text-align: left;
    margin-bottom: 3rem;
    letter-spacing: -1px;
    color: white;
}

.hashtag-gallery {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden; /* prevent clipping outside container */
}

.hash-img {
    flex: 1;
    min-width: 0;   /* allow flex items to shrink below content size */
    width: 25%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border-radius: var(--border-radius);
}

.hash-img-1 {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%, 0% 80%); /* Special shape for the first image */
}

@media (max-width: 992px) {
    .hashtag-gallery {
        flex-wrap: wrap;
    }
    .hash-img {
        width: calc(50% - 1rem); /* 2 per row on tablet */
        flex: none;
    }
}

@media (max-width: 576px) {
    .hash-img {
        width: calc(50% - 1rem); /* 2 per row on mobile */
        flex: none;
    }
}

/* Why CNH Section Redesign */
.why-us {
    background-color: #0b60b0;
    color: white;
    padding-top: 1rem;
}

.why-title {
    font-size: clamp(1.7rem, 3.4vw, 2.975rem);
    color: white;
    text-align: center;
    margin-bottom: 6rem;
    line-height: 1.2;
    font-family: var(--font-body);
    font-weight: 500;
}

.why-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.why-card,
.why-card-half {
    display: flex;
    flex-direction: column;
    width: calc((100% - 3rem) / 3 * 0.8);
}

@media (max-width: 992px) {
    .why-card,
    .why-card-half {
        width: calc((100% - 1.5rem) / 2 * 0.8);
    }
    
    .show-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .why-card,
    .why-card-half {
        width: 100%;
    }
}

.why-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0; /* rounded top only */
    margin-bottom: 0; /* flush with card header */
}

.object-position-top {
    object-position: top;
}

.why-card-header {
    background-color: #ffffff;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0; /* flush with photo above */
}

.why-card-header h3 {
    color: #0b60b0;
    font-size: 1.18rem; /* +12% */
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-transform: none;
}

.why-card-body {
    background-color: #ffffff;
    padding: 0.5rem 2rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.why-card-body p {
    color: #0b60b0;
    font-size: 1.01rem; /* +12% */
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

/* School Details Section */
.school-details {
    position: relative;
    background-color: #0b60b0;
    overflow: hidden;
}

.school-details-grid {
    gap: 0;
    grid-template-columns: 0.86fr 1fr;
}

.school-details-text {
    padding: 5rem 3rem 5rem max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
    max-width: 800px;
}

.school-details-title {
    font-size: clamp(1.7rem, 3.4vw, 2.72rem);
    font-weight: 400;
    color: #ffffff !important;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.school-units {
    max-width: 510px; /* Reduzido em 15% de 600px */
}

.school-unit {
    margin-bottom: 1.2rem;
}

.school-unit p {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 300;
}

.school-unit strong {
    font-weight: 600;
}

.school-details-image {
    display: flex;
    align-items: center;
    padding-right: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
}

.school-details-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 4mm;
    margin-bottom: 20mm;
    border-radius: 0.75rem;
}

@media (max-width: 992px) {
    .school-details-text {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .school-details-image {
        padding-right: 1.5rem;
    }
    .school-details-text {
        padding: 3rem 1.5rem;
    }
}

/* Cycles */
.cycles {
    position: relative;
    overflow: hidden;
}

.cycle-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 5/2.35;
    cursor: pointer;
}

.cycle-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}


.cycle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    z-index: 1;
}

.bg-gradient-orange { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); }
.bg-gradient-blue { background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.bg-gradient-yellow { background: linear-gradient(135deg, #F7971E 0%, #FFD200 100%); }


.cycle-card:hover .cycle-img-wrapper {
    transform: translateY(-6px) scale(1.05);
}

.cycle-card:hover .cycle-title {
    transform: translateY(6px);
}

.cycle-title {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.18rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

/* Structure Units */
.units-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.unit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-light);
    padding: 0.6rem calc(1rem + 5mm) 0.6rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.unit-item:hover {
    background: var(--primary-light);
    transform: translateX(10px);
}

.unit-badge {
    width: 85px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.unit-details h5 {
    font-size: 1.125rem;
    margin-bottom: 0; /* Espaçamento reduzido a zero */
    color: #4C72FF !important; /* Azul secundário claro */
}

.unit-details span {
    display: block;
    font-size: 0.875rem;
    white-space: nowrap;
    color: #4C72FF !important;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1); /* Makes the blue logo white for dark background */
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 0.5rem; /* Espaço entre ícone e número reduzido */
    margin-bottom: 0.2rem; /* Espaçamento entre linhas reduzido */
    align-items: center; /* Alinhamento centralizado para os ícones */
}

.contact-list i {
    color: var(--secondary);
    margin-top: 4px;
}

.fa-whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-right: 2px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .container,
    .nav-container { padding: 0 2rem; }
    .nav-container { padding-top: 1rem; padding-bottom: 1rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 2rem; }
    
    .floating-badge {
        right: 0;
        bottom: 0;
    }
}

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

    .menu-toggle { display: block; }
    .nav-links { display: none; }

    .hero { padding-top: 8rem; }
    .hero-title { font-size: 2.04rem; }
    .hero-container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .structure-content { order: 2; }
    .structure-image { order: 1; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .infantil-banner { height: 280px; }
    .infantil-title { font-size: 2.25rem; }

    /* Endereços: permitir quebra de linha */
    .unit-details span {
        white-space: normal;
    }
    .unit-item {
        padding: 0.6rem 1rem;
        align-items: flex-start;
    }

    /* Conheça o Colégio: título → foto → endereços */
    .school-details-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .school-details-text {
        display: contents;
    }
    .school-details-title {
        order: 1;
        padding: 2.5rem 1.5rem 1rem;
        text-align: center;
    }
    .school-details-image {
        order: 2;
        padding: 0;
        width: 100%;
        padding-right: 0 !important;
    }
    .school-details-image img {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        margin: 0;
    }
    .school-units {
        order: 3;
        padding: 1.5rem 1.5rem 2.5rem;
        max-width: 100%;
    }

}

@media (max-width: 576px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .section-padding { padding: 3rem 0; }
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: none;
    transition: none;
}
/* Map Modal */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
}

.map-modal.active {
    display: flex;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.map-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transform: scale(0.9);
    transition: var(--transition);
}

.map-modal.active .map-modal-content {
    transform: scale(1);
}

.map-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.map-modal-close:hover {
    background: var(--bg-light);
    transform: rotate(90deg);
}

.map-iframe-container {
    width: 100%;
    height: 100%;
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Interactivity for unit-items */
.unit-item {
    cursor: pointer;
}

.unit-item:active {
    transform: scale(0.98);
}

/* Structure Gallery */
.structure-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.structure-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structure-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 768px) {
    .structure-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .structure-img {
        height: 160px;
    }
}

/* Structure Section Refinements */
.structure {
    background-color: #0b60b0;
}

.structure .section-title,
.structure .section-lead,
.structure p {
    color: #ffffff !important;
}

.structure .highlight-text {
    color: #f61979;
}

.structure .section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.975rem);
}

.structure .section-lead {
    font-size: 1.35rem; /* Aumento de 10% (estava em ~1.2rem ou similar) */
    margin-bottom: 0.5rem; /* Reduzindo o espaçamento inferior */
    max-width: none !important; /* Garantir que fique em uma só linha */
}

.structure .container p:last-child {
    opacity: 0.9;
    margin-top: 0; /* Removendo margem superior para colar na legenda */
}

@media (max-width: 768px) {
    .structure .section-title,
    .structure .section-lead,
    .structure .container p:last-child {
        line-height: 1.8;
    }
}

/* Footer White Theme Refinements */
.footer {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-top: 1px solid #eeeeee;
}

/* Footer Partners & Social Restored */
.footer-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.partner-logo {
    height: 110px; /* Outras imagens aumentadas em 80% */
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.partner-logo:first-child {
    height: 95px; /* Moderna aumentada em 60% */
}

/* Redução de 15% solicitada para o Pleno (110 - 15% = ~94px) */
.partner-logo:nth-child(3) {
    height: 94px;
}

img[src*="pleno"] {
    height: 95px !important; /* Pleno reduzido em mais 5% (agora está igual à Moderna) */
}

.partner-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-partners {
        gap: 1rem;
    }
    .partner-logo {
        flex: 0 0 calc(50% - 0.5rem);
        height: 70px;
    }
    .partner-logo:first-child {
        height: 60px;
    }
    .partner-logo:nth-child(3) {
        height: 60px;
    }
}

.social-links a {
    color: #0b60b0 !important;
    background: #f0f7ff !important;
}

.social-links a:hover {
    background: #0b60b0 !important;
    color: #ffffff !important;
}

.footer-grid {
    grid-template-columns: 1fr 1fr !important; /* APENAS 2 COLUNAS AGORA */
}

.footer h4 {
    color: #0b60b0 !important;
}

.footer-logo {
    filter: none !important; /* Remove invert filter for white bg */
}

.footer p, .contact-list li {
    color: #666666 !important;
}

.footer-bottom {
    background-color: #f9f9f9 !important;
    color: #999999 !important;
}

.footer-logo-bottom {
    max-height: 40px;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.footer-bottom {
    padding: 2rem 0 !important;
}

.footer-bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-copyright {
    margin: 0;
    text-align: left;
}

.footer-bottom-inner .footer-logo-bottom {
    justify-self: center;
    margin-bottom: 0;
}

.footer-contact {
    text-align: right;
    justify-self: end;
}

.footer-contact-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-contact p {
    margin: 0.2rem 0;
}

.footer-instagram {
    font-size: 1.8rem;
    color: #555555;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: opacity 0.2s;
}

.footer-instagram:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    .footer-bottom-inner .footer-contact {
        order: 1;
        text-align: center;
    }
    .footer-bottom-inner .footer-logo-bottom {
        order: 2;
    }
    .footer-bottom-inner .footer-copyright {
        order: 3;
        text-align: center;
        font-size: 0.8rem;
    }
    .footer-contact-title {
        font-size: 0.8rem;
    }
    .footer-contact p {
        font-size: 0.8rem;
    }
}

/* Footer Grid & Form */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-form {
        max-width: 100%;
    }
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Lacuna reduzida */
    max-width: 400px;
}

.footer-form input,
.footer-form select,
.footer-form textarea {
    width: 100%;
    padding: 0.45rem 0.8rem; /* Reduzido em 10% */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.76rem; /* Reduzido em 10% */
    color: #666;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.footer-form textarea {
    resize: none;
    height: 70px;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #999;
}

.footer-form input:focus,
.footer-form select:focus,
.footer-form textarea:focus {
    border-color: #4C72FF;
}

.btn-send {
    background-color: #4C72FF;
    color: white;
    padding: 0.5rem; /* Reduzido */
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.3rem;
    transition: background-color 0.3s ease;
    width: 32%; /* Largura reduzida em 20% (de 40% original) */
    margin-left: auto;
    margin-right: auto;
    font-size: 0.72rem; /* Reduzido em 15% */
}

.btn-send:hover {
    background-color: #385de6;
}

/* Contact Link Styles */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary) !important;
    text-decoration: underline;
}

/* Ensino Médio Banner */
.infantil-banner .bg-image-medio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg-ensino-medio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Eletivas */
.eletivas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}

.eletiva-tag {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: background-color 0.25s, color 0.25s;
}

.eletiva-tag:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ── Feedback Carousel ── */
.feedback-section {
    background-color: var(--bg-light);
}

.feedback-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feedback-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.feedback-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.feedback-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.feedback-carousel-wrapper {
    overflow: hidden;
    flex: 1;
}

.feedback-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feedback-quote {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--secondary);
    font-weight: 700;
}

.feedback-text {
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
    flex: 1;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feedback-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feedback-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.feedback-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.feedback-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.feedback-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    padding: 0;
}

.feedback-dot.active {
    opacity: 1;
    background: var(--primary);
    transform: scale(1.25);
}

/* ENEM Tabs */
.enem-panel {
    display: block;
    margin-bottom: 3rem;
}

.enem-year-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.enem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.enem-student-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

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

@media (max-width: 560px) {
    .enem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .feedback-card {
        flex: 0 0 100%;
    }
    .feedback-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    color: #fff;
    font-size: 2rem;
}
