@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;

  display: flex;
  flex-direction: column;
}

body {
  position: relative;
  min-height: 100vh; /* Altezza minima dell'intero documento */
  margin: 0;

  flex: 1; /* Consente al contenuto di occupare lo spazio disponibile */
  display: flex;
  flex-direction: column;
}
nav{
  position: relative;
  z-index: 99;
  width: 100%;
  background: #242526;
  margin-bottom: auto;
}
nav .wrapper{
  position: relative;
  max-width: 1300px;
  padding: 0px 30px;
  height: 70px;
  line-height: 70px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wrapper .logo img{
  display: block;
  width: 100%;
  height: 60px;
}
.wrapper .logo label{
  color: #ffffff;
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
}
.wrapper .nav-links{
  display: inline-flex;
}
.nav-links li{
  list-style: none;
}
.nav-links li a{
  color: #f2f2f2;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.drop-menu li{
  padding-top: 1px;
  padding-bottom: 1px;
}

.drop-menu li a{
  width: 100%;
  height: 3%;
  display: block;
  padding: 5px 5px 5px 15px;
  margin: 5px 0 5px 0;
  font-weight: 400;
  line-height: 1.4;
}


.nav-links li a:hover{
  background: #3A3B3C;
}
.nav-links .mobile-item{
  display: none;
}
.nav-links .drop-menu{
  position: absolute;
  background: #242526;
  width: 300px;
  line-height: 45px;
  right: 10px;
  top: 85px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.nav-links li:hover .drop-menu{
  transition: all 0.3s ease;
  top: 70px;
  opacity: 1;
  visibility: visible;
}

.content .row img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content .row header{
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 500;
}

.wrapper .btn{
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
}
.wrapper .btn.close-btn{
  position: absolute;
  right: 30px;
  top: 10px;
}

@media (max-width: 800px) {
  .wrapper .btn{
    display: block;
  }
  .wrapper .nav-links{
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 350px;
    top: 0;
    left: -100%;
    background: #242526;
    display: block;
    padding: 50px 10px;
    line-height: 50px;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
  }

  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #242526;
  }
  ::-webkit-scrollbar-thumb {
    background: #3A3B3C;
  }
  #menu-btn:checked ~ .nav-links{
    left: 0%;
  }
  #menu-btn:checked ~ .btn.menu-btn{
    display: none;
  }
  #close-btn:checked ~ .btn.menu-btn{
    display: block;
  }
  .nav-links li{
    margin: 15px 10px;
  }
  .nav-links li a{
    padding: 0 20px;
    display: block;
    font-size: 20px;
  }
  .nav-links .drop-menu{
    position: static;
    opacity: 1;
    top: 65px;
    visibility: visible;
    padding-left: 20px;
    width: 100%;
    max-height: 0px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
  }
  #showDrop:checked ~ .drop-menu{
    max-height: 100%;
  }
  .nav-links .desktop-item{
    display: none;
  }
  .nav-links .mobile-item{
    display: block;
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
    padding-left: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  .nav-links .mobile-item:hover{
    background: #3A3B3C;
  }
  .drop-menu li{
    padding-top: 3px;
    padding-bottom: 3px;
    margin: 0;
  }
  .drop-menu li a{
    border-radius: 5px;
    font-size: 18px;
  }
  .content .row header{
    font-size: 19px;
  }
}


nav input{
  display: none;
}

.body-text{
  margin-top: 30px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  padding: 0 30px;

  flex: 1;
}

.body-text .title{
  font-size:xx-large;
  font-weight: 600;
}

.body-text .sub-title {
  font-size: x-large;
  font-weight: 600;
  margin-top: 20px;
}

.body-text .descrizione{
  text-align: left;
  border: #222;
  padding: 3px;
  background-color: #cfcece7c;
  margin-top: 20px;
}

.descrizione p {
  margin-bottom: 10px;
}

.body-text .descrizione ul {
  margin-left: 3%;
}

.nav-links .active {
  color: #ECBA97;
}

.body-text .piccolo {
  margin-left: 20%;
  margin-right: 20%;
  font-size: 1.5em;
}

@media (max-width: 800px) {
  .body-text .descrizione ul {
    margin-left: 10%;
  }

  .body-text .piccolo {
    margin-left: 8%;
    margin-right: 8%;
    font-size: 1.1em;
  }
}


#lavori, #brand, #contatti, #posizione {
  margin-top: 3%;
  margin-bottom: 3%;
}

logo-slider {
  --image-size: 150px;
  padding: 20px;
  overflow: hidden;
  max-width: 3000px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
}

logo-slider:hover div {
  animation-play-state: paused; 
}

logo-slider div {
  display: flex;
  align-items: center;
  position: relative;
  animation: marquee 25s linear infinite;
}
logo-slider img {
  display: block;
  max-height: var(--image-size);
  max-width: 
    calc(var(--image-size) * 1.25);
  margin: 0 2vw;

}


@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.footer {
  position: relative; /* Assicura che il footer sia parte del flusso normale */
  bottom: 0;
  left: 0;
  width: 100%; /* Mantieni il footer largo quanto la pagina */
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem 0; /* Distanze uniformi */
}

div.scroll-container {
  overflow: auto;
  white-space: nowrap;
}

div.scroll-container img {
  padding: 10px;
  width: 170px;
  height: 100px;
  object-fit:contain;
}

#wrapper-9cd199b9cc5410cd3b1ad21cab2e54d3 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 100%;
}

#map-9cd199b9cc5410cd3b1ad21cab2e54d3 {
  width: 800px;
  height: 600px;
}


.google-maps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 100%;
}

.google-maps > iframe {
  width: 70vw;
  height: 70vh;
}


.container-portfolio {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 20px;
}

.thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 2000px;
  max-width: 100%;
}

.thumbs .gallery {
  margin: 5px;
  border: 2px solid #ccc;
}

div.desc {
  padding: 15px;
  text-align: center;
  width: auto;
}




.thumbs img {
  transform: scale(1);
  transition: transform 0.1s ease-in-out;
  max-width: 30ch;
  height: 300px;
  margin: 10px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 0 0 3px white, 0 5px 8px 3px rgba(0, 0, 0, 0.6);
}

.thumbs img:hover{
  transform: scale(1.5);
}

.gallery:hover {
  z-index: 99;
}

.desc ul {
  text-align: left;
  margin-left: 3%;
}

@media (max-width: 800px) {
  .thumbs img:hover {
    transform: scale(1);
  }
}




.swiper-button-prev, .swiper-button-next {
  transition: all 0.3s ease;
}

.swiper-slide {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.swiper-container {
  width: 80%;
  height: 100vh;
  float: left;
  transition: opacity 0.6s ease, transform 0.3s ease;
}
.swiper-container.nav-slider {
  width: 20%;
  padding-left: 5px;
}
.swiper-container.nav-slider .swiper-slide {
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;

  display: flex; /* Imposta layout flessibile */
  align-items: center;
  justify-content: center;
}
.swiper-container.nav-slider .swiper-slide.swiper-slide-active {
  opacity: 1;
}
.swiper-container.nav-slider .swiper-slide .content {
  width: 100%;
}
.swiper-container.nav-slider .swiper-slide .content .title {
  font-size: 20px;
}
.swiper-container:hover .swiper-button-prev,
.swiper-container:hover .swiper-button-next {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.swiper-container.loading {
  opacity: 0;
  visibility: hidden;
}

.swiper-slide {
  overflow: hidden;
}
.swiper-slide .slide-bgimg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size:contain;
  background-repeat: no-repeat;
  background-color: rgba(211, 211, 211, 0.7);
}

.swiper-slide .slide-bgimg2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: 100% 100%;
}

.swiper-slide .entity-img2 {
  display: none;
}

.swiper-slide .entity-img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 80%;
  max-width: 70%; 
  transform: translate(-50%, -50%);
  display: block; 
  z-index: 10; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 800px) {
  .swiper-slide .entity-img {
    max-height: 50%;
  }  
  .main-slider {
    width: 100%;
  }
  .nav-slider {
    visibility: hidden;
  }
  .swiper-button-next, .swiper-button-prev {
    visibility: visible;
  }
}

.swiper-slide .content {
  position: absolute;
  top: 40%;
  left: 0;
  width: 50%;
  padding-left: 5%;
  color: #fff;
}
.swiper-slide .content .title {
  font-size: 2.6em;
  font-weight: bold;
  margin-bottom: 30px;
}
.swiper-slide .content .caption {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  transform: translateX(50px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.7s ease;
}
.swiper-slide .content .caption.show {
  transform: translateX(0);
  opacity: 1;
}

.swiper-button-prev, .swiper-button-next {
  width: 44px;
  opacity: 0;
  visibility: visible;
}

.swiper-button-prev {
  transform: translateX(50px);
}

.swiper-button-next {
  transform: translateX(-50px);
}



#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: hidden; /* Evita lo scroll */
}

#other {
  display: block;
}

.btnClose {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 1000;
}

