:root {
    --primary-color: #00bbe7;
}

@media all{
	/* RESET INPUT */
	input[type=text],
	input[type=password],
	input[type=number],
	input[type=email],
	input[type=tel],
	textarea,
	button,
	select{
		padding: 15px 20px;
		margin: 0;
		font-family: 'Nunito Sans', 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 far sparire i bordi tondi dal MAC */
	}
	select{
		background-image: url(/res/img/select.png);
		background-repeat: no-repeat;
		background-position:  99% 20px;
	}
	input[type=text]:hover,
	input[type=password]:hover,
	input[type=number]:hover,
	input[type=email]:hover,
	input[type=tel]:hover,
	textarea:hover,
	button:hover,
	select:hover{
		border: 1px solid #777;
	}
    .input-wrap {
        position: relative;
        width: 100%;
        padding: 0;
		margin: 0 0 15px 0;
    }
	/* LABEL ETIUCHETTA */
    .input-wrap .floating-label {
        position: absolute;
		font-size: 16px;
		top: 6px;
        left: 10px;
        padding: 12px 12px;
        pointer-events: none;
        opacity: 1;
		line-height: 1em;
        transition: top .15s ease, font-size .15s ease;
        background: #fff;
		color: #777;
        max-width: 170px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
	.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;
        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);
    }
	
	
	
    /* RADIO */
    /* The container */
    .radio {
      display: block;
      position: relative;
      padding: 5px 10px 0px 35px;
      margin-bottom: 12px;
      cursor: pointer;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
    /* Hide the browser's default radio button */
    .radio input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
    }
    /* Create a custom radio button */
    .radio .checkmark {
      position: absolute;
      top: 0;
      left: 0;
      height: 25px;
      width: 25px;
      background-color: #ccc;
      border-radius: 50%;
    }
    /* On mouse-over, add a grey background color */
    .radio:hover input ~ .checkmark {
      background-color: #2196F3;
    }
    /* When the radio button is checked, add a blue background */
    .radio input:checked ~ .checkmark {
      background-color: #2196F3;
    }
    /* Show the indicator (dot/circle) when checked */
    .radio input:checked ~ .checkmark:after {
      display: block;
    }
    /* Style the indicator (dot/circle) */
    .radio .checkmark:after {
        top: 9px;
        left: 9px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: white;
    }
	/* FINE RADIO */
	
	
	
	
    /* CHECKBOX */
    .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;
    }
    /* Hide the browser's default checkbox */
    .checkbox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }
    /* Create a custom checkbox */
    .checkmark {
      position: absolute;
      top: 0;
      left: 0;
      height: 25px;
      width: 25px;
      background-color: #ccc;
      border-radius: 3px;
    }
    /* On mouse-over, add a grey background color */
    .checkbox:hover input ~ .checkmark {
      background-color: var(--primary-color);
    }
    /* When the checkbox is checked, add a blue background */
    .checkbox input:checked ~ .checkmark {
      background-color: var(--primary-color);
    }
    /* Create the checkmark/indicator (hidden when not checked) */
    .checkmark:after {
      content: "";
      position: absolute;
      display: none;
    }
    /* Show the checkmark when checked */
    .checkbox input:checked ~ .checkmark:after {
      display: block;
    }
    /* Style the checkmark/indicator */
    .checkbox .checkmark:after {
      left: 9px;
      top: 5px;
      width: 5px;
      height: 10px;
      border: solid white;
      border-width: 0 3px 3px 0;
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
    }
	/* FINE CHECKBOX */
	
	
	
	/* PULSANTI */
	.pulsinvio{
		width: 100%;
		/*max-width: 560px;*/
        padding: 16px 20px;
		margin: 0 0 10px 0;
		border: 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 */
	
	/*.spanavvisoerrore{
		margin: 0 0 15px 0;
		font-size: 13px;
		color: #f00;
		line-height: 0;
		text-align: right;
	}*/
	
	/* COUPON */
    /*.input-wrap .coupon {
        padding: 15px;
        width: calc(100% - 32px);
        font-size: 18px;
        border-radius: 3px;
        border: 1px solid #C1C1C1;
        margin: 1px;
    }
    .input-wrap .coupon:focus {
        border: 2px solid var(--primary-color);
        margin: 0px;
    }
    .input-wrap .couponattivo {
        padding: 15px;
        width: calc(100% - 180px);
        font-size: 18px;
        border-radius: 3px;
        border: 1px solid #C1C1C1;
        margin: 1px;
    }
    .input-wrap .couponattivo:focus {
        border: 1px solid var(--primary-color);
        margin: 0px;
    }
	.input-wrap .pulsantecoupon {
		display: none;
		border-radius: 3px;
		font-size: 20px;
		padding: 15px 20px;
		font-weight: normal;
		border: 0;
		width: 140px;
		margin: 0 0 0 0;
		cursor: pointer;
        background-color: var(--primary-color);
        color: #fff;
	}*/
}

@media only screen and (min-width: 800px) {
    .floating-label {
        max-width: unset !important;
    }
}