html {
    width: 100%;
}

body {
    overflow-x: clip;
    width: 100%;
}

.hidden {
    display: none;
}

.bold {
    font-weight: bold;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

/* BLOCCO SCROLL BODY (per popup) - SENZA SALTI */
html.no-scroll,
body.no-scroll,
body.filter-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* OVERLAY SCURO DIETRO IL POPUP */
.swal-overlay {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* STILI POPUP SWEETALERT - DESIGN PREMIUM GRANDE E CENTRATO */
.swal-modal {
    border-radius: 20px !important;
    padding: 0 !important;
    max-width: 500px !important;
    width: 90% !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3) !important;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    background: linear-gradient(145deg, #ffffff 0%, #f4f7f6 100%) !important;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.swal-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin-bottom: 0 !important;
    padding: 30px 30px 15px 30px !important;
    border-bottom: none !important;
    font-family: 'Outfit', sans-serif !important;
}

.swal-text {
    padding: 0 30px 30px 30px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    color: #4a5568 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.swal-text p {
    margin-bottom: 12px !important;
}

.swal-text strong {
    color: #0F172A !important;
    font-weight: 700 !important;
}

.swal-text h1,
.swal-text h2,
.swal-text h3 {
    color: #0F172A !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.swal-footer {
    padding: 20px 30px !important;
    background: transparent !important;
    border-top: none !important;
    text-align: center !important;
    margin-top: 0 !important;
}

/* Pulsante Chiudi - Design Premium */
.swal-button {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%) !important;
    border-radius: 50px !important;
    padding: 12px 36px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 55, 0.2) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    color: #ffffff !important;
}

.swal-button:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 55, 0.3) !important;
}

.swal-button:active {
    transform: translateY(0) !important;
}

/* Fix width alert icon */
.swal-icon {
    margin: 30px auto 0 auto !important;
}

/* ########################################################  */

.logo {
    margin-left: 50px;
}

#header {
    background: rgb(180, 182, 216);


}

#menu {
    display: inline-block;
    text-align: center;
}

/* Stili per la barra di navigazione */


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0F172A;
    height: 75px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: top 0.3s ease-in-out;
}

body {
    padding-top: 75px;
    /* Offset for fixed navbar */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Stile per il logo del brand */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 5px 0;
    text-decoration: none;
}

/* Stile per il pulsante di toggling */
.navbar-toggler {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    /* Colore dell'icona */
}

/* Stili per la lista di navigazione */
.navbar-nav {
    display: flex;
    /* Usa Flexbox per disporre gli elementi orizzontalmente */
    align-items: center;
    /* Allinea verticalmente gli elementi */
    list-style: none;
    /* Rimuove i punti elenco */
    padding: 0;
    margin: 0;
    flex-direction: row;
}

/* Stile per gli elementi della lista di navigazione */
.navbar-nav .nav-item {
    margin: 0 20px;
    /* Margine orizzontale tra gli elementi */
}

/* Stile per i link di navigazione */
.navbar-nav .nav-link {
    font-size: 1.1em;
    color: #fff;
    /* Colore del testo */
    text-decoration: none;
    transition: color 0.3s;
}

/* Effetto hover sui link di navigazione */
.navbar-nav .nav-link:hover {
    color: #5c82aa;
    /* Colore di hover */
}

/* Stile per il blocco di login */
.login {
    display: flex;
    align-items: center;
    margin-right: 20px;
    /* Margine dal bordo destro */
}

/* Stile per i link di login */
.login .nav-link {
    font-size: 1.1em;
    color: #fff;
    /* Colore del testo */
    text-decoration: none;
    transition: color 0.3s;
}

/* Effetto hover sui link di login */
.login .nav-link:hover {
    color: #5c82aa;
    /* Colore di hover */
}

/* Stile per l'icona di login */
.login i {
    margin-right: 5px;
}

/* Stili per schermi piccoli (dispositivi mobili) */
/* Stili per schermi piccoli (dispositivi mobili) */
@media (max-width: 800px) {
    .navbar .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        justify-items: center;
        align-items: center;
    }

    .navbar-brand {
        justify-self: start;
        margin-right: 0 !important;
    }

    .login {
        justify-self: end;
        margin-right: 0 !important;
    }

    .navbar-toggler {
        display: block;
        margin: 0 !important;
        grid-column: 2;
        padding: 0;
    }

    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        grid-column: 1 / span 3;
    }

    .navbar-nav.show {
        display: flex;
    }

    .navbar-nav .nav-item {
        margin: 10px 0;
    }
}

/* Mobile header: reduce logo and spacing */
@media (max-width: 575px) {
    body {
        padding-top: 75px;
    }

    .navbar {
        height: 75px;
        padding: 0;
    }

    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .navbar-brand img {
        height: 48px !important;
    }

    .navbar-brand {
        margin-right: 8px !important;
    }

    .navbar-brand>div {
        margin-left: 8px !important;
    }

    .navbar-brand>div>span:first-child {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }

    .navbar-brand>div>span:last-child {
        font-size: 11px !important;
        letter-spacing: 2.5px !important;
    }

    .login {
        margin-right: 0;
        display: flex;
        align-items: center;
    }

    .navbar-toggler {
        margin-right: 0;
        margin-left: 0;
        font-size: 1.4em;
        padding: 4px;
        display: flex;
        align-items: center;
    }
}



#box_menu_user {
    display: inline-block;
    padding-left: 10px;
}

#menu_user {
    display: inline-block;
}

#menu_admin {
    display: inline-block;
}


#updating_box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.8);
    z-index: 9999;
}

#updating_cella {
    font-size: 20px;
    text-align: center;
    margin-top: 10%;
}



/* Menu a tendina Mobile - Ultra Premium Glassmorphism */
/* Menu a tendina Mobile - Cinque Stelle Luxury Style */
/* Menu a tendina Mobile - FULL SCREEN Premium Style */
.hamburger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Inizia fuori dallo schermo */
    width: 100%;
    height: 100vh;
    background: #0F172A;
    /* Blu MSC scuro */
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.hamburger-menu.show {
    right: 0;
    display: flex;
    /* Assicura che sia flex quando mostrato */
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.titolo_menu_hamburgher {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bottone_chiusura_hamburgher {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s;
}

.bottone_chiusura_hamburgher:hover {
    opacity: 0.7;
}

.hamburger-menu a:not(.bottone_chiusura_hamburgher),
.hamburger-menu .menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 30px;
    text-decoration: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
    gap: 15px;
}

.hamburger-menu a i {
    width: 30px;
    text-align: center;
    color: #C5A059;
    /* Colore Oro per icone */
}

.hamburger-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger-menu a.active {
    background: rgba(197, 160, 89, 0.15);
    color: #C5A059;
}

/* Nascondi la navigazione per schermi larghi */
@media (max-width: 991px) {
    .navbar-nav {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }
}

.hamburger-menu a.active {
    background-color: #ddd;
    /* Cambia colore di sfondo per l'attivo */
    color: #000;
    /* Cambia colore del testo per l'attivo */
}



/* --- PREMIUM BREADCRUMBS --- */
#breadcrumbs {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
}

.breadcrumb {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none !important;
    background: linear-gradient(135deg, #0F172A 0%, #172236 100%) !important;
    padding: 10px 24px !important;
    margin: 0 !important;
    border-radius: 50px !important;
    border: 1px solid rgba(197, 160, 89, 0.4) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #94A3B8;
    letter-spacing: 0.2px;
}

.breadcrumb li+li::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding: 0 14px;
    font-size: 0.55rem;
    color: #C5A059;
    opacity: 0.8;
}

.breadcrumb li a {
    color: #F1F5F9;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 4px 8px;
    border-radius: 6px;
    margin: -4px -8px;
    font-weight: 600;
}

.breadcrumb li a:hover {
    color: #C5A059 !important;
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.breadcrumb li.active a,
.breadcrumb .voce_corrente {
    font-weight: 700;
    opacity: 1;
}

.breadcrumb .voce_corrente {
    font-weight: 700;
    padding: 6px 14px;
    background: linear-gradient(135deg, #C5A059 0%, #a0740a 100%);
    color: #ffffff !important;
    border-radius: 8px;
    margin: -6px -14px;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
    display: inline-flex;
    align-items: center;
    margin-left: 1px;
}

.prezzo_da {
    color: #000000;
    text-align: right;
    font-size: 17px;
    padding-right: 2px;
}

.prezzo_base {
    text-align: right;
    font-size: 23px;
    font-weight: 600;
    color: #ff0000;
}

.più {
    font-weight: 600;
    font-size: 23px;
    color: #ff0000;
}

.prezzo_valuta {
    font-size: 20px;
    color: #ff0000;
    margin-left: -5px;
}

.btn_azione {
    display: inline-block;
    padding: 7px 16px;
    font-size: 16px;
    color: #fff;
    background-color: #000000;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn_azione:hover {
    background-color: #535353;
}

.btn_click {
    color: rgb(0, 0, 0);
    background-color: #80bdff;
}





/* 
###########################
###########################
########################### */


/* Stile per il pulsante profilo utente - Sito Crociere */
/* .btn.btn-secondary.dropdown-toggle {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: flex-start;
    text-transform: capitalize;
}

.btn.btn-secondary.dropdown-toggle:hover {
    background: linear-gradient(135deg, #2a4f8a 0%, #3d6bb5 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
    color: white;
}

.btn.btn-secondary.dropdown-toggle:focus {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3), 0 0 0 3px rgba(42, 82, 152, 0.3);
    color: white;
}

.btn.btn-secondary.dropdown-toggle:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}


.btn.btn-secondary.dropdown-toggle .fas.fa-user {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn.btn-secondary.dropdown-toggle:hover .fas.fa-user {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}


.btn.btn-secondary.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn.btn-secondary.dropdown-toggle:hover::before {
    left: 100%;
}

.btn.btn-secondary.dropdown-toggle::after {
    border-top: 0.4em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.btn.btn-secondary.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}


@media (max-width: 768px) {
    .btn.btn-secondary.dropdown-toggle {
        min-width: 150px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn.btn-secondary.dropdown-toggle .fas.fa-user {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}



 */

/* .btn.btn-secondary.dropdown-toggle {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn.btn-secondary.dropdown-toggle:hover {
    background: linear-gradient(135deg, #b8941f 0%, #e6c200 100%);
}
 */

/* Variante Ocean Blue */

.btn.btn-secondary.dropdown-toggle {
    background-color: #0F172A;
    /* box-shadow: 0 8px 25px rgba(0, 105, 148, 0.4); */
}

.btn.btn-secondary.dropdown-toggle:hover {
    background-color: #31316b;
}








/* 
.dropdown-menu {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    margin-top: 10px;
    min-width: 200px;
    backdrop-filter: blur(10px);
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.dropdown-menu .dropdown-item {
    padding: 12px 24px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px;
    border-radius: 8px;
    text-decoration: none;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    transform: translateX(5px);
}

.dropdown-menu .dropdown-item:active {
    background: linear-gradient(135deg, #1a3660 0%, #245085 100%);
    color: white;
}

.dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}


.dropdown-menu .dropdown-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #1e3c72;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    flex-shrink: 0;
}

.dropdown-menu .dropdown-item:hover::before {
    opacity: 1;
    background: white;
}

.dropdown-menu .dropdown-item[href="/logout"] {
    color: #e74c3c;
    font-weight: 600;
}

.dropdown-menu .dropdown-item[href="/logout"]:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.dropdown-menu .dropdown-item[href="/logout"]::before {
    background: #e74c3c;
}

.dropdown-menu .dropdown-item[href="/logout"]:hover::before {
    background: white;
}

.dropdown-menu .dropdown-item + .dropdown-item {
    border-top: 1px solid rgba(30, 60, 114, 0.1);
    margin-top: 2px;
    padding-top: 14px;
}


.dropdown-menu .dropdown-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.dropdown-menu .dropdown-item:hover::after {
    left: 100%;
}

@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 180px;
        margin-top: 8px;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* VARIANTI ALTERNATIVE - Decommentare quella preferita */

/* Variante Glass Effect (effetto vetro) */

.dropdown-menu .dropdown-item:hover {
    background-color: #e3f2fd;
    color: #1565c0;
}

.dropdown-menu .dropdown-item[href="/logout"]:hover {
    background-color: #ecebff;
    color: #000000;
}

/* Variante Dark Mode */
/*
.dropdown-menu {
    background: #2c3e50;
    color: white;
}

.dropdown-menu .dropdown-item {
    color: #ecf0f1;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.dropdown-menu .dropdown-item::before {
    background: #3498db;
}
*/

/* Variante Luxury Gold */

/* .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #1a1a1a;
}

.dropdown-menu .dropdown-item::before {
    background: #d4af37;
}

.dropdown-menu .dropdown-item:hover::before {
    background: #1a1a1a;
} */
/* FIX CONFLITTO MODALI BOOTSTRAP */
.modal-backdrop {
    z-index: 1060 !important;
}

.modal {
    z-index: 1070 !important;
}

.modal-dialog {
    z-index: 1075 !important;
}

.navbar {
    z-index: 1030;
}

/* FIX BOOTSTRAP E RESET SWEETALERT */
.modal-backdrop {
    z-index: 1060 !important;
}

.modal {
    z-index: 1070 !important;
}

.modal-dialog {
    z-index: 1075 !important;
}

.navbar {
    z-index: 1030;
}

/* FIX DEFINITIVO: LAYOUT FLEXBOX PERFETTO (NO DOPPIA BARRA) */

/* 1. Blocca lo scroll della pagina di sfondo e dell'overlay */
.swal-overlay {
    overflow-y: hidden !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, rgba(0, 0, 30, 0.4) 100%) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
}

/* 2. Modale Flexbox: Altezza fissa, struttura a colonna */
.swal-modal {
    display: flex !important;
    flex-direction: column !important;
    max-height: 85vh !important;
    height: auto !important;
    width: 900px !important;
    max-width: 95vw !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 24px !important;
    background: linear-gradient(155deg, #ffffff 0%, #f6f8fb 100%) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 55, 0.25) !important;
}

/* 3. Titolo Fisso in alto */
.swal-title {
    flex-shrink: 0 !important;
    /* Non si schiaccia */
    margin: 0 !important;
    padding: 25px 25px 15px 25px !important;
    border-bottom: 1px solid #eee !important;
    background: #fff !important;
    z-index: 10 !important;
}

/* 4. Footer (Pulsante) Fisso in basso */
.swal-footer {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 15px 25px 25px 25px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
    z-index: 10 !important;
}

/* 5. Contenitore Centrale Elastico (Occupa tutto lo spazio rimasto) */
.swal-content {
    flex-grow: 1 !important;
    overflow: hidden !important;
    /* Non scorre lui direttamente */
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Reset swal-text */
.swal-text {
    flex-grow: 1 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 6. Il mio container interno si adatta allo spazio */
.popup-container {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 20px !important;
    /* Padding del contenuto scorrevole */
    margin: 0 !important;
    width: 100% !important;
}

/* 7. L'UNICO ELEMENTO CHE SCORRE */
.popup-scroll-area {
    flex-grow: 1 !important;
    height: 100% !important;
    /* Importante */
    max-height: none !important;
    /* Rimuovo limiti fissi, usa flex */
    min-height: 0 !important;
    /* Fix per flexbox scroll */

    overflow-y: auto !important;
    overscroll-behavior: contain;

    /* Design Scatola */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    padding: 0 20px 20px 20px;
    text-align: left;

    /* Shadow Scroll Hint */
    background: linear-gradient(#f8fafc 30%, rgba(248, 250, 252, 0)), linear-gradient(rgba(248, 250, 252, 0), #f8fafc 70%) 0 100%, radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 0 100%;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

/* Tipografia */
.popup-scroll-area h1,
.popup-scroll-area h2,
.popup-scroll-area h3 {
    margin-top: 0;
    color: #0F172A;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.popup-scroll-area p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #334155;
}

.popup-scroll-area strong {
    color: #0f172a;
    font-weight: 700;
}

/* FIX TABELLA ITINERARIO: INTESTAZIONE FISSA (STICKY HEADER) */
.popup-scroll-area table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0px;
}

.popup-scroll-area thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #0F172A;
    color: #fff;
    padding: 15px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* FIX TITOLO POPUP FUORI DALLA TABELLA */
.popup-header {
    flex-shrink: 0;
    padding: 0 20px 15px 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
    background: #fff;
    z-index: 10;
    text-align: left;
}

.popup-header h1,
.popup-header h2,
.popup-header h3 {
    margin: 0;
    padding: 0;
    color: #0F172A;
    font-size: 22px;
}

/* FIX INTESTAZIONE TABELLA ESTERNA */
.popup-subheader {
    flex-shrink: 0;
    width: 100%;
    background: #0F172A;
    z-index: 15;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.popup-subheader table {
    margin-bottom: 0 !important;
    width: 100%;
}

.popup-subheader th {
    background-color: #0F172A;
    color: white;
    border: none;
}

/* Global Premium Buttons */
.btn-navy-premium {
    background: #0F172A !important;
    color: #E5B96F !important;
    border: 1px solid #E5B96F !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border-radius: 50px !important;
}

.btn-navy-premium:hover {
    background: #E5B96F !important;
    color: #0F172A !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 185, 111, 0.3);
}

.btn-gold-premium {
    background: #E5B96F !important;
    color: #0F172A !important;
    border: 1px solid #0F172A !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border-radius: 50px !important;
}

.btn-gold-premium:hover {
    background: #0F172A !important;
    color: #E5B96F !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.btn-outline-navy {
    background: transparent !important;
    color: #0F172A !important;
    border: 2px solid #0F172A !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    border-radius: 50px !important;
}

.btn-outline-navy:hover {
    background: #0F172A !important;
    color: #ffffff !important;
}

/* === Port Info Popup === */
.port-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 30, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    animation: fadeIn 0.25s ease;
}

.port-info-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 600px;
    max-height: 80vh;
    background: linear-gradient(155deg, #ffffff 0%, #f6f8fb 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 55, 0.25);
    z-index: 100001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popupIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.port-info-header {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 1;
}

.port-info-header h3 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 0.3px;
}

.port-info-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.port-info-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.port-info-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.port-info-body .loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.port-info-body .loading i {
    font-size: 2rem;
    color: #C5A059;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.filter-open {
    overflow: hidden !important;
}