/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --cor-primaria: #006400; /* Um tom de verde (mude se quiser) */
    --cor-texto: #333;
    --cor-clara: #FFFFFF;
    --cor-fundo: #f4f4f4;
    
    --altura-header: 60px;
    --altura-footer: 65px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: var(--cor-texto);
    
    
}

/* Adicione no topo do seu style.css */
html {
    scroll-behavior: smooth;
}

/* --- (Adicione este novo bloco) --- */
/* --- LAYOUT EM QUADRO (BOXED) --- */
.site-frame {
    /* Define a largura máxima */
    max-width: 700px;
    
    /* Centraliza o quadro na tela */
    margin: 0 auto;
    
    /* Cor de fundo original do site (o "miolo") */
    background-color: var(--cor-fundo);
    
    /* Sombra para dar o efeito de "quadro" */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    
    /* Necessário para o 'position: sticky' funcionar */
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
}


/* --- HEADER FIXO --- */
.header-fixed {
    position: sticky;
    top: 0;
    height: var(--altura-header);
    background-color: var(--cor-primaria);
    color: var(--cor-clara);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-fixed .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}


.header-whatsapp {
    font-size: 1.8rem;
}


/* --- CONTEÚDO PRINCIPAL (Área de rolagem) --- */
.content-wrapper {
    /* Este é o container que rola */
    width: 100%;
}


/* --- SESSÃO STORIES --- */
.stories-section {
    background: var(--cor-clara);
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.stories-section .container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    overflow-x: auto; /* Permite rolar horizontalmente em telas pequenas */

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.story-item {
    text-align: center;
    flex-shrink: 0; /* Impede que os itens encolham */
    width: 100px; /* Largura fixa para cada item */
}

.story-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--cor-primaria);
    padding: 3px;
    margin: 0 auto 5px auto;
    background: #eee;
}

.story-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.story-title {
    font-size: 0.8rem;
    font-weight: 600;
}


/* --- SESSÃO CARDS --- */
.cards-section {
    padding: 30px 0;
}

.cards-grid {
    display: grid;
    gap: 20px;
    
    /* Responsividade: 4 colunas no desktop */
    grid-template-columns: repeat(2, 1fr);
}

.lote-card {
    position: relative; /* Essencial para sobrepor os ícones e título */
    border-radius: 10px;
    overflow: hidden; /* Garante que a imagem e overlays fiquem dentro do card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 450px; /* Altura fixa para o card vertical */
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo preencher o card (corta se necessário) */
    transition: transform 0.3s ease;
    background-color: #000;
}



/* Overlay de Ícones (Direita) */
.card-icon-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.card-icon-overlay a {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--cor-clara);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.card-icon-overlay a:hover {
    background-color: var(--cor-primaria);
}

/* Overlay de Título (Base) */
.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 15px 15px 15px;
    z-index: 10;
    color: var(--cor-clara);
    /* Gradiente para escurecer a base da imagem */
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.card-title-overlay h3 {
    font-size: 1.3rem;
}

/* --- ESTILO DA TARJA DO EMPREENDIMENTO --- */
.card-tag {
    position: absolute;
    top: 0;
    left: 0;
    
    /* Você pode usar a cor primária ou outra cor de destaque */
    background-color: var(--cor-primaria); 
    color: var(--cor-clara);
    
    padding: 6px 14px;
    font-size: 1.1rem;
    font-weight: bold;
    
    /* Adiciona um pequeno corte na diagonal (opcional) */
    border-bottom-right-radius: 10px; 
    
    /* Garante que fique acima da imagem */
    z-index: 11; 
    
    /* Limita a largura para não ficar estranho */
    max-width: 70%; 
    
    /* Caso o texto seja muito longo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- ESTILOS DO TOOLTIP (LEGENDA) --- */

/* 1. Prepara o contexto de posição para o ícone */
.card-icon-overlay a {
    position: relative; /* Essencial para o tooltip se posicionar */
}

/* 2. Cria e estiliza o tooltip (a legenda) */
.card-icon-overlay a[data-tooltip]::after {
    /* Pega o texto do atributo 'data-tooltip' */
    content: attr(data-tooltip); 
    
    /* Posicionamento */
    position: absolute;
    top: 50%; /* Alinha verticalmente com o centro do ícone */
    right: 120%; /* Posiciona 120% à esquerda do ícone */
    transform: translateY(-50%); /* Ajuste fino da centralização vertical */

    /* Estilo da caixa */
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--cor-clara);
    padding: 4px 8px;
    border-radius: 4px;
    
    /* Texto */
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap; /* Garante que o texto não quebre */
    
    /* Animação (escondido por padrão) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100; /* Garante que fique sobre outros elementos */
}

/* 3. Mostra o tooltip ao passar o mouse */
.card-icon-overlay a[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* --- ESTILO DO ÍCONE DE MUTE DO VÍDEO --- */

.video-mute-toggle {
    position: absolute;
    /* Posição: Canto inferior direito do card */
    bottom: 15px;
    right: 15px; 
    
    z-index: 12; /* Acima do vídeo, mas abaixo dos tooltips */
    
    /* Estilo do ícone */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    
    cursor: pointer;
    transition: opacity 0.2s;
    
    /* Começa um pouco transparente */
    opacity: 0.7;
}

/* Fica 100% visível ao passar o mouse */
.lote-card:hover .video-mute-toggle {
    opacity: 1;
}

/* --- FOOTER FIXO --- */
.footer-fixed {
    position: sticky;
    bottom: 0;
    /* Removemos a altura fixa para caber a nova barra */
    height: auto; 
    background-color: var(--cor-clara);
    color: var(--cor-texto);
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    
    /* Organiza: Ícones em cima, Créditos em baixo */
    display: flex;
    flex-direction: column;
}

/* A área dos ícones mantém a altura original */
.footer-fixed .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--altura-footer); /* 65px */
    width: 100%;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #555;
}

.footer-item i {
    font-size: 1.4rem;
}

.footer-item:hover,
.footer-item.active { /* Classe 'active' para a página atual */
    color: var(--cor-primaria);
}

/* Nova barra de créditos */
.footer-credits {
    background-color: #000000; /* Fundo Preto */
    color: #FFFFFF;
    text-align: center;
    font-size: 0.65rem; /* Tamanho mínimo legível */
    padding: 3px 0;     /* Espaçamento mínimo */
    width: 100%;
    letter-spacing: 0.5px;
}

.footer-credits a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-credits a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- ESTILOS DO POPUP (MODAL) --- */

/* O fundo escuro (overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    
    /* Centraliza o conteúdo */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Começa oculto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estado ativo (quando o JS mostrar) */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* A caixa de conteúdo do popup */
.modal-content {
    background-color: #F1EBE5; /* Tom de bege claro */
    color: #5D4037; /* Tom de marrom escuro */
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* Para o conteúdo rolar em telas pequenas */
    max-height: 90vh;
    overflow-y: auto;
}

/* Botão de fechar (X) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #777;
    cursor: pointer;
}

/* 1. Topo */
.modal-header {
    text-align: center;
    border-bottom: 2px solid rgba(93, 64, 55, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.modal-header h2 { /* Cidade Universitária */
    font-size: 1.8rem;
    font-weight: 600;
}
.modal-header h3 { /* Q 22 L 10 */
    font-size: 2.2rem;
    font-weight: 700;
    margin: -5px 0 10px 0;
}
.modal-header p { /* Proposta de Financiamento */
    font-size: 1.1rem;
    font-weight: 500;
}

/* 2. Opções */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-option {
    display: flex;
    align-items: stretch;
}

.price-months {
    background: #D7CCC8; /* Tom de cinza/bege */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 10px 0 0 10px;
}
.price-months span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4E342E;
    /* Efeito de texto vertical */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.price-details {
    flex-grow: 1;
    background: #EFEBE9; /* Tom de bege mais claro */
    border: 2px solid #D7CCC8;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 15px 20px;
    text-align: center;
}

/* "ENTRADA" e "PARCELAS" */
.price-label {
    display: block;
    font-size: 0.9rem; /* <-- Tamanho menor (seu pedido) */
    font-weight: 500;
    color: #795548;
}

/* Valor */
.price-value {
    display: block;
    font-size: 1.6rem; /* <-- Tamanho maior */
    font-weight: 700;
    color: #5D4037;
    line-height: 1.2;
    /* O "R$" e o valor já estão na mesma linha (seu pedido) */
}

/* "INFORMAÇÕES DE REAJUSTE" */
.price-info {
    font-size: 0.75rem;
    font-weight: 500;
    color: #795548;
    margin-top: 10px;
    display: block;
}

/* Linha divisória */
.price-divider {
    border: none;
    height: 1px;
    background-color: rgba(93, 64, 55, 0.2);
    margin: 12px 0 8px 0; /* Espaçamento */
}

/* 3. Botão de WhatsApp */
.modal-footer {
    margin-top: 25px;
}
.modal-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: #25D366; /* Cor do WhatsApp */
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.modal-whatsapp-btn:hover {
    background-color: #1DA851;
}
.modal-whatsapp-btn i {
    font-size: 1.3rem;
}

/* Ajuste para o botão de proposta da imagem (azul) */
/* Se preferir o azul da imagem, troque a regra acima por esta:
.modal-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: #007BFF;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.modal-whatsapp-btn:hover {
    background-color: #0056b3;
}
.modal-whatsapp-btn i {
    font-size: 1.3rem;
    transform: rotate(-45deg); 
}
*/

/* --- ESTILOS DO POPUP (MODAL) DO MAPA --- */

/* O .modal-content-map é diferente do .modal-content
  porque ele preenche a tela.
*/
.modal-content-map {
    position: relative;
    /* Faz o popup ser grande, mas não 100% da tela */
    width: 90vw; /* 90% da largura da tela */
    height: 80vh; /* 80% da altura da tela */

    max-width: 700px;
    
    background: #fff; /* Cor de fundo caso o mapa demore */
    padding: 0;
    border-radius: 10px;
    overflow: hidden; /* Garante que o iframe fique nos cantos */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* O iframe deve preencher o popup */
#modal-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Botão de fechar flutuante.
  Usamos um estilo diferente para ser visível sobre o mapa.
*/
.modal-close-map {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2010; /* Acima do iframe */
    
    /* Estilo do botão */
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    
    /* Centraliza o "X" */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    padding-bottom: 4px; /* Ajuste fino */
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.modal-close-map:hover {
    background: #fff;
}

/* --- ESTILOS DO POPUP (MODAL) DE LEAD (WhatsApp) --- */

/* Fundo verde. Usamos uma cor do WhatsApp */
.modal-content-lead {
    background: #E5DDD5; /* Fundo clássico de chat */
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden; /* Para o header grudar no topo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* Evita que o modal cresça em telas muito pequenas */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* 1. Header (Barra verde) */
.lead-header {
    background: #075E54; /* Verde escuro do WhatsApp */
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
    position: relative;
}
.lead-header i {
    font-size: 1.5rem;
    margin-right: 10px;
}
/* Botão de fechar (movemos para dentro do header) */
.modal-close-lead {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 0 5px;
    opacity: 0.7;
}
.modal-close-lead:hover {
    opacity: 1;
}

/* 2. Corpo (Onde as mensagens e o form ficam) */
.lead-body {
    padding: 15px;
    overflow-y: auto; /* Permite rolar se o teclado subir */
}

/* Balão de chat "recebido" (branco) */
.whatsapp-bubble-in {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    /* Sombra sutil */
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    text-align: center;
}
.whatsapp-bubble-in strong {
    font-size: 1.1rem;
    color: #333;
    display: block;
}
.whatsapp-bubble-in p {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0 0 0;
}

/* 3. Formulário */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #075E54;
    margin-bottom: 5px;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}
.form-group input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
}

/* Botão de enviar */
.lead-submit-btn {
    background: #25D366; /* Verde "ação" do WhatsApp */
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.lead-submit-btn:hover {
    background: #1DA851;
}

/* --- ESTILO DO BOTÃO DE LEAD (SUCESSO) --- */

.lead-submit-btn.btn-success-state {
    /* Mude para um verde mais "calmo" para indicar sucesso */
    background-color: #1DA851; 
    cursor: not-allowed; /* Impede cliques repetidos */
}

/* --- ESTILOS DO POPUP (MODAL) DE VÍDEO --- */

/* A classe .modal-overlay (fundo escuro) já existe e será reutilizada */

.modal-content-video {
    position: relative;
    width: 90vw; /* Ocupa 90% da largura da tela */
    
    /* Trava a proporção em 16:9 (formato de vídeo) */
    aspect-ratio: 16 / 9; 
    
    /* Limita o tamanho máximo em telas gigantes */
    max-width: 700px; 
    
    background: #000; /* Fundo preto para o player */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

#modal-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Botão de fechar (flutuante) */
.modal-close-video {
    position: absolute;
    /* Coloca o botão "para fora" do vídeo */
    top: 5px;
    right: 5px;
    z-index: 2010; 
    
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    padding-bottom: 3px;
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- ESTILOS DO POPUP DE STORIES --- */

.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Tela cheia */
    background: #000; /* Fundo preto */
    z-index: 3000;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Começa oculto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.story-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 1. Barras de Progresso (Pips) */
.story-pips-container {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    
    display: flex;
    gap: 4px;
    height: 3px;
    z-index: 3010;
}
.story-pip {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}
.story-pip.active {
    background: #FFFFFF;
}

/* 2. Header (Fechar) */
.story-header {
    position: absolute;
    top: 30px; /* Abaixo dos pips */
    right: 15px;
    z-index: 3010;

    /* Layout para o link e os botoes */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-header-controls {
    display: flex;
    gap: 15px;
    margin-left: auto; 
}
.story-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* 3. Player de Vídeo */
#story-video-player {
    width: 100%;
    height: 100%;
    /* Preenche a tela, cortando se necessário */
    object-fit: cover; 
}

/* 4. Zonas de Navegação */
.story-nav-prev, .story-nav-next {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 3005; /* Acima do vídeo, abaixo do header */
    cursor: pointer;
    /* Mantenha-os transparentes para depuração:
    background: rgba(255, 0, 0, 0.1); 
    */
}
.story-nav-prev {
    left: 0;
    width: 40%; /* 40% da esquerda para "anterior" */
}
.story-nav-next {
    right: 0;
    width: 60%; /* 60% da direita para "próximo" */
}

/* 5. Overlay de Pause (para tap-and-hold) */
.story-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3001; /* Logo acima do vídeo */
    /* Este overlay não deve ter cor, 
       ele só captura os eventos de mousedown/touchstart 
    */
}

/* --- ATUALIZAÇÃO DOS ESTILOS DE STORIES --- */

/* 2. Header (Layout atualizado) */
.story-header {
    position: absolute;
    top: 30px; /* Abaixo dos pips */
    left: 15px;
    right: 15px;
    z-index: 3010;
    
    /* Layout para o link e os botões */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Link Superior (Novo) */
#story-cta-link {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: none; /* Começa escondido */
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#story-cta-link.visible {
    display: inline-flex;
}
#story-cta-link i {
    font-size: 0.8rem;
}

/* Controles (Mute e Fechar) */
.story-header-controls {
    display: flex;
    gap: 15px;
}
.story-control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem; /* Ajuste o tamanho do ícone/X */
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    padding: 0;
    line-height: 1;
}
/* O botão de fechar (X) precisa de um ajuste de tamanho */
.js-close-story {
    font-size: 2.5rem; 
}


/* 6. Footer (Novo) */
.story-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    display: flex;
    align-items: center;
    gap: 12px;
    
    padding: 20px;
    z-index: 3010;
    
    /* Gradiente para escurecer o rodapé e facilitar a leitura */
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
#story-footer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}
.story-footer-info {
    color: #fff;
}
.story-footer-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.story-footer-info p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* --- ESTILOS DO "QUADRO" DOS STORIES (DESKTOP) --- */

.story-content-wrapper {
    /* Por padrão (mobile), ele ocupa a tela inteira */
    width: 100%;
    height: 100%;
    
    /* Posição relativa é ESSENCIAL para
       os pips, header, footer, etc. se alinharem */
    position: relative; 
    
    /* Esconde qualquer "vazamento" de vídeo */
    overflow: hidden; 
    
    /* Fundo preto para o caso do vídeo não carregar */
    background: #000; 
}

/* --- ESTILOS DAS PÁGINAS DE CONTEÚDO --- */

/* Adiciona um "respiro" nas páginas de conteúdo */
.page-content {
    padding: 20px;
    background-color: #fff; /* Fundo branco para o conteúdo */
}

/* 1. Título */
.page-header {
    text-align: center;
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.page-header h1 {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin: 0;
}
.page-header p {
    font-size: 1.1rem;
    color: var(--cor-texto);
    max-width: 600px;
    margin: 10px auto 0 auto;
}

.page-section {
    margin-bottom: 40px;
}
.page-section h2 {
    font-size: 1.8rem;
    color: var(--cor-texto);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 2. Wrapper de Vídeo (16:9) */
.video-wrapper-16-9 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.video-wrapper-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 3. Galeria de Fotos */
.photo-gallery {
    display: grid;
    /* 3 colunas no desktop, 2 no tablet, 1 no mobile */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.photo-gallery img:hover {
    transform: scale(1.03);
}

/* 4. Infográfico */
.info-graphic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.info-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}
.info-item i {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 15px;
}
.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 5. Mapa */
.map-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden; /* Garante que o iframe respeite a borda */
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.map-wrapper iframe {
    border: none; /* Remove a borda padrão do iframe */
    width: 100%;
}

/* --- ESTILOS DA PÁGINA FBZ (LINHA DO TEMPO) --- */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    
    /* Cria a linha central (visual) */
    position: relative;
    padding-left: 40px;
    border-left: 3px solid var(--cor-primaria);
}

.timeline-item {
    position: relative;
}

.timeline-year {
    /* O círculo do ano que fica sobre a linha */
    position: absolute;
    left: -58px; /* Metade da largura (40px) + ajuste */
    top: 0;
    
    background: var(--cor-primaria);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--cor-primaria);
}

.timeline-content {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.timeline-content img {
    max-width: 100%;
    width: auto; /* Limita a altura da imagem */
    border-radius: 6px;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--cor-texto);
}

.timeline-content p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}
/* --- AJUSTE PARA ÂNCORAS (Link de Share) --- */

.lote-card {
    /* Diz ao navegador para parar a rolagem 75px ANTES do topo do card,
      deixando espaço para o header (que tem 60px) + uma margem.
    */
    scroll-margin-top: 75px; 
}

/* --- ESTILO DO NOVO BOTÃO WHATSAPP NO CARD --- */

.card-icon-overlay a.js-share-whatsapp {
    background-color: #25D366; /* Cor oficial do WhatsApp */
    color: #FFF;
}

.card-icon-overlay a.js-share-whatsapp:hover {
    background-color: #1DA851; /* Tom mais escuro no hover */
}

/* Adicione estas regras ao seu arquivo style.css */

    .header-logo-link {
        display: flex; /* Para centralizar verticalmente a imagem se necessário */
        align-items: center;
        height: 100%; /* Ocupar a altura total do header */
    }

    .header-logo-img {
        max-height: 50px; /* Ajuste este valor para o tamanho desejado da sua logo */
        width: auto; /* Mantém a proporção da imagem */
        /* Se precisar de um tamanho fixo, pode usar: */
        /* width: 150px; */
        /* height: 40px; */
        /* object-fit: contain; */ /* Para garantir que a imagem se ajuste sem cortar */
    }

    /* Se o seu header-fixed tiver um padding, pode ser necessário ajustar */
    .header-fixed .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px; /* Exemplo: altura do seu header, ajuste conforme o seu CSS */
    }

    /* --- ESTILOS DA PÁGINA DE CONTATO --- */

/* 1. Cabeçalho (Avatar + Título) */
.contact-header {
    display: flex;
    flex-direction: column; /* Mobile-first: empilhado */
    align-items: center;
    gap: 20px;
    text-align: center;
}
.avatar-container {
    flex-shrink: 0;
}
.contact-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--cor-primaria);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.contact-info h1 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--cor-primaria);
}
.contact-info h2 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--cor-texto);
    font-weight: 400;
}
.contact-info p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Ajuste do Cabeçalho para Desktop */
@media (min-width: 768px) {
    .contact-header {
        flex-direction: row; /* Lado a lado no desktop */
        text-align: left;
    }
}

/* 2. Seção CRECI */
.creci-section {
    text-align: center;
}
.creci-card {
    max-width: 400px;
    margin: 0 auto 15px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.creci-card img {
    width: 100%;
    display: block;
}
.creci-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #007bff; /* Cor de "verificação" */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
}
.creci-link:hover {
    background: #0056b3;
}

/* 3. Infográfico (Números) */
.stats-grid {
    display: grid;
    /* 2 colunas no mobile, 4 no desktop */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.stat-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cor-primaria);
}
.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--cor-texto);
}

/* 5. Formulário de Contato e Botão WhatsApp */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr; /* Empilhado no mobile */
    gap: 30px;
}

/* Layout do formulário (reutiliza .form-group) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form .form-group {
    display: flex;
    flex-direction: column;
}
.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Importante */
}
.contact-form textarea {
    resize: vertical;
}
.contact-form .btn-submit {
    background: var(--cor-primaria);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.contact-form .btn-submit:hover {
    background: #004d00;
}

/* Botão de WhatsApp direto */
.whatsapp-direct-contact {
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background-color: #25D366; /* Cor do WhatsApp */
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.whatsapp-btn:hover {
    background-color: #1DA851;
}
.whatsapp-btn i {
    font-size: 1.4rem;
}

/* Ajuste do layout do formulário para Desktop */
@media (min-width: 992px) {
    .contact-form-container {
        grid-template-columns: 2fr 1fr; /* Lado a lado no desktop */
        align-items: flex-start;
    }
}
    
/* --- AJUSTES DE RESPONSIVIDADE --- */

/* Media Query:
  Aplica estas regras APENAS em telas MAIORES que 600px 
*/
@media (min-width: 601px) {
    .story-content-wrapper {
        /* AQUI ESTÁ A MUDANÇA: */
        
        /* 1. Define o tamanho máximo que você pediu */
        width: 400px; 
        
        /* 2. Trava a proporção (formato de story 9:16) */
        height: auto;
        aspect-ratio: 9 / 16;
        
        /* 3. Limita a altura para não ficar gigante */
        max-height: 90vh; 
        
        /* 4. Adiciona bordas e sombra para o efeito de "quadro" */
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    /* Garante que o vídeo também tenha as bordas arredondadas */
    #story-video-player {
        border-radius: 12px;
    }
}



/* Tablets (ex: 2 colunas de cards) */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celulares (ex: 1 coluna de cards) */
@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .header-logo {
        font-size: 1rem;
    }
    
    .story-item {
        width: 80px; /* Diminui um pouco no celular */
    }
    .story-circle {
        width: 65px;
        height: 65px;
    }
    .card-tag {
        font-size: 1.1rem; /* Aumenta o tamanho da fonte */
        padding: 8px 16px; /* Aumenta o espaçamento interno */
    }
}

/*Desktop (espalhar os stories)*/
@media (min-width: 993px) {
    .stories-section .container {
        /* Centraliza e espalha os itens no desktop */
        justify-content: space-around; 
        
        /* Desativa a rolagem horizontal no desktop */
        overflow-x: visible; 
    }
}

