/* Importação de uma fonte bonita do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Resets e Estilos Globais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}


/* --- ESTILO DO SELETOR DE IDIOMA NO TOPO (ATUALIZADO PARA IMAGENS) --- */
.language-selector {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 100; 
    background-color: #fcf3e4;
    padding: 8px 12px; /* Aumentei um pouco o padding */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex; /* Adicionado para alinhar as bandeiras */
    gap: 12px; /* Adicionado para espaçar as bandeiras */
}

/* NOVA REGRA: Centraliza o seletor nas páginas internas */
.pagina-interna .language-selector {
    right: 50%;
    transform: translateX(50%);
}

.language-selector a {
    display: block; /* Garante que o link ocupe o espaço da imagem */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.language-selector a:hover {
    opacity: 1;
    transform: scale(1.1); /* Efeito de zoom sutil */
}
.language-selector img {
    width: 32px; /* Largura da bandeira */
    height: auto;
    display: block; /* Remove espaços extras abaixo da imagem */
}


/* Animação de Fade In para o texto */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- SEÇÃO HERO COM CROSS-FADE --- */

.hero-section {
    position: relative;
    height: 60vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image-after);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-section.show-after::after {
    opacity: 1;
}

/* Estilo para o Logo na Seção Hero */
.hero-logo {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 90%;
    height: auto;
    margin-bottom: 15px;
}

/* Garante que o texto e o botão fiquem sempre na camada de cima */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: #00a896;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #028173;
}

/* Seções de Conteúdo (Contato, Navegação e Calendário) */
.contato-section,
.navegacao-section,
.calendario-section {
    padding: 5px 5px;
    text-align: center;
}

.navegacao-section {
    background-color: #f9f9f9;
}

.contato-section h2,
.navegacao-section h2 {
    margin-bottom: 10px;
}

.social-links,
.map-links {
    padding: 10px 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-button {
    display: inline-block;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    min-width: 150px;
}

.whatsapp { background-color: #25D366; }
.instagram { background-color: #E4405F; }

.map-button {
    display: inline-block;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    min-width: 220px;
    transition: transform 0.2s ease;
}
.map-button:hover {
    transform: scale(1.05);
}
.google-maps { background-color: #4285F4; }
.waze { background-color: #33ccff; }


/* --- ESTILOS DO CALENDÁRIO --- */

.calendario-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 30px; }
.mes { flex: 1 1 320px; max-width: 350px; background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.mes h3 { margin-bottom: 20px; color: #005f73; }
.dias-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dia, .dia-semana, .dia-vazio { display: flex; justify-content: center; align-items: center; height: 40px; border-radius: 50%; font-size: 1rem; font-weight: bold; }
.dia-semana { font-weight: bold; font-size: 0.9rem; }
.dia.livre { background-color: #2ecc71; color: #fff; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; }
.dia.livre:hover { background-color: #25a25a; transform: scale(1.1); }
.dia.ocupado { background-color: #e74c3c; color: #fff; text-decoration: line-through; text-decoration-color: #f2f2f2; cursor: not-allowed; }
.dia.pendente { background-color: #f39c12; color: #fff; cursor: help; }
.dia.passado { background-color: #e9ecef; color: #adb5bd; cursor: not-allowed; text-decoration: line-through; }
.legenda { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 25px; margin-top: 20px; }
.legenda-item { display: flex; align-items: center; gap: 8px; font-weight: bold; }
.legenda .cor { width: 20px; height: 20px; border-radius: 50%; }
.legenda .livre { background-color: #2ecc71; }
.legenda .ocupado { background-color: #e74c3c; }
.legenda .pendente { background-color: #f39c12; }

/* Navegação da página Calendário */
.main-nav { background-color: #fff; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); flex-wrap: wrap; gap: 10px; }
.nav-brand { font-weight: bold; font-size: 1.5rem; color: #005f73; text-decoration: none; }
.nav-link { font-weight: bold; color: #00a896; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }

/* --- ESTILOS DA PÁGINA GUIA DO HÓSPEDE --- */
.content-page { max-width: 800px; margin: 20px auto; padding: 20px; text-align: left; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.content-page h1, .content-page h2, .content-page h3 { color: #005f73; margin-top: 20px; margin-bottom: 10px; }
.content-page ul { padding-left: 20px; }
.content-page ul ul { margin-top: 10px; }
.content-page hr { margin: 30px 0; border: 0; border-top: 1px solid #eee; }
.guia-botoes { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin: 20px 0; }
.guia-botao { 
    display: inline-block;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: filter 0.3s ease;
}
.guia-botao:hover {
    filter: brightness(90%);
}
.wifi-container { display: flex; align-items: center; justify-content: space-between; }
.qrcode-wifi { max-width: 100px; height: auto; }
.qr-instruction { display: block; font-size: 0.9em; color: #777; margin-top: 5px; }

/* --- CORES DOS BOTÕES DO GUIA --- */
#abre-modal-telefones {
    background-color: #f9a825;
}
#abre-modal-van {
    background-color: #4caf50;
}
#abre-modal-academia {
    background-color: #e91e63;
}
#abre-modal-fotos {
    background-color: #2196f3;
}


/* --- ESTILOS DA JANELA MODAL --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-conteudo { background-color: #fefefe; margin: 10% auto; padding: 20px 30px; border-radius: 8px; width: 90%; max-width: 500px; position: relative; animation-name: animatetop; animation-duration: 0.4s; }
@keyframes animatetop { from {top: -300px; opacity: 0} to {top: 0; opacity: 1} }
.modal-fechar {
    color: #e74c3c; 
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}
.modal-fechar:hover,
.modal-fechar:focus {
    color: #c0392b;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}
.lista-telefones li { list-style: none; padding: 10px 0; border-bottom: 1px solid #eee; }
.lista-telefones li:last-child { border-bottom: none; }
.lista-telefones small { color: #6c757d; }
.link-telefone { color: inherit; text-decoration: none; font-weight: bold; pointer-events: none; cursor: default; }
.lista-telefones a[target="_blank"] { color: #00a896; text-decoration: underline; font-weight: bold; }
.lista-telefones a[target="_blank"]:hover { color: #005f73; }
.modal-imagem {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
}

/* Rodapé */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* ======================================================= */
/* ====== MEDIA QUERIES PARA RESPONSIVIDADE (MOBILE) ===== */
/* ======================================================= */

@media (max-width: 768px) {
    .hero-section { height: 70vh; }
    .hero-content p { font-size: 1.1rem; }
    .main-nav { flex-direction: column; gap: 15px; }
    
    .calendario-section, .contato-section, .navegacao-section { padding: 2px 2px; }
    .contato-section h2, .navegacao-section h2 { margin-bottom: 2px; }
    .contato-section p, .navegacao-section .navegacao-subtitulo { display: none; }
    .social-links,.map-links { padding: 2px 2px; display: flex; justify-content: center; flex-wrap: nowrap; margin-top: 0; }
    .social-button, .map-button { flex: 1; min-width: 0; padding: 5px 5px; font-size: 0.8rem; text-align: center; }
    .cta-button { padding: 5px 5px; font-size: 0.85rem; }
    
    .qrcode-wifi,
    .qr-instruction {
        display: none;
    }
    .wifi-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .link-telefone {
        pointer-events: auto;
        color: #4285F4;
        text-decoration: underline;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .hero-section { height: 65vh; }
    .mes { padding: 15px; }
    .social-button, .map-button { flex: 1; }
}