/* Web temporal LaCani-GO! — mode fosc i menú propi sobre la còpia del Google Site */
:root { --cg-bg: #0e0e10; --cg-ink: #e9e6e7; --cg-accent: #ff5c7a; --cg-burgundy: #7d0120; }

html, body { background: var(--cg-bg) !important; color: var(--cg-ink); }

/* Amaguem la capçalera de Google (el menú depèn del seu JavaScript) */
#atIdViewHeader, .BbxBP, .zDUgLc { display: none !important; }

.cg-bar, .cg-bar * { box-sizing: border-box; }
.cg-bar {
  position: sticky; top: 0; z-index: 9999; display: flex; align-items: center; gap: 1.5rem;
  padding: .55rem 1.5rem; background: rgba(14, 14, 16, .92); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--cg-burgundy); font-family: Roboto, system-ui, sans-serif;
}
.cg-logo { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-size: 1.15rem; }
.cg-logo img { height: 38px; width: 38px; object-fit: cover; border-radius: 4px; }
.cg-nav { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.cg-nav a { color: #d9d4d6; text-decoration: none; padding: .45rem .8rem; border-radius: 6px; font-size: .97rem; }
.cg-nav a:hover, .cg-nav a.actiu, .cg-drop.actiu > a { color: #fff; background: rgba(255, 92, 122, .14); }
.cg-nav a.actiu, .cg-drop.actiu > a { box-shadow: inset 0 -2px 0 var(--cg-accent); }
.cg-drop { position: relative; }
.cg-sub {
  display: none; position: absolute; right: 0; top: 100%; min-width: 210px; padding: .4rem;
  background: #18181b; border: 1px solid #2c2c31; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cg-drop:hover .cg-sub, .cg-drop:focus-within .cg-sub { display: block; }
.cg-sub a { display: block; }
.cg-burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 820px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .cg-bar { position: fixed; left: 0; right: 0; width: 100vw; padding: .5rem 1rem; }
  body { padding-top: 56px; }
  .cg-burger { display: block !important; }
  .cg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
            align-items: stretch; background: #121214; padding: .5rem 1rem 1rem; border-bottom: 2px solid var(--cg-burgundy); }
  .cg-open .cg-nav { display: flex; }
  .cg-sub { display: block; position: static; box-shadow: none; border: 0; background: none; padding-left: 1rem; }
}

/* Enllaços i peu de pàgina de Google en fosc */
a { color: var(--cg-accent); }
.dZA9kd, .Xpil1b, footer, .Q2KC4b { background: var(--cg-bg) !important; color: #9b9598 !important; }
