/* ==========================
   HERO
========================== */

.home-hero {
position: relative;
width: 100%;
height: 520px;
overflow: hidden;
 color: #fff;
}


/* ==========================
   SLIDER BACKGROUND
========================== */

.home-hero__slider {
 position: absolute;
inset: 0;
 z-index: 1;
}

.home-hero__slider {
 position: absolute;
inset: 0;
display: flex;
width: 100%;
 height: 100%;
transition: transform .7s ease;
 z-index: 1;
}

.home-hero__slide {
flex: 0 0 100%;
 width: 100%;
 height: 100%;
background-repeat: no-repeat;
 background-position: center center;
background-size: cover;
}

.home-hero::before {
 content: '';
 position: absolute;
inset: 0;
 background: rgba(0, 20, 50, .35);
z-index: 2;
}


/* ==========================
   CONTENUTO
========================== */

.home-hero .container {
 position: relative;
 height: 100%;
 z-index: 3;
}

.home-hero__content {
 height: 100%;
display: flex;
flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
}


/* ==========================
   TITOLO
========================== */

.home-hero h1 {
font-size: 40px;
  font-weight: 700;
  /*! line-height: 1.1; */
  margin-bottom: 0px;
}


/* ==========================
   SOTTOTITOLO
========================== */

.home-hero__subtitle {
  max-width: 720px;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 34px;
  margin-top: 10px;
}


/* ==========================
   BOTTONE
========================== */

.home-hero__btn {
  width: 354px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFD300;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  transition: .25s ease;
  margin-bottom: 36px;
}

.home-hero__btn:hover {
  background: #ffffff;
}


/* ==========================
   TESTO FINALE
========================== */

.home-hero__text {
  max-width: 960px;
  font-size: 20px;
  line-height: 1.4;
}


/* ==========================
   FRECCE
========================== */

.home-hero__prev,
.home-hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 4;
}

.home-hero__prev {
  left: 80px;
}

.home-hero__next {
  right: 80px;
}

.home-hero__prev img,
.home-hero__next img {
  width: 27px;
  height: 73px;
  display: block;
}


/* ==========================
   TABLET
========================== */

@media (max-width: 991px) {
  .home-hero {
    height: 600px;
  }
  .home-hero__subtitle {
    font-size: 26px;
  }
  .home-hero__text {
    font-size: 18px;
  }
  .home-hero__prev {
   left: 30px;
  }
  .home-hero__next {

    right: 30px;
  }
}


/* ==========================
   MOBILE
========================== */

@media (max-width: 767px) {
  .home-hero {
    height: 560px;
  }
  .home-hero h1 {
     font-size: 32px;
  }
  .home-hero__subtitle {
    font-size: 20px;
    margin-bottom: 28px;
    line-height: 24px
  }
  .home-hero__btn {
    width: 100%;
    max-width: 320px;
  }
  .home-hero__text {
    font-size: 16px;
  }
  .home-hero__prev,
  .home-hero__next {
    display: none;
  }
}
.home-hero__btn {
  transition: background .25s ease,transform .25s ease;
}

.home-hero__btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
}
/* HOME SERVICES */
.home-services {
  padding: 0px 0 25px;
}

.home-services__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0px;
  margin-top: 35px;
}

.home-services__subtitle {
  text-align: center;
  font-size: 16px;
  margin-bottom: 40px;
  margin-top: 8px;
}

.home-services__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 50px;
  max-width: 984px;
  margin: 0 auto;
}

.home-card {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 50, 0.05);
}

.home-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.home-card h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  height: 50px;
}

.home-card__btn,
.home-services__btn {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFD300;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  border-radius: 4px;
}

.home-card__btn {
  width: 175px;
}
.home-card__btn:hover {color: #333;
  background-color: #e6e6e6;}

.home-numbers {
  background: #F1F1F1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 0;
  max-width: 984px;
  margin:2.5rem auto 0 auto;
}

.home-number {
  text-align: center;
}

.home-number img {
  height: 70px;
  width: auto;
  margin-bottom: 10px;
}

.home-number__value {
font-size: 40px;
  color: #006BB6;
  line-height: 38px;
  font-weight:bold;
  margin-bottom: 5px
}

.home-number__text {
color: #00244D;
  font-size: 16px;
  font-weight: 700;
}

.home-services__cta {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.home-services__btn {
  width: 354px;
}

@media (max-width: 991px) {
  .home-services__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-numbers {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}

@media (max-width: 767px) {
  .home-services {
    padding: 10px 0 25px;
  }

  .home-services__title {
    font-size: 34px;
  }

  .home-services__subtitle {
    font-size: 20px;
  }

  .home-services__cards,
  .home-numbers {
    grid-template-columns: 1fr;
  }

  .home-card {
    height: 280px;
  }

  .home-services__btn {
    width: 100%;
    max-width: 354px;
  }
}
/* HOME PARTNERS */
.home-partners {
  padding: 55px 0 95px;
}

.home-partners__grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 984px;
  margin: 0 auto;
}

.home-partners__intro,
.home-partners__item {
  height: 140px;
  background: #F0F0F0;
}

.home-partners__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 34px;
  text-align: center;
}

.home-partners__intro h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
	margin-top: 0
}

.home-partners__intro p {
  font-size: 14px;
  color: var(--blue);
  margin-top: 0;
}

.home-partners__carousel {
  overflow: hidden;
}

.home-partners__track {
  display: flex;
  gap: 30px;
  transition: transform .45s ease;
}

.home-partners__item {
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}

.home-partners__item img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

@media (max-width: 767px) {
  .home-partners {
    padding: 45px 0 70px;
  }

  .home-partners__grid {
    display: block;
  }

  .home-partners__intro {
    height: auto;
    min-height: 120px;
    margin-bottom: 24px;
  }

  .home-partners__track {
    display: flex;
    gap: 18px;
    transition: transform .45s ease;
  }

  .home-partners__item {
    flex: 0 0 calc((100% - 18px) / 2);
    height: 130px;
    background-color: #FFF;
  }
}