/* POPUP */
#modal-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 910;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.popup-opened #modal-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-overlay,
.popup-close {
  padding: 0;
  border: 0;
  background-color: transparent;
  line-height: 0;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 12, 94, 0.4);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 83.333333%;
  max-width: 850px;
  max-height: 80%;
  transform: translate(-50%, calc(-50% + 20px));
  background-color: #fff;
  overflow-y: auto;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.popup-opened .popup-content {
  transform: translate(-50%, -50%);
}

.popup-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.popup-body {
  position: relative;
  padding: 40px 32px;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--blu);
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-close:hover {
  opacity: 0.3;
}

.popup-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  pointer-events: none;
}

.popup-title,
.popup-text {
  color: var(--blu);
}

.popup-text,
.popup-link {
  margin-top: 20px;
}

@media (min-width: 992px) {
  .popup-content {
    max-height: none;
  }

  .popup-body {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* BANNER */
:root {
  --banner-height: 40px;
}

.banner {
  display: flex;
  align-items: center;
  height: var(--banner-height);
  background-color: var(--azzurro);
  overflow: hidden;
}

.banner-marquee {
  width: 100%;
}

.banner-marquee .swiper-wrapper {
  align-items: center;
}

.banner-text {
  padding: 0 4px;
  color: var(--nero);
  user-select: none;
  -webkit-user-select: none;
}
