/* =========================
   Código Mobile (já existente)
   ========================= */

/* RESET BÁSICO */
body, ul, li, a, button {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  color: #fff;
  background: none;
}
ul {
  list-style: none;
}
.info-local {
		background-color: #fff;
		width: 100%;
		padding: 0px 0px 0px 0px;
		text-align: center;
		margin-top: 6px;
		position: absolute;
		z-index: 10;
		
	}
.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* EVITA ROLAGEM QUANDO O MENU ESTÁ ABERTO */
.body-menu-open {
  overflow: hidden;
}

.overlay.active {
  display: block; /* aparece quando o menu é aberto */
}

/* HEADER (bloco azul maior) */
#header-mobile {
  background-color: #015cac;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px;; /* aumento de padding para maior altura */
  position: fixed;
  top: 11px;
  left: 6px;
  width: 97%;
  z-index: 2000;
}
#header-mobile.menu-open {
  border-bottom: 2px solid #fff;
}
.logo img {
  height: 6rem;
  width: auto;
}

/* BOTÃO TEST RIDE */
.test-ride-button {
  background-color: #fff;
  color: #004AAD;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* ÍCONE HAMBÚRGUER / X */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 16px;
  transition: all 0.3s ease;
}
.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}
.menu-toggle.open div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open div:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  display: none;
}
.overlay.active {
  display: block;
}

/* MENU MOBILE */
#menu-mobile {
  display: none;
  position: fixed;
  top: 130px;
  left: 6px;
  width: 97%;
  height: calc(95vh - 160px);  /*O menu ocupará toda a altura da viewport abaixo do header  'calc(73vh - 160px)'*/
  background-color: #015cac;
  z-index: 2000;
  overflow: hidden; /* Sempre sem scroll no container principal */
}

#menu-mobile.active {
  display: block;
}

/* NÍVEIS DO MENU */
.menu-level {
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute; /* Ajuste conforme o layout desejado */
  width: 100%;
  top: 0;
  left: 0;
  pointer-events: none; /* Evita interações enquanto invisível */
  height: 100%;  /* Garante que o nível ocupe toda a altura do container */
  overflow-y: auto; /* Habilita o scroll para submenus */
  overflow-x: hidden; /* Garante que role apenas para baixo */
}

.menu-level.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative; /* Redefine a posição para o nível ativo */
}

/* Quando o menu principal está ativo, desabilita o scroll do nível */
#menu-mobile.no-scroll .menu-level {
  overflow-y: hidden;
}

/* MENU PRINCIPAL */
#main-menu .menu-item {
  border-bottom: 1px solid rgba(255,255,255,1.00);
}

/* Botões dos itens */
.menu-btn, .back-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-size: 1.2rem;
  padding: 12px 16px;
  background-color: #015cac;
  border: none;
  color: #fff;
  cursor: pointer;
}

.back-btn {
  justify-content: flex-start; /* Alinha tudo à esquerda */
  border-bottom: 1px solid rgba(255,255,255,1.00);
}

.back-arrow {
  margin-right: 8px; /* Espaço entre a seta e o texto */
}

/* Ícones: as setas ficam à direita */
.submenu-arrow,
.back-arrow {
  font-size: 1rem;
}

/* Espaçamento para o texto */
.menu-text, .back-text {
	flex: 1;
	color: #FFFFFF;
	font-size: 1.6rem;
	font-weight: 600;
	
}

/* SUBMENU (itens secundários) */
.menu-level li a {
  display: block;
  font-size: 1.3rem;
  padding: 10px 16px;
  color: #fff;
}

.menu-level:not(#main-menu) li a {
  border-bottom: 1px solid rgba(255, 255, 255, 1);
}

/* Container para os itens em 2 colunas */
.moto-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 20px auto;
  max-width: 700px;
}

.item-moto {
  text-align: center;
  background: transparent;
}

.item-moto img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Submenu para agrupamentos (ex: Experiências) */
.submenu-title {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin: 7px 0 0 13px;
}

/* Ajustes em telas menores (mobile) */
@media (max-width: 768px) {
  .menu-btn, .back-btn {
    font-size: 1.1rem;
  }
}
@media (max-width: 380px) {
  .test-ride-button {
    padding: 7px;
    text-align: center;
  }
}

/* =========================
   Adaptações para Desktop
   ========================= */
@media (min-width: 1024px) {
  /* Header: aumenta o padding e o tamanho da fonte */
  #header-mobile {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px; /* Aumento dos espaçamentos laterais */
    justify-content: space-between;
    font-size: 1.1rem;
  }
  
  /* Aumenta o tamanho da logo */
  .logo img {
    height: 90px; /* Aumentado de 80px para 90px */
  }
  
  /* Remove o ícone de hambúrguer, já que o menu ficará sempre visível */
  .menu-toggle {
    display: none;
  }
  
  /* Menu: exibe o menu de forma permanente e em layout horizontal */
  #menu-mobile {
    display: block !important;
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background-color: transparent;
    overflow: visible;
  }
  
  /* Ajusta os níveis do menu para layout horizontal */
  .menu-level {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: visible;
  }
  
  /* Itens do menu: aumenta o espaçamento entre eles */
  #main-menu .menu-item {
    border: none;
    margin: 0 25px;
  }
  
  /* Botões do menu: aumenta o padding e o tamanho da fonte */
  .menu-btn, .back-btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    background-color: transparent;
    border: none;
  }
  
  /* Botão "Test Ride": ajusta padding e tamanho da fonte para maior destaque */
  .test-ride-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media screen and (max-width: 1039px) {
  #menu-desktop {
    display: none !important;
  }
}