:root {
    --primary-color: #00bbe7;
}

@media all{
	
	
	
	
	
	
	
	/* RESET INPUT */
	input[type=text],
	input[type=password],
	input[type=number],
	input[type=email],
	input[type=tel],
	input[type=file],
	input[type=date],
	textarea,
	button,
	select{
		padding: 15px 20px;
		margin: 0;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 16px;
		font-weight: normal;
		border: 1px solid #bbb;
		color:#000000;
		background-color: #fff;
		transition: 0.2s ease all;
		-webkit-appearance: none; /* serve per resettare gli attributi nativi */
	}
	select{
		background-image: url(/res/img/select.png);
		background-repeat: no-repeat;
		background-position: right 24px center;
		background-size: 13px;
	}
	
    /* HOWER */
	input[type=text]:hover,
	input[type=password]:hover,
	input[type=number]:hover,
	input[type=email]:hover,
	input[type=tel]:hover,
	input[type=file]:hover,
	input[type=date]:hover,
	input[type=button]:hover,
	button:hover,
	textarea:hover,
	select:hover{
		border: 1px solid #777;
	}


	
	/* FOCUS */
	input[type=text]:focus,
	input[type=password]:focus,
	input[type=number]:focus,
	input[type=email]:focus,
	input[type=tel]:focus,
	input[type=file]:focus,
	input[type=date]:focus,
	input[type=button]:focus,
	button:focus,
	textarea:focus,
	select:focus {
		/*outline: none;
		border: 1px solid #f00;*/
		box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
        border: 1px solid var(--primary-color);
	}
	
    .input-wrap {
        position: relative;
        width: 100%;
        padding: 0;
		margin: 0 0 15px 0;
    }

	
    .input-wrap .floating-label {
        position: absolute;
		top: 7px;
        left: 10px;
        padding: 10px 10px;
		width: calc(100% - 70px); /* padding + left  + eventuale img per select*/
		font-family: Arial, Helvetica, sans-serif;
		font-size: 16px;
		font-weight: normal;
        pointer-events: none;
        opacity: 1;
		line-height: 1em;
        transition: 0.2s ease all;
        background: #fff;
		color: #555;
    }
	.input-wrap input:focus ~ .floating-label,
    .input-wrap input:not([value='']) ~ .floating-label,
    .input-wrap select:focus ~ .floating-label,
    .input-wrap select:not([data-x='']) ~ .floating-label,
    .input-wrap textarea:focus ~ .floating-label,
    .input-wrap textarea:not([data-x='']) ~ .floating-label {
        top: -6px;
        left: 15px;
        font-size: 12px;
        padding: 0px 6px;
        width: auto;
		opacity: 1;
    }
	.floating-label.labelforzata{ /* mi serve per via delle igniezioni di dati con il java */
        top: -6px;
        left: 15px;
        font-size: 12px;
        padding: 0px 6px;
        opacity: 1;
	}	
	.floating-label.errordefcss{
		color: #f00;
	}
	
	/* DEFINIZIONE DEL CONTORNO DI CAMPI DEL FORM */
	.input-wrap input[type=text]:not([value='']){
        border: 1px solid var(--primary-color);
    }
	.input-wrap input[type=password]:not([value='']){
        border: 1px solid var(--primary-color);
    }
	.input-wrap input[type=number]:not([value='']){
        border: 1px solid var(--primary-color);
    }
	.input-wrap textarea:not([data-x='']){
        border: 1px solid var(--primary-color);
    }
	.input-wrap select:not([data-x='']){
        border: 1px solid var(--primary-color);
    }
	/*.input-wrap .inputtextconpuls {
        width: calc(100% - 152px);
	}*/
	
	/* ?????????? */
    /*.input-wrap .link {
        color: #1264fc;
        text-decoration: none;
        font-weight:600;
    }
    .input-wrap .button {
        padding: 12px 20px;
        color: #fff;
        width: 100%;
        border-radius: 3px;
        border: 1px solid #C1C1C1;
        margin: 1px;
    }
    .input-wrap .default {
        background: #448AFC;
    }
    .input-wrap .default:hover {
        background: #1264fc;
        cursor: pointer;
    }*/
	
	
	/* CLASSE TEXT GENERALE */
    .input-wrap .text {
        width: calc(100% - 42px);
        border-radius: 3px;
    }
    .input-wrap .text:focus {
        border: 1px solid var(--primary-color);
    }
	.text.inputtextconpuls{ /* usato ad esempio nella pagina di impostazioni account per non andare a capo con il pulsante */
		width: calc(100% - 166px); /*dato dal paggind + lo spazio del pulsante + lo spazio tra input e pulsante, mediamente 110px*/
		max-width: 520px;
        margin-right: 10px;
	}
	
	
	/* SELECT */
    .input-wrap .select {
        width: 100%;
		border-radius: 3px;
    }
    .input-wrap .select:focus {
        border: 1px solid var(--primary-color);
    }
	

	
	
	/* TEXT AREA */
    .input-wrap .textarea {
		height: 80px;
		width: calc(100% - 42px);
		border-radius: 3px;
		/*background-color: #00f;*/
    }
    .input-wrap .textarea:focus {
        border: 1px solid var(--primary-color);
    }
	
	
	
	
	

	
    /* CHECKBOX */
    .label-checkbox{
        display: block;
        position: relative;
        padding: 5px 10px 10px 35px;
        margin-bottom: 15px;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* il checkbox invisibile ma cliccabile sopra al quadrato */
    .input-wrap input[type="checkbox"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 25px;
        height: 25px;
        margin: 0;
        padding: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }

    .input-wrap .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 25px;
        width: 25px;
        background-color: #ccc;
        border-radius: 3px;
        cursor: pointer;
        z-index: 1;
    }

    /* Hover */
    .input-wrap:hover .checkmark {
        background-color: var(--primary-color);
    }

    /* Checked: input e checkmark sono fratelli adiacenti */
    .input-wrap input[type="checkbox"]:checked + .checkmark {
        background-color: var(--primary-color);
    }

    /* Focus */
    .input-wrap input[type="checkbox"]:focus + .checkmark {
        outline: none;
        border: 2px solid #005fcc;
        box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
    }

    /* Checkmark */
    .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .input-wrap input[type="checkbox"]:checked + .checkmark:after {
        display: block;
    }

    .input-wrap .checkmark:after {
        left: 9px;
        top: 5px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
    }

    .label-checkbox.errordefcss{
        color: #f00;
    }
    /* FINE CHECKBOX */

	
	
	
    /* RADIO */
    /* The container */
    .input-wrap .radio {
      display: block;
      position: relative;
      padding: 5px 10px 0px 35px;
      margin-bottom: 12px;
      line-height: 1.4em;
      cursor: pointer;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
    /* Hide the browser's default radio button */
    .input-wrap .radio input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
    }
    /* Create a custom radio button */
    .input-wrap .radio .checkmark {
        position: absolute;
        top: 0.2em; /* oppure prova con top: 5px */
        left: 0;
        height: 25px;
        width: 25px;
        background-color: #ccc;
        border-radius: 50%;
    }
    /* On mouse-over, add a grey background color */
    .input-wrap .radio:hover input ~ .checkmark {
      background-color: #2196F3;
    }
	/* per il focus */
	.input-wrap .radio input:focus ~ .checkmark {
		outline: 2px solid #005fcc;
		outline-offset: 2px;
		box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
	}
    /* When the radio button is checked, add a blue background */
    .input-wrap .radio input:checked ~ .checkmark {
      background-color: #2196F3;
    }
    /* Show the indicator (dot/circle) when checked */
    .input-wrap .radio input:checked ~ .checkmark:after {
      display: block;
    }
    /* Style the indicator (dot/circle) */
    .input-wrap .radio .checkmark:after {
		content: "";
		position: absolute;
		display: none;
        top: 9px;
        left: 9px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: white;
    }
	/* FINE RADIO */
	
	
	

	
	
	/* PULSANTI */
	.pulsinvio{
		outline: none;
		border: 1px solid #005fcc;
		/*box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);*/
        
        
        
		width: 100%;
		/*max-width: 560px;*/
        padding: 16px 20px;
		margin: 0 0 10px 0;
		border: 1px solid rgba(255, 255, 255, 0); /* serve per compensare il bordo definito nei input[type=button] che non deve avere colore per evitare ceh con l'hower il pulsante aumenti di 2px 0 */
		border-radius: 10px;
		font-size: 16px;
        font-weight: 800;
		font-family: 'Nunito Sans', sans-serif;
		text-align: center;
		cursor: pointer;
	}
	/*.minipulsante{
		padding: 5px 13px;
		margin: 5px;
		border: 0;
		border-radius: 3px;
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		cursor: pointer;
	}*/
	
	/*.pulsmodifica{
		font-size: 14px;
		padding: 16px 20px;
		font-weight: normal;
		border: 0;
		width: 110px;
		margin: 0 0 0 0;
		cursor: pointer;
		text-align: center;
		border-radius: 3px;
	}*/
	/*.pulsantemodifica{
		font-size: 17px;
		padding: 15px 20px;
		font-weight: normal;
		border: 0;
		width: 100%;
		max-width: 110px;
		margin: 0 0 0 0;
		cursor: pointer;
		text-align: center;
	}*/
	
	/*.pulsnero{
		background-color: #000;
		color: #fff;
		transition: 0.2s ease all;
	}
	.pulsnero:hover{
		background-color: #00adee;
		color: #fff;
	}*/
	.pulsazzurro{
		background-color: #38DBFF;
		color: #000;
		transition: 0.2s ease all;
	}
	.pulsazzurro:hover{
		background-color: #010624;
		color: #fff;
	}
	/*.pulsgrigio{
		background-color: #e8e8e8;
		color: #000;
		transition: 0.2s ease all;
	}
	.pulsgrigio:hover{
		background-color: #000;
		color: #fff;
	}
	.pulsarancione{
		background-color: #ff9831;
		color: #000;
		transition: 0.2s ease all;
	}
	.pulsarancione:hover{
		background-color: #000;
		color: #fff;
	}
	.pulsrosso{
		background-color: #d70000;
		color: #fff;
		transition: 0.2s ease all;
	}
	.pulsrosso:hover{
		background-color: #000;
		color: #fff;
	}
	.pulsverde{
		background-color: #00e800;
		color: #000;
		transition: 0.2s ease all;
	}
	.pulsverde:hover{
		background-color: #000;
		color: #fff;
	}
	.pulsviola{
		background-color: #ba105c;
		color: #fff;
		transition: 0.2s ease all;
	}
	.pulsviola:hover{
		background-color: #38DBFF;
		color: #000;
	}*/
	
	/* FINE NUOVI CAMPI FORM */
	
	
}

@media only screen and (min-width: 800px) {
    .floating-label {
        max-width: unset !important;
    }
}