@font-face {
    font-family: Quicksand-dash;
    src: url(Quicksand_Dash.otf);
}

html {
    width: 100%;
    height: auto;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
}

body {
    width: 100%;
    height: auto;
    margin: 0;
}

.d_flex {
    display: flex;
}

:root {
    --static-width: 1440px;
    --calc-width: calc(100% - 100px);
    --full-width: 100%;

}

h1 {
    font-size: 4.5rem;
    line-height: 4.5rem;
    font-weight: 700;
    color: #ec6576;
    text-shadow: rgb(255, 255, 255) 5px 0px 0px, rgb(255, 255, 255) 4.90033px 0.993347px 0px, rgb(255, 255, 255) 4.60531px 1.94709px 0px, rgb(255, 255, 255) 4.12668px 2.82321px 0px, rgb(255, 255, 255) 3.48353px 3.58678px 0px, rgb(255, 255, 255) 2.70151px 4.20736px 0px, rgb(255, 255, 255) 1.81179px 4.6602px 0px, rgb(255, 255, 255) 0.849836px 4.92725px 0px, rgb(255, 255, 255) -0.145998px 4.99787px 0px, rgb(255, 255, 255) -1.13601px 4.86924px 0px, rgb(255, 255, 255) -2.08073px 4.54649px 0px, rgb(255, 255, 255) -2.94251px 4.04248px 0px, rgb(255, 255, 255) -3.68697px 3.37732px 0px, rgb(255, 255, 255) -4.28444px 2.57751px 0px, rgb(255, 255, 255) -4.71111px 1.67494px 0px, rgb(255, 255, 255) -4.94996px 0.7056px 0px, rgb(255, 255, 255) -4.99147px -0.291871px 0px, rgb(255, 255, 255) -4.83399px -1.27771px 0px, rgb(255, 255, 255) -4.48379px -2.2126px 0px, rgb(255, 255, 255) -3.95484px -3.05929px 0px, rgb(255, 255, 255) -3.26822px -3.78401px 0px, rgb(255, 255, 255) -2.4513px -4.35788px 0px, rgb(255, 255, 255) -1.53666px -4.75801px 0px, rgb(255, 255, 255) -0.560763px -4.96846px 0px, rgb(255, 255, 255) 0.437495px -4.98082px 0px, rgb(255, 255, 255) 1.41831px -4.79462px 0px, rgb(255, 255, 255) 2.34258px -4.41727px 0px, rgb(255, 255, 255) 3.17346px -3.86382px 0px, rgb(255, 255, 255) 3.87783px -3.15633px 0px, rgb(255, 255, 255) 4.4276px -2.32301px 0px, rgb(255, 255, 255) 4.80085px -1.39708px 0px, rgb(255, 255, 255) 4.98271px -0.415447px 0px;
}

h2 {
    font-family: Quicksand-dash;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 3.5rem;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: #623412;
}

p {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7rem;
    color: #2c2a33;
}

span, a {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7rem;
}

/***/

#banner {
    width: 100%;
    height: 100vh;
    position: relative;
    background: #fef8f1;
}

#banner.d_flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container_banner.d_flex {
    width: var(--static-width);
    height: 100%;
    margin: 0 auto;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.cream_icecream_mobile, .pink_icecream_mobile, .blue_icecream_mobile, .background_mobile {
    display: none;
}

.pink_icecream_desktop {
    width: 1200px;
    height: 1200px;
    position: absolute;
    top: -200px;
    right: -400px;
    z-index: 0;
    text-align: right;
    transition: 1s;
    -webkit-transition: 1s;
}

.pink_icecream_desktop img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.cream_icecream_desktop {
    width: 410px;
    height: 390px;
    overflow: hidden;
    position: absolute;
    top: 200px;
    left: -350px;
    z-index: 1;
    transition: 1s;
    -webkit-transition: 1s;
}

.cream_icecream_desktop img {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
}

.blue_icecream_desktop {
    width: 800px;
    height: 700px;
    position: absolute;
    bottom: 0;
    left: 400px;
    right: 0;
    margin: 0 auto;
    z-index: 2;
    transition: 1s;
    -webkit-transition: 1s;
}

.blue_icecream_desktop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payoff_banner {
    flex: 0 40%;
    width: unset;
    margin: 0 auto 0 0;
    text-align: left;
    position: relative;
    z-index: 5;
    top: 300px;
}

.logo_banner {
    flex: 0 60%;
    position: relative;
    z-index: 5;
    text-align: center;
    top: 280px;
}

.logo_banner img {
    width: 750px;
}

#banner_bottom {
    width: 100%;
    height: 100px;
    position: relative;
    margin-bottom: 80px;
}

#banner_bottom img {
    width: 100%;
    height: 100%;
}

#chi_siamo {
    width: 1280px;
    height: auto;
    margin: 0 auto 100px auto;
}

#chi_siamo .container.d_flex {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#chi_siamo .container.d_flex .image {
    flex: 0 45%;
}

#chi_siamo .container.d_flex .image img {
    width: 100%;
    object-fit: contain;
}

#chi_siamo .container.d_flex .text {
    flex: 0 50%;
    text-align: left;
}

#chi_siamo .container.d_flex .text p {
    padding: 0 30px 0 0;
}

#prodotti {
    width: var(--static-width);
    height: auto;
    margin: 0 auto 200px auto;
}

#prodotti h2 {
    text-align: center;
}

#prodotti .container.d_flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 270px;
}

.product_container {
    flex: 0 22%;
    border-radius: 30px;
}

.product_container.pink {
    background-color:#ffb7ca;
}

.product_container.blue {
    background-color:#a3d8ce;
}

.product_container.green {
    background-color:#adce63;
}

.product_container.orange {
    background-color:#efa841;
}

.product_container_image {
    height: 150px;
    position: relative;
}

.product_container_image img {
    width: 95%;
    position: absolute;
    left: 0;
    bottom: 20px;
    right: 0;
    margin: 0 auto;
}

.product_box {
    height: 270px;
    padding-bottom: 20px;
}

.product_container_text {
    width: calc(100% - 50px);
    height: auto;
    margin: 0 auto;
    text-align: center;
}

.product_container_text h3 {
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.5rem;
    margin-top: 0;
    font-weight: 600;
}

.product_container_text p {
    color: #fff;
}

#target {
    text-align: center;
    margin-bottom: 100px;
}

#target .text {
    width: 1024px;
    margin: 0 auto 100px auto;
}

#target .text p {
    padding: 0 160px;
}

#partner_top {
    width: 100%;
    height: 110px;
}

#partner_top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#partner {
    width: 100%;
    height: auto;
    /*
    background-color: #fef8f1;
    */
    position: relative;
    padding-bottom: 0;
    padding-top: 50px;
}

.partner_container.d_flex {
    width: 1024px;
    margin: 0 auto;
    text-align: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.partner_container.d_flex .partner_title {
    flex: 0 100%;
    margin-bottom: 100px;
}

.partner_image {
    flex: 0 30%;
}

.partner_image img {
    width: 100%;
    object-fit: contain;
}

#partner_bottom {
    width: 100%;
    height: 110px;
    padding-top: 80px;
    /*
    background: #fef8f1;
    */
}

#partner_bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@media screen and (max-width: 1440px) {

    :root {
        --static-width: 1280px;
    }

    /***/

    .logo_banner img {
        width: 500px;
    }

    .cream_icecream_desktop {
        left: -300px;
    }

    .pink_icecream_desktop {
        text-align: right;
        width: 1000px;
        height: 1000px;
    }

    #chi_siamo {
        width: 1024px;
    }

    #chi_siamo .container.d_flex .text p {
        padding: 0;
    }

}

@media screen and (max-width: 1280px) {

    :root {
        --static-width: 1024px;
    }

    h1 {
        font-size: 4rem;
        line-height: 4rem;
    }

    /***/

    .blue_icecream_desktop {
        width: 700px;
        height: 600px;
    }

    .payoff_banner {
        flex: 0 60%;
    }

    .logo_banner {
        flex: 0 40%;
    }

    .logo_banner img {
        width: 500px;
    }

    .product_container {
        flex: 0 36%;
        margin-bottom: 300px;
    }

    .product_container:nth-of-type(3), .product_container:last-of-type {
        margin-bottom: 0;
    }

    #partner_bottom img {
        height: 100%;
    }

}

@media screen and (max-width: 1024px) {

    .container_banner.d_flex, #chi_siamo, #prodotti, #target .text, .partner_container.d_flex {
        width: var(--calc-width);
        justify-content: space-around;
    }

    .container_banner.d_flex {
        flex-direction: column;
    }

    .blue_icecream_desktop {
        left: 0;
    }

    .payoff_banner {
        flex: unset;
        width: 100%;
        order: 2;
        -webkit-order: 2;
        text-align: center;
        top: 0;
    }

    .logo_banner {
        flex: unset;
        width: var(--full-width);
        order: 1;
        -webkit-order: 1;
        margin: 0 auto;
        top: 0;
    }  

    .cream_icecream_desktop {
        left: -200px
    }

    .blue_icecream_desktop {
        width: var(--calc-width);
    }

    .blue_icecream_desktop img {
        width: 100%;
    }

    #chi_siamo .container.d_flex {
        flex-direction: column;
    }

    #chi_siamo .container.d_flex .image {
        order: 2;
        -webkit-order: 2;
        margin-top: 100px;
    }

    #chi_siamo .container.d_flex .text {
        text-align: center;
        order: 1;
        -webkit-order: 1;
    }

    #chi_siamo .container.d_flex .text p {
        padding: 0 100px;
    }

    #prodotti .container.d_flex {
        justify-content: space-around;
    }

    .product_box {
        height: 300px;
    } 

    .product_box p {
        font-weight: 700;
    }

    #target {
        margin-bottom: 50px;
    }

    #target .text p {
        padding: 0 100px;
    } 

    #target img {
        width: 80%;
    }

}

@media screen and (max-width: 834px) {

    #prodotti {
        margin: 0 auto 150px auto;
    }
    
    #prodotti .container.d_flex {
        margin-top: 250px;
    }

    .product_container {
        flex: 0 40%;
        margin-bottom: 250px;
    }
    
    .product_container_text {
        width: calc(100% - 30px);
    }

}

@media screen and (max-width: 768px) {

    :root {
        --calc-width: calc(100% - 50px);
    }

    /***/ 

    .pink_icecream_desktop {
        width: 760px;
        height: 760px;
    }

    .blue_icecream_desktop {
        height: 600px;
    }

    #chi_siamo .container.d_flex .image {
        text-align: center;
    }

    #chi_siamo .container.d_flex .image img {
        width: 80%;
    }

}

@media screen and (max-width: 600px) {

    h1 {
        font-size: 3rem;
        line-height: 3rem;
    }

    /***/

    .pink_icecream_desktop {
        width: 700px;
        height: 650px;
    }

    .logo_banner {
        width: var(--calc-width);
    }

    .logo_banner img {
        width: 100%;
    }

    #chi_siamo .container.d_flex .text p {
        padding: 0 20px;
    }

    .product_container, .product_container:nth-of-type(3) {
        flex: 0 60%;
        margin-bottom: 280px;
    }

    .product_container:last-of-type {
        margin-bottom: 0;
        flex: 0 60%;
    }

    #target .text p {
        padding: 0 20px;
    }

    .partner_container.d_flex {
        flex-direction: column;
    }

    .partner_image {
        flex: unset;
        width: 250px;
    }

    .partner_image:nth-of-type(3) {
        margin: 80px 0;
    }

}

@media screen and (max-width: 414px) {

    h2 {
        font-size: 3rem;
        line-height: 3rem;
    }
    
    /***/

    .container_banner.d_flex {
        width: var(--full-width);
    } 

    #banner_bottom {
        margin-bottom: 100px;
    }

    .background_desktop {
        display: none;
    }

    .background_mobile {
        display: block;
    }

    .pink_icecream_desktop, .blue_icecream_desktop, .cream_icecream_desktop {
        display: none;
    }

    .pink_icecream_mobile, .blue_icecream_mobile, .cream_icecream_mobile {
        display: block;
    }

    .pink_icecream_mobile {
        width: 450px;
        height: 760px;
        text-align: right;
        position: absolute;
        top: 0;
    }

    .pink_icecream_mobile img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        right: -150px;
        position: absolute;
        transition: 1s;
        -webkit-transition: 1s;
    }

    .cream_icecream_mobile {
        position: absolute;
        left: -50px;
        top: 100px;
        transition: 1s;
        -webkit-transition: 1s;
    }

    .cream_icecream_mobile img {
        width: 90%;
    }

    .blue_icecream_mobile {
        position: absolute;
        right: 0;
        bottom: -60px;
        text-align: right;
        transition: 1s;
        -webkit-transition: 1s;
    }

    .blue_icecream_mobile img {
        width: 60%;
    }

    .payoff_banner {
        order: 2;
        -webkit-order: 2;
        text-align: center;
    }

    .product_container, .product_container:nth-of-type(3), .product_container:last-of-type {
        flex: 0 100%;
    }

    .product_container_image img {
        width: 90%;
    }

    .product_box {
        height: auto;
        padding-bottom: 50px;
    }

    .product_box p {
        font-size: 1.2rem;
        line-height: 1.8rem;
        font-weight: 700;
    }

    #target {
        margin-bottom: 0;
    }

    #target img {
        width: var(--calc-width);
    }

    #partner_bottom {
        padding-top: 0;
    }

    .partner_image img {
        width: 80%;
    }

}

@media screen and (max-width: 360px) {

    h2 {
        font-size: 2.5rem;
        line-height: 2.5rem;
    }

    /***/

    #prodotti .container.d_flex {
        margin-top: 250px;
    }

}