/* ============================================================
   Monarch Hoard - STILE BASE DEL SITO
   DOVE VA:  static/css/sito-base.css
   ------------------------------------------------------------
   I "mattoni" presi dallo stile del carosello della home,
   riutilizzabili su tutte le pagine del SITO (l'app non lo
   carica). Contiene gli step 1-8.

     1. Temi colore      .mh-tema--oro / --azzurro / --viola / --verde / --blu
     2. Testata pagina   .mh-hero
     3. Titolo           .mh-titolo + .mh-accento
     4. Sottotitolo      .mh-sotto
     5. Pillola          .mh-chip
     6. Elenco spunte    .mh-punti
     7. Riga bottoni     .mh-azioni
     8. Testata sezione  .mh-testa
     9. Pannello         .mh-pannello
    10. Step 2  Home
    11. Step 3  App
    12. Step 4  Vetrina
    13. Step 5  Novita'
    14. Step 6  Accesso / Registrazione / Profilo
    15. Step 7  Pagine legali, 404, 500
    16. Step 8  Menu laterale e pie' di pagina
    17. Avviso versione beta
    18. Pagina Contatti
   ============================================================ */

/* ============================================================
   1. TEMI COLORE
   Valgono su qualsiasi elemento: chi sta dentro eredita.
   ============================================================ */
.mh-tema--blu     { --tema: #7fb4ff; --tema-rgb: 46, 125, 255; }
.mh-tema--oro     { --tema: #ffd166; --tema-rgb: 255, 209, 102; }
.mh-tema--azzurro { --tema: #7fd8ff; --tema-rgb: 90, 200, 255; }
.mh-tema--viola   { --tema: #c58bff; --tema-rgb: 168, 92, 255; }
.mh-tema--verde   { --tema: #4dff9b; --tema-rgb: 77, 255, 155; }

/* ============================================================
   2. TESTATA DI PAGINA
   ============================================================ */
.mh-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(760px 360px at 18% 0%, rgba(var(--accent-rgb), 0.20), transparent 65%),
    radial-gradient(500px 300px at 78% 50%, rgba(var(--tema-rgb, var(--accent-rgb)), 0.16), transparent 70%),
    var(--bg);
}
.mh-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: center;
}
.mh-hero__inner--solo { grid-template-columns: minmax(0, 780px); }

.mh-hero__visual { justify-self: center; }
.mh-hero__visual img {
  max-height: 340px;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--tema-rgb, var(--accent-rgb)), 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--tema-rgb, var(--accent-rgb)), 0.35);
}

.mh-hero__testo > * { animation: mh-entra .7s cubic-bezier(.2, .7, .2, 1) both; }
.mh-hero__testo > *:nth-child(2) { animation-delay: .08s; }
.mh-hero__testo > *:nth-child(3) { animation-delay: .16s; }
.mh-hero__testo > *:nth-child(4) { animation-delay: .24s; }
@keyframes mh-entra { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 820px) {
  .mh-hero { padding: 44px 0 48px; }
  .mh-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .mh-hero__visual { order: -1; }
  .mh-hero__visual img { max-height: 200px; }
}

/* ============================================================
   3. TITOLO CON PAROLA COLORATA
   ============================================================ */
.mh-titolo {
  margin: .5rem 0 .9rem;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.mh-titolo--medio { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }

.mh-accento {
  color: var(--tema, var(--accent-soft));
  text-shadow: 0 0 24px rgba(var(--tema-rgb, var(--accent-rgb)), 0.55);
}

/* ============================================================
   4. SOTTOTITOLO CON LINEA COLORATA
   ============================================================ */
.mh-sotto {
  max-width: 600px;
  margin: 0 0 1.8rem;
  padding-left: 14px;
  border-left: 2px solid rgba(var(--tema-rgb, var(--accent-rgb)), 0.7);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ============================================================
   5. PILLOLA
   ============================================================ */
.mh-chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--tema-rgb, var(--accent-rgb)), 0.45);
  background: rgba(var(--tema-rgb, var(--accent-rgb)), 0.08);
  font-size: .8rem;
  color: var(--text-muted);
}
.mh-chip b { color: var(--tema, var(--accent-soft)); font-family: var(--font-title); }

/* ============================================================
   6. ELENCO CON LE SPUNTE
   ============================================================ */
.mh-punti {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.mh-punti li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.mh-punti li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: .2em;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .7rem;
  color: #031018;
  background: var(--tema, var(--accent-soft));
  box-shadow: 0 0 12px rgba(var(--tema-rgb, var(--accent-rgb)), 0.6);
}

/* ============================================================
   7. RIGA DEI BOTTONI
   ============================================================ */
.mh-azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.mh-azioni--centro { justify-content: center; }

/* ============================================================
   8. TESTATA DI SEZIONE
   ============================================================ */
.mh-testa {
  text-align: center;
  margin-bottom: 44px;
}
.mh-testa .mh-sotto {
  margin-inline: auto;
  padding-left: 0;
  border-left: none;
  color: var(--text-muted);
}
.mh-testa--sinistra { text-align: left; }
.mh-testa--sinistra .mh-sotto {
  margin-inline: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(var(--tema-rgb, var(--accent-rgb)), 0.7);
}

/* ============================================================
   9. PANNELLO
   ============================================================ */
.mh-pannello {
  --tema: var(--accent-soft);
  --tema-rgb: var(--accent-rgb);
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(10, 18, 34, 0.94), rgba(5, 9, 18, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(var(--tema-rgb), 0.22), transparent 55%);
  box-shadow: inset 0 0 26px rgba(var(--tema-rgb), 0.06), var(--shadow);
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
/* Il pannello ha un suo colore di partenza: il tema scritto
   sul pannello stesso deve vincere */
.mh-pannello.mh-tema--oro     { --tema: #ffd166; --tema-rgb: 255, 209, 102; }
.mh-pannello.mh-tema--azzurro { --tema: #7fd8ff; --tema-rgb: 90, 200, 255; }
.mh-pannello.mh-tema--viola   { --tema: #c58bff; --tema-rgb: 168, 92, 255; }
.mh-pannello.mh-tema--verde   { --tema: #4dff9b; --tema-rgb: 77, 255, 155; }
.mh-pannello.mh-tema--blu     { --tema: #7fb4ff; --tema-rgb: 46, 125, 255; }

.mh-pannello::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--tema), transparent);
}
a.mh-pannello { display: block; color: inherit; text-decoration: none; }
a.mh-pannello:hover,
a.mh-pannello:focus-visible {
  color: inherit;
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(var(--tema-rgb), 0.7);
  box-shadow: inset 0 0 26px rgba(var(--tema-rgb), 0.12), var(--shadow),
              0 0 22px rgba(var(--tema-rgb), 0.35);
}
.mh-pannello h3 { margin-bottom: .5em; }
.mh-pannello p { color: var(--text-muted); }
.mh-pannello p:last-child { margin-bottom: 0; }

.mh-pannello__icona {
  width: 48px; height: 48px;
  margin-bottom: 14px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
  color: var(--tema);
  border: 1px solid rgba(var(--tema-rgb), 0.45);
  background: rgba(var(--tema-rgb), 0.10);
  box-shadow: 0 0 16px rgba(var(--tema-rgb), 0.25);
}
.grid > .mh-pannello { height: 100%; }

/* ============================================================
   10. STEP 2 - Home
   ============================================================ */
.mh-cta {
  padding: 48px 32px;
  text-align: center;
}
.mh-cta .mh-testa { margin-bottom: 26px; }
.mh-dopo-griglia { margin-top: 34px; }

/* ============================================================
   11. STEP 3 - Pagina App
   ============================================================ */
.mh-schermo {
  position: relative;
  width: 480px;
  max-width: 100%;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(160deg, #13203a, #070d1a);
  border: 1px solid rgba(var(--tema-rgb), 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 50px rgba(var(--tema-rgb), 0.25);
  transform: perspective(1100px) rotateY(-12deg) rotateX(5deg);
  animation: mh-galleggia 7s ease-in-out infinite;
}
.mh-hero__visual .mh-schermo img {
  display: block;
  width: 100%;
  max-height: none;
  border: none;
  border-radius: 8px;
  box-shadow: none;
}
.mh-schermo__badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(var(--tema-rgb), 0.6);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--tema-rgb), 0.35);
  animation: mh-badge 5s ease-in-out infinite;
}
.mh-schermo__badge--a { left: -34px; top: 18%; }
.mh-schermo__badge--b { right: -26px; bottom: 14%; animation-delay: -2.5s; }

@keyframes mh-galleggia {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
@keyframes mh-badge {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@media (max-width: 820px) {
  .mh-schermo { width: 320px; transform: none; }
  .mh-schermo__badge { display: none; }
}

/* ============================================================
   12. STEP 4 - Vetrina
   ============================================================ */
.mh-hero--compatto { padding: 56px 0 44px; }
.mh-hero--compatto .mh-sotto { margin-bottom: 1.4rem; }

.mh-hero .mk-strip {
  margin: 0;
  max-width: 600px;
  justify-content: flex-start;
  border-color: rgba(var(--tema-rgb), 0.30);
}
.mh-hero .mk-strip__link { color: var(--tema); text-decoration-color: rgba(var(--tema-rgb), 0.4); }
.mh-hero .mk-strip__link:hover { color: #fff; }

.mh-titolo--piccolo {
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  margin: 0 0 .4em;
}

section.mh-tema--oro .scelta:hover {
  border-color: rgba(var(--tema-rgb), 0.6);
  box-shadow: inset 0 0 26px rgba(var(--tema-rgb), 0.10), var(--shadow),
              0 0 20px rgba(var(--tema-rgb), 0.30);
}
section.mh-tema--oro .crumb--attuale {
  color: var(--tema);
  text-shadow: 0 0 12px rgba(var(--tema-rgb), 0.45);
}
@media (max-width: 620px) {
  .mh-hero .mk-strip { flex-direction: column; align-items: flex-start; text-align: left; }
  .mh-hero .mk-strip__links { justify-content: flex-start; }
}

/* ============================================================
   13. STEP 5 - Novita'
   ============================================================ */
.mh-legenda { gap: .6rem; }
.mh-chip--arrivo     { --tema: #4dff9b; --tema-rgb: 77, 255, 155; }
.mh-chip--app        { --tema: #7fb4ff; --tema-rgb: 46, 125, 255; }
.mh-chip--collezione { --tema: #ffd166; --tema-rgb: 255, 209, 102; }
.mh-chip--evento     { --tema: #c58bff; --tema-rgb: 168, 92, 255; }

/* ============================================================
   14. STEP 6 - Accesso, Registrazione, Recupero password,
       Nuova password, "Serve l'accesso", Profilo
   ------------------------------------------------------------
   Tutto agganciato a .mh-accesso, che sta SOLO nel layout
   layouts/accesso.html.
   ============================================================ */
.mh-accesso {
  position: relative;
  background:
    radial-gradient(760px 360px at 18% 0%, rgba(var(--accent-rgb), 0.18), transparent 65%),
    radial-gradient(520px 320px at 80% 60%, rgba(var(--tema-rgb, var(--accent-rgb)), 0.14), transparent 70%);
}

/* Il riquadro diventa un pannello con la striscia in alto */
.mh-accesso__pannello {
  position: relative;
  border-color: rgba(var(--tema-rgb), 0.35);
  background:
    linear-gradient(160deg, rgba(10, 18, 34, 0.95), rgba(5, 9, 18, 0.95)),
    radial-gradient(circle at 0% 0%, rgba(var(--tema-rgb), 0.22), transparent 55%);
  box-shadow: inset 0 0 26px rgba(var(--tema-rgb), 0.07), var(--shadow),
              0 0 30px rgba(var(--tema-rgb), 0.12);
  animation: mh-entra .6s cubic-bezier(.2, .7, .2, 1) both;
}
.mh-accesso__pannello::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--tema), transparent);
}

.mh-accesso .auth-logo {
  filter: drop-shadow(0 0 16px rgba(var(--tema-rgb), 0.55));
}

/* Titolo nello stile di .mh-titolo, versione media */
.mh-accesso .auth-title {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.mh-accesso .eyebrow,
.mh-accesso .auth-subtitle {
  color: var(--tema);
  text-shadow: 0 0 12px rgba(var(--tema-rgb), 0.45);
}

.mh-accesso .search-input:focus {
  border-color: rgba(var(--tema-rgb), 0.65);
  box-shadow: 0 0 16px rgba(var(--tema-rgb), 0.22);
}

.mh-accesso .auth-hint a { color: var(--tema); }
.mh-accesso .auth-hint a:hover { color: #fff; }

/* "Serve l'accesso": elenco con le spunte, come la pagina App */
.mh-accesso .serve-accesso__elenco li {
  position: relative;
  display: block;
  padding-left: 30px;
  color: var(--text);
}
.mh-accesso .serve-accesso__elenco li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: .15em;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .7rem;
  line-height: 1;
  color: #031018;
  background: var(--tema);
  text-shadow: none;
  box-shadow: 0 0 12px rgba(var(--tema-rgb), 0.6);
}

/* Profilo */
.mh-accesso .profilo-riga { border-bottom-color: rgba(var(--tema-rgb), 0.15); }
.mh-accesso .profilo-badge {
  color: var(--tema);
  border-color: rgba(var(--tema-rgb), 0.5);
  background: rgba(var(--tema-rgb), 0.10);
}


/* ============================================================
   15. STEP 7 - Pagine legali, 404, 500
   ------------------------------------------------------------
   Queste pagine usavano classi di style.css (il foglio
   dell'app), che nel sito non viene caricato. Qui sono
   riscritte con lo stile base.
   ============================================================ */

/* Il logo in cima al riquadro */
.mh-accesso .login-logo { text-align: center; margin-bottom: 6px; }
.mh-accesso .login-logo img {
  width: 84px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(var(--tema-rgb), 0.55));
}
.mh-legale .login-logo img { width: 64px; }

/* Riquadri delle pagine di errore: tutto centrato */
.mh-pannello-centrato:not(.mh-legale) { text-align: center; }

/* Il numero grande (404 / 500) */
.mh-accesso .error-code {
  margin: 10px 0 0;
  font-size: clamp(3.4rem, 10vw, 5.5rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, var(--tema));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(var(--tema-rgb), 0.55));
}

/* La scritta sotto al numero / al titolo */
.mh-accesso .login-subtitle {
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tema);
  text-shadow: 0 0 12px rgba(var(--tema-rgb), 0.45);
  margin: 10px 0 18px;
}
.mh-accesso .error-text {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 auto 26px;
  max-width: 380px;
}

/* --- Pagine legali --- */
.mh-legale .legal-title {
  text-align: center;
  margin: 6px 0 4px;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
}
.mh-legale .legal-subtitle { text-align: center; }
.mh-legale .legal-body h2 {
  color: var(--tema);
  text-shadow: 0 0 12px rgba(var(--tema-rgb), 0.35);
  padding-left: 12px;
  border-left: 2px solid rgba(var(--tema-rgb), 0.7);
}
.mh-legale .legal-body strong { color: #fff; }
.mh-legale .legal-updated {
  margin-top: 30px;
  color: var(--text-muted);
  font-size: .8rem;
}
.mh-legale .legal-back-wrap { text-align: center; margin-top: 34px; }

/* Il vecchio bottone "Torna indietro" prende l'aspetto dei
   bottoni del sito (.btn--primary) */
.mh-accesso .error-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h-control);
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--tema-rgb), 0.55);
  background: rgba(var(--tema-rgb), 0.18);
  color: #fff;
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.mh-accesso .error-back-btn:hover {
  background: rgba(var(--tema-rgb), 0.34);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(var(--tema-rgb), 0.45);
}


/* ============================================================
   16. STEP 8 - Barra in alto con menu laterale, pie' di pagina
   ============================================================ */

/* --- La barra: solo logo e bottone --- */
.site-header .nav { justify-content: space-between; }

.mh-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--text);
  font-family: var(--font-title);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.mh-menu-btn:hover,
.mh-menu-btn:focus-visible {
  outline: none;
  color: #fff;
  border-color: var(--accent-soft);
  background: rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
}
.mh-menu-btn__righe { display: grid; gap: 4px; }
.mh-menu-btn__righe span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
@media (max-width: 480px) { .mh-menu-btn__testo { display: none; } }

/* --- Lo sfondo scuro --- */
.mh-menu-velo {
  position: fixed;
  inset: 0;
  z-index: 9990;
  /* Niente sfocatura (backdrop-filter): su PC, sopra il carosello
     e la striscia Beta che si muovono, Chrome la ridisegnava a
     ogni fotogramma e il menu sfarfallava. Velo un po' piu' scuro. */
  background: rgba(2, 5, 12, 0.80);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

/* --- Il menu laterale, da destra --- */
.mh-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9991;
  width: 340px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 20px 24px;
  border-left: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(5, 9, 18, 0.99)),
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.25), transparent 55%);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.55);
  transform: translateX(105%);
  will-change: transform;          /* livello proprio: niente sfarfallio */
  backface-visibility: hidden;
  visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
}
/* La striscia colorata, come sui pannelli */
.mh-menu::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-soft), transparent);
}

/* Su PC, togliendo la barra di scorrimento la pagina si allargava
   di colpo e tutto si spostava: lo spazio della barra resta fisso. */
html { scrollbar-gutter: stable; }
body.mh-menu-aperto { overflow: hidden; }
body.mh-menu-aperto .mh-menu { transform: none; visibility: visible; }
body.mh-menu-aperto .mh-menu-velo { opacity: 1; pointer-events: auto; }

.mh-menu__testa {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mh-menu__logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.55));
}
.mh-menu__chiudi {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(5, 8, 18, 0.9);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}
.mh-menu__chiudi:hover {
  color: #fff;
  border-color: var(--danger);
  background: rgba(255, 77, 109, 0.22);
}

/* --- I gruppi di voci --- */
.mh-menu__gruppo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mh-menu__titolo {
  margin: 0 0 6px 4px;
  font-family: var(--font-title);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.45);
}
.mh-menu__voce {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  font-family: var(--font-title);
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
}
.mh-menu__voce:hover,
.mh-menu__voce:focus-visible {
  outline: none;
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
}
.mh-menu__voce.is-active {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.6);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.30), rgba(var(--accent-rgb), 0.06));
  box-shadow: inset 3px 0 0 var(--accent-soft);
}

/* "La mia collezione" / "Accedi": l'azione principale */
.mh-menu__voce--evidenza {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.18);
}
.mh-menu__voce--evidenza:hover { box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.4); }

/* Gestione: in oro, si distingue dal resto */
.mh-menu__gruppo--admin { --tema: #ffd166; --tema-rgb: 255, 209, 102; }
.mh-menu__gruppo--admin .mh-menu__titolo { color: var(--tema); text-shadow: 0 0 10px rgba(var(--tema-rgb), 0.45); }
.mh-menu__gruppo--admin .mh-menu__voce:hover,
.mh-menu__gruppo--admin .mh-menu__voce.is-active {
  border-color: rgba(var(--tema-rgb), 0.5);
  background: rgba(var(--tema-rgb), 0.12);
  box-shadow: inset 3px 0 0 var(--tema);
}

/* --- La lingua: in fondo, a bottoni affiancati --- */
.mh-menu__gruppo--fondo {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.mh-menu__lingue { display: flex; gap: 8px; }
.mh-menu__lingua {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  text-decoration: none;
  transition: all var(--transition);
}
.mh-menu__lingua:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.5); }
.mh-menu__lingua.is-active {
  color: #fff;
  border-color: var(--accent-soft);
  background: rgba(var(--accent-rgb), 0.20);
}

/* --- Pie' di pagina: una colonna in piu' per le note legali --- */
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   17. AVVISO VERSIONE BETA (striscia sotto la barra in alto)
   ------------------------------------------------------------
   Velocita': cambia 40s in .mh-avviso__nastro (piu' alto =
   piu' lento).
   ============================================================ */
.mh-avviso {
  --tema: #ffd166;
  --tema-rgb: 255, 209, 102;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--tema-rgb), 0.22);
  background:
    linear-gradient(90deg, rgba(var(--tema-rgb), 0.10), rgba(var(--tema-rgb), 0.04) 40%, rgba(var(--tema-rgb), 0.10)),
    rgba(5, 9, 18, 0.92);
}

/* L'etichetta fissa a sinistra */
.mh-avviso__etichetta {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-family: var(--font-title);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1206;
  background: var(--tema);
  box-shadow: 6px 0 14px rgba(5, 9, 18, 0.9);
}

/* La finestra: il testo sfuma ai bordi */
.mh-avviso__finestra {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.mh-avviso__nastro {
  display: flex;
  width: max-content;
  animation: mh-avviso-scorri 40s linear infinite;
}
.mh-avviso:hover .mh-avviso__nastro { animation-play-state: paused; }

.mh-avviso__gruppo { display: flex; flex-shrink: 0; }
.mh-avviso__testo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 28px;
  font-size: .78rem;
  letter-spacing: .3px;
  color: var(--text);
}
/* Il rombo dorato tra una ripetizione e l'altra */
.mh-avviso__testo::before {
  content: "\25C6";
  margin-right: 28px;
  font-size: .6rem;
  color: var(--tema);
  text-shadow: 0 0 8px rgba(var(--tema-rgb), 0.7);
}

@keyframes mh-avviso-scorri {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 480px) {
  .mh-avviso { height: 28px; }
  .mh-avviso__etichetta { padding: 0 10px; font-size: .56rem; }
  .mh-avviso__testo { font-size: .72rem; }
}

/* Chi ha chiesto meno animazioni: testo fermo, si legge la
   prima ripetizione e il resto e' tagliato con i puntini */
@media (prefers-reduced-motion: reduce) {
  .mh-avviso__nastro { animation: none; width: auto; }
  .mh-avviso__gruppo[aria-hidden] { display: none; }
  .mh-avviso__gruppo { min-width: 0; }
  .mh-avviso__testo:not(:first-child) { display: none; }
  .mh-avviso__testo { overflow: hidden; text-overflow: ellipsis; display: block; padding: 0 14px; }
  .mh-avviso__testo::before { display: none; }
}

/* ============================================================
   CHI HA CHIESTO MENO ANIMAZIONI
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .mh-hero__testo > *,
  .mh-schermo, .mh-schermo__badge,
  .mh-accesso__pannello { animation: none; }
  .mh-menu, .mh-menu-velo { transition: none; }
  a.mh-pannello:hover { transform: none; }
}

/* ============================================================
   18. PAGINA CONTATTI  (templates/public/contatti.html)
   ============================================================ */

/* --- Il riquadro dell'email nella testata --- */
.mh-email {
  width: 420px;
  max-width: 100%;
  padding: 32px 28px;
  text-align: center;
  animation: mh-entra .7s .2s cubic-bezier(.2, .7, .2, 1) both;
}
.mh-email .mh-pannello__icona { margin: 0 auto 14px; }
.mh-email__etichetta {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tema);
}
.mh-email__indirizzo {
  display: block;
  margin-bottom: 22px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: #fff;
  word-break: break-all;
  text-decoration: none;
}
.mh-email__indirizzo:hover { color: var(--tema); }
.mh-email .btn.is-copiato {
  color: #fff;
  border-color: var(--success, #4dff9b);
  box-shadow: 0 0 16px rgba(77, 255, 155, 0.35);
}

/* --- Quattro pannelli affiancati (2 su tablet, 1 su telefono) --- */
.mh-griglia-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .mh-griglia-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .mh-griglia-4 { grid-template-columns: 1fr; } }

/* --- Schede di marketplace e social --- */
.mh-canale {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}
.mh-canale__logo {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--tema);
  text-shadow: 0 0 18px rgba(var(--tema-rgb), 0.45);
}
.mh-canale__tipo {
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mh-canale p { flex: 1; margin: 8px 0 12px; }
.mh-canale__vai {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--tema-rgb), 0.5);
  background: rgba(var(--tema-rgb), 0.10);
  font-family: var(--font-title);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tema);
  transition: all var(--transition);
}
a.mh-canale:hover .mh-canale__vai {
  color: #fff;
  background: rgba(var(--tema-rgb), 0.28);
}

/* Il colore di ogni canale (vince sul tema della sezione) */
.mh-pannello.mh-canale--ebay      { --tema: #ff6b6b; --tema-rgb: 255, 107, 107; }
.mh-pannello.mh-canale--vinted    { --tema: #4fd1c5; --tema-rgb: 79, 209, 197; }
.mh-pannello.mh-canale--wallapop  { --tema: #3ee0b0; --tema-rgb: 62, 224, 176; }
.mh-pannello.mh-canale--instagram { --tema: #ff7ac6; --tema-rgb: 255, 122, 198; }
.mh-pannello.mh-canale--youtube   { --tema: #ff5c5c; --tema-rgb: 255, 92, 92; }
.mh-pannello.mh-canale--tiktok    { --tema: #7ff5ff; --tema-rgb: 127, 245, 255; }

/* --- "Per una risposta piu' veloce" --- */
.mh-consigli {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 32px;
}
.mh-consigli .mh-testa { margin-bottom: 22px; }

@media (max-width: 820px) {
  .mh-email { padding: 26px 20px; }
  .mh-consigli { padding: 28px 20px; }
}
