/* Menu Gang — classi prefissate (.gw, .dd, .it, .ic, .tt, .ds, .nv, .chev).
   Copiato dalla bozza, adattato ai token del sito. Nessun effetto aggiuntivo. */

/* Un solo stile per la voce: sottolineatura viola. Niente sfondo a pillola. */
.nav__links .nv { position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 0; background: none; text-decoration: none; white-space: nowrap;
  cursor: pointer; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links > a.nv, .nav__links > .gw > button.nv { background: none; }
.nav__links > a.nv:hover, .nav__links > a.nv:focus-visible, .nav__links > a.nv[aria-current],
.nav__links > .gw > button.nv:hover, .nav__links > .gw > button.nv:focus-visible,
.nav__links > .gw > button.nv[aria-current] { background: none; color: #fff; }
.nav__links .nv::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--purple); box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0); transition: transform .2s; }
.nav__links .nv:hover::after, .nav__links .nv[aria-current]::after,
.nav__links .nv[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__links .nv:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; border-radius: 8px; }

.chev { width: 12px; height: 12px; flex: none; transition: transform .2s; }
.gw.open .chev { transform: rotate(180deg); }

/* Menu a tendina */
.gw { position: relative; display: inline-flex; }
.dd { --tx: -50%; list-style: none; margin: 0; padding: 8px; position: absolute;
  top: calc(100% + 14px); left: 50%; z-index: 60; width: 272px; border-radius: 16px;
  border: 1px solid rgba(178,77,255,.38); background: rgba(15,11,26,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 26px rgba(178,77,255,.18);
  opacity: 0; visibility: hidden; transform: translate(var(--tx), -6px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.gw.open .dd { opacity: 1; visibility: visible; transform: translate(var(--tx), 0); transition-delay: 0s; }
.dd::before { content: ""; position: absolute; top: -6px; left: calc(50% - 5px); width: 10px; height: 10px;
  transform: rotate(45deg); border-left: 1px solid rgba(178,77,255,.38);
  border-top: 1px solid rgba(178,77,255,.38); background: rgb(15,11,26); }
/* ponte invisibile: il mouse non perde il menu nello spazio vuoto */
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

.it { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.dd li + li { border-top: 1px solid rgba(178,77,255,.12); }
.it::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px; background: var(--purple); box-shadow: 0 0 10px var(--glow);
  transform: scaleY(0); transition: transform .15s; }
.ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(178,77,255,.25); background: rgba(178,77,255,.12); color: var(--purple);
  transition: background .15s, box-shadow .15s; }
.ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.tt { display: block; font-size: .95rem; font-weight: 600; color: var(--text);
  transition: color .15s, text-shadow .15s; }
.ds { display: block; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.it[aria-current] .tt { text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 3px; }
.it:hover, .it:focus-visible { background: rgba(178,77,255,.12); }
.it:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.it:hover::before, .it:focus-visible::before { transform: scaleY(1); }
.it:hover .tt, .it:focus-visible .tt { color: #fff; text-shadow: 0 0 10px rgba(199,125,255,.7); }
.it:hover .ic, .it:focus-visible .ic { background: rgba(178,77,255,.25); box-shadow: 0 0 14px rgba(178,77,255,.4); }

/* Telefono: a tutta larghezza sotto la barra, senza triangolino.
   --gw-top e' aggiornato dallo script con l'altezza reale dell'header. */
@media (max-width: 640px) {
  .gw { position: static; }
  .dd { --tx: 0px; position: fixed; left: 12px; right: 12px;
    top: var(--gw-top, var(--header-h)); width: auto; }
  .dd::before, .dd::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dd, .chev, .it, .nv::after { transition: none !important; }
}
