.event-container {
  background-color: #333333;
  padding: 20px;
  border-radius: 10px;
  /* max-width: 800px; */
  margin: auto;
}

.event-title {
  margin: 0;
  color: #ffffff;
}

.event-subtitle {
  margin-top: 5px;
  color: #aaaaaa;
}

.event-description {
  margin-top: 20px;
  line-height: 1.6;
}

.event-info-grid,
.event-organizers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.event-info-grid>div,
.event-organizers>div {
  min-width: 180px;
  /* Largura mínima p/ manter legível */
  flex: 0 0 auto;
  /* Não expandem demais */
}

/* Continua válido */
.event-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background-color: #444;
  padding: 15px;
  border-radius: 8px;
}

.event-organizers {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.highlight {
  color: #636363;
}

.event-regulamento {
  margin-top: 30px;
}

.regulamento-box {
  background-color: #222;
  padding: 10px;
  border-radius: 6px;
}

.regulamento-box iframe {
  width: 100%;
  height: 900px;
  border: none;
  background-color: #fff;
}

.download-link {
  text-align: right;
  margin-top: 10px;
}

.download-link a {
  color: #ffffff;
  background-color: #636363;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
}

.tabs {
  margin-top: 20px;
  text-align: center;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tab-btn {
  padding: 8px 16px;
  background-color: #636363;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.tab-btn.active {
  background-color: #ffffff;
  color: #333333;
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.event-description {
  max-width: 800px;
  margin: 20px auto 0 auto;
  /* centraliza */
}

.event-description p {
  text-align: justify;
  text-indent: 2em;
}

.event-organizers p {
  position: relative;
  margin: 0;
  padding-left: 1.2em;
  text-align: left;
}

.event-organizers p::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #636363;
}

.event-description,
.event-info-grid,
.event-organizers,
.event-regulamento {
  margin-top: 50px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 1s ease;
  opacity: 0;
  z-index: 0;
}

.banner-slide:nth-child(n) {
  z-index: 0;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

@media (max-width: 768px) {
  #form>div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  #form label,
  #form select {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

.qrcode {
  display: none;
}