input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #000 !important;
}

.hero {
  position: relative;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 0 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.navbar {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Aggiungi un min-height per la hero su schermi piccoli */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
  .hero h1 {
    font-size: 2rem !important;
  }
}

#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #25D366;
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#whatsapp-button.show {
  opacity: 1;
  transform: translateY(0);
}

#whatsapp-button i {
  font-size: 20px;
}

.cursor-pointer {
    cursor: pointer !important;
}

body {
  background-color: #efefef;
}

.gap {
  gap: 15px;
}

.navbar {
  width: 100vw;
  height: 80px;
  background-color: var(--site-color);
}

.pointer {
  cursor: pointer;
}

.site-color {
  color: var(--site-color);
}

.logo {
  margin: -10px 7px -10px 0;
  max-height: 50px;
  display: inline-block;
  padding: 2px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--site-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--site-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.modal {
  display: none;
  position: fixed;
  padding-top: 5vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 100%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  max-width: 800px;
}

.form-control textarea {
  border: none !important;
  padding: 0 !important;
}

.form-floating .form-select {
  min-width: calc(100% + 2px); /* Questo compensa il padding per evitare che il testo della label copra il bordo */
}

.form-floating label {
  white-space: nowrap; /* Impedisce alla label di andare a capo */
  width: 100%;
}

.modal-close {
  color: #fff;
  float: right;
  font-size: 1.3rem;
  height: 1.5rem;
  font-weight: 700;
  background-color: inherit;
}

.modal-close:focus,
.modal-close:hover {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 5px 16px;
  background-color: var(--site-color);
  color: #fff;
}

.modal-title {
  font-size: 25px;
}

.modal-body {
  padding: 5px 16px;
}

/* alertMessage */
#alertBox {
  z-index: 9999;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  transition: all 0.2s linear;
}

.alert {
  width: 96%;
}
