/* ============================================================
   New responsive header (pilot) - replaces includes/top.php +
   includes/breadcrumbs.php. Visual language inspired by the
   "Form Passeggeri" design mockup (Claude Design handoff).
   ============================================================ */

#hdr, #hdr * {
    box-sizing: border-box;
}

.hdr-topbar-inner,
.hdr-bluebar-inner,
.hdr-breadcrumb-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top dark bar: Home / Contatti + lingua ---------- */
.hdr-topbar {
    background: #132846;
    color: #c7cede;
}
.hdr-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12.5px;
}
.hdr-topbar-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.hdr-topbar-links a {
    color: #c7cede;
    text-decoration: none;
}
.hdr-topbar-links a:hover {
    color: #fff;
}
.hdr-langform {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.hdr-callcenter {
    color: #c7cede;
}
.hdr-callno {
    font-weight: bold;
    color: #fff;
}

/* ---------- Blue bar: logo + Area Riservata / account ---------- */
.hdr-bluebar {
    background: #1c3f6e;
}
.hdr-bluebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.hdr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hdr-logo img {
    height: 38px;
    width: auto;
    outline: none;
    border: none;
}
.hdr-env-badge {
    font-size: 10px;
    background: #f4801f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}
.hdr-action {
    display: flex;
    align-items: center;
}

.hdr-btn-club {
    background: #f4801f;
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    padding: 9px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-transform: none;
    transition: background-color .15s ease-in-out;
}
.hdr-btn-club:hover {
    background: #d96e17;
}
.hdr-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Account dropdown (logged-in "mygrimaldi" state) */
.hdr-account {
    position: relative;
}
.hdr-account-title {
    background: #f4801f;
    color: #fff;
    font-weight: bold;
    padding: 9px 20px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.hdr-account-title:hover {
    background: #d96e17;
}
.hdr-account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 250px;
    background: #f4801f;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 0 40px -10px #000;
    color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: all .5s;
    z-index: 100;
}
.hdr-account-dropdown.down {
    max-height: 260px;
}
.hdr-account-dropdown p {
    padding: 15px 14px;
    margin: 0;
    transition: all .1s;
}
.hdr-account-dropdown p:hover {
    background: #1c3f6e;
    color: rgba(255,255,255,0.8);
}
.hdr-account-dropdown a {
    text-decoration: none;
    color: #fff;
}
.hdr-account-dropdown a:hover {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
}
.hdr-account-arrow {
    display: none;
}
.hdr-account-arrow.gone {
    display: block;
    position: absolute;
    right: 20px;
    top: 100%;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f4801f;
}

/* ---------- Breadcrumb / step bar ---------- */
.hdr-breadcrumb {
    background: #f7f8fa;
    border-bottom: 1px solid #e0e3e8;
}
.hdr-breadcrumb-inner ul#hdr-breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.hdr-step {
    padding: 12px 20px;
    font-size: 13px;
    color: #aeb6c0;
    white-space: nowrap;
}
.hdr-step a {
    color: inherit;
    text-decoration: none;
    cursor: default;
}
.hdr-step-prev a {
    cursor: pointer;
}
.hdr-step-prev {
    color: #7a879a;
}
.hdr-step-current {
    color: #e85c1f;
    font-weight: 700;
    border-top: 2px solid #e85c1f;
}
.hdr-step-sep {
    padding: 12px 4px;
    color: #ccd1d8;
    white-space: nowrap;
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 1024px) {
    .hdr-topbar-inner {
        justify-content: space-between;
    }
    .hdr-bluebar-inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .hdr-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .hdr-langform {
        width: 100%;
        justify-content: space-between;
    }
    .hdr-bluebar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hdr-action,
    .hdr-nav,
    .hdr-nav ul,
    .hdr-btn-club,
    .hdr-account {
        width: 100%;
    }
    .hdr-btn-club {
        width: 100%;
        text-align: center;
    }
    .hdr-account-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
    .hdr-breadcrumb-inner ul#hdr-breadcrumb-list {
        justify-content: flex-start;
    }
}

/* ============================================================
   #modal-grimaldi-club (Area Riservata / login) - markup lives in
   includes/footer.php, unchanged in this pilot. Restyled here to
   match the header/paxlist mockup palette (navy #1c3f6e, orange
   accent #f4801f) instead of the old grey/blue Google-sign-in look.
   ============================================================ */

.loginmodal-container {
    padding: 30px;
    max-width: 450px;
    width: 100% !important;
    box-sizing: border-box; /* B2C 2.5: was content-box, causing overflow on narrow .md-modal widths */
    background-color: #fff;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    overflow: hidden;
    font-family: inherit;
}

.loginmodal-container h1 {
    text-align: center;
    font-size: 1.6em;
    font-weight: 800;
    font-family: inherit;
    color: #1c3f6e;
}

.loginmodal-container input[type=button] {
    width: 100%;
    display: block;
    margin-bottom: 10px;
    position: relative;
}

.loginmodal-container input[type=text], input[type=password] , input[type=email] {
    height: 44px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 9px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    color: #1c3f6e;
}

.loginmodal-container input[type=text]:hover, input[type=password]:hover,
.loginmodal-container input[type=text]:focus, input[type=password]:focus {
    border: 1px solid #1c3f6e;
    outline: none;
}

.loginmodal {
    text-align: center;
    font-size: 14px;
    font-family: inherit;
    font-weight: 700;
    height: 36px;
    padding: 0 8px;
}

.loginmodal-submit {
    border: 0;
    border-radius: 3px;
    color: #fff;
    text-shadow: none;
    background-color: #f4801f;
    padding: 13px 0;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
}

.loginmodal-submit:hover {
    border: 0;
    text-shadow: none;
    background-color: #d96e17;
}

.loginmodal-container a {
    text-decoration: none;
    color: #2f6fb0;
    font-weight: 600;
    font-size: 12.5px;
    text-align: center;
    display: inline-block;
    opacity: 1;
    transition: color ease .2s;
}

.loginmodal-container a:hover {
    color: #1c3f6e;
    text-decoration: underline;
}

.login-help{
    font-size: 1em;
}

.login-btn {
    text-align:center;
    margin-top: 50px;
}

.login-button {
    line-height: 55px;
    padding: 0 30px;
    background: #1c3f6e;
    color: #fff;
    display: inline-block;
    font-family: inherit;
    text-decoration: none;
    font-size: 18px;
    border-radius: 3px;
}

.login-button:hover,
.login-button:visited {
    background: #14304f;
    color: #fff;
}

.login-help .text-left{
    float:left;
}

.login-help .text-right{
    float:right;
}
