/* Buttons — componente .btn-one / .btn-two, estratto da style.css */

.btn-one {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding-left: 55px;
    padding-right: 55px;
    background-color: transparent;
    color: #fefefe;
    font-size: 16px;
    line-height: 70px;
    font-weight: 700;
    text-transform: capitalize;
    border-radius: 5px;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    font-family: var(--thm-font);
    z-index: 2;
}

/* Sfondo pieno del bottone */
.btn-one:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: blue;
    border-radius: 5px;
    z-index: -1;
}

/* Shine: riflesso di luce che attraversa il bottone all'hover */
.btn-one:before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-transform: skewX(-20deg);
    transform: skewX(-20deg);
    -webkit-transition: left 0.75s ease;
    -o-transition: left 0.75s ease;
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-one:hover:before {
    left: 125%;
}

.btn-one.style2 {
    color: var(--thm-black);
}

.btn-one.style2:after {
    background-color: #ffffff;
    border: 2px solid #ffffff;
}

/* Su bottone chiaro lo shine è scuro per restare visibile */
.btn-one.style2:before {
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.btn-one.style2:hover,
.btn-one.style2:focus {
    color: var(--thm-black);
}

.btn-one .txt {
    position: relative;
    z-index: 2;
}

.btn-one:hover,
.btn-one:focus {
    color: #ffffff;
}

.btn-two {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    color: var(--thm-black);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--thm-font-2);
    transition: all 200ms linear;
    transition-delay: 0.1s;
}

.btn-two:before {
    font-family: Fontawesome;
    content: "\f107";
    position: absolute;
    top: -2px;
    left: 0;
    font-weight: 400;
    font-size: 22px;
    transform: rotate(-135deg);
    transition: all 100ms linear;
    transition-delay: 0.1s;
}

.btn-two:hover:before {
    transform: rotate(-90deg);
    top: 0;
}

.btn-two:hover {
    color: var(--thm-base);
}
