@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

body {
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-family: "Arial", sans-serif;
}

.home-icon {
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  transition: transform 0.2s;
}
.home-icon:hover {
  transform: scale(1.1);
}

.navbar {
  display: flex;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.18),
    0 1.5px 4px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.nav-links {
  background: linear-gradient(90deg, #e7e4e4, #d9d4d4);
  flex: 1;
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  width: 15%;
  height: 80px;
  justify-content: center;
  align-items: center;
  color: white;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-list {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0 20px;
}

.nav-list a {
  text-decoration: none;
  color: #ff5757;
  font-weight: bold;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: #fb1e1e;
}

.hamburger {
  display: none; /* Nascondi il pulsante hamburger per default */
}

.online-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff47;
  box-shadow: 0 0 8px 2px #00ff47;
  display: inline-block;
  animation: pulse-green 1s infinite alternate;
  margin-right: 2px;
  vertical-align: middle;
}
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 8px 2px #00ff47;
  }
  100% {
    box-shadow: 0 0 16px 6px #00ff47;
  }
}

.utente-ordina-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  /* margin: 28px 30px 0 30px; */
  background: #fff6f6;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(255, 87, 87, 0.08);
  padding: 18px 28px;
  min-height: 64px;
}

#accesso-utente {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ordina-artisti-zona label {
  color: #fb1e1e;
  font-size: 1.08em;
  font-weight: bold;
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.ordina-artisti-zona select {
  padding: 8px 18px;
  border: 2px solid #ff5757;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  color: #fb1e1e;
  background: #fff;
  transition:
    border 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(255, 87, 87, 0.07);
  outline: none;
}

.ordina-artisti-zona select:focus {
  border: 2.5px solid #fb1e1e;
  box-shadow: 0 2px 12px rgba(255, 87, 87, 0.13);
}

#sottocategoria-label {
  margin-left: 24px;
  color: #fb1e1e;
  font-size: 1.08em;
  font-weight: bold;
  letter-spacing: 0.5px;
}

#sottocategoria-select {
  padding: 8px 18px;
  border: 2px solid #ff5757;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  color: #fb1e1e;
  background: #fff;
  transition:
    border 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(255, 87, 87, 0.07);
  outline: none;
}

#eventi-label {
  margin-left: 24px;
  color: #fb1e1e;
  font-size: 1.08em;
  font-weight: bold;
  letter-spacing: 0.5px;
}

#eventi-select {
  padding: 8px 18px;
  border: 2px solid #ff5757;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  color: #fb1e1e;
  background: #fff;
  transition:
    border 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(255, 87, 87, 0.07);
  outline: none;
  margin-left: 8px;
}

#eventi-select:focus {
  border: 2.5px solid #fb1e1e;
  box-shadow: 0 2px 12px rgba(255, 87, 87, 0.13);
}

#popup-area-personale {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#popup-area-personale .popup-content {
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  min-width: 300px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

#popup-conferma-elimina {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
#popup-conferma-elimina .popup-content {
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  min-width: 300px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

.search-artisti-zona {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid #ff5757;
  border-radius: 12px;
  padding: 18px 24px;
  margin: 30px 0 0 30px;
  box-shadow: 0 2px 12px rgba(255, 87, 87, 0.08);
  max-width: 60%;
}

.search-artisti-zona label {
  color: #ff5757;
  font-size: 1.1em;
  font-weight: bold;
  margin-right: 8px;
}

.search-artisti-zona input[type="text"] {
  padding: 10px 14px;
  border: 1.5px solid #ff5757;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: border 0.2s;
  font-family: "Inter", Arial, sans-serif;
  font-weight: bold;
}

.search-artisti-zona input[type="text"]:focus {
  border: 4px solid #fb1e1e;
}

.search-artisti-zona button {
  background: #ff5757;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255, 87, 87, 0.1);
}

.search-artisti-zona button:hover {
  background: #fb1e1e;
}

.autocomplete-list {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 180px;
  overflow-y: auto;
  width: 300px;
  z-index: 1000;
}
.autocomplete-list.active {
  display: block;
}
.autocomplete-list div {
  padding: 8px;
  cursor: pointer;
}
.autocomplete-list div:hover {
  background: #f0f0f0;
}

/* Professioni artisti */
.professioni-artisti {
  margin: 40px auto;
  /* max-width: 900px; */
  text-align: center;
  background: #fff; /* Sfondo bianco */
  border-radius: 18px; /* Angoli arrotondati */
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.18),
    0 1.5px 4px rgba(0, 0, 0, 0.15); /* Effetto sopraelevato */
  padding: 32px 0 28px 0; /* Spaziatura interna */
}
.professioni-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}
.professione-item {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.professione-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin-bottom: 10px;
  background: #fff;
}
.professione-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
}

.professione-item.selected {
  border: 4px solid #fb1e1e;
  box-shadow: 0 0 12px #ff5757;
  background: #e3f0ff;
  border-radius: 50%;
  width: 103px;
  height: 103px;
}

.professioni-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 0 50px;
}

.professioni-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 8px 4px;
  scrollbar-width: none;
}
.professioni-track::-webkit-scrollbar {
  display: none;
}

.professione-item {
  flex: 0 0 auto;
  width: 130px;
  text-align: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.professione-item.selected,
.professione-item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.prof-arrow {
  background: #ff5757;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.25s;
}
.prof-arrow:hover {
  background: #e24646;
}

.professioni-track.grabbing {
  cursor: grabbing;
}

@media (max-width: 580px) {
  .professioni-slider {
    padding: 0;
    position: relative;
  }
  .professioni-slider .prof-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    font-size: 18px;
    z-index: 2;
  }
  #prof-prev {
    left: 4px;
  }
  #prof-next {
    right: 4px;
  }

  .professioni-track {
    padding: 12px 46px; /* spazio interno per le frecce */
    gap: 12px;
    scroll-snap-type: x mandatory;
  }

  .professioni-track .professione-item {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    scroll-snap-align: start;
  }
}

#risultati-artisti {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
  background-color: #ff5757;
  padding: 20px;
}

/* Card artista */
.artista-card {
  background-color: white;
  color: #ff5757;
  border-radius: 18px;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.13),
    0 1.5px 4px rgba(0, 0, 0, 0.1);
  border: 2.5px solid #fff;
  width: 100%;
  max-width: 320px;
  min-width: 280px;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    box-shadow 0.2s,
    transform 0.18s;
  position: relative;
  overflow: hidden;
}
.artista-card:hover {
  box-shadow:
    0 8px 32px rgba(255, 87, 87, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px) scale(1.04);
}
.artista-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #fff3 60%, transparent 100%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.card-header {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.foto-profilo {
  width: 100%;
  height: 50%;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #fff;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(255, 87, 87, 0.13);
  border: 2px solid #ff5757;
}
.stelle-valutazione {
  color: #ffb400;
  font-size: 1.2em;
  margin-top: 2px;
  /* Contorno sottile e delicato */
  text-shadow:
    0 1px 2px #2227,
    0 -1px 2px #2227;
  -webkit-text-stroke: 0.5px #333;
}
.valutazione-num {
  color: #ffffff;
  font-size: 0.95em;
  margin-left: 6px;
}
.card-info {
  margin-top: 10px;
  font-size: 1.05em;
}

#media-modal {
  z-index: 10001 !important;
}
#media-modal-close {
  z-index: 10002 !important;
}

/* Popup artista */
#popup-artista {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: block; /* Cambia da flex a block */
  z-index: 9999;
}
#popup-artista .popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ff5757;
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(255, 87, 87, 0.15);
  padding: 32px 18px;
  /* min-width: 240px; */
  /* max-width: 320px; */
  width: 90vw;
  /* height: 70vh; */
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-height: 80vh; /* AGGIUNTO: limite massimo in altezza */
  overflow-y: auto;
  overflow-x: hidden;
}

#popup-artista .foto-profilo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  display: block;
}

#popup-artista h2 {
  color: #fff;
}

#popup-artista p {
  color: #ff5757;
  background: #fff;
  padding: 8px 22px;
  border-radius: 18px;
  font-weight: bold;
  margin: 18px 0 10px 0;
  box-shadow: 0 2px 10px rgba(255, 87, 87, 0.1);
  border: 2px solid #ff5757;
  display: inline-block;
  letter-spacing: 0.5px;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

#popup-artista .stelle-valutazione,
#popup-artista .star,
#popup-artista .recensione-star {
  color: #ffb400;
  font-size: 1.15em;
  text-shadow:
    0 1px 2px #2227,
    0 -1px 2px #2227;
  -webkit-text-stroke: 0.5px #333;
}

.recensione-stelle {
  color: #ffb400;
  text-shadow:
    0 1px 2px #2227,
    0 -1px 2px #2227;
  -webkit-text-stroke: 0.5px #333;
}
#popup-artista #close-popup-artista {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
  color: #fb1e1e;
  z-index: 2;
  background-color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.popup-nome-cognome h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5em;
  text-align: center;
  font-weight: bold;
}

.servizi-lista {
  margin-top: 24px;
  width: 100%;
}
.servizi-lista > b {
  font-size: 1.13em;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}
.servizi-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.servizio-card {
  background: #fff;
  color: #ff5757;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(255, 87, 87, 0.09);
  padding: 16px 18px 12px 18px;
  max-width: 95%;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: bold;
  border: 2px solid #ff5757;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
  margin-left: 10px;
}
.servizio-card:hover {
  box-shadow: 0 4px 18px rgba(255, 87, 87, 0.18);
  transform: translateY(-4px) scale(1.03);
  border-color: #fb1e1e;
}
.servizio-nome {
  font-size: 1.08em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 7px;
}

.servizio-descrizione {
  color: #444;
  font-size: 0.98em;
  font-weight: normal;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.mostra-di-piu {
  color: #1976d2;
  cursor: pointer;
  font-size: 0.97em;
  margin-left: 6px;
  text-decoration: underline;
}

.servizio-bottom-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.servizio-prezzo {
  margin-top: 100px;
  color: #ff5757;
  font-weight: bold;
  font-size: 1.07em;
  /* align-self: flex-end; */
}

.btn-servizio {
  background: #ff5757;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 12px;
}

.btn-servizio:hover {
  background: #fb1e1e;
}

/* --- PAGINAZIONE ARTISTI --- */
#paginazione-artisti {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  user-select: none;
}

#paginazione-artisti button {
  background: #fff;
  color: #ff5757;
  border: 2px solid #ff5757;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  outline: none;
}

#paginazione-artisti button:disabled {
  opacity: 0.4;
  cursor: default;
  background: #f7f7f7;
  color: #bbb;
}

#paginazione-artisti button:not(:disabled):hover {
  background: #ff5757;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 87, 87, 0.15);
}

#paginazione-artisti span {
  font-size: 1.2em;
  font-weight: bold;
  color: #444;
  margin: 0 10px;
  letter-spacing: 1px;
}

/* Skeleton Loader */
.skeleton-loader {
  background-color: white;
  border-radius: 18px;
  padding: 28px 20px 22px 20px;
  width: 100%;
  max-width: 320px;
  min-width: 280px;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.13),
    0 1.5px 4px rgba(0, 0, 0, 0.1);
  border: 2.5px solid #fff;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 2px solid #e0e0e0;
}

.skeleton-title {
  height: 28px;
  width: 70%;
  margin: 8px 0 16px 0;
  border-radius: 6px;
}

.skeleton-text {
  height: 18px;
  margin-bottom: 10px;
  border-radius: 4px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 85%;
}

.skeleton-stars {
  height: 22px;
  width: 55%;
  margin-top: 12px;
  border-radius: 4px;
}

@media (min-width: 700px) and (max-width: 1024px) {
  #risultati-artisti {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
    padding: 18px;
  }

  .artista-card {
    max-width: 100%;
    min-width: 240px;
  }

  .utente-ordina-row {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 18px;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  #risultati-artisti {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 12px;
  }

  .artista-card {
    max-width: 100%;
    min-width: 260px;
  }

  #popup-artista .popup-content {
    max-width: 98vw;
    /* box-sizing: border-box; */
    overflow-x: hidden;
  }
  .servizi-cards {
    width: 100%;
    max-width: 100%;
  }
  .servizio-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-left: 0;
  }
}

/* Responsive per mobile */
@media (max-width: 580px) {
  .nav-links {
    display: none;
  }

  .logo-container {
    width: 50%;
    justify-content: center;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px; /* altezza navbar */
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1000;
    padding: 20px 0 10px 0;
    animation: slideDown 0.25s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .nav-list li {
    width: 90%;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 1em 0;
    margin: 0;
    transition: background 0.2s;
  }
  .nav-list li:last-child {
    border-bottom: none;
  }
  .nav-list a {
    color: #ff5757;
    font-size: 1.1em;
    display: block;
    width: 100%;
    padding: 0.5em 0;
    border-radius: 6px;
    transition:
      background 0.2s,
      color 0.2s;
  }
  .nav-list a:hover {
    background: #ffeaea;
    color: #fb1e1e;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    color: #ff5757;
    font-size: 2em;
    cursor: pointer;
    margin-left: 65px;
  }

  .search-artisti-zona {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 18px 10px 0 10px;
    padding: 12px 10px;
    width: auto;
    box-sizing: border-box;
    max-width: 100%;
  }

  .search-artisti-zona label {
    font-size: 1em;
    margin-bottom: 4px;
  }

  .search-artisti-zona input[type="text"] {
    font-size: 1em;
    padding: 8px 10px;
  }

  .search-artisti-zona button {
    width: 100%;
    font-size: 1em;
    padding: 10px 0;
  }

  .autocomplete-list {
    width: 95vw !important;
    max-width: 350px;
    left: 50% !important;
    transform: translateX(-50%);
    top: 95%;
    margin-top: 4px;
    position: absolute;
    z-index: 1000;
    box-sizing: border-box;
  }

  .utente-ordina-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    margin: 16px 8px 0 8px;
    padding: 12px 10px;
    min-height: unset;
    box-shadow: 0 1px 6px rgba(255, 87, 87, 0.1);
    border-radius: 12px;
  }
  #accesso-utente {
    justify-content: center;
    font-size: 0.98em;
  }
  .ordina-artisti-zona label {
    font-size: 1em;
  }
  .ordina-artisti-zona select {
    font-size: 1em;
    padding: 8px 10px;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
  }
  .professione-item.selected {
    border-radius: 50px;
    height: 97px;
  }

  #eventi-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 1em;
    margin-left: 0;
    box-sizing: border-box;
  }
  #eventi-label {
    margin-left: 0;
    display: block;
    margin-bottom: 4px;
  }
}

@media (min-width: 581px) {
  .search-artisti-zona {
    position: relative;
  }
  .autocomplete-list {
    left: auto !important;
    top: 85%;
    margin-top: 4px;
    min-width: 220px;
    max-width: 320px;
    width: 100%;
    transform: none;
    box-sizing: border-box;
  }
}

@media (min-width: 581px) {
  .nav-links {
    display: flex !important;
  }
  .hamburger {
    display: none;
  }
}

/* Miglioramenti navbar per schermi 4K e molto larghi */
@media (min-width: 1800px) {
  .navbar {
    height: 130px;
    font-size: 1.3em;
  }
  .logo-container {
    height: 130px;
    width: 12%;
  }
  .nav-list {
    font-size: 1.3em;
    gap: 60px;
  }
  .nav-list li {
    margin: 0 30px;
  }
}

@media (min-width: 2560px) {
  .navbar {
    height: 110px;
    font-size: 1.3em;
  }
  .logo-container {
    height: 110px;
    width: 10%;
  }
  .nav-list {
    font-size: 1.2em;
    gap: 50px;
  }
  .nav-list li {
    margin: 0 24px;
  }
  .nav-list a {
    font-size: 1.1em;
  }
  .home-icon svg {
    width: 38px;
    height: 38px;
  }
  .search-artisti-zona {
    padding: 22px 28px;
    font-size: 1.1em;
    max-width: 40%;
  }
  .search-artisti-zona label {
    font-size: 1.1em;
  }
  .search-artisti-zona input[type="text"] {
    font-size: 1.1em;
    padding: 12px 18px;
  }
  .search-artisti-zona button {
    font-size: 1.1em;
    padding: 12px 24px;
  }
  .autocomplete-list div {
    font-size: 1.1em;
  }
  .utente-ordina-row {
    gap: 32px;
    padding: 22px 32px;
    font-size: 1.1em;
    border-radius: 20px;
  }
  .ordina-artisti-zona label,
  .ordina-artisti-zona select {
    font-size: 1.1em;
  }
  .professioni-artisti {
    padding: 36px 0 32px 0;
    border-radius: 20px;
    font-size: 1.1em;
  }
  .professione-item,
  .professione-item.selected {
    width: 150px !important;
    height: 150px !important;
  }
  .professione-item img {
    width: 120px;
    height: 120px;
  }
  .professione-item span {
    font-size: 1em;
  }
  .prof-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.1em;
  }
  .artista-card {
    padding: 32px 24px 24px 24px;
    border-radius: 20px;
    font-size: 1.1em;
  }
  .card-info {
    font-size: 1em;
  }
  .stelle-valutazione {
    font-size: 1.2em;
  }
  .valutazione-num {
    font-size: 1em;
  }
  #popup-artista .popup-content {
    padding: 32px 18px;
    border-radius: 20px;
    font-size: 1.1em;
    max-width: 40vw;
  }
  #popup-artista .foto-profilo {
    width: 150px;
    height: 150px;
  }
  #popup-artista h2 {
    font-size: 1.4em;
  }
  #popup-artista p {
    font-size: 1em;
    padding: 10px 24px;
    border-radius: 20px;
  }
  .servizi-lista > b,
  .servizio-nome {
    font-size: 1.1em;
  }
  .servizio-card {
    padding: 18px 20px 14px 20px;
    border-radius: 12px;
    font-size: 1em;
  }
  .servizio-prezzo {
    font-size: 1em;
  }
  .btn-servizio {
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 10px;
  }
  .recensione-section,
  .recensioni-titolo {
    font-size: 1.1em;
  }
  .recensione-card {
    font-size: 1em;
  }
  #paginazione-artisti button {
    width: 48px;
    height: 48px;
    font-size: 1.3em;
  }
  #paginazione-artisti span {
    font-size: 1.1em;
  }
}
