/* Header ufficiale condiviso. Ogni selettore resta confinato al solo header. */
.shared-site-header .menu-toggle { display:none; }
.shared-site-header .container { width:min(1240px,calc(100% - 64px)); }
.site-header.shared-site-header { position:relative; z-index:50; background:#fff; }
.shared-site-header .header-inner { display:grid; grid-template-columns:auto minmax(0,1fr) auto; min-height:76px; column-gap:20px; }
.shared-site-header .header-brand-group { display:flex; align-items:center; gap:16px; }
.shared-site-header .brand { width:164px; }
.shared-site-header .main-nav { justify-self:center; margin:0; color:var(--text); gap:4px; font-family:Manrope,'DM Sans',Arial,sans-serif; font-size:12px; font-weight:600; line-height:1.2; }
.shared-site-header .main-nav a { padding:8px 6px; }
.shared-site-header .main-nav [aria-current] { padding-inline:10px; border-radius:7px; background:var(--green); color:#fff; text-decoration:none; }
.shared-site-header .header-actions { gap:7px; }
.shared-site-header .icon-button { width:32px; height:34px; padding:0; border:0; border-radius:0; background:transparent; }
.shared-site-header .icon-button svg { width:26.25px; height:26.25px; stroke-width:1.6; }
.shared-site-header .profile-preview:disabled { cursor:default; opacity:1; }
.shared-site-header .region-link { min-height:34px; padding:8px 13px; border-radius:8px; font-family:Manrope,'DM Sans',Arial,sans-serif; font-size:11.5px; font-weight:600; }
.shared-site-header .mobile-extra { display:none; }

/* Il menu passa alla versione compatta prima che le cinque voci si affollino. */
@media (max-width:1000px) {
  .shared-site-header .container { width:calc(100% - 40px); }
  .shared-site-header .header-inner { grid-template-columns:minmax(0,1fr) auto; min-height:76px; gap:16px; }
  .shared-site-header .brand { width:155px; }
  .shared-site-header .header-actions { gap:8px; }
  .shared-site-header .icon-button { width:39px; height:39px; }
  .shared-site-header .saved-recipes-link,.shared-site-header .profile-preview,.shared-site-header .region-link { display:none; }
  .shared-site-header .menu-toggle { display:inline-grid; }
  .shared-site-header .main-nav { display:none; position:absolute; top:100%; left:0; right:0; justify-self:stretch; padding:16px 20px 20px; background:#fff; box-shadow:0 12px 25px #0002; flex-direction:column; align-items:stretch; gap:0; }
  .shared-site-header .main-nav.is-open { display:flex; }
  .shared-site-header .main-nav a { display:block; font-size:15px; padding:12px 7px; border-bottom:1px solid var(--line); }
  .shared-site-header .main-nav [aria-current] { padding-inline:12px; border-bottom-color:transparent; }
  .shared-site-header .main-nav .mobile-extra { display:flex; align-items:center; }
  .shared-site-header .main-nav .mobile-region-link { justify-content:center; margin-top:14px; padding:12px 18px; color:#fff; border-color:var(--green); }
}
@media (max-width:580px) {
  .shared-site-header .container { width:calc(100% - 36px); }
  .shared-site-header .header-inner { min-height:70px; }
  .shared-site-header .brand { width:135px; }
}
