.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: 0px auto;
  width: 100%;
  list-style: none;
  text-align: center;
  display: inline-block;
}
/* Common style */
.grid.marchi figure {
  position: relative;
  float: left;
  overflow: hidden;
  width: 16.666%;
  text-align: center;
  cursor: pointer;
  /* height: 360px; */
  /* margin: 0.5%; */
}
.grid.marchi.riepilogo figure {
  width: 33.333%;
}
.grid.marchi.riepilogo.settore figure {
  width: 20%;
}
.versider .grid.marchi.riepilogo.settore figure {
  width: 25%;
}
.grid.marchi.riepilogo.settore figure h2 {
  font-size: 21px;
  padding: 0px;
  background: none;
  text-align: right;
}
.grid.marchi.riepilogo.settore figure h2 {
  color: white;
  font-size: 20px;
  text-transform: capitalize;
  text-align: right;
  bottom: -12px;
  padding: 10px;
  -webkit-transition: -webkit-transform 0.35s, color 0.35s;
  transition: transform 0.35s, color 0.35s;
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
  font-weight: 300;
  right: 20px;
}
.sav .grid.marchi.riepilogo.settore figure h2 {
  font-size: 17px;
  bottom: -12px;
  padding-right: 61px;
  line-height: 22px;
}
.grid.marchi.riepilogo.settore figure.effect-duke p {
  top: 0;
  bottom: inherit;
  font-size: 14px;
  padding: 10px;
}
.grid.marchi.riepilogo.settore figure h2::after {
  content: "\f054";
  color: #fff;
  border: 1px solid white;
  font-weight: bold;
  font-family: Font Awesome\ 5 Free; /* margin-left: 10px; */ font-size: 12px;
  margin-left: 11px;
  top: 0px;
  position: relative; /* width: 20px; */ /* height: 20px; */ padding: 2px 4px;
}
.sav .grid.marchi.riepilogo.settore figure h2::after {
  content: "\f054";
  font-size: 19px;
  margin-left: 11px;
  position: absolute;
  padding: 8px 12px;
  top: 13px;
  right: 13px;
}
.grid.marchi.riepilogo.settore figure img {
  opacity: 0.6;
}
.grid.marchi.riepilogo.settore figure:hover img {
  opacity: 0.3;
}
.grid.marchi.riepilogo figure h2 {
  font-size: 34px;
  padding: 18px;
}
.grid.marchi figure img {
  position: relative;
  display: block;
  max-width: 100%;
  /* opacity: 0.6; */
}
.grid.marchi figure figcaption {
  padding: 0px;
  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: 26px;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0px;
  position: absolute;
  bottom: 30%;
  padding: 10px;
  -webkit-transition: -webkit-transform 0.35s, color 0.35s;
  transition: transform 0.35s, color 0.35s;
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
}
.grid.marchi figure:hover h2 {
  -webkit-transform: translate3d(0, -50%, 0) translate3d(0, -20px, 0);
  transform: translate3d(0, -50%, 0) translate3d(0, -20px, 0);
}
.grid.marchi figure h2 span {
  font-weight: 800;
}
.grid.marchi figure h2, .grid figure p {
  margin: 0;
  background: rgba(14, 62, 103, 0.9);
}
.grid.marchi figure p {
  text-align: center;
}
.grid.marchi figure .btn {
  float: inherit
}
/* Individual effects */
/*---------------*/
/***** Duke *****/
/*---------------*/
figure.effect-duke {
  background: #313131;
}
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 {
  font-weight: 300
}
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: 820px) {
  .grid figure {
    height: 400px;
    width: 100%;
    margin: 1% 0%;
  }
  .grid figure h2 {
    font-size: 40px;
  }
}
@media screen and (max-width: 778px) {
  .grid figure {
    height: 502px;
    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 {
    display: inline-block;
    float: none;
    margin: 10px 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
  }
}