:root {
  --red: #FF0042;
}
p {
    zoom: 1.2;
}
div#recaptcha-badge-slot {
    display: flex;
    justify-content: end;
    height: 70px;
    padding-top: 5px;
    margin-top: -160px;
    position: absolute;
    width: 100vw;
    overflow-x: hidden;
}

.justify-space-between {
    justify-content: space-between;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Rework Display", "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #F6F6F6;
  background: url(img/background.png);
  /*background-attachment: fixed;*/
  background-position: top;
  background-size: cover;
  color: #111827;
  overflow-x:hidden;
}
input, optgroup, select, textarea{
  background: transparent;
}
input:focus, optgroup:focus, select:focus, textarea:focus,
input:focus-within, optgroup:active, select:active, textarea:active{
  background: #F7F7F7;
}
.bg-red{
  background: var(--red);
}
.divider{
  background: #d7d7d7;
  height: 1px;
  width: 90%;
  margin: 0 auto;
}
h1, h2, h3 {
  font-weight: 600!important;
}
.text-red{
  color: var(--red);
}
.link{
  text-decoration: underline;
}
footer > div{
  font-size: 0.7rem;
  line-height: 150%;
}
.custom-fw {
      font-weight: 200!important;
    }
.light{
  font-weight: 100;
}
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #e5002b;
}

::-webkit-scrollbar-thumb:hover {
  background: #b70022;
}

/* Classe per la transizione fluida dell'altezza massima (usata per l'accordion) */
.max-h-0 {
  max-height: 0;
}

.max-h-screen-custom {
  max-height: 1500px;
  /* Valore grande per contenere testo e immagini */
}
header > .container {
    background: rgb(247 247 247 / 70%);
    backdrop-filter: blur(5px);
    margin-top: 10px;
    padding: 0px 3px;
    border-radius: 1px;
    max-height: 60px;
}
header nav{
  padding: 5px;
}
header nav path{
  fill:#404040;
}
header nav a:hover path{
  fill:var(--red);
}
header #desktop-menu a {
    font-size: 17px;
    font-weight: 600;
    padding: 0px 12px;
}
header #desktop-menu a:hover {
    color: var(--red);
}
header #desktop-menu a:after {
    content: '';
    width: 0%;
    height: 3px;
    background: #1f2937;
    display: block;
    transition: all .3s ease;
}
header #desktop-menu a.active::after {
  width: 100%;
}
.social svg {
    fill: #111827;
}
img.flag-menu {
    width: 20px;
    height: fit-content;
}
#mobile-menu{
  background: rgb(247 247 247 / 70%);
  backdrop-filter: blur(5px);
  border-radius:2px;
}
.h-logo{
    padding: 5px;
    height: 40px;
    width: 90px;
    margin-top: 5px;
    margin-bottom: 5px;
}
.h-logo img {
    object-fit: cover;
    margin-top: 17px;
}
.form-group {
    display: flex;
}
.form-group span{
  font-size: 0.8rem;
}

/* Stili per la sezione Hero (Desktop) */                
#hero-section .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  min-width: 100%;
  min-height: 100%;
  transition: opacity 0.5s ease;
}


.hero-column {
  transition: background-color 0.5s ease-in-out;
}

.hero-column-content {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.hero-column-content.expanded-content.hidden {
  display: none;
}
.hero-column-content.expanded-content {
  background: #e9e9e9;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
}
.hero-column-content.expanded-content p{
  color: #B0B0B0;
}
.hero-column-content.expanded-content button,
.hero-mobile-slider button{
  align-self: end;
  color: var(--red);
  border-bottom: 3px solid transparent;
}
.hero-column-content.expanded-content button:hover,
.hero-mobile-slider button:hover{
  border-color: var(--red);
}
.hero-column-content.expanded-content button::after,
.hero-mobile-slider button::after,
.arrow-ico::after {
  content: "\f061"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 0.4em;
  display: inline-block; 
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.hero-column-content.expanded-content button:hover::after,
.arrow-ico:hover::after {
  transform: rotate(90deg);
}
.border-center {
  border-left: 2px solid rgb(255 255 255 / 20%);
  border-right: 2px solid rgb(255 255 255 / 20%);
}
.hero-column-content.collapsed-content div {
    width: fit-content;
    padding: 15px 50px;
    margin: 0 auto;
}
.content-box:before,
.contact-info:before {
    content: '';
    width: 70%;
    border-top: 4px solid #000;
    display: block;
    margin-bottom: 10px;
}
.content-box li {
    margin-bottom: 5px;
}

.bu-box span {
    /*background: rgb(247 247 247 / 70%);*/
    border:2px solid var(--red);
    background: #fff;
    color:var(--red);
    backdrop-filter: blur(5px);
    padding: 5px 20px;
    font-weight: 600;
    border-radius:2px;
}

.bu-box span:hover {
    background: var(--red);
    color:#fff;
}
.line-1:after {
    content: '';
    position: relative;
    top: 8px;
    width: 65vw;
    background: #fff;
    height: 2px;
    display: block;
    margin: 0 auto;
}
.video-wrapper-hero:after {
    content: '';
    background: linear-gradient(0deg, color(srgb 0 0 0 / 0.6) 0%, transparent 70%);
    z-index: 1000;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}
.home-header__title-line-svg {
    width: 105%;
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: visible;
    transform: translate(-50%, -50%);
}




.logo-carousel{
  overflow-x: hidden;
  padding: 0 50px;
}

.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 20px;
}

.swiper-wrapper img{
  object-fit: contain;
  width: 100%;
}
 
/* Stili per il carosello Swiper (Partners) */
.swiper-button-next,
.swiper-button-prev {
  color: #e5002b;
}

.swiper-pagination-bullet-active {
  background: #e5002b;
}

.accordion-button{
  transition: all .5s ease-in-out;
}

.accordion-button.active-item {
    padding: 1rem 0;
}

#servizi img,
#servizi video{
  cursor: zoom-in;
}
.video-wrapper-vert,
.video-wrapper-oriz,
.video-wrapper-hero,
.video-wrapper-oriz-mobile {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.video-wrapper-hero iframe,
.video-wrapper-vert iframe,
.video-wrapper-oriz iframe,
.video-wrapper-oriz-mobile iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 0;
}
.video-wrapper-vert iframe{
  width: 410%;
  height: 100%;
}
.video-wrapper-oriz iframe,
.video-wrapper-oriz-mobile iframe {
  width: 100%;
  height: 120%;
}
.video-wrapper-hero iframe {
    width: 100%;
    height: 140%;
}
@media (max-width: 1535px){
  .video-wrapper-hero iframe {
      width: 100%;
      height: 140%;
  }
  .video-wrapper-vert iframe {
    width: 400%;
    height: 100%;
  }
  .video-wrapper-oriz iframe,
  .video-wrapper-oriz-mobile ifrma {
    width: 100%;
    height: 110%;
  }
}
@media (max-width: 1279px){
  .video-wrapper-hero iframe {
    width: 110%;
    height: 140%;
  }
  .video-wrapper-vert iframe {
    width: 550%;
    height: 100%;
  }
  .video-wrapper-oriz iframe,
  .video-wrapper-oriz-mobile iframe {
    width: 130%;
    height: 100%;
  }
}
@media (max-width: 1023px){
  .video-wrapper-hero iframe{
    width: 140%;
    height: 110%;
  }
  .video-wrapper-vert iframe {
    width: 850%;
    height: 100%;
  }
  .video-wrapper-oriz iframe,
  .video-wrapper-oriz-mobile iframe {
    width: 200%;
    height: 100%;
  }
  .bu-box{
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
 .bu-box span {
    min-width: 100px;
    text-align: center;
    border: 2px solid;
  } 
  .video-wrapper-hero:after {
    background: linear-gradient(0deg, color(srgb 0 0 0 / 0.8) 40%, transparent 80%);
  }
}

@media (max-width: 767px){  
      header > .container {
        margin-top: 0px;
    }
    .video-wrapper-oriz-mobile{
      min-height: 500px;
    }
    #hero-section{
      display: flex;
      flex-direction: column;
      background: #f7f7f7;
    }
    .line-1:after{
      background: #ebebeb;
    }
    .video-wrapper-hero:after{
      display: none;
    }
    .video-wrapper-hero iframe,
    .video-wrapper-oriz-mobile iframe{
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .h-full-mb iframe {
      width: 500%;
    }
    .custom-fw {
      font-weight: 500!important;
    }
}
@media (max-width: 600px){
    .video-wrapper-oriz-mobile{
      min-height: 300px;
    }
}
}@media (max-width: 450px){
    .video-wrapper-oriz-mobile{
      min-height: 200px;
    }
}




/* Media queries per la sezione Hero */
@media (max-width: 768px) {
  .hero-video {
    aspect-ratio: unset;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: unset;
    min-height: unset;
  }
  .about-img{
    height:300px;
    object-fit: cover;
    object-position: right;
  }
  header nav{
    flex-direction: row-reverse;
  }
  header nav a{
    margin:0 5px!important;
  }
  .skew-shape-start,
  .skew-shape-end {
    display: none;
  }



  .hero-mobile-slider {
    display: block!important;
  }

  /* Assicura che lo slider occupi l'altezza dello schermo su mobile */
  #hero-section {
    height: 100vh;
  }

  /* Stili per il carosello Swiper (Hero Mobile) */
  .hero-swiper .swiper-pagination-bullet {
    width: 15%;
    height: 5px;
    /* Altezza della linea */
    border-radius: 0;
    /* Rimuovi i bordi arrotondati per farla diventare una linea */
    background: rgba(64, 64, 64, 0.5);
    /* Colore grigio per le linee inattive */
    opacity: 1;
    /* Assicura che siano visibili */
    margin: 0 4px !important;
    /* Spazio tra le linee */
    transition: all .5s ease-in-out;
  }

  .hero-swiper .swiper-pagination-bullet-active {
    width: 70%;
    background: #404040;
  }
  .content-box:before{
    display: none;
  }

  /* Posizionamento della paginazione all'interno della sezione inferiore */
  .hero-swiper .swiper-pagination {
    bottom: 35vh;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    /* Assicurati che sia posizionato correttamente */
    z-index: 30;
    /* Assicurati che sia sopra il contenuto */
  }
  .swiper-button-prev, .swiper-button-next{
    display: none;
  }
  .adress{
    width: -webkit-fill-available!important;

  }
  .contact-info:before{
    margin: 0 auto;
    margin-bottom: 20px;
    width: 80%!important;
  }
  .flex-col-rev{
    flex-direction:column-reverse
  }

}

a.btn-download {
    border: 2px solid;
    border-radius: 5px;
    width: fit-content;
}
a.btn-download:hover {
    background: var(--red);
    color: #fff;
}
a.btn-download:hover path {
    fill: #fff;
}
.img-grid-tab img{
  aspect-ratio: 1 / 1;
}
@media (min-width: 769px) {
  body{
    font-size: 0.85rem;
  }
  .text-sm {
      zoom: 0.8;
  }

  /* Nasconde lo slider mobile e mostra le colonne desktop */
  .hero-desktop-columns {
    display: flex;
  }

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






