/* CSS Base e Sistema de Design */
:root {
    /* Variáveis de Design Responsivo */
    --max-width: 1200px;
    --container-padding: 1rem;
    --header-height: 80px;
    --nav-height: 60px;
    
    /* Breakpoints personalizados */
    --mobile-xs: 320px;
    --mobile-sm: 375px;
    --mobile-md: 414px;
    --mobile-lg: 480px;
    --tablet-sm: 768px;
    --tablet-lg: 1024px;
    --desktop-sm: 1200px;
    --desktop-md: 1440px;
    --desktop-lg: 1920px;
    
    /* Typography Scale Responsiva */
    --font-xs: clamp(0.75rem, 2vw, 0.875rem);
    --font-sm: clamp(0.875rem, 2.5vw, 1rem);
    --font-base: clamp(1rem, 3vw, 1.125rem);
    --font-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --font-xl: clamp(1.25rem, 4vw, 1.5rem);
    --font-2xl: clamp(1.5rem, 5vw, 2rem);
    --font-3xl: clamp(2rem, 6vw, 3rem);
    
    /* Espaçamentos Responsivos */
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(1.5rem, 4vw, 2rem);
    --space-xl: clamp(2rem, 5vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 4rem);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
    /* Melhora performance em dispositivos móveis */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
    font-size: var(--font-base);
    
    /* Otimizações para mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Container Responsivo Universal */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Grid Sistema Responsivo */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Flex Sistema Responsivo */
.flex {
    display: flex;
    gap: var(--space-md);
}

.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-around { justify-content: space-around; align-items: center; }

/* ===== BANNER DE INFORMATIVOS (ULTRA RESPONSIVO) ===== */
.informativos-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-md) 0;
    border-bottom: 3px solid #4a5568;
    animation: slideDown 0.5s ease;
}

.informativos-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.informativos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.informativos-header h2 {
    font-size: var(--font-xl);
    font-weight: 600;
    flex: 1;
    min-width: 200px;
}

.fechar-banner {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: var(--font-lg);
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.fechar-banner:hover {
    background: rgba(255, 255, 255, 0.3);
}

.informativos-lista {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.informativo-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: var(--space-md);
    border-left: 4px solid;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.informativo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.prioridade-alta { border-left-color: #f56565; }
.prioridade-media { border-left-color: #ed8936; }
.prioridade-baixa { border-left-color: #48bb78; }

.informativo-tipo {
    font-size: var(--font-lg);
    flex-shrink: 0;
}

.informativo-conteudo {
    flex: 1;
    min-width: 0; /* Permite quebra de linha em textos longos */
}

.informativo-conteudo h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    word-wrap: break-word;
}

.informativo-conteudo p {
    font-size: var(--font-sm);
    opacity: 0.9;
    margin-bottom: var(--space-xs);
    line-height: 1.5;
    word-wrap: break-word;
}

.informativo-data {
    font-size: var(--font-xs);
    opacity: 0.8;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .informativos-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .informativos-lista {
        grid-template-columns: 1fr;
    }
    
    .informativo-item {
        padding: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1a365d;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #1a365d;
}

h2 {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    color: #2c5282;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: #2c5282;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: #3182ce;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: #2c5282;
    outline: 2px solid #bee3f8;
    outline-offset: 2px;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    border-radius: 2px;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text h1 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 0.2rem;
    color: #1a365d;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.contact-item i {
    font-size: 1.2rem;
}

/* ===== NAVIGATION STYLES ===== */
.main-navigation {
    background: #1a365d;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 1rem 0;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: #e2e8f0;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transition: left 0.3s ease;
}

.nav-link:hover::before,
.nav-link:focus::before {
    left: 0;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff;
    border-bottom-color: #63b3ed;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.nav-link.active {
    background-color: #2c5282;
    color: #ffffff;
    border-bottom-color: #63b3ed;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #2c5282, #2a4a6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #3182ce;
    border-color: #3182ce;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #3182ce;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2c5282;
    border-color: #2c5282;
}

.btn-outline:hover,
.btn-outline:focus {
    background: #2c5282;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
    margin-top: 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(49,130,206,0.1)"/><stop offset="100%" stop-color="rgba(49,130,206,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #1a365d;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

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

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.05), rgba(44, 82, 130, 0.05));
    transition: left 0.3s ease;
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #bee3f8;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    color: #2c5282;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.course-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.course-type {
    background: #3182ce;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.course-type.online {
    background: #38a169;
}

.course-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-info span {
    color: #718096;
    font-size: 0.9rem;
    background: #f7fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
}

/* ===== SCHEDULE SECTION ===== */
.schedule-section {
    padding: 5rem 0;
    background: white;
}

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

.schedule-card {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.4);
}

.schedule-card h3 {
    color: #bee3f8;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(190, 227, 248, 0.3);
    padding-bottom: 0.5rem;
}

.schedule-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(190, 227, 248, 0.2);
}

.schedule-time:last-child {
    border-bottom: none;
}

.time {
    font-size: 1.2rem;
    font-weight: 700;
    color: #bee3f8;
    background: rgba(190, 227, 248, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.activity {
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #bee3f8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

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

.social-links a {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(190, 227, 248, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    background: rgba(190, 227, 248, 0.2);
    transform: translateY(-2px);
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #4a5568;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: linear-gradient(135deg, #2c5282, #2a4a6b);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

/* ===== GOOGLE FORMS INTEGRATION ===== */
.google-form-link {
    position: relative;
    overflow: hidden;
}

.google-form-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.google-form-link:hover::before {
    left: 100%;
}

.google-form-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4);
}

/* Indicador visual de link externo */
.google-form-link::after {
    content: '🔗';
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 0.5rem;
}

/* ===== SISTEMA DE NOTIFICAÇÕES (mantido para feedback) ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.notification.error {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.notification.info {
    border-left-color: #17a2b8;
    background: #f8fcff;
}

.notification h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.notification p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estados de loading para formulários */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading .btn {
    position: relative;
}

.form-loading .btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-contact {
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a365d;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(190, 227, 248, 0.1);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .schedule-time {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .activity {
        margin-left: 0;
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .course-card,
    .schedule-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .feature-card:nth-child(2) {
        animation-delay: 0.1s;
    }
    
    .feature-card:nth-child(3) {
        animation-delay: 0.2s;
    }
    
    .feature-card:nth-child(4) {
        animation-delay: 0.3s;
    }
}

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

/* ===== FOCUS STYLES ===== */
*:focus-visible {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .hero-section {
        background: #ffffff;
    }
    
    .feature-card,
    .course-card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #000000;
    }
    
    .btn-secondary,
    .btn-outline {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* ===== PAGE HERO (Internal Pages) ===== */
.page-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="b" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23b)"/></svg>') repeat;
    opacity: 0.3;
}

.page-hero h1 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-hero .hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== CONTENT SECTIONS ===== */
.about-content,
.meetings-content,
.courses-intro,
.courses-detailed,
.contact-content,
.links-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    gap: 3rem;
}

.content-section {
    margin-bottom: 3rem;
}

/* ===== ABOUT PAGE STYLES ===== */
.doctrine-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doctrine-item {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.doctrine-item h3 {
    color: #2c5282;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3182ce;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.timeline-marker {
    position: absolute;
    left: 24px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #3182ce;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #3182ce;
}

.timeline-content h3 {
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===== MEETINGS PAGE STYLES ===== */
.meetings-intro {
    background: #f7fafc;
    padding: 3rem 0;
    text-align: center;
}

.schedule-detailed {
    margin: 4rem 0;
}

.schedule-day {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: white;
    padding: 2rem;
    text-align: center;
}

.day-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.day-subtitle {
    opacity: 0.8;
    font-style: italic;
}

.meetings-list {
    padding: 2rem;
}

.meeting-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.meeting-item:last-child {
    border-bottom: none;
}

.meeting-time {
    text-align: center;
    min-width: 120px;
}

.meeting-time .time {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.meeting-time .duration {
    font-size: 0.9rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.meeting-details h3 {
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.meeting-features {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.feature {
    background: #e6fffa;
    color: #234e52;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.special-events {
    margin: 4rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-info {
    background: #f7fafc;
    padding: 3rem 0;
    margin: 4rem 0;
}

.location-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.location-text li {
    margin-bottom: 0.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.map-placeholder {
    background: #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.meeting-guidelines {
    margin: 4rem 0;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guideline-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guideline-item h3 {
    color: #2c5282;
    margin-bottom: 0.5rem;
}

/* ===== COURSES PAGE STYLES ===== */
.courses-intro {
    background: #f7fafc;
    padding: 4rem 0;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-detailed {
    background: white;
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-header-detailed {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-badge.presencial {
    background: #3182ce;
    color: white;
}

.course-badge.online {
    background: #38a169;
    color: white;
}

.course-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

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

.course-details {
    margin-top: 1.5rem;
}

.detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.curriculum-list {
    list-style: none;
    counter-reset: lesson-counter;
}

.curriculum-list li {
    counter-increment: lesson-counter;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.curriculum-list li::before {
    content: counter(lesson-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #3182ce;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    margin-top: 1rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.topic-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.topic-item h4 {
    color: #2c5282;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.topic-item p {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0;
}

.course-actions {
    padding: 2rem;
    background: #f7fafc;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.additional-resources {
    margin: 4rem 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.testimonials {
    background: #f7fafc;
    padding: 4rem 0;
    margin: 4rem 0;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #4a5568;
}

.testimonial-author strong {
    color: #2c5282;
    font-weight: 600;
}

.testimonial-author span {
    color: #718096;
    font-size: 0.9rem;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.schedule-list {
    list-style: none;
    margin: 1rem 0;
}

.schedule-list li {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c5282;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.quick-contact {
    margin: 4rem 0;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quick-contact-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.social-media-section {
    background: #f7fafc;
    padding: 4rem 0;
    margin: 4rem 0;
}

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

.social-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.social-icon img {
    width: 48px;
    height: 48px;
}

.social-content h3 {
    margin-bottom: 0.5rem;
}

.directions-section {
    margin: 4rem 0;
}

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

.directions-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.directions-text li {
    margin-bottom: 0.5rem;
}

.map-container {
    display: flex;
    align-items: center;
}

.map-content {
    text-align: center;
}

.map-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== LINKS PAGE STYLES ===== */
.links-category {
    margin: 4rem 0;
}

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

.link-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.link-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.link-tag {
    background: #3182ce;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.sub-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.sub-links a {
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sub-links a:hover {
    background: #e2e8f0;
}

.course-materials {
    margin: 2rem 0;
}

.material-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.material-links {
    margin-top: 1.5rem;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.material-item:last-child {
    border-bottom: none;
}

.material-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.material-info {
    flex: 1;
}

.material-info strong {
    color: #2c5282;
    display: block;
    margin-bottom: 0.3rem;
}

.material-info p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.app-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-stores {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.app-stores a {
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.app-stores a:hover {
    background: #e2e8f0;
}

.contact-section {
    background: #f7fafc;
    padding: 3rem 0;
    margin: 4rem 0;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.note {
    background: #e6fffa;
    border-left: 4px solid #38a169;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
}

/* ===== RESPONSIVE ADJUSTMENTS FOR INTERNAL PAGES ===== */
@media (max-width: 768px) {
    .contact-grid,
    .course-content-grid,
    .location-details,
    .directions-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .meeting-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        left: 9px;
    }
    
    .cta-buttons,
    .contact-buttons,
    .hero-buttons {
        justify-content: center;
    }
    
    .course-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .social-card {
        flex-direction: column;
        text-align: center;
    }
    
    .material-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Estilos responsivos para formulários */
    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .inscription-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .main-navigation,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .hero-section,
    .page-hero,
    .features-section,
    .courses-section,
    .schedule-section {
        padding: 2rem 0;
        background: white !important;
    }
    
    .feature-card,
    .course-card,
    .schedule-card,
    .link-card,
    .contact-method,
    .resource-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ======================================
   RESPONSIVIDADE GERAL - BREAKPOINTS
   ====================================== */

/* Smartphones Pequenos (320px - 480px) */
@media only screen and (max-width: 480px) {
    :root {
        --space-xs: 0.25rem;
        --space-sm: 0.5rem;
        --space-md: 0.75rem;
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-xxl: 2rem;
    }
    
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .container {
        padding: 0 var(--space-sm);
        max-width: 100%;
    }
    
    /* Header responsivo */
    header {
        padding: var(--space-sm) 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    nav ul {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    nav a {
        padding: var(--space-xs) var(--space-sm);
        font-size: 14px;
    }
    
    /* Cards em coluna única */
    .feature-grid,
    .courses-grid,
    .schedule-grid,
    .links-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Botões mais compactos */
    .btn,
    .cta-button {
        padding: var(--space-sm) var(--space-md);
        font-size: 14px;
        min-height: 44px; /* Altura mínima para touch */
    }
    
    /* Textos menores */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    /* Hero section compacto */
    .hero {
        padding: var(--space-lg) 0;
        text-align: center;
    }
    
    .hero h1 {
        margin-bottom: var(--space-sm);
    }
}

/* Tablets Portrait (481px - 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    :root {
        --space-xs: 0.375rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-xxl: 2.5rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Grid de 2 colunas para tablets */
    .feature-grid,
    .courses-grid,
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Logo um pouco maior */
    .logo img {
        height: 50px;
    }
    
    /* Navigation horizontal */
    nav ul {
        gap: var(--space-md);
    }
    
    /* Textos intermediários */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Tablets Landscape e Desktop Pequeno (769px - 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
        max-width: 95%;
    }
    
    /* Grid de 3 colunas */
    .feature-grid,
    .courses-grid,
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Logo tamanho normal */
    .logo img {
        height: 60px;
    }
    
    /* Navigation com mais espaçamento */
    nav ul {
        gap: var(--space-lg);
    }
}

/* Desktop (1025px - 1440px) */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--space-xl);
    }
    
    /* Grid otimizado para desktop */
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .courses-grid,
    .schedule-grid,
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Hero section mais espaçoso */
    .hero {
        padding: var(--space-xxl) 0;
    }
    
    /* Seções com mais padding */
    section {
        padding: var(--space-xxl) 0;
    }
}

/* Ultra-wide Screens (1441px+) */
@media only screen and (min-width: 1441px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    /* Grid expandido para telas grandes */
    .feature-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .courses-grid,
    .schedule-grid,
    .links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Mais espaçamento vertical */
    section {
        padding: calc(var(--space-xxl) * 1.5) 0;
    }
    
    /* Tipografia maior para telas grandes */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* Altura específica para dispositivos baixos */
@media only screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: var(--space-md) 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }
    
    section {
        padding: var(--space-lg) 0;
    }
}

/* Ajustes para impressão */
@media print {
    * {
        background: white !important;
        color: black !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    nav,
    .social-links,
    .cta-button {
        display: none !important;
    }
    
    .feature-grid,
    .courses-grid,
    .schedule-grid,
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}