/* Popup chrome: overlay, contenitore, chiusura */
body.popup-opened {
  overflow: hidden;
}

.popup-opened .blurrer {
  filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feGaussianBlur stdDeviation="6" /></filter></svg>#filter');
  -webkit-filter: blur(3px);
  filter: blur(3px);
}

.bl-overlaybg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 63, 88, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 40;
}

.popup-opened .bl-overlaybg {
  opacity: 1;
  pointer-events: auto;
}

.bl-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  box-sizing: border-box;
  padding: 40px 24px;
}

.bl-popup {
  --popup-accent: var(--blue-mid);
  --popup-ink: var(--navy, #223f58);
  position: relative;
  max-width: 920px;
  background-color: white;
  margin: 0 auto 40px;
  display: none;
  color: var(--popup-ink);
  overflow: visible;
}

.bl-popup-body {
  overflow: hidden;
  border-radius: 4px;
}

.bl-popup.school-lsu {
  --popup-accent: var(--orange);
}

.bl-popup.school-les {
  --popup-accent: var(--navy);
}

.bl-popup-close {
  position: sticky;
  top: 20px;
  z-index: 6;
  width: 40px;
  height: 40px;
  margin: 10px 10px -50px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(34, 63, 88, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.14s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.bl-popup-close span {
  display: block;
  position: relative;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.bl-popup-close span::before,
.bl-popup-close span::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background-color: var(--popup-ink);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color 0.16s ease;
}

.bl-popup-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.bl-popup-close:hover,
.bl-popup-close:focus-visible {
  background: var(--popup-ink);
  box-shadow: none;
  outline: none;
}

.bl-popup-close:hover span::before,
.bl-popup-close:hover span::after,
.bl-popup-close:focus-visible span::before,
.bl-popup-close:focus-visible span::after {
  background-color: white;
}

.bl-popup-close:active,
.bl-popup-close.is-pressed {
  transform: scale(0.86);
}

.display-none {
  display: none !important;
}

/* Layout interno */
.bl-popup-top {
  padding: 56px 56px 40px;
}

h2.bl-popup-title {
  margin: 0 0 1.35rem;
  padding-right: 2.6rem;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--popup-accent);
}

h2.bl-popup-title span {
  display: block;
  font-weight: 700;
  color: inherit;
}

.bl-popup-intro {
  column-count: 2;
  column-gap: 40px;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--popup-ink);
}

.bl-popup-intro p {
  margin: 0 0 0.8em;
  line-height: 1.3;
}

.bl-popup-intro p:last-child {
  margin-bottom: 0;
}

.bl-popup-chips {
  margin-top: 2rem;
}

.bl-popup-chips-title {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--popup-accent);
}

.bl-popup-chips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}

.bl-popup-chips li {
  display: inline-flex;
  align-items: center;
  padding: 0.38em 1.05em 0.42em;
  border: 1.5px solid var(--popup-accent);
  border-radius: 999px;
  color: var(--popup-accent);
  font-size: 0.94rem;
  line-height: 1.2;
}

.bl-popup-agenda {
  background: var(--popup-accent);
  color: white;
  text-align: center;
  padding: 42px 48px 46px;
}

.bl-popup-agenda h2 {
  margin: 0 0 1rem;
  color: white;
}

.bl-popup-agenda-text {
  max-width: 38rem;
  margin: 0 auto 1.6rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.bl-popup-agenda-text p {
  margin: 0 0 0.6em;
  line-height: 1.3;
}

.bl-popup-agenda-text p:last-child {
  margin-bottom: 0;
}

.bl-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.58em 0.9em;
  background: white;
  color: var(--popup-accent);
  border: 2px solid white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  text-transform: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.bl-popup-cta:hover,
.bl-popup-cta:focus-visible {
  background: transparent;
  color: white;
}

.bl-popup-media {
  line-height: 0;
  padding: 36px 36px 8px;
  background: white;
}

.bl-popup-video {
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
}

.bl-popup-video iframe,
.bl-popup-video img,
.bl-popup-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bl-popup-main-image img {
  display: block;
  width: 100%;
  height: auto;
}

.bl-popup-why {
  padding: 44px 56px 0;
}

.bl-popup-why-title {
  margin: 0 0 1.85rem;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--popup-ink);
}

.bl-popup-why-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px 48px;
  align-items: start;
}

.bl-popup-why-copy {
  padding-bottom: 36px;
}

.bl-popup-why-copy ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: why;
}

.bl-popup-why-copy li {
  position: relative;
  margin: 0;
  padding: 1em 0 1em 2.6rem;
  border-top: 1px solid rgba(34, 63, 88, 0.18);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--popup-ink);
}

.bl-popup-why-copy li:first-child {
  border-top: none;
  padding-top: 0;
}

.bl-popup-why-copy li:last-child {
  padding-bottom: 0;
}

.bl-popup-why-copy li::before {
  counter-increment: why;
  content: counter(why);
  position: absolute;
  left: 0;
  top: 1em;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--popup-accent);
  color: white;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.7rem;
  text-align: center;
}

.bl-popup-why-copy li:first-child::before {
  top: 0.05em;
}

.bl-popup-why-visual {
  display: flex;
  align-items: flex-end;
  align-self: end;
  min-width: 0;
}

.bl-popup-why-visual img,
.bl-popup-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  object-fit: contain;
  object-position: bottom center;
  vertical-align: bottom;
}

.bl-popup-why--noimage .bl-popup-why-body {
  grid-template-columns: 1fr;
}

.bl-popup.virtual-tour {
  background: #000;
}

.bl-popup.virtual-tour .bl-popup-body {
  background: #000;
}

@media (max-width: 760px) {
  .bl-overlay-content {
    padding: 12px;
  }

  .bl-popup-top,
  .bl-popup-why {
    padding-left: 22px;
    padding-right: 22px;
  }

  .bl-popup-top {
    padding-top: 52px;
    padding-bottom: 28px;
  }

  .bl-popup-intro {
    column-count: 1;
  }

  .bl-popup-agenda {
    padding: 32px 22px 36px;
  }

  .bl-popup-media {
    padding: 24px 24px 4px;
  }

  .bl-popup-why {
    padding-bottom: 0;
  }

  .bl-popup-why-body {
    grid-template-columns: 1fr;
  }

  .bl-popup-why-copy {
    padding-bottom: 28px;
  }

  .bl-popup-why-visual {
    order: 2;
  }
}
