body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55rem;
  letter-spacing: -0.015rem;
  color: #333;
  background: white;
}
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(0, 0, 0, 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);
}
.color-primary {
  color: var(--colore-primario);
  font-weight: 600;
}
.select-prefix {
  max-width: 90px;
}
.btn-primary:focus {
  background: var(--colore-primario) !important;
  border-color: var(--colore-primario);
}
.btn-primary-custom {
  background: var(--colore-primario) !important;
  border-color: var(--colore-primario);
  border-radius: 24px 24px 24px 24px;
  padding: 16px 24px 16px 24px;
  color: white;
}
.btn-primary-custom:hover {
  background: var(--colore-secondario) !important;
  border-color: var(--colore-secondario);
  color: white;
}
a {
  color: var(--colore-primario);
  font-weight: bold;
}
a:hover {
  color: var(--colore-primario);
}
.btn-secondary-custom {
  background: var(--colore-secondario);
  color: white;
  border-radius: 24px 24px 24px 24px;
  padding: 12px 40px !important;
}
.btn-secondary-custom:hover {
  background: var(--colore-primario);
  color: white;
}
.color-secondary {
  color: var(--colore-secondario);
}

.custom-footer {
  background: var(--colore-primario);
  padding-top: 40px;
  padding-bottom: 24px;
}
.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: black !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;
}

/*Footer*/
.footer {
  font-size: 90%;
  line-height: 130%;
  padding: 20px 5px;
  text-align: center;
  background: white;
}

.custom-logo {
  max-width: 300px;
}

@media only screen and (min-width: 768px) {
  .mw-row {
    max-width: 360px;
  }
}
@media only screen and (max-width: 767px) {
  .custom-mw {
    width: 100%;
  }
}
@media only screen and (max-width: 500px) {
  .card-body {
    padding: 15px;
  }
}
.custom-bg-card-header {
  padding: 10px;
  background-color: #e4022b;
  border-radius: 6px 6px 0 0;
}
.btn-secondary-custom:focus,
.btn-secondary-custom:active {
  color: white !important;
}

.camera-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  margin-top: 20px;
}
#camera,
#preview {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 20px;
  margin: 0 auto;
}
#preview {
  display: none;
}
.overlay-custom {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  display: none;
  border-radius: 20px;
}
.alert-selfie {
  display: none;
  font-size: 1.25rem;
}

/* Nascondi la fotocamera all'inizio */
.camera-container {
  display: none;
}

/* Riduci la dimensione del video della fotocamera e dell'anteprima su dispositivi mobili */
@media only screen and (max-width: 768px) {
  #camera,
  #preview {
    width: 100%;
    max-height: 480px;
  }
}
@media only screen and (max-width: 991px) {
  .ratio-16x9 {
    --bs-aspect-ratio: 120% !important;
  }
}

/* Immagine cliccabile */
#openCameraImage {
  cursor: pointer;
  width: 100%;
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: 20px;
}

.pagination .page-item .page-link {
  background: #1e74fd;
  border: 0;
  color: #fff;
  box-shadow: 0 !important;
  outline: 0 !important;
  margin: 0 4px;
  border-radius: 6px !important;
  font-size: 13px;
}
.pagination .page-item .page-link {
  background: var(--colore-secondario) !important;
  color: white;
}
.pagination .page-item .page-link-custom {
  background: white !important;
  color: var(--colore-secondario) !important;
  border: 1px solid var(--colore-secondario) !important;
}

.btn-secondary {
  background: #e49f3d !important;
  color: white;
  border-color: #e49f3d;
}
.btn-secondary:hover {
  border-color: #e49f3d;
}

label {
  color: var(--colore-primario);
  text-transform: uppercase;
}
input,
select {
  background-color: white !important;
}
.form-check-label {
  color: #000;
}
