/* ======================== RESET ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======================== MENU PRINCIPAL ======================== */
/* ========================== NAV DESKTOP ========================== */
nav {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  z-index: 10;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
}

/* a logo fica onde está naturalmente */
nav .logo {
  margin-right: auto;   /* empurra tudo para a direita */
}

nav .logo img {
  height: 90px;
  width: auto;
}

/* Menu desktop */
nav ul.menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;        /* ← IMPORTANTE */
  padding: 0;       /* ← IMPORTANTE */
}

nav ul.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s;
}

nav ul.menu li a:hover {
  color: #2a19bb;
  border-bottom: 2px solid white;
}

/* Itens sem link */
.menu a[href="#"] {
  color: gray;
  cursor: default;
  pointer-events: none;
}

/* ========================== HAMBÚRGUER ========================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 20;   
}

.menu-toggle span {
  width: 32px;
  height: 4px;
  background: white;
  border-radius: 4px;
  transition: 0.3s;
}

/* animação X */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ---------- MENU DE IDIOMA ---------- */
.language-dropdown {
  position: relative;
  margin-left: 40px;
}

.language-selector {
  background: none;
  border: none;
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-selector::before {
  content: "🌐";
  font-size: 1rem;
}

.language-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: #002b80;
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
}

.language-menu li a {
  display: block;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.language-menu li a:hover {
  background: #0040bf;
}

.language-dropdown.open .language-menu {
  display: block;
}



/* ======================== FOOTER ======================== */
footer {
  background: linear-gradient(180deg, #001755 50%, #003366 100%);
  background-size: 100% 200%;
  animation: moverGradienteVertical 10s ease infinite;
  color: white;
  padding: 40px 20px 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  /* 🔸 removido o border-radius */
  z-index: 1;
  position: relative;
  margin-top: 0; /* garante que não sobe por cima da secção */
}


@keyframes moverGradienteVertical {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

footer h4.maiusculas {
  text-transform: uppercase;
  font-family: 'Days One', sans-serif;
}

footer .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  flex: 0 0 50%;
}

.footer-logo {
  width: 250px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  object-fit: contain;
}

.footer-left p {
  margin: 5px 0;
  line-height: 1.5;
}

.footer-right {
  flex: 0 0 10%;
  margin-top: 20px;
}

.footer-right h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-right ul {
  list-style: none;
  padding-left: 20px;
  margin: 0;
}

.footer-right ul li {
  margin-bottom: 8px;
}

.footer-right ul li a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-right ul li a:hover {
  color: #ffcc00;
}

/* ======================== RESPONSIVO ======================== */
@media (max-width: 900px) {
  .carousel-item {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
/* reorganiza o cabeçalho */
  nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
  }

  /* mostra o hambúrguer */
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* menu passa a dropdown oculto */
  nav ul.menu {
      display: none;
      width: 95%;
      max-width: 750px;
      flex-direction: column;
      gap: 20px;
      background: rgba(32, 71, 150, 0.95);
      position: absolute;
      top: 100%;

  /* CENTRALIZADO */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);

  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);

  opacity: 0;
  transition: 0.25s ease-in-out;
  }

  /* quando abre */
  nav ul.menu.show {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
  }

.language-selector {
  right: 40px; /* afasta do hamburguer */
  position: absolute;
}

/*======================================================= */

  .grid-servicos,
  .grid-portefolio,
  .expo-fotos,
  .expo-info {
    flex-direction: column;
    gap: 20px;
  }

  .expo {
    padding: 120px 20px 100px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }

  .expo::before {
    top: -45px;
    height: 80px;
    transform: skewY(-5deg);
  }

  .expo-texto,
  .expo-mapa {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .expo-mapa iframe {
    height: 280px;
  }
}


/*===================== NATAL ======================== */
.gorro-natal {
  position: absolute;
  top: -10PX;
  left: -10PX;
  height: 50PX;  /* agora 25% da altura da hero-content */
  width: auto;
  transform: translate(-15%, -15%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  }

  .hero-content {
  position: relative;
}

.gorro-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-15%, -15%);
}



/* Mensagem escondida inicialmente */
.mensagem-natal {
  position: absolute;
  top: -40px; /* acima do gorro */
  left: 80px;
  transform: translateX(-50%);
  background-color: rgba(255, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

/* Efeito hover */
.gorro-wrapper:hover .mensagem-natal {
  opacity: 1;
}


/* Mobile: ao clicar (toque) ativa a mensagem */
@media (max-width: 640px) {
  .gorro-wrapper:active .mensagem-natal {
    opacity: 1;
  }
}

/* Mensagem  */
/* Overlay */
.ferias-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Caixa do texto */
.ferias-box {
  background: white;
  padding: 40px 50px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  color: #333;
}

/* Título */
.ferias-box h2 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #b30000;
}

/* Texto normal */
.ferias-box p {
  margin: 10px 0;
  font-size: 18px;
}

/* Datas */
.data {
  font-size: 28px;
  font-weight: bold;
  color: #b30000;
  margin: 8px 0 15px;
}

/* Separador */
.ferias-box hr {
  margin: 25px auto;
  width: 60%;
  border: none;
  border-top: 2px solid #eee;
}

/* Fonte manuscrita */
.manuscrito {
  font-family: "Patrick Hand", cursive;
  font-size: 22px;
}

.manuscrito.destaque {
  font-family: "Pacifico", cursive;
  font-size: 26px;
  color: #0b6b2a;
}

.manuscrito.pequeno {
  font-size: 18px;
}

/* Mobile */
@media (max-width: 600px) {
  .ferias-box {
    padding: 30px 20px;
  }

  .ferias-box h2 {
    font-size: 26px;
  }

  .data {
    font-size: 24px;
  }
}
