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

body {
  font-family: 'Playfair Display', serif;
  color: #111;
  background-color: #fff;
  line-height: 1.8;
}

.hero {
  background: url('hero-bolo.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero .overlay {
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 3px;
}

.hero p {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.hero .tagline {
  display: block;
  margin-top: 1rem;
  font-style: italic;
  font-size: 1.2rem;
}

section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #000;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.gallery .images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #000;
}

.whatsapp {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.8rem 1.5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1rem;
  transition: background 0.3s;
}

.whatsapp:hover {
  background: #444;
}

/* Animação de entrada */
section, .gallery img {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

section.visible, .gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botão WhatsApp com efeito pulse */
.whatsapp.pulse {
  box-shadow: 0 0 0 8px rgba(0,0,0,0.1);
}

/* Animação de entrada no Hero */
.hero .overlay h1,
.hero .overlay p,
.hero .overlay .tagline {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.hero .overlay h1 {
  animation-delay: 0.3s;
}

.hero .overlay p {
  animation-delay: 0.6s;
}

.hero .overlay .tagline {
  animation-delay: 0.9s;
}

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

.hero .overlay h1 {
  font-size: 4rem;
  font-weight: bold;
  color: #d4af37; /* cor base sempre visível */
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Pseudo-elemento para o brilho */
.hero .overlay h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

/* Estado inicial: invisível */
.hero .overlay h1,
.hero .overlay p,
.hero .overlay .tagline,
.hero .overlay .cta {
  opacity: 0;
  transform: translateY(40px);
}

/* Animações em sequência */
.hero .overlay h1 {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero .overlay p {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.8s;
}

.hero .overlay .tagline {
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.3s;
}

.hero .overlay .cta {
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.8s;
}

/* Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: #d4af37; /* dourado */
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.cta:hover {
  background: #b8962e; /* dourado mais escuro no hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.galeria figure {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.galeria img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.galeria figure:hover img {
  transform: scale(1.05); /* zoom suave */
  filter: brightness(0.8); /* escurece um pouco */
}

.galeria figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.galeria figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.galeria figcaption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.galeria figure:hover figcaption {
  opacity: 1;
}

.galeria figure {
  position: relative;
  overflow: hidden;
}

.galeria figcaption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.galeria figure:hover figcaption {
  opacity: 1;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center; /* centraliza as imagens */
}

.galeria img {
  width: 100%;
  max-width: 280px;   /* limite máximo da largura */
  height: auto;       /* mantém proporção */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.5s ease, filter 0.5s ease;
}



.galeria img {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.4s ease; /* suaviza o movimento */
}

.galeria figure:hover img {
  transform: scale(1.08); /* aumenta 8% no hover */
}

.galeria figure {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.4s ease; /* suaviza o zoom */
}

.gallery img:hover {
  transform: scale(1.08); /* aumenta 8% no hover */
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.hero {
  background: url('bolocapa.jpg') center/cover no-repeat;
  height: 80vh;
  /* resto igual */
}
