* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #1a0e08;
}

body {
  font-family: "Tai Heritage Pro", serif;
  line-height: 1.6;
  color: #fff;
  padding-top: 58px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../assets/bg2.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Nav Topo*/

#nav-topo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.3s ease;
}

#nav-topo.oculto {
  transform: translateY(-100%);
}

#nav-topo ul {
  font-size: 20px;
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  flex-wrap: wrap;
}

#nav-topo ul li a {
  text-decoration: none;
  color: #fff3f3;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background-color 0.2s;
}

#nav-topo ul li a:hover {
  background-color: rgba(243, 243, 243, 0.15);
}

/* Nav Lateral */

#nav-lateral {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background-color: rgba(18, 8, 4, 0.72);
  padding: 14px 10px 14px 0;
  border-radius: 0 12px 12px 0;
  max-width: 140px;
}

#nav-lateral ul {
  list-style: none;
}

#nav-lateral ul li {
  margin: 2px 0;
}

#nav-lateral ul li a {
  display: block;
  text-decoration: none;
  color: rgba(255, 243, 243, 0.55);
  font-size: 18px;
  padding: 6px 10px 6px 14px;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
  line-height: 1.3;
}

#nav-lateral ul li a:hover {
  color: #fff3f3;
}

#nav-lateral ul li.ativo a {
  color: #fff3f3;
  border-left-color: #c8956c;
  background-color: rgba(200, 149, 108, 0.12);
}

/* Nav Lateral Toggle (mobile) */

#nav-lateral-toggle {
  display: none;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 92;
  background-color: rgba(18, 8, 4, 0.72);
  border: none;
  border-radius: 0 8px 8px 0;
  width: 20px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 243, 243, 0.8);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, color 0.2s;
}

#nav-lateral-toggle:hover {
  background-color: rgba(18, 8, 4, 0.9);
  color: #fff3f3;
}

@media (max-width: 1080px) {
  #nav-lateral {
    left: -160px;
    transition: left 0.3s ease;
  }
  #nav-lateral.visivel {
    left: 0;
  }
  #nav-lateral-toggle {
    display: flex;
  }
}

/* Layout Geral */

#page {
  width: min(900px, 92%);
  margin: 32px auto 80px auto;
}

#page > img {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px auto;
}

.secao {
  padding: 48px 0;
  border-bottom: 1px solid #f0f0f0;
  scroll-margin-top: 72px;
}

/* Tipografia */

h1, h2, h3 {
  font-family: "Alice", serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  text-align: center;
  margin-bottom: 46px;
}

h2 {
  font-size: clamp(24px, 4.5vw, 40px);
  margin: 18px 0 10px 0;
}

#origem h2:first-of-type {
  margin-top: 60px;
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin: 18px 0 10px 0;
}

p {
  margin: 15px 0;
  font-size: 22px;
}

img {
  max-width: 100%;
  height: auto;
}

.secao img {
  display: block;
  width: 100%;
  max-height: 750px;
  object-fit: cover;
  border-radius: 16px;
  margin: 36px 0 18px 0;
}

/* Botões Flutuantes */

#btnTopo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #6b4f3b;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

#btnTopo:hover {
  background-color: #4a3426;
  transform: translateY(-3px);
}

#btn-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 999;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

#btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
}

#btn-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* Vídeo (index) */

.video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  margin: 18px 0;
}

.video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Galeria (index) */

.galeria-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 18px 0;
}

.galeria-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: transparent;
}

.galeria-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.galeria-foto.ativa {
  opacity: 1;
}

.galeria-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.galeria-btn:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.galeria-btn--prev {
  left: 14px;
}

.galeria-btn--next {
  right: 14px;
}

.galeria-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.galeria-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.galeria-dot.ativo {
  background-color: #fff;
  border-color: #fff;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Toggle de Idioma */
#lang-toggle {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: rgba(18, 8, 4, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 5px;
}

#lang-toggle button {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 0;
  border-radius: 12px;
  opacity: 0.45;
  transition: opacity 0.2s, background-color 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#lang-toggle button:hover {
  opacity: 0.85;
}

#lang-toggle button.lang-ativo {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Rodapé */

.rodape {
  text-align: center;
  padding: 28px 16px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  opacity: 0.55;
}

/* Responsivo */

@media (max-width: 600px) {
  #nav-topo ul {
    gap: 4px;
    padding: 8px 90px 8px 10px;
  }

  #nav-topo ul li a {
    padding: 6px 10px;
    font-size: 14px;
  }

  p {
    font-size: 16px;
  }

  .galeria-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}