:root{
    --needle:50deg;
}
.gauge-wrapper {
    display: inline-block;
    width: auto;
    margin: 0 auto;
    padding: 20px 15px 15px;
}

.gauge {
    background: #e7e7e7;
    box-shadow: 0 -3px 6px 2px rgba(0, 0, 0, 0.50);
    width: 200px;
    height: 100px;
    border-radius: 100px 100px 0 0 !important;
    position: relative;
    overflow: hidden;
}

.gauge.min-scaled {
    transform: scale(1);
}

.gauge-center {
    content: '';
    color: #fff;
    width: 60%;
    height: 60%;
    background: #15222E;
    border-radius: 100px 100px 0 0 !important;
    position: absolute;
    box-shadow: 0 -13px 15px -10px rgba(0, 0, 0, 0.28);
    right: 21%;
    bottom: 0;
    color: #fff;
    z-index: 10;
}

.gauge-center .label,
.gauge-center .number {
    display: block;
    width: 100%;
    text-align: center;
    border: 0 !important;
}

.gauge-center .label {
    font-size: 0.75em;
    opacity: 0.6;
    margin: 1.1em 0 0.3em 0;
}

.gauge-center .number {
    font-size: 1em;
    text-transform: capitalize;
}

.needle {
    width: 80px;
    height: 10px;
    background: #15222E;
    border-bottom-left-radius: 100% !important;
    border-bottom-right-radius: 5px !important;
    border-top-left-radius: 100% !important;
    border-top-right-radius: 5px !important;
    position: absolute;
    bottom: -2px;
    left: 20px;
    transform-origin: 100% 4px;
    transform: rotate(0deg);
    box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.38);
    display: none;
    z-index: 9;
}

.four.rischio .needle {
    animation: fourspeed1 2s 1 both;
    animation-delay: 1s;
    display: block;
}


@-webkit-keyframes fourspeed1 {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(var(--needle));
    }
}

.slice-colors {
    height: 100%;
}

.slice-colors .st {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border: 50px solid transparent;
}


.four .slice-colors .st.slice-item:nth-child(2) {
    border-top: 50px #1eaa59 solid;
    border-right: 50px #1eaa59 solid;
    background-color: #f1c40f;
}

.four .slice-colors .st.slice-item:nth-child(4) {
    left: 50%;
    border-bottom: 50px #E84C3D solid;
    border-right: 50px #E84C3D solid;
    background-color: #e67e22;
}

.labels>span{
  position: absolute;
  color: white;
  font-size: 15px;
}
.labels span:nth-child(1){
    top: 80%;
    left: 45%;
    transform: translate( -200%,-190%) rotate(-70deg);
}
.labels span:nth-child(2){
    top: 45%;
    left: 72%;
    transform: translate( -200%,-190%) rotate(-25deg);
}
