/* Componenti indipendenti per sito pubblico, applicazione e pagina offline. */
.pwa-help {
  max-width: min(520px, calc(100vw - 36px));
  padding: 28px;
  border: 1px solid #b9d0bb;
  border-radius: 12px;
  color: #173e46;
  background: #fafbf7;
}
.pwa-help::backdrop {
  background: #102c35a6;
}
.pwa-help p {
  line-height: 1.8;
}
.pwa-install[hidden] {
  display: none;
}
.pwa-install {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  right: 18px;
  z-index: 150;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid #b9d0bb;
  border-radius: 10px;
  background: #fafbf7;
  box-shadow: 0 8px 30px #173e4626;
  max-width: calc(100vw - 36px);
}
.pwa-install button {
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-radius: 6px;
  background: #24644d;
  color: white;
  font:
    600 14px Arial,
    sans-serif;
  cursor: pointer;
}
.pwa-install button:last-child {
  background: transparent;
  color: #173e46;
  font-size: 22px;
}
.pwa-install button:focus-visible,
.offline-page a:focus-visible {
  outline: 3px solid #a06919;
  outline-offset: 3px;
}
.offline-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fafbf7;
  color: #173e46;
  font:
    16px/1.7 Arial,
    sans-serif;
}
.offline-page main {
  max-width: 540px;
  padding: 30px;
}
.offline-page h1 {
  line-height: 1.2;
  font-size: 36px;
  letter-spacing: -1px;
}
.offline-page img {
  border-radius: 18px;
}
.offline-page a {
  display: inline-block;
  color: white;
  background: #24644d;
  padding: 14px 20px;
  border-radius: 6px;
  text-decoration: none;
}
