.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 h3 {
  /*	word-spacing: -0.15em;
	font-weight: 300;*/
}
.hoverbox figure h3 span {
  font-weight: 800;
}
.hoverbox figure h3, .hoverbox figure p {
  margin: 0;
}
.hoverbox figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}
/* {
  position: relative;
  margin: 0px auto;
  width: 100%;
  list-style: none;
  text-align: center;
  display: inline-block;
}*/
/* Common style */
 figure {
  position: relative;
  float: left;
  overflow: hidden;
  width: 48%;
  text-align: center;
  cursor: pointer;
border: 8px solid white;
  margin: 1%;
}
.riepilogo figure {
  width: 33.333%;
}
.riepilogo.settore figure {
  width: 20%;
}

.versider .riepilogo.settore figure {
    width: 25%;
}

.riepilogo.settore figure h3 {
  font-size: 21px;
  padding: 0px;
  background: none;
  text-align: right;
}
.riepilogo.settore figure h3 {
  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;
}

.vedis .riepilogo.settore figure h3,
.vertrans .riepilogo.settore figure h3
{
font-size: 17px;
    bottom: -12px;
    padding-right: 61px;
    line-height: 22px;
}

.riepilogo.settore figure.effect-duke p {
  top: 0;
  bottom: inherit;
  font-size: 14px;
  padding: 10px;
}
.riepilogo.settore figure h3::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;
}

.vedis .riepilogo.settore figure h3::after,
.vertrans .riepilogo.settore figure h3::after{
    content: "\f054";
    font-size: 19px;
    margin-left: 11px;
    position: absolute;
    padding: 8px 12px;
top: 13px;
    right: 13px;
}



.riepilogo.settore figure img {
  opacity: 0.6;
}
.riepilogo.settore figure:hover img {
  opacity: 0.3;
}
.riepilogo figure h3 {
  font-size: 34px;
  padding: 18px;
}
 figure img {
  position: relative;
  display: block;
  max-width: 100%;
  opacity: 0.6;
}
 figure figcaption {
  padding: 0px;
  color: #fff;
  /* text-transform: uppercase; */
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
 figure figcaption::before,  figure figcaption::after {
  pointer-events: none;

}
 figure figcaption,  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 */
 figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
  color: white;
}
 figure h3 {
  color: white;
  font-size: 34px;
  text-align: center;
  /* font-weight: 300; */
  letter-spacing: 0px;
  position: absolute;
  top: 10%;
  padding: 30px;
  -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);
}
 figure:hover h3 {
  -webkit-transform: translate3d(0, -50%, 0) translate3d(0, -20px, 0);
  transform: translate3d(0, -50%, 0) translate3d(0, -20px, 0);
}
 figure h3 span {
  font-weight: 800;
}
 figure h3,  figure p {
  margin: 0;
  /* background: rgba(14, 62, 103, 0.9); */
}
 figure p {
  text-align: center;
}
 figure .btn {
  float: inherit
}
/* Individual effects */
/*---------------*/
/***** Duke *****/
/*---------------*/
figure.effect-duke {
  background: var(--cc-marrone);
}
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);
}
 figure p img {
  position: relative;
  /* display: block; */
  height: 80px;
  opacity: 1;
  margin: auto;
}
 figure p img {
  max-height: 80px;
  height: auto
}
figure.effect-duke:hover p img {
  opacity: 1;
  -webkit-transform: none;
  transform: none
}
figure.effect-duke h3 {
  /* 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 h3, figure.effect-duke:hover p {
  opacity: 1;
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
}
@media screen and (max-width: 1034px) {
   figure h3 {
    font-size: 30px;
    margin-top: 30px;
  }
   figure {
 height: 290px;
    border-top: none;
	 border-bottom: none;
	 margin-bottom:20px
  }
   .hoverbox figure, .hoverbox figure img {
    min-width: 300px;
    max-width: 300px;
  }
   .hoverbox.secondari figure img {
    max-width: 455px;
  }
}
@media screen and (max-width: 820px) {
   figure {
    height: 400px;
    width: 100%;
    margin: 1% 0%;
  }
   figure h3 {
    font-size: 40px;
  }
}
@media screen and (max-width: 778px) {
   figure {
    height: 476px;
    width: 100%;
    margin: 1% 0%;
  }
   figure img {
    position: relative;
    display: block;
    max-width: 100%;
    opacity: 0.6;
    width: 100%;
  }
   figure p img {
    width: auto
  }
   .hoverbox figure, .hoverbox figure img {
    min-width: 100%;
    max-width: 100%;
  }
   figure.effect-ming h3 {
    margin: 20% 0 10px 0 !important;
  }
   .hoverbox.secondari figure,  .hoverbox.secondari figure img {
    min-width: 100%;
    max-width: 100%
  }
   figure.effect-sadie p {
    padding: 10px;
    font-size: 16px;
  }
   figure.effect-sadie h3 {
    font-size: 30px;
  }
}
@media screen and (max-width: 670px) {
   figure {
    display: inline-block;
    float: none;
    width: 100%;
  }
   .box_news .box,  .box_img img {
    min-width: 210px;
    width: 100%;
    display: inherit;
    max-width: 100%
  }
}
@media screen and (max-width: 500px) {
   .hoverbox figure {
    display: inline-block;
    float: none;
    margin: 10px auto;
    width: 100%;
  }
    figure {
        height: 230px;
        width: 100%;
        margin: 1% 0% 8% 0%;
    }
   figure figcaption {
    padding: 2em 1em;
  }
   figure h3 {
    font-size: 25px;
  }
  figure.effect-duke p {
    padding: 10px;
    width: 89%;
    font-size: 15px
  }
}
@media screen and (max-width: 380px) {


    figure {
        height: 170px;
        width: 100%;
        margin: 1% 0% 8% 0%;
    }


}