.title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.container-width .subtitle {
  font-size: 16px;
  text-align: center;
}

/* form starting stylings ------------------------------- */

.form-restyle .group {
  position: relative;
  margin-bottom: 25px;
}

.form-restyle input {
  font-size: 15px;
  padding: 15px 10px 15px 5px;
  display: block;
  width: 100%;
  border: none;
  background-color: #F7F7F7;
  border-radius: 5px;
}

.form-restyle #remember {
  height: 15px;
  width: 15px;
  padding: 0px;
  margin: 0px;
  margin-right: 10px;
}

.form-restyle input:focus {
  outline: none;
  border-bottom: 1px solid #44CF6C !important;
}

.form-restyle textarea {
  font-size: 15px;
  padding: 15px 10px 15px 5px;
  display: block;
  width: 100%;
  border: none;
  background-color: #F7F7F7;
  border-radius: 5px;
  resize: none;
  border-bottom: 1px solid lightgray !important;
}

.form-restyle textarea:focus {
  outline: none;
  border: 1px solid #44CF6C !important;
}

/* LABEL ======================================= */

.form-restyle .label {
  color: #999;
  font-size: 16px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 20px;
  top: 15px;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

/* Change Autocomplete styles in Chrome*/

.form-restyle input:-webkit-autofill, .form-restyle input:-webkit-autofill:hover, .form-restyle input:-webkit-autofill:focus .form-restyle textarea:-webkit-autofill, .form-restyle textarea:-webkit-autofill:hover .form-restyle textarea:-webkit-autofill:focus, .form-restyle select:-webkit-autofill, .form-restyle select:-webkit-autofill:hover, .form-restyle select:-webkit-autofill:focus {
  border: 1px solid green;
  -webkit-text-fill-color: green;
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* active state */

.form-restyle input:focus~.label, .form-restyle input:valid~.label, .form-restyle .readonly {
  top: -20px;
  font-size: 14px;
  color: #44CF6C;
}

.form-restyle input:read-only~.label {
  top: -20px;
  font-size: 14px;
  color: #44CF6C;
}

.form-restyle input:-moz-read-only~.label {
  top: -20px;
  font-size: 14px;
  color: #44CF6C;
}

/*.form-restyle input:focus ~ .label, .form-restyle input:valid ~ .label       {
  top:-20px;
  font-size:14px;
  color:#44CF6C;
}*/

.form-restyle input:disabled~.label {
  top: -20px;
  font-size: 14px;
  color: #44CF6C;
  left: 10px;
}

.noValid {
  color: #999 !important;
  font-size: 16px !important;
  top: 15px !important;
}

.form-restyle textarea:focus~.label, .form-restyle textarea:valid~.label {
  top: -20px;
  font-size: 14px;
  color: #44CF6C;
}

.form-restyle label {
  font-weight: 300;
}

/* BOTTOM BARS ================================= */

.form-restyle .bar {
  position: relative;
  display: block;
  width: 100%;
}

.form-restyle .bar:before, .bar:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #44CF6C;
  transition: 0.2s ease all;
  -moz-transition: 0.2s ease all;
  -webkit-transition: 0.2s ease all;
}

.form-restyle .bar:before {
  left: 50%;
}

.form-restyle .bar:after {
  right: 50%;
}

/* active state */

.form-restyle input:focus~.bar:before, input:focus~.bar:after {
  width: 50%;
}

.form-restyle textarea:focus~.bar:before, textarea:focus~.bar:after {
  width: 50%;
}

/* HIGHLIGHTER ================================== */

.form-restyle .highlight {
  position: absolute;
  height: 60%;
  width: 100%;
  top: 25%;
  left: 0;
  pointer-events: none;
  opacity: 0.5;
}

.form-restyle span.highlight {
  background-color: unset;
}

/* active state */

.form-restyle input:focus~.highlight {
  -webkit-animation: inputHighlighter 0.3s ease;
  -moz-animation: inputHighlighter 0.3s ease;
  animation: inputHighlighter 0.3s ease;
}

.form-restyle textarea:focus~.highlight {
  -webkit-animation: inputHighlighter 0.3s ease;
  -moz-animation: inputHighlighter 0.3s ease;
  animation: inputHighlighter 0.3s ease;
}

.form-restyle .btnRegistrati {
  margin-top: 20px;
  background-color: #44CF6C !important;
  height: 40px !important;
  padding: 0px !important;
  border: unset;
  width: 100%;
  text-transform: uppercase;
}

.form-restyle .modal {
  display: block;
  position: unset;
}

.form-restyle .control-label {
  text-align: left;
}

.form-restyle .control-label a {
  float: left;
}

.form-restyle #jform_profile_tos-lbl {
  margin-top: 0px;
}

.form-restyle #jform_profile_tos {
  display: flex;
}

#jform_profile_tos input[type="radio"] {
  position: absolute;
}

/* ANIMATIONS ================ */

@-webkit-keyframes inputHighlighter {
  from {
    background: #5264AE;
  }
  to {
    width: 0;
    background: transparent;
  }
}

@-moz-keyframes inputHighlighter {
  from {
    background: #5264AE;
  }
  to {
    width: 0;
    background: transparent;
  }
}

@keyframes inputHighlighter {
  from {
    background: #5264AE;
  }
  to {
    width: 0;
    background: transparent;
  }
}

/*** FORM CONTACT US ****/

.contact-form {
  width: 1140px;
  margin: 0 auto;
  padding-top: 40px;
  padding-left: 10px;
  padding-right: 10px;
}

.form-contact {
  width: 100%;
  padding: 20px;
}

.form-contact .contactName {
  text-align: center;
  color: #44CF6C;
  font-size: 16px;
}

.form-contact .divRowContact .divLabel, .form-contact .divRowContactT .divLabel {
  margin-top: 10px;
}

.form-contact .divRowContact .divValue input {
  font-size: 15px;
  padding: 15px 10px 15px 5px;
  display: block;
  width: 100%;
  border: none;
  background-color: #F7F7F7;
  border-radius: 5px;
}

.form-contact .divRowContact .divValue input:focus {
  outline: none;
  border-bottom: 1px solid #44CF6C !important;
}

.form-contact .divRowContactT .divValue textarea {
  font-size: 15px;
  padding: 15px 10px 15px 5px;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #F7F7F7;
  border-radius: 5px;
  resize: none;
  border-bottom: 1px solid lightgray !important;
}

.form-contact .divRowContactT .divValue textarea:focus {
  outline: none;
  border: 1px solid #44CF6C !important;
}

.form-contact .divRowContactT {
  height: 180px;
}

.form-contact .divRowContactT .divLabel {
  height: 10%;
}

.form-contact .divRowContactT .divValue {
  height: 90%;
}

.form-contact .divRowContact {
  letter-spacing: 0;
  font-size: 14px;
  color: black;
  font-weight: 300;
  width: 100%;
}

.form-contact .divRowContactT {
  letter-spacing: 0;
  font-size: 14px;
  color: black;
  font-weight: 300;
  width: 100%;
}

.form-contact .divRowContact #checkConsent-lbl {
  cursor: pointer;
}

.contact-form #sbox-overlay {
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
}

.contact-form #sbox-window {
  position: absolute;
  top: 50%;
  left: 50%;
  background: white;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding: 20px;
  font-size: 15px;
  z-index: 65557;
}

.form-contact .btnRegistrati {
  margin-top: 20px;
  background-color: #44CF6C !important;
  height: 40px !important;
  padding: 0px !important;
  border: unset;
  width: 15%;
  float: right;
}

/* Desktop */

@media screen and (max-width: 1200px) and (min-width: 992px) {
  .contact-form {
    width: 95%;
    margin: 0 auto;
  }
}

/* Tablet */

@media screen and (max-width: 991px) and (min-width: 768px) {
  .contact-form {
    width: 95%;
    margin: 0 auto;
  }
  .contact-form #sbox-window {
    width: 95%;
    margin: 0 auto;
  }
  .form-contact .btnRegistrati {
    width: 30%;
  }
}

/* Smartphone grandi dimensioni */

@media screen and (max-width:767px) and (min-width: 481px) {
  .contact-form {
    width: 95%;
    margin: 0 auto;
  }
  .contact-form #sbox-window {
    width: 95%;
    height: 70%;
    margin: 0 auto;
  }
  .form-contact .btnRegistrati {
    width: 50%;
  }
  #jform_profile_tos input[type="radio"] {
    position: unset;
  }
}

/* Smartphone piccole dimensioni */

@media screen and (max-width:480px) {
  .contact-form {
    width: 95%;
    margin: 0 auto;
  }
  .contact-form #sbox-window {
    width: 95%;
    height: 70%;
    margin: 0 auto;
  }
  .form-contact .btnRegistrati {
    width: 100%;
  }
  #jform_profile_tos input[type="radio"] {
    position: unset;
  }
}