/* 🔵 Contenitore delle linee */
.line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #E5E5E5; /* Grigio chiaro */
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}


/* 🔹 Titolo della linea */
.line h6 {
    font-size: 18px;
    font-weight: bold;
    color: #00619A; /* Blu scuro */
    margin-bottom: 8px;
    text-decoration: none;
    flex: 1;
}

/* 🔹 Search bar */
#searchInput {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #61c0e5;
    border-radius: 8px;
    outline: none;
    color: #00619A;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* 🟢 Contenitore dei bottoni */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

/* 🔵 Bottoni di download */
a.pdf-button {
    background: #61c0e5; /* Azzurro inattivo */
    color: white !important; /* Testo bianco sempre */
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid #61c0e5;
}

a.pdf-button:hover {
    background: #e7305b; /* Rosso hover */
    color: white !important; /* Testo bianco su hover */
    border-color: #e7305b;
    text-decoration: none !important;
}

/* 📌 Stile per il menu a tendina */
#suggestionsList {
    width: 300px;
    background: #E5E5E5; /* Grigio caldo */
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 5px 0;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Nasconde il menu a tendina finché non si digita */
}

#suggestionsList li {
    padding: 10px;
    font-size: 16px;
    color: #00619A; /* Blu scuro */
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

#suggestionsList li:hover {
    background: #61c0e5; /* Azzurro */
    color: white;
}

#pdf-popup {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
}
#close-popup {
    background: red;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

#popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    width: 100%;
}

#popup-buttons button {
    background: #61c0e5;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    font-weight: bold;
}

#popup-buttons button:hover {
    background: #e7305b;
	
}

/* 🎨 Mobile: Centrare il testo della linea e il search, e mettere i bottoni sotto */
@media only screen and (max-width: 768px) {
    .line {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .button-container {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    #searchInput {
        text-align: center;
    }
}