@font-face {
    font-family: "Hubot Sans";
    src: url("fonts/HubotSansExpanded-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Hubot Sans";
    font-weight: 700;
    src: url("fonts/HubotSansExpanded-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "Hubot Sans";
    font-style: italic;
    src: url("fonts/HubotSansExpanded-Italic.ttf") format("truetype");
}
@font-face {
    font-family: "Hubot Sans";
    font-weight: 800;
    font-style: italic;
    src: url("fonts/HubotSansExpanded-ExtraBoldItalic.ttf") format("truetype");
}
@font-face {
    font-family: "Hubot Sans";
    font-weight: 600;
    font-style: italic;
    src: url("fonts/HubotSansExpanded-SemiBoldItalic.ttf") format("truetype");
}
@font-face {
    font-family: "Hubot Sans";
    font-weight: 600;
    src: url("fonts/HubotSansExpanded-SemiBold.ttf") format("truetype");
}

    html{
    	scroll-behavior: smooth;
    }

    body{
        font-family: "Hubot Sans", sans-serif;
    }

    img {
        max-width: 100%;
        height: auto;
    }


    .container, .info-container{
        position: relative;
        max-width: 100%;
    }

    .contenuto{
        max-width: 2000px;
        margin: auto;
    }

    .container:nth-child(1){ /* intro */
        margin-top: -30px;
        z-index: 7;
    }

    .container:nth-child(2){ /* partner */
        margin-top: -30px;
        z-index: 5;
    }

    .container:nth-child(3){ /* progetto nachste */
        margin-top: -30px;
        z-index: 4;
    }

    .container:nth-child(4){ /* servizi */
        margin-top: -30px;
        z-index: 3;
    }

    .container:nth-child(5){  /* contatti */
        margin-top: -30px;
        z-index: 2;
    }

    .logo{
        height: 116px;
        padding: auto;
    }

    #logo-progetto{
        height: 30px;
    }

    @media (min-width: 767px) {
        #logo-progetto{
            height: 50px;
        }
        #logo-indy{
            height: 24px;
			text-align:top;
        }
    }

    @media (min-width: 992px) {
        .logo {
            height: 116px;
        }

        #logo-progetto{
            height: 75px;
        }
        #logo-indy{
            height: 30px;
			text-align:top;
        }
    }

    .descrizione{
        font-size: 26px;
        color: #0A3C4A;
        margin-top: 80px;
        line-height: 1.2;
    }

    @media (min-width: 992px) {
        .descrizione{
            font-size: 32px;
        }
    }

    .smaller{
        font-size: 18px;
    }

    @media (min-width: 992px) {
        .smaller{
            font-size: 20px;
            line-height: 32px;
            color: #0A3C4A;
        }
    }

    .button{
        background-color: #C7D30E;
        font-size: 18px;
        text-align: center;
        font-weight: 600;
        color: #000000;
        border-radius: 99px;
        text-align: center;
        padding: 18px 40px;
        white-space: nowrap;
        display: inline-block;
        border: none;
        transition: all 0.3s;

    }

    .button img.arrow{
        margin-top: -2px;
    }

    .button:hover, .button:focus{
        background-color: #0A3C4A !important;
        color: #fff;
        text-decoration: none;
    }

    .button.bg-white:hover, .button.bg-white:focus {
        background-color: #C7D30E !important;
    }

    .button:hover img.arrow, .button:focus img.arrow{
        filter: invert(1);
    }


    .info-button{
        background-color: #fff;
        font-size: 18px;
        text-align: center;
        font-weight: 600;
        color: #000000;
        width: 310px;
        height: 60px;
        border-radius: 30px;
        text-align: center;
        padding: 18px 30px 18px 30px;
        margin: auto;
        margin-top: 30px;
        margin-bottom: 60px;
    }




    .arrow{
        height: 16px;
    }

    a{
        text-decoration: none;
        color:#C7D30E
    }

    a:hover{
        text-decoration: underline;
        color:#C7D30E;
        cursor: pointer;
    }


    .infografica{
        position: relative;
        max-width: 100%;
        background-color: #0A3C4A;
        color: #F6F4F2;
        border-radius: 64px;
        padding: 20px 0 20px 0;
        max-width: 90%;
        margin: auto;
    }

    #info-titolo{
        color: #F6F4F2;
        padding: 40px 60px 0 60px;
        font-size: 42px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    #pie-infografica{
        font-size: 42px;
        padding: 0 200px 0 200px;
        font-weight: 500;
    }

    #pie-infografica strong{
        color: #C7D30E;
        font-size: 42px;
        font-weight: 600;
        font-style: italic;
    }

    @media (max-width: 767px) {
        .infografica{
            position: relative;
            max-width: 100%;
            background-color: #0A3C4A;
            color: #F6F4F2;
            border-radius: 32px;
            padding: 20px 0 20px 0;
            max-width: 90%;
            margin: auto;
        }

        #info-titolo{
        color: #F6F4F2;
        padding: 30px 30px 0 20px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    #pie-infografica{
        font-size: 20px;
        padding: 0 40px 0 40px;
        font-weight: 500;
    }

    #pie-infografica strong{
        color: #C7D30E;
        font-size: 20px;
    }

    .info-button{
        background-color: #fff;
        font-size: 12px;
        width: 200px;
        height: 40px;
        border-radius: 20px;
        text-align: center;
        padding: 10px 20px 10px 20px;
        margin: auto;
        margin-top: 30px;
        margin-bottom: 60px;
    }

    .info-button .arrow{
        height: 10px;

    }
    }

    .infografica-desktop{
        border: none;
        position: relative;
        max-width: 100%;
        height: auto;
        background-color: #0A3C4A;
        color: #F6F4F2;
        border-radius: 64px;
    }

    @media (max-width: 767px) {
        .infografica-desktop{
            position: relative;
            display: none;
        }
    }

    .infografica-mobile{
        position: relative;
        max-width: 100%;
        height: auto;
        background-color: #C7D30E;
        color: #F6F4F2;
        border-radius: 64px;
    }

    @media (min-width: 768px) {
        .infografica-mobile{
            position: relative;
            display: none;
        }
    }

    .info-container{
        position: relative;
        z-index: 10;
        margin-top: -400px;
        margin-bottom: 120px;
    }

    .intro{
        margin-bottom: 320px;
    }


    h1{
        font-size: 44px;
        font-weight: 700;
        color: #C7D30E;
        line-height: 1.1;
        margin-top: 78px;
        font-style: italic;
    }

    #gray-h1{
        font-weight: 600;
        color: #8A8A89;
        font-style: italic;
        font-size: 28px;
        margin-top: 0;
    }

    @media (min-width: 992px) {
        h1 {
            font-size: 60px;
        }
    }

    h2{
        font-size: 40px;
    }

    #gray-h2{
        color: #8A8A89;
        font-style: italic;
        font-weight: 600;
    }

    @media (min-width: 992px) {
        h2 {
            font-size: 60px;
        }
    }

    h3{
        font-size: 32px;
        font-weight: 600;
        color: #0A3C4A;
        margin-bottom: 20px;
    }

    .white, .black{
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        padding-top: 120px;
    }

    .white{
        background-color: #F6F4F2;
        padding-bottom: 120px;
        color: #707070;
        font-size: 20px;
    }

    .black{
        background-color: #000000;
        color: #F6F4F2;
        font-size: 20px;
        padding-bottom: 130px;
    }

    @media (min-width: 992px) {
        .white, .black{
            font-size: 24px;
        }
    }

    .white h2{
        color: #0A3C4A;
        font-style: italic;
        font-weight: 600;
    }

    .black h2{
        color: #C7D30E;
        font-style: italic;
        font-weight: 600;
    }

    .loghi{
        transition: transform 0.5s;
    }

    .loghi:hover{
        transform: scale(1.1);
    }
    
    #partner1{
        height: 40px;
    }

    .white-card{
        border-radius: 24px;
        color: #0A0A0A;
        background-color: #FFFFFF;    
    }

    @media (min-width: 768px) {
        .white-card{
            border-radius: 24px;
            color: #0A0A0A;
            padding: 60px 110px 60px 120px;
            background-color: #FFFFFF;    
        }
    }

    .white-card h2{
        font-size: 24px;
        font-weight: 800;
        font-style: italic;
        color: #0A0A0A;
        margin: auto; /*annulla il margin-bottom di h2*/
    }

    @media (min-width: 768px) {
        .white-card h2{
            font-size: 36px;
            color: #0A0A0A;
            margin: auto; /*annulla il margin-bottom di h2*/
        }
    }
    
    .white-card h3{
        font-weight: 800;
        font-style: italic;
        font-size: 20px;
        color: #0A0A0A;
        margin-bottom: 18px;
    }

    @media (min-width: 768px) {
        .white-card h3{
            font-size: 24px;
            color: #0A0A0A;
            margin-bottom: 18px;
        }
    }

    .white-card p{
        font-size: 16px;
        color: #0A0A0A;
        margin-top: 24px;
        margin-bottom: 70px;
    }


    input{
        font-size: 18px;
        background-color: #FFFFFF;
        border: 1px solid #D5D5D2;
        border-radius: 8px;
        margin: 3px 3px 3px 0;
        padding: 4px 4px 4px 4px
    }

    @media (min-width: 768px) {
        input{
            background-color: #FFFFFF;
            border: 1px solid #D5D5D2;
            border-radius: 8px;
            margin: 6px 6px 6px 0;
            padding: 8px 8px 8px 8px
        }
    }

    .dati{
        width: 100%;
    }

    form label {
        font-size: 18px;
        color: #0A0A0A;
    }

    form input[type="text"], form input[type="email"], form input[type="tel"] {
        font-weight: bold;
    }

    .privacy{
        font-size: 12px;
    }

    .privacy a{
        text-decoration: underline;
        color: #031FD6;
    }

    .footer{
        color: #707070;
    }

    .footer a{
        font-size: 18px;
        text-decoration: underline;
        color: #707070;
    }

    .contatti-footer{
        font-size: 18px;
        color: #707070;
    }

    .social{
        height: 40px;
        width: 40px;
        border-radius: 20px; 
        margin-right: 30px;
    }

    .legal {
        font-size: 14px;
        text-align: center;
        padding: 15px 0;
    }

    @media (min-width: 576px) {
        .social{
            height: 48px;
            width: 48px;
            border-radius: 24px; 
            margin-right: 30px;
        }
    }

    .turn{
        position: absolute;
        background: #C7D30E url(img/arrow.png) no-repeat center;
        height: 48px;
        width: 48px;
        background-size: 24px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    .turn .arrow{
        height: 20px;
        margin-left: 10px;
    }

    /* -----------card che possono essere girate-------------*/
    .card-container{
        position: relative;
        width: 275px;
        height: 300px;
        perspective: 800px;
        -ms-perspective: 800px;
        border-radius: 16px;
        margin: 10px 10px 10px 10px;
        cursor: pointer;
        text-overflow: ellipsis;
    }

    @media (min-width: 576px) {
        .card-container{
            position: relative;
            width: 375px;
            height: 375px;
            perspective: 800px;
            -ms-perspective: 800px;
            border-radius: 16px;
            margin: 15px 15px 15px 15px;
            cursor: pointer;
            text-overflow: ellipsis;
        }
    }

    .card{
        width: 100%;
        height: 100%;
        position: absolute;
        transform-style: preserve-3d;
        cursor: pointer;
        transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        border: none;
    }

    .card-container div{
        position: absolute;
        backface-visibility: hidden;
        border-radius: 24px;
    }
    
    .front{
        line-height: 1.1;
        color: #F6F4F2; 
        background-color: #171717;
        font-size: 26px;
        font-style: italic;
        height: 60px;
        border-radius: 24px;
        border: solid #707070 1px;
        height: 100%;
        width: 100%;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        padding: 20px 15px 20px 15px;
    }

    @media (min-width: 576px) {
        .front{
            color: #F6F4F2; 
            background-color: #171717;
            font-size: 32px;
            height: 80px;
            border-radius: 24px;
            border: solid #707070 1px;
            height: 100%;
            width: 100%;
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
            padding: 35px 30px 35px 30px;
        }
    }

    .back{
        color: #F6F4F2; 
        background-color: #171717;
        font-size: 14px;
        border-radius: 24px;
        border: solid #707070 1px;
        height: 100%;
        width: 100%;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        padding: 20px 15px 20px 15px;
        transform: rotateY(180deg);
    }

    .back li{
        margin-left: -25px;
    }

    @media (min-width: 576px) {
        .back{
            color: #F6F4F2; 
            background-color: #171717;
            font-size: 18px;
            border-radius: 24px;
            border: solid #707070 1px;
            height: 100%;
            width: 100%;
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
            padding: 30px 25px 30px 25px;
            transform: rotateY(180deg);
        }
    }

    .card.flipped{
        transform: rotateY(180deg);
    }

    .card-img{
        position: absolute;
        left: 0;
        bottom: 0;
        height: 70%;
        width: auto;
        max-width: 100%;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }


    .finanza{
        background-image: url(img-cards/finanza.svg);
        background-size: 325px;
    }

    @media (min-width: 576px) {
        .finanza{
            background-image: url(img-cards/finanza.svg);
            background-size: 385px;
        }
    }
    
    .consulenza{
        position: relative;
        left: -15px;
        bottom: 2px;
        width: 273px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    @media (min-width: 576px) {
        .consulenza{
            position: relative;
            left: -30px;
            bottom: 0;
            width: 325px;
            border-bottom-left-radius: 24px;
            border-bottom-right-radius: 24px;
        }
    }