::-webkit-scrollbar {
  width: 8px;
  background: #eeeeee;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0);
}

body.menu-open {
  overflow: hidden !important;
}

body.menu-open::-webkit-scrollbar {
  display: none;
}

body.menu-open {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#navbar-top.menu-opened #menu-button div {
  background-color: #FFFFFF !important;
}

.navbar-on-white.menu-opened #navbar-logo {
  filter: brightness(100) !important;
}

@media (max-height: 767px) {
  .menu-title {
    font-size: 22px !important;
    line-height: 26px !important;
  }

  .menu-opened {
    transform: translateY(-80px) !important;
  }
}

.border-bottom-black {
  border-bottom: 1px solid black;
}

.icon-orange-dark {
  filter: brightness(0) saturate(100%) invert(60%) sepia(40%) saturate(2000%) hue-rotate(15deg) brightness(0.7);
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox:checked {
  border-color: white;
  background: white;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A3E35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A3E35' d='M6 3l5 5H1z'/%3E%3C/svg%3E");
}

/* Safari iPhone bottom bar transparency */
@supports (padding: max(0px)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Assicura che il contenuto non vada sotto la bottom bar */
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Mantiene la trasparenza della bottom bar anche quando il menu è aperto */
    #menu-overlay:not(.opacity-0) {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Estende l'immagine di sfondo del menu anche nello spazio della bottom bar */
    #menu-overlay:not(.opacity-0) > div:first-child {
        bottom: calc(-1 * env(safe-area-inset-bottom));
        height: calc(100% + env(safe-area-inset-bottom));
    }
}