body {
    overflow-x: hidden;
}
.logo img {
    height: 85px;
}
.tg-hero-area {
    position: relative;
   max-height: 640px;
    background-size: cover;
    background-position: center;
    overflow: hidden; /* IMPORTANTE: taglia tutto ciò che eccede */
}

.tg-hero-area::before {
    content: '';
    position: absolute;
    inset: 0; /* Copre esattamente il contenitore */
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.tg-hero-area .container {
    position: relative;
    z-index: 2;
    height: 100%;
    align-items: center; /* Centra verticalmente il contenuto */
}

.tg-hero-title-box {
    min-height: 200px;
}

.tg-location-date {
    color: #30158b;
    font-weight: normal;
}


.zony-editor .row > .col-md-6 {
    margin-top: 2rem;
}

.zony-editor .swiper-pagination {
    margin: 10px;
}

.zony-editor .swiper .swiper-button-prev {
    left: 10px;
} 

.zony-editor .swiper .swiper-button-next {
    right: 10px;
}

.zony-editor .row + .row { margin-top: 3rem; }

p {
    color: #000;
    line-height: 1.3;
}

.team-member .team-desc h4 {
    text-align: left;
    font-size: 18px;
}

@media screen and (max-width: 991px){
    .zony-editor .row > .col-md-12 {
        margin-bottom: 50px;
    }

    .zony-editor .row + .row { margin-top: 0rem; }

    .footer-logo img{
        max-height: 300px;
    }

    
/* 
    .tg-booking-form-area {
        display: none;
    } */

    .tg-listing-su-card-item .tg-listing-card-title {
        min-height: auto;
    }
}

@media screen and (max-width: 767px){
    .hide-on-mobile {
        display: none;
    }
}

.tgmenu__navbar-wrap ul li:hover > .sub-menu {
    z-index: 999;
}

.sec-title {
    margin-bottom: 25px;
}

.tg-footer-area {
    background-color: #30158b;
}

.fa-light.text-primary {
    color: #f74a1f!important;
}

/* Badge città nelle card viaggi */
.tg-listing-item-city-badge {
    top: 70px !important; /* Posiziona sotto il badge categoria */
    background: #f74a1f !important; /* Colore arancione invece del viola */
}

/* ===== Valorizzazione viaggi: banner "accompagnato" + stato disponibilità ===== */

/* Assicura un contesto posizionato per i badge assoluti */
.tg-location-thumb { position: relative; }

/* Banner dedicato ai viaggi accompagnati (fascia in basso sull'immagine) */
.tg-badge-accompagnato {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: linear-gradient(90deg, #30158b 0%, #6a3fd6 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 10px;
    line-height: 1;
}
.tg-badge-accompagnato i { margin-right: 6px; }

/* Badge stato disponibilità (pill in alto a destra) */
.tg-badge-stato {
    position: absolute;
    top: 17px;
    right: 0;
    z-index: 3;
    color: #fff !important;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    line-height: 1;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* Colori per stato (condivisi tra card e dettaglio) */
.tg-badge-esauriti       { background: #b0192b !important; }
.tg-badge-ultime         { background: #e8850c !important; }
.tg-badge-confermato     { background: #1e7a3d !important; }
.tg-badge-nuova_proposta { background: #1e5fa8 !important; }
.tg-badge-in_conferma    { background: #c98a00 !important; }
.tg-badge-nuove_date     { background: #0f8a8a !important; }
.tg-badge-in_evidenza    { background: #7a2fb0 !important; }

/* Varianti inline per la pagina di dettaglio */
.tg-tour-details-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.tg-badge-accompagnato-inline,
.tg-badge-stato-inline {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 8px;
    color: #fff !important;
    line-height: 1;
}
.tg-badge-accompagnato-inline {
    background: linear-gradient(90deg, #30158b 0%, #6a3fd6 100%);
}
.tg-badge-accompagnato-inline i { margin-right: 8px; }

/* Card viaggi ad altezza uniforme (indipendente dalla lunghezza del titolo) */
.list-card .tg-listing-card-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0; /* la mb-25 è inefficace con height:100%; lo spazio tra righe è dato da row-gap */
}
/* Spazio verticale tra le righe di card (le colonne che vanno a capo) */
.list-card {
    row-gap: 25px;
}
.list-card .tg-listing-card-item .tg-listing-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
/* Blocco inferiore (icone mezzi + date Dal-Al + prezzo): spinto in fondo come
   unico gruppo, così lo spacing interno resta costante e SOLO il titolo è flessibile. */
.list-card .tg-listing-card-item .tg-listing-card-bottom {
    margin-top: auto;
}

/* Select "Ordina per" con lo stesso stile UI degli input di ricerca */
.tg-sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1.6665 1L6.99984 6.33333L12.3332 1' stroke='%23353844' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}