.searchbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  padding: 0 1rem;
}

.searchbar-form {
  display: flex;
  background: #f7f7f7;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 800px;
}

.searchbar-form select {
  height: 40px;
  padding: 0 1rem;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 0 0 35%; /* più lungo del 25% */
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#select-categoria {
	width: 200px !important;
	border-style: none;
	background-color: #F7F7F7;
	outline: none;
	box-shadow: none;
}

#search-suggestions {
	color: black;
}

.searchbar-form select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(40, 40, 40, 0.2);
  border-color: #888;
}


.searchbar-form input[type="text"] {
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  flex: 1;
  color: #333;
  outline: none;
}

.searchbar-form button {
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  color: #333;
  cursor: pointer;
}

.searchbar-form button i {
  font-size: 1rem;
}

.searchbar-input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  outline: none;
  color: #333;
}

.searchbar-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.searchbar-btn {
  background: transparent;
  border: none;
  padding: 0 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #222;
  transition: color 0.3s;
}

.searchbar-btn:hover {
  color: #000;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.searchbar-select {
  border: none;
  padding: 10px 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #222;
  font-weight: 500;
  padding-right: 30px; /* spazio per la freccia */
}

/* Freccia a destra */
.select-wrapper::after {
  content: '\f078'; /* icona font-awesome: chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #222;
  font-size: 0.75rem;
}

/* Rimuove la freccia da select su Webkit */
.searchbar-form select::-webkit-inner-spin-button,
.searchbar-form select::-webkit-outer-spin-button {
  appearance: none;
}
