/* GRAVITY FORMS */

:focus {
    outline: none !important;
}

select:focus,
input[type="file"]:focus,
input[type="radio"]:focus {
    outline: none !important;
}

.gform_wrapper .gform_body {
    width: 100%!important;
}

#gform_wrapper_1 {
    margin: 0!important;
}

.gform_confirmation_message {
    color: #191a1d;
    line-height: 20px!important;
    font-size: 20px;
}

.gfield_label {
    margin: 0!important;
    padding: 0!important;
    font-size: 14px!important;
    font-weight: 500!important;
    color: #333 !important;
}

.gform_body input[type="text"],
.gform_body input[type="email"],
.gform_body textarea {
    padding-left: 5px!important;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    height: 50px !important;
    line-height: 30px;
    font-size: 20px;
    border: none;
    border-radius: 0;
}

.gform_body input[type="radio"] {
    width: 30px!important;
    height: 30px!important;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    margin: 2px 2px 5px 4px;
}

.gform_body input[type="radio"]:checked {
    top: 0!important;
    height: 30px!important;
    width: 30px!important;
    padding: 1px 0 0 1px;
}

.gform_wrapper .button {
    display: inline-block !important;
    width: auto !important;
    padding: 10px 20px !important;
    border: none;
    font-size: 18px!important;
    margin: 0 0 20px 0 !important;
    background: #ffed0f !important;
    color: #333 !important;
    height: auto !important;
    line-height: 18px !important;
    min-height: 0 !important;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border: none;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    transition: all 400ms;
    -moz-transition: all 400ms;
    -webkit-transition: all 400ms;
}

@media(min-width:385px) {
   .gform_wrapper .button + .button {
        margin-left: 20px !important;
    } 
}


.gform_wrapper .button:hover {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

.chosen-single {
    border: none !important;
    padding-left: 4px !important;
    background: white !important;
    color: #333 !important;
    height: 35px !important;
    line-height: 38px !important;
    box-shadow: none !important;
    border-radius: 3px !important;
}

.chosen-container a div {
    padding-top: 6px;
    width: 28px !important;
}

.chosen-single > div > b {
    position: absolute !important;
    top: 15% !important;
    background: none !important;
}

.gfield_select {
    background: transparent !important;
    box-shadow: none;
    padding-left: 5px!important;
    background-color: #fff;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    height: 50px !important;
    line-height: 30px !important;
    font-size: 20px !important;
    margin: 0 !important;
    border: none !important;
}

.ginput_container_select {
    background: white;
    position: relative;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.ginput_container_select:after {
    content: "\f13a" !important;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    position: absolute;
    right: 5px;
    top: 50%;
    font-size: 25px;
    line-height: 0;
    color: #0bca00
}

.textarea.large {
    height: 170px !important;
}

.gfield_error .chosen-container-single {
    border: none !important;
}

.validation_message {
    color: #bf151d!important;
    font-weight: 400!important;
    letter-spacing: normal!important;
    font-size: 14px!important;
    line-height: 20px!important;
    margin: -20px 0 0 2px!important;
    padding: 0 6px 0 0!important;
    width: 100%!important;
    text-align: left;
}

.gfield_error .chosen-container {
    border: none!important;
}

.validation_error {
    display: none!important;
}

.gfield_error {
    background-color: rgba(0, 0, 0, 0)!important;
    border-top: none!important;
    border-bottom: none!important;
}

.gform_body .ginput_container {
    margin-bottom: 20px !important;
}

.gfield_error .gfield_label {
    color: #191a1d!important;
}

.gform_page_footer {
    width: 100%!important;
    margin: 10px auto 0 auto !important;
    padding: 0!important;
    border-top: none!important;
    text-align: center;
}

.gform_wrapper .gform_footer {
    padding-top: 0!important;
    margin-top: 20px !important;
    text-align: center;
}

.ginput_container,
.gform_body li {
    margin: 0!important;
}

li.gfield.gfield_error {
    margin: 0 0 3px!important;
}

.gform_wrapper ul.gfield_radio {
    margin: 0!important;
}

.gform_wrapper .gfield_time_hour i {
    width: 20px;
    margin-top: 30%;
    font-size: 30px;
}

#input_1_12_1,
#input_1_12_1 {
    text-align: center;
}

.gform_wrapper .top_label .gfield_label {
    color: #333;
}

.gform_body .ginput_container.ginput_complex {
    margin-bottom: 20px !important;
}

/* steps */


.gf_page_steps {
    text-align: center;
    border-color: white !important;
    color: #4c6054 !important;
}

@media(max-width: 980px) {
    .gf_page_steps {
        display: none !important;
    }
}

.gf_step_number {
    background: #ff9900;
    border-radius: 50%;
    height: 25px;
    padding: 5px;
    width: 25px;
    text-align: center;
    line-height: 17px;
    color: white;
}

.gform_wrapper .field_sublabel_hidden_label .ginput_complex.ginput_container input[type=text],
.gform_wrapper .field_sublabel_hidden_label .ginput_complex.ginput_container select {
    margin-bottom: 0 !important;
}

.gform_wrapper li.hidden_label input {
    margin-top: 0 !important;
}


/* checkboxes & radio */

.checkboxer {
    display: inline-block;
}

.checkboxer>.gfield_label,
.radioz>.gfield_label {
    display: inline-block !important;
    padding-left: 15px !important;
    width: calc(100% - 30px) !important;
    float: right;
}

.checkboxer .gfield_checkbox label {
    width: 0 !important;
}

.checkboxer input[type="checkbox"],
.checkboxer .ginput_container_checkbox,
.radioz input[type="radio"],
.radioz .ginput_container_radio {
    width: 30px !important;
}

.gfield_checkbox,
.gfield_checkbox li,
.ginput_container_checkbox,
.gfield_radio,
.gfield_radio li,
.ginput_container_radio {
    width: auto !important;
    display: inline-block;
    margin: 0 !important;
}

.gfield_checkbox li {
    height: 35px !important;
}

.gfield_checkbox li label {
    width: 30px !important;
    height: 30px !important;
}

.gfield_radio li label,
.gfield_checkbox li label {
    height: 30px !important;
    color: #333 !important;
    width: auto !important;
    margin-left: 60px !important;
    background: white;
}

.gfield_checkbox li label:before,
.gfield_radio li label:before {
    content: "";
    font-family: Fontawesome;
    display: block;
    position: absolute;
    z-index: 1;
    -webkit-transition: all 100ms;
    transition: all 100ms;
    width: 30px !important;
    height: 30px !important;
    color: #5cb85c;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    left: 0;
    background: white;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"] {
    opacity: 0;
    outline: none;
    z-index: 100;
    width: 30px !important;
    height: 30px !important;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    border: 1px solid #333;
}

.gform_wrapper input[type="checkbox"] + label,
.gform_wrapper input[type="radio"] + label {
    cursor: pointer;
    color: white;
}

.gform_wrapper input[type="checkbox"]:checked + label:before,
.gform_wrapper input[type="radio"]:checked + label:before {
    content: "\f00c";
    font-family: Fontawesome;
    display: block;
    position: absolute;
    z-index: 1;
    -webkit-transition: all 100ms;
    transition: all 100ms;
    width: 30px !important;
    height: 30px !important;
    font-size: 35px;
    font-weight: 100;
    padding-left: 3px;
    line-height: 25px;
}


/* datepicker fix */

.ui-datepicker-month,
.ui-datepicker-year {
    width: 90%;
}


/*spinner hide */

img.gform_ajax_spinner {
    display: none!important;
}


/* form contatti */

#field_1_2.gfield_error,
#field_1_3.gfield_error {
    padding-right: 13px !important;
}

.li.gchoice_1_6_1 {
    width: auto;
}

.gform_wrapper .top_label li ul.gfield_radio {
    width: calc(100% + 26px);
}


/* add remove checkbox */

.add-remove-check li label {
    width: auto !important;
    transition: all 400ms;
    -webkit-transition: all 400ms;
    -moz-transition: all 400ms;
    height: 33px !important;
    background: none !important;
    margin: 0 !important;
}

.add-remove-check li label:before {
    content: "Aggiungi infisso";
    font-family: 'Tahoma';
    width: auto !important;
    padding: 5px 10px;
    font-size: 15px !important;
    position: relative;
    left: 0;
    line-height: 17px;
    color: #333;
    background: #ffed0f;
    border: none;
    font-weight: 300;
    display: inline-block;
    white-space: nowrap;
}

.add-remove-check input[type="checkbox"] {
    width: auto !important;
}

.add-remove-check input[type="checkbox"]:checked + label:before {
    content: "Rimuovi infisso";
    font-family: 'Tahoma';
    width: auto !important;
    background: #f2a695;
    padding: 5px 10px;
    font-size: 15px !important;
    position: relative;
    left: 0;
    line-height: 17px;
    color: #333;
    border: none;
    font-weight: 300;
    display: inline-block;
    white-space: nowrap;
}


/* form callabck */

#gform_submit_button_3,
#gform_wrapper_3 {
    margin-bottom: 0 !important;
}


/* HEADER FORM */

#gform_wrapper_2 {
    background: rgba(240, 240, 240, 0.7);
    border-radius: 5px;
    border: 1px solid #333;
}

#gform_2 .gform_body {
    padding: 10px;
}

#gform_2 .gform_body input[type="text"],
#gform_2 .gform_body input[type="email"],
#gform_2 .gform_body textarea,
#gform_2 .gfield_select,
#gform_4 .gform_body input[type="text"],
#gform_4 .gform_body input[type="email"],
#gform_4 .gform_body textarea,
#gform_4 .gfield_select {
    height: 35px !important;
    font-size: 14px;
}

#gform_2 h4 {
    margin-bottom: 0;
}

#gform_2 .gform_footer {
    margin-top: 0 !important;
}


/* form preventivi inline */

.gform_page_fields {
    display: inline-block;
    padding: 10px !important;
    /*background: rgba(255, 255, 255, 0.5);*/
    width: 100%;
}

ul.gfield_radio {
    width: 100% !important;
}

#gform_4 .gf_right_third {
    max-width: 130px !important;
}

#gform_4 li:not(.gfield_checkbox li):not(.gfield_radio li) {
    padding-right: 16px !important;
}

#gform_4 .ginput_container_checkbox {
    float: left;
    margin-bottom: 0 !important;
}

#gform_4 .instruction {
    display: none;
}

#gform_4 .gsection {
    margin-bottom: 10px !important;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
}

#gform_4 .gsection_title {
    line-height: 25px !important;
}

.gfield.field_sublabel_below {
    line-height: 30px
}

.ginput_complex {
    width: 100% !important;
}

.ginput_complex span {
    padding-top: 0 !important;
}

.ginput_complex .ginput_full,
ginput_complex.gf_name_has_2 {
    margin-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.gf_name_has_2>span:last-child {
    padding-right: 0 !important;
}

#gform_page_4_1 .gfieldset.halfset-1,
#gform_page_4_1 .gfieldset.halfset-2 {
    position: relative;
    overflow: visible;
    padding-right: 10px;
}

.gfieldset.halfset-1>ul>li>label {
    display: inline-block;
    width: 100%;
    background: white;
    padding: 10px 0 10px 5px !important;
}

.gfieldset.halfset-2>ul>li>label,
.gfieldset.halfset-1>ul>li>label {
    display: inline-block;
    width: 100%;
    background: white;
    padding: 10px 0 10px 24px !important;
}

#gform_page_4_2 .gfieldset.halfset-1,
#gform_page_4_2 .gfieldset.halfset-2 {
    height: 165px;
    text-align: center;
    position: relative;
    overflow: hidden;
    overflow: visible;
}

#gform_page_4_2 .gfieldset.halfset-2 {
    padding-top: 20px; 
}

.gfieldset-legend {
    display: none !important;
}

#gform_4 .checkboxer .gfield_label {
    float: right !important;
    line-height: 18px;
}

#gform_4 .ginput_container_radio {
    margin-bottom: 5px !important;
    width: 100% !important;
}

#gform_4 .add-remove-check {
    margin-top: 0 !important;
    display: inline-block;
    margin-bottom: -14px!important;
}

.gf-group-half {
    width: 50%;
    float: left;
}

.gf-group-third {
    width: 33%;
    float: left;
    padding: 5px;
}

.gf-group-mini,
.gfield_error.gf-group-mini {
    width: 33% !important;
    display: inline-block;
}

#gform_4 .gfield_radio li {
    width: 50% !important;
    float: left;
}

@media (min-width: 980px) {
    /*
    #gform_page_4_1 .gfieldset.halfset-1:before {
        content: "";
        position: absolute;
        height: 70%;
        bottom: 0;
        right: 0;
        border-right: 5px solid white;
    }
    */
    .gfieldset.halfset-1,
    .gfieldset.halfset-2 {
        margin-bottom: 10px;
    }
}

@media(max-width: 979px) {
    .gf-group-half {
        width: 100%;
    }
    .gf-group-third {
        width: 50%;
    }
    .gform_wrapper .top_label .gfield_label {
        width: 100%;
    }
}

@media(max-width: 480px) {
    .gf-group-third,
    #gform_4 .gfield_radio li {
        width: 100% !important;
    }
}

#gform_4 .gfield_radio li label {
    height: auto !important;
    white-space: nowrap;
    line-height: 40px;
    margin-bottom: 10px;
    width: 70% !important;
    padding-left: 40px;
    overflow: hidden;
}

#gform_4 .gfield_radio li label:before {
    top: 10px !important;
}

gfield_radio label {
    position: relative;
}

.radio-img-ico,
.radio-img img {
    width: 45px;
    height: 45px;
    border: 3px solid #facd5a;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    margin-right: 10px;
    position: absolute;
    top: 0;
    left: 40px;
}

.radio-img-ico {
    float: left;
}

.radio-img-color {
    width: 200px;
    height: 200px;
    border: 3px solid #f2f2f2;
}

@media(max-width: 480px) {
    .radio-img-color {
        width: 125px;
        height: 125px;
    }
}

.bg-bianco {
    background: #FFF;
}

.bg-nero {
    background: #000;
}

.bg-wenge {
    background: #645452;
}

.bg-beige {
    background: #f5f5dc;
}

.bg-grigio {
    background: #e8e8e8;
}

.bg-antracite {
    background: #293133;
}

#gform_4 .gfield:not(.checkboxer) .gfield_label, .infissi-title {
    font-size: 26px !important;
    color: #FFFFFF;
    font-weight: 300 !important;
    font-family: 'Roboto';
}

#input_4_13_5 {
    max-width: 100px;
}

.rate-top {
    background: #FFF;
    text-align: center;
    padding: 20px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);
}

#gform_page_4_2 li {
    text-align: center;
}

.form-total {
    font-size: 24px;
    text-align: center;
    line-height: 26px;
    font-weight: 600;
}

.gf-rate .form-total {
    width: 40%;
    display: inline-block;
    float: left;
}

#field_4_174 {
    width: 50%;
    display: inline-block;
}

.rate-subtitle {
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
    width: 90%;
    margin: 20px auto;
    padding: 10px;
    text-transform: uppercase;
    font-size: 18px;
}

.rate-num {
    font-size: 80px;
    line-height: 80px;
}

#rate-boll {
    display: inline-block;
    width: 155px;
    line-height: 120px;
    vertical-align: text-bottom;
    float: left;
    position: relative;
    text-align: center;
    color: white;
    font-size: 28px;
    overflow: visible;
    font-weight: 600;
    max-width: 55%;
}

#rate-boll:before {
    content: "";
    position: absolute;
    background: #ff016b;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    top: -15px;
    left: 0;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

@media(max-width:980px) {
    #gform_4 .gf-rate .totale:before {
        top: 12px;
    }
}

#gform_4 .gf-rate .totale .ginput_container_text:before,
#gform_4 .gf-rate .totale input[type="text"] {
    color: white !important;
    font-size: 32px !important;
    line-height: 106px;
    text-align: center !important;
}

.gf-rate .gfield_html {
    text-align: right !important;
}

.gf-rate li:last-child {
    text-align: left !important;
    padding-left: 10px;
}

@media(min-width: 980px) {
    .halfset-1.gf-rate {
        border-right: 5px solid white;
    }
}

.gfield.totale div,
.gfield.totale input,
#gform_4 .gform_body .gfield.totale input[type="text"] {
    border: none;
    text-align: right;
    color: #333;
    font-size: 50px;
    float: none;
    position: relative;
    background: transparent;
    box-shadow: none !important;
    display: inline-block;
    font-weight: 600;
    min-height: 100px;
    vertical-align: middle;
    margin-bottom: 0 !important
}

.gfield.totale div {
    padding-left: 12px;
}

.gfield.totale .ginput_container:before {
    content: "\f153";
    font-family: Fontawesome;
    position: absolute;
    left: 5px;
    vertical-align: middle;
    line-height: 112px;
    font-weight: 300;
}

#gform_4 .gform_body .rate-top .gfield.totale input[type="text"] {
    text-align: center;
}

#gform_4 .gf-rate .totale input[type="text"] {
    width: 150px !important;
}

.rate-top .gfield.totale .ginput_container:before {
    left: -10px;
}

.gform_wrapper ul.gform_fields li.gfield {
    padding-right: 0 !important;
}

.ginput_container:not(.ginput_container_radio):not(.ginput_container_checkbox):not(.ginput_container_select){
    padding-right: 15px !important;
}

.ginput_container.ginput_container_select {
    padding-right: 0 !important;
}

.gfield_contains_required >.gfield_label span {
    display: none;
}

@media(min-width: 580px) {
    .gform_previous_button {
        float: left;
    }
    .gform_next_button,#gform_submit_button_4 {
        float: right;
    }
}

@media(max-width: 980px) {
    #gform_page_4_2 .gfieldset.halfset-2 {
        margin-top: 20px;
        overflow: visible;
    }
}

@media(max-width: 580px) {
    .ginput_container.ginput_recaptcha {
        -webkit-transform:scale(0.7);
        -moz-transform:scale(0.7);
        -ms-transform:scale(0.7);
        transform:scale(0.7);
    }
    #input_4_18 {
        width: 200px;
    }
}

li.checkboxer {
    width: 100%;
    padding: 8px !important;
    background: rgba(255,255,255,0.6);
    margin-bottom: 20px !important;
}


.halfset-1.gf-rate ul.gform_fields {
    position: relative;
    transform: translateY(100%);
}
@media(max-width: 980px ) {
    .halfset-1.gf-rate ul.gform_fields {
        position: relative;
        transform: translateY(0);
    }
    #gform_page_4_2 .gfieldset.halfset-1 {
        height: auto;
    }
}

#field_4_1>.ginput_container, #field_4_3>.ginput_container, .infissi-grp {
    display: none;
}

#field_4_1>label:hover, #field_4_3>label:hover, .infissi-title:hover {
    cursor: pointer;
}

#field_4_1>label, #field_4_3>label, .infissi-title {
    margin-bottom: 30px !important;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.gform_wrapper .infissi {
    display: inline-block;
    width: 100%;
    padding-right: 10px;
}

.infissi-title, #field_4_3>.gfield_label {
    background: #FFF;
    padding: 10px 0 10px 24px !important;
    display: inline-block;
    width: 100%;
    color: #333 !important;
    line-height: 1.3;
    position: relative;
}

.gfieldset.halfset-1>ul>li>label:before, #field_4_3>.gfield_label:before, .infissi-title:before {
    font-family: Fontawesome;
    content: "\f103";
    position: absolute;
    right: 20px;
    color: darkorange;
}

.gform_wrapper h3 {
    margin: 15px auto 30px auto !important;
    text-transform: lowercase;
}

.gform_confirmation_wrapper {
    padding: 20px !important;
    line-height: 1.3;
}

.gform_confirmation_wrapper a, .gform_confirmation_wrapper a:hover {
    color: #333 !important;
}

#form-tot {
    font-size: 46px;
    line-height: 40px;
    margin-top: 15px;
    font-weight: 600;
}

@media(max-width: 480px ){
    #gform_4 .gfield_radio li label {
        width: 100% !important;
    }
}

.halfset-2.gf-rate {
    width: auto;
    display: inline-block;
    float: inherit;
}

#field_4_3 {
    padding-right: 16px !important;
}

#gform_page_4_2 .gform_page_fields {
    text-align: center;
}
