flex-nowrap {
  flex-wrap: nowrap !important;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: inherit;
  background-clip: padding-box;
  border: 1px solid #dee2e6;
  border-radius: 0.5 rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control::placeholder {
  color: rgba(33, 37, 41, 0.75);
  opacity: 1;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group > .form-control, 
.input-group > .form-floating, 
.input-group > .form-select {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3), 
.input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-control, 
.input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-select, 
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  margin-left: calc(-1 * 1px);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
  text-align: center;
  white-space: nowrap;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

.fa-eye-slash,
.fa-eye {
  position: absolute;
  right: 10px;
  top: 12px;
}


input {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: inherit;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #aaa;
  /* background-color: #fff o background-color: transparent 
  per correggere differenze tra broweser (select)/**/
  background-color: #fff;

}

button,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  padding: 0;
  margin: 0;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #aaa;
  /* background-color: #fff o background-color: transparent 
  per correggere differenze tra broweser (select)/**/
  background-color: #fff;
  
}

input[type="submit"] {
  /* width: fit-content; /* set larghezza del bottone come larghezza del contenuto */ 
  background-color: rgb(9, 121, 9);
  border-color: rgb(14, 76, 14);
  padding: 8px 16px;
  color: white;
}

input[type="email"] + span,
input[type="password"] + span,
input[type="text"] + span {
  position: relative;
} 

input[type="email"] + span::before,
input[type="password"] + span::before,
input[type="text"] + span::before {
  position: absolute;
  right: 10px;
  top: -23px;
}

input[type="email"]:invalid,
input[type="password"]:invalid,
input[type="text"]:invalid {
  border: 1px solid red;
}

input[type="email"]:invalid + span::before,
input[type="password"]:invalid + span::before,
input[type="text"]:invalid + span::before {
  content: "(richiesto)";
  color: red;
}

input:valid + span::before {
  content: "✓";
  color: green;
}

select:hover,
textarea:hover,
input[type="radio"]:hover,
input[type="checkbox"]:hover,
input[type="date"]:hover,
input[type="email"]:hover,
input[type="text"]:hover {
    border-color: #0f0
}

input[type="submit"]:hover {
    background-color: rgb(7, 103, 7);
}

/* INPUT CHECKBOX */
input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 1em;
  height: 1em;
  border: 1px solid gray;
  vertical-align: -2px;
}

input[type="checkbox"]::before {
  content: "✓";
  position: absolute;
  font-size: 1em;
  right: 1px;
  top: -0.15em;
  visibility: hidden;
}

input[type="checkbox"]:checked::before {
  visibility: visible;
}

input[type="checkbox"]:disabled {
  border-color: black;
  background: #ddd;
  color: gray;
}

/* INPUT RADIO */
input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 2px solid gray;
  vertical-align: -2px;
  outline: none;
}


input[type="radio"]::before {
  display: block;
  content: " ";
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background-color: green;
  font-size: 1.2em;
  transform: translate(-7px, -7px) scale(0);
  /*
  transform-origin: center;
  transition: all 0.3s ease-in;
  */
}


input[type="radio"]:checked::before {
  transform: translate(0.8px, 0.8px) scale(1);
  /* transform: translate(-7px, -7px) scale(1); */
  /*transition: all 0.3s cubic-bezier(0.25, 0.25, 0.56, 2);*/
}


label {
  display: block;
  margin-bottom: 4px;
}

