/* --- 1. CONFIGURAÇÕES BASE & SCROLL LOCK --- */
@font-face {
  font-family: 'Termina'; src: url('fonts/Termina-Bold.otf') format('opentype'); font-weight: bold; font-style: normal;
}
:root {
    --cor-principal: #c9b780; --cor-noturno: #242936; --cor-petrol: #304c5d; 
    --cor-bege: #eeeedf; --cor-branco-puro: #FFFFFF;
    --font-titulos: 'Termina', sans-serif; --font-texto: 'Montserrat', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

html { width: 100%; overflow-x: hidden; }
body { 
    font-family: var(--font-texto); line-height: 1.6; 
    background-color: var(--cor-bege); color: var(--cor-noturno); 
    width: 100%; overflow-x: hidden; position: relative; 
}

/* FIX: REMOVIDO 'height: 100%' para evitar o salto para o topo */
html.no-scroll, body.no-scroll {
    overflow: hidden !important; 
    touch-action: none; 
    padding-right: 0px;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-titulos); }
a { text-decoration: none !important; color: inherit; }

/* --- 2. NAVBAR & MENU --- */
.navbar { 
    background-color: var(--cor-bege); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.navbar .container { 
    display: flex; justify-content: space-between; align-items: center; 
    max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; 
}

.logo { display: flex; align-items: center; z-index: 1002; }
.logo-image { height: 45px; width: auto; margin-right: 12px; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--cor-noturno); }
.logo-text span { color: var(--cor-principal); }

.nav-center { position: absolute; left: 50%; transform: translateX(-50%); height: 100%; display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.nav-links li a { font-size: 0.85rem; color: var(--cor-noturno) !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 0; position: relative; transition: color 0.3s; }
.nav-links li a:hover { color: var(--cor-principal) !important; }
.nav-links li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 50%; background-color: var(--cor-principal); transition: 0.3s; transform: translateX(-50%); }
.nav-links li a:hover::after { width: 100%; }

/* --- DIREITA: IDIOMA E HAMBÚRGUER --- */
.right-section { display: flex; align-items: center; gap: 20px; z-index: 2005; position: relative; }

.lang-switcher { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 700; cursor: pointer; position: relative; z-index: 2006; }
.lang-option { 
    color: var(--cor-noturno); opacity: 0.5; transition: 0.3s; 
    padding: 10px; /* Área de toque generosa */
    pointer-events: auto; 
}
.lang-option:hover { opacity: 1; }
.lang-option.active { opacity: 1; color: var(--cor-principal); }
.separator { color: var(--cor-noturno); opacity: 0.3; }

.hamburger { display: none; cursor: pointer; border: none; background: none; padding: 0; z-index: 2006; position: relative; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--cor-noturno); margin: 6px 0; transition: 0.3s; }
.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background: var(--cor-principal); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background: var(--cor-principal); }

/* --- 3. HERO --- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.hero-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(36, 41, 54, 0.5); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 900px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; }
.cta-button { background-color: var(--cor-principal); color: var(--cor-noturno); padding: 15px 40px; border-radius: 5px; font-weight: 700; animation: pulseGlow 3s infinite; display: inline-block; cursor: pointer; border: none; }

/* --- 4. SECTIONS --- */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; position: relative; }
.about-image { grid-column: 1 / 9; grid-row: 1; border-radius: 12px; overflow: hidden; max-height: 550px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-content { grid-column: 7 / 13; grid-row: 1; z-index: 2; background: white; padding: 3.5rem; border-radius: 10px; box-shadow: 0 15px 45px rgba(0,0,0,0.15); }

.services-section { background-color: var(--cor-petrol); padding: 100px 0; color: white; }
.services-section h2 { text-align: center; margin-bottom: 3rem; color: white; }
.services-carousel-container { position: relative; padding: 0 80px; }
.services-viewport { overflow: hidden; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.3); }
.services-track { display: flex; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.services-card-wrapper { width: 100%; flex-shrink: 0; }

.service-item { position: relative; height: 580px; display: flex; align-items: flex-end; overflow: hidden; }
.service-item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(36, 41, 54, 0.95) 20%, transparent 100%); z-index: 2; }
.service-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: 10s linear; }
.services-card-wrapper.is-active .service-image img { transform: scale(1.2); }
.service-content { position: relative; z-index: 3; padding: 45px; background: rgba(36, 41, 54, 0.4); backdrop-filter: blur(10px); width: 100%; }
.service-content h3 { font-size: 2.2rem; color: var(--cor-principal); margin-bottom: 10px; }
.service-content p { margin-bottom: 35px; color: var(--cor-bege); line-height: 1.6; }
.service-content ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.service-content li::before { content: '✔'; color: var(--cor-principal); margin-right: 8px; font-weight: bold; }
.services-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: var(--cor-principal); width: 55px; height: 55px; border-radius: 50%; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; border: none; font-size: 1.2rem; pointer-events: auto; }
.services-arrow.prev { left: 15px; } .services-arrow.next { right: 15px; }
.services-dots, .slider-dots { display: none !important; }

/* EQUIPA */
.team-section { background-color: var(--cor-petrol); padding: 80px 20px; color: white; text-align: center; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.team-member { flex: 0 1 260px; background: var(--cor-noturno); padding: 2.5rem 1rem; border-radius: 12px; display: flex; flex-direction: column; align-items: center; min-height: 520px; position: relative; }
.team-card-logo { position: absolute; top: 15px; left: 15px; width: 35px !important; height: auto !important; background: var(--cor-bege); padding: 6px; border-radius: 4px; z-index: 5; }
.team-member h4 { margin-top: 15px; color: white; }
.team-member span { color: var(--cor-principal); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }

/* FIX: REMOVIDO 'line-clamp' para garantir que o texto aparece todo */
.team-member p { 
    color: var(--cor-bege); 
    font-size: 0.85rem; 
    line-height: 1.5; 
    opacity: 0.9; 
    margin-bottom: 20px; 
    display: block; 
    overflow: visible;
}

.team-member .cta-button { margin-top: auto; padding: 10px 20px; font-size: 0.9rem; animation: none; }

.flip-card-container { width: 140px; height: 140px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.team-member:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--cor-principal); overflow: hidden; backface-visibility: hidden; background-color: white; }
.flip-card-back { transform: rotateY(180deg); }
.flip-card-front img, .flip-card-back img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Galeria */
.gallery-section { padding: 100px 0; background-color: var(--cor-bege); }
.bento-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 15px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bento-item { position: relative; overflow: hidden; border-radius: 12px; background: #ddd; cursor: pointer; z-index: 1; touch-action: manipulation; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; pointer-events: none; }
.bento-item:hover img { transform: scale(1.1); }
.bento-item.wide { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }

/* Parceria */
.partners-section-impact { background-color: var(--cor-noturno); padding: 80px 20px; color: white; display: flex; align-items: center; justify-content: center; }
.partner-content { position: relative; z-index: 3; max-width: 600px; text-align: center; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.partner-logo { max-width: 180px !important; height: auto !important; background: white; padding: 10px; border-radius: 8px; margin-bottom: 20px; display: inline-block; }
.voucher-display { border: 2px dashed var(--cor-principal); padding: 20px; margin-top: 20px; background: rgba(0,0,0,0.3); border-radius: 12px; }
.voucher-info strong { color: var(--cor-principal) !important; font-size: 2rem; }

/* Contacto */
.footer { background-color: var(--cor-noturno); color: var(--cor-bege); padding: 80px 20px 40px; }
.footer h2 { text-align: center; margin-bottom: 60px; color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.footer h3 { color: var(--cor-branco-puro); margin-bottom: 1.5rem; font-size: 1.5rem; border-bottom: 2px solid var(--cor-principal); display: inline-block; padding-bottom: 5px; }

.contact-form-area input, .contact-form-area textarea { width: 100%; padding: 15px; margin-bottom: 15px; background-color: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 5px; color: var(--cor-bege) !important; font-family: inherit; }
.contact-form-area input:focus, .contact-form-area textarea:focus { outline: none; border-color: var(--cor-principal); }

.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; text-decoration: none !important; transition: transform 0.3s ease; }
a.contact-item:hover { transform: translateX(5px); opacity: 0.8; }
.icon-box { font-size: 1.2rem; color: var(--cor-principal); min-width: 30px; text-align: center; padding-top: 2px; }
.text-box { color: var(--cor-bege); }
.text-box .label { font-size: 0.75rem; text-transform: uppercase; color: var(--cor-principal); opacity: 0.7; font-weight: 700; display: block; margin-bottom: 2px; letter-spacing: 1px; }
.text-box p { margin: 0; font-size: 1rem; line-height: 1.4; font-weight: 500; }

.social-media { display: flex; gap: 20px; margin-top: 10px; }
.social-media img { width: 30px !important; height: 30px !important; object-fit: contain; transition: transform 0.3s; }
.social-media a:hover img { transform: scale(1.1); }

.map-card-stylish { display: block; position: relative; height: 200px; margin-top: 30px; border-radius: 15px; overflow: hidden; background-image: url('mapa-fundo.png'); background-size: cover; background-position: center; background-color: #3e4452; border: 1px solid rgba(201, 183, 128, 0.3); transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.map-overlay-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(36, 41, 54, 0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--cor-branco-puro); font-weight: 700; gap: 10px; transition: background 0.3s ease; }
.map-icon { font-size: 2rem; color: var(--cor-principal); animation: bounce 2s infinite; }
.map-card-stylish:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(201, 183, 128, 0.2); border-color: var(--cor-principal); }
.map-card-stylish:hover .map-overlay-content { background: rgba(36, 41, 54, 0.3); }

.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; font-size: 0.8rem; opacity: 0.7; }

/* --- 10. MODAL & LIGHTBOX --- */
.modal-overlay, .lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 5000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active, .lightbox-overlay.active { display: flex; }
.modal-content { background: white; padding: 40px; border-radius: 20px; max-width: 450px; width: 90%; text-align: center; position: relative; color: var(--cor-noturno); }
.modal-close, .lightbox-close { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; cursor: pointer; color: #666; }
.modal-logo { position: absolute; top: 20px; left: 20px; width: 40px !important; height: auto !important; z-index: 10; display: block; }
#modal-img { width: 150px !important; height: 150px !important; border-radius: 50%; object-fit: cover; border: 4px solid var(--cor-principal); margin: 20px auto; display: block; animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.lightbox-content { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#lightbox-img { pointer-events: auto; max-width: 90%; max-height: 80vh; width: auto !important; height: auto !important; border: 2px solid var(--cor-principal); border-radius: 5px; box-shadow: 0 0 30px rgba(0,0,0,0.5); object-fit: contain; animation: popIn 0.4s ease; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); border: none; color: white; width: 60px; height: 60px; font-size: 1.8rem; cursor: pointer; border-radius: 50%; display: none; align-items: center; justify-content: center; z-index: 6001; pointer-events: auto; }
.lightbox-overlay.active .lightbox-arrow { display: flex; }
.lightbox-arrow.prev { left: 20px; } .lightbox-arrow.next { right: 20px; }

@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 5px rgba(201,183,128,0.2); } 50% { box-shadow: 0 0 20px rgba(201,183,128,0.5); } 100% { box-shadow: 0 0 5px rgba(201,183,128,0.2); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- 11. MOBILE & TABLET --- */
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-center { position: static; transform: none; height: auto; display: block; } 
    
    .nav-links { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; 
        background: var(--cor-petrol); flex-direction: column; justify-content: center; align-items: center;
        gap: 40px; margin: 0; padding: 0; 
        z-index: 2000; 
        opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; pointer-events: none;
    }
    .nav-links.active { opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links li a { color: white !important; font-size: 1.8rem; font-weight: 700; letter-spacing: 1px; }

    .right-section { z-index: 2005; position: relative; }
    
    .lang-option { color: var(--cor-noturno); }
    .nav-links.active ~ .right-section .lang-option { color: white; }
    .nav-links.active ~ .right-section .separator { color: white; opacity: 0.5; }
    .hamburger.is-active span { background: white; }

    .about-grid { display: flex; flex-direction: column; }
    .about-image { max-height: 300px; width: 100%; }
    .about-content { margin-top: -40px; width: 95%; padding: 2rem; }

    .service-item { height: auto !important; min-height: auto !important; display: flex; flex-direction: column; }
    .service-image { position: relative !important; width: 100%; height: 380px !important; z-index: 1; }
    .service-content { position: relative !important; width: 100%; background: var(--cor-noturno); padding: 30px 20px; backdrop-filter: none; flex-grow: 1; }
    .services-carousel-container { padding: 0 10px; }
    .services-arrow { 
        top: 190px !important; 
        transform: translateY(-50%); 
        background: rgba(201, 183, 128, 0.9) !important; /* Mais visível */
        width: 50px !important; 
        height: 50px !important; 
        z-index: 1000 !important; /* Garante que fica acima da imagem */
        pointer-events: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: none;
    }

    .team-member { width: 90%; max-width: 400px; flex: none; min-height: auto; padding-bottom: 30px; }
    .team-member:hover .flip-card-inner { transform: none !important; }
    
    .bento-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .bento-item.wide { grid-column: span 2; }
    .lightbox-arrow { width: 50px; height: 50px; font-size: 1.5rem; background: rgba(0,0,0,0.7); }
    
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- ESTILOS DOS MODAIS LEGAIS --- */
.legal-content {
    max-width: 600px; /* Um pouco mais largo que o dos treinadores */
    width: 90%;
    text-align: left; /* Texto alinhado à esquerda para leitura fácil */
    padding: 30px;
}

.legal-content h3 {
    text-align: center;
    color: var(--cor-principal);
    margin-bottom: 20px;
}

.legal-text-scroll {
    max-height: 60vh; /* Ocupa no máximo 60% da altura do ecrã */
    overflow-y: auto; /* Adiciona scroll se o texto for longo */
    padding-right: 10px; /* Espaço para a barra de scroll não colar */
    font-size: 0.9rem;
    color: var(--cor-noturno);
}

.legal-text-scroll h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--cor-petrol);
}

/* Scrollbar bonita para o texto legal */
.legal-text-scroll::-webkit-scrollbar { width: 6px; }
.legal-text-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.legal-text-scroll::-webkit-scrollbar-thumb { background: var(--cor-principal); border-radius: 4px; }

/* --- BOTÃO FLUTUANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde Oficial WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px; /* Tamanho do ícone */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3); /* Sombra 3D */
    z-index: 4000; /* Acima de tudo, mas abaixo dos modais (5000) */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important; /* Remove sublinhado se houver */
}

/* Efeito ao passar o rato (Sobe ligeiramente) */
.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: #20b858;
    color: #FFF;
}

/* Ícone FontAwesome centrado */
.whatsapp-float i {
    margin-top: 2px; /* Pequeno ajuste visual */
}

/* Animação de Pulsação (Opcional - chama atenção) */
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: whatsappPulse 3s infinite;
}

/* Ajuste para Mobile (Botão ligeiramente menor e mais para o canto) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}