/* ------ WIDGET: AGENDA DE EVENTOS ----- */

.agenda-eventos-section {
  position: relative;
  padding: 82px 0;
  color: #181818;
  background-color: #ffffff;
  overflow: hidden;
}

.agenda-eventos-container {
  width: 100%;
  max-width: 100%;
  padding-left: 42px;
  padding-right: 42px;
  display: grid;
  grid-template-columns: minmax(250px, 0.24fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.agenda-eventos-header {
  width: auto;
  max-width: 340px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}

.agenda-eventos-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: rgba(24, 24, 24, 0.54);
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agenda-eventos-header h2 {
  max-width: 100%;
  margin: 0;
  color: #181818;
  font-family: var(--font-secondary);
  font-size: clamp(2.65rem, 3.65vw, 4rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.agenda-eventos-icon {
  color: #181818;
}

.agenda-eventos-icon .material-symbols-outlined {
  display: block;
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
}

.agenda-eventos-button {
  min-height: 48px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid rgba(24, 24, 24, 0.12);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #181818;
  background-color: #ffffff;
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.agenda-eventos-button:hover {
  color: #ffffff;
  background-color: #253d4d;
  border-color: #253d4d;
  transform: translateY(-2px);
}

.agenda-eventos-button .material-symbols-rounded {
  font-size: 1.1rem;
}

.agenda-eventos-slider {
  --agenda-line-color: #253d4d;
  --agenda-day-color: #65c4cf;
  --agenda-section-bg: #ffffff;
  --agenda-gap: 16px;
  position: relative;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 18px;
}

.agenda-eventos-sources {
  display: none !important;
}

.agenda-eventos-viewport {
  width: 100%;
  overflow: hidden;
  scroll-behavior: auto;
}

.agenda-eventos-track {
  display: flex;
  align-items: stretch;
  gap: var(--agenda-gap);
  will-change: transform;
  transform: translateX(0);
}

.agenda-eventos-track.is-moving {
  transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1);
}

.agenda-eventos-slider.is-static {
  grid-template-columns: minmax(0, 1fr);
}

.agenda-eventos-slider.is-static .agenda-eventos-track {
  justify-content: center;
  will-change: auto;
}

.agenda-eventos-slider.is-static .agenda-eventos-arrow {
  display: none;
}

.agenda-evento-card {
  width: calc((100% - (var(--agenda-gap) * 4)) / 5);
  min-width: calc((100% - (var(--agenda-gap) * 4)) / 5);
  flex: 0 0 auto;
}

.agenda-evento-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.agenda-evento-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background-color: #f5f5f2;
}

.agenda-evento-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.agenda-evento-card:hover .agenda-evento-image img {
  transform: scale(1.055);
}

.agenda-evento-card-body {
  position: relative;
  min-height: 184px;
  padding: 13px 0 0;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.agenda-evento-date-row {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.agenda-evento-date-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agenda-evento-day-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: var(--agenda-day-color);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.agenda-evento-weekday {
  color: rgba(24, 24, 24, 0.64);
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agenda-evento-countdown {
  min-height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(24, 24, 24, 0.64);
  background-color: #ffffff;
  font-family: var(--font-secondary);
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.agenda-evento-countdown.is-today {
  color: #ffffff;
  background-color: var(--agenda-day-color);
}

.agenda-evento-month {
  margin: 0;
  color: rgba(24, 24, 24, 0.42);
  font-family: var(--font-secondary);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.agenda-evento-line {
  position: relative;
  width: calc(100% + var(--agenda-gap));
  margin: 0 0 13px;
  display: flex;
  align-items: center;
  min-height: 30px;
}

.agenda-evento-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background-color: var(--agenda-line-color);
  transform: translateY(-50%);
}

.agenda-evento-time {
  position: relative;
  z-index: 2;
  padding-left: 12px;
  padding-right: 12px;
  color: var(--agenda-line-color);
  background-color: var(--agenda-section-bg);
  font-family: var(--font-secondary);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
}

.agenda-evento-title {
  min-height: 2.45em;
  margin: 0;
  color: #181818;
  font-family: var(--font-secondary);
  font-size: clamp(1.12rem, 1.18vw, 1.42rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.agenda-evento-company {
  min-width: 0;
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agenda-evento-company-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 50%;
  background-color: #ffffff;
  object-fit: cover;
}

.agenda-evento-company-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(24, 24, 24, 0.76);
  font-family: var(--font-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-evento-city {
  margin-top: 13px;
  color: rgba(24, 24, 24, 0.58);
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.agenda-evento-company + .agenda-evento-city {
  margin-top: 10px;
}

.agenda-evento-address {
  display: block;
  margin-top: 4px;
  color: rgba(24, 24, 24, 0.44);
  font-size: 0.78rem;
  font-weight: 400;
}

.agenda-eventos-arrow {
  position: relative;
  z-index: 5;
  width: 34px;
  height: 58px;
  border: 0;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(24, 24, 24, 0.72);
  background-color: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.agenda-eventos-arrow:hover {
  color: #181818;
}

.agenda-eventos-arrow-prev:hover {
  transform: translateX(-3px);
}

.agenda-eventos-arrow-next:hover {
  transform: translateX(3px);
}

.agenda-eventos-arrow .material-symbols-rounded {
  pointer-events: none;
  font-size: 2.35rem;
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 1199.98px) {
  .agenda-evento-card {
    width: calc((100% - (var(--agenda-gap) * 2)) / 3);
    min-width: calc((100% - (var(--agenda-gap) * 2)) / 3);
  }
}

@media (max-width: 991.98px) {
  .agenda-eventos-section {
    padding: 76px 0;
  }

  .agenda-eventos-container {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .agenda-eventos-header {
    max-width: 620px;
  }

  .agenda-eventos-slider {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 14px;
  }

  .agenda-eventos-arrow {
    width: 30px;
    height: 52px;
  }

  .agenda-eventos-arrow .material-symbols-rounded {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .agenda-eventos-section {
    padding: 72px 0;
  }

  .agenda-eventos-container {
    gap: 34px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .agenda-eventos-header h2 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .agenda-eventos-icon .material-symbols-outlined {
    font-size: 52px;
  }

  .agenda-eventos-slider {
    --agenda-gap: 14px;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 6px;
  }

  .agenda-evento-card {
    width: calc((100% - var(--agenda-gap)) / 2);
    min-width: calc((100% - var(--agenda-gap)) / 2);
  }

  .agenda-evento-card-body {
    min-height: 205px;
    padding-top: 14px;
  }

  .agenda-evento-date-main {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
  }

  .agenda-evento-day-circle {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .agenda-evento-weekday {
    font-size: 0.67rem;
    letter-spacing: 0.1em;
  }

  .agenda-evento-countdown {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 20px;
    font-size: 0.5rem;
  }

  .agenda-evento-date-row {
    gap: 9px;
  }

  .agenda-evento-month {
    font-size: 0.64rem;
  }

  .agenda-evento-title {
    min-height: 3em;
    font-size: clamp(1rem, 4.6vw, 1.2rem);
  }

  .agenda-eventos-arrow {
    width: 20px;
    height: 48px;
  }

  .agenda-eventos-arrow .material-symbols-rounded {
    font-size: 1.55rem;
  }

  .agenda-evento-time {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.8rem;
  }

  .agenda-evento-company {
    gap: 7px;
  }

  .agenda-evento-company-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .agenda-evento-company-name {
    font-size: 0.68rem;
  }

  .agenda-evento-city {
    font-size: 0.72rem;
  }

  .agenda-evento-address {
    font-size: 0.68rem;
  }
}
