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

body {
  font-family: Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* Conteúdo principal da seção sobre */

.sobre-completo {
  max-width: 800px;
  margin: 8rem auto 3rem;
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(167, 25, 48, 0.4);
  text-align: justify;
}

.titulo-animado {
  font-size: 2.5rem;
  color: #a71930;
  margin-bottom: 1.5rem;
  opacity: 0;
  text-align: center;
  transform: translateY(-20px);
  animation: fadeInUp 1s ease-out forwards;
}

/* Animação do  titulo */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sobre-completo p {
  font-size: 1.1rem;
  color: #333;
  margin: 1.3rem 0;
}

/* carousel */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 350px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #000;
}

/* Legenda */

.carousel-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* Indicativo de arrastar (mobile) */

.carousel-hint {
  display: none;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(50, 50, 50, 0.7));
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeHint 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
  display: none;
}

.carousel-hint i {
  font-size: 1.1rem;
  animation: arrowMove 1s infinite;
}

/* Animação para mensagem de "Arraste para o lado */

@keyframes fadeHint {
  0%,
  100% {
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
}

@keyframes arrowMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Setas */

.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 2;
  transition: background 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.seta:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.seta.prev {
  left: 10px;
}
.seta.next {
  right: 10px;
}

.seta.show {
  opacity: 1;
  pointer-events: auto;
}

/* Botão expandir */
.expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  font-size: 1rem;
}
.expand-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Modal Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain; /* garante que não "quebre" imagens deitadas */
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  margin-top: 10px;
  text-align: center;
  color: #fff;
}

/* Botão fechar (fora da imagem, canto superior direito da tela) */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 2rem;
  color: #fff;
  z-index: 10000;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.2); /* gira e aumenta um pouco */
  color: #c40000;
}

/* Botões de navegação (desktop) */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10000;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1); /* aumenta levemente */
  background: rgba(255, 255, 255, 0.2); /* fica mais claro */
}

/* CONTATO */

.contato {
  margin: 0 auto 5rem;
  padding: 2rem;
  text-align: justify;
}

.contato h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #a71930;
  font-weight: 700;
  position: relative;
  text-align: center;
}

.contato-intro {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contato-botoes {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem;
  flex-wrap: wrap;
}

.btn-contato {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #a71930;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-contato i {
  font-size: 1.2rem;
}

.btn-contato:hover {
  background: #c40000;
  transform: translateY(-3px);
}

.btn-contato.email {
  background: #333;
}

.btn-contato.email:hover {
  background: #555;
}

/* Container para as informações e redes sociais */

.contato-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}

/* Cada coluna */

.contato-wrapper > div {
  flex: 1 1 45%;
  padding: 20px;
}

/* Ícones gerais */
.contato-wrapper i {
  margin-right: 8px;
  color: #000;
}

/* Links */

.contato-wrapper a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contato-wrapper a:hover {
  color: #c40000;
}

/* Ajuste especial para os dados */

.dados {
  flex: 1 1 250px;
  text-align: left;
}

.dados p {
  margin: 0.5rem 0;
}

.dados i {
  margin-right: 0.5rem;
}

/* Ajuste especial para "Siga-nos" */

.siga-nos {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
}

.siga-nos i {
  font-size: 2rem;
  margin: 20px 10px;
  color: #a71930;
  transition: transform 0.3s ease, color 0.3s ease;
}

.siga-nos i:hover {
  transform: scale(1.2);
  color: #c40000;
}

/* Responsividade */

/* Tablets e dispositivos médios */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    position: fixed;
    top: -100%; /* escondido acima da tela */
    left: 0;
    height: auto;
    width: 100%;
    padding: 80px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: top 0.3s ease;
    z-index: 2000;
  }

  .nav.active {
    top: 0;
  }

  .nav a {
    position: relative;
    color: #000;
    padding-bottom: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #c40000;
    transition: width 0.4s ease;
    border-radius: 2px;
  }

  .nav a.active {
    color: #c40000;
  }

  .nav a.active::after {
    width: 100%;
  }

  .menu-mobile {
    display: block;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-overlay.active {
    display: block;
  }

  .sobre-completo {
    padding: 1.5rem 2rem;
    margin: 8rem 1rem 2rem;
  }

  .sobre-completo h1 {
    font-size: 2rem;
  }

  .sobre-completo p {
    font-size: 1rem;
    margin: 1rem 0;
  }

  .carousel-slide {
    height: 220px; /* altura menor e mais "deitada" */
  }

  .carousel-slide img {
    object-fit: contain;
  }

  .carousel-hint {
    display: block;
  }

  .seta.show {
    opacity: 0;
    pointer-events: none;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 100%; /* um pouco menor p/ caber legenda e botão X */
  }

  /* Remove setas no mobile */
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  /* Botão fechar menor no mobile */
  .lightbox-close {
    font-size: 1.8rem;
    top: 15px;
    right: 15px;
  }

  .contato {
    padding: 1.5rem;
    margin: 2rem 1rem 3rem;
  }

  .contato h2 {
    font-size: 2rem;
  }

  .contato-intro {
    font-size: 1rem;
  }

  .btn-contato {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
  }

  .contato-botoes {
    flex-direction: column;
    gap: 1rem;
  }

  .contato-wrapper {
    flex-direction: column;
  }

  .contato-wrapper > div {
    flex: 1 1 100%;
  }
}
