.nascondi{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

.video_container_custom{
    width: 100%;
    position: relative;
}
.video_container_custom video{
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 2px 2px solid #000000;
}

#header_scheda{
    background-position: center;
}

#img_anteprima{
    padding: 12px;
}
#img_anteprima img{
    aspect-ratio: 19/9;
    object-fit: cover;
    object-position: top;
}

#img_anteprima .list-group-item{
    padding: 0px;
    overflow: hidden;
    border-radius: 10px;
}

#gallery_allegati{
    padding: 0;
}

#gallery_allegati .lightboxgallery{
    display: flex;
    flex-wrap: wrap;
}
#gallery_allegati .lightboxgallery a{
    flex: 1 0 25%;
    margin: 1%;
    overflow: hidden;
    border-radius: 5px;
}
#gallery_allegati .lightboxgallery img{
	object-fit: contain;
	max-height: 250px;
	overflow: hidden;
	border-radius: 10px;
}

#anteprima_lista .thumbnail{
    margin-bottom: 0px !important;
    text-align: center;
    overflow: hidden;
}
#anteprima_lista .thumbnail:hover img{
    transform: scale(1.05) rotate(5deg);
    border-radius: 10px;
}

#gallery_cantiere .lightboxgallery{
    display: flex;
    flex-wrap: wrap;
}
#gallery_cantiere .lightboxgallery img{
	object-fit: contain;
	max-height: 150px;
	overflow: hidden;
	border-radius: 10px;
    margin: 5px;
}

@media only screen and (max-width: 768px) {
    #gallery_cantiere .lightboxgallery img{
        max-width: 100%;
        max-height: 100%;
        overflow: hidden;
    }
}

#anteprima_lista .description_container{
    display: none;
}
#anteprima_lista img{
    border-radius: 10px;
    transition: 0.3s;
    aspect-ratio: 16/11;
    object-fit: cover;
}
#anteprima_lista_ante_page .thumbnail{
    margin-bottom: 0px !important;
    text-align: center;
    overflow: hidden;
    border: none !important;
}
#anteprima_lista_ante_page .thumbnail:hover img{
    transform: scale(1.05) rotate(5deg);
    border-radius: 10px;
}

#anteprima_lista_ante_page .description_container{
    display: none;
}
#anteprima_lista_ante_page img{
    border-radius: 10px;
    transition: 0.3s;
}
#anteprima_lista_ante_page h4{
    color: #333;
}

#planimetrie_lista .lightboxgallery{
    display: flex;
    flex-wrap: wrap;
}
@media only screen and (max-width: 768px) {
    #planimetrie_lista .lightboxgallery{
        flex-direction: column;
    }
}

#planimetrie_lista .lightboxgallery>a{
    flex: 1 0 25%;
    margin: 1%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #c2c2c2;
    box-shadow: 2px 2px solid #000000;
}
#planimetrie_lista .lightboxgallery img{
    width: 100%;
}


.nuovi_cantieri_hero{
    text-decoration: none !important;
    font-size: 30px;
    background: white;
    border-radius: 10px;
    position: absolute;
    bottom: 10vh;
    right: 20vw;
    transform: translateX(-100px);
    padding: 12px 20px;
    z-index: 9999;
    color: #333;
    font-weight: 700;
    transition: 0.5s;
    box-shadow: 5px 5px 10px #000000;
    animation: fadein ease-in-out 1s forwards;
}
.nuovi_cantieri_hero:hover{
    box-shadow: none;
}

@keyframes fadein {
    from{
        opacity: 0;
        transform: translateX(200px);
    }
    to{
        opacity: 1 ;
        transform: translateX(0px);
    }
}


.down{
    z-index: 9999;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #333;
    background: white;
    clip-path: circle(23px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    animation: scroll_down 1s ease-in-out infinite alternate;
}

@keyframes scroll_down {
    from{
        transform: translateY(-20px);
    }
    to{
        transform: translateY(20px);
    }
}

#form_case h4{
    text-align: center;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
#form_case h4:before {
  content: '';
  position: relative;
  max-width: 100px;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgb(221, 4, 4);
  margin: 15px;
}
#form_case h4:after {
    margin: 15px;
  content: '';
  position: relative;
  max-width: 100px;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: rgb(221, 4, 4);
}

.in_aggiornamento{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.in_aggiornamento h1{
    font-size: 45px;
    filter: drop-shadow(2px 2px 2px #a1a1a1);
}

.gallery_book #galleriajs_47{
    height: 500px;
    background: transparent;
}

.gallery_book .galleria-theme-classic{
    background: transparent !important;
}

.gallery_book .galleria-image{
    border-radius: 20px;
    overflow: hidden;
}
@media only screen and (max-width: 768px) {
    .gallery_book #galleriajs_47 img{
        height: auto !important;
        width: 88vw !important;
    }
}

.button_matt h4{ 
    color: white;
    background: #c32d32;
    font-size: 20px;
    border-radius: 20px;
    text-align: center;
    padding: 5px 10px;
}

.gallery_home_mobile .swiper{
    max-height: 260px;
}