:root {
    /* Brand Colors */
    --primary-color: #7CB342;
    --primary-dark: #558B2F;
    --secondary-color: #2c3e50;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Spacing & Radius */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --container-width: 1200px;
}

/* -------------------------------------------------------------------------- */
/* GLOBAL RESET & TYPOGRAPHY */
/* -------------------------------------------------------------------------- */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #7CB342;
    margin-bottom: 1rem;
}

a {
    transition: all 0.3s ease;
    text-decoration: none !important;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/* HERO SLIDER SECTION */
/* -------------------------------------------------------------------------- */
.main_slider_area {
    position: relative;
}

.home-slider-details {
    text-align: center;
    /* Ensure centering */
}

.home-slider-details h1,
.home-slider-details h3 {
    color: white;
    font-size: 4rem;
    /* Larger */
    font-weight: 800;
    /* Bolder */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    /* Stronger shadow */
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.home-slider-details p {
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0px;
    font-family: Poppins;
    visibility: inherit;
    transition: none 0s ease 0s;
    text-align: center;
    line-height: 26px;
    font-size: 20px;
    white-space: normal;
    opacity: 1;
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    transform-origin: 50% 50% 0px;
    padding: -1 23%;
    display: none;
}



/* -------------------------------------------------------------------------- */
/* SEARCH BOX SECTION (Restored Structure Inside Slider) */
/* -------------------------------------------------------------------------- */
.main_slider_area {
    position: relative;
}

.relative-container-old-style {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 10;

}

#box_scelta {
    display: flex;
    justify-content: center;
    gap: 18px;
    /* Removed fixed left % to ensure proper auto-centering */
}

/* -------------------------------------------------------------------------- */
/* ORIGINAL SEARCH BOX STYLES (RESTORED FROM index.php) */
/* -------------------------------------------------------------------------- */

/* General Box Positioning (Overridden by .relative-container logic, but kept for inner layout) */
#box_scelta .row {
    margin-right: 0;
    margin-left: 0;
    justify-content: center;
}

/* Icons */
#box_scelta .icon {
    position: absolute;
    margin-left: 19px;
    margin-top: 4px;
    /* Centering tweak may be needed */
    z-index: 1;
    font-size: 19px;
    color: #6c757d87;
    top: 15px;
    /* Added to fix alignment in new flux */
    left: 0;
}

#box_scelta .plan {
    position: absolute;
    float: right;
    margin-top: 0;
    z-index: 1;
    font-size: 1.5rem;
    right: 4%;
    color: var(--primary-color);
    /* Updated to var */
    top: 10px;
}

#box_scelta .calendar {
    position: absolute;
    float: right;
    margin-top: 0;
    z-index: 1;
    font-size: 1.5rem;
    right: 4%;
    color: var(--primary-color);
    top: 10px;
}

/* Input Fields */
#box_scelta input#nazione_ricerca,
#box_scelta input#filtro_mese {
    font-size: 16px;
    /* Fixed sizing instead of vw for stability */
    width: 100%;
    height: 50px;
    border: none;
    float: left;
    color: #63717f;
    border-radius: 5px;
    background: #fff;
    /* Ensure white background */
    padding-left: 50px !important;
    /* Force padding for icon */
}

/* Borders */
.nazione_bordi {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    background: #fff;
    /* Ensure background */
}
 
.mese_bordi {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    background: #fff;
    /* Ensure background */
}

/* Wrapper for Inputs */
.input-group.borr {
    position: relative;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

/* Mobile Responsiveness (Ported from index.php media queries) */
@media only screen and (max-width: 760px) {
    #box_scelta {
        display: flex;
        justify-content: center;
        gap: 16px;
    }

    #box_scelta .col-lg-2 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    input#nazione_ricerca,
    input#filtro_mese {
        font-size: 16px;
        /* Readable on mobile */
    }
}

.search-box {
    position: relative;
    height: 56px;
}

.search-input {
    width: 100%;
    height: 56px;

    border: none;
    outline: none;
    border-radius: 10px;

    font-size: 16px;
    line-height: 56px;
    /* centra testo verticalmente */

    padding-left: 55px;
    /* spazio icona sinistra */
    padding-right: 55px;
    /* spazio icona destra */

    color: #495057;
}

.search-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

.search-box .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 18px;
    color: #6c757d;

    pointer-events: none;
}

.search-box .plan,
.search-box .calendar {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 18px;
    color: var(--primary-color);

    pointer-events: none;
}



/* -------------------------------------------------------------------------- */
/* INTERESTS SECTION (Top Country List) */
/* -------------------------------------------------------------------------- */
.top-country-list {
    padding: 60px 0;
    text-align: center;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.tp-list-item {
    position: relative;
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    /* Fixed height for consistency */
    box-shadow: var(--shadow-md);
}

.tp-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tp-list-item:hover .tp-list-img {
    transform: scale(1.1);
}

.list-text-desc {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.list-text-desc h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-country-list .tp-list-item {
    text-decoration: none;
    object-fit: cover;
    width: 100%;
    height: 414px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.top-country-list .tp-list-item:before {
    content: '';
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    width: 100%;
    height: 50%;
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    transition-property: top, opacity;
    transition-duration: 0.5s;
}

.top-country-list .tp-list-item img {
    width: 100%;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}

.top-country-list .tp-list-item:hover .tp-list-img {
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
}

.top-country-list .tp-list-item .list-text-desc {
    position: absolute;
    width: 100%;
    /* bottom: 0;*/
    z-index: 3;

}

.top-country-list .tp-list-item .list-text-desc h3 {
    font-size: 30px;
    color: #fff;
    font-weight: 800 !important;

    text-shadow: 0 1px 3px rgb(0 0 0 / 70%);
}

.top-country-list .tp-list-item .list-text-desc h4 {
    /*font-family: Satisfy, cursive;*/
    font-weight: 100;
    font-size: 25px;
}


/* -------------------------------------------------------------------------- */
/* MOOD SECTION */
/* -------------------------------------------------------------------------- */
.mood-section-container {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin: 40px 0;
}

.mood-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.mood-item {
    text-align: center;
    width: 120px;
    transition: transform 0.3s ease;
}

.mood-item:hover {
    transform: translateY(-5px);
}

.mood-item a {
    display: block;
    color: var(--text-color);
}

.mood-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    filter: brightness(1.2);
    /* Lighter icons */
    transition: all 0.3s ease;
}

.mood-item:hover img {
    filter: invert(0%) sepia(100%) saturate(400%) hue-rotate(60deg) brightness(95%) contrast(90%);
    /* Turn green on hover roughly */
    transform: scale(1.1);
}

.mood-item p {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0;
}

/* Il contenitore che tiene insieme i box */
.padding_icone {
    display: flex !important;
    justify-content: center;
    /* Centra i box nella riga */
    flex-wrap: wrap;
    /* Permette di andare a capo su mobile */
    gap: 60px;
    /* Spazio tra un box e l'altro (aumentato) */
    padding: 30px 0;
}

/* Il singolo Box (aumentato a 200px) */
.padding_icone .icone {
    flex: 0 0 auto;
    width: 200px;
    /* <--- Aumenta qui per box ancora più grandi */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Angoli un po' più tondi */
    padding: 20px 10px;
    /* Più respiro interno */
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    /* Toglie sottolineature dai link */
}

/* Effetto Hover */
.padding_icone .icone:hover {
    border-color: #bbb;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* L'icona dentro il box (aumentata a 120px) */
.img-avventura {
    max-width: 120px;
    /* <--- Era 80px, ora è molto più visibile */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    /* Centra e stacca dal testo sotto */
}

/* Titolo sotto l'icona */
.icone-titolo {
    font-size: 16px;
    /* Testo più grande */
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin: 0;
}


/* --- SOLO PER MOBILE (sotto i 767px) --- */
@media (max-width: 767px) {
    
    .padding_icone {
        gap: 20px !important; /* Riduciamo il gap di 60px che su mobile sarebbe eccessivo */
        justify-content: center !important;
        display: flex !important;
    }

    .padding_icone .icone {
        /* Forziamo il quadrato perfetto */
        width: 170px !important;  /* Larghezza grande */
        height: 170px !important; /* Altezza uguale per fare il quadrato */
        
        /* Centriamo l'icona e il testo nel quadrato */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        
        flex: 0 0 auto !important;
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        padding: 10px !important;
        margin: 0 !important;
    }

    .img-avventura {
        /* Icona grande anche su mobile */
        max-width: 90px !important; 
        width: 100% !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
    }

    .icone-titolo {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
}
/* -------------------------------------------------------------------------- */
/* TOUR CARDS SECTIONS */
/* -------------------------------------------------------------------------- */
.top-tours-list {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.tours-list-slider {
    padding: 10px 0;
}

.tour-card-wrapper {
    padding: 15px;
    /* Spacing for shadow */
}

/* .tour-list-item styles already defined in previous step, refined here */
.tour-list-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 105%;
    border: 1px solid var(--border-color);
}

.tour-list-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.tour-list-item-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.tour-list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.tour-list-item:hover .tour-list-item-img img {
    transform: scale(1.1);
}

.tour-item-feature {
    position: absolute;
    top: 15px;
    left: 244px;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tour-item-feature-2 {
    position: absolute;
    top: 15px;
    left: 188px;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* --- STILE PER MOBILE (Sotto i 767px) --- */
@media (max-width: 767px) {
    .tour-item-feature {
        /* Qui puoi cambiare quello che vuoi per il mobile */
        top: 10px;      /* Magari un po' più in alto */
        left: 188px;     /* Molto importante: riportalo a sinistra per non farlo uscire dallo schermo */
        right: auto;    /* Resetta eventuali altri parametri */
        font-size: 0.6rem; /* Testo leggermente più piccolo */
        padding: 2px 8px;
    }
}

.item-description {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.country-name {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tour-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em;
}

.tour-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.tour-duration {
    font-size: 0.9rem;
    color: var(--text-light);
}

.tour-duration i {
    color: var(--primary-color);
    margin-right: 5px;
}

.tour-price .act-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.prezzo-scontato {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
}

/* -------------------------------------------------------------------------- */
/* WHY US SECTION */
/* -------------------------------------------------------------------------- */
.why-us-renovated {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.why-us-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: background 0.3s ease;
}

.why-us-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.why-us-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-us-item h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.why-us-item p {
    color: #cbd5e0;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* SOCIAL SECTION */
/* -------------------------------------------------------------------------- */
.social-section {
    background-image: url('../images/Copertine/social-3.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    padding: 100px 0;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.social-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.social-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.social-card i {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.social-card h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

/* -------------------------------------------------------------------------- */
/* CALENDAR SECTION (Departure List) */
/* -------------------------------------------------------------------------- */
.calendar-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.departure-list {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.departure-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr 140px 120px 100px 110px;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.departure-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}

.date-box {
    text-align: center;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 10px 5px;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
}

.dep-info h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--secondary-color);
}

.dep-info span {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 15px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-filling {
    background: #fff3cd;
    color: #856404;
}

.status-last {
    background: #f8d7da;
    color: #721c24;
}


.dep-price {
    text-align: center;
}

.dep-price .price-val {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.dep-action .btn {
    width: 100%;
    padding: 8px 5px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* AIRPORT SECTION (Timeline) */
/* -------------------------------------------------------------------------- */
.airport-section {
    text-align: center;
    padding: 60px 0;
}

.timeline-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

.timeline-step {
    position: relative;
    z-index: 2;
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 0 0 5px rgba(124, 179, 66, 0.2);
}

.timeline-line {
    flex-grow: 1;
    height: 4px;
    background: #e0e0e0;
    margin: 0 10px;
}

.trenitalia-logos {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.trenitalia-logos img {
    max-width: 500px;
    transition: transform 0.3s ease;
}

.trenitalia-logos img:hover {
    transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE QUERIES */
/* -------------------------------------------------------------------------- */
.why-us-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {

    .why-us-grid,
    .why-us-grid.four-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .departure-card {
        grid-template-columns: 80px 1fr 120px;
        grid-template-rows: auto auto;
    }

    .dep-info {
        grid-column: 2 / 4;
    }

    .dep-leader {
        display: none;
    }

    /* Hide leader on tablet */
    .dep-price {
        grid-column: 1 / 2;
        grid-row: 2;
        text-align: left;
    }

    .dep-action {
        grid-column: 2 / 4;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .home-slider-details h1 {
        font-size: 2rem;
    }

    #box_scelta {
        margin-top: -20px;
    }

    .search-row {
        gap: 10px;
    }

    .search-input-group {
        width: 100%;
    }

    .calendar-section {
        padding: 30px 0;
    }

    .departure-card {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .dep-price {
        text-align: center;
        width: 100%;
    }

    .dep-action {
        width: 100%;
    }

    .timeline-wrapper {
        transform: scale(0.8);
    }
}

/* Utility Classes */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(85, 139, 47, 0.3);
}

.text-center {
    text-align: center;
}

.mb-30 {
    margin-bottom: 30px;
}

.d-none {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* ADDITIONAL LEGACY & COMPLEMENTARY STYLES */
/* -------------------------------------------------------------------------- */

/* Autocomplete UI */
.ui-menu .ui-menu-item-wrapper {
    position: relative;
    padding: 3px 1em 3px 0.4em;
    color: #007bff !important;
}

.ui-menu .ui-menu-item-wrapper:hover {
    background-color: #f0f0f0 !important;
    cursor: pointer;
}

/* Timeline/Airport Section Styles */
.flex-parent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.input-flex-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 31vw;
    height: 100px;
    max-width: 1000px;
    position: relative;
    z-index: 0;
}

.input {
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    position: relative;
    border-radius: 50%;
}

.input i {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.input::before,
.input::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    width: 4vw;
    height: 3px;
    max-width: 50px;
}

.input::before {
    left: calc(-4vw + 12.5px);
}

.input::after {
    right: calc(-4vw + 12.5px);
}

.nuovo_fine::after {
    right: 1.5px !important;
}

.nuovo_inizio::before {
    left: 1.5px !important;
}

@media (max-width: 768px) {
    .input-flex-container {
        width: 80%;
    }
}

.header-inner {
    padding: 10px 0;
}

.logo-link {
    display: inline-block;
}

.logo-link img {
    max-height: 50px;
    width: auto;
}

.top-nav .sf-menu>li>a {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 15px;
    font-size: 0.85rem;
    position: relative;
    transition: all 0.3s ease;
}

.top-nav .sf-menu>li>a:hover,
.top-nav .sf-menu>li.active>a {
    color: var(--primary-color);
}

.top-nav .sf-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.top-nav .sf-menu>li>a:hover::after,
.top-nav .sf-menu>li.active>a::after {
    transform: scaleX(1);
}

/* Mega Menu Enhancements */
.mega-menu {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary-color);
    padding: 30px;
}

.continenti {
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* FOOTER REDESIGN (template_16022026.php) */
/* -------------------------------------------------------------------------- */

footer.page_footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 60px 0 0;
}

.widget-footer h4 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-blog li {
    margin-bottom: 12px;
}

.footer-blog li a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-blog li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.social-link a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;

}

.social-link a i,
.social-link a.fa {
    line-height: 1;
    margin: 0;
}

.social-link a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer.footer .social-link a {
    padding-right: 0px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #6c757d;
}

/* Trustpilot Section */
.trustpilot-box {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
}

.trustpilot-logo {
    width: 28%;
    max-width: 180px;
    margin: 0 auto 10px;
    display: block;
    filter: invert(1) hue-rotate(180deg);
}

.trustpilot-box {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 0;
}

.trustpilot-logo {
    width: 28%;
    max-width: 180px;
    margin: 0 auto 10px;
    display: block;
    filter: invert(1) hue-rotate(180deg);
}

.trustpilot-testo {
    font-size: 14px;
    color: var(--white);
    margin: 0;
}

/* -------------------------------------------------------------------------- */
/* COORDINATORS PAGE (lista_guide_16022026.php) */
/* -------------------------------------------------------------------------- */

.coordinators-hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
    color: var(--white);
    text-align: center;
}

.coordinators-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.coordinators-hero .container {
    position: relative;
    z-index: 2;
}

.coordinators-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.coordinators-hero h5 {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Coordinator Cards */
.team-member-grid {
    padding: 60px 0;
}

.coordinator-card {
    text-align: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.coordinator-card:hover {
    transform: translateY(-5px);
}

.coordinator-card .img-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.coordinator-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coordinator-card h5 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.coordinator-card a {
    text-decoration: none;
}

.coordinator-card a:hover h5 {
    color: var(--primary-color);
}

/* Social Icons for Cards */
.coordinator-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.coordinator-social a {
    font-size: 1.1rem;
    color: #888;
    transition: all 0.3s ease;
}

.coordinator-social a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Candidacy Form */
.candidacy-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.candidacy-container {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.candidacy-content {
    padding: 60px;
}

.candidacy-section h3 {
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.candidacy-section .form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 1px solid var(--gray-300);
}

.candidacy-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(85, 139, 47, 0.15);
}

.candidacy-section label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.captcha-wrapper {
    background: var(--gray-100);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.captcha-wrapper p {
    margin: 0;
    font-weight: 600;
    color: var(--secondary-color);
}

.captcha-wrapper input {
    width: 60px;
    text-align: center;
    margin-left: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
}

/* -------------------------------------------------------------------------- */
/* NEWSLETTER SECTION (template_16022026.php) */
/* -------------------------------------------------------------------------- */
.newsletter-renovated {
    background: var(--light-gray);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-box {
    background: var(--white);
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.newsletter-form-wrapper {
    flex: 1;
}

.newsletter-box .subcribe-form {
    margin: 0;
}

.newsletter-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.newsletter-form .form-control {
    height: 60px;
    border-radius: 30px;
    padding-left: 30px;
    padding-right: 160px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.1);
}

.newsletter-form .subscribe-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 50px;
    padding: 0 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-form .subscribe-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(85, 139, 47, 0.3);
}

.newsletter-privacy {
    margin-top: 20px;
}

.custom-checkbox-renovated {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
}

.custom-checkbox-renovated input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.custom-checkbox-renovated span {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.custom-checkbox-renovated a {
    color: var(--primary-color);
    font-weight: 600;
}

.iscrizione_corretta {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 991px) {
    .newsletter-box {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }

    .newsletter-form .form-control {
        padding-right: 30px;
    }

    .newsletter-form .subscribe-btn {
        position: static;
        width: 100%;
        margin-top: 15px;
    }
}

/* -------------------------------------------------------------------------- */
/* MODERN FILTER PANEL STYLES */
/* -------------------------------------------------------------------------- */
.modern-filter-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-filter-wrapper:hover {
    box-shadow: var(--shadow-lg);
}

.modern-filter-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 24px 20px;
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.filter-header-icon {
    display: flex;
    align-items: center;
}

.filter-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 20px 0;
    padding: 0 20px;
}

.modern-filter-form {
    padding: 24px 20px;
}

.modern-filter-input {
    margin-bottom: 24px;
}

.modern-filter-input:last-of-type {
    margin-bottom: 0;
}

.input-label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.modern-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modern-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modern-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-select:hover {
    border-color: var(--primary-color);
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

.filter-button-wrapper {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modern-filter-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.modern-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modern-filter-btn:active {
    transform: translateY(0);
}

.modern-filter-btn .btn-text {
    display: inline-block;
}

.modern-filter-btn .btn-icon {
    display: flex;
    align-items: center;
}

/* Responsive per filtri moderni */
@media (max-width: 768px) {
    .modern-filter-header {
        padding: 20px 16px;
        font-size: 20px;
    }

    .modern-filter-form {
        padding: 20px 16px;
    }

    .filter-subtitle {
        padding: 0 16px;
    }
}



 .tour-gallery, .tour-faq{
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(31,38,135,0.08);
    background: #fff;
    padding: 24px 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
  }

  .read-more.collapsed, .tour-highlight {
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(31,38,135,0.08);
    background: #fff;
    padding: 24px 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.05);
  }

  .read-more-title, .highlight-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7CB342;
    margin-bottom: 10px;
  }

  .tour-itinerary {
    border-top: 2px solid #D7DCE3;
    padding-top: 30px;
    margin-bottom: 30px;
    height: 350px;
    border-radius: 15px;
    background: #f8f9fa;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

}

 .tour-itinerary {
    border-top: 2px solid #D7DCE3 !important;
    padding-top: 30px !important;
    margin-bottom: 30px !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  body.viaggio-dettaglio .tour-itinerary .tab-vertical {
    padding-bottom: 3rem !important;
    border-right: 1px solid #D7DCE3 !important;
  }
  body.viaggio-dettaglio .tour-itinerary .tab-vertical .itinerary-main-title {
    margin-bottom: 1rem !important;
  }
  body.viaggio-dettaglio .tour-itinerary .tab-vertical .itinerary-main-title h4 {
    font-size: 24px !important;
    font-weight: 500 !important;
  }

  @media (max-width: 767px) {

    .read-more.collapsed{
      padding: 14px 6px;
    }
  }
  
  .faq-section .accordion .card {
    border: none;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    background: #7CB342;
  }

  .faq-section .accordion .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
  
  .faq-section .accordion .card-header {
    background: linear-gradient(135deg, #7CB342, #7CB342);
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .faq-section .accordion .card-header:hover {
    background: linear-gradient(135deg, #7CB342, #7CB342);
    transform: translateY(-1px);
  }
  
  .faq-section .accordion .card-header h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .faq-section .accordion .card-header h5::before {
    content: '\f059';
    font-family: 'FontAwesome';
    font-size: 16px;
    color: rgba(255,255,255,0.8);
  }
  
  .faq-section .accordion .card-header[aria-expanded="true"] h5::before {
    content: '\f00c';
    color: #fff;
  }
  
  .faq-section .accordion .card-header::after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    transition: all 0.3s ease;
  }
  
  .faq-section .accordion .card-header[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
    color: #fff;
  }
  
  .faq-section .accordion .card-body {
    padding: 25px;
    background: #fff;
    border-top: 1px solid rgba(104, 168, 223, 0.1);
  }
  
  .faq-section .accordion .card-body p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 15px;
  }
  
  /* Stile per le FAQ interne (nested accordion) */
  .faq-section .accordion .card .faq-selection {
    margin: 0;
    padding: 0;
  }
  
  .faq-section .accordion .card .faq-area {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  
  .faq-section .accordion .card .accordion .card {
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }
  
  .faq-section .accordion .card .accordion .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 16px 20px;
  }
  
  .faq-section .accordion .card .accordion .card-header:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
  }
  
  .faq-section .accordion .card .accordion .card-header h5 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
  }
  
  .faq-section .accordion .card .accordion .card-header h5::before {
    color: #7CB342;
    font-size: 14px;
  }
  
  .faq-section .accordion .card .accordion .card-header[aria-expanded="true"] h5::before {
    color: #7CB342;
  }
  
  .faq-section .accordion .card .accordion .card-header::after {
    color: #7CB342;
  }
  
  .faq-section .accordion .card .accordion .card-header[aria-expanded="true"]::after {
    color: #7CB342;
  }
  
  .faq-section .accordion .card .accordion .card-body {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  .faq-section .accordion .card .accordion .card-body p {
    color: #6c757d;
    font-size: 14px;
  }

  .tour-booking {
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
  }