/* Importa il font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    margin: 0 auto;
}

/* Header Styles - Booking.com Style with 2 bars */
.header {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #003b95;
}

/* Top Bar - Logo, Language, Account */
.header-top {
    background-color: #003b95;
    padding: 12px 0;
    max-width: 1100px;
    margin: auto;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 5px 0px;
    height: 60px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    flex: 0 0 auto;
}

.header-logo a {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.header-logo a:hover {
    opacity: 0.9;
}

.logo-dot {
    color: #ffb700;
}

/* Top Right Section - Language & Account */
.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

/* Add Excursion Link */
.header-add-excursion {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-add-excursion:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.language-selector {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #003b95;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.language-selector:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.header-account {
    padding: 12px 12px 8px 0px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-account:hover {
    /* Nessun effetto hover per il tuo livello */
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffb700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.header-account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-account-text .main {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.header-account-text .sub {
    color: white;
    font-size: 12px;
    line-height: 1.2;
}

/* Bottom Bar - Navigation Links */
.header-bottom {
    background-color: rgba(0, 59, 149, 0.9);
    padding: 8px 0;
}

.header-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    height: 50px;
}

/* Navigation Links */
.header-nav {
    flex: 1;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav ul li {
    position: relative;
}

.header-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 24px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active link (primo link) */
.header-nav ul li:first-child a {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Icons per i link */
.header-nav ul li a i {
    font-size: 20px;
    width: 20px;
    text-align: center;
    margin-top: -2px;
}

/* Social Icons - Bottom Right */
.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -70%;
    width: 70%;
    height: 100vh;
    background-color: #002a70;
    z-index: 9999;
    padding: 60px 0 20px 0;
    overflow-y: auto;
    box-sizing: border-box;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    padding: 0;
}

.mobile-menu ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu ul li a i {
    width: 20px;
    text-align: center;
    margin-top: -2px;
}

.mobile-menu.active {
    display: block;
    left: 0;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

.mobile-account-section {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-account-section a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu Logo */
.mobile-menu-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo a {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.mobile-menu-logo .logo-dot {
    color: #ffb700;
}

/* Mobile Login Button */
.mobile-login-section {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.mobile-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: #ffb700;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.mobile-login-button:hover {
    background-color: #e6a500;
    transform: translateY(-1px);
}

.mobile-login-button i {
    font-size: 18px;
}

/* Responsive Utility Classes */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block;
}

/* Mobile Header Elements */

.mobile-user-icon {
    background: #ffb700;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-user-icon i {
    color: white;
    font-size: 16px;
}

.mobile-hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop User Icon */
.desktop-user-icon {
    background: #ffb700;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.desktop-user-icon:hover {
    background: #e6a500;
}

.desktop-user-icon i {
    color: white;
    font-size: 16px;
}

@media screen and (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none;
    }

    .tablet-hide {
        display: none;
    }
}

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

    .mobile-show {
        display: block;
    }

}

/* Responsive */
@media screen and (max-width: 1200px) {
    .social-icons {
        gap: 6px;
    }

    .social-icons a {
        font-size: 16px;
        padding: 4px;
    }
}

@media screen and (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .header-bottom-container {
        justify-content: flex-end;
    }

    .social-icons {
        display: flex;
    }

    .header-add-excursion {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .header {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    .header * {
        box-sizing: border-box;
    }

    .header-bottom {
        display: none;
    }

    .header-top-container,
    .header-bottom-container {
        padding: 0 8px;
        height: 45px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .header-logo {
        flex-shrink: 0;
        flex: 0 0 auto;
        padding-left: 12px;
        max-width: 150px;
        overflow: visible;
    }

    .header-logo a {
        font-size: 20px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
    }

    .header-top-right {
        gap: 8px;
        justify-content: flex-end;
        align-items: center;
        flex: 1;
        max-width: calc(100% - 120px);
        overflow: hidden;
    }

    .header-account-text .sub {
        display: none;
    }

    .social-icons {
        display: none;
    }

    .hero-section {
        background-color: #003b95;
        padding: 0px 0 60px 0 !important;
        color: white;
        position: relative;
    }
}

/* Search Bar Styles - Booking.com Style */
/* Hero Section with Title */
.hero-section {
    background-color: #003b95;
    padding: 40px 0 60px 0;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: left;
}

.hero-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
}

.hero-content p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

.search-bar-section {
    position: relative;
    padding: 80px 0 20px 0;
}

.search-bar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

@media screen and (max-width: 768px) {
    .search-bar-container {
        margin: 0 auto;
        padding: 0 0px;
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        z-index: 10;
    }
}

.search-bar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    position: relative;
    padding: 4px;
}

.search-section {
    flex: 1;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px;
    border-radius: 8px;
    box-sizing: border-box;
}

.search-section:last-child {
    margin: 2px;
    border-radius: 8px;
    box-sizing: border-box;
}

.search-section:hover {
    background-color: #f8f9fa;
}

/* Destination Section - 39% */
.search-destination {
    flex: 0 0 39%;
}

/* Date Section - 25% */
.search-dates {
    flex: 0 0 25%;
}

/* Guests Section - 25% */
.search-guests {
    flex: 0 0 25%;
}

/* Search Button Section - 9.33% */
.search-button-section {
    flex: 0 0 9.33%;
    padding: 0;
    border: none;
    background: transparent;
}

.search-button {
    width: 100%;
    height: 100%;
    background-color: #ffb700;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s ease;
    padding: 12px 8px;
    border-radius: 8px;
    box-sizing: border-box;
}

.search-button:hover {
    background-color: #e6a600;
}

.search-icon {
    font-size: 18px;
    color: #666;
    width: 18px;
    text-align: center;
    align-self: baseline;
    margin-top: 24px;
}

.search-content {
    flex: 1;
}

.search-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 2px;
    display: block;
}

.search-value {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.search-input {
    border: none;
    outline: none;
    font-size: 20px;
    color: #333;
    background: transparent;
    width: 100%;
    font-weight: 500;
    padding-top: 2px;
}

.search-input::placeholder {
    color: #999;
}

.clear-button {
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-button:hover {
    background-color: #f0f0f0;
    color: #666;
}

/* Mobile Responsive for Search Bar */
@media screen and (max-width: 768px) {
    .search-bar {
        flex-direction: column;
    }

    .search-section {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        flex: 1;
    }

    .search-section:last-child {
        border-bottom: none;
    }

    .search-destination,
    .search-dates,
    .search-guests {
        flex: 1;
    }

    .search-button {
        flex: 0 0 auto;
        padding: 20px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .header-top-container {
        padding: 0 6px;
    }

    .header-top-right {
        gap: 8px;
        flex: 1;
        justify-content: flex-end;
        padding-right: 10px;
        max-width: calc(100% - 100px);
        overflow: hidden;
    }

    .mobile-user-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        min-width: 32px;
    }

    .mobile-user-icon i {
        font-size: 14px;
    }

    .mobile-hamburger {
        width: 32px;
        height: 32px;
        font-size: 18px;
        flex-shrink: 0;
        min-width: 32px;
    }

    .language-selector {
        font-size: 12px;
        padding: 3px 6px;
    }

    .mobile-language-selector {
        font-size: 12px;
        padding: 6px 4px;
        border-radius: 4px;
        background-color: #003b95;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        font-family: 'Poppins', sans-serif;
        width: 45px;
        max-width: 45px;
        text-align: center;
        flex-shrink: 0;
    }

    .header-account {
        padding: 6px 8px;
    }

    .header-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .header-account-text .main {
        font-size: 12px;
    }

    /* Mobile Hero Content Override */
    .hero-content h2 {
        font-size: 28px !important;
        font-weight: 600;
        margin: 0 0 10px 0;
        font-family: 'Poppins', sans-serif;
    }
}