/******************* CSS FORM *******************/

.it-datepicker-wrapper .input-group .datepicker-button {
  border: none !important;
  margin: 0px !important;
}

.it-datepicker-wrapper.form-group .form-group {
  margin-bottom: 0rem !important;
}

.flex-direction-row-reverse,
.it-datepicker-wrapper .flex-direction-row-reverse .input-group {
  flex-direction: row-reverse;
  flex-direction: -webkit-row-reverse;
  flex-direction: -ms-row-reverse;
  flex-direction: -moz-row-reverse;
}

.it-datepicker-wrapper .align-items-center .input-group {
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
}

.flex-direction-row-reverse
  .it-datepicker-wrapper
  .input-group
  .datepicker-button {
  margin-right: 0px !important;
}

.datepicker-button:hover {
  background: #ddd;
}

.no-pointer {
  pointer-events: none;
}

.form-control.is-invalid,
.was-validated .has-error .form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f73e5a' viewBox='0 0 384 512'%3E%3Cpath d='M231.6 256l130.1-130.1c4.7-4.7 4.7-12.3 0-17l-22.6-22.6c-4.7-4.7-12.3-4.7-17 0L192 216.4 61.9 86.3c-4.7-4.7-12.3-4.7-17 0l-22.6 22.6c-4.7 4.7-4.7 12.3 0 17L152.4 256 22.3 386.1c-4.7 4.7-4.7 12.3 0 17l22.6 22.6c4.7 4.7 12.3 4.7 17 0L192 295.6l130.1 130.1c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17L231.6 256z'/%3E%3C/svg%3E") !important;
}

.form-control.is-valid,
.was-validated .has-success .form-control:valid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2300cc85' viewBox='0 0 192 512'%3E%3Cpath d='M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z'/%3E%3C/svg%3E") !important;
}

.help-block {
  width: 100%;
  margin-top: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.777rem;
  color: #d9364f;
  margin-bottom: 0;
  font-weight: 600;
}

/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

input:-internal-autofill-selected {
  background-color: #fff !important;
}

.was-validated .has-error .btn-light {
  border-bottom: 1px solid #d9364f !important;
}

.was-validated .has-error.it-datepicker-wrapper .input-group:after {
  background-color: #d9364f !important;
}

.was-validated .has-success.it-datepicker-wrapper .input-group:after {
  background-color: #008758 !important;
}

.was-validated .has-success .it-datepicker-wrapper .input-group:after,
.has-success .it-datepicker-wrapper .input-group,
.was-validated .has-success .btn-light {
  border-bottom: 1px solid #008758 !important;
}

.was-validated .has-error .invalid-cross {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f73e5a' viewBox='0 0 384 512'%3E%3Cpath d='M231.6 256l130.1-130.1c4.7-4.7 4.7-12.3 0-17l-22.6-22.6c-4.7-4.7-12.3-4.7-17 0L192 216.4 61.9 86.3c-4.7-4.7-12.3-4.7-17 0l-22.6 22.6c-4.7 4.7-4.7 12.3 0 17L152.4 256 22.3 386.1c-4.7 4.7-4.7 12.3 0 17l22.6 22.6c4.7 4.7 12.3 4.7 17 0L192 295.6l130.1 130.1c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17L231.6 256z'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position-x: 95% !important;
  background-position-y: center !important;
  background-size: 24px !important;
  opacity: 1 !important;
}

.bootstrap-select .btn-light .was-validated .has-success .valid-check {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2300cc85' viewBox='0 0 192 512'%3E%3Cpath d='M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position-x: 95% !important;
  background-position-y: center !important;
  background-size: 50px 30px !important;
  opacity: 1 !important;
}

.btn-light {
  background-color: #fff !important;
  border-radius: 0;
  border-bottom: 1px solid #000 !important;
  color: #17324d;
  font-weight: 600 !important;
  font-size: 1rem;
  padding: 12px !important;
}

.btn-light[aria-expanded="false"]::after {
  content: "" !important;
  -webkit-transform: rotate(45deg) !important;
  transform: rotate(45deg) !important;
  padding: 3px !important;
  border: solid black !important;
  border-width: 0 2px 2px 0 !important;
  display: inline-block !important;
}

.btn-light[aria-expanded="true"]::after {
  content: "" !important;
  -webkit-transform: rotate(45deg) !important;
  transform: rotate(45deg) !important;
  padding: 3px !important;
  border: solid black !important;
  border-width: 2px 0 0 2px !important;
  display: inline-block !important;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
.btn.dropdown-toggle.btn-light {
  height: 3rem !important;
}

input[type="submit"]{
    color: #ffffff !important;
    width: 11rem;
    height: 3rem;
}

input {
  color: #4a4a4a !important;
}

.titolo-modale-inviata {
  color: #17324d;
  font-family: "Titillium Web";
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 36px;
}

div.modal-body p {
  color: #4a4a4a;
  font-family: "Titillium Web" !important;
  letter-spacing: 0;
  line-height: 21px;
}

.input-disabled,
.dropdown.input-disabled {
  pointer-events: none !important;
  cursor: not-allowed !important;
  background-color: #e6e9f2 !important;
}

.btn.dropdown-toggle.btn-light {
  border-radius: 0px !important;
}

input[type="checkbox"] {
  position: unset !important;
  left: 0px !important;
}

input[type="checkbox"] {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: 0;
  background: white;
  height: 20px;
  width: 20px;
  border: 1px solid gray;
  border-radius: 3px;
  opacity: 1 !important;
  margin-left: 5px !important;
}

input[type="checkbox"]:checked {
  background: #8c2828;
}

input[type="checkbox"]:hover {
  filter: brightness(90%);
}

.disabled .filter-option-inner-inner {
  opacity: 0.6;
}

input[type="checkbox"]:disabled {
  background: #e6e6e6;
  opacity: 0.6;
  pointer-events: none;
}

input[type="checkbox"]:after {
  content: "\2714";
  position: relative;
  top: -4px;
  color: white;
  text-align: center;
  display: none;
}

input[type="checkbox"]:checked:after {
  display: block;
}

input[type="checkbox"]:disabled:after {
  border-color: #7b7b7b;
}

/* Chrome, Safari, Edge, Opera */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */

input[type="number"] {
  border: none !important;
  -moz-appearance: textfield;
}

.form-check label {
  padding: 0rem 0rem 0rem 1rem;
  position: relative;
  top: -4px;
}

.input-group-addon {
  border-bottom: 1px solid black !important;
}

.scrollable {
  -webkit-overflow-scrolling: touch;
}

.scrollable::-webkit-scrollbar,
.form-group ::-webkit-scrollbar,
.bootstrap-select.scrollable ::-webkit-scrollbar {
  width: 12px !important;
  border-radius: 26px !important;
  background-color: #f5f5f5 !important;
}

.scrollable::-webkit-scrollbar-track,
.form-group ::-webkit-scrollbar-track,
.bootstrap-select.scrollable ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(104, 140, 240, 0.3) !important;
  border-radius: 3px !important;
}

.scrollable::-webkit-scrollbar-thumb,
.form-group ::-webkit-scrollbar-thumb,
.bootstrap-select.scrollable ::-webkit-scrollbar-thumb {
  border-radius: 3px !important;
  background-color: #8c2828 !important;
  height: 4rem;
}

/* for Mozilla Firefox */

.scrollable {
  scrollbar-color: #8c2828 lightgrey;
  scrollbar-width: thin;
}

/* icon datapicker */

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: -1rem;
}

input::-webkit-datetime-edit {
  position: relative;
  left: 1rem;
}

/* placeholder datapicker */

input::-webkit-datetime-edit-fields-wrapper {
  position: relative;
  left: 1rem;
}

.informativa {
  padding: 2rem;
  border: 1px solid;
  overflow: auto;
  max-height: 50rem;
}

.half-card-left h5 {
  padding-bottom: 2rem !important;
}

.half-card-left p {
  padding-top: 1rem;
}

@media only screen and (min-width: 320px) {
  .h5-ricerca {
    padding-left: unset;
    font-size: calc(1.333em + var(--fact)) !important;
  }
  .it-datepicker-wrapper .icon {
    height: 48px;
    width: 48px;
    border-radius: 6px;
    border-style: groove;
    border-width: 1px;
  }
  .sezione-padded {
    padding-top: 3% !important;
  }
  .margin-right {
    margin-right: 0%;
  }
  .half-card-left,
  .half-card-right {
    padding: 2rem !important;
  }
}

@media only screen and (min-width: 992px) {
  .h5-ricerca {
    padding-left: 2rem !important;
  }
  .it-datepicker-wrapper .icon {
    height: 32px;
    width: 32px;
    border-radius: 0px;
    border-style: unset;
  }
  .margin-right {
    margin-right: 5%;
  }
  .half-card-left {
    padding: 0rem 10% 2rem 2rem !important;
  }
  .half-card-right {
    padding: 2rem 1rem 1rem 5% !important;
  }
}
