/* _shared.css · v. 1.04 - 9 August 2026 */
/* Solo stili di nav (header.site-nav) e footer. Nessuno stile di contenuto: quello resta nello style inline di ogni pagina. */

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--menu-bg);
  border-bottom: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

header.site-nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  width: 112px;
}

ul.menu {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  list-style: none;
}

ul.menu a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
  white-space: nowrap;
}

ul.menu a:hover, ul.menu a:focus-visible { color: #fff; }

ul.menu a.active { color: var(--bordeaux-light); font-weight: 800; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.nav-toggle:hover { background: rgba(255,255,255,0.16); }

/* FOOTER */
footer {
  background: #6B1969;
  color: rgba(255,255,255,0.82);
  padding: 4rem 0 0;
  font-size: 0.88rem;
}

footer a { color: #fff; text-decoration: none; transition: color 0.15s ease; }
footer a:hover { color: #E8A6C3; text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  row-gap: 2.8rem;
  column-gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw 2.8rem;
}

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.1rem;
}

.footer-game-title {
  margin-top: 1.6rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.05rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.footer-social a.i-linkedin { background: #0A66C2; }
.footer-social a.i-facebook { background: #1877F2; }
.footer-social a.i-spotify { background: #1DB954; }
.footer-social a.i-podcast { background: #E8A6C3; color: #4E1250; }
.footer-social a.i-telegram { background: #26A5E4; }
.footer-social a.i-whatsapp { background: #25D366; }
.footer-social a.i-youtube { background: #FF0000; }

.footer-apps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.footer-apps a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  transition: background 0.15s ease;
}

.footer-apps a:hover {
  background: #000;
  text-decoration: none;
}

.footer-apps a.game-btn {
  background: #fff;
  color: #4E1250;
  border: none;
}

.footer-apps a.game-btn:hover {
  background: #F3E6F3;
}

.footer-apps i { font-size: 1.2rem; }

.footer-col-links {
  padding-top: 2.1rem;
}

.footer-store {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.6rem 6vw 0;
}

.footer-store a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.footer-store a:hover {
  background: #000;
  text-decoration: none;
}

.footer-store i { font-size: 0.95rem; }

.footer-bottom {
  background: #4E1250;
}

.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 6vw;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.footer-legal a { color: rgba(255,255,255,0.75); }

.footer-legal .sep {
  margin: 0 0.5rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 860px) {
  header.site-nav .wrap {
    display: flex;
    justify-content: space-between;
  }

  .nav-toggle { display: flex; }

  ul.menu {
    position: fixed;
    top: 76px;
    right: 0;
    left: auto;
    background: var(--menu-bg);
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding: 0.5rem 0 1.5rem;
    box-shadow: 0 16px 32px -12px rgba(0,0,0,0.5);
    max-width: 70vw;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }

  ul.menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  ul.menu a {
    padding: 1.15rem 6vw;
    width: 100%;
    font-size: 1.15rem;
    text-align: right;
    border-bottom: 1px solid rgba(255,255,255,0.5);
  }

  ul.menu li:last-child a { border-bottom: none; }

  ul.menu a:hover { background: rgba(255,255,255,0.06); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.2rem;
    column-gap: 1.2rem;
  }

  .footer-col-links {
    padding-top: 0;
  }

  .footer-col:not(.footer-col-links) {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.5);
    padding-top: 1.8rem;
    margin-top: 0.4rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-apps {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
