/* ============================================================
   Mobile Drawer 2026 — InfoIschia restyle
   Namespaced .mob-drawer-* — applies only when drawer markup
   uses the .mob-drawer class. Specificity #mobileMenu.mob-drawer
   beats the legacy #mobileMenu inline rules in _header.html.
   ============================================================ */

/* Drawer container */
#mobileMenu.mob-drawer {
    width: 340px !important;
    max-width: 90vw !important;
    background: #f5f5f7; /* neutral cold gray (match spec immagine owner) */
    transition: transform 240ms ease-out !important;
    border-right: none !important;
}

/* Body — scroll wrapper.
   .offcanvas-body Bootstrap default ha overflow-y:auto + flex:1 1 auto, ma
   sull'offcanvas in stop-position alcuni viewport mobili (390x844 iPhone 14)
   non bastano a contenere nav + help-box + login + social → social pill in
   fondo tagliate sotto la fold. Forziamo height calc(100% - header) e
   padding-bottom per safe-area iOS. */
.mob-drawer-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Header */
.mob-drawer-header {
    background: #fff;
    padding: 14px 16px 16px;
    border-bottom: 1px solid #e5e1d8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mob-drawer-logo {
    height: 36px;
    width: auto;
    display: block;
}
.mob-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f1ea;
    color: #1a1a1a;
    font-size: 18px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.mob-drawer-close:hover {
    background: #ebe6dc;
}

/* Nav */
.mob-drawer-nav {
    padding: 8px;
}
.mob-drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 10px;
    color: #1e3c72;
    text-decoration: none;
    transition: background 150ms;
}
.mob-drawer-nav-item:hover,
.mob-drawer-nav-item:focus {
    background: rgba(30, 60, 114, 0.04);
    color: #1e3c72;
    text-decoration: none;
}
.mob-drawer-nav-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(30, 60, 114, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    font-size: 18px;
    flex-shrink: 0;
}
.mob-drawer-nav-label {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #1e3c72;
}
.mob-drawer-nav-chevron {
    font-size: 16px;
    color: #8a8a8a;
}

/* Help box */
.mob-drawer-help-box {
    margin: 6px 16px 0;
    background: #fff;
    border: 1px solid #e5e1d8;
    border-radius: 14px;
    padding: 16px 16px 18px;
}
.mob-drawer-help-eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    color: #d97706;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.mob-drawer-help-title {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #1e3c72;
    line-height: 1.3;
}
.mob-drawer-help-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f5f1ea;
    border-radius: 11px;
    text-decoration: none;
    color: inherit;
}
.mob-drawer-help-pill:hover,
.mob-drawer-help-pill:focus {
    text-decoration: none;
    color: inherit;
    background: #ebe6dc;
}
.mob-drawer-help-pill-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}
.mob-drawer-help-pill--phone .mob-drawer-help-pill-icon {
    background: #1e3c72;
}
.mob-drawer-help-pill--whatsapp .mob-drawer-help-pill-icon {
    background: #25D366;
    font-size: 14px;
}
.mob-drawer-help-pill-text {
    flex: 1;
    min-width: 0;
}
.mob-drawer-help-pill-eyebrow {
    font-size: 10px;
    font-weight: 700;
    color: #8a8a8a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.mob-drawer-help-pill-value {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e3c72;
}
.mob-drawer-help-pill::after {
    content: '\f285'; /* bi-chevron-right */
    font-family: 'bootstrap-icons';
    font-size: 14px;
    color: #8a8a8a;
}
.mob-drawer-help-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 13px;
    background: #f5a623;
    color: #fff;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
    transition: background 150ms;
}
.mob-drawer-help-cta:hover,
.mob-drawer-help-cta:focus {
    background: #e09000;
    color: #fff;
    text-decoration: none;
}
.mob-drawer-help-cta i {
    font-size: 13px;
}

/* Login row */
.mob-drawer-login-row {
    padding: 14px 16px 0;
}
.mob-drawer-login-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e1d8;
    border-radius: 12px;
    color: #1e3c72;
    text-decoration: none;
    transition: border-color 150ms;
}
.mob-drawer-login-link:hover,
.mob-drawer-login-link:focus {
    border-color: #1e3c72;
    color: #1e3c72;
    text-decoration: none;
}
.mob-drawer-login-link > .bi-person {
    font-size: 16px;
    color: #1e3c72;
}
.mob-drawer-login-label {
    flex: 1;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e3c72;
}
.mob-drawer-login-chevron {
    font-size: 14px;
    color: #8a8a8a;
}

/* Social */
.mob-drawer-social {
    padding: 20px 16px 24px;
}
.mob-drawer-social-eyebrow {
    font-size: 10px;
    font-weight: 800;
    color: #8a8a8a;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.mob-drawer-social-pills {
    display: flex;
    gap: 8px;
}
.mob-drawer-social-pill {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    transition: transform 150ms;
}
.mob-drawer-social-pill:hover,
.mob-drawer-social-pill:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.mob-drawer-social-pill--instagram {
    background: linear-gradient(135deg, #fa7e1e 0%, #d62976 50%, #962fbf 100%);
}
.mob-drawer-social-pill--facebook {
    background: #1877f2;
}
