/* CSI_HOME_LATEST_EVENT_20261013 - section between white introduction and beige courses */
.home .csi-home-event-section {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  width: 100% !important;
  padding: clamp(54px, 6vw, 84px) 0 !important;
  background: #e8f1ee !important;
  border-top: 1px solid rgba(11,45,63,.08) !important;
  border-bottom: 1px solid rgba(11,45,63,.11) !important;
}
.home .csi-home-event-section::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .75;
  background:
    radial-gradient(ellipse at 90% 12%, rgba(16,84,85,.07), transparent 45%),
    radial-gradient(ellipse at 7% 82%, rgba(209,155,83,.09), transparent 37%);
}
.home .csi-home-event-section > .brxe-div,
.home .csi-home-event-section .brxe-shortcode {
  width: 100% !important;
  max-width: none !important;
  position: relative;
  z-index: 1;
}
.home .csi-home-event-section .csi-home-event-shell {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin: 0 auto;
}
.home .csi-home-event-section .csi-home-event-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 22px 28px;
  margin: 0 0 30px;
}
.home .csi-home-event-section .csi-home-event-head-copy {
  min-width: 0;
}
.home .csi-home-event-section .csi-home-event-eyebrow {
  display: inline-block;
  font-size: 13px !important;
  font-weight: 850 !important;
  color: #99540d !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
  letter-spacing: .11em !important;
}
.home .csi-home-event-section .csi-home-event-head h2 {
  color: #0b2d3f !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(40px, 4vw, 59px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
  margin: 12px 0 12px !important;
  max-width: none !important;
}
.home .csi-home-event-section .csi-home-event-head p {
  color: #526b70 !important;
  font-size: clamp(15px, 1.2vw, 17px) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.home .csi-home-event-section .csi-home-event-archive-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid rgba(11,45,63,.23);
  border-radius: 999px;
  color: #0b2d3f !important;
  background: rgba(255,255,255,.55);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color .2s ease, transform .2s ease;
}
.home .csi-home-event-section .csi-home-event-archive-link:hover,
.home .csi-home-event-section .csi-home-event-archive-link:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}
.home .csi-home-event-section .csi-home-event-archive-link:focus-visible {
  outline: 3px solid #d99536;
  outline-offset: 3px;
}
.home .csi-home-event-section .csi-home-event-card-area {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  background: transparent !important;
}
.home .csi-home-event-section .csi-events-upcoming-grid {
  width: 100% !important;
  margin: 0 !important;
}
.home .csi-home-event-section .csi-event-card-v5 {
  background: #fff !important;
}
/* Hide the entire block when there are no upcoming events. Archived cards stay on /eventi/. */
.home .csi-home-event-section:has(.csi-home-events-empty) {
  display: none !important;
}

@media (max-width: 800px) {
  .home .csi-home-event-section {
    padding: 52px 0 60px !important;
  }
  .home .csi-home-event-section .csi-home-event-shell {
    width: min(1180px, calc(100% - 40px)) !important;
  }
  .home .csi-home-event-section .csi-home-event-head {
    gap: 18px;
    margin-bottom: 24px;
  }
  .home .csi-home-event-section .csi-home-event-head h2 {
    font-size: clamp(36px, 7vw, 49px) !important;
  }
}
@media (max-width: 520px) {
  .home .csi-home-event-section {
    padding: 46px 0 54px !important;
  }
  .home .csi-home-event-section .csi-home-event-shell {
    width: calc(100% - 32px) !important;
  }
  .home .csi-home-event-section .csi-home-event-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 21px;
    gap: 18px;
  }
  .home .csi-home-event-section .csi-home-event-head h2 {
    font-size: clamp(34px, 10vw, 42px) !important;
    line-height: 1.07 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .csi-home-event-section .csi-home-event-archive-link {
    transition: none !important;
  }
}
