/* Agenda do Circuito In Move: porta para o 8003 a composicao existente no 8006. */
.fx-next-meeting {
  --meeting-surface: #090a0b;
  --meeting-text: #f4efe6;
  --meeting-muted: #b6c1c8;
  --meeting-accent: #e35336;
  --meeting-trail: #a85a41;
  --meeting-grid: min(1040px, calc(100vw - 48px));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--meeting-text);
  background: var(--meeting-surface);
  padding: clamp(30px, 3vw, 42px) max(24px, calc((100% - var(--meeting-grid)) / 2)) clamp(54px, 4.2vw, 64px);
}

.fx-next-meeting::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(18px, 1.7vw, 25px);
  background: var(--meeting-accent);
}

.fx-next-meeting__grid,
.fx-next-meeting__timeline {
  position: relative;
  z-index: 1;
  width: var(--meeting-grid);
  margin-inline: auto;
}

.fx-next-meeting__track {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-next-meeting__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.fx-next-meeting__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 108px;
  padding: 18px 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--meeting-text);
  text-align: center;
  text-transform: uppercase;
}

.fx-next-meeting__item small,
.fx-next-meeting__item span { color: var(--meeting-muted); font-size: clamp(10px, .78vw, 12px); font-weight: 500; line-height: 1.25; transition: color 480ms ease; }

.fx-next-meeting__item strong { display: block; width: 100%; overflow: hidden; color: inherit; font-family: var(--fonte-titulo, inherit); font-size: clamp(16px, 1.45vw, 22px); font-weight: 650; line-height: 1.05; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 480ms ease, text-shadow 480ms ease, transform 480ms cubic-bezier(.22,1,.36,1); }

.fx-next-meeting__item--live,
.fx-next-meeting__item--live small,
.fx-next-meeting__item--live span {
  color: var(--meeting-accent);
}

.fx-next-meeting__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--meeting-accent);
  border-style: solid;
  pointer-events: none;
}

.fx-next-meeting__corner--top-left { top: 0; left: 0; border-width: 1px 0 0 1px; }
.fx-next-meeting__corner--top-right { top: 0; right: 0; border-width: 1px 1px 0 0; }
.fx-next-meeting__corner--bottom-left { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.fx-next-meeting__corner--bottom-right { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.fx-next-meeting__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  height: 21px;
  margin-top: 2px;
}

.fx-next-meeting__line {
  position: absolute;
  top: 50%;
  right: 10%;
  left: 10%;
  height: 1px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(to right, var(--meeting-muted) 0 7px, transparent 7px 12px);
  opacity: .9;
}

.fx-next-meeting__marker {
  position: relative;
  z-index: 1;
  grid-row: 1;
  justify-self: center;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 1px solid var(--meeting-text);
  border-radius: 50%;
  background: var(--meeting-surface);
}

.fx-next-meeting__marker--live {
  width: 18px;
  height: 18px;
  border: 5px solid #25110d;
  outline: 1px solid var(--meeting-accent);
  background: var(--meeting-accent);
}

@media (max-width: 767px) {
  .fx-next-meeting {
    --meeting-grid: min(100%, 540px);
    padding-block: 28px 52px;
  }

  .fx-next-meeting__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .fx-next-meeting__item {
    min-height: 94px;
    padding: 14px 8px;
    gap: 7px;
  }

  .fx-next-meeting__item strong {
    overflow: visible;
    font-size: clamp(16px, 4.6vw, 18px);
    text-overflow: clip;
    white-space: normal;
  }

  .fx-next-meeting__item--live strong { font-size: clamp(17px, 5.1vw, 20px); }
  .fx-next-meeting__item small,
  .fx-next-meeting__item span { font-size: 10px; }

  .fx-next-meeting__item--live { grid-column: 1 / -1; max-width: calc(50% - 6px); width: 100%; justify-self: center; }
  .fx-next-meeting__timeline { display: none; }
}


/* A faixa ocupa o respiro que já existe entre o herói e a trajetória. */
.pagina-home .home-section-content > .fx-next-meeting {
  margin-inline: calc(-1 * var(--espaco-6));
  border-bottom: 0;
}

@media (max-width: 767px) {
  .pagina-home .home-section-content > .fx-next-meeting {
    scroll-margin-top: 16px;
  }
}

/* Text accents follow the existing track; content stays readable without JS. */


.fx-next-meeting__item::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: calc(50% - 18px);
  width: 36px;
  height: 2px;
  background: var(--meeting-accent);
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity 480ms ease, transform 600ms cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.fx-next-meeting__item.is-track-near strong {
  color: #ffd6bf;
  text-shadow: 0 0 18px rgb(227 83 54 / 32%);
}
.fx-next-meeting__item--live.is-track-near strong {
  color: #ff815e;
}
.fx-next-meeting__item.is-track-near::after {
  opacity: .8;
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .has-text-motion .fx-next-meeting__item:hover strong {
    color: #ffd6bf;
    text-shadow: 0 0 20px rgb(227 83 54 / 42%);
    transform: translateY(-3px);
  }
  .has-text-motion .fx-next-meeting__item--live:hover strong { color: #ff815e; }
  .has-text-motion .fx-next-meeting__item:hover small,
  .has-text-motion .fx-next-meeting__item:hover span { color: var(--meeting-text); }
  .has-text-motion .fx-next-meeting__item:hover::after { opacity: 1; transform: scaleX(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-next-meeting__item strong,
  .fx-next-meeting__item small,
  .fx-next-meeting__item span,
  .fx-next-meeting__item::after { transition: none; }
}
