:root {
  --azzurro: #148ed1;
  --testo: #545454;
  --bianco: #fff;
}

.n-btn {
  background-color: var(--azzurro);
  text-transform: uppercase;
  color: #fff !important;
  text-align: center;
  padding: 10px 30px;
  border-radius: 10px !important;
}

p {
  color: var(--testo);
  font-size: 18px;
}
p.st {
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0;
}

.wrap-home .container {
  padding: 40px 0;
}

.wrap-home h3 {
  font-size: 2rem;
  line-height: 1.2;
}

/*------------------------------------------------------------------*/
/*  HERO  */
/*------------------------------------------------------------------*/
.wrap-home .hero {
  position: relative;
  width: 100%;
  padding: 100px 0;
  overflow: hidden;
}

.hero-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f8f8;
  z-index: 1;
  pointer-events: none;
}

.hero-left video.hero-bg-desktop {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.hero-bg-mobile {
  display: none;
}

.hero-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: #148ed1;
  clip-path: polygon(-20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.wrap-home .hero .container {
  position: relative;
  z-index: 2;
}
.wrap-home .hero h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  color:#eee417;
}
.wrap-home .hero h2 {
  font-size: 1.4rem;
  line-height: 1.2;
  color:white;
}
.wrap-home .hero img {
  position: absolute;
  right: -600px;
  bottom: -190px;
}

/* MOBILE */
@media (max-width: 640px) {
  .hero-left {
    display: none !important;
  }
  .hero-bg-mobile {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
  }
  .wrap-home .hero {
    background: linear-gradient(to bottom, #f8f8f8 79%, #148ed1 79%);
    position: relative;
    overflow: hidden;
  }
  .wrap-home .hero .container {
    z-index: 2;
    position: relative;
  }
}


.hero-video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  background: rgba(20, 142, 209, 0.33);
  pointer-events: none;
}

/* Overlay mobile */
.hero-video-overlay-mobile {
  display: ;
}

@media (max-width: 640px) {
  .hero-video-overlay {
    display: none;
  }
  .hero-video-overlay-mobile {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100%;
    z-index: 2;
  background: rgba(20, 142, 209, 0.33);
  pointer-events: none;
  }
}


.hero-video-overlay,
.hero-video-overlay-mobile {
  background: rgba(255, 255, 255, 0.3); /* Bianco con opacità */
}

.hero-left video.hero-bg-desktop,
.hero-bg-mobile {
  filter: brightness(1.2) contrast(1.1);
}
.wrap-home .hero h1 {
  color: #148ed1;
}
.wrap-home .hero h2 {
  color: black;
}
.wrap-home .hero p {
  color: black;
}
.n-btn {
  background-color: #148ed1;
  color: white;
  border: none;
  padding: 10px 20px;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
}
.wrap-home .hero h1,
.wrap-home .hero h2,
.wrap-home .hero p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/*------------------------------------------------------------------*/
/*  CATEGORIE CORSI  */
/*------------------------------------------------------------------*/
.wrap-categorie {
  margin: 0px 0 0 0;
  padding-top:20px;
  padding-bottom:20px;
}
.wrapper-categorie {
  border: 0;
  background-color: var(--azzurro);
  text-align: center;
  padding: 40px 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--bianco) !important;
  transition: transform 0.3s ease-in-out;
}
.wrapper-categorie:hover {
  transform: scale(1.03);
}
.wrapper-categorie img {
  width: 90px;
  height: auto;
}
.wrapper-categorie .fas {
  background-color: var(--bianco);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  color: var(--azzurro);
  font-size: 1.3rem;
}
.wrap-categorie > div:nth-child(1) .wrapper-categorie {
  background-color: #4162ad;
}
.wrap-categorie > div:nth-child(2) .wrapper-categorie {
  background-color: #1464d1;
}
.wrap-categorie > div:nth-child(3) .wrapper-categorie {
  background-color: #147fd1;
}
.wrap-categorie > div:nth-child(4) .wrapper-categorie {
  background-color: #148ed1;
}

/*------------------------------------------------------------------*/
/*  CORSI  */
/*------------------------------------------------------------------*/
.percorsi:nth-child(odd) {
  background-color: #eef4fd;
}
.percorsi h3,
.wrap-blog h3 {
    color: var(--azzurro);
    display: flex
;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
  .percorsi h3,
  .wrap-blog h3 {
    margin-top: 15px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 1.3rem;
  }
}


.prodotti-random {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.prodotto {
  width: 48%;
  text-align: center;
  background: #fff;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
}
.prodotto .prodotto-content {
  padding: 15px 15px;
}
.prodotto img {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.prodotto h3 {
  font-size: 16px;
  margin: 10px 0;
  color: #000;
}
.prodotto p {
  font-weight: bold;
  color: #148ed1;
}

/*------------------------------------------------------------------*/
/*  BLOG  */
/*------------------------------------------------------------------*/
.wrap-blog {
  background-color: #f7f7f7;
  padding: 50px 0;
}
.wrap-blog h3 {
  color: var(--azzurro);
}
.post-item {
  background: #fff;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  margin: 20px 0;
}
.post-content {
  padding: 15px 15px;
}
.post-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.post-item h3 {
  margin: 10px 0;
}
.post-item p {
  font-size: 17px;
}



.row .container-footer{
  flex-direction: row !important;
}
/*------------------------------------------------------------------*/
/*  RESPONSIVE  */
/*------------------------------------------------------------------*/

@media (max-width: 1440px) {
  .wrap-home .hero img {
    right: -410px;
  }
}

@media (max-width: 1200px) {
  .wrap-home .hero .container {
    max-width: 1100px;
    padding: 0 10px;
  }

  .prodotto {
    width: 46%;
  }
}

@media (max-width: 1024px) {
  .wrap-home .hero {
    padding: 50px 0;
  }
  .wrap-home .hero img {
    right: -290px;
  }
  .wrap-home .container,
  .wrap-home .container-md,
  .wrap-home .container-sm {
    max-width: 90%;
  }
  /* .wrapper-categorie h4 {
    font-size: 1.25rem;
  } */
  .wrap-categorie .col-6 {
    padding: 0 10px;
  }
}

@media (max-width: 960px) {
  .wrap-home .hero .hero-left,
  .wrap-home .hero .hero-right {
    display: none;
  }
  .wrap-home .hero {
    padding-bottom: 0;
    background: linear-gradient(to bottom, #f8f8f8 73%, #148ed1 73%);
  }
  .wrap-home .hero img {
    right: 0;
    bottom: -70px;
    position: relative;
    margin: 0;
  }
  .wrap-home .hero .col-md-6 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .wrap-home .hero,
  .wrap-home .hero .text-right {
    text-align: center !important;
  }
  .wrap-home .hero {
    background: linear-gradient(to bottom, #f8f8f8 69%, #148ed1 65%);
  }
  .wrap-home .hero img {
    bottom: -60px;
  }
  .wrapper-categorie h4 {
    font-size: 1.8rem;
  }
  .prodotti-random {
    margin-top: 40px;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .wrap-home .hero {
    background: linear-gradient(to bottom, #f8f8f8 79%, #148ed1 79%);
  }
  .wrap-home .hero img {
    bottom: -50px;
  }
  .wrapper-categorie img {
    width: 70px;
  }
  .wrapper-categorie h4 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .wrap-home .hero img {
    bottom: -40px;
  }
  .wrapper-categorie {
    gap: 5px;
    padding: 20px 0;
  }
  .wrapper-categorie img {
    width: 60px;
  }
  .wrapper-categorie h4 {
    font-size: 1.3rem;
  }
  .wrap-home .prodotto {
    width: 100%;
  }
}

@media (max-width: 414px) {
  .wrap-home .hero {
    background: linear-gradient(to bottom, #f8f8f8 87%, #148ed1 87%);
  }
  .wrap-home .hero img {
    bottom: -30px;
  }
}

@media (max-width: 375px) {
  .wrapper-categorie img {
    width: 50px;
  }
  .wrapper-categorie h4 {
    font-size: 1.2rem;
  }
}
