:root {
  --apple-blue: #007aff;
  --apple-bg: #f2f2f7;
  --testo-principale: #1c1c1e;
  --testo-secondario: #8e8e93;
  --card-bg: #ffffff;
  --card-border: rgba(60, 60, 67, 0.08);
  --card-shadow: 0 10px 24px rgba(28, 28, 30, 0.06);
  /* Curve e durate stile motion iOS */
  --motion-apple-entrata: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-apple-rapida: cubic-bezier(0.32, 0.72, 0, 1);
  --durata-auth-entrata: 0.58s;
  --auth-card-glass: rgba(255, 255, 255, 0.78);
  --auth-input-bg: rgba(242, 242, 247, 0.95);
  --altezza-nav: 74px;
  --offset-nav: 12px;
  /* Livelli sovrapposizione: FAB sopra la bottom bar, modali sopra tutto */
  --z-bottom-nav: 1100;
  --z-fab: 1110;
  --z-modale-overlay: 1200;
  --z-modale: 1201;
  --z-consenso-notifiche: 1300;
}

/* Tema scuro (impostato da app-main.js su documentElement) */
:root[data-tema="scuro"] {
  --apple-bg: #000000;
  --testo-principale: #f2f2f7;
  --testo-secondario: #aeaeb2;
  --card-bg: #1c1c1e;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  --auth-card-glass: rgba(28, 28, 30, 0.72);
  --auth-input-bg: rgba(58, 58, 60, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  padding: env(safe-area-inset-top) 0 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--apple-bg);
  color: var(--testo-principale);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

body.blocco-scroll {
  overflow: hidden;
  touch-action: none;
}

.contenitore {
  min-height: calc(100dvh - env(safe-area-inset-top));
  padding: 20px 20px calc(var(--altezza-nav) + var(--offset-nav) + env(safe-area-inset-bottom) + 24px) 20px;
}

.intestazione {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.titolo {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
}

.hero {
  margin-bottom: 25px;
  padding: 25px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #007aff 0%, #0051ff 100%);
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

/* Hero pagina documenti (scadenze) */
.hero-doc {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.32);
}

.doc-scadenza-badge {
  max-width: 120px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.badge-scadenza--ok {
  color: #15803d;
}

.badge-scadenza--presto {
  color: #c2410c;
}

.badge-scadenza--urgente {
  color: #dc2626;
}

.badge-scadenza--scaduto {
  color: #991b1b;
}

.badge-scadenza--neutro {
  color: var(--testo-secondario);
}

:root[data-tema="scuro"] .badge-scadenza--ok {
  color: #4ade80;
}

:root[data-tema="scuro"] .badge-scadenza--presto {
  color: #fb923c;
}

:root[data-tema="scuro"] .badge-scadenza--urgente,
:root[data-tema="scuro"] .badge-scadenza--scaduto {
  color: #f87171;
}

.hero-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.hero-amount {
  margin: 5px 0 15px 0;
  font-size: 42px;
  font-weight: 700;
}

.hero-rinnovo {
  opacity: 0.8;
  font-size: 14px;
}

.card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.sub-wrapper {
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid transparent;
}

/* Swipe card: traslazione da variabile CSS (aggiornata da app-main.js) */
.card-sub-swipe {
  margin-bottom: 0;
  transform: translateX(var(--swipe-translate, 0px));
  transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
  touch-action: pan-y;
  will-change: transform;
}

.card-sub-trascinando {
  transition: none;
}

.sub-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 136px;
  display: flex;
  overflow: hidden;
  border-radius: 0 18px 18px 0;
}

.azione-sub {
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

.azione-sub:active {
  transform: scale(0.96);
  opacity: 0.92;
  filter: brightness(0.95);
}

.azione-modifica {
  width: 68px;
  background: #ff9f0a;
}

.azione-elimina {
  width: 68px;
  background: #ff3b30;
}

.icona-sub {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
  background: #e5f1ff;
}

.info-sub {
  flex: 1;
  margin-left: 15px;
}

.nome-sub {
  font-size: 17px;
  font-weight: 600;
}

.categoria-sub {
  font-size: 13px;
  color: var(--testo-secondario);
}

.prezzo-sub {
  font-size: 17px;
  font-weight: 700;
  color: var(--testo-principale);
}

.vuoto {
  padding: 18px;
  border-radius: 14px;
  color: var(--testo-secondario);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-align: center;
}

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--altezza-nav) + var(--offset-nav) + env(safe-area-inset-bottom) + 14px);
  z-index: var(--z-fab);
  display: flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(160deg, #1a8cff 0%, #0064f2 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 84, 204, 0.32);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.22s ease, opacity 0.18s ease, filter 0.22s ease;
}

.fab-icona {
  display: block;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
}

.fab:active {
  transform: scale(0.9);
  opacity: 0.92;
  box-shadow: 0 8px 16px rgba(0, 84, 204, 0.24);
  filter: brightness(0.96);
}

.modale-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modale-overlay);
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s;
}

.modale-overlay.aperta {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Primo accesso: richiesta consenso notifiche (sopra modali e nav) */
.overlay-consenso-notifiche {
  position: fixed;
  inset: 0;
  z-index: var(--z-consenso-notifiche);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.48);
  animation: consenso-notifiche-entrata 0.35s var(--motion-apple-entrata) both;
}

@keyframes consenso-notifiche-entrata {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scheda-consenso-notifiche {
  width: 100%;
  max-width: 400px;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.titolo-consenso-notifiche {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--testo-principale);
}

.testo-consenso-notifiche {
  margin: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--testo-secondario);
}

.riga-bottoni-consenso-notifiche {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bottone-consenso-rifiuta {
  margin-top: 0;
}

.bottone-consenso-accetta {
  margin-top: 0;
}

@media (min-width: 480px) {
  .riga-bottoni-consenso-notifiche {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .riga-bottoni-consenso-notifiche .bottone-consenso-rifiuta,
  .riga-bottoni-consenso-notifiche .bottone-consenso-accetta {
    width: auto;
    min-width: 120px;
  }
}

.modale {
  position: fixed;
  inset: 0;
  z-index: var(--z-modale);
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 25px 25px 0 0;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  overscroll-behavior: contain;
  touch-action: pan-y;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.modale.aperta {
  transform: translateY(calc(15% + var(--modal-drag, 0px)));
  pointer-events: auto;
}

.modale.modale-trascinando {
  transition: none;
}

.titolo-modale {
  margin-top: 0;
}

.modale .titolo-modale {
  flex-shrink: 0;
  margin: 0 0 14px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--testo-principale);
}

/* Contenuto modale: stack verticale allineato (sub e documenti) */
.modale-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modale-form > .errore {
  margin: 0 0 12px 0;
}

.modale-form > .campo-input {
  margin-bottom: 15px;
}

.modale-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.modale-campo-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--testo-secondario);
}

.modale-campo .campo-input {
  margin-bottom: 0;
}

/* Contenitore data: stessa altezza e bordi degli altri campo-input */
.modale-campo-interno--data {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  min-height: 52px;
  border-radius: 12px;
  background: #f2f2f7;
  box-sizing: border-box;
  overflow: hidden;
}

.modale-input-data {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--testo-principale);
  color-scheme: light dark;
  text-align: start;
}

.modale-input-data:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 122, 255, 0.35);
}

.modale-input-data::-webkit-calendar-picker-indicator {
  flex-shrink: 0;
  margin-inline-start: 6px;
  padding: 8px;
  cursor: pointer;
  opacity: 0.55;
}

.modale-input-data::-webkit-datetime-edit {
  padding: 0;
  margin: 0;
}

.modale-input-data::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.modale-input-data::-webkit-datetime-edit-text {
  padding: 0 1px;
}

:root[data-tema="scuro"] .modale-campo-interno--data {
  background: #3a3a3c;
}

/* Select “Tipo” stessa altezza del blocco data */
.modale .modale-campo select.campo-input {
  min-height: 52px;
  height: 52px;
  padding: 0 16px;
  line-height: 1.25;
  box-sizing: border-box;
}

.modale-bottone-azione {
  margin-top: 6px;
}

.modale-grabber {
  flex-shrink: 0;
  width: 42px;
  height: 5px;
  margin: 0 auto 14px auto;
  border-radius: 999px;
  background: #d0d0d7;
}

.errore {
  margin: 0 0 12px 0;
  color: #c62828;
  font-size: 14px;
}

.campo-input {
  width: 100%;
  margin-bottom: 15px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  outline: none;
  background: #f2f2f7;
  font-size: 17px;
}

.bottone-salva {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--apple-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s ease, filter 0.18s ease;
}

.bottone-salva:active {
  transform: scale(0.98);
  opacity: 0.94;
  filter: brightness(0.96);
}

.contenuto-pagina {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* Sotto-sezioni Impostazioni: swipe verso destra per tornare al menu (stile iOS) */
.impostazioni-sotto-vista {
  transform: translateX(var(--impostazioni-indietro, 0px));
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  touch-action: pan-y;
  will-change: transform;
}

.impostazioni-sotto-vista.impostazioni-sotto-trascinando {
  transition: none;
}

/* Transizione tra tab e sotto-sezioni impostazioni (stile iOS) */
.vista-contenuto {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation-duration: 0.38s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

.vista-contenuto.vista-avanti {
  animation-name: vistaEntraAvanti;
}

.vista-contenuto.vista-indietro {
  animation-name: vistaEntraIndietro;
}

@keyframes vistaEntraAvanti {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes vistaEntraIndietro {
  from {
    opacity: 0;
    transform: translateX(-16px) scale(0.994);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.animazione-auth-entra {
  animation: authEntra var(--durata-auth-entrata) var(--motion-apple-entrata) both;
}

@keyframes authEntra {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(22px) scale(0.96);
  }

  55% {
    filter: blur(0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.griglia-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.kpi-label {
  font-size: 12px;
  color: var(--testo-secondario);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-valore {
  font-size: 20px;
  font-weight: 700;
  color: var(--testo-principale);
}

.card-report {
  padding: 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.titolo-sezione {
  margin: 0 0 12px 0;
  font-size: 19px;
}

.testo-secondario {
  margin: 0;
  color: var(--testo-secondario);
}

.badge-stato-notifiche {
  margin: 10px 0;
  color: #0b5ec9;
  font-size: 13px;
  font-weight: 600;
}

.messaggio-notifiche {
  margin: 10px 0 0 0;
  color: var(--testo-secondario);
  font-size: 13px;
}

.riga-controlli-notifiche {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.bottone-toggle-notifiche {
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #f0f2f8;
  color: #4a5568;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s ease, background 0.2s ease, color 0.2s ease;
}

.bottone-toggle-notifiche:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.bottone-toggle-notifiche.attivo {
  background: #e2f1ff;
  color: #005ed1;
}

.etichetta-ora {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--testo-secondario);
  font-size: 12px;
  font-weight: 600;
}

/* Sezione impostazioni: toggle backup automatico */
.etichetta-backup-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.etichetta-backup-toggle .checkbox-backup {
  width: 20px;
  height: 20px;
  accent-color: var(--accent, #007aff);
  cursor: pointer;
  flex-shrink: 0;
}

.testo-backup-ultimo {
  margin-top: 4px;
  margin-bottom: 4px;
}

.testo-backup-solo-server {
  margin-top: 6px;
  margin-bottom: 10px;
  font-style: italic;
}

.campo-ora {
  margin-bottom: 0;
}

.bottone-secondario {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #edf2f8;
  color: #31435c;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s ease;
}

.bottone-secondario:active {
  transform: scale(0.985);
  opacity: 0.9;
}

.bottone-danger {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #ffe4e6;
  color: #b42318;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s ease;
}

.bottone-danger:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.riga-impostazione {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border: none;
  border-bottom: 1px solid var(--card-border);
  background: transparent;
  font-size: 16px;
  color: var(--testo-principale);
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.16s ease, background 0.18s ease;
}

.riga-impostazione:active {
  transform: scale(0.99);
  background: rgba(0, 0, 0, 0.03);
}

.riga-impostazione.statica {
  cursor: default;
}

.riga-impostazione:last-child {
  border-bottom: none;
}

.freccia-impostazione {
  color: #9aa4b2;
  font-size: 20px;
  line-height: 1;
}

.valore-impostazione {
  color: var(--testo-secondario);
  font-size: 14px;
}

.back-impostazioni {
  border: none;
  background: transparent;
  padding: 6px 4px;
  margin-bottom: 8px;
  color: #005ed1;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.back-impostazioni:active {
  opacity: 0.65;
  transform: translateX(-2px);
}

.auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Sfondo login / registrazione: gradiente morbido stile iOS */
.auth-wrap--apple {
  position: relative;
  overflow: hidden;
  background: var(--apple-bg);
}

.auth-wrap--apple::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(0, 122, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 50% at 88% 12%, rgba(175, 82, 222, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(52, 199, 89, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.auth-wrap--apple > * {
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

/* Card vetro / iOS: blur, bordo luminoso, ombra più morbida */
.auth-card--apple {
  max-width: 400px;
  padding: 28px 24px 24px 24px;
  border-radius: 28px;
  background: var(--auth-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 24px 48px rgba(28, 28, 30, 0.1),
    0 8px 16px rgba(28, 28, 30, 0.04);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}

:root[data-tema="scuro"] .auth-card--apple {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 56px rgba(0, 0, 0, 0.45);
}

.auth-intestazione {
  margin-bottom: 22px;
  text-align: center;
}

.auth-sottotitolo {
  margin: 8px 0 0 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--testo-secondario);
  letter-spacing: -0.01em;
}

/* Stack campi: animazione in cascata (stagger) */
.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-stack > * {
  animation: authCampoEntra 0.48s var(--motion-apple-entrata) both;
}

.auth-stack > *:nth-child(1) {
  animation-delay: 0.06s;
}

.auth-stack > *:nth-child(2) {
  animation-delay: 0.1s;
}

.auth-stack > *:nth-child(3) {
  animation-delay: 0.14s;
}

.auth-stack > *:nth-child(4) {
  animation-delay: 0.18s;
}

.auth-stack > *:nth-child(5) {
  animation-delay: 0.22s;
}

.auth-stack > *:nth-child(6) {
  animation-delay: 0.26s;
}

.auth-stack > *:nth-child(7) {
  animation-delay: 0.3s;
}

@keyframes authCampoEntra {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-stack--sblocco {
  gap: 4px;
}

.auth-stack--bio {
  align-items: center;
  text-align: center;
}

/* Sezione accesso rapido (biometria dalla schermata login) */
.auth-accesso-rapido {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
}

.auth-accesso-rapido--apple {
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  gap: 16px;
}

.auth-titolo-sezione {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--testo-secondario);
  letter-spacing: 0.02em;
}

.auth-micro-copy {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--testo-secondario);
}

.auth-separatore-testo {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--testo-secondario);
  text-align: center;
}

.auth-bottone-bio {
  margin-top: 2px;
}

/* Icona biometria (login / sblocco) */
.auth-bio-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 4px auto;
  border-radius: 30px;
  color: var(--apple-blue);
  background: linear-gradient(155deg, rgba(0, 122, 255, 0.16) 0%, rgba(88, 160, 255, 0.06) 45%, rgba(0, 122, 255, 0.03) 100%);
  border: 1px solid rgba(0, 122, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 28px rgba(0, 122, 255, 0.12);
  transition: transform 0.35s var(--motion-apple-entrata), box-shadow 0.35s ease;
  animation: authBioHeroRespira 3.4s var(--motion-apple-entrata) infinite;
}

.auth-bio-hero::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 34px;
  background: radial-gradient(ellipse 70% 65% at 50% 38%, rgba(0, 122, 255, 0.22) 0%, transparent 68%);
  opacity: 0.75;
  animation: authBioAura 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.auth-bio-hero > .auth-ico-bio {
  position: relative;
  z-index: 1;
}

.auth-bio-hero:active {
  transform: scale(0.96);
  animation: none;
}

.auth-bio-hero:active::before {
  opacity: 0.35;
  animation: none;
}

@keyframes authBioHeroRespira {
  0%,
  100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.3) inset,
      0 10px 24px rgba(0, 122, 255, 0.1);
  }

  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.4) inset,
      0 16px 40px rgba(0, 122, 255, 0.24);
  }
}

@keyframes authBioAura {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

.auth-ico-bio {
  width: 60px;
  height: 60px;
  overflow: visible;
  animation: authBioIconaSaluta 3.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 2px 6px rgba(0, 122, 255, 0.12));
}

@keyframes authBioIconaSaluta {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  30% {
    transform: translateY(-2px) rotate(-0.4deg);
  }

  60% {
    transform: translateY(-3.5px) rotate(0.35deg);
  }
}

.auth-bio-guancia {
  opacity: 0.055;
  animation: authBioGuancia 4s ease-in-out infinite;
}

@keyframes authBioGuancia {
  0%,
  100% {
    opacity: 0.04;
  }

  50% {
    opacity: 0.09;
  }
}

.auth-bio-cornice {
  animation: authBioCorniceLuce 2.8s ease-in-out infinite;
}

.auth-bio-cornice-inner {
  animation: authBioCorniceInner 3.4s ease-in-out infinite;
}

@keyframes authBioCorniceLuce {
  0%,
  100% {
    stroke-opacity: 0.14;
  }

  50% {
    stroke-opacity: 0.34;
  }
}

@keyframes authBioCorniceInner {
  0%,
  100% {
    stroke-opacity: 0.08;
  }

  50% {
    stroke-opacity: 0.2;
  }
}

.auth-bio-occhi {
  transform-origin: 36px 28.5px;
  transform-box: fill-box;
  animation: authBioBattoCiglia 5.8s ease-in-out infinite;
}

@keyframes authBioBattoCiglia {
  0%,
  45%,
  47%,
  100% {
    transform: scaleY(1);
  }

  46% {
    transform: scaleY(0.07);
  }
}

.auth-bio-smile-wrap {
  transform-origin: 36px 43px;
  transform-box: fill-box;
  animation: authBioSmileVivo 2.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes authBioSmileVivo {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.035) translateY(-0.5px);
  }
}

.auth-bio-smile-ombra {
  animation: authBioSmileOmbra 2.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes authBioSmileOmbra {
  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }
}

.auth-bio-luce-occhio {
  animation: authBioLuceOcchio 2.4s ease-in-out infinite;
}

@keyframes authBioLuceOcchio {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.72;
  }
}

.auth-bio-primario {
  margin-top: 4px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.28);
  transition:
    transform 0.22s var(--motion-apple-rapida),
    box-shadow 0.25s ease,
    filter 0.2s ease;
}

.auth-bio-primario:active {
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.22);
}

.campo-input--auth {
  margin-bottom: 12px;
  background: var(--auth-input-bg);
  border: 1px solid rgba(60, 60, 67, 0.06);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s var(--motion-apple-rapida);
}

.campo-input--auth:focus {
  border-color: rgba(0, 122, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

:root[data-tema="scuro"] .campo-input--auth {
  border-color: rgba(255, 255, 255, 0.08);
}

.auth-errore {
  margin-top: 4px;
  margin-bottom: 8px;
  animation: authErroreScuoti 0.42s var(--motion-apple-rapida) both;
}

@keyframes authErroreScuoti {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  35% {
    transform: translateX(5px);
  }

  65% {
    transform: translateX(-3px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-pulsante-principale {
  margin-top: 6px;
  margin-bottom: 4px;
  border-radius: 14px;
  transition:
    transform 0.22s var(--motion-apple-rapida),
    opacity 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.22);
}

.auth-pulsante-principale:active {
  transform: scale(0.985);
}

.auth-link-cta {
  margin-top: 10px;
  padding: 14px 12px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--apple-blue);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s var(--motion-apple-rapida);
}

.auth-link-cta:active {
  opacity: 0.55;
  transform: scale(0.98);
}

.bottone-secondario.auth-link-cta {
  background: transparent;
  color: var(--apple-blue);
  font-weight: 500;
}

:root[data-tema="scuro"] .bottone-secondario.auth-link-cta {
  color: #0a84ff;
}

.titolo-auth {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sottotitolo-auth {
  margin: 8px 0 18px 0;
  color: var(--testo-secondario);
}

.griglia-filtri {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

select.campo-input {
  appearance: none;
}

.riga-report {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--card-border);
}

.riga-report:last-child {
  border-bottom: none;
}

.riga-report-nome {
  font-weight: 600;
}

.riga-report-cat {
  color: var(--testo-secondario);
  font-size: 13px;
}

.riga-report-prezzo {
  font-size: 15px;
}

.barra-categoria {
  margin-bottom: 12px;
}

.barra-testa {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.barra-bg {
  width: 100%;
}

.barra-fill {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  background: #e9edf8;
}

.barra-fill::-webkit-progress-bar {
  background: #e9edf8;
  border-radius: 999px;
}

.barra-fill::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #007aff 0%, #35a0ff 100%);
}

.barra-fill::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #007aff 0%, #35a0ff 100%);
}

/* Barra inferiore: vetro iOS + pill indicatore */
.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: calc(var(--offset-nav) + env(safe-area-inset-bottom));
  left: 12px;
  z-index: var(--z-bottom-nav);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 -1px 0 rgba(60, 60, 67, 0.06) inset,
    0 12px 40px rgba(28, 28, 30, 0.14),
    0 4px 12px rgba(28, 28, 30, 0.06);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  overflow: hidden;
  animation: bottomNavEntra 0.55s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 42%);
  opacity: 0.9;
}

/* Non usare position:relative qui: sovrascriverebbe position:fixed di .bottom-nav */
.bottom-nav--apple {
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}

/* Indicatore pill che scorre sulla tab attiva (stile iOS) */
.bottom-nav-indicatore {
  position: absolute;
  z-index: 0;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: calc((100% - 20px - 24px) / 4);
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.22) 0%, rgba(0, 122, 255, 0.08) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  transform: translateX(calc(var(--nav-indice, 0) * (100% + 8px)));
  will-change: transform;
}

:root[data-tema="scuro"] .bottom-nav {
  background: rgba(28, 28, 30, 0.62);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.25);
}

:root[data-tema="scuro"] .bottom-nav::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%);
}

:root[data-tema="scuro"] .bottom-nav-indicatore {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.35) 0%, rgba(10, 132, 255, 0.12) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.tab-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--testo-secondario);
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
    color 0.3s ease,
    opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav--apple .tab-nav.attiva {
  background: transparent;
  color: #007aff;
}

:root[data-tema="scuro"] .bottom-nav--apple .tab-nav.attiva {
  color: #0a84ff;
}

.tab-nav.attiva .tab-icona {
  transform: translateY(-1px) scale(1.06);
}

.tab-nav:active {
  transform: scale(0.94);
  opacity: 0.9;
}

.tab-icona {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

.tab-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@keyframes bottomNavEntra {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav {
    animation: none;
  }

  .bottom-nav-indicatore {
    transition: none;
  }

  .tab-icona {
    transition: none;
  }

  .tab-nav.attiva .tab-icona {
    transform: none;
  }
}

/* Home: gruppi per categoria collassabili */
.gruppo-categoria {
  margin-bottom: 8px;
}

.testa-gruppo-categoria {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--testo-principale);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease;
}

.testa-gruppo-categoria:active {
  transform: scale(0.99);
}

.freccia-gruppo {
  flex-shrink: 0;
  width: 22px;
  font-size: 12px;
  color: var(--testo-secondario);
}

.titolo-gruppo-categoria {
  flex: 1;
}

.badge-gruppo {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.12);
  color: #005ed1;
  font-size: 13px;
  font-weight: 700;
}

.corpo-gruppo-categoria {
  padding-top: 4px;
}

.card-sub-inattiva {
  filter: saturate(0.72) brightness(0.96);
}

.card-sub-inattiva .prezzo-sub,
.card-sub-inattiva .categoria-sub,
.card-sub-inattiva .nome-sub {
  color: var(--testo-secondario);
}

.badge-inattivo {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 149, 0, 0.2);
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
}

.sub-etichette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sub-etichetta {
  padding: 3px 8px;
  border-radius: 8px;
  background: #e8eef8;
  color: #31435c;
  font-size: 12px;
  font-weight: 600;
}

:root[data-tema="scuro"] .sub-etichetta {
  background: #3a3a3c;
  color: var(--testo-principale);
}

/* Report: KPI e filtri avanzati */
.griglia-kpi-report {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-confronto {
  grid-column: 1 / -1;
}

.kpi-sotto {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--testo-secondario);
}

.griglia-filtri-avanzati {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.riga-checkbox-filtro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--testo-principale);
}

/* Modale sub: distanza tra checkbox attivo e pulsante salva */
.modale-checkbox {
  margin-bottom: 22px;
  padding-bottom: 6px;
}

/* Andamento: grafici */
.riga-tipo-grafico {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.titolo-inline {
  margin-bottom: 0;
}

.toggle-grafico {
  display: flex;
  gap: 8px;
}

.toggle-grafico-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: #e9edf5;
  color: #31435c;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle-grafico-btn.attivo {
  background: #e2f1ff;
  color: #005ed1;
}

:root[data-tema="scuro"] .toggle-grafico-btn {
  background: #3a3a3c;
  color: var(--testo-principale);
}

:root[data-tema="scuro"] .toggle-grafico-btn.attivo {
  background: rgba(0, 122, 255, 0.25);
  color: #64b5ff;
}

.grafico-torta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.grafico-torta {
  width: min(220px, 80vw);
  height: min(220px, 80vw);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.legenda-grafico {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legenda-voce {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}

.legenda-voce:last-child {
  border-bottom: none;
}

.legenda-colore {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 3px;
}

.grafico-barre {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.barra-cat-riga {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 10px;
  align-items: center;
}

.barra-cat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--testo-principale);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.barra-cat-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf8;
}

.barra-cat-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.barra-cat-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--testo-principale);
}

:root[data-tema="scuro"] .barra-cat-track {
  background: #3a3a3c;
}

/* Schermata blocco app */
.schermata-blocco {
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--apple-bg);
}

.schermata-blocco--apple {
  position: relative;
  overflow: hidden;
}

.schermata-blocco--apple::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(0, 122, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 88% 12%, rgba(175, 82, 222, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(52, 199, 89, 0.07), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.schermata-blocco--apple > * {
  position: relative;
  z-index: 1;
}

.schermata-blocco-card {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.schermata-blocco-card--apple {
  max-width: 400px;
  padding: 28px 24px 24px 24px;
  border-radius: 28px;
  background: var(--auth-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 24px 48px rgba(28, 28, 30, 0.1),
    0 8px 16px rgba(28, 28, 30, 0.04);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}

:root[data-tema="scuro"] .schermata-blocco-card--apple {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 56px rgba(0, 0, 0, 0.45);
}

:root[data-tema="scuro"] .campo-input {
  background: #3a3a3c;
  color: var(--testo-principale);
}

@media (max-width: 680px) {
  .fab {
    right: 14px;
    width: 58px;
    height: 58px;
  }

  .fab-icona {
    font-size: 31px;
  }

  .griglia-kpi {
    grid-template-columns: 1fr;
  }

  .griglia-filtri {
    grid-template-columns: 1fr;
  }

  .riga-controlli-notifiche {
    grid-template-columns: 1fr;
  }

  .riga-report {
    grid-template-columns: 1fr auto;
  }

  .riga-report-cat {
    grid-column: 1 / 2;
  }

  .griglia-kpi-report {
    grid-template-columns: 1fr;
  }

  .griglia-filtri-avanzati {
    grid-template-columns: 1fr;
  }

  .barra-cat-riga {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .barra-cat-track {
    grid-column: 1 / -1;
  }
}

@media (display-mode: standalone) {
  .contenitore {
    min-height: 100dvh;
  }
}

/* Accessibilità: riduce animazioni se richiesto dal sistema */
@media (prefers-reduced-motion: reduce) {
  .vista-contenuto,
  .animazione-auth-entra {
    animation: none;
  }

  .auth-stack > * {
    animation: none;
  }

  .auth-errore {
    animation: none;
  }

  .auth-bio-hero,
  .auth-ico-bio,
  .auth-bio-cornice,
  .auth-bio-cornice-inner,
  .auth-bio-guancia,
  .auth-bio-occhi,
  .auth-bio-smile-wrap,
  .auth-bio-smile-ombra,
  .auth-bio-luce-occhio {
    animation: none !important;
  }

  .auth-bio-hero::before {
    animation: none !important;
    opacity: 0.55;
  }

  .auth-ico-bio {
    filter: none;
  }

  .card-sub-swipe {
    transition: transform 0.12s ease;
  }

  .fab:active,
  .tab-nav:active,
  .bottone-salva:active,
  .bottone-secondario:active,
  .bottone-danger:active,
  .riga-impostazione:active,
  .back-impostazioni:active,
  .azione-sub:active,
  .bottone-toggle-notifiche:active {
    transform: none;
  }

  .modale,
  .modale-overlay {
    transition-duration: 0.01ms;
  }

  .impostazioni-sotto-vista {
    transition-duration: 0.01ms;
  }
}
