/* GRAFICA 3 · Intestazione su due righe, 09-10-2026. */
html body .fm-header-due-righe .testata-interno {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 174px;
  align-items: start;
  gap: 0;
  min-height: 0;
  padding-block: 8px 22px;
}
html body .fm-header-due-righe .marchio {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: start;
}
html body .fm-header-due-righe .navigazione {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  position: static;
}
html body .fm-header-due-righe .fm-nav-servizi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 106px;
  padding-inline: 190px;
  box-sizing: border-box;
}
html body .fm-header-due-righe .fm-nav-servizi > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  color: #14213d;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}
html body .fm-header-due-righe .fm-nav-servizi > a:hover,
html body .fm-header-due-righe .fm-nav-servizi > a[aria-current="page"] {
  background: #edf5ff;
  color: #1d4ed8;
}
html body .fm-header-due-righe .fm-nav-azioni {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 0;
}
html body .fm-header-due-righe .fm-nav-azioni > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 15px 20px;
  margin: 0;
  border: 2px solid rgba(220, 38, 38, .72);
  border-radius: 18px;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-sizing: border-box;
  box-shadow: 0 5px 14px rgba(20, 33, 61, .06);
  transition: background .18s ease, box-shadow .18s ease;
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-pubblica {
  background: rgba(34, 197, 94, .18);
  color: #14532d;
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-animali-scomparsi {
  background: rgba(220, 38, 38, .16);
  color: #991b1b;
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-pubblica:hover,
html body .fm-header-due-righe .fm-nav-azioni > .nav-pubblica[aria-current="page"] {
  background: rgba(34, 197, 94, .27);
  color: #14532d;
  box-shadow: 0 7px 18px rgba(20, 83, 45, .12);
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-animali-scomparsi:hover,
html body .fm-header-due-righe .fm-nav-azioni > .nav-animali-scomparsi[aria-current="page"] {
  background: rgba(220, 38, 38, .24);
  color: #991b1b;
  box-shadow: 0 7px 18px rgba(153, 27, 27, .1);
}
html body .fm-header-due-righe .fm-nav-azioni > a::before {
  width: auto;
  margin: 0;
  font-size: 24px;
  flex: 0 0 auto;
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-animali-scomparsi::before {
  content: "🔎";
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-pubblica::before {
  content: "📣";
}
html body .fm-header-due-righe .navigazione a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  html body .fm-header-due-righe .testata-interno {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
    padding-block: 6px;
  }
  html body .fm-header-due-righe .menu-pulsante {
    grid-column: 2;
    grid-row: 1;
  }
  html body .fm-header-due-righe .navigazione {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    padding-block: 10px 16px;
    gap: 16px;
  }
  html body .fm-header-due-righe .navigazione.aperta {
    display: grid;
  }
  html body .fm-header-due-righe .fm-nav-servizi {
    min-height: 0;
    padding: 0;
    gap: 6px;
  }
  html body .fm-header-due-righe .fm-nav-azioni {
    grid-template-columns: repeat(2, minmax(0, 300px));
    gap: 12px;
  }
}
@media (max-width: 600px) {
  html body .fm-header-due-righe .fm-nav-servizi > a {
    padding: 10px 12px;
    font-size: 15px;
  }
  html body .fm-header-due-righe .fm-nav-servizi .fm-session-slot {
    flex-basis: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
  }
  html body .fm-header-due-righe .fm-nav-azioni {
    grid-template-columns: minmax(0, 320px);
    gap: 10px;
  }
  html body .fm-header-due-righe .fm-nav-azioni > a {
    min-height: 60px;
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .fm-header-due-righe .fm-nav-azioni > a {
    transition: none;
  }
}

/* Evita la seconda icona davanti ad Accedi. */
html body .fm-header-due-righe .fm-nav-servizi .fm-session-control::before,
html body .fm-header-due-righe .fm-nav-servizi .fm-session-control::after {
  content: none;
}

/* Terza azione: notifiche, stesse misure dei due pulsanti esistenti. */
html body .fm-header-due-righe .fm-nav-azioni > .nav-attiva-notifiche {
  background: rgba(250, 204, 21, .23);
  border-color: rgba(202, 138, 4, .7);
  color: #713f12;
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-attiva-notifiche::before {
  content: "🔔";
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-attiva-notifiche:hover,
html body .fm-header-due-righe .fm-nav-azioni > .nav-attiva-notifiche[aria-current="page"] {
  background: rgba(250, 204, 21, .36);
  color: #713f12;
  box-shadow: 0 7px 18px rgba(161, 98, 7, .13);
}

/* Donazione: doppio bordo rosso e oro, condiviso su tutte le pagine. */
html body .fm-header-due-righe .fm-nav-azioni > .nav-donazione {
  position: relative;
  isolation: isolate;
  background-color: rgba(251, 207, 232, .38);
  border: 2px solid #cc2639 !important;
  outline: 2px solid #d4a72c;
  outline-offset: 3px;
  color: #9d174d;
  overflow: visible;
  box-shadow: 0 7px 18px rgba(157, 23, 77, .14);
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-donazione::before,
html body .fm-header-due-righe .fm-nav-azioni > .nav-donazione::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
  animation: none !important;
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-donazione:hover,
html body .fm-header-due-righe .fm-nav-azioni > .nav-donazione[aria-current="page"] {
  background-color: rgba(251, 207, 232, .62);
  color: #9d174d;
  border-color: #cc2639 !important;
  outline-color: #d4a72c;
}
html body .fm-header-due-righe .fm-nav-azioni > .nav-donazione:focus-visible {
  outline-width: 3px;
  outline-offset: 4px;
}
