.search-results-popup {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    box-sizing: border-box; /* Make sure padding and border are included in the width */
}

.search-results-popup.show {
    display: block;
}

.search-result-item {
    transition: font-weight 0.07s ease-in, background-color 0.1s ease-in;
    padding: 10px;
    border-bottom: 1px solid var(--primary);
    display: flex;
    align-items: center;
    width: 100%; /* Add this line */
}

.search-result-item:hover {
    font-weight: 800;
    background-color: var(--card-bg);
    /*
    background-color: var(--highlight-bg);
    color: var(--highlight-content);
    */
    cursor: pointer;
}

.clear-search {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary);
    z-index: 10;
    cursor: pointer;
    display: none;
}

.clear-search.show {
    display: block;
}

.search-container .container {
    display: flex;
    justify-content: center;
}

.search-hero {
    height: 70px;
    font-size: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding-left: 20px;
    transition: all 0.3s ease;
}

.search-hero:focus {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-hero::placeholder {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0.5; /* Placeholder color */
}

.search-hero-small {
    height: 38px;
    font-size: 1rem;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding-left: 20px;
    transition: all 0.3s ease;
}

.search-hero-small:focus {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-hero-small::placeholder {
    font-size: 1rem;
    color: var(--primary);
    opacity: 0.5; /* Placeholder color */
}

/* Adatta anche il pulsante di ricerca */
.input-group-append .btn {
    height: 70px;
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    width: 70px;
    font-size: 1.2rem;
}

/* Aggiusta il pulsante di cancellazione */
#clearIndexSearchButtonBig {
    right: 80px; /* Posizione giusta considerando il pulsante di ricerca più grande */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    opacity: 0.5;
}

#clearIndexSearchButtonSmall {
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    opacity: 0.5;
}