.hoverbox {
  position: relative;
  list-style: none;
  text-align: center;
  width: 100%;
  clear: both;
  overflow: hidden
}
/* Common style */
.hoverbox figure {
  position: relative;
  overflow: hidden;
  margin: 20px 1%;
  min-width: 320px;
  max-width: 406px;
  max-height: 406px;
  width: 31%;
  background: #3085a3;
  text-align: center;
  cursor: pointer;
  display: inline-table;
}
.hoverbox.secondari figure {
  position: relative;
  overflow: hidden;
  margin: 20px 1%;
  min-width: 320px;
  max-width: inherit;
  max-height: 150px;
  width: 47%;
  text-align: center;
  cursor: pointer;
  display: inline-table;
}
.hoverbox figure img {
  position: relative;
  display: block;
  min-height: 100%;
  opacity: 0.8;
  max-width: 406px;
}
.hoverbox.secondari figure img {
  max-width: 587px;
}
.hoverbox figure figcaption {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hoverbox figure figcaption::before, .hoverbox figure figcaption::after {
  pointer-events: none;
}
.hoverbox figure figcaption, .hoverbox figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.hoverbox figure figcaption > a {
  z-index: 1000;
  /*text-indent: 200%;
	white-space: nowrap;*/
  font-size: 0;
  opacity: 0;
}
.hoverbox figure h2 {
  /*	word-spacing: -0.15em;
	font-weight: 300;*/
}
.hoverbox figure h2 span {
  font-weight: 800;
}
.hoverbox figure h2, .hoverbox figure p {
  margin: 0;
}
.hoverbox figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}
.grid.marchi {
  position: relative;
  margin: 60px auto 30px auto;
  width: 100%;
  list-style: none;
  text-align: center;
  display: inline-block;
  padding: 0px 10px;
}
/* Common style */
.grid.marchi figure {
  position: relative;
  float: left;
  overflow: hidden;
  width: 33.33333%;
  text-align: center;
  cursor: pointer;
  /* height: 360px; */
  /* margin: 0.5%; */
  -moz-border-radius: 2px;
  border-radius: 2px;
  border: 10px solid white;
}
.grid.marchi figure img {
  position: relative;
  display: block;
  max-width: 100%;
  /* opacity: 0.6; */
}
.grid.marchi figure figcaption {
  padding: 2em;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.grid.marchi figure figcaption::before, .grid.marchi figure figcaption::after {
  pointer-events: none;
}
.grid.marchi figure figcaption, .grid.marchi figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid.marchi figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
  color: white;
}
.grid.marchi figure h2 {
  color: white;
  font-size: 25px;
  text-align: center;
  /* border-top: 1px dotted #fff; */
  /* border-bottom: 1px dotted #fff; */
  letter-spacing: 0px;
  position: absolute;
  bottom: 11%;
  right: 0px;
}

article .soluzioni .mgrid-item .grid.marchi figure h2 {
  color: white;
  font-size: 25px;
  text-align: center;
  letter-spacing: 0px;
  position: absolute;
  bottom: 0%;
  right: 0px;
}


.grid.marchi figure h2 span {
  font-weight: 800;
}
.grid.marchi figure h2, .grid figure p {
  margin: 0;
}
.grid.marchi figure p {
  text-align: center;
}
.grid.marchi figure .btn {
  float: inherit
}
/* Individual effects */
/*---------------*/
/***** Duke *****/
/*---------------*/
figure.effect-duke {
  background: #444444;
}
figure.effect-duke:nth-child(1) {
  background: #a6b7bd;
}
figure.effect-duke:nth-child(2) {
  background: #bea7b4;
}
figure.effect-duke:nth-child(3) {
  background: #d4d3bd;
}
figure.effect-duke:nth-child(4) {
  background: #afaeae;
}
figure.effect-duke img, figure.effect-duke p {
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}
figure.effect-duke:hover img {
  opacity: 1;
  -webkit-transform: scale3d(1.1, 1.1, 1);
  transform: scale3d(1.1, 1.1, 1);
}
.grid figure p img {
  position: relative;
  /* display: block; */
  height: 80px;
  opacity: 1;
  margin: auto;
}
.grid.marchi figure p img {
  max-height: 80px;
  height: auto
}
figure.effect-duke:hover p img {
  opacity: 1;
  -webkit-transform: none;
  transform: none
}
figure.effect-duke h2 {
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
  -webkit-transform: scale3d(0.8, 0.8, 1);
  transform: scale3d(0.8, 0.8, 1);
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
}
figure.effect-duke p {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 3%;
  padding: 20px;
  border: 1px solid #fff;
  text-transform: none;
  font-size: 90%;
  opacity: 0;
  -webkit-transform: scale3d(0.8, 0.8, 1);
  transform: scale3d(0.8, 0.8, 1);
  -webkit-transform-origin: 50% -100%;
  transform-origin: 50% -100%;
  display: inline-block;
  width: 93%;
  color: #444;
  text-align: center;
  background: white;
}
figure.effect-duke:hover h2, figure.effect-duke:hover p {
  opacity: 1;
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
}
@media screen and (max-width: 1034px) {
  .grid figure h2 {
    font-size: 30px;
  }
  .grid figure {
    height: 290px;
  }
  .grid.marchi .hoverbox figure, .hoverbox figure img {
    min-width: 300px;
    max-width: 300px;
  }
  .grid.marchi .hoverbox.secondari figure img {
    max-width: 455px;
  }
}
@media screen and (max-width: 875px) {
  .grid figure {
    height: 250px;
    width: 100%;
    margin: 1% 0%;
  }
  .grid figure h2 {
    font-size: 40px;
  }
  .grid.marchi {
    margin: 30px auto 30px auto;
  }
}
@media screen and (max-width: 778px) {
  .grid figure {
    height: 240px;
    width: 100%;
    margin: 1% 0%;
  }
  .grid figure img {
    position: relative;
    display: block;
    max-width: 100%;
    opacity: 0.6;
    width: 100%;
  }
  .grid figure p img {
    width: auto
  }
  .grid.marchi .hoverbox figure, .hoverbox figure img {
    min-width: 100%;
    max-width: 100%;
  }
  .grid.marchi figure.effect-ming h2 {
    margin: 20% 0 10px 0 !important;
  }
  .grid.marchi .hoverbox.secondari figure, .grid.marchi .hoverbox.secondari figure img {
    min-width: 100%;
    max-width: 100%
  }
  .grid.marchi figure.effect-sadie p {
    padding: 10px;
    font-size: 16px;
  }
  .grid.marchi figure.effect-sadie h2 {
    font-size: 30px;
  }
}
@media screen and (max-width: 670px) {
  .grid figure {
    display: inline-block;
    float: none;
    width: 100%;
  }
  .grid.marchi .box_news .box, .grid.marchi .box_img img {
    min-width: 210px;
    width: 100%;
    display: inherit;
    max-width: 100%
  }
}
@media screen and (max-width: 500px) {
  .grid.marchi .hoverbox figure, .grid.marchi figure {
    display: inline-block;
    float: none;
    margin: 0px auto;
    width: 100%;
  }
  .grid figure {
    height: 280px;
    width: 100%;
    margin: 1% 0% 2% 0%;
  }
  .grid figure figcaption {
    padding: 2em 1em;
  }
  .grid figure h2 {
    font-size: 25px;
  }
  figure.effect-duke p {
    padding: 10px;
    width: 89%;
    font-size: 15px
  }
}