HTML {
    height: 100%;
}
BODY {
    font-family: Arial, Helvetica, sans-serif;
    @media screen and (orientation:landscape) {
        height: 100%;
    }
/*
    height: 100%;
    background-image: url(/images/villaggio.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
*/
}

.textc { text-align: center; }

.btn-group { width: 100%; }
.btn-group .btn { width: 50%; }
.btn-group .btn-info { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.margin-error { border-color: red; }
.margin-success { border-color: green; }

.div-body {
    @media screen and (orientation:landscape) {
        height: 100%;
    }
    background-image: url(/images/villaggio.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.head {
    padding: 0;
}

.header {
    position: relative;
    height: 130px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
}
.header IMG {
    position: absolute;
    z-index: 2;
    width: 414px;
    height: auto;
    padding: 0px 0px 0px 0px;
    margin: 18px 0px 0px 20px;
}
@media (max-width:768px) {
    .header IMG {
        width: 295px;
    }
}
#nav01 {
    position: absolute;
    bottom: 0;
    clear: both;
    height: 40px;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    background: #91BF42;
}
#nav01 H6 {
    text-align: center;
    color: white;
    margin: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-transform: uppercase;
    font-size: 1.5rem;
}
#boxdati {
    padding: 0;
    padding-top: 5rem;
/*    height: calc(100% - 130px);*/
    background: rgba(255,255,255,0.55);
}
#boxdati .row {
    margin-right: 15px;
    margin-left: 15px;
}
#boxdati .contdati, #boxdati  #divsalvato {
    /*padding: 0;*/
    position: relative;
/*
    top: 50%;
    transform: translateY(-50%);
*/
}
#boxdati  #divsalvato {
	margin: 0 auto;
	width: 75%;
	text-align: center;
}

#boxdati .contdati .div-field, #boxdati .contdati .sesso {
    padding: 0;
    margin-bottom: 2rem;
}
@media (max-width:768px) {
    #boxdati .contdati .div-field, #boxdati .contdati .sesso {
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
}

.input-group-addon .etichetta {
    display: inline-block;
    min-width: 105px;
}
@media (max-width:768px) {
    /*.input-group:before {
        display: block;
		content: "";
    }*/
}

#divEmail #fieldEmail { text-transform: lowercase; }
#divResidenza #fieldProvincia { text-transform: uppercase; }
@media (max-width:768px) {
	#divResidenza .labelCap { display: none; }
	#divResidenza .labelProvincia { display: none; }
	#divResidenza #fieldCap { padding: 6px 2px; width: 50px; }
	#divResidenza #fieldProvincia { padding: 6px 2px; width: 50px; }
	#divResidenza .input-group-addon:not(:first-child) { padding: 6px; }
}

.well {
	padding: 5px 10px;
	margin-bottom: 10px;
}
.well p {
	border: 1px solid black;
	border-radius: 3px;
	padding: 2px;
	margin: 5px;
}
.well.codfiscale { height: 46px; }
@media (max-width:768px) { .well.codfiscale { height: 92px; } }

/*#divCodFiscale { height: 46px; }*/
#divCodFiscale span {
	display: inline-block;
    float: left;
    height: 34px;
    line-height: 34px;
}
#divCodFiscale .form-control {
	float: left;
	width: 200px;
	margin: 0 10px;
    text-align: center;
    /*background-color: white;*/
}

.firma { text-align: center; }
.firma > #sig > iframe { display: none; }
.firma > .kbw-signature { width: 100%; height: 200px; }

#divSalva {
    text-align: center;
}




@media screen and (width:1024px) and (height:768px) {
    HTML {
        height: auto;
    }
    #boxdati {
        height: auto;
        margin-bottom: 50rem;
    }
    #boxdati .contdati {
        top: auto;
        transform: none;
        margin-top: 2rem;
    }
}


@media screen and (min-width:1360px) and (max-width:1370px) and (orientation:landscape) {
/* and (min-height:750px) and (max-height:780px)*/
	.head {
		width: 100%;
	}
	#nav01 H6 {
		text-align: left;
		padding-left: 4rem;
		font-size: 16px;
		font-weight: bold;
	}
	#boxdati {
		padding-top: 1rem;
	}
	.firma { text-align: left; }
	.firma span, .firma button { vertical-align: top; }
	.firma > #sig > iframe { display: none; }
	.firma > .kbw-signature { width: 85%; height: 100px; }
	/*.firma > .kbw-signature > canvas { width: 1000px !important; height: 150px; }*/
}


/*
@media screen and (max-width:768px) and (orientation:landscape) {
    HTML {
        height: auto;
    }
    #boxdati .contdati {
        top: auto;
        transform: none;
        margin-top: 2rem;
    }
}

@media screen and (width:1024px) and (height:768px) {
    HTML {
        height: auto;
    }
    #boxdati {
        height: auto;
        margin-bottom: 50rem;
    }
    #boxdati .contdati {
        top: auto;
        transform: none;
        margin-top: 2rem;
    }
}

@media screen and (min-width:1024px) and (max-height:768px) and (orientation:landscape) {
    HTML {
        height: auto;
    }
    #boxdati {
        height: auto;
        margin-bottom: 50rem;
    }
    #boxdati .contdati {
        top: auto;
        transform: none;
        margin-top: 2rem;
    }
}
*/