/* galleria básica */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5e9da;
  color: #1C1C1C;
  line-height: 1.6;
  padding-top: 80px;
}

main {
  flex: 1 0 auto;
}

/* Container padrão */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem; /* Mais espaço entre logo e menu */
}

/* Cabeçalho */
header {
  background: rgba(0, 0, 0, 0.3); /* preto (lá ele) com 30% de opacidade */
  color: white;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-family: 'Saira Condensed', sans-serif;
  box-shadow: none;
  transition: background-color 0.35s, box-shadow 0.35s, height 0.3s, padding 0.3s;
  height: 80px;
  backdrop-filter: blur(4px); /* Efeito de desfoque suave */
}

header.scrolled {
  background-color: #B71C1C;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  height: 60px;
  padding: 0.6rem 0;
  backdrop-filter: none; /* Remove o desfoque quando scrolled */
}

.nav-menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* Mais espaço entre itens */
  font-weight: 600;
  margin: 0;
  align-items: center;
}

.nav-menu li {
  display: inline-block;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
  font-family: 'Saira Condensed', sans-serif;
  font-size: 1.1rem;
}

/* Underline animado */
.nav-menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #FFC107;
  transition: width 0.3s;
}

.nav-menu li a:hover {
  color: #FFC107;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* Acessibilidade: foco no visível */
.btn:focus, .nav-menu li a:focus {
  outline: 2px solid #FFC107;
  outline-offset: 2px;
}

/* Botão hamburger animado */
.menu-toggle {
  position: relative;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  outline: none;
  display: none;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  background-color: white;
  height: 3px;
  border-radius: 3px;
  position: absolute;
  width: 100%;
  transition: all 0.3s;
}

.menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span::before {
  content: "";
  top: -10px;
}

.menu-toggle span::after {
  content: "";
  top: 10px;
}

.menu-toggle.active span {
  background-color: transparent;
}

.menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Logo mudei pra margin-right para afastar del menu */
.logo {
  height: 70px;
  vertical-align: middle;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.3s;
  border-radius: 5px;
  margin-right: 2rem; 
}

header.scrolled .logo {
  height: 48px;
}

/* títulos da página */
.page-title {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title h2 {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 2.8rem;
  color: #B71C1C;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 15px;
}

.page-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #B71C1C, #FFC107);
  border-radius: 2px;
}

.page-title p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #1C1C1C;
  max-width: 700px;
  margin: 0 auto;
}

/* HERO (carrossel de três imagens) */
.hero {
  position: relative;
  padding: 0;
  text-align: center;
  color: #fff;
  font-family: 'Bebas Neue', cursive;
  animation: fadeIn 1s ease-in;
  background: none;
  overflow: hidden;
  min-height: 100vh; /* altura igual ao style.css */
  margin-top: -80px;
}

/* Overlay degradê para contraste */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Container pra imagens do carrossel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Carrossel de imagens com efeitinho de zoom - IGUAL AO STYLE.CSS */
.carousel-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.7s, transform 0.7s;
  transform: scale(1.03);
  filter: blur(3px); /* Filtro borrado aplicado */
}
.carousel-image.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  transform: scale(1);
  filter: blur(0); /* Remove o blur quando ativo */
}

/* Conteúdo da hero acima pra ficar em cima */
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 4rem; /* Tamanho igual ao style.css */
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.hero p {
  color: #fcf8f8;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  text-shadow: 4px 4px 5px rgba(0,0,0,0.25);
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 3rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #f2f2f2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery-item:hover img { 
  transform: scale(1.06); 
}

.gallery-item .caption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.45);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.lightbox.open { 
  display: flex; 
}

.lightbox-content {
  max-width: 1100px;
  max-height: 90vh;
  width: 100%;
  position: relative;
}

.lightbox-img {
  width: 100%;
  height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  background: #111;
}

.lightbox-close {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
  z-index: 1002;
}

.lightbox-close:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.1);
}

/* BOTÕES DE NAVEGAÇÃO MELHORADOS COM ANIMAÇÃO */
.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1001;
}

.lightbox-nav button {
  background: rgba(183, 28, 28, 0.7);
  border: none;
  color: #fff;
  padding: 16px 20px;
  border-radius: 50%;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-nav button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #B71C1C, #FFC107);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.lightbox-nav button:hover {
  background: rgba(255, 193, 7, 0.9);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  color: #1C1C1C;
}

.lightbox-nav button:hover::before {
  opacity: 1;
}

.lightbox-nav button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lightbox-nav button:focus {
  outline: 2px solid #FFC107;
  outline-offset: 2px;
}

/* Efeito de onda ao clicar */
.lightbox-nav button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  top: 0;
  left: 0;
  transform: scale(0);
  opacity: 0;
}

.lightbox-nav button:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.lightbox-caption { 
  color: #fff; 
  margin-top: 8px; 
  text-align: center; 
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 4px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer, .rodape {
  flex-shrink: 0;
  margin-top: auto;
}

footer {
  background-color: #1C1C1C;
  color: #FFC107;
  text-align: center;
  padding: 1rem 0;
  font-family: 'Saira Condensed', sans-serif;
}

.rodape p {
  margin: 0.3rem 0;
  font-family: 'Roboto', sans-serif;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-in forwards;
}

/* Responsivo */
@media (max-width:600px) {
  .page-title h2 { 
    font-size: 22px; 
  }
  
  .gallery-item img { 
    height: 140px; 
  }
  
  .lightbox-img { 
    height: 60vh; 
  }

  .hero h1 {
    font-size: 2.8rem; 
    text-align: center;
    padding: 0 15px;
  }

  .hero p {
    font-size: 1.1rem;
    text-align: center;
    padding: 0 15px;
  }

  /* Ajuste dos botões no mobile */
  .lightbox-nav {
    padding: 0 10px;
  }

  .lightbox-nav button {
    padding: 12px 16px;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
  }
}

/* Menu responsivo */
@media (max-width: 768px) {
  .header-container {
    justify-content: space-between;
    gap: 1rem;
    padding: 0 15px;
  }
  
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
  }

  .nav-menu {
    flex-direction: column;
    background-color: #B71C1C;
    position: fixed;
    top: 80px;
    right: 0;
    left: auto;
    width: 80%;
    max-width: 320px;
    display: flex;
    padding: 1rem 0;
    z-index: 2000;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    animation: slideInRight 0.4s ease forwards;
  }

  .nav-menu.closing {
    animation: slideOutRight 0.4s ease forwards;
  }

  /* Quando header tá scrolled (60px) */
  header.scrolled ~ .nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Saira Condensed', sans-serif;
  }

  .nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .rodape {
    background-color: #B71C1C;
    color: #FFC107;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }

  .rodape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFC107 , #B71C1C);
  }

  .rodape p {
    margin: 0.3rem 0;
  }

  /* espaçamento no mobile sem cortar o texto */
  .hero {
    min-height: 70vh;
    margin-top: -80px;
  }
  
  /* Ajuste para o container mobile */
  .hero .container {
    padding-top: 100px;
    height: auto;
    min-height: 70vh;
    justify-content: flex-start;
    padding-bottom: 2rem; 
  }
  
  /* Ajuste para o carrossel em mobile */
  .carousel-image {
    object-fit: cover;
  }

  /* centraliza conteúdo do hero mobile */
  .hero .container {
    justify-content: center;
    text-align: center;
    padding: 0 15px;
  }

  /* MODIFICADO: Removido margin-right da logo no mobile */
  .logo {
    margin-right: 0;
  }
}