/*-- Form: general settings */
.form { width: 100%; height: 100%; }
.form h1 {margin: 0; font-weight: bold; font-size:1.7em; }
.form__fieldset { width: 100%; border: none; border-bottom: 1px solid #3333; padding: 20px 0px; }
.form__fieldset h2 { font-weight: bold; font-size:1.3em; }
.form__fieldset__title { border-left: 5px solid rgba(0, 177, 185, 1); padding-left: 10px; }
.form__input { width: 100%; height: 45px; }
.form__textarea { width: 100%; resize: none; width: 100%; margin: 10px 0; }
.form__input,
.form__textarea { padding: 10px; border-radius: 2px; border: 1px solid #9E9E9E;  transition: all 0.3s; font-weight: 100; }
.form__submit { font-size: 20px; cursor: pointer; transition: all .3s; background: rgba(0, 177, 185, 1); color: #fff; border: none; padding: 10px 20px; float: right; margin: 20px 0px; }
.form__submit:disabled{ opacity:0.7; cursor:not-allowed; }
.form__submit:not(:disabled):hover { background-color: rgba(0, 177, 185, 1); }
.error { font-size: 15px; color: red; font-weight: bold; display: block; margin: 5px 3px; }
.warning { font-size: 15px; color: orange; font-weight: bold; display: block; margin: 5px 3px; }
.ok { font-size: 15px; color: #3c763d; font-weight: bold; display: block; margin: 5px 3px; }
.groupInput { width: 100%; height: auto; margin-bottom:40px; }
.groupInput__input { display: inline-grid; width: 49.7%; }
.groupInput__input.wide{ width:100%; }
.groupInput__input--3 { width: 32.9%; }
.groupInput__input--2 { width: 24.5%; }
.flex-container { display: flex; gap: 15px; }
.grow { flex-grow: 1 }
.groupInput__input--address { width: 90%; }
.groupInput__input--civic { width: 9.4%; }

/* WYSIWYG */
.tox .tox-notification--in { opacity: 0 !important; display: none !important; visibility: hidden !important; }


small {
    font-size: 70%;
}

.mediaBox__caption h4{
	margin: 0;
}

.mediaBox__caption h2 small{
	font-size: 55%;
}

/* Form Mediabox */
.form__fieldset__mediaBox { width: 100%; height: 100px; box-shadow: 0px 0px 3px 1px lightgrey; background: #eeee; margin: 10px 0; position: relative; }
.form__fieldset__mediaBox input[type=file] { display: none; }
.mediaBox__icon { height: 100%; width: auto; float: left; padding: 30px; border-right: 1px solid #fff; transition: all 0.2s;font-size: 35px;width:105px; }
.mediaBox__icon img { height: 100%; width: auto; cursor: pointer; }
.mediaBox__icon:hover { width: 105px;height: 100px;font-size: 52px;padding: 20px; }
.mediaBox__caption { width: auto;height: 100%;padding: 15px;line-height: 150%;float: left; }
.mediaBox__preview { width: 200px; height: 100%; position: absolute; right: 10px; text-align: right; overflow: hidden; display: none; }
.mediaBox__preview img { width: auto; height: 100%; }
.mediaBox__preview video { width: 100%; height: 100%; }
.mediaBox__preview .deleteMedia { color: red; font-weight: bolder; position: absolute; right: 0; background: #fff; padding: 5px; font-size: 15px; cursor: pointer; z-index: 100; }

/*
 * Toggle (https://www.w3schools.com/howto/howto_css_switch.asp)
 */
.switch{
	position:relative;
	display:inline-block;
	width:60px;
	height:34px;
}

.switch input{
	opacity:0;
	width:0;
	height:0;
}

.slider{
	position:absolute;
	cursor:pointer;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background-color:#ccc;
	-webkit-transition:.4s;
	transition:.4s;
}

.slider:before{
	position:absolute;
	content:"";
	height:26px;
	width:26px;
	left:4px;
	bottom:4px;
	background-color:white;
	-webkit-transition:.4s;
	transition:.4s;
}

input:checked + .slider{ background-color:#2196F3; }
input:focus + .slider{ box-shadow:0 0 1px #2196F3; }

input:checked + .slider:before{
	-webkit-transform:translateX(26px);
	-ms-transform:translateX(26px);
	transform:translateX(26px);
}

.slider.round{ border-radius:34px; }
.slider.round:before{ border-radius:50%; }
/*
 * END: Toggle (https://www.w3schools.com/howto/howto_css_switch.asp)
 */

/*
 * Foto profilo
 */
#cont-foto-profilo{
	width:100%;
	max-width:200px;
}

#foto-profilo{
	width:100%;
	padding-bottom:100%;
	border-radius:25px;
	background-size:cover;
	background-repeat:no-repeat;
	background-position:center;
	display:none;
	margin-bottom:10px;
	position:relative;
}

#foto-profilo.has-image{ display:block; }

#elimina-foto-profilo{
	position:absolute;
	top:10px;
	right:10px;
	text-decoration:none;
}

#cont-file-foto-profilo{ display:none; }

#pulsante-foto-profilo{
	display:block;
	width:100%;
	float:none;
	margin:0;
}
/*
 * END foto profilo
 */

/*-- Tablet --*/
@media (max-width: 998px) {
	.form__fieldset__mediaBox { width: 100%; }
	.groupInput__input--civic { width: 9.4%; }
}

/*-- Smartphone --*/
@media (max-width: 768px) {

	/*-- Form: general settings --*/
	.form {width: 100%; height: 100%; padding: 0px;}
	.form h1 {font-size: 1.7em;}
	.groupInput__input { width: 49.3%; }
	.groupInput__input--3 { width: 32.4%; }
	.groupInput__input--address { width: 70% }
	.groupInput__input--civic { width: 28.5%; }
	.error { font-size: 13px; }

	/* Form Mediabox */
	.form__fieldset__mediaBox {width: 100%; height: auto;}
	.mediaBox__icon, .mediaBox__icon:hover{ width:20%; height:auto; }
	.mediaBox__caption{ width: 80%; height: auto;}
	.mediaBox__icon {padding: 20px; border: none;}
	.mediaBox__icon:hover {padding: 20px;}
	.mediaBox__caption {padding: 4px 20px;}
	.mediaBox__caption small {font-size: 12px;}
	.mediaBox__preview { position:relative; width:80%; margin-left:20%; }
	.mediaBox__preview img{ max-width:100%; height:auto; }

}
