@charset "UTF-8";
/* CSS Document */

/* desktop */
.menu_back {
   background-color: white;
   height: 150px;
   position: fixed;
   top: 0;
   width: 100%;
   z-index: 1;
}

.class_gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 150px 0.5vw 0.5vh 0.5vw;
  width: 99vw;
  justify-content: space-between;
}

.gallery_item {
  display: flex;
  width: 24.6vw;
  margin-bottom: 0.5vh;
}

.link_social_galleria {
  text-align: center;
  margin: 7vh 0vw 2vh 0vw;
  }

.text_gallery_hover {
  color: white;
  font-family: FFNormale;
  font-size: 1vw;
  position: absolute;
  top: 50%;
  left: 0%;
  width: 100%;
  height: 50%;
  text-align: center;
}

.text_gallery_hover:hover {
  opacity: 1;
}

.overlay_item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 99%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: black;
  opacity: 0;
}

.overlay_item:hover {
  opacity: 0.5;
}

/* mobile */
.menu_back_mobile {
  background-color: white;
  height: 100px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}

.class_gallery_mobile {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 100px 0.5vw 0.5vh 0.5vw;
  width: 99vw;
  justify-content: space-between;
}
      
.gallery_item_mobile {
  display: flex;
  width: 49.2vw;
  margin-bottom: 0.5vh;
}

.text_gallery_hover_mobile {
  color: white;
  font-family: FFNormale;
  font-size: 1em;
  position: absolute;
  top: 50%;
  left: 0%;
  width: 100%;
  height: 50%;
  text-align: center;
}

.overlay_item_mobile {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 98%;
  width: 100%;
  opacity: 0;
  background-color: black;
  opacity: 0.5;
}


::-webkit-scrollbar {
  display:none;
}

footer {
  text-align: center;
  margin: 4vh 0vw 3.7vh 0vw; 
}

/* accorgimenti per tablet */
@media only screen and (max-width: 1085px) and (min-width: 601px) {

    .overlay_item {
      opacity: 0.5;
    }

    .text_gallery_hover {
        font-size: 1.5vw;
    }              
}
