/* ==========================================================================
   Página de detalhe do evento (evento-detalhe.php)
   ========================================================================== */
.evd-page,
.evd-page *,
.evd-page *::before,
.evd-page *::after {
  box-sizing: border-box;
}

.evd-page {
  margin: 0;
  background: #f9f9f9;
  color: #141414;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.evd-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Hero ---------- */
.evd-hero {
  color: var(--rdw-white);
  padding: calc(var(--site-topbar-h) + var(--space-5)) 0 var(--space-6);
}

.evd-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.evd-hero__main {
  flex: 1 1 60%;
  min-width: 0;
}

.evd-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: #ccc;
  margin-bottom: var(--space-4);
}

.evd-breadcrumb a {
  color: var(--rdw-white);
  font-weight: 700;
  text-decoration: none;
}

.evd-breadcrumb a:hover {
  text-decoration: underline;
}

.evd-breadcrumb__sep {
  color: var(--rdw-terracotta);
  font-weight: 700;
}

.evd-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  max-width: 80%;
}

.evd-hero__marca {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-top: var(--space-2);
}

/* ---------- Layout principal ---------- */
.evd-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas:
    "gallery card"
    "content card";
  column-gap: 50px;
  row-gap: var(--space-5);
  align-items: start;
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

/* ---------- Galeria ---------- */
.evd-gallery {
  grid-area: gallery;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eee;
  border-radius: 0;
  overflow: hidden;
}

.evd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.evd-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.evd-gallery__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #aaa;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.evd-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--rdw-white);
  cursor: pointer;
  transition: background 0.15s;
}

.evd-gallery__nav:hover {
  background: var(--rdw-terracotta);
}

.evd-gallery__nav svg {
  width: 20px;
  height: 20px;
}

.evd-gallery__nav--prev {
  left: var(--space-3);
}

.evd-gallery__nav--next {
  right: var(--space-3);
}


.evd-gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.evd-gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
}

.evd-gallery-dots button.active {
  background: var(--rdw-white);
}

/* ---------- Conteúdo ---------- */
.evd-content {
  grid-area: content;
}

.evd-block + .evd-block {
  margin-top: var(--space-5);
}

.evd-block__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.evd-block__title::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--rdw-terracotta);
}

.evd-block__text {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.evd-video {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.evd-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Card lateral ---------- */
.evd-card {
  grid-area: card;
  position: sticky;
  top: var(--space-4);
  background: var(--rdw-white);
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: var(--space-4);
}

.evd-card__slot {
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid #e5e5e5;
}

.evd-card__slot .evd-card__item + .evd-card__item {
  margin-top: var(--space-4);
}

.evd-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.evd-card__item--date {
  align-items: center;
}

.evd-card__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--rdw-terracotta);
}

.evd-card__date {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.evd-card__weekday {
  margin-top: 2px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evd-card__time {
  align-self: center;
  font-size: 20px;
  font-weight: 500;
}

.evd-card__note {
  margin: var(--space-2) 0 0 46px;
  font-size: 14px;
  color: #666;
}

.evd-card__cal-link {
  display: inline-block;
  margin: var(--space-2) 0 0 46px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--rdw-terracotta);
  text-decoration: none;
}

.evd-card__cal-link:hover {
  text-decoration: underline;
}

.evd-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.evd-card__strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.evd-card__text {
  font-size: 15px;
  line-height: 1.4;
  padding-top: 4px;
}

.evd-card__muted {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.evd-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: 14px var(--space-4);
  border: 1px solid var(--rdw-black);
  border-radius: 0;
  color: var(--rdw-black);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.evd-card__btn svg {
  width: 22px;
  height: 22px;
}

.evd-card__btn:hover {
  background: var(--rdw-black);
  color: var(--rdw-white);
}

.evd-card__btn + .evd-card__btn {
  margin-top: var(--space-2);
}

.evd-card__btn--inscrever {
  background: var(--rdw-terracotta);
  border-color: var(--rdw-terracotta);
  color: var(--rdw-white);
}

.evd-card__btn--inscrito {
  background: var(--rdw-olive);
  border-color: var(--rdw-olive);
  color: var(--rdw-white);
}

.evd-card__btn--esgotado {
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

.evd-card__btn--esgotado:hover {
  background: transparent;
  color: #999;
}

.evd-card__contacts {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid #e5e5e5;
}

.evd-card__label {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evd-card__contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #141414;
  font-size: 15px;
  text-decoration: none;
  word-break: break-word;
}

.evd-card__contact + .evd-card__contact {
  margin-top: var(--space-3);
}

.evd-card__contact svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.evd-card__contact:hover {
  color: var(--rdw-terracotta);
}

.evd-card__social {
  display: flex;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid #e5e5e5;
}

.evd-card__round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.evd-card__round svg {
  width: 17px;
  height: 17px;
}

.evd-card__round:hover {
  background: var(--rdw-terracotta);
  color: var(--rdw-white);
}

.evd-card__disclaimer {
  margin: var(--space-4) 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #999;
}

/* ---------- 404 ---------- */
.evd-404 {
  padding: calc(var(--site-topbar-h) + 80px) 40px 80px;
  text-align: center;
}

.evd-404 h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
}

.evd-404 a {
  color: var(--rdw-terracotta);
  font-weight: 700;
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .evd-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .evd-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "gallery"
      "card"
      "content";
  }

  .evd-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .evd-wrap {
    padding: 0 var(--space-3);
  }

  .evd-hero h1 {
    font-size: 28px;
    max-width: 100%;
  }
}
