.toyou-highlight-wrap,
.toyou-white-highlight ,
.toyou-dark-highlight {
    position: relative;
    z-index: 99;
    text-align: left;
}

.toyou-white-highlight .text-white,
.toyou-dark-highlight .text-white {
    line-height: normal;
}

.toyou-text-highlight {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align:bottom
}

.toyou-text-content {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 5px;
    /* Hardware acceleration */
    transform: translateZ(0);
}

.toyou-text-colored {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    margin: 0;
    padding: 0 5px;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-style: inherit;
    clip-path: inset(0 100% 0 0);
    transform: translateZ(0);
    will-change: clip-path;
    transition: clip-path 1s linear;
}

.toyou-text-colored.toyou-reveal-text {
    clip-path: inset(0 0% 0 0);
}

.toyou-highlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    z-index: 1;
    transform: translateZ(0);
    will-change: width;
    transition: width 1s linear;
}

.toyou-highlight-bg.toyou-animate {
    width: 100%;
}

/* VARIANTE CHIARA */

.toyou-white-highlight .toyou-text-content {
    color: #000;
}

.toyou-white-highlight .toyou-highlight-bg {
    background: #000;
}

.toyou-white-highlight .toyou-text-colored {
    color: #fff;
}

/* VARIANTE SCURA */

.toyou-dark-highlight .toyou-text-content {
    color: #fff;
}

.toyou-dark-highlight .toyou-highlight-bg {
    background: #fff;
}

.toyou-dark-highlight .toyou-text-colored {
    color: #000;
}

@media (prefers-reduced-motion: reduce) {
    .toyou-text-colored,
    .toyou-highlight-bg {
        transition-duration: 0.5s;
    }
}

@supports not (clip-path: inset(0)) {
    .toyou-text-colored {
        width: 0%;
        white-space: nowrap;
        overflow: hidden;
        clip-path: none;
        transition: width 1s linear;
    }
    
    .toyou-text-colored.toyou-reveal-text {
        width: 100%;
    }
}