/* =============== */
/*   BG do body    */
/* =============== */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.events-body {
  margin: 0;
  padding: 0;
  /* Fundo fixo (opcional) */
  background: url("../imagens/background.jpeg") center center / cover no-repeat
    fixed;
  min-height: 100vh;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container principal */
.events-container {
  margin-top: 60px;
  padding: 20px;
  position: relative;
  /* se quiser um fundo semitransparente, etc. */
  flex: 1;
}

/* Layout flex: 3 colunas */
.events-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Título mobile */
.mobile-title {
  display: none;
  text-align: center;
  font-size: 2rem;
  margin-top: 80px;
  color: #f3ca4c;
  font-family: "Lora", serif;
  font-weight: lighter;
}

@media (max-width: 768px) {
  .mobile-title {
    display: block;
  }
}

/* ================== */
/*    Card do evento */
/* ================== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card {
  width: 350px;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  position: relative;
  aspect-ratio: 1 / 1; /* Quadrado por padrão */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Overlay do título (em cima) */
.event-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.event-title {
  color: #fff;
  margin: 10px;
  font-size: 32px;
  font-family: "Lora", serif;
  font-weight: lighter;
  text-align: center;
}

/* Overlay do subtítulo (em baixo) */
.event-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.event-subtitle {
  color: #fff;
  margin: 10px;
  font-style: italic; /* se quiser */
  font-family: sans-serif;
}

/* Responsivo (mobile) */
@media (max-width: 768px) {
  .event-card {
    width: 70%;
  }

  .event-image {
    aspect-ratio: 1 / 1;
  }
}
