/* SFONDO PERSONALIZZATO */
body {
    background-image: url('img.jpg'); /* Sostituisci con il tuo percorso */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

/* Aggiungi overlay per migliorare leggibilità */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: -1;
}

/* Adatta le card */
.card {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
}


/* NAVBAR */
.navbar.bg-primary {
    height: 80px;
}

.navbar-brand,
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    font-size: 1.7rem;
}

.navbar-brand i {
    font-size: 2.3rem !important;
    margin-right: 12px;
}

.navbar-nav .nav-link {
    font-size: 1.2rem;
    margin-left: 20px;
}

.nav-link.dropdown-toggle i {
    font-size: 1.8rem !important;
    margin-left: 15px;
}

.navbar-toggler {
    margin-top: auto;
    margin-bottom: auto;
}



/* DROPDOWN SCROLL */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 10px;
}

/* EVENT SELECTOR */
.event-selector::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Titolo evento */
h1.display-5 {
    margin-top: 50px; /* Aggiunto margine superiore */
}

/* MOBILE VERSION */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        right: 15px;
        top: 80px;
        width: 200px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1000;
        padding: 10px;
    }

    .navbar-nav {
        text-align: right;
    }

    .nav-item {
        margin: 5px 0;
    }

    .nav-link {
        color: #2c3e50 !important;
        padding: 8px 12px !important;
    }

    .dropdown-menu {
        position: static !important;
        background: white !important;
        border: 1px solid #dee2e6;
        margin-top: 5px;
    }

    .dropdown-item {
        color: #2c3e50 !important;
    }

    .dropdown-toggle::after {
        float: left;
        margin-top: 8px;
    }

    .card-body {
        padding: 1rem !important;
    }

    .form-control {
        height: 40px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .btn-primary {
        padding: 0.5rem !important;
        min-width: 50px;
    }

    h1.display-5 {
        font-size: 1.8rem !important;
        line-height: 2.2rem;
    }
}

.card {
    border-radius: 10px;
    border: none;
}

.input-group-text {
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

@media (max-width: 767px) {
    .card-body {
        padding: 1.5rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }
}

.btn-link:hover {
    text-decoration: underline !important;
}

.bi-arrow-left {
    transition: transform 0.2s ease;
}

.btn-link:hover .bi-arrow-left {
    transform: translateX(-3px);
}

a.text-primary {
    transition: all 0.2s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

a.text-primary:hover {
    opacity: 0.8;
    transform: translateX(-2px);
}

.bi-arrow-left {
    transition: transform 0.2s ease;
}

a.text-primary:hover .bi-arrow-left {
    transform: translateX(-3px);
}

a:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

/* Aggiungi al file stile.css */
.navbar.bg-primary {
    background-color: #0d6efd !important;
}

.text-primary {
    color: #0d6efd !important;
}

.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

/* Aggiungi al file stile.css */
.btn-primary {
    transition: all 0.2s ease-in-out !important;
}

/* Modifica nel file stile.css */
.btn-primary:hover {
    background-color: #0b5ed7 !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    transform: none; /* Rimuove lo spostamento */
}

.btn-primary:active,
.btn-primary:focus:active {
    background-color: #0a58ca !important;
    box-shadow: none !important;
    transform: none; /* Rimuove lo spostamento */
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5) !important;
}

/* Per il dropdown */
.btn-primary.dropdown-toggle {
    background-color: #0d6efd !important;
}

.btn-primary.dropdown-toggle:hover {
    background-color: #0b5ed7 !important;
}

.btn-primary.dropdown-toggle:active {
    background-color: #0a58ca !important;
}

/* Footer Box */
.footer-box {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 0 auto;
}

/* Adatta per mobile */
@media (max-width: 767px) {
    .footer-box {
        width: 90%;
        padding: 12px !important;
    }

    .fixed-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
    }
}

/* Social Links */
.footer-box a {
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
}

.footer-box a:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.footer-box a:hover i {
    color: #0b5ed7 !important;
}

/* Mobile Fix */
@media (max-width: 767px) {
    .footer-box {
        width: auto;
        padding: 10px 20px !important;
    }

    .footer-box a {
        padding: 6px;
    }
}

/* Testo social */
.footer-box span {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Adattamento mobile */
@media (max-width: 767px) {
    .footer-box {
        width: 95% !important;
        padding: 12px 15px !important;
    }

    .footer-box > div {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .footer-box span {
        font-size: 0.85rem;
        margin-right: 15px !important;
    }

    .footer-box a i {
        font-size: 1.1rem !important;
    }
}

/* Aggiungi al file stile.css */
.btn-primary {
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}

.btn-primary i {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Rafforza il contrasto negli stati hover */
.btn-primary:hover {
    color: #fff !important;
    background-color: #0b5ed7 !important;
}

.btn-primary:active {
    color: #fff !important;
}

.bg-primary-gradient {
    transition: all 0.3s ease;
}

.password-strength .progress-bar {
    transition: width 0.3s ease;
}

.step {
    transition: transform 0.3s ease;
}

input:focus, button:focus {
    outline: none; /* Rimuove l'evidenziazione del bordo */
    box-shadow: none; /* Rimuove l'ombra del bordo */
}

button:hover {
    box-shadow: none; /* Rimuove l'ombra al passaggio del mouse */
}

.info-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 30px;
    border: 1px solid rgba(0,0,0,0.1);
}

.info-box p {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.info-box h4 {
    font-weight: 600;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Nel file stile.css */
.dropdown-menu {
    background-color: white !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
}

.dropdown-item {
    background-color: transparent !important;
}

/* Footer Blu */
footer.bg-primary {
    background-color: #0d6efd !important;
    border-top: 3px solid rgba(255,255,255,0.15);
}

footer a:hover {
    color: #e0e0e0 !important;
    text-decoration: underline !important;
}

footer .bi {
    font-size: 1.2rem;
    vertical-align: -2px;
}

/* Nel file stile.css */
footer.bg-primary h5 {
    color: #e0e0e0 !important;
    font-weight: 600;
    margin-bottom: 1rem !important;
}

/* Mantieni il colore originale per gli altri elementi */
footer.bg-primary,
footer.bg-primary li,
footer.bg-primary{
    color: white !important;
}

/* Stile hover per i link */
footer.bg-primary a:hover {
    color: #e0e0e0 !important;
    text-decoration: underline !important;
}

/* Aggiungi questo al file stile.css */
.form-control::placeholder {
    color: #212529 !important; /* Stesso colore del bottone Seleziona evento */
    opacity: 1 !important; /* Rimuove l'opacità default dei placeholder */
}

/* Per il campo date che non usa il placeholder */
.form-control[type="date"] {
    color: #212529 !important;
}

/* Per gli stati vuoti del campo date */
.form-control[type="date"]:invalid {
    color: #212529 !important;
}

@media (max-width: 767px) {
    /* Mobile Form */
    .event-selector,
    .form-control {
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
    }

    .dropdown-menu {
        width: 100% !important;
    }

    .btn-primary {
        font-size: 1.1rem;
        padding: 12px !important;
    }

    /* Spaziatura elementi */
    .card-body .mb-3 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        text-align: right !important;
        padding-right: 15px;
    }

    .nav-item {
        margin: 3px 0 !important;
    }

    .nav-link {
        justify-content: flex-end !important;
        padding: 6px 10px !important;
        font-size: 0.95rem !important;
    }

    /* Nascondi l'icona utente su mobile */
    .nav-item.dropdown {
        display: none !important;
    }

    /* Allinea a destra il menu collapse */
    .navbar-collapse {
        left: auto !important;
        right: 0 !important;
        width: auto !important;
    }
}

/* Fissa il footer in fondo */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

footer.bg-primary {
    margin-top: auto;
}

/* ================================================================== */
/* ========= REGOLE PER LO SPAZIO TRA LE CARD (DEFINITIVO) ========= */
/* ================================================================== */

#ridesContainer .col-12 {
    margin-bottom: 1.5rem; /* Aggiunge spazio SOTTO ogni colonna che contiene una card */
}

#ridesContainer .col-12:last-child {
    margin-bottom: 0; /* Rimuove lo spazio dall'ultima card */
}

/* Stile generale per le card dentro il container */
#ridesContainer .card {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease-in-out;
    border-radius: 12px !important;
    margin-bottom: 1 !important;
}


#ridesContainer .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

#ridesContainer .text-start {
    text-align: left !important;
}

/* Nuova classe per il bottone medio */
.btn-md {
    padding: 0.5rem 1.1rem !important;
    font-size: 1.05rem !important;
    border-radius: 0.4rem !important;
}

/* Modifica nel file stile.css */
.align-button-bottom {
    align-items: flex-end !important;
    padding-bottom: 3px; /* Regola questo valore per l'allineamento preciso */
}

.container.mt-3 {
    flex: 1;
    width: 100%;
}

#searchButton:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.7;
    cursor: not-allowed;
}

#searchButtonDesktop:disabled,
#searchButtonMobile:disabled,
#searchButtonDesktopUtente:disabled,
#searchButtonMobileUtente:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Testo nero solo per campi compilati/selezionati */
#offerForm input:not(:placeholder-shown),
#offerForm select:valid,
#offerForm input:focus,
#offerForm select:focus {
    color: #000 !important;
    font-weight: 500;
}

/* Stato iniziale dei campi vuoti */
#offerForm input::placeholder,
#offerForm select:invalid {
    color: #6c757d !important; /* Colore originale Bootstrap */
}

/* Placeholder durante la digitazione */
#offerForm input:focus::placeholder {
    opacity: 0.7;
}

/* Opzioni della select */
#offerForm option {
    color: #000 !important;
    background: white;
}

/* Stile per i dropdown e l'input nella home */
#eventDropdownButton, #typeDropdownButton,
#eventDropdownButtonMobile, #typeDropdownButtonMobile,
#passengerInput, #passengerInputMobile {
    transition: all 0.2s ease;
}

/* Testo nero quando selezionato o compilato */
#eventDropdownButton[data-selected="true"],
#typeDropdownButton[data-selected="true"],
#eventDropdownButtonMobile[data-selected="true"],
#typeDropdownButtonMobile[data-selected="true"],
#passengerInput:not(:placeholder-shown),
#passengerInputMobile:not(:placeholder-shown) {
    color: #000 !important;
    font-weight: 500;
}

/* Stato iniziale dei campi vuoti */
#eventDropdownButton[data-selected="false"],
#typeDropdownButton[data-selected="false"],
#eventDropdownButtonMobile[data-selected="false"],
#typeDropdownButtonMobile[data-selected="false"],
#passengerInput::placeholder,
#passengerInputMobile::placeholder {
    color: #6c757d !important; /* Colore originale Bootstrap */
}

/* Focus state */
#eventDropdownButton:focus, #typeDropdownButton:focus,
#eventDropdownButtonMobile:focus, #typeDropdownButtonMobile:focus,
#passengerInput:focus, #passengerInputMobile:focus {
    color: #000 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Placeholder durante la digitazione */
#passengerInput:focus::placeholder,
#passengerInputMobile:focus::placeholder {
    opacity: 0.7;
}

/* Stile specifico per il form di richiesta */
#loginForm input:not(:placeholder-shown),
#loginForm select:valid,
#loginForm input:focus,
#loginForm select:focus,
#registrationForm input:not(:placeholder-shown),
#registrationForm select:valid,
#registrationForm input:focus,
#registrationForm select:focus,
#offerForm input:not(:placeholder-shown),
#offerForm select:valid,
#offerForm input:focus,
#offerForm select:focus,
#requestForm input:not(:placeholder-shown),
#requestForm select:valid,
#requestForm input:focus,
#requestForm select:focus {
    color: #000 !important;
    font-weight: 500;
}

/* Stato iniziale campi vuoti */
#loginForm input::placeholder,
#loginForm select:invalid,
#registrationForm input::placeholder,
#registrationForm select:invalid,
#offerForm input::placeholder,
#offerForm select:invalid,
#requestForm input::placeholder,
#requestForm select:invalid {
    color: #6c757d !important;
}

/* Placeholder durante la digitazione */
#registrationForm input:focus::placeholder, #loginForm input:focus::placeholder,
#offerForm input:focus::placeholder, #requestForm input:focus::placeholder {
    opacity: 0.7;
}

/* Opzioni select */
#registrationForm option, #loginForm option,
#offerForm option, #requestForm option {
    color: #000 !important;
    background: white;
}

/* Focus state migliorato */
#offerForm .form-control:focus,
#offerForm .form-select:focus,
#requestForm .form-control:focus,
#offerForm .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Etichette mantenute come nello stile originale */
#offerForm .form-label, #requestForm .form-label {
    color: #212529 !important;
    opacity: 0.9;
}

/* Forza il testo nero in tutti gli stati */
.form-control,
.form-control:focus,
.form-control:not(:placeholder-shown) {
    color: #000 !important;
}

/* Sovrascrive eventuali regole Bootstrap */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #000 !important;
}

/* STILI SPECIFICI PER UTENTE.HTML */
.user-profile {
    /* Overlay più chiaro */
    &::after {
        background: rgba(255, 255, 255, 0.92) !important;
    }

    .hover-scale {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
        }
    }

    .bg-light {
        background-color: rgba(248, 249, 250, 0.95) !important;
    }

    .border-primary {
        border: 1px solid rgba(13, 110, 253, 0.35) !important;
    }

    .bi-patch-check-fill {
        vertical-align: text-top;
        filter: drop-shadow(0 1px 1px rgba(13, 110, 253, 0.25));
    }

    .btn {
        border-radius: 8px !important;
        transition: all 0.2s ease-in-out !important;
    }

    .avatar-wrapper img {
        border: 2px solid rgba(13, 110, 253, 0.2) !important;
    }

    .form-floating label {
        opacity: 0.85;
        font-weight: 500;
    }
}

#confirmButton:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.7;
    cursor: not-allowed;
}

#confirmButton:disabled:hover {
    background-color: #6c757d !important;
    transform: none;
    box-shadow: none;
}

#ridesContainer .card-body {
    padding: 1.5rem 2rem !important;
}

#ridesContainer .text-dark {
    color: #333 !important;
    font-weight: 500;
}

#ridesContainer .fs-6 {
    font-size: 1rem !important;
}

#ridesContainer .bi {
    font-size: 1.2rem;
    min-width: 24px;
}

#ridesContainer .btn-danger {
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    #ridesContainer .card-body {
        padding: 1.25rem !important;
    }

    #ridesContainer .d-flex {
        flex-direction: column;
        align-items: start !important;
        gap: 1rem !important;
    }

    #ridesContainer .btn-danger {
        width: 100%;
        margin-top: 1rem;
    }

    #ridesContainer .fs-6 {
        font-size: 0.95rem !important;
    }
}

#ridesContainer .card-body {
    padding: 1.25rem 1.5rem !important;
}

#ridesContainer .text-black {
    color: #222 !important;
}

#ridesContainer .fs-4 {
    font-size: 1.35rem !important;
}

#ridesContainer .fs-5 {
    font-size: 1.1rem !important;
}

#ridesContainer .bi { /* Già definito sopra */
    font-size: 1.3rem;
    opacity: 0.9;
}

#ridesContainer .btn-link:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #ridesContainer .fs-4 {
        font-size: 1.25rem !important;
    }

    #ridesContainer .fs-5 {
        font-size: 1rem !important;
    }

    #ridesContainer .bi { /* Già definito sopra */
        font-size: 1.2rem;
    }

    #ridesContainer .d-flex { /* Già definito sopra per mobile */
        gap: 0.75rem !important;
    }
}

/* Aggiustamenti CSS */
#ridesContainer .text-primary {
    color: #0d6efd !important; /* Mantiene il blu originale */
}

#ridesContainer .btn-danger { /* Già definito sopra */
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.9rem;
}

#ridesContainer .btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}

#ridesContainer .btn-danger i {
    font-size: 1rem;
    vertical-align: -1px;
}

/* Aggiungi al CSS */
#ridesContainer .btn-link.text-danger {
    transition: all 0.2s ease;
    text-decoration: none !important;
}

#ridesContainer .btn-link.text-danger:hover {
    transform: scale(1.1);
    filter: brightness(0.8);
}

#ridesContainer .btn-link.text-danger:hover small {
    text-decoration: underline;
}

#ridesContainer .bi-trash {
    filter: drop-shadow(0 1px 1px rgba(220, 53, 69, 0.2));
}

@media (max-width: 768px) {
    #ridesContainer .bi-trash {
        font-size: 1.5rem !important;
    }

    #ridesContainer .btn-link.text-danger small {
        font-size: 0.65rem !important;
    }
}

#ridesContainer .btn-danger, /* Già definito sopra */
#ridesContainer .btn-link.text-danger { /* Già definito sopra */
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    border: none !important;
}

#ridesContainer .btn-link.text-danger:hover { /* Già definito sopra */
    transform: none !important;
    filter: none !important;
}

#ridesContainer .bi-trash { /* Già definito sopra */
    filter: none !important;
    transition: none !important;
}

/* Stile icona cestino */
#ridesContainer .btn-danger { /* Già definito sopra */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#ridesContainer .btn-danger:hover { /* Già definito sopra */
    opacity: 0.7;
}

#ridesContainer .btn-danger .bi-trash { /* Già definito sopra */
    color: #dc3545 !important;
}

/* Nel file stile.css */
#ridesContainer .btn-danger .bi-trash { /* Già definito sopra */
    color: #6c757d !important; /* Colore grigio Bootstrap */
    transition: color 0.2s ease;
}

#ridesContainer .btn-danger:hover .bi-trash { /* Già definito sopra */
    color: #dc3545 !important; /* Rosso solo al hover */
    filter: drop-shadow(0 1px 1px rgba(220, 53, 69, 0.2));
}

#ridesContainer .btn-danger { /* Già definito sopra */
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#ridesContainer .btn-danger:hover { /* Già definito sopra */
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.card { /* Già definito sopra */
    background-color: white !important; /* Sostituisce il rgba trasparente */
    backdrop-filter: none !important; /* Rimuove l'effetto blur */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Rimuovi sfondo e overlay solo per gestisciPassaggi.html */
body.tintaUnita {
    background: white !important;
    background-image: none !important;
}

body.tintaUnita::after {
    content: none !important;
}

/* Mantieni il colore bianco per le card */
body.tintaUnita .card {
    background-color: white !important;
    backdrop-filter: none !important;
}

/* Stile Filtri */
#filtersForm .form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#filtersForm .form-control,
#filtersForm .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

#filtersForm .form-control:focus,
#filtersForm .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#filtersForm button {
    margin-top: 1rem;
    padding: 0.75rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-md-3 {
        order: -1; /* Sposta i filtri sopra i risultati su mobile */
        margin-bottom: 2rem;
    }
}

/* Nel file stile.css - Aggiungi queste regole */
#filtersForm .form-select {
    color: #2c3e50 !important; /* Stesso colore degli altri campi */
}

#filtersForm .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Mantieni le regole esistenti per coerenza */
#filtersForm .form-control,
#filtersForm .form-select { /* Già definito sopra */
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    color: #2c3e50; /* Aggiunto per uniformità */
}

/* Fix spazio noResultsCard dopo eliminazione */
#noResultsCard {
    margin-top: 1.5rem !important; /* Spazio controllato sopra */
    margin-bottom: 0 !important;
}

#noResultsCard .card {
    margin-bottom: 0 !important;
    box-shadow: none !important; /* Rimuovi ombra se presente */
    border: 1px solid rgba(0,0,0,0.1) !important; /* Mantieni bordo sottile */
}

#noResultsCard .card-body {
    padding: 1.5rem !important; /* Riduci padding interno */
    text-align: center;
}

#noResultsCard h5 {
    margin-bottom: 0.5rem !important; /* Spazio ridotto sotto il testo */
    font-size: 1.1rem;
    color: #6c757d !important; /* Colore più soft */
}

/* stile.css */
#noResultsCard { /* Già definito sopra */
    margin-top: 0 !important; /* Toglie il margine superiore */
    margin-bottom: 0 !important;
}

/* Reset margini ereditati dal container */
#noResultsCard .card { /* Già definito sopra */
    margin: 0 !important;
    border: none !important; /* Opzionale: rimuove il bordo se non serve */
}

/* Allinea il testo al centro senza spazi extra */
#noResultsCard .card-body { /* Già definito sopra */
    padding: 1.5rem 1rem !important;
    text-align: center;
}

/* Spaziatura testo */
#noResultsCard h5 { /* Già definito sopra */
    margin: 0 !important;
    padding: 0.5rem 0;
    line-height: 1.4;
}

/* Aggiungi al file stile.css */
#noResultsCard .card { /* Già definito sopra */
    min-height: 120px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    margin-bottom: 1.5rem !important;
    background: white !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#noResultsCard .card-body { /* Già definito sopra */
    padding: 1.5rem 2rem !important;
    width: 100%;
}

#noResultsCard h5 { /* Già definito sopra */
    font-size: 1.35rem !important;
    color: #333 !important;
    margin: 0 !important;
}

/* Aggiungi questa regola al file stile.css */
#descriptionInput::placeholder {
    color: #6c757d !important; /* Stesso colore del placeholder dell'indirizzo */
    opacity: 1 !important;
}

/* Aggiungi al file stile.css */
.btn-details {
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.btn-details i {
    font-size: 1rem;
    vertical-align: middle;
}

/* quando DISABILITATO: grigio */
#clearFiltersButton:disabled {
    background-color: #6c757d;   /* grigio Bootstrap */
    border-color:     #6c757d;
    color:            #ffffff;
    cursor:           not-allowed;
    opacity:          1;         /* forza piena opacità */
}

/* quando ABILITATO: rosso */
#clearFiltersButton:not(:disabled) {
    background-color: #dc3545;   /* rosso Bootstrap Danger */
    border-color:     #dc3545;
    color:            #ffffff;
    cursor:           pointer;
}

.map-placeholder {
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #0d6efd;
}
.user-info-card {
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
}

#cookieConsent {
    background-color: #ffffff !important;
    border-top: 1px solid #dee2e6;
}
#cookieConsent h5 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
#cookieConsent p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}
#cookieConsent a {
    color: #0d6efd;
}
/* Rimuovere eventuale alone/pattern di focus dal pulsante */
#acceptCookies {
    box-shadow: none !important;
}
#acceptCookies:focus {
    outline: none;
    box-shadow: none;
}

#cookieConsent { /* Già definito sopra */
    max-width: 90%;
    border: 1px solid #dee2e6;
    background-color: #ffffff !important;
}

/* Rendi il testo giustificato e leggibile */
#cookieConsent p { /* Già definito sopra */
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Pulsante Rifiuta: sfondo bianco, testo blu */
#rejectCookies {
    background-color: #ffffff;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    box-shadow: none !important;
}
#rejectCookies:hover, #rejectCookies:focus {
    background-color: #e7f1ff;
    color: #0d6efd;
    outline: none;
    box-shadow: none;
}

/* Pulsante Accetta: sfondo blu, testo bianco */
#acceptCookies { /* Già definito sopra */
    background-color: #0d6efd;
    color: #ffffff;
    border: none;
    box-shadow: none !important;
}
#acceptCookies:hover, #acceptCookies:focus { /* Già definito sopra */
    background-color: #0b5ed7;
    color: #ffffff;
    outline: none;
    box-shadow: none;
}

#cookieConsent h4 {
    color: #0d6efd;
}

#cookieConsent h4 { /* Duplicato, può essere rimosso */
    color: #0d6efd;
}

#cookieOverlay {
    position: fixed;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
}

#cookieConsent h4 { /* Duplicato, può essere rimosso */
    color: #0d6efd;
}

#cookieOverlay { /* Già definito sopra */
    position: fixed;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

/* Pulsanti e testo piccoli su mobile */
@media (max-width: 576px) {
    #cookieConsent .btn {
        width: 100%;
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    #cookieConsent .small,
    #cookieConsent p,
    #cookieConsent strong {
        font-size: 0.8rem;
    }
    #cookieConsent {
        padding: 1rem !important;
        border-radius: 0;
        max-width: 100% !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
    }
}

/* MOBILE RESPONSIVE FOR RIDE CARDS */
@media (max-width: 767px) {
    #ridesContainer .card-body { /* Già definito sopra */
        padding: 1rem !important;
    }

    #ridesContainer .d-flex.justify-content-between { /* Già definito sopra */
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    #ridesContainer .w-100.pe-4 { /* Già definito sopra */
        width: 100% !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
    }

    #ridesContainer .d-flex.gap-3 { /* Già definito sopra */
        flex-wrap: wrap;
        gap: 0.75rem !important;
        margin-top: 0.5rem;
    }

    #ridesContainer .d-flex.align-items-center.gap-2 { /* Già definito sopra */
        flex: 1 1 45%;
        min-width: 45%;
    }

    #ridesContainer .d-flex.align-items-center.gap-3 { /* Già definito sopra */
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    #ridesContainer .btn-primary.me-3 { /* Già definito sopra */
        margin-right: 0 !important;
        width: 100%;
        order: -1;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    #ridesContainer .d-flex.flex-column.align-items-center.gap-1 { /* Già definito sopra */
        flex-direction: row !important;
        justify-content: space-between;
        width: 100%;
        margin-top: 0.5rem;
    }

    #ridesContainer .text-black.opacity-75 { /* Già definito sopra */
        font-size: 0.8rem !important;
    }

    #ridesContainer .bi-trash { /* Già definito sopra */
        font-size: 1.2rem !important;
    }

    #ridesContainer h5.text-primary { /* Già definito sopra */
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    #ridesContainer .text-black.fs-5 { /* Già definito sopra */
        font-size: 0.9rem !important;
    }

    #ridesContainer .bi { /* Già definito sopra */
        font-size: 1rem !important;
    }
}

/* Additional touch optimization */
@media (hover: none) and (pointer: coarse) {
    #ridesContainer .btn {
        min-height: 44px;
        padding: 0.75rem !important;
    }

    #ridesContainer .btn-danger {
        touch-action: manipulation;
    }
}

.pac-container {
    z-index: 10000 !important;
}

/* MOBILE COMPACT CARD LAYOUT */
@media (max-width: 767px) {
    #ridesContainer .card { /* Già definito sopra */
        margin-bottom: 0.75rem !important;
    }

    #ridesContainer .card-body { /* Già definito sopra */
        padding: 1rem !important;
    }

    #ridesContainer .d-flex.justify-content-between { /* Già definito sopra */
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
    }

    #ridesContainer .w-100.pe-4 { /* Già definito sopra */
        width: auto !important;
        flex-grow: 1;
        padding-right: 0 !important;
        border-bottom: none;
        padding-bottom: 0;
    }

    #ridesContainer .d-flex.flex-column.flex-md-row.gap-3 { /* Già definito sopra */
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.75rem !important;
        margin-right: 0.5rem;
    }

    #ridesContainer .d-flex.align-items-center.gap-2 { /* Già definito sopra */
        flex-direction: column;
        gap: 0.25rem !important;
        text-align: center;
        min-width: 60px;
    }

    #ridesContainer .d-flex.align-items-center.gap-2 .bi { /* Già definito sopra */
        font-size: 1.1rem !important;
    }

    #ridesContainer .text-black.fs-5 { /* Già definito sopra */
        font-size: 0.75rem !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    #ridesContainer h5.text-primary { /* Già definito sopra */
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    #ridesContainer .d-flex.align-items-center.gap-3 { /* Già definito sopra */
        flex-direction: column !important;
        gap: 0.25rem !important;
        align-items: flex-end;
    }

    #ridesContainer .btn-primary.me-3 { /* Già definito sopra */
        margin-right: 0 !important;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: auto;
        order: 0;
    }

    #ridesContainer .d-flex.flex-column.align-items-center.gap-1 { /* Già definito sopra */
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    #ridesContainer .text-black.opacity-75 { /* Già definito sopra */
        font-size: 0.7rem !important;
    }

    #ridesContainer .bi-trash { /* Già definito sopra */
        font-size: 1rem !important;
    }
}

@media (max-width: 767px) {
    #ridesContainer .d-flex.align-items-center.gap-3 { /* Già definito sopra */
        flex-direction: column !important;
        width: 100%;
        margin-top: 0.75rem;
        align-items: stretch !important;
    }

    #ridesContainer .btn-primary.me-3 { /* Già definito sopra */
        width: 100%;
        margin-right: 0 !important;
        order: 1;
        padding: 0.5rem;
    }

    #ridesContainer .d-flex.flex-column.align-items-center.gap-1 { /* Già definito sopra */
        order: 2;
        width: 100%;
        flex-direction: row !important;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    #ridesContainer .btn-danger { /* Già definito sopra */
        background-color: #dc3545 !important;
        border: 1px solid #dc3545 !important;
        color: white !important;
        width: 100%;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    #ridesContainer .btn-danger .bi-trash { /* Già definito sopra */
        color: white !important;
        font-size: 1rem !important;
    }

    #ridesContainer .text-black.opacity-75 { /* Già definito sopra */
        display: none; /* Nasconde la data */
    }
}

@media (max-width: 767px) {
    /* Riorganizzazione contenuto card */
    #ridesContainer .card-body > .d-flex { /* Già definito sopra */
        flex-direction: column !important;
        min-height: 180px; /* Altezza minima card */
    }

    /* Contenitore pulsanti in fondo */
    #ridesContainer .d-flex.align-items-center.gap-3 { /* Già definito sopra */
        width: 100%;
        margin-top: auto; /* Spinge i pulsanti in fondo */
        padding-top: 0.75rem;
        border-top: 1px solid #dee2e6;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Bottone Dettagli */
    #ridesContainer .btn-primary.me-3 { /* Già definito sopra */
        width: 100%;
        margin: 0 !important;
        order: 1;
        border-radius: 8px !important;
        padding: 0.6rem;
    }

    /* Contenitore cestino */
    #ridesContainer .d-flex.flex-column.align-items-center.gap-1 { /* Già definito sopra */
        width: 100%;
        flex-direction: row !important;
        justify-content: flex-end;
    }

    /* Bottone Elimina */
    #ridesContainer .btn-danger { /* Già definito sopra */
        background-color: #dc3545 !important;
        border: none !important;
        color: white !important;
        width: 100%;
        padding: 0.6rem;
        border-radius: 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    #ridesContainer .btn-danger .bi-trash { /* Già definito sopra */
        color: white !important;
        font-size: 1.1rem !important;
        margin-right: 0.25rem;
    }

    /* Nascondi data su mobile */
    #ridesContainer .text-black.opacity-75 { /* Già definito sopra */
        display: none;
    }

    /* Adatta sezione informazioni */
    #ridesContainer .w-100.pe-4 { /* Già definito sopra */
        padding-bottom: 0.5rem;
        margin-bottom: auto;
    }

    #ridesContainer .d-flex.flex-column.flex-md-row.gap-3 { /* Già definito sopra */
        gap: 1rem !important;
        justify-content: space-between;
    }
}

/* Aggiungi queste regole al file stile.css */
@media (max-width: 767px) {
    /* Container principale card */
    #ridesContainer .card { /* Già definito sopra */
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }

    /* Corpo della card */
    #ridesContainer .card-body { /* Già definito sopra */
        padding: 1.25rem !important;
    }

    /* Layout contenuti mobile */
    #ridesContainer .d-flex.justify-content-between { /* Già definito sopra */
        flex-direction: column !important;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Sezione informazioni */
    #ridesContainer .w-100.pe-4 { /* Già definito sopra */
        width: 100% !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
    }

    /* Icone e testo */
    #ridesContainer .d-flex.align-items-center.gap-2 { /* Già definito sopra */
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    /* Pulsanti azione */
    #ridesContainer .d-flex.gap-3 { /* Già definito sopra */
        width: 100%;
        justify-content: space-between;
    }

    /* Dimensione testo */
    #ridesContainer h5.text-primary { /* Già definito sopra */
        font-size: 1.1rem !important;
    }

    #ridesContainer .text-black.fs-5 { /* Già definito sopra */
        font-size: 0.9rem !important;
    }

    /* Pulsante Elimina */
    #ridesContainer .btn-danger { /* Già definito sopra */
        width: 100%;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Icona cestino */
    #ridesContainer .btn-danger .bi-trash { /* Già definito sopra */
        font-size: 1.1rem !important;
    }
}

.form-select {
    color: #000 !important;
}

.no-time-icon::-webkit-calendar-picker-indicator {
    display: none !important;
}

.no-time-icon {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Aggiungi al file stile.css */
.card-body .d-flex.justify-content-between { /* Già definito sopra */
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width: 767px) {
    .card-body .d-flex.justify-content-between { /* Già definito sopra */
        flex-direction: column;
        gap: 0.5rem;
    }

    .d-flex.flex-column.gap-2.me-3 {
        width: 100%;
        margin-top: 1rem;
        margin-right: 0 !important;
    }

    .btn-sm {
        width: 100%;
        padding: 0.5rem;
    }
}

.bi-calendar {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

@media (max-width: 767px) {
    .d-flex.justify-content-between.align-items-start { /* Già definito sopra */
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .d-flex.align-items-center.gap-2 { /* Già definito sopra */
        align-self: flex-end;
    }
}

.event-title {
    display: inline-block;
    max-width: 100%;
}

/* Aggiungi al file stile.css */
.event-title { /* Già definito sopra */
    color: #0d6efd !important;
    max-width: 65%;
    display: inline-block;
    vertical-align: middle;
}


/* Per la versione desktop */
#eventDropdownButton.event-selector,
#eventDropdownButton.event-selector[data-selected="true"],
#eventDropdownButton.event-selector[data-selected="false"] {
    color: #0d6efd !important;
    font-weight: bold;
}

/* Per la versione mobile */
#eventDropdownButtonMobile.event-selector,
#eventDropdownButtonMobile.event-selector[data-selected="true"],
#eventDropdownButtonMobile.event-selector[data-selected="false"] {
    color: #0d6efd !important;
    font-weight: bold;
}

/* Stile per il bottone Trova */
#searchButtonDesktop,
#searchButtonDesktopUtente {
    font-weight: bold !important;
}

#searchButtonMobile,
#searchButtonMobileUtente {
    font-weight: bold !important;
}

/* Stile per Onda Verde (aggiungere a stile.css) */
.info-box .display-6 {
    font-size: 2.5rem; /* Più grande per i numeri */
    margin-bottom: 0.25rem;
}

#userBadgesDisplay .badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em !important;
    margin-bottom: 0.5rem; /* Spazio tra i badge se vanno a capo */
}

/* Stile per la progress bar dell'obiettivo community */
#communityGoalProgress {
    font-size: 0.8rem;
    font-weight: bold;
    color: #212529; /* Testo scuro per leggibilità su barre chiare */
}
.progress-bar.bg-warning { /* Specifico per la barra gialla */
    color: #212529 !important;
}


/* Classi per colori badge (puoi personalizzarli) */
.bg-bronze {
    background-color: #cd7f32 !important; /* Color bronzo */
    color: white;
}
.bg-silver {
    background-color: #c0c0c0 !important; /* Color argento */
    color: #212529; /* Testo scuro per leggibilità */
}
.bg-gold {
    background-color: #ffd700 !important; /* Color oro */
    color: #212529; /* Testo scuro per leggibilità */
}

.eco-section-title {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
    display: inline-block;
    font-weight: 600;
}

.eco-card .card-title i {
    font-size: 1.5rem;
    vertical-align: middle;
}
.eco-card .card-body {
    min-height: 150px; /* Altezza minima per allineamento */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pulsante Rifiuta: sfondo bianco, testo blu */
#rejectCookies {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
}

#rejectCookies:hover,
#rejectCookies:focus {
    background-color: #0b5ed7 !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: none;
}

.navbar-brand img {
    height: 40px; /* Regola l'altezza desiderata */
    margin-right: 6px; /* Spazio tra il logo e il testo */
    transform: translateY(-2px);
    vertical-align: middle; /* Allinea verticalmente il logo con il testo */
}

button.btn.btn-success.btn-xxs.w-10 {
    background-color: #66bfff !important;
    border-color: #66bfff !important;
    color: white !important;
    font-weight: 600;
    font-size: 1.2rem !important;
    padding: 0.75rem 1.5rem !important;
}

button.btn.btn-success.btn-xxs.w-10:hover {
    background-color: #4aaeff !important;
    border-color: #4aaeff !important;
}

.event-title {
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .event-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

button.btn.btn-primary.btn-sm.w-100 {
    font-weight: 600;
    font-size: 1.2rem !important;
    padding: 0.75rem 1.5rem !important;
}

.form-check-input.is-invalid ~ .form-check-label {
    color: inherit !important;
}


/* ================================================================== */
/* ========= REGOLE MODIFICATE PER SPAZIO E BOTTONI ========= */
/* ================================================================== */

/* Ingrandisce i bottoni "Modifica" ed "Elimina" nella pagina dei passaggi offerti */
.btn-edit-offer, .btn-delete-offer {
    padding: 0.6rem 1.2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/*
 * Stile per i bottoni "Dettagli" e "Prenota"
*/

/* Stile comune per entrambi i bottoni */
[name="btn-dettagli"],
[name="btn-prenota"] {
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    margin-top: 0 !important;
    display: inline-block !important;
    color: white !important;
    text-align: center !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    background-color: #007bff !important; /* Azzurro */
}

[name="btn-dettagli"]:hover,
[name="btn-prenota"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background-color: #0056b3 !important; /* Azzurro più scuro */
}

/* ================================================================== */
/* ========= NUOVI STILI PER LA BARRA FILTRI MIGLIORATA ========= */
/* ================================================================== */

.filter-card {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden; /* Per i bordi arrotondati dell'header */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.filter-card-header {
    background: linear-gradient(to right, #0d6efd, #0dcaf0); /* Gradiente blu */
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.filter-card-header h5 {
    font-weight: 600;
    margin-bottom: 0;
}

.filter-card .card-body {
    padding: 1.5rem;
}

.filter-card .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.filter-card .form-control,
.filter-card .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.65rem 1rem;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    font-weight: 500;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    background-color: #fff;
}

.filter-card .btn-primary {
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.filter-card .btn-light {
    border-radius: 8px;
    padding: 0.65rem;
    line-height: 1.5; /* Per allineare l'icona */
    transition: all 0.2s ease-in-out;
}

.filter-card .btn-light:hover {
    background-color: #e2e6ea;
    transform: translateY(-1px);
}

#eventDropdownButton,
#eventDropdownButtonMobile {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contenitore pulsanti: verticale e centrato */
.card .d-flex.flex-column.flex-sm-row.align-items-stretch.align-items-sm-end.gap-2.ms-sm-auto.mt-2.mt-sm-0 {
    flex-direction: column !important; /* uno sotto l’altro */
    align-items: center !important;    /* centrati */
    gap: 0.5rem !important;
}

/* Bottoni ovali, più grandi e leggibili */
.card .d-flex.flex-column.flex-sm-row.align-items-stretch.align-items-sm-end.gap-2.ms-sm-auto.mt-2.mt-sm-0 .btn {
    font-size: 1.05rem !important;
    padding: 0.7rem 1.5rem !important;
    min-height: 46px !important;
    border-radius: 50px !important;  /* ovale */
}

/* Assicura che il bottone Dettagli stia centrato sotto Prenota */
.card .d-flex.flex-column.flex-sm-row.align-items-stretch.align-items-sm-end.gap-2.ms-sm-auto.mt-2.mt-sm-0 .btn + .btn {
    margin-top: 0.5rem !important;
}

.modal-header .modal-title {
    color: white !important;
}