/* Shared public navigation. Native details remains usable without JavaScript. */
body:has(> .bmk-site-header) { padding-top: 0; }
body > header.bmk-site-header {
    position: sticky; top: 0; left: auto; width: 100%; padding: 0;
    z-index: 1000; background: #fff; border-bottom: 1px solid #e1e6dd;
    box-shadow: 0 3px 16px #213b2d08; color: #213b2d;
}
.bmk-site-header .bmk-header-inner { max-width: 1280px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 24px; }
.bmk-site-header .bmk-header-logo { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; margin: 0; padding: 0; }
.bmk-site-header .bmk-header-logo img { display: block; object-fit: contain; max-width: none; transition: transform .3s ease; }
.bmk-site-header .bmk-header-logo img:first-child { width: 55px; height: 55px; }
.bmk-site-header .bmk-header-logo img:last-child { width: 161px; height: 65px; }
.bmk-site-header .bmk-desktop-navigation { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 0; padding: 0; margin: 0; max-width: none; }
.bmk-site-header .bmk-desktop-navigation > a { padding: 8px 17px; border-left: 1px solid #213b2d1a; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.bmk-site-header .bmk-desktop-navigation > a:first-child { border-left: 0; }
.bmk-site-header a { color: #213b2d; font: 700 .85rem/1.45 var(--font-main, sans-serif); text-decoration: none; }
.bmk-site-header a small { display: block; font: inherit; }
.bmk-site-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.bmk-site-header .bmk-desktop-navigation > .bmk-contact-button,
.bmk-site-header .bmk-contact-button { background: #436b31; color: #fff; border: 0; border-radius: 9px; padding: 12px 20px; margin-left: 12px; }
.bmk-site-header a:focus-visible, .bmk-site-header summary:focus-visible { outline: 3px solid #426b29; outline-offset: 4px; }
.bmk-site-header .bmk-mobile-call, .bmk-site-header .bmk-mobile-navigation { display: none; }
/* The new header occupies its own space; remove offsets for the former fixed bar. */
body.page-generali:has(> .bmk-site-header) .gen-hero,
body.page-generali:has(> .bmk-site-header) .insurance-hero,
body.page-recruitment:has(> .bmk-site-header) .recruitment-hero,
body.purchase-page:has(> .bmk-site-header) .purchase-hero { padding-top: 55px; }
body.public-refresh.public-blog-article:has(> .bmk-site-header) .article-container { margin-top: 40px; }
@media (hover: hover) {
    .bmk-site-header .bmk-header-logo:hover img { transform: scale(1.05); }
    .bmk-site-header nav a:hover { color: #426b29; background: #f2f6ed; }
    .bmk-site-header nav .bmk-contact-button:hover { background: #345720; color: #fff; }
}
@media (max-width: 1100px) {
    .bmk-site-header .bmk-header-inner { height: 72px; padding: 10px 20px; gap: 12px; }
    .bmk-site-header .bmk-header-logo { gap: 7px; margin-right: auto; }
    .bmk-site-header .bmk-header-logo img:first-child { width: 32px; height: 32px; }
    .bmk-site-header .bmk-header-logo img:last-child { width: 99px; height: 40px; }
    .bmk-site-header .bmk-desktop-navigation { display: none; }
    .bmk-site-header .bmk-mobile-call { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #365826; }
    .bmk-site-header .bmk-mobile-navigation { display: block; }
    .bmk-mobile-navigation > summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid #d2ddc9; border-radius: 8px; cursor: pointer; list-style: none; font: 700 .85rem/1.4 var(--font-main, sans-serif); }
    .bmk-mobile-navigation > summary::-webkit-details-marker { display: none; }
    .bmk-mobile-navigation[open] > summary { background: #edf3e6; }
    .bmk-site-header .bmk-mobile-panel { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; position: absolute; inset: 100% 0 auto; width: 100%; max-width: none; max-height: calc(100dvh - 72px); overflow-y: auto; margin: 0; padding: 12px 20px 22px; border-bottom: 1px solid #d2ddc9; background: #fff; box-shadow: 0 14px 20px #213b2d15; }
    .bmk-site-header .bmk-mobile-panel > a { min-height: 48px; display: flex; align-items: center; padding: 12px 8px; border-bottom: 1px solid #edf0e9; }
    .bmk-site-header .bmk-mobile-panel > .bmk-contact-button { margin: 12px 0 0; justify-content: center; }
    body.page-generali:has(> .bmk-site-header) .gen-hero,
    body.page-generali:has(> .bmk-site-header) .insurance-hero,
    body.page-recruitment:has(> .bmk-site-header) .recruitment-hero,
    body.purchase-page:has(> .bmk-site-header) .purchase-hero { padding-top: 30px; }
    body.public-refresh.public-blog-article:has(> .bmk-site-header) .article-container { margin-top: 26px; }
}
@media (max-width: 380px) { .bmk-site-header .bmk-mobile-call span { display: none; } .bmk-site-header .bmk-header-inner { padding-inline: 14px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .bmk-site-header .bmk-header-logo img { transition: none; transform: none; } }
