/* bar-site.css — v78 (Alberto: «keep the colour coding of the home page on the other pages, specially the menu»).
   Wormy, Teens and A Scuola pages: the site's top bar (site-header.css) sits on top; the page's own bar under it becomes
   the page's section tabs, in the HOME's colours (white / navy, green hover, navy pill for the current one; dark navy in
   dark mode). The game's round logo and its «Gioca» button keep their own colours. «Home» is in the site bar, so hidden here. */
.gcp {
  --bs-surface: #FFFFFF; --bs-fg: #16241A; --bs-muted: #4E5D53; --bs-line: #DCE6D8; --bs-navy: #012169;
  --bs-soft: #E6F3E0; --bs-on: #FFFFFF; --bs-panel: #F6F9F3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gcp {
    --bs-surface: #17224A; --bs-fg: #EEF2FF; --bs-muted: #B6C1DE; --bs-line: #2B3A6B; --bs-navy: #A9BEFF;
    --bs-soft: #1C3A2A; --bs-on: #0E1630; --bs-panel: #1E2B58;
  }
}
:root[data-theme="dark"] .gcp {
  --bs-surface: #17224A; --bs-fg: #EEF2FF; --bs-muted: #B6C1DE; --bs-line: #2B3A6B; --bs-navy: #A9BEFF;
  --bs-soft: #1C3A2A; --bs-on: #0E1630; --bs-panel: #1E2B58;
}

body.gcp { margin: 0; }   /* the pages had the browser's 8 px white/dark frame round them */
body:has(.sh-top) .bar { top: var(--sh-h, 64px); }
.gcp .bar {
  z-index: 900; background: var(--bs-surface); color: var(--bs-fg);
  border-bottom: 1px solid var(--bs-line); box-shadow: 0 6px 16px rgba(1, 33, 105, .07); backdrop-filter: none;
}
.gcp .bar .wrap { padding-block: 4px; }
.gcp .bar-badge { width: 56px; height: 56px; margin-block: -2px; }
.gcp .bar-badge .gc-badge .bb .by { fill: var(--bs-navy); }
body:has(.sh-top) .bar .btn-home { display: none; }

/* inside the «Cos'è…?» presentation (?embed=1) there is no site bar, but the menu has the same colours */
.gcp .bar .btn-home { background: var(--bs-navy); color: var(--bs-on); }
/* section tabs: same look as the home menu */
.gcp .bar .tabs a {
  font: 700 15px/1.2 'Nunito', system-ui, sans-serif; letter-spacing: 0; color: var(--bs-muted);
  background: none; border: 0; text-shadow: none; padding: 8px 12px; border-radius: 999px; animation: none;
}
.gcp .bar .tabs a::before, .gcp .bar .tabs a::after { content: none; }
.gcp .bar .tabs a:hover { background: var(--bs-soft); color: var(--bs-fg); }
.gcp .bar .tabs a[aria-current] { background: var(--bs-navy); color: var(--bs-on); box-shadow: none; }

/* phone menu of the page's sections */
.gcp .bar .burger { color: var(--bs-navy); border-color: var(--bs-line); background: transparent; }
.gcp .bar .drop { border-top: 1px solid var(--bs-line); }
.gcp .bar .drop a { color: var(--bs-fg) !important; background: var(--bs-panel); font: 700 15px 'Nunito', system-ui, sans-serif; }
.gcp .bar .drop a:hover { background: var(--bs-soft); }

/* IT/EN is in the site bar now: the floating one at the bottom right is not needed */
body:has(.sh-top) .float .lang { display: none; }

/* phones: the buttons never break onto two lines */
.gcp .bar .bar-r .btn { white-space: nowrap; }
@media (max-width: 420px) { .gcp .bar .bar-r .btn { padding: 7px 11px; font-size: 15px; } .gcp .bar-badge { width: 48px; height: 48px; } }
