/* =========================================
   CARREGAR A FONTE OFICIAL (GOTHAM ROUNDED)
   ========================================= */
@font-face {
    font-family: 'Gotham Rounded';
    src: url("../fonts/GothamRounded-Book.e40570a322c8.otf") format('opentype');
    font-weight: 400; /* Peso Normal */
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: url("../fonts/GothamRounded-Medium.4518b6f067e2.otf") format('opentype');
    font-weight: 500; /* Peso Médio */
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Rounded';
    src: url("../fonts/GothamRounded-Bold.a17abd0604f2.otf") format('opentype');
    font-weight: 700; /* Peso Negrito */
    font-style: normal;
}

/* =========================================
   SISTEMA DE TEMAS E VARIÁVEIS BASE
   ========================================= */
:root {
    --azul-etcetera: #50BCC5;
    --laranja-saltimbanco: #F7971D;
    --cinza-escuro: #333333;
    --fundo-site: #F4F5F7;
    --cor-cartao: #ffffff;
    --borda-cartao: #dce1e6;
}

[data-theme="dark"] {
    --fundo-site: #121212;
    --cinza-escuro: #f4f5f7;
    --cor-cartao: #1e1e1e;
    --borda-cartao: #333333;
}

/* =========================================
   FIX DO SCROLL E BARRA PERSONALIZADA
   ========================================= */
html, body {
    overflow-x: clip; 
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--fundo-site); }
::-webkit-scrollbar-thumb { background: var(--azul-etcetera); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--laranja-saltimbanco); }

html { scroll-behavior: smooth; }

body {
    font-family: 'Gotham Rounded', sans-serif; 
    color: var(--cinza-escuro);
    margin: 0;
    padding: 0;
    background-color: var(--fundo-site);
    transition: background-color 0.3s ease, color 0.3s ease; 
}

/* =========================================
   CABEÇALHO E BARRA DE NAVEGAÇÃO
   ========================================= */
header { 
    background-color: var(--cor-cartao); 
    padding: 15px 60px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: background-color 0.3s ease; 
}

header nav { display: flex; align-items: center; gap: 30px; }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { 
    color: var(--cinza-escuro); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 700; 
    letter-spacing: 1px; 
    transition: color 0.3s; 
}
.nav-links a:hover { color: var(--laranja-saltimbanco); }

.nav-actions { display: flex; align-items: center; gap: 15px; }

.search-box { 
    display: flex; 
    align-items: center; 
    background-color: var(--fundo-site); 
    border-radius: 20px; 
    padding: 8px 15px; 
    transition: all 0.4s ease; 
    width: 130px; 
}

.search-box:focus-within {
    width: 220px;
    box-shadow: 0 0 0 2px var(--azul-etcetera);
}

.search-box input { 
    border: none; 
    background: transparent; 
    font-family: 'Gotham Rounded', sans-serif; 
    font-size: 0.85rem; 
    outline: none; 
    width: 100%; 
    color: var(--cinza-escuro); 
}

.search-icon svg { width: 16px; height: 16px; fill: var(--cinza-escuro); transition: fill 0.3s; }
.search-box:hover .search-icon svg { fill: var(--laranja-saltimbanco); }

.theme-btn { 
    background: transparent; 
    border: 1px solid var(--borda-cartao); 
    border-radius: 50%; 
    width: 35px; 
    height: 35px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    color: var(--cinza-escuro); 
}
.theme-btn:hover { 
    background: var(--fundo-site); 
    transform: scale(1.05); 
}

/* O SEGREDO DOS ÍCONES (ESCONDE O SOL NO MODO CLARO) */
.icon-sun { display: none; } 
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }


/* =========================================
   ESTRUTURA DO HERO
   ========================================= */
.hero-container {
    position: relative;
    width: 100%;
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000; 
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); 
    z-index: 5; 
}

.hero-overlay {
    position: absolute;
    z-index: 10; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none; 
}

.hero-overlay * { pointer-events: auto; }
.hero-slogan { color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }
.hero-location { color: #ffffff; font-weight: 500;}
.hero-socials a svg { filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7)); }

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
    background: rgba(255, 255, 255, 0.15); color: white; border: none;
    width: 45px; height: 45px; border-radius: 50%; font-size: 1.5rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.4); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* =========================================
   CABEÇALHOS GENÉRICOS
   ========================================= */
.escolas-header { text-align: center; padding: 30px 20px 20px 20px; }
.escolas-header h1 { color: var(--azul-etcetera); text-transform: uppercase; letter-spacing: 3px; font-size: 2rem; margin-bottom: 15px; }
.escolas-header p { 
    color: var(--cinza-escuro); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto; 
    transition: color 0.3s ease;
}

/* =========================================
   RODAPÉ (SEMPRE ESCURO)
   ========================================= */
footer { 
    background-color: #1a1a1a; 
    color: #ffffff; 
    padding: 30px 20px 15px 20px; 
    margin-top: 40px; 
    border-top: none;
}

.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 20px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    padding-bottom: 20px; 
}

.footer-col { flex: 1; min-width: 250px; text-align: center; }
.footer-col h4 { color: var(--azul-etcetera); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; } 

.footer-col p, .footer-col a { 
    color: #aaaaaa; 
    font-size: 0.9rem; 
    line-height: 1.3; 
    text-decoration: none; 
    display: block; 
    margin-bottom: 4px; 
    transition: color 0.3s; 
}
.footer-col a:hover { color: var(--laranja-saltimbanco); }

.footer-bottom { 
    max-width: 1200px; margin: 15px auto 0 auto; text-align: center; 
    color: #777777; font-size: 0.8rem; line-height: 1.5; 
}
.footer-bottom a { color: #aaaaaa; text-decoration: none; margin: 0 5px; }
.footer-bottom a:hover { color: var(--laranja-saltimbanco); }

/* A TRAVA DE SEGURANÇA DO LOGÓTIPO DO RODAPÉ */
.footer-logo {
    height: 35px;
    width: auto;
    max-width: 100%; 
    margin-bottom: 5px;
    filter: brightness(0) invert(1) opacity(0.8); 
    transition: filter 0.3s ease;
}
.footer-logo:hover { filter: brightness(0) invert(1) opacity(1); }

/* =========================================
   ELEMENTOS GLOBAIS E BOTÕES
   ========================================= */
.icon-svg { width: clamp(20px, 2vw, 24px); height: clamp(20px, 2vw, 24px); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-mini-logo { max-width: clamp(80px, 8vw, 140px); margin-bottom: 20px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }

.btn-saber-mais {
    display: inline-block;
    padding: 10px 25px;
    color: var(--azul-etcetera); 
    border: 2px solid var(--azul-etcetera); 
    background-color: transparent; 
    border-radius: 25px; 
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-saber-mais:hover {
    background-color: var(--azul-etcetera); 
    color: #ffffff; 
    box-shadow: 0 4px 12px rgba(80, 188, 197, 0.4); 
    transform: translateY(-2px); 
}

/* =========================================
   ESTILO E CARROSSEL DOS CARTÕES DE PROJETOS
   ========================================= */
.project-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    /* Ajustámos a transição para garantir que o z-index não atrasa */
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s; 
    display: block;
    color: inherit;
    text-decoration: none;
    border-bottom: 6px solid var(--cor-projeto, #50BCC5);
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px) !important;
    z-index: 50 !important;
    /* A EXATA MESMA SOMBRA DOS ESPETÁCULOS, FORÇADA COM !IMPORTANT */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22), 0 10px 30px rgba(var(--cor-projeto-rgb, 80, 188, 197), 0.6) !important;
    border-bottom: 6px solid var(--cor-projeto, #50BCC5) !important;
}

.card-carousel {
    position: relative;
    width: 100%;
    height: 250px; 
    overflow: hidden; 
    border-radius: 12px 12px 0 0; 
    background-color: var(--fundo-site); 
}

.card-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out; 
}

.card-track img {
    min-width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: center; 
}

.card-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.6); 
    color: var(--cinza-escuro); border: none; width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
    z-index: 2; transition: background 0.3s, transform 0.2s;
}

.card-btn:hover { background: rgba(255, 255, 255, 1); transform: translateY(-50%) scale(1.1); }
.card-btn.prev { left: 10px; }
.card-btn.next { right: 10px; }

/* =========================================================
   RESPONSIVIDADE (APENAS TELEMÓVEIS E TABLETS)
   ========================================================= */
@media (max-width: 900px) {
    header { padding: 15px; flex-direction: column; gap: 15px; }
    header nav { flex-direction: column; width: 100%; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px 15px; }
    .nav-actions { width: 100%; justify-content: center; max-width: 350px; }
    
    .search-box { 
        margin-left: 0; 
        flex: 1; 
        min-width: 200px; 
        max-width: none; 
    }
    .search-box:focus-within { width: 100%; }
    .theme-btn { margin-left: 5px; flex-shrink: 0; }
}

@media (max-width: 768px) {
    header { margin-bottom: 0; padding-bottom: 10px; }
    .hero-container { height: 60vh !important; min-height: 400px !important; margin-top: 0 !important; }
    .carousel-slide img { object-fit: cover !important; object-position: center bottom !important; }
    .carousel-btn { width: 35px; height: 35px; font-size: 1.2rem; }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .hero-slogan { font-size: 1.6rem !important; margin: 10px 0 !important; text-align: center; }
    .hero-mini-logo { max-width: 80px !important; margin-bottom: 10px !important; }
    .hero-location { font-size: 0.8rem !important; margin-bottom: 10px !important; }
    .hero-socials { gap: 15px !important; }
    footer { padding: 20px 15px 10px 15px; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-bottom: 15px;}
    .footer-col h4 { margin-bottom: 5px; margin-top: 5px; }
    .footer-col p, .footer-col a { margin-bottom: 2px; }
}

/* =========================================
   PÁGINA DE DETALHE DA PEÇA (MODELO)
   ========================================= */
.peca-hero { position: relative; height: 50vh; min-height: 350px; background-color: var(--cinza-escuro); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; margin-bottom: 50px; }
.peca-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.peca-titulo { color: #ffffff; font-size: 3.5rem; margin: 0; text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 4px 15px rgba(0,0,0,0.8); position: relative; z-index: 2; }

.peca-content-wrapper { max-width: 1200px; margin: 0 auto 100px auto; padding: 0 20px; display: flex; gap: 50px; align-items: flex-start; }
.peca-main { flex: 1.8; }
.peca-main h2 { color: var(--azul-etcetera); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 25px; border-bottom: 2px solid var(--borda-cartao); padding-bottom: 10px; transition: border-color 0.3s ease; }
.peca-texto p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; color: var(--cinza-escuro); transition: color 0.3s ease; }
.mt-40 { margin-top: 50px; }

.peca-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.foto-box { background-color: var(--cor-cartao); border: 2px dashed var(--borda-cartao); height: 200px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #aaa; font-weight: bold; letter-spacing: 1px; transition: all 0.3s ease; }

.peca-sidebar { flex: 1; position: sticky; top: 100px; }
.info-card { background-color: var(--cor-cartao); border: 1px solid var(--borda-cartao); border-radius: 16px; padding: 35px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: background-color 0.3s ease, border-color 0.3s ease; }
.info-card h3 { color: var(--cinza-escuro); text-transform: uppercase; margin-top: 0; margin-bottom: 25px; font-size: 1.3rem; text-align: center; transition: color 0.3s ease; }
.info-list { list-style: none; padding: 0; margin: 0 0 35px 0; }
.info-list li { margin-bottom: 18px; font-size: 1rem; color: var(--cinza-escuro); border-bottom: 1px solid var(--fundo-site); padding-bottom: 12px; line-height: 1.5; transition: color 0.3s ease, border-color 0.3s ease; }
.info-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-list li strong { color: var(--azul-etcetera); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

.cta-sidebar { text-align: center; margin-top: 20px; }
.btn-reservar { display: inline-flex; justify-content: center; align-items: center; background-color: var(--laranja-saltimbanco); color: #ffffff; text-decoration: none; padding: 16px 20px; border-radius: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; width: 100%; box-sizing: border-box; transition: all 0.3s ease; }
.btn-reservar:hover { background-color: #e0861a; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(247, 151, 29, 0.35); }

@media (max-width: 850px) { 
    .peca-content-wrapper { flex-direction: column; gap: 40px; } 
    .peca-sidebar { width: 100%; position: static; } 
    .peca-titulo { font-size: 2.2rem; padding: 0 15px; } 
    .peca-hero { height: 40vh; margin-bottom: 30px; } 
}

/* =========================================
   SECÇÃO CTA MODERNA (CARTÃO FLUTUANTE)
   ========================================= */
.modern-cta-section {
    padding: 0 20px; 
    background-color: var(--fundo-site);
    transition: background-color 0.3s ease;
}

.modern-cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--azul-etcetera) 0%, #3a9ea6 100%);
    border-radius: 24px; 
    padding: 70px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(80, 188, 197, 0.25); 
    position: relative;
    overflow: hidden; 
}

.modern-cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.modern-cta-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.modern-cta-card h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2; 
}

.modern-cta-card p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.btn-cta-modern {
    display: inline-block;
    padding: 16px 45px;
    background-color: #ffffff;
    color: var(--azul-etcetera);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.btn-cta-modern:hover {
    transform: translateY(-3px);
    background-color: var(--laranja-saltimbanco); 
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(247, 151, 29, 0.3); 
}

@media (max-width: 768px) {
    .modern-cta-card {
        padding: 50px 20px;
        border-radius: 20px;
    }
    .modern-cta-card h2 { font-size: 1.6rem; }
    .modern-cta-card p { font-size: 1rem; }
    .btn-cta-modern { padding: 14px 30px; font-size: 1rem; }
}

#seccao-natal {
    scroll-margin-top: 100px;
}