/* =========================================================
   SUMMONER CONNECT — FOGLIO STILI COMPLETO (commentato)
   Fonte: style.css originale
   Note:
   - Commenti in italiano per ogni macro-sezione e proprietà rilevanti
   - Focus su accessibilità, responsività, micro-animazioni e lucidità visiva
   ========================================================= */

/* ---------------------------
   RESET & BASE GLOBALI
   --------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Include padding/border nel calcolo delle dimensioni */
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  /* Sfondo con sfumatura radiale “galattica” per profondità */
  background: radial-gradient(circle at 50% 20%, #2b4fa3 0%, #102455 70%, #0a112d 100%);
  overflow-x: hidden;  /* Evita scroll orizzontale accidentale */
  min-height: 100vh;
  scroll-behavior: smooth; /* Scroll morbido su anchor */
  position: relative; /* Necessario per pseudo-elementi fissati */
}

/* Effetti stellati e alone di luce in background (decorativo, non interattivo) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none; /* Non intercettano click */
  z-index: -2;          /* Dietro ai contenuti */
}

/* Alone centrale sfocato per aumentare il contrasto del contenuto */
body::before {
  background: radial-gradient(
    circle at center,
    rgba(80, 150, 255, .35) 0%,
    rgba(0, 0, 40, .4) 60%,
    rgba(0, 0, 0, .9) 100%
  );
  filter: blur(80px);
}

/* Pattern di “stelle” molto soft che si muove lentamente */
body::after {
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 1px, transparent 2px);
  background-size: 140px 140px;
  opacity: .4;
  filter: blur(.5px);
  animation: stars 180s linear infinite; /* Lento parallax */
}

@keyframes stars {
  from { background-position: 0 0; }
  to   { background-position: -3000px -3000px; }
}

/* ---------------------------
   NAVBAR (sticky + glassmorphism)
   --------------------------- */
nav.container-fluid {
  position: fixed;        /* Fissa la navbar al top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;          /* Sopra a tutto */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 2rem;
  background: rgba(10, 15, 44, .7);  /* vetro traslucido */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, .15);
  transition: background .3s ease, box-shadow .3s ease;
}


/* Stato “scrolled” per aumentare la leggibilità su sfondi scuri */
nav.container-fluid.scrolled {
  background: rgba(10, 15, 44, .9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* Blocchi di layout desktop */
.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1 1 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Logo SVG con bagliore pulsante */
.logo-simple {
  width: 220px;
  filter: drop-shadow(0 0 6px #FFD700);
  animation: logoGlow 2.5s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { filter: drop-shadow(0 0 4px #FFD700); }
  to   { filter: drop-shadow(0 0 14px #FFD700); }
}

/* Menu principale (desktop) */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-menu a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}

.nav-menu a:hover {
  color: #fff; /* Hover più leggibile */
}

/* Lato destro della nav (icone, lingua, login) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Link Discord con animazione sottile */
.discord-link img {
  width: 24px;
  height: 24px;
  filter: brightness(1);
  transition: filter .25s, transform .25s;
}

.discord-link:hover img {
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(255,215,0,.45));
  transform: translateY(-1px);
}

/* Switch lingua (IT/EN) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.lang-switch img {
  width: 16px;
  transition: transform .2s, filter .2s;
  filter: drop-shadow(0 0 1px rgba(212,175,55,.3));
}

.lang-switch img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 3px #FFD700);
}

.lang-switch span {
  color: #FFD700;
  font-weight: 700;
  font-size: .8rem;
}

/* Dropdown login accessibile (controllato da JS) */
.login-dropdown { position: relative; }

.login-btn {
  font-weight: 600;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: .4rem .9rem;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}

.login-btn:hover {
  background: #FFD700;
  color: #0A0F2C;
  box-shadow: 0 0 10px #FFD700;
}

/* Menu interno del login (aperto/chiuso via classe .show) */
.login-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 2.8rem;
  background: rgba(10, 15, 44, .97);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, .25);
  box-shadow: 0 0 10px rgba(255, 215, 0, .3);
  padding: .5rem 0;
  min-width: 200px;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s, transform .2s;
  z-index: 60;
}

.login-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.login-menu li { list-style: none; }

.login-menu li a {
  color: #fff;
  display: block;
  padding: .7rem 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.login-menu li a:hover {
  background: rgba(255, 215, 0, .15);
  color: #FFD700;
}

/* Bottoni icona (notifiche/messaggi) con badge */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  transition: transform 0.25s ease, filter 0.25s ease;
  position: relative;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3));
  transition: filter 0.25s ease, transform 0.25s ease;
}


.icon-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px #FFD700);
}
.icon-btn:hover svg {
  filter:
    drop-shadow(0 0 8px rgba(255, 215, 0, 0.6))
    drop-shadow(0 0 14px rgba(255, 215, 0, 0.35));
  transform: scale(1.12);
}
.icon-btn.has-badge { position: relative; }

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #FFD700;
  color: #0A0F2C;
  font-size: 10px;
  line-height: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(255, 215, 0, .6);
}
.icon-btn.has-badge .badge {
  background: #FFD700;
  color: #0A0F2C;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}
/* ---------------------------
   CONTROLLI/MENU MOBILE
   --------------------------- */

/* Tasto hamburger (mostrato da 1024px in giù) */
#mobile-menu-btn {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #FFD700;
  cursor: pointer;
  z-index: 100;
}

/* Logo testuale per mobile */
.mobile-logo {
  display: none;
  color: #FFD700;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255,215,0,.6);
  margin-left: .6rem;
}

/* Icone su header mobile (notifiche/messaggi) */
.mobile-icons {
  display: none;
}

/* Drawer laterale mobile */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -260px; /* Nascosto fuori viewport */
  width: 240px;
  height: 100%;
  background: rgba(10, 15, 44, .97);
  backdrop-filter: blur(6px);
  box-shadow: 2px 0 15px rgba(0,0,0,.5);
  transition: left .3s;
  z-index: 90;
  padding-top: 3rem; /* Spazio per header */
}

.mobile-menu.show { left: 0; } /* Stato aperto */

.mobile-menu ul {
  list-style: none;
  padding: 0 1rem;
}

.mobile-menu li { margin-bottom: 1.2rem; }

.mobile-menu a {
  color: #FFD700;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color .3s;
}

.mobile-menu a:hover { color: #fff; }

/* Overlay oscurante dietro il menu mobile */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 80;
}

#menu-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ---------------------------
   HERO (immagine di copertina)
   --------------------------- */
   .hero-section {
   position: relative;
   height: 80vh;
   background: url('hero.jpg') center/cover no-repeat fixed;
   display: flex;
   align-items: center;
   justify-content: center;
 }


/* Overlay scuro per migliorare il contrasto del titolo */
.hero-section .overlay {
  background: rgba(0, 0, 0, .4);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
}

.hero-section .overlay p {
  color: #f0f0f0;
  font-size: 1.1rem;
  margin-top: .8rem;
}

/* Titolo con glow dorato */
.glow-text {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  color: #D4AF37;
  text-shadow:
    0 0 10px #D4AF37,
    0 0 20px #FFD700,
    0 0 40px #FFD700;
  animation: glow 2.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #D4AF37; }
  to   { text-shadow: 0 0 25px #FFD700, 0 0 50px #FFD700; }
}

/* ---------------------------
   SEZIONI MATCHMAKING (griglia)
   --------------------------- */
.matchmaking-sections {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr; /* Due colonne bilanciate */
  gap: 4rem;
  justify-items: center;
  align-items: stretch;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card modulari con bordo luminoso e hover 3D leggero */
.section-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, .25);
  box-shadow: 0 0 18px rgba(255, 215, 0, .14);
  background: transparent;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  padding: 1.3rem 2rem;
  width: 100%;
  max-width: 680px;
  min-height: 300px;
}

.section-card:hover {
  box-shadow:
    0 0 25px rgba(255, 215, 0, .4),
    inset 0 0 22px rgba(255, 215, 0, .18);
  background: rgba(10, 15, 44, .2);
  transform: translateY(-6px);
}

.section-card h2 {
  font-family: 'Cinzel', serif;
  color: #FFD700;
  font-size: 2.3rem;
  text-shadow: 0 0 12px rgba(255, 215, 0, .4);
  margin-bottom: .6rem;
  letter-spacing: 1px;
}

.section-card p {
  font-family: 'Montserrat', sans-serif;
  color: #f5f7ff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(176, 210, 255, .3);
  margin-bottom: 1.2rem;
}

/* Contenitore bottoni (wrap su più righe se serve) */
.section-buttons {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}

/* Bottoni dorati riutilizzabili (anche fuori matchmaking) */
.btn-gold {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, .75);
  color: #FFD700;
  text-decoration: none;
  background: rgba(15, 18, 46, .35);
  font-weight: 600;
  transition: all .25s;
}

.btn-gold:hover {
  background: rgba(255, 215, 0, .12);
  box-shadow:
    0 0 14px rgba(255, 215, 0, .45),
    0 0 28px rgba(255, 215, 0, .35),
    inset 0 0 10px rgba(255, 215, 0, .18);
  transform: translateY(-2px);
}

.btn-gold.disabled {
  opacity: .7;
  cursor: default;
  pointer-events: none; /* Disattiva il click */
}

/* Emblema con alone radiale animico (colore variabile per sezione) */
.emblem-wrap {
  position: relative;
  width: min(180px, 55%);
  margin: 0 auto .5rem;
  aspect-ratio: 1 / 1; /* Mantiene quadrato */
}

.emblem-wrap::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(80, 150, 255, .45) 0%,
    rgba(40, 90, 180, .25) 35%,
    rgba(10, 25, 70, .10) 65%,
    rgba(0, 0, 0, 0) 80%
  );
  filter: blur(5px);
  z-index: 0;
}

/* Variante “forfun” più violetta e playful */
.section-card.forfun .emblem-wrap::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(200, 130, 255, .45) 0%,
    rgba(140, 80, 255, .25) 35%,
    rgba(40, 10, 100, .10) 65%,
    rgba(0, 0, 0, 0) 80%
  );
}

/* Immagine sopra l’alone */
.emblem-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

/* Micro-shift orizzontale alternato per dare dinamismo a desktop */
.section-card.ranked,
.section-card.tornei {
  transform: translateX(-20px);
}

.section-card.forfun,
.section-card.community {
  transform: translateX(20px);
}

.section-card.ranked:hover,
.section-card.tornei:hover {
  transform: translateX(-20px) translateY(-5px);
}

.section-card.forfun:hover,
.section-card.community:hover {
  transform: translateX(20px) translateY(-5px);
}

/* Titoli sezioni in uppercase con gradiente dorato lucido */
.section-card.ranked .ranked-title,
.section-card.forfun h2,
.section-card.tornei h2,
.section-card.community h2 {
  font-size: 2.3rem;
  letter-spacing: 3px;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFD700 0%, #FFF4B0 50%, #FFD700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* Mostra solo il gradiente */
  text-shadow:
    0 0 10px rgba(255, 215, 0, .7),
    0 0 28px rgba(255, 215, 0, .55),
    0 0 45px rgba(255, 215, 0, .35);
  margin-bottom: .5rem;
  text-transform: uppercase;
  text-align: center;
}

/* ---------------------------
   COACHING (callout centrale)
   --------------------------- */
.coaching-section {
  max-width: 1250px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.coaching-overlay {
  border: 1px solid rgba(255, 215, 0, .25);
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 0 18px rgba(255, 215, 0, .14);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 1.6rem;
  transition: all .3s;
}

.coaching-overlay:hover {
  background: rgba(10, 15, 44, .2);
  box-shadow:
    0 0 25px rgba(255, 215, 0, .4),
    inset 0 0 22px rgba(255, 215, 0, .18);
  transform: translateY(-6px);
}

.coaching-subtitle {
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFD700;
  font-size: 1.1rem;
  margin-bottom: .3rem;
}

.coaching-title {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: 2.3rem;
  color: #fff;
  text-shadow:
    0 0 10px #D4AF37,
    0 0 20px #FFD700,
    0 0 40px #FFD700,
    0 0 60px #FFD700;
  margin-bottom: .4rem;
}

.coaching-text {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .9rem;
}
/* ---------------------------
   BREAKPOINTS / RESPONSIVE
   --------------------------- */

/* Tablet orizzontale e in giù */
@media (max-width: 1024px) {
  /* Mostra UI mobile; nasconde blocchi desktop */
  #mobile-menu-btn { display: block; }
  .mobile-logo    { display: inline-block; }
  .mobile-icons   { display: flex; align-items: center; margin-left: auto; gap: .6rem; }
  .nav-left, .nav-right { display: none; }

  nav.container-fluid { justify-content: flex-start; }

  /* Griglia a 1 colonna con spazi più contenuti */
  .matchmaking-sections {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem;
    gap: 2rem;
  }

  .section-card {
    max-width: 900px;
    min-height: 280px;
    padding: 1.6rem 1.4rem;
  }

  /* Annulla gli shift orizzontali su mobile/tablet per centratura */
  .section-card.ranked,
  .section-card.forfun,
  .section-card.tornei,
  .section-card.community {
    transform: none !important;
  }

  .section-card.ranked:hover,
  .section-card.forfun:hover,
  .section-card.tornei:hover,
  .section-card.community:hover {
    transform: translateY(-5px) !important;
  }

  .coaching-overlay { min-height: 140px; }
  .coaching-section { max-width: 95%; padding: 0 1rem; }
}

/* Tablet verticale / phablet */
@media (max-width: 768px) {
  .section-card {
    max-width: 90%;
    min-height: 240px;
    padding: 1.2rem;
  }

  .section-card h2 {
    font-size: 2rem;
    margin-bottom: .4rem;
  }

  .emblem-wrap { width: 140px; margin-bottom: .4rem; }

  .section-card p {
    font-size: .95rem;
    line-height: 1.3;
    margin-bottom: .9rem;
  }

  .btn-gold {
    padding: .4rem .8rem;
    font-size: .85rem;
  }

  .coaching-title  { font-size: 2rem; }
  .coaching-subtitle { font-size: .95rem; }
}

/* Smartphone piccoli */
@media (max-width: 480px) {
  .section-card {
    min-height: 220px;
    padding: 1rem;
  }

  .emblem-wrap { width: 120px; }

  .icon-btn svg { width: 20px; height: 20px; }
}
/* --- Supportaci separato nel menu mobile --- */
.mobile-menu .support-divider {
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 1.8rem;
  padding-top: 1rem;
}

.mobile-menu .support-divider a {
  display: block;
  margin-top: 0.6rem;
  color: #FFD700;
  font-weight: 700;
  font-size: 1.15rem;
}
/* --- Supportaci separato nel menu mobile --- */
.mobile-menu .support-divider {
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 2rem;
  padding-top: 1.2rem;
}

.mobile-menu .support-divider a {
  display: block;
  margin-top: 0.6rem;
  color: #FFD700;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: left;
}

.mobile-menu .support-divider a:hover {
  color: #fff;
}
/* =========================================================
   PAGINE INTERNE — Summoner Connect
   ========================================================= */
.page-content {
  max-width: 900px;
  margin: 6rem auto 4rem;
  text-align: center;
  padding: 0 1.5rem;
  background: rgba(10, 15, 44, 0.25);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-content:hover {
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.25), inset 0 0 18px rgba(255, 215, 0, 0.1);
  transform: translateY(-4px);
}

.page-content h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  color: #FFD700;
  text-shadow: 0 0 10px #D4AF37, 0 0 20px #FFD700, 0 0 40px #FFD700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.page-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #f5f7ff;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  text-shadow: 0 0 10px rgba(176, 210, 255, 0.25);
}

.page-content strong {
  color: #FFD700;
  font-weight: 600;
}

@media (max-width: 768px) {
  .page-content {
    margin: 5rem 1rem 3rem;
    padding: 1.4rem;
  }

  .page-content h1 {
    font-size: 2.1rem;
  }

  .page-content p {
    font-size: 1rem;
  }
}
/* =========================================================
   ANIMAZIONI, HERO SECTION E SEZIONI GENERICHE (ripristino)
   ========================================================= */

/* Effetto pulsante hover globale */
button:hover, .btn:hover, a.btn:hover {
  transform: scale(1.03);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

/* Immagini responsivi */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero section – centratura contenuto */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

/* Pulsante principale */
.btn-primary {
  background: linear-gradient(135deg, #FFD700, #d4af37);
  color: #000;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
}

/* Card generiche */
.card {
  background: rgba(15, 20, 50, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

/* Testi glowing */
.glow-text {
  text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #D4AF37;
  color: #FFD700;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  nav ul {
    gap: 1rem;
  }
  .hero-content {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    width: 100%;
    font-size: 1rem;
  }
}

/* =========================================================
   FOOTER — Layout ispirato a OP.GG (definitivo 2025)
   ========================================================= */
.footer-opgg {
  background: rgba(10, 15, 44, 0.92);
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  color: #cfd3e3;
  margin-top: 3rem;
}

.footer-opgg .footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.6rem;
}

/* === STRUTTURA PRINCIPALE === */
.footer-opgg .footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

/* === BRAND (logo + titolo + link) === */
.footer-opgg .footer-brand {
  flex: 1 1 260px;
}

.footer-opgg .footer-brand .brand {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
}

.footer-opgg .brand-logo {
  width: 95px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.55));
}

.footer-opgg .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-opgg .brand-text h4.footer-logo {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #FFD700;
  letter-spacing: 0.6px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.footer-opgg .brand-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-opgg .brand-text li a {
  font-weight: 500;
  color: #cfd3e3;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-opgg .brand-text li a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

/* === COLONNE GENERICHE === */
.footer-opgg .footer-col {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-opgg h5 {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: #FFD700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.footer-opgg ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-opgg a {
  color: #cfd3e3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-opgg a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.footer-opgg .support-link a {
  color: #FFD700;
}

/* === Iconcine accanto alle app === */
.footer-opgg .app-ico {
  position: relative;
  top: -1px;
  margin-left: 0.3rem;
  opacity: 0.9;
}

/* === BLOCCO INFERIORE (copyright + socials) === */
.footer-opgg .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  padding-top: 1.2rem;
}

.footer-opgg .legal {
  flex: 1 1 600px;
  font-size: 0.9rem;
  color: #aeb6d6;
  line-height: 1.5;
}

/* === Barra bianca per social === */
.footer-opgg .socials-bar {
  background: #ffffff;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.footer-opgg .socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-opgg .socials img {
  width: 22px;
  height: 22px;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-opgg .socials a:hover img {
  transform: translateY(-1px) scale(1.06);
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-opgg .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-opgg .footer-grid {
    justify-content: center;
    text-align: center;
  }

  .footer-opgg .footer-brand .brand {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-opgg .brand-text {
    align-items: center;
  }

  .footer-opgg .brand-text ul {
    align-items: center;
  }

  .footer-opgg .brand-logo {
    width: 80px;
    height: 80px;
  }

  .footer-opgg .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* === FIX LOGO NAVBAR SEMPLICE === */
.simple-nav img {
  width: 50px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.simple-nav img:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
/* ================================
   NOTIFICHE — Dropdown bianco
   ================================ */
.notifications-dropdown {
  position: absolute;
  top: 2.8rem;
  right: 0;
  background: #fff;
  color: #0A0F2C;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  min-width: 260px;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 70;
}

.notifications-dropdown.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.notifications-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
}

.notifications-dropdown li {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.notifications-dropdown li:last-child {
  border-bottom: none;
}

.notifications-dropdown li strong {
  color: #0A0F2C;
  font-weight: 600;
}

.notifications-dropdown li small {
  color: #666;
  font-size: 0.8rem;
}
/* ==========================================
   NOTIFICHE — Dropdown elegante con animazione luxury
   ========================================== */
.notifications-dropdown {
  position: absolute;
  top: 2.8rem;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  color: #0A0F2C;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25),
              0 0 20px rgba(255, 215, 0, 0.15);
  min-width: 280px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  z-index: 80;
  backdrop-filter: blur(8px);
  animation: none;
}

/* Quando visibile */
.notifications-dropdown.show {
  display: flex;
  animation: elegantDrop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes elegantDrop {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25),
                0 0 20px rgba(255, 215, 0, 0.15);
  }
}

/* Lista notifiche */
.notifications-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
}

/* Elementi singoli */
.notifications-dropdown li {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.notifications-dropdown li:last-child {
  border-bottom: none;
}

/* Hover raffinato */
.notifications-dropdown li:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateX(3px);
}

/* Testo */
.notifications-dropdown li strong {
  display: block;
  color: #0A0F2C;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.notifications-dropdown li small {
  color: #666;
  font-size: 0.8rem;
}

/* Mini glow dorato sul bordo in apertura */
.notifications-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  opacity: 0;
  animation: glowBar 0.8s ease-out forwards;
}

@keyframes glowBar {
  0% { opacity: 0; transform: scaleX(0.3); }
  50% { opacity: 1; transform: scaleX(1.05); }
  100% { opacity: 0; transform: scaleX(1); }
}
/* ==========================================
   MESSAGGI — Dropdown elegante con input
   ========================================== */
.messages-dropdown {
  position: absolute;
  top: 2.8rem;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  color: #0A0F2C;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25),
              0 0 20px rgba(255, 215, 0, 0.15);
  min-width: 320px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  z-index: 80;
  backdrop-filter: blur(8px);
  animation: none;
}

/* Quando visibile */
.messages-dropdown.show {
  display: flex;
  animation: elegantDrop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Lista messaggi */
.messages-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  max-height: 240px;
  overflow-y: auto;
}

.messages-list li {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s, transform 0.2s;
}

.messages-list li:last-child {
  border-bottom: none;
}

.messages-list li:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateX(3px);
}

/* Input di invio messaggio */
.message-input {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(250, 250, 250, 0.9);
  padding: 0.5rem;
}

.message-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem;
  color: #0A0F2C;
  font-size: 0.9rem;
  outline: none;
}

.message-input button {
  background: #FFD700;
  border: none;
  border-radius: 8px;
  color: #0A0F2C;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.message-input button:hover {
  background: #ffef80;
  transform: scale(1.05);
}

/* Mini glow dorato */
.messages-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  opacity: 0;
  animation: glowBar 0.8s ease-out forwards;
}

/* Scrollbar leggera per la lista */
.messages-list::-webkit-scrollbar {
  width: 6px;
}
.messages-list::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.4);
  border-radius: 999px;
}
.messages-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}
/* ==========================================
   EFFETTO LAMPEGGIO — Icona Messaggi
   ========================================== */
@keyframes whitePulse {
  0% {
    filter: drop-shadow(0 0 0px white);
  }
  50% {
    filter: drop-shadow(0 0 10px white) brightness(1.5);
  }
  100% {
    filter: drop-shadow(0 0 0px white);
  }
}

/* Classe che attiva il lampeggio */
.icon-btn.flash-white svg {
  animation: whitePulse 0.8s ease-in-out 3;
}
/* ==========================================
   ICON BUTTONS — bianco base + glow dorato
   ========================================== */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  transition: transform 0.25s ease, filter 0.25s ease;
  position: relative;
  color: white; /* <-- il colore principale usato da currentColor */
}

/* Glow dorato soft */
.icon-btn svg {
  width: 22px;
  height: 22px;
  transition: filter 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.35));
}

/* Hover con glow più forte */
.icon-btn:hover svg {
  transform: scale(1.12);
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 16px rgba(255, 215, 0, 0.4));
}

/* Attivo o lampeggiante */
.icon-btn.active svg,
.icon-btn.flash-white svg {
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 16px rgba(255, 215, 0, 0.5));
}
.logo-link svg {
  pointer-events: auto;
  cursor: pointer;
}
/* --- FIX POSIZIONE MENU A TENDINA NAVBAR --- */

/* Rende il contenitore delle icone un punto di riferimento per i dropdown */
.desktop-icons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Posizionamento corretto dei menu */
.notif-dropdown,
.msg-dropdown {
  position: absolute;
  top: 110%; /* subito sotto le icone */
  right: 0; /* allineato a destra rispetto alla navbar */
  background: #fff;
  color: #0A0F2C;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  width: 280px;
  z-index: 9999;
  display: none;
  overflow: hidden;
}

/* Rendi visibile quando .show è attivo */
.notif-dropdown.show,
.msg-dropdown.show {
  display: block;
}

/* Un po’ di padding per i contenuti */
.notif-dropdown li {
  list-style: none;
  padding: .6rem .9rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.notif-dropdown li:last-child {
  border-bottom: none;
}

.msg-dropdown .msg-list {
  max-height: 160px;
  overflow-y: auto;
  padding: .6rem .9rem;
}
.msg-dropdown .msg-input {
  display: flex;
  gap: .5rem;
  padding: .5rem .8rem;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
}
.msg-dropdown .msg-input input {
  flex: 1;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  padding: .4rem .6rem;
  font-size: .9rem;
}
.msg-dropdown .msg-input button {
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  border: none;
  border-radius: 6px;
  color: #0A0F2C;
  font-weight: 700;
  padding: 0 .8rem;
  cursor: pointer;
}
/* --- Gestione dropdown mobile --- */
.mobile-dropdown {
  display: none;
}

/* Mostra solo in mobile */
@media (max-width: 768px) {
  .desktop-icons {
    display: none;
  }
  .mobile-dropdown {
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    display: none;
    width: 90%;
    max-width: 360px;
    z-index: 1000;
  }
  .mobile-dropdown.show {
    display: flex;
  }
}
/* Effetto transizione dolce per caricamento contenuto dinamico */
#page-container {
  transition: opacity 0.3s ease;
}
/* Fix hamburger menu cliccabile */
#mobile-menu-btn {
  position: relative;
  z-index: 9999 !important; /* porta sempre sopra icone o overlay */
}
/* === LOGIN BUTTON (Accedi / Nickname) === */
.login-btn {
  text-decoration: none;           /* ❌ niente sottolineatura */
  color: #FFD700;                  /* colore oro */
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: .6rem 1rem;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: all .2s ease;
  display: inline-block;
}

.login-btn:hover,
.login-btn:focus {
  text-decoration: none;           /* nessuna sottolineatura nemmeno su hover */
  color: #fff;                     /* cambia leggermente colore al passaggio */
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  box-shadow: 0 0 10px rgba(255, 215, 0, .4);
}

.mobile-menu .support-divider a:hover {
  color: #fff;
}
/* =========================================================
   FIX FINALE — NAVBAR MOBILE + RIPRISTINO SFONDO
   Versione stabile e coerente con index.html e /pages/
   ========================================================= */

/* Ripristino sfondo stellato originale */
body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background: radial-gradient(circle at 50% 20%, #2b4fa3 0%, #102455 70%, #0a112d 100%);
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
  position: relative;
}

/* Effetti luce e stelle in background */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background: radial-gradient(
    circle at center,
    rgba(80, 150, 255, .35) 0%,
    rgba(0, 0, 40, .4) 60%,
    rgba(0, 0, 0, .9) 100%
  );
  filter: blur(80px);
}

body::after {
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 1px, transparent 2px);
  background-size: 140px 140px;
  opacity: .4;
  filter: blur(.5px);
  animation: stars 180s linear infinite;
}

@keyframes stars {
  from { background-position: 0 0; }
  to { background-position: -3000px -3000px; }
}

/* ===== NAVBAR MOBILE (definitiva) ===== */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 15, 44, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

/* Pulsante menu hamburger */
#mobile-menu-btn {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.3rem;
}

/* Logo centrale */
.mobile-logo {
  flex: 1;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: #FFD700;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
}

/* Icone a destra */
.mobile-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.mobile-icons .icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-icons svg {
  width: 25px;
  height: 25px;
}

.mobile-icons .badge {
  position: absolute;
  top: -4px;
  right: -3px;
  background: #FFD700;
  color: #0A0F2C;
  border-radius: 50%;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Dropdown Mobile (Notifiche / Messaggi) */
.mobile-dropdown {
  position: absolute;
  top: 56px;
  right: 0.4rem;
  width: 240px;
  background: rgba(10, 15, 44, 0.97);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 9999;
}

.mobile-dropdown.show { display: block; }

.mobile-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}

.mobile-dropdown li {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  padding-bottom: 0.4rem;
}

.mobile-dropdown li:last-child {
  border-bottom: none;
}

/* Piccolo spazio per il contenuto */
body {
  padding-top: 56px; /* Altezza navbar mobile */
}

/* Mostra solo su schermi piccoli */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .nav-left,
  .nav-right {
    display: none;
  }
}
/* =========================================================
   FIX UNIFICAZIONE MENU A TENDINA (DESKTOP + MOBILE)
   ========================================================= */

/* --- NOTIFICHE & MESSAGGI — Stile bianco luxury su entrambi i formati --- */
.notifications-dropdown,
.messages-dropdown,
.mobile-dropdown {
  background: rgba(255, 255, 255, 0.98);
  color: #0A0F2C;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(8px);
  min-width: 280px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  z-index: 9999;
  animation: none;
}

/* Mostra quando attivo */
.notifications-dropdown.show,
.messages-dropdown.show,
.mobile-dropdown.show {
  display: flex;
  animation: elegantDrop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes elegantDrop {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.25),
      0 0 20px rgba(255, 215, 0, 0.15);
  }
}

/* --- LISTE INTERNE --- */
.notifications-dropdown ul,
.messages-dropdown ul,
.mobile-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
}

.notifications-dropdown li,
.messages-dropdown li,
.mobile-dropdown li {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.notifications-dropdown li:last-child,
.messages-dropdown li:last-child,
.mobile-dropdown li:last-child {
  border-bottom: none;
}

.notifications-dropdown li:hover,
.messages-dropdown li:hover,
.mobile-dropdown li:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateX(3px);
}

/* --- TESTI --- */
.notifications-dropdown li strong,
.messages-dropdown li strong,
.mobile-dropdown li strong {
  display: block;
  color: #0A0F2C;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.notifications-dropdown li small,
.messages-dropdown li small,
.mobile-dropdown li small {
  color: #555;
  font-size: 0.8rem;
}

/* --- INPUT MESSAGGI (anche mobile) --- */
.messages-dropdown .message-input,
.mobile-dropdown .message-input {
  display: flex;
  border-top: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
}

.messages-dropdown .message-input input,
.mobile-dropdown .message-input input {
  flex: 1;
  border: none;
  background: rgba(250, 250, 250, 0.85);
  padding: 0.5rem;
  color: #0A0F2C;
  font-size: 0.9rem;
  border-radius: 8px;
  outline: none;
}

.messages-dropdown .message-input button,
.mobile-dropdown .message-input button {
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  border: none;
  border-radius: 8px;
  color: #0A0F2C;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.messages-dropdown .message-input button:hover,
.mobile-dropdown .message-input button:hover {
  background: #ffef80;
  transform: scale(1.05);
}

/* --- Mini glow dorato bordo apertura --- */
.notifications-dropdown::before,
.messages-dropdown::before,
.mobile-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  opacity: 0;
  animation: glowBar 0.8s ease-out forwards;
}

@keyframes glowBar {
  0% { opacity: 0; transform: scaleX(0.3); }
  50% { opacity: 1; transform: scaleX(1.05); }
  100% { opacity: 0; transform: scaleX(1); }
}
/* =========================================================
   FIX DEFINITIVO — Messaggi e Notifiche (mobile = desktop)
   ========================================================= */

/* --- STILE BASE UNIFICATO --- */
.notifications-dropdown,
.messages-dropdown,
.mobile-dropdown {
  background: rgba(255, 255, 255, 0.98);
  color: #0A0F2C; /* testo scuro leggibile */
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(8px);
  min-width: 280px;
  overflow: hidden;
  z-index: 9999;
}

/* --- ELEMENTI LISTA --- */
.notifications-dropdown li,
.messages-dropdown li,
.mobile-dropdown li {
  color: #0A0F2C; /* forza il colore testo */
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.9rem 1.1rem;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.notifications-dropdown li strong,
.messages-dropdown li strong,
.mobile-dropdown li strong {
  color: #0A0F2C;
  font-weight: 600;
}

.notifications-dropdown li small,
.messages-dropdown li small,
.mobile-dropdown li small {
  color: #555;
  font-size: 0.8rem;
}

.notifications-dropdown li:hover,
.messages-dropdown li:hover,
.mobile-dropdown li:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateX(3px);
}

/* --- INPUT BOX MESSAGGI (solo per .messages-dropdown) --- */
.messages-dropdown .message-input,
.mobile-dropdown .message-input {
  display: flex;
  border-top: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
}

.messages-dropdown .message-input input,
.mobile-dropdown .message-input input {
  flex: 1;
  border: none;
  background: rgba(250, 250, 250, 0.9);
  padding: 0.5rem 0.6rem;
  color: #0A0F2C; /* testo scuro */
  font-size: 0.9rem;
  border-radius: 8px;
  outline: none;
}

.messages-dropdown .message-input button,
.mobile-dropdown .message-input button {
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  border: none;
  border-radius: 8px;
  color: #0A0F2C;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.messages-dropdown .message-input button:hover,
.mobile-dropdown .message-input button:hover {
  background: #ffef80;
  transform: scale(1.05);
}

/* --- CORREZIONE SPECIFICA: RIMUOVI VECCHIO TESTO BIANCO MOBILE --- */
@media (max-width: 768px) {
  .mobile-dropdown li,
  .mobile-dropdown li strong,
  .mobile-dropdown li small,
  .mobile-dropdown .message-input input {
    color: #0A0F2C !important; /* forzatura finale su mobile */
  }
}
/* =========================================================
   FIX PADDING BODY — Compensazione altezza NAVBAR
   ========================================================= */

/* --- Desktop: navbar fissa alta ~90px --- */
body {
  padding-top: 90px; /* spazio sotto la navbar fissa */
}

/* --- Mobile: navbar più bassa (~56px) --- */
@media (max-width: 768px) {
  body {
    padding-top: 60px; /* compensa la mobile-header */
  }
}

/* --- Extra-small devices (es. vecchi telefoni) --- */
@media (max-width: 480px) {
  body {
    padding-top: 56px;
  }
}
/* =========================================================
   FIX MOBILE MENU — Allineamento sotto la navbar fissa
   ========================================================= */

/* Contenitore laterale del menu mobile */
.mobile-menu {
  position: fixed;
  top: 56px; /* esattamente sotto la navbar mobile */
  left: -260px;
  width: 240px;
  height: calc(100% - 56px); /* occupa il resto dello schermo */
  background: rgba(10, 15, 44, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 2px 0 15px rgba(0,0,0,.5);
  transition: left .3s;
  z-index: 9000; /* resta sotto la navbar */
  overflow-y: auto; /* scrolla se serve */
}

/* Quando il menu è aperto */
.mobile-menu.show {
  left: 0;
}

/* Contenuto interno del menu */
.mobile-menu ul {
  list-style: none;
  padding: 1.5rem 1rem; /* spazio sufficiente dal bordo */
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 1.2rem;
}

.mobile-menu a {
  color: #FFD700;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color .3s;
}

.mobile-menu a:hover {
  color: #fff;
}

/* --- Overlay dietro al menu mobile --- */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 8000;
}

#menu-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Supportaci — sezione separata in fondo */
.mobile-menu .support-divider {
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 1.8rem;
  padding-top: 1rem;
}

.mobile-menu .support-divider a {
  display: block;
  margin-top: 0.6rem;
  color: #FFD700;
  font-weight: 700;
  font-size: 1.15rem;
}

.mobile-menu .support-divider a:hover {
  color: #fff;
}
/* =========================================================
   FIX HERO DISTANZA + INQUADRATURA
   ========================================================= */

/* Riduzione margine globale per navbar fissa */
body {
  padding-top: 36px; /* più vicino per tutte le risoluzioni */
}

/* Ottimizzazione mobile */
@media (max-width: 768px) {
  body {
    padding-top: 44px; /* navbar mobile leggermente più alta */
  }
}

/* Desktop: avvicina ancora di più la hero */
@media (min-width: 1025px) {
  body {
    padding-top: 28px;
  }
}

/* Hero: avvicinata alla navbar e inquadrata più in alto */
.hero-section {
  margin-top: -5px;             /* riduce la striscia vuota sopra */
  background-position: center top 35%; /* sposta inquadratura verso l'alto */
}

/* ===============================
   NAVBAR — stile pulito tipo Riot
   (compatibile con index.html)
   =============================== */

:root { --navbar-h: 64px; }

nav.container-fluid{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(10,15,44,.96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: background .25s ease, box-shadow .25s ease, height .2s ease;
}

/* Effetto “scroll compattato” */
nav.container-fluid.scrolled{
  background: rgba(10,15,44,.98);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* Offset del contenuto (evita che l’hero finisca sotto la navbar) */
body{ padding-top: var(--navbar-h); }

/* ===== Layout blocchi sx/dx ===== */
.nav-left,
.nav-right{
  display: flex;
  align-items: center;
  gap: 20px; /* spazio professionale, non eccessivo */
}

/* ===== Logo ===== */
.logo-link{ display:inline-flex; align-items:center; line-height:0; }
.logo-link .logo-simple svg{
  height: 32px; display:block; transform: translateY(1px);
}

/* ===== Menu principale ===== */
.nav-menu{
  display:flex; align-items:center; gap: 22px;
  margin: 0 0 0 10px; padding: 0; list-style: none;
}
.nav-menu a{
  position: relative;
  text-decoration: none;
  color: #E8E8E8;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .2px;
  padding: 6px 0;
  transition: color .18s ease;
}
.nav-menu a:hover{ color:#FFD700; }
/* underline sottile tipo Riot */
.nav-menu a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background:#FFD700; transform:scaleX(0); transform-origin:50% 50%;
  transition: transform .18s ease;
  border-radius: 1px;
  opacity:.9;
}
.nav-menu a:hover::after{ transform:scaleX(1); }

/* ===== Area destra (discord, lingue, login, icone) ===== */
.discord-link img{ width:22px; height:22px; display:block; opacity:.9; transition:opacity .2s; }
.discord-link:hover img{ opacity:1; }

.lang-switch{
  display:flex; align-items:center; gap:8px;
  color:#E8E8E8; font-size:.9rem;
}
.lang-switch img{ width:20px; height:14px; display:block; }
.lang-switch span{ opacity:.6; }

.login-section{ display:flex; align-items:center; }
.login-btn{ /* mantengo il tuo stile “gold” ma lo centro meglio */
  display:inline-flex; align-items:center; justify-content:center;
  padding:.46rem .9rem; border-radius:10px; font-weight:700;
  line-height:1; text-decoration:none;
}

/* ===== Icone notifiche/messaggi a destra ===== */
.desktop-icons{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  background: transparent; border:0; cursor:pointer;
  width:28px; height:28px; padding:0; display:inline-flex; align-items:center; justify-content:center;
  transition: opacity .2s;
}
.icon-btn:hover{ opacity:.8; }

/* ===== Mobile: usa il tuo header mobile esistente ===== */
@media (max-width: 1024px){
  :root { --navbar-h: 56px; }
  .mobile-header{ display:flex; }                 /* già presente nel tuo CSS */
  .nav-left, .nav-right{ display:none !important; } /* nascondo blocchi desktop */
  nav.container-fluid{ padding:0 12px; }
}

/* ===== Micro-fix estetici coerenti con il resto del sito ===== */
/* Allinea meglio droplist in desktop (se presenti) */
.notifications-dropdown,
.messages-dropdown{
  margin-top: 10px;
  border-radius: 10px;
}

/* Evita che altri stili di pagina alterino l'altezza nav */
nav.container-fluid * { line-height: 1; }
/* ======== NAVBAR UTENTE ======== */
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.username {
  font-weight: 600;
  color: #FFD700;
}

.logout-btn {
  background: transparent;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #FFD700;
  color: #0A0F2C;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.username {
  font-weight: 600;
  color: #FFD700;
}

.logout-btn {
  background: transparent;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #FFD700;
  color: #0A0F2C;
}
/* ======== DASHBOARD NAVBAR ======== */
.dashboard-nav {
  background: rgba(10, 15, 44, 0.9);
  border-bottom: 1px solid #FFD700;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.dashboard-nav .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

.dashboard-home {
  color: #FFD700;
  font-family: "Cinzel", serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.dashboard-home:hover {
  color: #fff;
}

.dashboard-nav #mobile-menu-btn {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 1.4rem;
  cursor: pointer;
}

.logout-btn {
  background: transparent;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #FFD700;
  color: #0A0F2C;
}
#page-container {
  transition: opacity 0.3s ease;
}



/* ============================================================
   SUMMONER CONNECT — MENU UTENTE DESKTOP (2025, FIX DEFINITIVO)
   ============================================================ */

/* Contenitore wrapper del menu utente */
.user-dropdown-wrapper,
.nav-right .login-section {
  position: relative;
  display: inline-block;
  z-index: 99;
}

/* Pulsante username */
.user-btn,
.user-toggle {
  background: transparent;
  border: none;
  color: #FFD700;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 10px;
  transition: color 0.25s ease, transform 0.2s ease, border 0.2s ease;
}

.user-btn:hover,
.user-toggle:hover {
  color: #fff;
  transform: scale(1.05);
  border-color: rgba(212, 175, 55, .35);
  box-shadow: 0 0 12px rgba(212, 175, 55, .2);
}

/* Menu dropdown (visibile solo al click) */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(10, 15, 44, 0.97);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  padding: 0.8rem 0.8rem 0.9rem;
  display: none;
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.user-dropdown.show,
.user-dropdown.open {
  display: block !important;
  animation: dropdownFadeIn 0.25s ease-in-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar + nome nel menu */
.user-dropdown .avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.user-dropdown .user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #FFD700;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
  transition: transform 0.3s ease;
}

.user-dropdown .user-avatar:hover {
  transform: scale(1.05);
}

.user-dropdown .user-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

/* Link del menu utente */
.user-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-menu-links li {
  margin: 0.4rem 0;
}

/* Voci interattive (link o button) */
.user-menu-links a,
.user-menu-links button,
.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .65rem;
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: #eaf0ff !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-menu-links a:hover,
.user-menu-links button:hover,
.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(255, 215, 0, .12);
  color: #FFD700 !important;
}

/* Divider opzionale */
.user-dropdown .divider {
  height: 1px;
  margin: .4rem .25rem;
  background: rgba(255,255,255,.08);
  border: 0;
}
/* ============================================================
   SUMMONER CONNECT — MENU UTENTE (ENHANCED VISUAL DEPTH)
   ============================================================ */

/* Contenitore principale del dropdown */
.user-dropdown {
  background: radial-gradient(circle at top right, rgba(16, 22, 60, 0.98) 0%, rgba(8, 12, 36, 0.96) 100%);
  border: 1px solid rgba(255, 215, 0, 0.55);
  border-radius: 14px;
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px) saturate(140%);
  transform-origin: top right;
  animation: dropdownFadeIn 0.25s ease-out;
  overflow: hidden; /* per arrotondare meglio */
}

/* Piccolo bordo luminoso interno */
.user-dropdown::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.15);
}

/* Avatar e nome — aggiungiamo un leggero effetto luce */
.user-dropdown .user-avatar {
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
  border: 2px solid #FFD700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.user-dropdown .user-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.55);
}

.user-dropdown .user-name {
  color: #FFD700;
  font-size: 1.15rem;
  margin-top: 0.4rem;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}

/* Liste e voci */
.user-menu-links li {
  margin: 0.35rem 0;
}

.user-menu-links a,
.user-menu-links button {
  background: rgba(255, 255, 255, 0.03);
  color: #eaeefc !important;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
}

/* Hover luminoso dorato */
.user-menu-links a:hover,
.user-menu-links button:hover {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700 !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  transform: translateX(3px);
}

/* Divider più visibile */
.user-dropdown .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent);
  margin: 0.6rem 0;
}

/* Animazione d’ingresso */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* === COOKIE BANNER (ELEGANTE) === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10,15,44,0.94);
  border-top: 1px solid rgba(212,175,55,0.6);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.35);
  color: #eaf0ff;
  font-family: 'Montserrat', sans-serif;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
.cookie-banner.show { transform: translateY(0); }

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  gap: 1rem;
}

.cookie-message {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #d7ddf3;
  flex: 1;
}
.cookie-message a {
  color: #FFD700;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-actions button {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.cookie-actions button:hover {
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; flex-wrap: wrap; }
  .cookie-actions button { flex: 1 1 45%; }
}

/* Utility */
.hidden { display: none; }
.notifications-dropdown .notif-item { display:block; padding:.5rem .75rem; }
.notifications-dropdown .notif-line { display:flex; align-items:center; gap:.5rem; }
.notifications-dropdown .notif-icon { width:1.2rem; display:inline-block; text-align:center; }

.notifications-dropdown .notif-important {
  border-left: 3px solid #ff3355;
  background: rgba(255, 51, 85, .08);
}

.notifications-dropdown .notif-bang {
  display:inline-block;
  margin-left:.35rem;
  font-weight:800;
  color:#ff3355;
}
.clear-notifs-btn {
  width: 100%;
  margin-top: .5rem;
  background: linear-gradient(135deg, #ff004d, #c20036);
  border: 0; color:#fff; font-weight:600;
  padding:.6rem .8rem; border-radius:8px; cursor:pointer;
}
.clear-notifs-btn:hover { transform: translateY(-1px); }
/* ======== BADGE NOTIFICHE ======== */
.icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Badge nascosto di default */
.icon-btn .badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -6px;
  background: #FFD700;
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Quando visibile (aggiunta da JS) */
.icon-btn .badge.show {
  display: flex;
  transform: scale(1);
  opacity: 1;
}
/* Badge nascosto di default */
.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #FFD700;
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: none;           /* <-- tieni SOLO questo qui */
  opacity: 0;
  transform: scale(.8);
}
/* Visibile solo quando serve */
.icon-btn .badge.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}
/* Pulsante risposta nei messaggi */
.messages-dropdown .reply-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: auto; /* LO SPINGE completamente a destra */
    font-size: 1rem;
    color: #4da3ff; /* blu elegante (match icona che hai in screenshot) */
    cursor: pointer;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 1;
}

/* Rimuove QUEL QUADRATO orribile */
.messages-dropdown .reply-btn:focus,
.messages-dropdown .reply-btn:active {
    outline: none !important;
    background: none !important;
    border: none !important;
}

/* Hover gradevole */
.messages-dropdown .reply-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    transition: opacity 0.2s ease, transform 0.2s ease;
}


/* ================================
   NOTIFICHE — FIX SCROLL (SAFE)
   NON MODIFICA COLORI O TEMA
================================ */

/* Limita l'altezza del dropdown */
.notifications-dropdown {
  max-height: 420px;
  overflow: hidden; /* necessario per contenere lo scroll interno */
}

/* Rende scrollabile SOLO la lista */
.notifications-dropdown ul {
  max-height: 360px;
  overflow-y: auto;
}

/* Mobile: più spazio verticale */
@media (max-width: 768px) {
  .notifications-dropdown {
    max-height: 70vh;
  }

  .notifications-dropdown ul {
    max-height: calc(70vh - 60px);
  }
}


/* Stile base della barra di ricerca */
.sc-summoner-search {
  display: flex;
  align-items: center;
  /* Qui mantieni i tuoi eventuali stili esistenti (colori, bordi, ecc.) */
}

/* 🎨 Regole visuali per quando si trova su MOBILE (schermi <= 768px) */
@media (max-width: 768px) {
  .sc-summoner-search {
    width: 90%;            /* Evita che la barra tocchi i bordi dello schermo */
    max-width: 400px;      /* Larghezza massima per non farla diventare enorme su tablet */
    margin: 0 auto 20px auto; /* 0 sopra, centra in orizzontale, 20px di spazio SOTTO (sopra RANKED) */
    justify-content: center;
  }
}
@media (max-width: 768px) {
  /* Regola la barra quando entra nella card Ranked */
  .section-card.ranked .sc-summoner-search {
    width: 90%;
    margin: 15px auto 15px auto; /* Aggiunge margine sopra e sotto */
    display: flex;
    justify-content: center;
    z-index: 10;
  }
}
@media (max-width: 768px) {
  /* Quando la barra si trova all'esterno, sopra le card */
  #scSummonerSearch {
    width: 90%;
    max-width: 420px;
    margin: 20px auto 25px auto; /* 20px sopra, centrata, 25px di spazio dalla card RANKED */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20; /* Garantisce che stia sopra eventuali elementi dello sfondo */
  }
}

/* ====================================================
   🌟 STILE BARRA DI RICERCA (GOLD GLOW THEME)
   ==================================================== */

.sc-summoner-search {
  display: flex;
  align-items: center;
  background: rgba(10, 15, 44, 0.85); /* Sfondo blu scuro semi-trasparente */
  border: 2px solid #D4AF37;           /* Bordo oro */
  border-radius: 50px;                  /* Forma a pillola */
  padding: 8px 16px;
  gap: 10px;
  
  /* 💡 Effetto Luce Dorata (Glow esterno e interno) */
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.45), 
              inset 0 0 10px rgba(212, 175, 55, 0.2);
  
  backdrop-filter: blur(8px);           /* Effetto vetro sfocato */
  transition: all 0.3s ease;
}

/* 🌟 Aumento della luce quando si passa sopra o si clicca dentro */
.sc-summoner-search:hover,
.sc-summoner-search:focus-within {
  border-color: #FFD700;                /* Oro più brillante */
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.75), 
              0 0 40px rgba(255, 215, 0, 0.35),
              inset 0 0 12px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);          /* Leggero sollevamento 3D */
}

/* ✏️ Campo di input testo */
.sc-summoner-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;                       /* Testo digitato in bianco puro per massima leggibilità */
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

.sc-summoner-search input::placeholder {
  color: rgba(212, 175, 55, 0.7);       /* Placeholder dorato ma visibile */
}

/* 🏷️ Badge Tag #EUW */
.sc-summoner-search .sc-tag {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid #D4AF37;
  color: #FFD700;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
}

/* 🔍 Pulsante Lente */
.sc-summoner-search button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-summoner-search button:hover {
  transform: scale(1.2);                /* Effetto ingrandimento lente */
}

/* 📱 Posizionamento specifico per la versione Mobile */
@media (max-width: 768px) {
  #scSummonerSearch {
    width: 90%;
    max-width: 420px;
    margin: 25px auto 30px auto;          /* Distanza bilanciata sopra e sotto */
    position: relative;
    z-index: 100;
  }
}