/* =====================================================================
   SP-CHROME (30/11/2026) — header e footer del sito, su tutte le pagine che includono header_menu.php / footer.php.
   Proposte e scelta di Lo sulla tela "Strummers — Header e footer (proposte)": header A · Una riga con la
   sottolineatura della pagina attiva della B, menu mobile rosa raggruppato, footer a tre colonne.
   Autonomo: non dipende da sp-core.css e resiste ai vecchi stili globali (styles.css: a:hover opacity;
   mediaQueries-burgermenu.css: * { margin: 0; padding: 0 } sotto i 768 px). Classi sh- (header) e sf- (footer).
   I vecchi stili del header (layout.css, mediaQueries-burgermenu.css) non hanno più markup: si tolgono a fine restyling.
   ===================================================================== */

.sh, .sf { --c-ink: #293241; --c-dark: #151a22; --c-pink: #E71C5B; --c-pink-d: #c91a4d; --c-pink-t: #9e1440;
  --c-soft: #fdebf1; --c-line: #ece6dc; --c-muted: #5c636a;
  font-family: 'Raleway', system-ui, sans-serif; line-height: 1.3; }
.sh *, .sf * { box-sizing: border-box; }
.sh a, .sf a { text-decoration: none; opacity: 1; }
.sh a:hover, .sf a:hover { opacity: 1; }
.sh__i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }
.sh__i--l { width: 28px; height: 28px; }
.sh__i--s { width: 16px; height: 16px; }
.sh a:focus-visible, .sh button:focus-visible, .sf a:focus-visible { outline: 3px solid var(--c-pink); outline-offset: 2px; }

/* ---------- Barra ---------- */
.sh { position: relative; z-index: 900; background: #fff; border-bottom: 1px solid var(--c-line); color: var(--c-ink); }
.sh__bar { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 24px; }
.sh__logo { display: flex; align-items: center; flex: none; }
.sh__logo img { height: 46px; width: auto; display: block; }
.sh__burger { display: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--c-ink);
  align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }

.sh__nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.sh__nav a { position: relative; display: inline-flex; align-items: center; height: 72px; padding: 0 12px;
  font-size: 15px; font-weight: 700; color: var(--c-ink); }
.sh__nav a:hover { color: var(--c-pink-t); }
.sh__nav a[aria-current="page"] { color: var(--c-pink-t); box-shadow: inset 0 -3px 0 var(--c-pink); }
.sh__sep { width: 1px; height: 24px; background: var(--c-line); margin: 0 8px; }

.sh__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sh__cherries { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 6px; margin-right: 8px;
  border-radius: 999px; background: var(--c-soft); color: var(--c-ink); }
.sh__cherries img { width: 32px; height: 32px; display: block; }
.sh__cherries span { display: flex; flex-direction: column; line-height: 1.1; }
.sh__cherries b { font-size: 14px; font-weight: 900; color: var(--c-pink-t); }
.sh__cherries small { font-size: 11px; font-weight: 700; color: var(--c-muted); }
.sh__cherries:hover, .sh__cherries[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--c-pink); color: var(--c-ink); }

.sh__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; color: var(--c-ink) !important; }
.sh__icon:hover { background: #f4efe6; }
.sh__badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--c-pink-d); color: #fff; font-size: 11px; font-weight: 900; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff; }
.sh__notif { position: relative; }

.sh__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.sh__btn--ghost { border: 2px solid #ced4da; color: var(--c-ink) !important; }
.sh__btn--ghost:hover { border-color: var(--c-pink); }
.sh__btn--pink { background: var(--c-pink-d); color: #fff !important; }
.sh__btn--pink:hover { background: var(--c-pink-t); }

/* ---------- Menu del profilo ---------- */
.sh__account { position: relative; }
.sh__me { display: inline-flex; align-items: center; gap: 6px; height: 44px; margin: 0; padding: 0 8px 0 3px; border: 2px solid var(--c-line);
  border-radius: 999px; background: #fff; color: var(--c-ink); cursor: pointer; }
.sh__me[aria-expanded="true"], .sh__me:hover { border-color: var(--c-pink-d); }
.sh__me img, .sh__ini { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.sh__ini { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #c91a4d, #5a1230);
  color: #fff; font-size: 13px; font-weight: 900; }
.sh__ini--l { width: 44px; height: 44px; font-size: 15px; }
.sh__drop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1000; width: 300px; padding: 10px; background: #fff;
  border: 1px solid var(--c-line); border-radius: 18px; box-shadow: 0 18px 40px rgba(21, 26, 34, .16); }
.sh__drop[hidden] { display: none; }
.sh__who { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; border-bottom: 1px solid var(--c-line); color: var(--c-ink) !important; }
.sh__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sh__who b { display: block; font-size: 16px; font-weight: 900; }
.sh__who small { font-size: 13px; font-weight: 700; color: var(--c-pink-t); }
.sh__grp { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.sh__grp:last-child { border-bottom: 0; padding-bottom: 0; }
.sh__grp a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: var(--c-ink) !important; }
.sh__grp a:hover { background: var(--c-soft); }
.sh__grp a.sh__quiet { color: var(--c-muted) !important; }

/* ---------- Scorciatoie e menu (telefono) ---------- */
.sh__tabs { display: none; }
.sh__menu { position: fixed; inset: 0; z-index: 2000; background: var(--c-pink); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.sh__menu[hidden] { display: none; }
html.sh-locked, html.sh-locked body { overflow: hidden; }
.sh__menu-top { height: 60px; display: flex; align-items: center; padding: 0 8px; }
.sh__menu-top .sh__burger { display: inline-flex; color: var(--c-dark); }
.sh__menu-brand { margin: 0 auto; font-weight: 900; font-size: 19px; }
.sh__menu-brand span { color: var(--c-dark); }
.sh__menu-pad { width: 44px; }
.sh__menu-body { padding: 12px 20px 24px; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.sh .sh__lbl { margin: 18px 0 10px; padding: 0; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #ffd0dd; }
.sh .sh__lbl--line { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .35); }
.sh__big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sh__big a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .16); font-size: 19px; font-weight: 800; color: #fff !important; text-align: center; }
.sh__big a[aria-current="page"] { background: #fff; color: var(--c-pink-t) !important; }
.sh__big--cta { margin-top: 18px; }
.sh__big a.sh__dark-btn { background: var(--c-dark); }
.sh__acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
.sh__acc a { display: flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 16px; font-weight: 700; color: #fff !important; }
.sh__acc a.sh__dark { color: var(--c-dark) !important; }
.sh__menu-foot { display: flex; justify-content: center; gap: 22px; margin-top: 28px; }
.sh__menu-foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: #fff !important; }

@media (max-width: 1080px) {
  .sh__cherries span { display: none; }
  .sh__cherries { padding: 0 6px; margin-right: 4px; }
  .sh__nav a { padding: 0 9px; }
}
@media (max-width: 960px) {
  .sh__bar { height: 60px; padding: 0 8px; gap: 4px; }
  .sh__burger { display: inline-flex; }
  .sh__logo { margin: 0 auto; }
  .sh__logo img { height: 38px; }
  .sh__nav, .sh__cherries, .sh__account, .sh__btn--pink { display: none; }
  .sh__right { margin-left: 0; gap: 0; }
  .sh__btn--ghost { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .sh__tabs { display: flex; border-top: 1px solid var(--c-line); background: #fffdf9; }
  .sh__tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px;
    font-size: 12px; font-weight: 700; color: var(--c-muted) !important; }
  .sh__tabs a .sh__i { width: 24px; height: 24px; }
  .sh__tabs a img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c-pink-d); }
  .sh__tabs a[aria-current="page"] { color: var(--c-pink-d) !important; box-shadow: inset 0 -3px 0 var(--c-pink-d); }
  .notifications-dropdown { position: fixed !important; top: 64px !important; left: 12px; right: 12px !important; width: auto !important; }
}

/* ---------- Footer ---------- */
.sf { margin-top: 96px; background: var(--c-dark); color: #e9e4da; }
.sf__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sf__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 32px; border-radius: 20px;
  background: var(--c-pink); color: #fff; transform: translateY(-50%); margin-bottom: -24px; }
.sf .sf__cta b { display: block; margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.sf .sf__cta span { font-size: 15px; font-weight: 600; color: #ffe3ea; }
.sf__cta a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--c-dark);
  color: #fff !important; font-weight: 800; font-size: 16px; white-space: nowrap; }
.sf__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 36px; }
.sf__cta + .sf__grid { padding-top: 8px; }
.sf__brand { display: flex; flex-direction: column; gap: 14px; }
.sf__logo { display: flex; align-items: center; gap: 12px; color: #fff !important; font-weight: 900; font-size: 22px; }
.sf__logo img { width: 52px; height: 52px; display: block; }
.sf__logo span span { color: #ff8fb0; }
.sf .sf__claim { margin: 0; font-size: 15px; font-weight: 600; color: #b9b3a8; max-width: 300px; }
.sf__soc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sf__soc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #3a4351;
  font-size: 13px; font-weight: 700; color: #e9e4da !important; }
.sf__soc a:hover { border-color: #ff8fb0; color: #fff !important; }
.sf .sf__h { margin: 0 0 12px; padding: 0; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #ff8fb0; }
.sf__col a { display: flex; align-items: center; min-height: 36px; font-size: 15px; font-weight: 600; color: #d6d0c5 !important; }
.sf__col a:hover { color: #fff !important; }
.sf__bottom { border-top: 1px solid #2a323e; }
.sf__bottom .sf__in { padding-top: 16px; padding-bottom: 16px; font-size: 13px; font-weight: 600; color: #8f98a6; }
/* iubenda trasforma i suoi link in pulsanti: qui restano link di testo */
.sf a.iubenda-embed { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
  font-family: inherit !important; font-size: 15px !important; font-weight: 600 !important; color: #d6d0c5 !important;
  min-height: 36px; display: flex !important; align-items: center; }
@media (max-width: 860px) {
  .sf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .sf__brand { grid-column: 1 / -1; }
  .sf__cta { flex-direction: column; align-items: stretch; transform: none; margin: -40px 0 0; padding: 22px 20px; }
  .sf__cta a { justify-content: center; }
  .sf__col a, .sf a.iubenda-embed { min-height: 44px; font-size: 16px; }
  .sf__soc a { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .sf__legal { grid-column: 1 / -1; }
  .sf__legal .sf__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
