:root {
    --cor-fundo: #f4f7f6;
    --cor-texto: #333333;
    --verde-br: #009b3a;
    --amarelo-br: #fedf00;
    --azul-br: #002776;
    --branco: #ffffff;
    --verde-whats: #25D366;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }
body { background-color: var(--cor-fundo); color: var(--cor-texto); padding-bottom: 50px; overflow-x: hidden; }

/* HEADER E MENU */
header { background-color: var(--branco); padding: 15px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 26px; font-weight: bold; color: var(--azul-br); text-decoration: none; cursor: pointer; }
.logo span { color: var(--verde-br); }
#btnMenu { background: none; border: none; font-size: 24px; color: var(--azul-br); padding: 5px; cursor: pointer; touch-action: manipulation; }

#menuLateral { position: fixed; top: 0; left: -280px; width: 260px; height: 100vh; background-color: var(--branco); box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 1000; transition: left 0.3s ease; padding: 20px; display: flex; flex-direction: column; }
#menuLateral.menu-aberto { left: 0; }
#menuLateral a { font-size: 18px; color: var(--azul-br); text-decoration: none; font-weight: 500; margin-bottom: 25px; cursor: pointer; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
#btnFecharMenu { background: none; border: none; font-size: 20px; color: #999; align-self: flex-end; cursor: pointer; padding: 10px; }
#peliculaMenu { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; backdrop-filter: blur(2px); }

/* UTILIDADES SPA */
.oculto { display: none !important; }
.animacao-tela { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* HERO E BUSCA */
.hero { padding: 30px 20px 70px; text-align: center; background: linear-gradient(135deg, var(--verde-br), #00b347); color: var(--branco); margin-bottom: -50px; position: relative; z-index: 1;}
.hero h1 { font-size: 20px; margin-bottom: 15px; }
.search-container { display: flex; max-width: 500px; margin: 0 auto; gap: 8px; }
.search-container input { flex: 1; padding: 12px; border: none; border-radius: 8px; font-size: 16px; outline: none; color: var(--cor-texto); }
.btn-busca { background-color: var(--amarelo-br); color: var(--azul-br); border: none; padding: 0 15px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 14px; }
.btn-localizacao { background-color: transparent; color: var(--branco); border: 1px solid var(--branco); padding: 8px 15px; border-radius: 20px; margin-top: 15px; font-size: 12px; cursor: pointer; }

/* CARROSSEL */
.carrossel-section { max-width: 600px; margin: 0 auto; padding: 10px 0; position: relative; z-index: 50; }
.carrossel-container { display: flex; gap: 15px; overflow-x: auto; padding: 10px 20px 15px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.carrossel-container::-webkit-scrollbar { display: none; }
.item-carrossel { flex: 0 0 75px; text-align: center; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.item-carrossel:active { transform: scale(0.95); transition: 0.1s; }
.circulo { width: 75px; height: 75px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.15); border: 2px solid white; margin-bottom: 8px; transition: 0.2s; user-select: none; }

.color-1 .circulo { background-color: #f39c12; }
.color-2 .circulo { background-color: #e74c3c; }
.color-3 .circulo { background-color: #e056fd; }
.color-4 .circulo { background-color: #3498db; }
.color-5 .circulo { background-color: #f1c40f; }
.color-6 .circulo { background-color: #27ae60; }
.color-7 .circulo { background-color: #c0392b; }
.legenda { font-size: 11px; font-weight: bold; color: var(--azul-br); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 75px; }

/* RESULTADOS E CARTÕES */
.cabecalho-resultados { max-width: 600px; margin: 0 auto; padding: 15px 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn-voltar { background: var(--azul-br); color: white; border: none; padding: 6px 12px; border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.titulo-pagina { color: var(--azul-br); font-size: 18px; font-weight: bold; flex: 1; text-align: center; }
.resultados { padding: 15px; max-width: 600px; margin: 0 auto; display: grid; gap: 12px; }
.card-item { background: var(--branco); padding: 15px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 5px solid var(--verde-br); }
.card-item h3 { color: var(--azul-br); font-size: 17px; margin-bottom: 3px; }
.tag { display: inline-block; background: #e8f5e9; color: var(--verde-br); padding: 3px 8px; border-radius: 15px; font-size: 10px; font-weight: bold; margin-top: 8px; }
.sem-resultados { text-align: center; padding: 40px; color: #999; font-style: italic; font-size: 14px; }
.pagina-estatica { max-width: 600px; margin: 0 auto; padding: 20px; }

/* FILTROS E SUBCATEGORIAS */
.subcategorias-container { max-width: 600px; margin: 10px auto 5px; padding: 0 15px; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.subcategorias-container::-webkit-scrollbar { display: none; }
.btn-subcat { background-color: #e8ebf2; color: var(--azul-br); border: 1px solid #d1d8e6; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: 0.2s; touch-action: manipulation; }
.btn-subcat.ativo { background-color: var(--amarelo-br); color: var(--azul-br); border-color: var(--amarelo-br); }

/* CONTATO */
.form-contato { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.input-form { width: 100%; padding: 15px; border: 2px solid #eaeaea; border-radius: 10px; font-size: 16px; outline: none; transition: all 0.3s ease; background: #fdfdfd; box-sizing: border-box; font-family: inherit; }
.input-form:focus { border-color: var(--verde-br); background: #fff; box-shadow: 0 0 8px rgba(0, 155, 58, 0.2); }
textarea.input-form { resize: vertical; min-height: 140px; }

/* TELA EXPLORAR (ABAS E SANFONA) */
.abas-explorar { display: flex; gap: 10px; margin-bottom: 20px; }
.abas-explorar button { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: bold; font-size: 15px; cursor: pointer; transition: 0.2s; touch-action: manipulation; }
.aba-ativa { background: var(--azul-br); color: white; box-shadow: 0 4px 10px rgba(0,39,118,0.2); }
.aba-inativa { background: #e8ebf2; color: var(--azul-br); }
.sanfona-item { margin-bottom: 10px; border: 1px solid #eaeaea; border-radius: 10px; overflow: hidden; background: white; transition: 0.3s; }
.sanfona-titulo { width: 100%; text-align: left; padding: 15px; background: #fdfdfd; border: none; font-size: 16px; font-weight: bold; color: var(--azul-br); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sanfona-titulo:after { content: '▼'; font-size: 12px; color: #999; }
.sanfona-conteudo { display: none; padding: 10px 15px 15px; background: white; border-top: 1px solid #eaeaea; }
.sanfona-item.aberto { border-color: var(--verde-br); }
.sanfona-item.aberto .sanfona-titulo { background: #f0fdf4; color: var(--verde-br); }
.sanfona-item.aberto .sanfona-titulo:after { content: '▲'; color: var(--verde-br); }
.sanfona-item.aberto .sanfona-conteudo { display: block; }
.lista-simples { list-style: none; padding: 0; }
.lista-simples li { padding: 12px 0; border-bottom: 1px dashed #eee; cursor: pointer; color: #444; font-weight: 500; font-size: 15px; }
.lista-simples li:last-child { border-bottom: none; }
.tag-sub { font-size: 12px; color: #888; display: block; margin-top: 4px; font-weight: normal; }

/* FORÇA O IPAD/IPHONE A RECONHECER CLIQUE */
a, .item-carrossel, .btn-busca, .btn-localizacao, .btn-voltar, #btnMenu, #btnFecharMenu { touch-action: manipulation; cursor: pointer; }
