/* --- ExtraLight --- */
@font-face {
    font-family: 'JUST Sans';
    src: url('fonts/JUST Sans ExLight.woff2') format('woff2'),
         url('fonts/JUST Sans ExLight.woff') format('woff');
    font-weight: 200; /* ExtraLight */
    font-style: normal;
    font-display: swap;}
  
  /* --- Light --- */
@font-face {
font-family: 'JUST Sans';
src: url('fonts/JUST Sans Light.woff2') format('woff2'),
        url('fonts/JUST Sans Light.woff') format('woff');
font-weight: 300; /* Light */
font-style: normal;
font-display: swap;
}

/* --- Regular --- */
@font-face {
font-family: 'JUST Sans';
src: url('fonts/JUST Sans Regular.woff2') format('woff2'),
        url('fonts/JUST Sans Regular.woff') format('woff');
font-weight: 400; /* Regular o normal */
font-style: normal;
font-display: swap;
}

/* --- Medium --- */
@font-face {
font-family: 'JUST Sans';
src: url('fonts/JUST Sans Medium.woff2') format('woff2'),
        url('fonts/JUST Sans Medium.woff') format('woff');
font-weight: 500; /* Medium */
font-style: normal;
font-display: swap;
}

/* --- SemiBold --- */
@font-face {
font-family: 'JUST Sans';
src: url('fonts/JUST Sans SemiBold.woff2') format('woff2'),
        url('fonts/JUST Sans SemiBold.woff') format('woff');
font-weight: 600; /* SemiBold */
font-style: normal;
font-display: swap;
}

/* --- Bold --- */
@font-face {
font-family: 'JUST Sans';
src: url('fonts/JUST Sans Bold.woff2') format('woff2'),
        url('fonts/JUST Sans Bold.woff') format('woff');
font-weight: 700; /* Bold */
font-style: normal;
font-display: swap;
}

/* --- ExtraBold --- */
@font-face {
font-family: 'JUST Sans';
src: url('fonts/JUST Sans ExBold.woff2') format('woff2'),
        url('fonts/JUST Sans ExBold.woff') format('woff');
font-weight: 800; /* ExtraBold */
font-style: normal;
font-display: swap;
}

/* ------------------------------------------------------------- GLOBAL */
html {
    scroll-behavior: smooth;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'JUST Sans', sans-serif;
  color: white;
  background-color: #F8F9FA;
}

* {
    box-sizing: border-box;
}

h1, p {
    margin: 0;
}

section {
    max-width: 1560px;
    margin: auto;
  
}

img {
    width: 100%;
}

h2 {
    margin: 0;
    font-size: 55px;
    color: #212529;
    letter-spacing: 5px;
}

.about-us, .services, .projects {
    display: flex;
    padding: 100px 0;
}

.about-us {
    padding-bottom: 0 !important;
}


/* ------------------------------------------------------------- HEADER */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative; /* Se non lo è già, utile per .image-slider-container */
    height: 98vh;

}

/* -------------------------------------- NAVBAR */
.logo {
    width: 350px;
}

.header-content {
    width: 100%;
    max-width: 1560px;
    padding-top: 50px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    pointer-events: auto;
}

.navbar-visible {
    transform: translateY(0);
  }

.navlink {
    text-decoration: none;
    color: #F8F9FA;
    text-transform: uppercase;
    font-weight: 200;
    font-family: 'JUST Sans';
    font-size: 18px;
    letter-spacing: 3px;
}

.header-text {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: flex-start;
}
.navlink {
    display: inline-block;
    position: relative;    
    overflow: hidden;      
    padding: 3px 0;                              
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    background-color: transparent; 
}
  
.navlink span.link-text.duplicate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Inizia posizionato SOTTO l'area visibile */
    transform: translateY(115%); /* Spostato giù (+5% margine) */
    background-color: transparent; /* Eredita o imposta sfondo */
}

.navlink span.link-text {
    display: block !important;
}

.navlink span.link-text.duplicate {
    z-index: 10; 
}

/* -------------------------------------- BACKGROUND  */
.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.slider-video.ready {
  opacity: 1;
}

.video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.image-slider-container { 
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    height: 130vh;
    overflow: hidden;
}

.image-slider { 
    width: 100%;
    height: 100%; 
}

.video-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 1) 100%);
    position: absolute;
    top: 0;
    pointer-events: none;
    z-index: 2;
    opacity: .7;
    display: none;
}

.image-slider .slick-slide {
    height: 130vh; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}



.video-wrapper {
    position: absolute;
    left: 0;
    width: 100%;
    height: 105vh;
    overflow: hidden;
    z-index: 1;
    bottom: 0;

}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0); 
    transition: transform 0.2s ease-out;
    background-position: top center;
    background-size: cover;
    position: absolute;
    top: 0;
}
  

 -------------------- BOTTOM BAR  */

.custom-next, custom-prev {
    transition: scale .5 ease;
   
}
.custom-next:hover, .custom-prev:hover {
    transform: scale(.97)
}
.info-bg {
    position: absolute;
    bottom: -200px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
    opacity: .5;
}

.info-bg .bar {
    max-width: 1560px;
    width: 100%;
    padding-left: 120px;
}

.nome-villa {
    text-decoration: none;
    color: #F8F9FA;
    font-size: 32px;
    letter-spacing: -2.2px;
    font-weight: 200;
}

.nome-villa:after {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/arrow-top-right.svg);
    margin-left: 10px;
}

.progress-bar  {
    flex-grow: 1;
}

.progress {
    width: 0%; /* Inizia da 0% */
    height: 1px;
    background-color: #F8F9FA;
    opacity: .8;
}

.info-villa {
    display: flex;
    gap: 40px;
}

.icon-list {
    font-size: 20px;
    display: flex;
    font-weight: 200;
    align-items: center;
}

.pin:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/home-pin.svg);
    margin-right: 10px;
}

.meter:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/meter.svg);
    margin-right: 10px;
}

.spaces:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/spaces.svg);
    margin-right: 10px;
}

.pool:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/pool.svg);
    margin-right: 10px;
}

/* -------------------------------------- HEADING  */

.reveal-heading {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-bottom: 20px;
    padding-top: 60px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.column {
    flex-direction: column !important;
    gap: 0 !important;
}
  
.reveal-line {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

h1 {
    font-size: 108px;
    font-weight: 200;
    width: 700px;
    line-height: 0.9;
    letter-spacing: -5px;
    position: relative;
}

.star {
    position: absolute;
    right: 50px;
    top: 50px;
    width: 120px;
    transition: transform 0.1s linear; /* Regola durata e easing */
    transform: translate(0px, 0px);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

.scroll-down {
    position: relative;
}

.scroll-down-text { 
    cursor: pointer;
}  

.scroll-down-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    background: #ffffff42;
    border-radius: 50%;
    left: -18px;
    top: -21px;
    transition: top .3s ease;
}

.scrolled-down-circle {
    top: 104px;
}

.bar {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    align-items: center;
    margin-top: 20px;
    width: 100px;
    pointer-events: auto;
}

.controls {
    display: flex;
    gap: 20px;
}

.controls img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-down {display: none;}

/* ABOUT US */

.about-us-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.link {
    font-size: 20px;
    text-decoration: underline;
    color: #212529;
    font-weight: 200;
    transition: transform .5s ease;
    transform: translateY(0);
}

a {
    transition: transform .5s ease;
    transform: translateY(0);
}

a:hover {
    transform: translateY(-10px);
}

.link::after {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/arrow-link.svg);
    padding-left: 10px;
}
.bar p {
    color: #FFF;
}

p  {
    font-size: 19px;
    color: #212529;
    font-weight: 300;
}

h3 {
    margin: 0;
    color: #212529;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}

.about-us-img {
    height: 500px;
    background-image: url("https://www.genesysportfitness.it/wp/assets/images/about-us.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    mix-blend-mode: darken;
}

/* SERVICES */
.services-left {
    width: 60%;
    background-image: url(https://www.genesysportfitness.it/wp/assets/images/services.webp);
    background-size: cover; 
    background-position: center center;
    display: flex;
    justify-content: space-between;
    transform: translateY(0);
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.services-left p {
    width: 40%;
    padding-top: 30px;
    padding-right: 30px;
    color: #f8f9fa;
    align-self: self-start;
    padding-left: 35px;
    position: relative;
   
   
}



.services-left > div {
    width: 109px;
    background: #f8f9fa;
    margin-top: 106px;
}

.services-right {
    width: 40%;
    padding-left: 100px;
    padding-bottom: 100px;
}

.services-right h2 {
    margin-bottom: 100px;
    margin-top: 100px;
}

.services-icon-list  {
    display: flex;
    margin-bottom: 50px;
    margin-top: 50px;
}

.services-icon-text p {
    padding-left: 100px;
    padding-top: 30px;
}


.icon img {
    width: 45px;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.icon-line {
    width: 1px;
    background: #2125292e;
    flex-grow: 1;
    margin-bottom: -25px;
    transform: translateX(28px);
    margin-top: 55px;
}


/* FULL VIDEO */
.full-video {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image:url("https://www.genesysportfitness.it/wp/assets/images/full-video.webp");
    background-size: cover;
    background-position: center center;
    flex-direction: column;
    justify-content:space-between;
    border-top: 1px solid #f8f9fa;
    margin-top: 100px;
}
  
  .full-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* opzionale: evita click sull’iframe finché non lo attivi */
  }
  
  .play-button {
    width: 80px;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .play-button:hover {
    transform: scale(1.1);
  }

  

.shadow1 {
    min-height: 25vh;
    background-image: linear-gradient(180deg, black, transparent);
    width: 100%;
    opacity: .5;
}

.shadow2 {
    min-height: 25vh;
    background-image: linear-gradient(0deg, black, transparent);
    width: 100%;
    opacity: .5;
}

.shadow2-2 {
    min-height: 25vh;
    background-image: linear-gradient(0deg, black, transparent);
    width: 100%;
    opacity: .5;
    position: absolute;
    bottom: 0px;
}

/* Transizioni */
.full-video.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .full-video.fade-in {
    opacity: 1;
    transition: opacity 0.4s ease;
  }
  
  /* Per garantire fluidità */
  .full-video {
    transition: opacity 0.4s ease;
  }
  


/* PROJECTS */
.projects {
    flex-direction: column;
}
.projects h2 {
    text-align: center;
    width: 100%;
    margin: 0;
    margin-bottom: 50px;
}
.main-project {
    display: flex;
    gap: 3vw;
}
.main-project-left {
    width: 15%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4vw;
}
.main-project-left p {
    margin-bottom: 40px;
}
h4 {
    margin: 0;
    font-size: 7vw;
    font-weight: 600;
    color: #212529;
    letter-spacing: -.6vw;
    line-height: .85;
    margin-bottom: 20px;
    position: absolute;
    top: 34px;
}

.heading-project {
    font-size: 70%;
    font-weight: 100;
    position: relative;
}

.heading-project-2 {
    background: #f8f9fa;
    padding-right: 38px;
}

.projects p, .projects a {
    text-align: right;
}



.main-project-center {
    width: 63%;
    position: relative;
    align-self: flex-start;
}
.main-project-center .rect {
    position: absolute;
    width: 16vw;
    height: 8vw;
    background: #f8f9fa;
    top: 9vw;
}
.projejct-bar {
    position: absolute;
    display: flex;
    bottom: 0px;
    background: #00000054;
    width: 100%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(4px);
    padding: 20px 30px;
    justify-content: space-between;
    align-items: center;
}

.fullscreen-icon {
    width: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fullscreen-icon:hover {
    transform: scale(1.1);
}

.projejct-bar p {
    color: #FFF !important;
}

.pin-2:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/home-pin-2.svg);
    margin-right: 10px;
}

.meter-2:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/meter-2.svg);
    margin-right: 10px;
}

.spaces-2:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/spaces-2.svg);
    margin-right: 10px;
}

.pool-2:before {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/pool-2.svg);
    margin-right: 10px;
}

.main-project-right {
    width: 15%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    overflow: hidden;
}

.main-project-right .slick-slide {
    margin-bottom: 3vw; /* spazio tra le slide */
  }


.other-projects {
    display: flex;
    column-gap: 50px;
}

.card {
    width: calc((100% - 100px) / 3);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}
.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
    background: #ffffffc9;
}
.card-content {
    padding: 0px 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-end;
}

h5 {
    color: #212529;
    font-weight: 500;
    font-size: 4vw;
    margin: 0;
    width: 100%;
    letter-spacing: -3px;
    line-height: .9;
}
.other-projects-title h5, .other-projects-title a {
    color: #F8F9FA;
}
.other-projects-title a {
    margin-top: 30px;
}
.other-projects-title {
    width: 100%;
}
.other-projects-background {
    background-image: url("https://www.genesysportfitness.it/wp/assets/other-project.webp");
    background-size: cover;
    background-position: center center;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 30%;
}
.card a {
    margin-bottom: 100px;
}
.other-projects-background h5, .other-projects-background a {
    color: #F8F9FA;
}

.other-projects-background .link::after {
    content: url(https://www.genesysportfitness.it/wp/assets/icons/arrow-link-white.svg);
}

.other-projects-gallery h5 {
    transform: translateY(-100%);
    font-size: 3vw;
    font-weight: 300;
    width: 60%;
}

.gallery-projects-slider  {
    padding: 0 100px;
}

.gallery-slide  {
    display: flex;
    flex-direction: row;
    
    gap: 50px;
    align-items: center;
}

.gallery-slide img {
    max-height: 476px;
    object-fit: cover;
}
.gallery-slider-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: 500px;
    z-index: 2;
    pointer-events: none;
}
.gallery-slider-controls img {
    width: 55px;
    cursor: pointer;
    pointer-events: auto;
}
.other-projects-gallery  {
    position: relative;
}






.our-core-values { 
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: row;
    min-height: 90vh;
    background-image: url(https://www.genesysportfitness.it/wp/assets/our-core-values.webp);
    background-position: center;
    background-size: cover;
    margin: 150px 0;
}
.our-core-values > img {
    position: absolute;
    width: 100%;
    z-index: -1;
}
h6 {
    font-size: 200px;
    line-height: .53;
    letter-spacing: -1.3vw;
    color: #f8f9fa;
    align-self: self-start;
    margin: 0;
    margin-left: -9px;
    width: 50%;
}
.color-invert {
    color: #212529;
}
.value {
    padding: 50px;
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 25px;
    align-items: flex-end;
}
.our-core-values h5 {
    color: #f8f9fa;
    text-align: right;
    font-size: 45px;
}
.our-core-values p {
    color: #f8f9fa;
    text-align: right;
}
.flex-end {
    justify-content: flex-end;
}
.text-align-left {
    text-align: left !important;
}






.newsletter  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 100px;
}

.newsletter-left {
    width: 50%;
}

.newsletter-text-1 {
    font-weight: 100;
    color: #212529;
    font-size: 5.5vw;
    letter-spacing: -.6vw;
    width: 100%;
}

.newsletter-text-2 {
    font-weight: 500;
    color: #212529;
    font-size: 11vw;
}

.newsletter-right  {
    width: 35%;
    display: flex;
    flex-direction: column;
    margin-bottom: -100px;
}

.input-text {
    padding: 10px;
    border: none;
    background: #F2F2F3;
    font-family: 'JUST Sans';
    font-weight: 100;
    font-size: 17px;
    font-weight: 100;
}

label, a {
    color: #212529;
}

.checkbox-privacy {
    padding: 10px;
}

button {
    background: none;
    border: none;
    font-family: 'JUST Sans';
    font-weight: 500;
    font-size: 20px;
    padding: 0;
    text-align: right;
    cursor: pointer;
}



footer {
    background: #212529;
    margin-top: 200px;
    position: relative;
    background-image: url("https://www.genesysportfitness.it/wp/assets/footer-pattern.svg");
    background-repeat: no-repeat;
    background-position: center bottom;
}

footer > section {
    display: flex;
    flex-wrap: wrap;
    padding-top: 100px;
    padding-bottom: 50px;
    justify-content: space-between;
}

.top-text-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.top-text-footer p {
    color: #F8F9FA;
}

.footer-motto {
    letter-spacing: 20px;
    color: #F8F9FA;
}


.icon-list-footer-conteiner {
    display: flex;
    flex-direction: column;
    width: 30%;
    gap: 30px;
    justify-content: space-evenly;
}

.icon-list-footer {
    display: flex;
    gap: 25px;
}

.icon-list-footer img {
    width: 20px;
}

.icon-list-footer p {
    color: #f8f9fa;
}

.logo-footer {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    width: 30%;
    justify-content: end;
    align-items: center;
    gap: 20px;
        padding-right: 78px;
}
*
.links {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-evenly;

    height: 100%;
}

.links a {
    color: #F8F9FA;
    font-weight: 100;
    font-size: 19px;
}

.socials  {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;

}

.business-proposal {
    width: 1560px;
    justify-content: flex-end;
    display: flex;
    position: relative;
}

.business-proposal p {
    color: #f8f9fa;
}

.business-proposal img {
    background: #F8F9FA;
    padding: 14px;
    width: 57px;
    cursor: pointer;
}

.form {
    position: fixed;
    width: 100%;
    bottom: 65px;
    right: 0;
    z-index: 999;
    justify-content: center;
    display: flex;
}

.fixed-icon {
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    pointer-events: auto;
}

.logo-footer p {
    color: #F8F9FA;
}

.footer-decoration {
    width: 100px;
    position: absolute;
}
.right {
    right: 0;
    transform: scaleX(-1);
}

.popup-form {
    position: absolute;
    padding: 20px;
    background: #F8F9FA;
    bottom: 58px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 403px;
    right: 0;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;

}

.close-popup {
    width: 20px !important;
    padding: 0 !important;
    align-self: flex-end;
    cursor: pointer;
}

.popup-form h3 {
    margin: 0;
}

textarea {
    border: none;
    height: 150px;
    padding: 10px;
    font-family: 'JUST Sans';
    font-weight: 100;
    font-size: 17px;
    background: #F2F2F3;
}

.popup-form .checkbox-privacy {
    margin-top: -20px;
    margin-bottom: -20px;
}

.popup-form button {
    align-self: flex-end;
    padding: 11px 20px;
    background: #212529;
    color: #F8F9FA;
}



@media (max-width: 1560px) {
    .header-content, .info-bg, section {
        padding-right: 20px;
        padding-left: 20px;
    }
    
    .logo {
        width: 28%;
    }
    .projects .info-villa {
        display: none;
    }
}

@media (max-width: 1242px) {
    .main-project-left p {
        display: none;
    }
    .main-project-left {
        padding-top: 18vw;
        justify-content: flex-start;
    }
}

@media (max-width: 1142px) { 
    .info-bg .bar {
        display: none;
    }
    .about-us {
        flex-direction: column;
        gap: 50px;
    }
    .services-left {
      width: 50%;
    }
    .services-right {
        width: 50%;
    }
    .services-left p { 
        width: 100%;
    }

}

@media (max-width: 768px) {
    .navlink { font-size: 14px }
    h1 { font-size: 88px }



    /* SERVICES  */
    .services {
        flex-direction: column-reverse;
    }
    .services-left, .services-right {
        width: 100%;
    }

    
    .services-icon-list {
        margin-left: 0;
    }
    .services-right h2 {
        margin-top: 40px;
        padding: 0;
        text-align: center;
        margin-bottom: 0;
    }
    .services-right {
        padding: 0 50px;
    }
    .services-left {
        min-height: 80vh;
        margin-top: 50px;
    }
    .services-left p {
        width: 50%;
        padding-left: 0;
    }
    .services-left p::before { 
        display: none;
    }

    .services-left > div  {
        margin-top: 0;
        margin-bottom: 69vh;
    }



    .main-project-right {
        display: none !important;
    }
    .main-project-left {
        width: 20%;
    }
    .main-project-center {
        width: 80%;
    }
    .main-project-center .rect {
        width: 16vw;
        height: 11vw;
        top: 9vw;
    }



    .card-2 {
        display: none;
    }
    .card, .other-projects-background {
        width: 50%;
    }


    .gallery-slide img {
        max-height: 235px;
    }

    .gallery-slider-controls {
        height: 235px;
    }

    .gallery-projects-slider {
        padding: 0 50px;
    }

    .gallery-slider-controls img {
        width: 4.5vw;
    }


    h6 {
        font-size: 23vw;
    }
    .value {
        padding: 20px;
    }


    .newsletter {
        flex-direction: column;
    }
    .newsletter-left, newsletter-right {
        width: 100%;
    }
    .newsletter-text-1 {
        font-size: 68px;
    }
    .newsletter-text-2 {
        font-size: 100px;
    }
    .newsletter-right {
        margin-top: 35px;
        width: 100%;
    }


    .icon-list-footer-conteiner {
        order: 2;
        width: 50%;
    }
    .logo-footer {
        order: 1;
        width: 100%;
        padding: 0 100px;
        gap: 20px;
        margin-bottom: 50px;
    }
    .footer-right  {
        order: 3;
    }
    .form {
        order: 4;
    }
    .footer-motto {
        letter-spacing: 1vw;
    }

    

} 

@media (max-width: 500px) {
    .navlink { display: none; }
    .bar {
        width: 100%;
        justify-content: center;
    }
    nav .navlink {
        display: block !important;
        text-align: left !important;
        font-size: 7vw !important;
        padding-top: 10px;
        padding-right: 30px;
        border-top: 1px solid #FFFFFF50;
    }

    nav {
        position: fixed;
        top: 0;
        z-index: 99;
        min-height: 100vh;
        width: 100vw;
        background: #000000a6;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 50px;
        gap: 10px;
        transition: opacity .5s ease-in-out;
        pointer-events: none;
        opacity: 0;
    }
    .custom-slider {
        width: 100vw;
        overflow: hidden;
    }
	
	
	
	
    .other-projects-gallery {
        overflow: hidden;
    }

    .form {
        bottom: -5px;
        right: 0;
        z-index: 90;
    }

    .about-us-img { 
        height: 200px;
        mix-blend-mode: normal;
    }
    .shadow2-2 {
        height: 50px;
        min-height: 50px;
    }

 
    h2 {
        font-size: 40px;
    }
    
    .top-nav {
        justify-content: center;
    }
    .logo {
        width: 300px;
    }
    h1 {
        font-size: 15vw;
    }
    .star {
        width: 20%;
    }
    /* .about-us-img {
        transform: scale(2);
    } */
    .services-left p {
        display: none;
    }
    .services {
        flex-direction: column;
    }
    .other-projects-gallery h5 {
        transform: translateY(0%) !important;
        padding-bottom: 50px;
    }
    .slide-img {
        height: 400px !important;
    }
    .gallery-slider-controls {
        height: 400px;
        padding: 0 20px;
    }
    .gallery-slider-controls img {
        width: 30px !important;
    }
    .footer-right {
        padding: 0 !important;
    }
  

    .main-project {
        flex-direction: column;
    }
    .main-project-left, .main-project-center {
        width: 100%;
    }
    .rect { display: none; }

    h4 {
        position: revert;
        font-size: 17vw;
    }
    .slider-projects img {
        min-height: 500px;
        object-fit: cover;
    }
    .other-projects {
        flex-direction: column;
        gap: 25px;
    }
    .card, .other-projects-background {
        width: 100%;
    }
    .card-2 {
        display: flex;
    }
    h5 {
        font-size: 13vw;
    }
    .other-projects-gallery h5 {
        font-size: 10vw;
        transform: translateY(-50%);
    }



    .our-core-values { 
        margin-top: 50px;
    }
    h6 {
        width: 100%;
        font-size: 30vw;
        margin-bottom: 50px;
    }
    .value {
        width: 100%;
    }



    .newsletter {
        padding: 0;
    }
    .newsletter-text-1 {
        font-size: 10vw;
        margin: 0;
    }
    .newsletter-text-2 {
        font-size: 19vw;
        padding-left: 6vw;
    }



    .logo-footer {
        padding: 20px;
    }
    .logo-footer p {
        text-align: center;
        font-size: 12px;
    }
    .icon-list-footer-conteiner { width: 100% }
    .icon-list-footer {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .footer-right  {
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
}


.fade-slide-in {
    opacity: 0;
    transform: translateY(30px);

}

.slider-wrapper {
    width: 100vw;
    overflow: visible;
    position: relative;
    padding: 0 0 40px;
  }
  
  .custom-slider .slick-list {
    overflow: visible;
  }
  
  .custom-slider .slick-slide {
    margin: 0 50px;
    transition: transform 0.5s ease;
  }
  
  .slide-img {
    height: 500px; /* altezza fissa */
    width: auto;   /* larghezza flessibile */
    display: block;
    object-fit: cover;
  }

  body {
    overflow-x: hidden;
  }
  

  .menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
  }
  .line {
    fill: none;
    stroke: #F8F9FA;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
  }
  .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
  .opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
  }
  .opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }


  .hamburger {
    position: fixed;
    z-index: 103;
    transform: scale(.5);
    left: 0;
    
}


@media (min-width: 501px) { 
    .hamburger {
        display: none;
    }
}

.no-scroll {
    overflow: hidden;
    margin: 0;
    height: 100vh;
}

.nav-open {
    opacity: 1;
    pointer-events: auto;
}



.popup-form {
    pointer-events: auto;
}
.form {
    pointer-events: none;
}
#loader {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

#progress-bar {
    width: 80%;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 20px;
}

#progress-bar-inner {
    height: 100%;
    width: 0%;
    background: #212529;
    transition: width 0.3s ease;
}