/* Guida installazione PWA iOS — solo overlay, non altera form login */

.pwa-ios-link {
  display: none;
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.pwa-ios-link a {
  color: #007BFF;
  text-decoration: none;
  cursor: pointer;
}
.pwa-ios-link a:hover { text-decoration: underline; }
.pwa-ios-link.is-visible { display: block; }

.pwa-ios-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.55);
  padding: 16px;
  box-sizing: border-box;
  align-items: flex-end;
  justify-content: center;
}
.pwa-ios-overlay.is-open {
  display: flex;
}

.pwa-ios-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 20px 18px 14px;
  margin-bottom: 72px; /* spazio per freccia verso barra Safari in basso */
  position: relative;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
}

.pwa-ios-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pwa-ios-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.pwa-ios-brand h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0b5cab;
  line-height: 1.25;
}
.pwa-ios-brand p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #4b5563;
}

.pwa-ios-steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.pwa-ios-steps li {
  counter-increment: step;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 1.4;
}
.pwa-ios-steps li::before {
  content: counter(step);
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5dade2;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.pwa-ios-steps strong { font-weight: 700; }
.pwa-ios-step-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-left: auto;
}

.pwa-ios-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.pwa-ios-actions button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pwa-ios-btn-primary {
  background: #007BFF;
  color: #fff;
}
.pwa-ios-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.pwa-ios-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* Freccia animata verso il pulsante Condividi (barra Safari in basso) */
.pwa-ios-arrow {
  position: absolute;
  left: 50%;
  bottom: -78px;
  transform: translateX(-50%);
  width: 56px;
  height: 84px;
  pointer-events: none;
  animation: pwa-ios-bounce 1.1s ease-in-out infinite;
}
.pwa-ios-arrow img {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes pwa-ios-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.75; }
}

@media (min-width: 768px) {
  .pwa-ios-overlay { align-items: center; }
  .pwa-ios-card { margin-bottom: 0; border-radius: 16px; }
  .pwa-ios-arrow { display: none; } /* su iPad landscape freccia meno utile */
}
