/* Pulsante Home condiviso da Progetti e Materiali — 7 ottobre 2026. */
.nav-home-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-home-button {
  --home-background: #c5f544;
  --home-hover: #b6e536;
  --home-text: #202526;
  --home-border: #4b6510;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--home-border);
  background: var(--home-background);
  color: var(--home-text);
  font: 600 calc(12px * var(--site-font-scale)) / 1.2 'IBM Plex Mono', monospace;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, transform .18s;
}

:root[data-theme="dark"] .nav-home-button {
  --home-border: #c5f544;
}

:root[data-theme="eva01"] .nav-home-button {
  --home-background: #e8790c;
  --home-hover: #f58a20;
  --home-text: #000000;
  --home-border: #e8790c;
}

.nav-home-button:is(:hover, :focus-visible) {
  background: var(--home-hover);
  color: var(--home-text);
}

:root .nav-home-button:focus-visible {
  outline: 2px solid var(--home-border);
  outline-offset: 4px;
}

.nav-home-button:active { transform: scale(.98); }

@media (max-width: 620px) {
  .nav-home-navigation { flex-wrap: wrap; }
  .nav-home-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }
  .nav-home-actions .theme-toggle { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-home-button { transition: none; }
}
