.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;
    /*background: #363636;*/ background: white;
}
    /* 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: 25%;
    }

.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;
    padding-right: 61px;
}

    .grid.marchi.riepilogo.settore figure h2 br {
        display: none
    }

.vedis .grid.marchi.riepilogo.settore figure h2,
.vertrans .grid.marchi.riepilogo.settore figure h2 {
    font-size: 17px;
    bottom: 0px;
    padding-right: 61px;
    line-height: 22px;
   max-width:94%;
    height: 43px;
}

.grid.marchi.riepilogo.settore figure.effect-duke p {
    display: none;
    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";
    font-size: 19px;
    margin-left: 11px;
    position: absolute;
    padding: 8px 12px;
    top: auto;
    right: 13px;
    bottom: 3px;
}

.vedis .grid.marchi.riepilogo.settore figure h2::after,
.vertrans .grid.marchi.riepilogo.settore figure h2::after {
    content: "\f054";
    font-size: 19px;
    margin-left: 11px;
    position: absolute;
    padding: 8px 12px;
    top: auto;
    right: 13px;
    bottom: 3px;
}



.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 {
    border-bottom: 4px solid white;
    border-left: 2px solid white;
    border-right: 2px solid white;
    /*border-bottom: 2px solid white;*/
}

    .grid.marchi figure {
        border-top: 4px solid white;
        border-left: 2px solid white;
        border-right: 2px solid white;
    }
.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: 1280px) {
    .grid.marchi figure figcaption, .grid.marchi figure figcaption > a {
        top: 16px;
    }

    .grid.marchi.riepilogo.settore figure h2 {
        bottom: 0px;
        right: 20px;
        width: 80%;
    }
}

@media screen and (max-width: 1034px) {
    .grid figure h2 {
        font-size: 30px;
    }



    .grid.marchi .hoverbox figure, .hoverbox figure img {
        min-width: 300px;
        max-width: 300px;
    }

    .grid.marchi .hoverbox.secondari figure img {
        max-width: 455px;
    }


    .grid figure, .grid.marchi figure {
        height: 320px;
        width: 33.33333%;
        margin: 0px;
    }
}



@media screen and (max-width: 875px) {
    .grid.marchi.riepilogo.settore figure {
        width: 33.333%;
    }

    .grid figure, .grid.marchi figure {
        height: 255px;
    }

        .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: 600px) {
    .grid.marchi.riepilogo figure {
        width: 100%;
    }

    .grid.marchi figure h2 {
        bottom: 41%;
    }

    .grid figure, .grid.marchi figure {
        height: 414px;
        width: 100%;
    }

    .grid figure, .grid.marchi figure, .grid.marchi.riepilogo.settore figure {
        height: 314px;
        width: 100%;
        border-left: 4px solid white;
        border-right: 4px solid white;
    }

    .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 (max-width:400px) {
}
