/* ================= VOLTAR (BUTTON OVER BANNER) ================= */

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--theme-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  z-index: 12;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.back-button:hover {
  transform: translateY(-2px);
}

/* ================= BANNER ================= */

.banner-wrap {
  position: relative;
}

.event-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-banner img,
.event-banner .banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.banner-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-overlay h1 {
  color: #fff;
  font-size: 36px;
}

/* ================= CONTEÚDO ================= */

.event-content {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  gap: 60px;
}

/* COLUNA ESQUERDA */
.event-details {
  flex: 2;
}

.info-block {
  margin-bottom: 40px;
}

.info-block h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.info-block p {
  line-height: 1.6;
  color: #555;
}

/* COLUNA DIREITA */
.event-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-info-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.event-info-box h3 {
  margin-bottom: 8px;
  font-size: 16px;
  color: #777;
}

.event-info-box p {
  font-weight: 600;
}

/* CTA */

.cta-button {
  padding: 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cta-button:hover {
  background: #222;
  transform: translateY(-2px);
}

/* ================= RESPONSIVO ================= */

@media (max-width: 768px) {

  .event-content {
    flex-direction: column;
  }

  /* CTA primeiro no mobile */
  .event-side {
    order: -1;
  }

  .event-banner {
    width: 100% !important;
    height: auto;
  }

  .banner-overlay h1 {
    font-size: 22px;
  }

  .back-button {
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    border-radius: 0;
    box-shadow: none;
    justify-content: center;
    position: static;
  }

  /* Fix CTA at bottom on mobile */
  .cta-button {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 30;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border-radius: 10px;
    width: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    font-size: 16px;
  }

  /* Reserve space so content isn't hidden under the fixed CTA */
  .event-content {
    padding-bottom: 92px;
  }

}