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

body {
  font-family: Arial, sans-serif;
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  border-radius: 15px;
  padding: 14px 60px;
  z-index: 999;
  width: 90%;
  max-width: 1400px;
  transition: top 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 4px;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;

  transform: scaleX(0);               /* linha escondida */
  transform-origin: left;            /* começa da esquerda */
  transition: transform 0.3s ease, transform-origin 0s 0.3s; /* atraso no reset */
}

.navbar a:hover::after {
  transform: scaleX(1);              /* expande */
  transform-origin: left;           /* continua da esquerda */
  transition: transform 0.3s ease;  /* anima normalmente */
}

/* Quando mouse sai: volta com origem invertida (direita) */
.navbar a:not(:hover)::after {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease, transform-origin 0s;
}

.hero {
  height: 100vh;
  background-image: url("img/fundo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: -1;
}

.hero h1 {
  font-size: 2.8em;
  text-shadow: 2px 2px 10px black;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.6em;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 8px black;
}

.detalhes {
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.detalhes .destaque {
  color: #f47b00;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.detalhes .titulo {
  font-size: 2.5em;
  color: #111;
  margin-bottom: 15px;
}

.detalhes .intro {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 60px;
  max-width: 800px;
}

.grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.coluna {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.item img {
  width: 28px;
  height: 28px;
  margin-top: 4px;
}

.item h3 {
  margin: 0;
  font-size: 1.1em;
  color: #111;
}

.item p {
  margin-top: 6px;
  color: #444;
  font-size: 0.95em;
}

.trajetoria {
  background-color: #702f00;
  color: white;
  padding: 80px 260px;
}

.trajetoria .conteudo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 80px;
}

.trajetoria .texto {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  margin-right: 40px; /* <-- isso afasta o texto da logo */
}

.trajetoria .destaque {
  color: #f0a040;
  font-weight: bold;
  margin-bottom: 10px;
}

.trajetoria h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.trajetoria .descricao {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ddd;
}

.trajetoria .logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
}

.trajetoria .logo img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
}

.trajetoria .dados {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 60px auto 0;
}

.trajetoria .item {
  flex: 1 1 200px;
  padding: 0 20px;
  border-left: 1px solid #aaa;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trajetoria .item:first-child {
  border-left: none;
}

.trajetoria .item h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 2em;
  margin: 0;
  color: white;
}

.trajetoria .item .mais {
  font-size: 0.9em;
  margin-top: -3px;
}

.trajetoria .item p {
  color: #ccc;
  margin-top: 8px;
  font-size: 1em;
}



/* ======= Página Sobre Nós ======= */
body.sobre-nos .card {
  width: 100%;
  max-width: 360px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.hero-sobre {
  height: 100vh;
  background: url("img/sobre-bg.jpg") no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  padding: 160px;
  color: white;
}

.hero-sobre::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(112, 47, 0, 0.9);
  z-index: 0;
}

.conteudo-sobre {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin-top: 120px; /* Aumenta espaço entre navbar e h1 */
}

.hero-sobre h1 {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sobre p {
  font-size: 1.15em;
  color: #ddd;
  margin-bottom: 80px; /* Espaço maior entre p e os cards */
}

.cards-sobre {
  display: flex;
  flex-wrap: wrap;
  gap: 50px; /* Aumentado de 30px para 40px */
  justify-content: space-between;
}

.card {
  flex: 1 1 340px; /* Aumentado de 300px para 340px */
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}

.card .emoji {
  font-size: 1.5em;
  line-height: 1;
  margin-top: 2px;
}

.card h3 {
  font-size: 1.05em;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}

.card p {
  font-size: 0.95em;
  color: #ccc;
  line-height: 1.5;
}

/* Animação fade-slide ao carregar */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
}

/* Delay diferente para cada card */
.card:nth-child(1) {
  animation-delay: 0.2s;
}
.card:nth-child(2) {
  animation-delay: 0.4s;
}
.card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Efeito de zoom ao passar o mouse */
.card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.historia {
  background-color: #fff;
  color: #111;
  padding: 100px 60px 60px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.texto-historia .subtitulo {
  color: #f47b00;
  font-weight: bold;
  font-size: 1.05em;
  margin-bottom: 8px;
}

.texto-historia h2 {
  font-size: 2.4em;
  margin-bottom: 30px;
}

.colunas {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333;
}

.colunas p {
  flex: 1 1 45%;
  text-align: justify;
}

.imagem-historia {
  margin-top: 60px;
  text-align: center;
}

.imagem-historia img {
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.videos {
  padding: 100px 40px;
  background-color: #fff;
  color: #111;
  text-align: center;
}

.videos-header h2 {
  font-size: 2.4em;
  margin-bottom: 10px;
}

.videos-header p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 50px;
}

.videos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.video-box {
  flex: 1 1 22%; /* Aproximadamente 4 por linha com espaçamento */
  max-width: 300px;
}

.video-box video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* Responsivo: 2 vídeos por linha em tablets */
@media (max-width: 900px) {
  .video-box {
    flex: 1 1 45%;
  }
}

/* Responsivo: 1 por linha no celular */
@media (max-width: 500px) {
  .video-box {
    flex: 1 1 100%;
  }
}

/* ======= contato ======= */

/* Fundo total da página de contato */
body.bg-contato {
  background: linear-gradient(to bottom, #4b1a00, #702f00);
  color: white;
}

/* Título e descrição */
.contato-titulo {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 120px; /* espaço da navbar */
}

.contato-titulo h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.contato-titulo p {
  font-size: 1.15em;
  max-width: 800px;
  margin: 0 auto;
  color: #ddd;
  line-height: 1.6;
}

/* Cards verticais */
.contato-cards-verticais {
  padding: 60px 30px 100px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.card-social {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
  backdrop-filter: blur(4px);
}

.card-social img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-content {
  padding: 30px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content h3 {
  font-size: 1.6em;
  margin-bottom: 12px;
  color: white;
}

.card-content p {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #ddd;
  line-height: 1.6;
}

.card-content a {
  color: #f6a531;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.3s ease;
}

.card-content a:hover {
  text-decoration: underline;
  color: #ffc069;
}

/* Responsivo */
@media (max-width: 768px) {
  .card-social {
    flex-direction: column;
    text-align: center;
  }

  .card-social img {
    width: 100%;
    height: auto;
  }

  .card-content {
    padding: 20px;
  }
}

/* ======= galeria ======= */
.galeria-container {
  display: flex;
  padding-top: 120px;
  min-height: 100vh;
}

.menu-lateral {
  width: 260px;
  background: #1e1e1e;
  color: white;
  padding: 40px 30px;
  position: sticky;
  top: 100px;
  height: fit-content;
  border-radius: 0 16px 16px 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.menu-lateral h2 {
  font-size: 1.6em;
  margin-bottom: 25px;
  color: #f6a531;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.menu-lateral ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lateral ul li {
  margin-bottom: 18px;
}

.menu-lateral ul li a {
  text-decoration: none;
  color: #eee;
  font-weight: 500;
  font-size: 1.05em;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.menu-lateral ul li a:hover {
  background-color: #f6a531;
  color: #111;
}


.galeria-conteudo {
  flex: 1;
  padding: 40px 60px;
}

.galeria-conteudo h3 {
  font-size: 1.8em;
  margin: 30px 0 20px;
  color: #fff;
}

.grid-imagens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.grid-imagens img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid-imagens img:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-conteudo {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.fechar {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5em;
  color: white;
  cursor: pointer;
}

/* ======= footer ======= */
.footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.95em;
  border-top: 1px solid #333;
}

/* ======== Responsivo REAL para mobile ======== */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 20px;
  }

  .nav-container {
    flex-direction: column;
    gap: 10px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo {
    height: 32px;
  }

  .hero-sobre,
  .hero,
  .section,
  .historia,
  .cards-sobre,
  .colunas,
  .trajetoria,
  .galeria-conteudo,
  .contato-cards-verticais,
  .videos-container,
  .grid-imagens {
    padding: 40px 20px;
  }

  .cards-sobre,
  .colunas,
  .trajetoria .conteudo,
  .videos-container,
  .grid-imagens,
  .contato-cards-verticais {
    flex-direction: column;
    gap: 20px;
  }

  .card,
  .video-box,
  .card-social {
    width: 100%;
    max-width: 100%;
  }

  .menu-lateral {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-sobre h1,
  .hero h1 {
    font-size: 2rem;
    text-align: center;
  }

  .hero-sobre p,
  .hero p {
    font-size: 1rem;
    text-align: center;
  }

  .texto-historia h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .navbar a {
    font-size: 0.9rem;
  }

  .galeria-container {
    flex-direction: column;
  }

  .grid-imagens {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-sobre h1,
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-sobre p,
  .hero p {
    font-size: 0.9rem;
  }

  .navbar {
    padding: 8px 16px;
    border-radius: 40px;
  }

  .navbar ul {
    gap: 8px;
  }

  .logo {
    height: 28px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .footer {
    font-size: 0.8rem;
    text-align: center;
  }

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

/* Corrige imagens estourando em mobile */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  body.sobre-nos .cards-sobre {
    display: none;
  }
}
