
.heading-block {
    text-align: center;
    padding: 2em 0;
    overflow: hidden;
}


.valori {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr !important;
    -ms-grid-rows: auto;
    grid-template-rows: auto;
    column-gap: 15px;
    row-gap: 15px;
    margin-bottom: 1em;
  margin-left: 5%;
  margin-right: 5%;
}
.valori__item {
    position: relative;
    overflow: hidden;
    transition: all .3s ease-out 0s;
}
.valori__info {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    transition: all .3s ease-out 0s;
    pointer-events: none;
}
.valori__icon {
    width: 74px;
    height: 74px;
    border-radius: 37px;
    display: block;
    margin-bottom: 10px;
    transition: all .3s ease-out 0s;
    pointer-events: none;
}
.valori__text, .valori__title {
    color: #fff;
    pointer-events: none;
}
.valori__title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.valori__text:before {
    content: "";
    width: 120px;
    height: 3px;
    background: #fff;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -60px;
}
.valori__item:hover .valori__info {
    height: 60%;
}

.valori__item:hover .valori__text {
    bottom: 0;
    height: 50%;
}
.valori__text {
    font-size: 14px;
    text-align: center;
    line-height: 1.1em;
    padding: 1.5em 15px;
    margin: 0;
    position: absolute;
    bottom: -190px;
    z-index: 5;
    transition: all .3s ease-out 0s;
   color:#fff;
}

@media (min-width: 768px){
.valori {
    -ms-grid-columns: 1fr 1fr !important;
    grid-template-columns: 1fr 1fr !important!important;
    margin-bottom: 2em;
  }
}

@media (max-width: 768px){
.valori {
    -ms-grid-columns: 1fr !important;
    grid-template-columns: 1fr !important;
  }
}

{# Header Css#}
@media (min-width: 992px){
.heading-block {
    padding: 4.5em 0 2em;
    margin: 0 auto;
    max-width: 1400px;
  }
}
@media (min-width: 768px){
.heading-block {
    padding: 2em 0;
  }
}
@media (min-width: 768px)
  {
.heading-block h2 {
    max-width: 100%;
    width: auto;
}
.heading-block h2 {
    display: inline-block;
    position: relative;
    background: #fff;
    padding: 0 20px;
    margin: 0 0 10px;
    max-width: 240px;
    color: #d8262f;
}
.heading-block h2:before {
    content: "";
    width: 500%;
    height: 3px;
    background: #d8262f;
    position: absolute;
    bottom: 15px;
    left: -200%;
    z-index: -2;
}
.heading-block p {
    font-size: 16px;
    margin: 1em auto;
    max-width: 62rem;
}
.heading-block h2 {
    margin-bottom: 2rem;
    font-weight: 800;
}
.heading-block {
    padding: 1.5em 0 2em;
}
}