/* gallery home */
.gal-home {
  position: relative;
  width: 100%;
  letter-spacing: 1px;
  margin-bottom: 5px;
  z-index: 0;
}

.gal-home:hover img {
  width: 100%;
  -webkit-transform: scale(1.03);
  -ms-transform: scale(1.03);
  transform: scale(1.03);
  -webkit-transition: all .6s ease-in-out;
  transition: all .6s ease-in-out;
}

.gal-home img {
  width: 100%;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-transition: all .6s ease-in-out;
  transition: all .6s ease-in-out;
}

.gal-home .hovereffect {
  max-width: 100%;
  height: auto;
  overflow: hidden;
  float: left;
  position: relative;
  text-align: center;
  margin-bottom: 15px;
  cursor: pointer;
}

.gal-home.pages .hovereffect {
  max-height: 360px;
}

.gal-home .hovereffect a {
  display: block;
  position: relative;
  z-index: 999;
}

.gal-home h3,
.gal-home h4 {
  margin-bottom: 0px;
}

/*scadd*/
.gal-home h3 {
  font-size: 1.6rem;
  color: #000;
  font-weight: 500;
}

/*scadd 17.08 download e video */

.gal-home .hovereffect .overlay {
  position: absolute;
  color: #fff;
  background-color: rgba(9, 12, 13, .5);
  margin: 0 auto;
  bottom: 0;
  left: 0;
  opacity: 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  right: 0;
  top: 0;
}

.gal-home .hovereffect:hover .overlay {
  bottom: 0;
  left: 0;
  opacity: .8;
}

.overlay.start-align p {
  font-weight: 300;
  line-height: normal;
  letter-spacing: 3px;
}

.gal-home .hovereffect .overlay .devider {
  display: block;
  margin: 8px auto;
  width: 188px;
  border-top: 1px solid rgba(200, 177, 111, .8);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.gal-home .hovereffect:hover .overlay .devider {
  display: block;
  margin: 10px auto;
  width: 138px;
  border-top: 1px solid rgba(200, 177, 111, .8);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.overlay div span {
  display: block;
}

.overlay div span.icon i {
  color: #111;
  background: #fff;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  padding: 12px;
  margin: 5px;
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

.overlay div span.icon a:hover i {
  color: #fff;
  background: #111;
  -webkit-transition: all .6s ease-in-out;
  -moz-transition: all .6s ease-in-out;
  transition: all .6s ease-in-out;
}

/* gallery home end */
.tagline {
  font-size: 2.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #000;
  line-height: normal;
}
/* home end */

/* gallery */
.gallery-grid {
  position: relative;
  letter-spacing: 1pt;
  text-transform: uppercase;
  overflow: hidden;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  margin: .8em;
}

.gallery-grid:hover img {
  width: 100%;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  -webkit-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
  padding: 0;
}

.gallery-grid img {
  width: 100%;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}

/* ATTREZZI nov 2023 end */

.gallery-grid:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}


.overlay div span {
  width: 100%;
  display: block;
  z-index: 1;
}

.overlay div span.icon i {
  color: #111;
  background: #fff;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  padding: 14px;
  margin: 15px 0;
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

.overlay div span.icon a:hover i {
  color: #fff;
  background: #111;
  -webkit-transition: all .6s ease-in-out;
  -moz-transition: all .6s ease-in-out;
  transition: all .6s ease-in-out;
}


.text-overlay {
  color: white;
  font-size: 1.2rem;
  line-height: 1.6;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1000;
  width: 60%;
}


@media (max-width:900px) {
  .text-overlay {
    font-size: 1.8rem;
    line-height: 1.9;
  }
}
/*scadd end*/

/*css per filtri categoria*/

.fl-post-container {
  margin-top: 40px;
}

.fl-post-container__inner {
  margin: 0;
  width: 100%;
}

.fl-post-item {
  box-sizing: border-box;
  display: inline-block;
  width: 32.5%;
  padding: 10px;
  margin-bottom: 0.5rem;
}


@media (max-width: 1920px) {
  .fl-post-item-col {
    margin-bottom: 0.5em;
  }
}

@media (max-width: 1680px) {
  .fl-post-item-col {
    margin-bottom: 0.5em;
  }
}

@media (max-width: 1366px) {
  .fl-post-item-col {
    margin-bottom: 1em;
  }
}

@media (max-width: 1280px) {
  .fl-post-item-col {
    margin-bottom: 1em;
  }
}

@media (max-width: 1024px) {
  .fl-post-item-col {
    margin-bottom: 1em;
  }
}

@media (max-width: 980px) {
  .fl-post-container {
    margin-top: 15px;
  }

  .fl-post-item-col {
    margin-bottom: 0.5em;
  }

  .fl-post-container__inner {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .fl-post-item-col {
    width: 100%;
    margin-bottom: 1em;
  }
}

@media (max-width: 420px) {
  .fl-post-item-col {
    width: 100%;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 360px) {
  .fl-post-item-col {
    width: 100%;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 1920px) {
  .gal-home h3 {
    margin-top: 0;
    font-size: 1.5rem;
  }

  .fl-post-item {
    margin-bottom: .2em;
  }

  .fl-post-container__inner {
    margin: 0;
  }

  #filter-porto li.filt-projects-w {
    font-size: 1.4rem;
    padding: 4px 7px;
    margin: 0 2px 10px 0;
  }

  input.search {
    width: 270px;
  }
}

@media (max-width: 1680px) {
  .gal-home h3 {
    margin-top: 0;
    font-size: 1.6rem;
  }
  .fl-post-item {
    margin-bottom: .2em;
  }
  .fl-post-container__inner {
    margin: 0;
  }
}

@media (max-width: 1440px) {
  .gal-home h3 {
    margin-top: 0;
    font-size: 1.6rem;
  }
  .fl-post-item {
    margin-bottom: .2em;
  }
  .fl-post-container__inner {
    margin: 0;
  }
  #filter-porto li.filt-projects-w {
    font-size: 1.25rem;
    padding: 4px 7px;
    margin: 0 2px 10px 0;
  }
  input.search {
    width: 200px;
  }
}

@media (max-width: 1366px) {
  .gal-home h3 {
    margin-top: 0;
    font-size: 1.6rem;
  }
  .fl-post-item {
    margin-bottom: .2em;
  }
  .fl-post-container__inner {
    margin: 0;
  }
}

@media (max-width: 1280px) {
  #filter-porto li.filt-projects-w {
    font-size: 1.15rem;
    padding: 4px 7px;
    margin: 0 2px 10px 0;
  }
  input.search {
    width: 185px;
  }
}

@media (max-width: 1024px) {
  .gal-home h3 {
    margin-top: 0;
    font-size: 1.2rem;
  }
  .fl-post-item {
    margin-bottom: .2em;
  }
  .fl-post-container__inner {
    margin: 0;
  }
  #filter-porto li.filt-projects-w {
    font-size: 1rem;
    font-weight: 600;
    padding: 3px;
    margin: 0 2px 10px 0;
  }
  input.search {
    width: 108px;
  }
}

@media (max-width: 980px) {
  .gal-home  {
      margin-bottom: 0;
    }

  .gal-home h3 {
    font-size: 2.9rem;
  }

  .fl-post-item {
    width: 49.5%;
    margin-bottom: 0;
  }

  .fl-post-container__inner {
    margin: 0;
  }

    .subcat-content p:last-child {
      margin-bottom: 10px; }

}

@media (max-width: 480px) {
  .gal-home h3 {
    font-size: 2.9rem;
  }

  .fl-post-item {
    width: 100%;
    padding:10px 10px 0 0;
  }
}

/*css per filtri categoria end*/
