.af-hero {
  height: 800px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  img {
    width: 120px;
    height: 60px;
  }

  p {
    color: white;
    max-width: 515px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 31px;
    font-weight: 400;
    margin-bottom: 0;
  }
}

.af-restitution-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;

  .af-restitution {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;

    .af-restitution-description {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 20px;

      .af-restitution-description-img {
        width: 60px;
        height: 276px;
        margin-top: -5px;
      }

      .af-restitution-description-text {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 60px;

        h3 {
          font-size: 50px;
          line-height: 50px;
          color: #232f5d;
        }

        p {
          font-size: 15px;
          line-height: 31px;
          color: #232f5d;
          margin-bottom: 0;
        }
      }
    }
  }

  .carousel-section {
    /* padding-left: calc((100% - 1140px) / 2); */

    .carousel-slider {
      padding-bottom: 30px;

      .carousel-slide {
        width: 100%;
        padding: 0 15px;
      }

      .carousel-slide img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        object-fit: cover;
        display: block;
      }
    }

    .carousel_footer {
      display: flex;
      justify-content: center;
      padding-bottom: 63px;

      .container-carousel-footer {
        display: flex;
        float: left;
      }
      .container-carousel-footer .dots-arrow {
        width: unset;
        padding: 15px;
      }
      .dots-arrow {
        width: 40px;
        padding: 9px;
        cursor: pointer;
        text-align: center;
      }
      .container-carousel-footer .dots-arrow img {
        width: 24px;
        height: 24px;
      }
      .dots-arrow-hr {
        width: 1px;
        height: 30px;
        background-color: #232f5d33;
        margin: auto;
        margin-top: 12px;
      }

      .custom-dots-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-left: 20px;

        .owl-dot {
          width: 10px;
          height: 10px;
          border: 2px solid #232f5d;
          opacity: 0.26;
          border-radius: 50%;
          padding: 0;
        }
        .active {
          width: 6px;
          height: 6px;
          background-color: #232f5d;
          border: 2px solid #232f5d;
          opacity: 1;
        }
      }
    }
  }
}

.af-ei-wrap {
  height: 900px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  .af-ei {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 510px;
    width: 100%;

    img {
      width: 494px;
      height: 100px;
    }

    h3 {
      color: white;
      font-size: 64px;
      line-height: 67px;
      text-align: center;
      letter-spacing: 24.48px;
      margin-bottom: 0;
    }

    p {
      font-size: 16px;
      line-height: 31px;
      color: white;
      margin-bottom: 0;
    }
  }
}

@media (max-width: 992px) {
  .carousel-section .carousel-slider {
    padding-bottom: 20px;
    padding-top: 30px;
  }
}
@media (max-width: 640px) {
  .desktop-carousel {
    display: none !important;
  }
  .af-restitution-footer-desktop {
    display: none !important;
  }

  .mobile-carousel {
    display: block;
  }
  .af-restitution-footer-mobile {
    display: block;
  }

  .mobile-4-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .grid-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }

  /* Optional: Adjust slide container on mobile */
  .carousel-slide {
    padding: 0 10px;
  }
}
@media (min-width: 641px) {
  .mobile-carousel {
    display: none !important;
  }
  .af-restitution-footer-mobile {
    display: none !important;
  }
  .desktop-carousel {
    display: block;
  }
  .af-restitution-footer-desktop {
    display: block;
  }
}

@media (max-width: 640px) {
  .af-hero {
    height: 540px;
    justify-content: flex-start;
    padding: 35px 12px 0;

    img {
      width: 92px;
      height: 46px;
    }

    p {
      font-size: 16px;
      line-height: 24px;
      max-width: unset;
    }
  }
  .af-restitution-wrap {
    padding-top: 20px;

    .af-restitution {
      .af-restitution-description {
        gap: 10px;

        .af-restitution-description-img {
          width: 30px;
          height: 524px;
          margin-top: 0;
        }

        .af-restitution-description-text {
          display: flex;
          flex-direction: column;
          gap: 10px;
          margin-bottom: 30px;

          h3 {
            font-size: 26px;
            line-height: 30px;
          }

          p {
            font-size: 14px;
            line-height: 26px;
          }
        }
      }
    }
  }
  .af-ei-wrap {
    height: 795px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px 0 0;

    .af-ei {
      max-width: unset;

      img {
        width: 350px;
        height: 71px;
      }
      h3 {
        font-size: 36px;
        line-height: 46px;
        text-align: left;
        letter-spacing: 13.77px;
      }
      p {
        font-size: 16px;
        line-height: 28px;
      }
    }
  }
}

.link {
  clip-path: polygon(0% 50%, 10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%);
  height: 50px;
  width: 200px;
  /* border: 1px solid #232f5c; */

  overflow: hidden;
  // color: $white;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  position: relative;

  span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;

    @include respond-to("xs") {
      height: 40px;
    }

    &:first-child {
      color: white;
      transition: all 0.4s;
    }

    &:last-child {
      color: #232f5c;
      transition: all 0.4s;
    }
  }

  &::after {
    content: "";
    position: absolute;

    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    transition: all 0.3s;
    clip-path: polygon(0% 50%, 10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%);
    z-index: -1;
  }

  &:hover {
    // background-color: #fff;
    span:first-child {
      transform: translateY(-50px);
    }

    span:last-child {
      transform: translateY(-50px);
    }

    &::after {
      background-color: #fff;
    }
  }

  @include respond-to("xs") {
    font-size: 12px;
    height: 40px;
    /* width: 250px; */
  }
}
.text-siracusa {
  color: #f29928;
}
.text-firenze {
  color: #612895;
}
.text-dolomiti {
  color: #295135;
}
.text-roma {
  color: #a50034;
}
.text-default {
  color: #232f5d;
}

.bg-siracusa {
  background-color: #f29928;
}
.bg-firenze {
  background-color: #612895;
}
.bg-dolomiti {
  background-color: #295135;
}
.bg-roma {
  background-color: #a50034;
}
.bg-default {
  background-color: #232f5d;
}
