/* HENNIO-APP-PAGINA-2 — finestra «scarica l'app» (pannello dal basso). */
.hn-app-download[hidden] { display: none !important; }

.hn-app-sheet-open,
.hn-app-sheet-open body {
  overflow: hidden;
}

.hn-app-download {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--hennio-body, Inter, system-ui, -apple-system, sans-serif);
}

.hn-app-download-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(20, 20, 19, 0.55);
  cursor: pointer;
}

.hn-app-download-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--hennio-paper, #FBF6F1);
  color: var(--hennio-ink, #3B2A26);
  border-radius: 22px 22px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 60px rgba(20, 20, 19, 0.28);
  animation: hn-app-download-up 220ms ease-out both;
}

@keyframes hn-app-download-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.hn-app-download-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hn-app-download-x:hover { background: rgba(59, 42, 38, 0.08); }

.hn-app-download-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 44px 14px 0;
}

.hn-app-download-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex: 0 0 auto;
}

.hn-app-download-brand {
  margin: 0;
  font-family: var(--hennio-title, 'Bodoni Moda', Georgia, serif);
  font-size: 21px;
  line-height: 1;
}

.hn-app-download-free {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(59, 42, 38, 0.68);
}

.hn-app-download[data-ff-platform="ios"] .hn-app-download-free-android,
.hn-app-download[data-ff-platform="android"] .hn-app-download-free-ios,
.hn-app-download[data-ff-platform="ios"] .hn-app-download-store-android,
.hn-app-download[data-ff-platform="android"] .hn-app-download-store-ios {
  display: none;
}

.hn-app-download-panel h2 {
  margin: 0 0 14px;
  font-family: var(--hennio-title, 'Bodoni Moda', Georgia, serif);
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.12;
  font-weight: 500;
  outline: none;
}

.hn-app-download-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hn-app-download-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
}

.hn-app-download-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 42, 38, 0.10);
  font-size: 12px;
  font-weight: 700;
}

.hn-app-download-store {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 10px;
  background: #141413;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
}

.hn-app-download-store + .hn-app-download-store { margin-top: 8px; }
.hn-app-download-store:hover { background: #2b211c; }

.hn-app-download-continue {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: rgba(59, 42, 38, 0.78);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 720px) {
  .hn-app-download { align-items: center; }
  .hn-app-download-panel { border-radius: 22px; width: min(92vw, 460px); }
}
