/* Design Scuole Italia — child "Formigine 2" · f2-pwa.css
 * Banner "installa l'app". Stile canonico DSI: superficie bianca, hairline #d9dadb,
 * accento blu istituto #0000f5, raggio 4px. Discreto, in basso, GPU-safe.
 */
.f2pwa {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 140%);
  z-index: 1900;
  width: min(560px, calc(100% - 1.5rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #d9dadb;
  border-radius: 4px;
  box-shadow: 0 8px 30px -6px rgba(8, 10, 26, .28);
  padding: .8rem 1rem;
  opacity: 0;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .28s cubic-bezier(.16, 1, .3, 1);
}
.f2pwa.f2pwa-in { transform: translate(-50%, 0); opacity: 1; }
.f2pwa-body { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.f2pwa-ic { flex: 0 0 auto; border-radius: 8px; }
.f2pwa-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.f2pwa-txt strong { font-size: .95rem; color: #19191a; }
.f2pwa-txt span { font-size: .82rem; color: #5c6f82; line-height: 1.35; }
.f2pwa-shr { color: #0000f5; font-weight: 600; }
.f2pwa-act { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; }
.f2pwa-btn {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: #0000f5;
  border: 1px solid #0000f5;
  border-radius: 4px;
  padding: .5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease-in-out;
}
.f2pwa-btn:hover, .f2pwa-btn:focus-visible { background: #0000c4; outline: 0; }
.f2pwa-btn:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0000f5; }
.f2pwa-x {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #5c6f82;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .15s ease-in-out;
}
.f2pwa-x:hover, .f2pwa-x:focus-visible { background: #f2f6f9; color: #19191a; outline: 0; }

@media (max-width: 575.98px) {
  .f2pwa { bottom: 0; border-radius: 4px 4px 0 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .f2pwa { transition: opacity .2s ease; transform: translate(-50%, 0); }
}

/* Install: bottone discreto e integrato, a SINISTRA della riga credits del footer
   ("Idea e progetto di Designers Italia" resta a destra). Footer scuro (blu) -> ghost bianco. */
.f2pwa-footrow { display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; flex-wrap: wrap; }
.f2pwa-foot { display: inline-flex; }
.f2pwa-foot-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 4px;
  padding: .44rem .9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.f2pwa-foot-ic { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.f2pwa-foot-btn:hover, .f2pwa-foot-btn:focus-visible { background: rgba(255, 255, 255, .2); border-color: #fff; outline: 0; }
.f2pwa-foot-btn:focus-visible { box-shadow: 0 0 0 2px rgba(8, 10, 26, .5), 0 0 0 4px #fff; }
.f2pwa-foot-hint { flex-basis: 100%; margin: .1rem 0 0; text-align: left; font-size: .8rem; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.f2pwa-foot-hint b { color: #fff; }
