:root {
    --cor-primaria: #00d215; 
    --cor-primaria-dark: #00a010;
    --cor-secundaria: #8B4513; 
    --cor-destaque: #FF9800; /* Laranja do Topo */
    --cor-fundo: #f4f6f8;
    --text-dark: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background-color: var(--cor-fundo); color: var(--text-dark); padding-bottom: 120px; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Fredoka One', cursive; font-weight: normal; }

/* ================= HEADER LARANJA ================= */
header { 
    background: var(--cor-destaque); 
    height: 75px; 
    padding: 0 30px; 
    display: flex; justify-content: space-between; align-items: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    position: sticky; top: 0; z-index: 1000;
}

.btn-voltar { color: #fff; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 8px; width: auto; min-width: 100px; transition: 0.2s; font-size: 1.1rem; }
.btn-voltar:hover { transform: scale(1.05); }

.logo-container { position: absolute; left: 50%; transform: translateX(-50%); height: 100%; width: 140px; display: flex; justify-content: center; }
.logo-container img { 
    position: absolute; 
    top: 5px; 
    height: 110px; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); 
    z-index: 1001; 
}

/* === PORTAL USUÁRIO NO HEADER === */
.portal-usuario {
    display: flex; align-items: center; gap: 12px; position: relative; cursor: pointer;
}

/* PONTE INVISÍVEL: Previne que o hover quebre ao descer o mouse */
.portal-usuario::after {
    content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 25px; background: transparent; z-index: 10;
}

.portal-avatar {
    width: 42px; height: 42px; display: grid; place-items: center;
    color: #fff; background: var(--cor-primaria); border-radius: 50%;
    font-family: 'Fredoka One', cursive; font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.portal-usuario-texto { text-align: left; }
.portal-usuario-texto strong { color: #fff; font-size: 0.95rem; display: block; line-height: 1.2; }
.portal-usuario-texto span { color: rgba(255,255,255,0.85); font-size: 0.75rem; display: block; }
.seta-dropdown { color: #fff; font-size: 0.8rem; margin-left: 2px; transition: 0.3s; }

.btn-topo-sair {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 0 15px; color: var(--cor-destaque); background: #fff;
    border: none; border-radius: 999px; font-weight: 900; text-decoration: none;
    transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-left: 5px;
    position: relative; z-index: 20;
}
.btn-topo-sair:hover { background: #fdfdfd; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

/* Menu Dropdown */
.user-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 15px;
    background: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: 230px; display: none; flex-direction: column; overflow: hidden;
    border: 1px solid #eee; z-index: 2000;
}
.user-dropdown-menu::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background: #fff; border-left: 1px solid #eee; border-top: 1px solid #eee;
}
.portal-usuario:hover .user-dropdown-menu { display: flex; animation: fadeIn 0.2s ease-in-out; }
.portal-usuario:hover .seta-dropdown { transform: rotate(180deg); }
.user-dropdown-menu a {
    padding: 15px 20px; color: var(--text-dark); text-decoration: none; font-weight: bold;
    display: flex; align-items: center; gap: 10px; transition: 0.2s; position: relative; z-index: 2;
}
.user-dropdown-menu a:hover { background: #f9f9f9; color: var(--cor-primaria-dark); }
.user-dropdown-menu a i { font-size: 1.1rem; color: var(--cor-secundaria); width: 20px; text-align: center; }
.user-dropdown-menu a:hover i { color: var(--cor-primaria-dark); }

.container { max-width: 1000px; margin: 60px auto 40px auto; padding: 0 20px; }

/* === SESSÃO INGRESSOS === */
#sessao-ingressos { display: none; animation: fadeIn 0.5s; scroll-margin-top: 100px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Banners Promocionais */
.banners-promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 30px; }
.banner-card { position: relative; border-radius: 15px; overflow: hidden; height: 160px; background-size: cover; background-position: center; background-color: #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: flex-end; transition: 0.3s; cursor: pointer; }
.banner-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.banner-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); width: 100%; padding: 30px 15px 15px; color: #fff; }
.banner-overlay h4 { margin: 0 0 5px 0; font-family: 'Fredoka One', cursive; font-size: 1.1rem; letter-spacing: 1px; color: #fff; text-shadow: 1px 1px 3px #000; }
.banner-overlay p { margin: 0; font-size: 0.8rem; font-weight: bold; color: #FFD54F; text-shadow: 1px 1px 2px #000; }

.ingresso-card { background: #fff; border-radius: 15px; padding: 25px; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-left: 5px solid var(--cor-primaria); position: relative; }
.btn-remover { position: absolute; top: 15px; right: 15px; background: rgba(220, 53, 69, 0.1); color: #dc3545; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-remover:hover { background: #dc3545; color: #fff; }

.form-group { margin-bottom: 15px; width: 100%; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; color: #555; font-size: 0.9rem; }
.form-group select, .form-group input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ddd; font-family: inherit; font-size: 1rem; outline: none; transition: 0.2s; }
.form-group select:focus, .form-group input:focus { border-color: var(--cor-primaria); box-shadow: 0 0 0 3px rgba(0,210,21,0.1); }

.divisao-atracoes { margin-top: 20px; border-top: 1px dashed #ddd; padding-top: 20px; }
.gratuitas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 20px; }
.free-item { border: 2px solid rgba(0, 210, 21, 0.3); border-radius: 10px; padding: 12px 5px; text-align: center; color: var(--cor-primaria-dark); font-weight: bold; font-size: 0.85rem; background: rgba(0, 210, 21, 0.05); cursor: pointer; transition: 0.2s; }
.free-item:hover { transform: translateY(-3px); background: rgba(0, 210, 21, 0.1); border-color: var(--cor-primaria); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.free-item i { display: block; font-size: 1.5rem; margin-bottom: 5px; color: var(--cor-primaria-dark); }

.adicionais-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.add-item { border: 2px solid #eee; border-radius: 10px; padding: 15px 10px; text-align: center; cursor: pointer; transition: 0.2s; color: #666; font-weight: bold; font-size: 0.9rem; }
.add-item i { display: block; font-size: 1.8rem; margin-bottom: 8px; color: var(--cor-secundaria); transition: 0.2s; }
.add-item input { display: none; }
.add-item.checked { border-color: var(--cor-primaria); background: rgba(0,210,21,0.05); color: var(--cor-primaria-dark); transform: scale(1.02); }
.add-item.checked i { color: var(--cor-primaria-dark); transform: scale(1.1); }
.add-price { font-size: 0.8rem; font-weight: normal; color: #888; display: block; margin-top: 5px; }

.btn-add-pessoa { background: transparent; border: 2px dashed #ccc; color: #777; width: 100%; padding: 15px; border-radius: 12px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.2s; margin-bottom: 30px; }
.btn-add-pessoa:hover { border-color: var(--cor-primaria); color: var(--cor-primaria); background: rgba(0,210,21,0.05); }

/* === RODAPÉ FLUTUANTE === */
.barra-flutuante { position: fixed; bottom: 0; left: 0; width: 100vw; background: #fff; padding: 15px 40px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; z-index: 100; }
.total-box p { margin: 0; color: #777; font-size: 0.9rem; font-weight: bold; }
.total-box h2 { margin: 0; color: var(--text-dark); font-size: 2.2rem; }
.total-box small { margin-top: 2px; color: #888; font-size: 0.75rem; display: block; }

.btn-finalizar { background: var(--cor-primaria); color: #fff; border: none; padding: 15px 40px; font-size: 1.2rem; font-family: 'Fredoka One', cursive; border-radius: 30px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,210,21,0.4); transition: 0.2s; text-decoration: none; display: inline-block; }
.btn-finalizar:hover { background: var(--cor-primaria-dark); transform: scale(1.05); color: #fff; }

/* === MODAL INFO ATRAÇÕES === */
#modal-atracao-info .modal-box { padding: 0 !important; overflow: hidden; max-width: 500px; }
#modal-atracao-info .imagem-container { position: relative; width: 100%; }
#modal-atracao-info .btn-fechar-modal {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); color: #fff; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
#modal-atracao-info .btn-fechar-modal:hover { background: rgba(220,53,69,0.9); }
#modal-atracao-info .modal-img-header { width: 100%; height: auto; object-fit: contain; display: block; border-radius: 15px 15px 0 0; background: transparent; }
.modal-navegacao {
    position: absolute; top: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 100; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.modal-navegacao:hover { background: rgba(0,0,0,0.9); }
.modal-navegacao-anterior { left: 10px; }
.modal-navegacao-proxima { right: 10px; }
#modal-atracao-info .modal-conteudo-scroll { padding: 30px; text-align: center; }
#modal-atracao-info .modal-titulo-box { margin-top: 0; margin-bottom: 15px; font-size: 1.8rem; font-family: 'Fredoka One', cursive; }
#modal-atracao-info .modal-texto-desc { color: var(--text-muted, #666); line-height: 1.5; margin-bottom: 25px; }
#modal-atracao-info .modal-btn-comprar { display: inline-block; background: #4caf50; color: #fff; text-decoration: none; padding: 15px 30px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; width: 100%; box-sizing: border-box; transition: background 0.3s; }
#modal-atracao-info .modal-btn-comprar:hover { background: #388e3c; }

/* Outros Modais Genéricos */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; padding: 20px; }
.modal-overlay.ativo { opacity: 1; visibility: visible; }
.modal-box { background: #fff; border-radius: 20px; width: 100%; max-width: 500px; padding: 30px; position: relative; transform: translateY(-20px); transition: 0.3s; overflow: hidden; }
.modal-overlay.ativo .modal-box { transform: translateY(0); }
.btn-close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; background: none; border: none; cursor: pointer; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); z-index: 10; }
.btn-close-modal:hover { color: #dc3545; }
.modal-img-container { margin: -30px -30px 20px -30px; height: 220px; position: relative; overflow: hidden; background: #eee; }
.modal-img-container img { width: 100%; height: 100%; object-fit: cover; }
.modal-title { color: var(--cor-secundaria); font-size: 1.8rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.modal-desc { color: #555; line-height: 1.6; font-size: 1.05rem; margin-bottom: 20px; }

@media (max-width: 850px) {
    .portal-usuario-texto { display: none; }
    .btn-topo-sair span { display: none; }
    .btn-topo-sair { padding: 0 12px; margin-left: 0; }
    .user-dropdown-menu { left: auto; right: 0; transform: none; }
    .user-dropdown-menu::before { left: auto; right: 20px; transform: none; }
}

@media (max-width: 768px) {
    body { padding-bottom: 210px; }
    .barra-flutuante { flex-direction: column; gap: 15px; text-align: center; padding: 20px; }
    .btn-finalizar { width: 100%; display: block; }
}

@media (max-width: 520px) {
    header { padding: 0 15px; }
    .btn-voltar span { display: none; }
    .btn-voltar { width: 40px; min-width: 40px; padding: 0; justify-content: center; }
    .logo-container img { height: 95px; }
}