:root{
  --swiper-navigation-size:24px;
}
/* Viewport >= 1280px: --w = 1220px */
@media (min-width: 1280px) {
  :root {
    --w: 1220px;
  }
}

/* Viewport tra 768px e 1279px: --w = 95% */
@media (min-width: 768px) and (max-width: 1279px) {
  :root {
    --w: 95%;
  }
}

/* Viewport <= 767px: --w = calc(100vw - 30px) */
@media (max-width: 767px) {
  :root {
    --w: calc(100vw - 30px);
  }
}

.mySwiper {
  background: linear-gradient(
    111deg,
    #0051b2 3.9%,
    #0980a2 50.54%,
    #01387c 95.42%
  );
  display: flex;
  flex-direction: column;
}
.swiper-wrapper {
  /*margin-left: calc((100vw - var(--w)) / 2);*/
  margin-block: 3.2rem;
}

.swiper-slide {
  /*min-height: clamp(40rem, 40vh, 50rem);*/
  border-radius: 1rem;
  display: flex;
  align-items: end;
  overflow: hidden;
  position: relative;
  aspect-ratio: .58;;

  .overlay {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 2rem;
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    color: #fff;
    left: 0;
    top: 0;
    z-index: 1;

    &:hover {
      text-decoration: none;

      img {
        transform: scale(1.05);
        opacity: 0.75;
      }
      .swiper-slide-content {
        transform: translateY(-20px);
      }
    }

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      z-index: -1;
      opacity: 0.55;
      transition: all 0.3s ease-in-out;
    }
  }

  svg.play {
    position: absolute;
    top: 30%;
    left: calc(50% - 3.5rem);
    width: 7rem;
    z-index: 1000;
  }

  .swiper-slide-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: start;
    position: relative;
    z-index: 5;
    transition: all 0.3s ease-in-out;

    span {
      padding: 1rem 1.5rem;
      border: 1px solid #fff;
      text-transform: uppercase;
      text-decoration: none;
      background-color: rgba(0, 0, 0, 0.2);
      font-size: clamp(1.2rem, 0.9vw, 1.3rem);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    h3,
    h6,
    a {
      color: #fff;
    }

    h3 {
      font-size: clamp(2rem, 1.5vw, 3rem);
      margin: 0;
    }

    h6 {
      font-size: clamp(1.4rem, 1.1vw, 1.5rem);
      margin: 0 0 1.5rem 0;
      text-transform: uppercase;
      font-weight: 300;
    }
  }
}

.swiper-navigation-container {
  padding-bottom: 2rem;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  .swiper-button-next,
  .swiper-button-prev {
    position: unset;
    color: #fff;
    margin: 1rem;
  }
}

#headings-container {
  margin: 5rem auto 2rem;
  width: var(--w);
  letter-spacing: normal;

  h2 {
    font-size: clamp(3rem, 2vw, 5rem);
    color: #fff;
    margin: 0;
    font-weight: 600;
    letter-spacing: normal;
  }

  h6 {
    font-size: clamp(1.6rem, 1.2vw, 1.9rem);
    color: #fff;
    margin-top: 0.5rem;
    font-weight: 300;
  }
}
