@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;700&display=swap');


*,
*::after,
*::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Cabin', sans-serif;
    letter-spacing: 1px;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.swipe {
    height: 100%;
    flex-basis: 33.33%;
    flex-basis: 50%;
    flex-shrink: 1;
    transition: .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    position:relative;
    z-index:2;
}

.swipe:hover  {
    flex-basis: 55%;
}

.swipe__left {
    background: url(https://www.toffano.it/img/toffano-greenenergy-immagine-sezione.jpg) no-repeat center;
    background-size: cover;
}

.swipe__center {
    background: url(https://www.toffano.it/img/toffano-expert-intro.jpg) no-repeat center;
    background-size: cover;
}

.swipe__right {
    background: url(https://www.toffano.it/img/Sumo_MA_2400x1000.jpeg) no-repeat center;
    background-size: cover;
}

.swipe::before {
    content: "";
    width:100%;
    height:100%;
    background: rgba(000,000,000,.5);
    position:absolute;
    z-index: -1;
    backdrop-filter: blur(4px);
    transition: all .5s cubic-bezier(.57,.21,.69,1.25)
}

.swipe:hover::before {
    background: rgba(000,000,000,.1);
    backdrop-filter: blur(0px);
    
}

.box {
    width: 100%;
    max-width: 420px;
    padding: 45px;
    color: #000;
    background: rgba(245, 245, 245, 0.85);
    border-radius: 4px;
    text-align: center;
    transition: transform .5s cubic-bezier(.57,.21,.69,1.25)
}

.swipe:hover .box{
    transform: scale(1.1);
}  


.box .logo-box {
    max-width: 100%;
}

.box .s_head {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.box .b_head {
    font-size: 42px;
    line-height: 44px;
    margin-bottom: 15px;
}

.box p {
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 30px;
    margin-top: 20px;
}


/* fancy Button */
.fancy-button {
    display: inline-block;
    margin: 0px;
    font-family: "Cabin", Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 24px;
    color: #ffffff;
    position: relative;
}

.fancy-button.bg-gradient1 {
    text-shadow: 0px 0px 1px #f36f20;
}

.fancy-button.bg-gradient2 {
    text-shadow: 0px 0px 1px #fec545;
}

.fancy-button:before {
    content: "";
    display: inline-block;
    height: 40px;
    position: absolute;
    bottom: -1px;
    left: 10px;
    right: 10px;
    z-index: -1;
    border-radius: 2em;
    filter: blur(14px) brightness(0.9);
    transform-style: preserve-3d;
    transition: all 0.3s ease-out;
}

.fancy-button span {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50em;
    position: relative;
    z-index: 2;
    will-change: transform, filter;
    transform-style: preserve-3d;
    transition: all 0.3s ease-out;
}

.fancy-button:focus {
    color: #ffffff;
}

.fancy-button:hover {
    color: #ffffff;
}

.fancy-button:hover span {
    filter: brightness(0.9) contrast(1.2);
    transform: scale(0.96);
}

.fancy-button:hover:before {
    bottom: 3px;
    filter: blur(6px) brightness(0.8);
}

.fancy-button:active span {
    filter: brightness(0.75) contrast(1.7);
}

.bg-gradient1 span,
.bg-gradient1:before {
    background: linear-gradient(180deg, #ff823a, #f36f20);
}

.bg-gradient2 span,
.bg-gradient2:before {
    background: linear-gradient(180deg, #fec545, #fcaf17);
}

.bg-gradient3 span,
.bg-gradient3:before {
    background: linear-gradient(180deg, #037f41, #037a3f);
}
/*.swipe.swipe__left .box p {
    font-size:13px;
}*/

@media screen and (max-width: 767px) {
    .container {
        display: block;
        height: 100%;
    }

    .swipe {
        flex-basis: 100%;
        padding: 20% 10%;
    }
}

@media screen and (min-width: 768px) and (max-width:1100px) {
    
    .container {
        display: block;
        height: 100vh;
    }

    .swipe {
        flex-basis: 100%;
        padding: 20% 10%;
        height: 50%;
    }

}