body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55rem;
  letter-spacing: -0.015rem;
  color: #333;
  background: #f1f1f1;
}
h1 {
  font-size: 450%;
}
h2 {
  font-size: 350%;
}
h3 {
  font-size: 250%;
}
h4 {
  font-size: 200%;
}

/* Tablet (schermi tra 768px e 1024px) */
@media only screen and (max-width: 1024px) {
  h1 {
    font-size: 350%;
  }
  h2 {
    font-size: 300%;
  }
  h3 {
    font-size: 225%;
  }
  h4 {
    font-size: 175%;
  }
}

/* Smartphone (schermi tra 481px e 767px) */
@media only screen and (max-width: 767px) {
  h1 {
    font-size: 300%;
  }
  h2 {
    font-size: 250%;
  }
  h3 {
    font-size: 200%;
  }
  h4 {
    font-size: 150%;
  }
}

/* Smartphone piccoli (schermi fino a 480px) */
@media only screen and (max-width: 480px) {
  h1 {
    font-size: 250%;
  }
  h2 {
    font-size: 200%;
  }
  h3 {
    font-size: 175%;
  }
  h4 {
    font-size: 125%;
  }
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}
.p-6 {
  padding: 0.5rem !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--colore-primario);
  font-weight: bold;
  font-family: var(--font);
}
.select-prefix {
  max-width: 90px;
}
.btn-primary:focus {
  background: var(--colore-primario) !important;
  border-color: var(--colore-primario);
}
a {
  color: var(--colore-secondario);
}
a:hover {
  color: var(--colore-primario);
}
.navbar-brand img {
  width: 214px;
}
.w-150 {
  width: 150px;
}
hr {
  border: 0;
  height: 1px;
  background: var(--colore-primario);
  background: linear-gradient(
    90deg,
    rgba(242, 187, 53, 0) 0%,
    var(--colore-primario) 50%,
    rgba(253, 187, 45, 0) 100%
  );
}
.attivo {
  color: var(--colore-secondario) !important;
  font-weight: bold !important;
}
.btn {
  font-weight: bold;
  padding: 7px 20px;
}
.icon-element {
  background-color: var(--colore-primario);
  color: white !important;
}

.alert-info {
  border: none;
  background: var(--colore-primario);
  color: white;
  font-size: 120%;
}

.nav-link {
  color: var(--bs-nav-link-color);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
  text-transform: uppercase;
  padding: 20px 15px !important;
}
.nav-link:hover {
  color: var(--colore-primario) !important;
}

.nav-pills .nav-link.active {
  color: var(--colore-primario) !important;
  color: white !important;
}

label {
  font-weight: bold;
}

.custom-control .custom-control-input:checked {
  background-color: var(--colore-primario) !important;
  border-color: var(--colore-primario) !important;
}

/*checkbox*/
.form-check-input {
  width: 1.5em;
  height: 1.5em;
}
.custom-checkbox label {
  font-weight: normal !important;
  margin-left: 10px;
  line-height: 1.5rem !important;
}
/*radiobox*/
.form-check label {
  font-weight: normal !important;
  margin-left: 10px;
  line-height: 1.5rem !important;
}
.form-check-input:checked {
  background-color: var(--colore-primario) !important;
  border-color: var(--colore-primario) !important;
}

.input-group .btn {
  border-top-left-radius: var(--bs-border-radius) !important;
  border-bottom-left-radius: var(--bs-border-radius) !important;
  border: 1px solid #e8eaed !important;
}

.form-control::file-selector-button {
  color: var(--colore-primario);
  border-color: var(--colore-primario);
  height: 50px;
  font-weight: bold;
}

/*Errori form*/
.has-error .control-label,
.has-error .custom-checkbox label,
.has-error .form-check label {
  color: #842029;
}
.text-danger {
  color: #842029 !important;
}
.has-error .form-control {
  color: #842029 !important;
  background-color: #f8d7da !important;
  border-color: #f5c2c7 !important;
}
.has-error .input-group-text {
  color: #842029 !important;
  background-color: #f8d7da !important;
  border-color: #f5c2c7 !important;
}
.has-error .form-control::file-selector-button {
  color: #842029 !important;
  border-color: #f5c2c7 !important;
}
.has-error small {
  font-weight: normal !important;
  text-transform: capitalize !important;
}
.has-error .form-check-input {
  background-color: #f8d7da !important;
  border-color: #f5c2c7 !important;
}

.logout {
  font-weight: bold;
  background: var(--colore-primario) !important;
  padding: 10px !important;
  margin-top: 10px;
  border-radius: 5px;
  color: white !important;
}
.logout:hover {
  color: white !important;
}
.navbar-toggler {
  background: var(--colore-primario) !important;
  border: none !important;
}

/*CTA*/
.cta {
  padding: 100px 0px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

/*Immagine iniziali delle pagine*/
.hero-bg {
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-item {
  padding-top: 150px;
  padding-bottom: 150px;
  filter: blur(0px) !important;
  -webkit-filter: blur(0px) !important;
}
.overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #000;
  opacity: 0.5;
  z-index: -1;
}
p {
  color: black !important;
}
/*Footer*/
.footer {
  font-size: 90%;
  line-height: 130%;
  padding: 20px 5px;
  text-align: center;
  background: var(--colore-primario) !important;
}
.footer p {
  color: #e7c5de !important;
}
.footer a {
  color: #e7c5de !important;
}
.text-justify {
  text-align: justify;
}
.color-primary {
  color: var(--colore-primario) !important;
}
