body {
  padding-top: 100px; /* Compensa a navbar fixa */
}

header {
  width: 100%;
}

main {
  background-color: #fbfaf5;
}

h1 {
  font-family: "Playfair Display", serif;
}

h2 {
  font-family: "Playfair Display", serif;
}

h3 {
  font-family: "Inter", sans-serif;
}

p {
  font-family: "Inter", sans-serif;
}

button {
  font-family: "Inter", sans-serif;
}

span {
  font-family: "Inter", sans-serif;
}

.logo-nav {
  width: 80px;
  height: 80px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navgeral {
  background-color: rgba(75, 22, 76, 0.9);
  border-radius: 10px;
  margin: 20px;
  padding: 10px 20px;
  backdrop-filter: blur(4px);
}

.navbloco {
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #fbfaf5;
}

.slider-header {
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa toda a altura da tela */
  max-height: 1080px; /* Limite máximo igual à altura da sua imagem */
  overflow: hidden;
  margin-top: -80px; /* Compensa a navbar fixa */
  padding-top: 80px; /* Espaço para a navbar */
}

@media (min-width: 1024px) {
  .slider-header {
    height: 100vh; /* Altura menor para mobile */
    max-height: none;
  }
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Regras base para todas as imagens */
.img-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Foco no centro superior */
}

.slides {
  transform-style: preserve-3d;
}

.img-slider {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img-slider.active {
  opacity: 1;
}

.slider-header:hover .img-slider {
  transform: scale(1.03);
}

/* Controle de visibilidade */
.img-slider.mobile-only {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.img-slider.desktop-only {
  object-fit: contain; /* Mostra a imagem completa */
  object-position: center top; /* Alinha no topo */
  width: 100%;
  height: auto;
  min-height: 100%;
}

@media (min-width: 1024px) {
  .img-slider.mobile-only {
    display: none;
  }

  .img-slider.desktop-only {
    display: block;
  }

  .img-slider.desktop-only {
    object-fit: cover; /* Volta ao crop em mobile */
  }
}

/* Dots de navegação */
.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #f4d35e;
  transform: scale(1.2);
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 10px 0;
  text-align: center;
}

.dropdown-menu.active {
  display: flex;
}

a {
  text-decoration: none;
}

.menu-itens {
  font-family: "Playfair Display", serif;
}

.menu-itens ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-itens ul > li > a {
  color: #fbfaf5;
  font-weight: 600;
  font-size: large;
}

.menu-itens a:hover {
  color: #587b48;
}

.btn-menuburger button {
  padding: 10px 20px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #587b48;
  background-color: #f4d35e;
  color: #4b164c;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-menuburger button:hover {
  background-color: #4b164c;
  color: #fbfaf5;
  cursor: pointer;
}

.btn-menuburger button > a {
  color: #587b48;
  font-weight: 800;
  font-size: medium;
  cursor: pointer;
}

.scroll {
  position: relative;
  width: 100%;
  background-color: transparent;
  overflow: hidden;
  z-index: 1;
  padding: 0;
  background-color: #fbfaf5;
}

.scroll img {
  height: 50px;
  min-width: 50px;
  padding: 0 60px;
}

.m-scroll {
  overflow: hidden;
  white-space: nowrap;
  animation: scrollText 30s infinite linear;
  margin: 0;
  font-size: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
  height: 100px;
}

span {
  display: inline-block;
  width: fit-content;
  margin: 0 20px;
  padding: 0;
  color: white;
}

span.blank {
  width: 500px !important;
}

span.FARAL {
  width: 800px !important;
}

@keyframes scrollText {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-90%);
  }
}

.cardapio-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

.galeria-cardapio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: 20px;
  margin: 0;
  padding: 10px 0;
}

.pratocardapio {
  height: 150px;
  width: 150px;
  border: 1px solid #4b164c;
  border-radius: 10px;
}

.pratocardapio {
  position: relative;
  height: 150px;
  width: 150px;
  border: 1px solid #4b164c;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.pratocardapio span {
  font-family: "Playfair Display", serif;
  font-size: large;
}

.pratocardapio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease-in-out;
}

.pratocardapio .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.pratocardapio:hover .overlay {
  opacity: 1;
}

.btn-cardapio-main button {
  padding: 16px 40px;
  margin: 16px 0;
  border-radius: 10px;
  border: 1px solid #587b48;
  background-color: #f4d35e;
  color: #4b164c;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  font-size: medium;
  cursor: pointer;
}

.btn-cardapio-main button:hover {
  background-color: #4b164c;
  color: #fbfaf5;
  transition: all 0.3s ease-in-out;
  transition-delay: 0.05s;
}

.quem-somos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  padding: 40px 0;
  background-color: #587b48;
  /* border-radius: 0 0 20px 20px; */
}

.quem-somos-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 20px;
  padding: 0 40px;
}

.quem-somos-logo img {
  width: 100px;
  height: 100px;
}

.quem-somos-texto h3 {
  color: #fbfaf5;
  font-size: large;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  width: fit-content;
  word-break: break-all;
}

.ifood {
  background-color: #f4d35e;
}

.ifood-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 20px;
  padding: 40px 40px;
}

.ifood-content img {
  width: 56px;
  height: 76px;
}

.ifood-content p {
  color: #fbfaf5;
  font-size: medium;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  width: fit-content;
  text-align: center;
  color: #4b164c;
}

.section-local {
  background-color: #4b164c;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 1.5rem;
}

.local-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: #f5f5f5;
  text-align: center;
  font-family: "Playfair Display", serif;
}

.local-description {
  color: #f5f5f5;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.contatos-local {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.contato-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.contato-text {
  color: #f5f5f5;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.map-container {
  background-color: #fbfaf5;
  padding: 2rem 1rem;
  border-radius: 1rem;
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.map-frame {
  width: 100%;
  height: 450px;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.map-address {
  text-align: center;
  color: #587b48;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  header {
    width: 100%;
  }

  .navbloco {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Para posicionamento absoluto dos filhos */
  }

  /* Logo absolutamente centralizada */
  .logo-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Menu dropdown - transforma em linha */
  .dropdown-menu {
    display: flex !important;
    width: 100%;
    justify-content: center;
  }

  /* Itens do menu em linha */
  .menu-itens ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem;
    margin: 0;
    padding: 16px 0;
  }

  /* Esconde o ícone do menu hamburger */
  .toggle-button {
    display: none;
  }
  /* Botão CTA */
  .btn-menuburger button {
    margin: 0;
    padding: 12px 24px;
    transition: all 0.3s;
  }

  /* Slider */
  .slider-header {
    height: 650px;
  }

  /* Efeitos hover */
  .menu-itens a {
    position: relative;
    padding-bottom: 5px;
  }

  .menu-itens a:hover {
    color: #f4d35e !important;
  }

  .menu-itens a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f4d35e;
    transition: width 0.3s;
  }

  .menu-itens a:hover::after {
    width: 100%;
  }

  .cardapio-main {
    padding-bottom: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .galeria-cardapio {
    grid-template-columns: repeat(3, 1fr); /* 3 colunas */
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .pratocardapio {
    height: 250px;
    width: 250px;
    border-radius: 12px;
  }

  .pratocardapio .overlay {
    font-size: 1.125rem;
    background-color: rgba(75, 22, 76, 0.7); /* Roxo semi-transparente */
  }

  .pratocardapio:hover img {
    transform: scale(1.05); /* Zoom sutil ao passar o mouse */
  }

  .btn-cardapio-main button {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    border-radius: 12px;
  }

  .quem-somos {
    padding: 4rem 1.5rem; /* Espaçamento maior */
  }

  .quem-somos-content {
    flex-direction: row; /* Logo e texto em linha */
    align-items: center; /* Alinha verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    gap: 4rem; /* Espaço maior entre logo e texto */
    max-width: 1200px; /* Limita largura (padrão das outras seções) */
    margin: 0 auto; /* Centraliza na tela */
  }

  .quem-somos-logo img {
    width: 150px; /* Logo maior */
    height: 150px;
  }

  .quem-somos-texto h3 {
    font-size: 1.125rem; /* Texto mais legível */
    max-width: 600px; /* Limita largura do texto */
    word-break: normal; /* Remove quebra forçada de palavras */
    line-height: 1.6; /* Melhora espaçamento entre linhas */
  }

  .ifood {
    padding: 0 1.5rem; /* Adiciona padding lateral para evitar colar nas bordas */
  }

  .ifood-content {
    flex-direction: row; /* Conteúdo em linha (imagem + texto lado a lado) */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    gap: 2rem; /* Espaço maior entre imagem e texto */
    padding: 4rem 2rem; /* Espaçamento interno maior */
    max-width: 1200px; /* Limita a largura (igual à seção de localização) */
    margin: 0 auto; /* Centraliza na tela */
  }

  .ifood-content img {
    width: 80px; /* Imagem maior */
    height: auto; /* Mantém proporção */
  }

  .ifood-content p {
    font-size: 1.125rem; /* Texto mais legível */
    text-align: left; /* Alinhamento à esquerda (quando em linha) */
    max-width: 500px; /* Evita linhas muito longas */
  }
}
