/* Stili generali */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Carattere più leggibile */
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
.site-header {
    background-color: white;
    border-bottom: 1px solid #e1e1e1;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.tagline {
    font-size: 14px;
    color: #666;
    margin-top: -5px;
    font-style: italic;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 5px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-nav a:hover, 
.main-nav a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* Banner a schermo intero */
.full-height {
    height: 100vh; /* Altezza piena */
    position: relative;
    background: none; /* Rimuoviamo lo sfondo da qui */
}

/* Wrapper per il contenuto */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/back-italy.jpg") center center no-repeat;
    background-size: cover;
}

.video-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.vertical-align {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    padding-top: 73px; /* Compensare l'header */
}

/* Stili per i tab */
.tabs-slider {
    max-width: 930px;
    margin: 0 auto;
}

.baner-tabs {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    overflow: visible; /* Changed from hidden to visible */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.drop-tabs {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

.drop-tabs b {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    border-bottom: none;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 400px;
}

.nav-tabs li {
    flex: 1;
    margin: 0;
    text-align: center;
}

.nav-tabs li a {
    display: block;
    padding: 12px 25px;
    color: #8f8a87; /* Colore non selezionato come richiesto */
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #f2f2f2;
    margin: 0 2px;
}

/* Colori differenti per i tab Tours e Trasferimenti */
.nav-tabs li#tours-tab.active a {
    color: white;
    background-color: #28a745; /* Verde per Tours */
}

.nav-tabs li#transfer-tab.active a {
    color: white;
    background-color: #007bff; /* Blu per Trasferimenti */
}

.nav-tabs li a:hover {
    background-color: #e9ecef;
}

/* Contenuto dei tab */
.tab-content {
    padding: 30px;
    overflow: visible; /* Ensure dropdown can extend outside */
    background: url("../img/back-italy.jpg") center center no-repeat;
    background-size: cover;
    position: relative;
}

.tab-content:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.tab-content > * {
    position: relative;
    z-index: 2;
}

.tab-pane {
    display: none;
}

.tab-pane.active.in {
    display: block;
}

/* Colori di sfondo per i contenuti dei tab */
#tab-content-main {
    background-color: rgba(40, 167, 69, 0.1); /* Verde molto chiaro per Tours */
}

.transfer-active #tab-content-main {
    background-color: rgba(0, 123, 255, 0.1); /* Blu molto chiaro per Trasferimenti */
}

/* Stili per il form */
.baner-bar {
    padding: 20px;
}

.hotels-block {
    margin-bottom: 20px;
    position: relative;
}

.hotels-block h4 {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

/* Tutti gli input devono avere la stessa altezza */
.input-style-1 input,
.drop input, 
.btn-group button,
.form-control,
select {
    height: 46px; /* Altezza uniforme per tutti i campi input */
    width: 100%;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    line-height: 46px;
    background-color: white;
}

/* Custom styling for select elements */
.select-wrap {
    position: relative;
}

.select-wrap:after {
    content: "\25BC";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 12px;
}

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 30px;
}

.btn-group {
    width: 100%;
    position: relative;
}

.dropdown-container {
    position: static;
}

.btn-group button {
    text-align: left;
    background-color: white;
    transition: all 0.3s ease;
    line-height: normal;
    padding-top: 12px;
    padding-bottom: 12px;
}

.btn-group button:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

/* Redesigned dropdown menu */
.dropdown-menu {
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin-top: -1px;
    list-style: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1100;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
}

.caret {
    float: right;
    margin-top: 8px;
}

/* Submit button styling */
.submit {
    text-align: right;
    margin-top: 20px;
}

.c-button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Button for both tabs */
.c-button {
    background-color: #fff;
}

#one .c-button:hover {
    background-color: #28a745;
    color: white;
}

#two .c-button:hover {
    background-color: #007bff;
    color: white;
}

.bg-white {
    background-color: white;
}

/* Traveler dropdown */
.drop-wrap {
    position: relative;
}

.drop {
    position: relative;
}

.drop-list {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

.travelers-dropdown,
.travelersT-dropdown {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    z-index: 1100;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.travelers-dropdown a,
.travelersT-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f4;
    transition: all 0.2s ease;
}

.travelers-dropdown a:hover,
.travelersT-dropdown a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.travelers-dropdown a:last-child,
.travelersT-dropdown a:last-child {
    border-bottom: none;
}

/* Make sure the dropdown is visible */
.open .dropdown-menu {
    display: block;
}

/* Media Queries per responsività */
@media (max-width: 991px) {
    .full-height {
        height: auto;
        min-height: 100vh;
    }
    
    .vertical-align {
        position: relative;
        top: 0;
        transform: none;
        padding: 120px 0 50px;
    }
    
    .baner-tabs {
        margin: 0 15px;
    }
    
    .hotels-block {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .header-container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo-container {
        margin-bottom: 15px;
        align-items: center;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0 15px;
    }
    
    .drop-tabs b {
        margin-bottom: 15px;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tabs li {
        width: 100%;
        margin: 0 0 10px 0;
    }
    
    .nav-tabs li a {
        text-align: center;
        border-radius: 4px;
    }
    
    .row {
        margin: 0;
    }
    
    .submit {
        text-align: center;
    }
    
    .c-button {
        width: 100%;
    }
    
    .vertical-align {
        padding-top: 150px;
    }
}

/* Stili aggiuntivi */
input:focus,
button:focus,
select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Fix per input date in Firefox e altri browser */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    height: 46px;
    background-color: #fff;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
}

/* New styles to match the screenshot */
#tab-content-main {
    background-color: rgba(135, 218, 135, 0.3); /* Closer to the screenshot light green */
}

.hotels-block h4 {
    font-size: 18px;
    color: #444;
    font-weight: 500;
}

.dropdown-menu {
    display: none;
}

.show-dropdown .dropdown-menu {
    display: block;
}

/* Ensure dropdown is above everything */
.dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Better styling for select elements */
select.form-control {
    padding: 6px 12px;
    line-height: 1.5;
    height: 46px;
    background-color: white;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
    padding-right: 25px;
    cursor: pointer;
}

select.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#tours .form-control, #two .form-control {
    color: #333;
}
