/* Il menù delle categorie a tutto schermo (21/11/2026).
   Colori da stefanelli.css: nero del marchio, giallo solo su fondo scuro.
   Si vede solo sotto i 1000 px, dove la colonna di sinistra si chiude. */

.stf-menucat__apri { display: none; }

@media (max-width: 1000px) {
  .stf-menucat__apri {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 13px 16px; margin: 0 0 10px;
    border: 1px solid var(--stf-bordo, #e4e6ec); border-radius: var(--stf-raggio, 10px);
    background: #fff; cursor: pointer; text-align: left;
    font-size: 15px; font-weight: 700; color: var(--stf-testo, #1b1c20);
    box-shadow: 0 1px 2px rgba(13, 13, 15, .04);
  }
  .stf-menucat__apri::before {
    content: ""; width: 17px; height: 17px; flex: 0 0 auto; background: var(--stf-nero, #0d0d0f);
    -webkit-mask: no-repeat center/100% url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 3.5h14M1 8h14M1 12.5h14' stroke='%23000' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
            mask: no-repeat center/100% url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 3.5h14M1 8h14M1 12.5h14' stroke='%23000' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  }
  .stf-menucat__apri::after {
    content: ""; margin-left: auto; width: 13px; height: 13px; background: var(--stf-testo-tenue, #63666f);
    -webkit-mask: no-repeat center/100% url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 2l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
            mask: no-repeat center/100% url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 2l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  }
  .stf-menucat__apri:hover { border-color: var(--stf-nero, #0d0d0f); }
}

/* --- il pannello ------------------------------------------------------- */
.stf-menucat { position: fixed; inset: 0; z-index: 99999; }
.stf-menucat[hidden] { display: none; }
.stf-menucat__velo {
  position: absolute; inset: 0; background: rgba(13, 13, 15, .55);
  opacity: 0; transition: opacity .22s ease;
}
.stf-menucat.e-aperto .stf-menucat__velo { opacity: 1; }

.stf-menucat__pannello {
  position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column;
  width: min(400px, 92vw); max-width: 100%; background: #fff;
  box-shadow: 0 0 40px rgba(13, 13, 15, .3);
  transform: translateX(-100%); transition: transform .24s ease;
}
.stf-menucat.e-aperto .stf-menucat__pannello { transform: none; }

.stf-menucat__testa {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* nero pieno, non il #0d0d0f del marchio: scelta dell'utente (21/11/2026) */
  padding: 15px 16px; background: #000; color: #fff; flex: 0 0 auto;
}
.stf-menucat__marchio {
  font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
/* 🔑 Il giallo del marchio si usa solo su fondo scuro: qui è il caso. */
.stf-menucat__marchio::after {
  content: ""; display: inline-block; width: 26px; height: 3px; margin-left: 10px;
  vertical-align: middle; background: var(--stf-giallo-ui, #f7c600);
}
.stf-menucat__chiudi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; flex: 0 0 auto;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff;
}
.stf-menucat__chiudi:hover { background: var(--stf-giallo-ui, #f7c600); color: var(--stf-nero, #0d0d0f); }
.stf-menucat__chiudi svg { width: 15px; height: 15px; }

.stf-menucat__corpo { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.stf-menucat__liv[hidden] { display: none; }

.stf-menucat__indietro {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 13px 16px; border: 0; border-bottom: 1px solid var(--stf-bordo, #e4e6ec);
  background: var(--stf-grigio, #f5f6f8); cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 700; color: var(--stf-testo, #1b1c20);
}
.stf-menucat__indietro svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--stf-rosso, #e22c22); }
.stf-menucat__dove {
  margin: 0; padding: 16px 16px 6px;
  font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--stf-nero, #0d0d0f);
}
.stf-menucat__tutto {
  display: block; margin: 0 16px 10px; padding: 11px 14px;
  border-radius: 8px; background: var(--stf-giallo-ui, #f7c600);
  font-size: 14px; font-weight: 700; color: var(--stf-nero, #0d0d0f); text-decoration: none;
}
.stf-menucat__tutto:hover { background: var(--stf-giallo-scuro, #e0b300); color: var(--stf-nero, #0d0d0f); }

.stf-menucat__voci { margin: 0 0 18px; padding: 0; list-style: none; }
.stf-menucat__voci li {
  display: flex; align-items: stretch; border-bottom: 1px solid var(--stf-bordo, #e4e6ec);
}
.stf-menucat__voce {
  display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0;
  padding: 14px 10px 14px 16px; text-decoration: none;
  font-size: 15px; line-height: 1.3; color: var(--stf-testo, #1b1c20);
}
.stf-menucat__voce:hover { background: var(--stf-grigio, #f5f6f8); color: var(--stf-rosso, #e22c22); }
.stf-menucat__voce.e-reparto { font-weight: 700; }
.stf-menucat__nome { overflow-wrap: anywhere; }
.stf-menucat__n {
  margin-left: auto; flex: 0 0 auto; padding: 2px 8px; border-radius: 20px;
  background: var(--stf-grigio, #f5f6f8); font-size: 12.5px; color: var(--stf-testo-tenue, #63666f);
}
.stf-menucat__entra {
  display: flex; align-items: center; justify-content: center;
  width: 52px; flex: 0 0 auto; padding: 0; cursor: pointer;
  border: 0; border-left: 1px solid var(--stf-bordo, #e4e6ec); background: #fff;
  color: var(--stf-testo-tenue, #63666f);
}
.stf-menucat__entra:hover { background: var(--stf-nero, #0d0d0f); color: var(--stf-giallo-ui, #f7c600); }
.stf-menucat__entra svg { width: 14px; height: 14px; }

/* niente scorrimento sotto al pannello aperto */
body.stf-menucat-aperto { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .stf-menucat__velo, .stf-menucat__pannello { transition: none; }
}

/* L'intestazione di reparto nella prima schermata: Armeria, Fuochi. */
.stf-menucat__gruppo {
  display: block; padding: 16px 16px 8px; text-decoration: none;
  font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--stf-testo-tenue, #63666f);
}
.stf-menucat__gruppo:hover { color: var(--stf-rosso, #e22c22); }
.stf-menucat__liv[data-liv="0"] .stf-menucat__voci { margin-bottom: 4px; }
.stf-menucat__liv[data-liv="0"] .stf-menucat__voci:first-of-type { border-top: 1px solid var(--stf-bordo, #e4e6ec); }

/* Su telefono il pannello prende tutto lo schermo (richiesta dell'utente:
   «un menu laterale su tutto il dispositivo»); su tablet resta una colonna. */
@media (max-width: 560px) {
  .stf-menucat__pannello { width: 100vw; }
}
