li {
    list-style: none;
}

/* General
==================================== */
*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}




input,
textarea {
    font: 1em/1.5 'PT Sans', sans-serif;
    -webkit-appearance: none;
}


.col-100 {
    width: 100%;
}

.col-60 {
    width: 60%;
    float: left;
}

.col-40 {
    width: 40%;
    float: right;
}

.form-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;

}

.col-50 {
    width: 50%;
    float: left;
}

@media only screen and (max-width:960px) {
    .col-100 {
        width: 100%;
    }

    .col-60 {
        width: 100%;
        float: left;
    }

    .col-40 {
        width: 100%;
        float: right;
    }

    .col-50 {
        width: 100%;
        float: left;
    }
}


/* Form
==================================== */

.form ul.fields {
    margin-bottom: 1em;
}

.form ul.fields li {
    padding-top: 20px;
    /*important for label positioning*/
    display: inline;
    float: left;
    width: 32%;
    margin: 5px .5%;

    position: relative;
}

@media only screen and (max-width: 960px) {
    .form ul.fields li {
        padding-top: 18px;
        /*important for label positioning*/
        display: block;
        width: 100%;
        margin: 0;
        position: relative;
    }
}

.form li:first-child {
    /*    border-top: 0;*/
}

.form li:last-child {
    /*    border-bottom: 1px solid #ccc;*/
}

/* Form Elements
==================================== */

.float-label,
.fields input,
textarea {
    display: block;
    border: 0;
    -webkit-appearance: none;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    border: 1px solid rgb(190, 190, 190);
    background-color: rgb(240, 240, 240);
    border-radius: .5rem;
}

.fields input {
    height: 40px;
    width: 100%;
    /*    height: 100%;*/
    padding: 1em 1em;
    outline: 0;
}

.fields input:focus {
    border-color: dodgerblue;
}


.float-label {
    font-size: .8125em;
    /* 13/16 */
    position: absolute;
    top: .3rem;
    left: 1.23em;
    color: dodgerblue;
    opacity: 1;

    -webkit-transition: .333s ease top, .333s ease opacity;
    transition: .333s ease top, .333s ease opacity;
}

legend {
    padding-top: 1.3rem;
    font-size: 1.2rem;
    color: rgb(60, 60, 60);
    margin: 1rem 0;
    text-align: center;
}

/* Form Elements Submit Button
==================================== */


input[type="submit"] {
    display: block;
    text-transform: uppercase;
    margin: 0 auto;
    background: orange;
    margin-bottom: 1em;
    color: white;
    border-radius: 2rem;
    padding: .75em 3rem;
    width: 16rem;
    -webkit-appearance: none;
    /* remove default browser <button> styling */
    -webkit-transition: .2s ease -webkit-transform;
    transition: .2s ease transform;
}

input[type="submit"]:hover {
    -webkit-transform: scale(1.025);
    transform: scale(1.025);
    cursor: pointer;
}

input[type="submit"]:active {
    -webkit-transform: scale(.975);
    transform: scale(.975);
}








/* Form Elements javascript classes
==================================== */


.js-hide-label .float-label {
    /*    opacity: 0;*/
    opacity: 0;
    /*    top: 1.5em*/
    top: .6rem;
}


.js-unhighlight-label .float-label {
    color: #999
}






/* Custom Radio Buttons
==================================== */
/* CUSTOM RADIO BUTTON */

/*   RADIO BUTTONS   */
/*   RADIO BUTTONS   */
/*   RADIO BUTTONS   */
/*   RADIO BUTTONS   */

fieldset {
    width: 100%;
    border: none;
    position: relative;
    margin: .5rem 0;
    padding-top: .5rem;
}

.privacy-wrapper {
    padding: .2rem;
    margin-bottom: .4rem;
    border-radius: .2rem;
}

.privacy-wrapper hr {
    margin: .5rem 0;
}

.privacy-wrapper p {
    font-size: .7rem;
    color: rgb(120, 120, 120);
}


.round {
    position: relative;
}


.privacy-wrapper div:nth-child(2) {
    margin: 0;
}

.privacy-wrapper div:nth-child(3) {
    margin: 0;
}


.round label {
    position: absolute;
    top: .5rem;
    left: 1rem;
    display: inline-block;
    font-size: .7rem;
    cursor: pointer;
    width: auto;
    padding-left: 30px;
    color: rgb(60, 60, 60);
}



.round label:before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 1rem;
    height: 1rem;
    border: 2px solid #979797;
    background-color: #D4D4D4;
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: .15s;
    transition: .15s;

    border: 1px solid rgb(160, 160, 160);
    background-color: rgb(240, 240, 240);
}


.round label:after {
    position: absolute;
    content: "";
    top: -.15rem;
    left: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #fff;

    opacity: 0;


    -webkit-transform: scale(.1);
    transform: scale(.1);

    -webkit-transition: .25s;
    transition: .25s;
}

.round input[type="radio"] {
    visibility: hidden;
}

.round input[type="radio"]:checked + label {
    color: rgb(20, 20, 20);
}

.round input[type="radio"]:checked + label:before {
    background-color: dodgerblue;
    border-color: #24AD61;
}

.round input[type="radio"]:checked + label:after {
    -webkit-transform: scale(.4);
    transform: scale(.4);
    opacity: 1;
}

@media only screen and (max-width:960px) {
    .round {
        padding: 1rem 0;
    }

    .round label {
        top: 1.6rem;
        font-size: .9rem;
    }

    .round label:before {
        top: -2px;
    }

    .round label:after {
        top: -.12rem;
    }

}






/* Custom Checkboxes
==================================== */

ul.checkboxes {
    text-align: center;
    border-bottom: 1px solid rgb(190, 190, 190);
    padding-bottom: 1rem;
}


.checkboxes li {
    display: inline-block;
    /*    position: relative;*/


    color: rgb(235, 100, 0);

    border-radius: 1rem;
    overflow: hidden;
    margin: .35rem .2rem;
}

.checkboxes input[type="checkbox"] {
    visibility: hidden;
}

.checkboxes label {

    font-size: 1.25rem;

    border: 1px solid rgb(235, 130, 0);
    background-color: rgba(235, 130, 0, .2);
    padding: .5rem 1.7rem;
    border-radius: 2rem;
    margin-left: -1rem;
    cursor: pointer;

    transition: .2s;
}

/*
.checkboxes label:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    padding-top: 100%;
    border-radius: 50%;
    background-color: rgba(236, 140, 60, .5);
    -webkit-transition: .15s;
    transition: .15s;
    z-index: 1;
}
*/

.checkboxes input[type="checkbox"]:checked + label {
    color: #fff;
    background-color: dodgerblue;
    border: 1px solid rgb(35, 80, 200);
}

/*

.checkboxes input[type="checkbox"]:checked + label:before {

    background-color: rgba(236, 140, 60, .5);
    transform: translate(-50%, -50%) scale(1);
}

*/

















/* ERROR MESSAGE  */


form.form-template label.error {
    /*    display: none;*/
    /* importante, nasconde il campo errore */
}

span.error {
    /*    position: relative;*/
    font-size: .8rem;
    color: red;
    /*    margin-top: -1.9rem;*/
    padding-left: .5rem;
}

.privacy-wrapper span.error {}

.privacy-error {
    /*    position: relative;*/
    font-size: .8rem;
    color: red;
    /*    margin-top: -1.9rem;*/
    padding-left: .5rem;
}

#accettazione1-error.error {
    position: absolute;
    bottom: -106px;
    right: -8rem;
}

li input.error {
    border: 1px solid rgba(255, 0, 0, .4);
    background-color: rgba(255, 0, 0, .1);

}


.hidden {
    display: none;
}


/* add border to privacy wrapper  */
.red-border {
    border: 1px solid rgba(255, 0, 0, .4);
    background-color: rgba(255, 0, 0, .1);
}
