/*
 * menu-icons-block.css
 * Blocco Menu Icone con toggle hamburger — modulo gestione.
 *
 * Posizione: modules/custom/gestione/css/menu-icons-block.css
 */

/* ── Wrapper blocco ── */
.gestione-menu-icons-block {
  background: none;
  border: none;
  padding: 0;
}

/* ── Bottone toggle (hamburger) ── */
.gestione-menu-icons__toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: .4rem .7rem;
  border-radius: .375rem;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.gestione-menu-icons__toggle:hover,
.gestione-menu-icons__toggle:focus-visible {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  outline: none;
}

/* Icona hamburger visibile su qualsiasi sfondo */
.gestione-menu-icons__toggle .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.4em;
  height: 1.4em;
}

/* Su sfondo chiaro: hamburger scuro */
.bg-white .gestione-menu-icons__toggle,
.bg-light .gestione-menu-icons__toggle {
  border-color: rgba(0,0,0,.25);
  color: var(--bs-dark, #212529);
}
.bg-white .gestione-menu-icons__toggle .navbar-toggler-icon,
.bg-light .gestione-menu-icons__toggle .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Griglia icone ── */
.gestione-menu-icons {
  display: grid;
  gap: 1.2rem 1rem;
  padding: 1rem 0 .5rem;
  background: none;
  border: none;
}

/* ── Singola voce ── */
.gestione-menu-icons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-decoration: none !important;
  color: inherit;
  transition: transform .18s ease;
}
.gestione-menu-icons__item:hover,
.gestione-menu-icons__item:focus-visible {
  transform: translateY(-4px) scale(1.08);
  outline: none;
}

/* ── Riquadro icona ── */
.gestione-menu-icons__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bs-primary, var(--primary-bg-color, #0d6efd));
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: filter .18s ease, box-shadow .18s ease;
}
.gestione-menu-icons__item:hover .gestione-menu-icons__box {
  filter: brightness(1.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.gestione-menu-icons__item.is-active .gestione-menu-icons__box {
  box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 4px 12px rgba(0,0,0,.18);
}

/* ── Etichetta testo ── */
.gestione-menu-icons__label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
  max-width: 90px;
  color: inherit;
}

/* Su sfondo scuro testo bianco */
.bg-dark .gestione-menu-icons__item,
.bg-primary .gestione-menu-icons__item,
[class*="bg-dark"] .gestione-menu-icons__item {
  color: #ffffff;
}
