.floating-label {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.floating-label label {
  position: absolute;
  max-width: 100%;
  z-index: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /*top: 50%;*/
  /*transform: translateY(-50%); */
  /*transition: 0.2s ease all; */
  pointer-events: none;
  color: #487297 ;  
  background-color: white;
  left: 0.5rem;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  top: -0.80rem;
  /*transform: translateY(-60%) scale(0.85);*/
  
}

.floating-label-active {
  color: #2f9dfd !important;    
}

/* Imposta che l'elemento floating-label non occupa spazio se è nascosto */
.floating-label.hidden {
  display: none;
}


.floating-label label {
  font-size: 1rem;  
  top: -0.9rem;    
}
