/* ====== BASE LIGHT ====== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #fdfdfd;          /* light */
  color: #111;                   /* testo scuro */
  overflow: hidden;              /* niente scroll inutile */
  height: 100%;
  max-height: 100%;
}

.christmas-badge {
  background: #c41e3a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;       /* contenuto più alto */
  justify-content: center;
  padding: 20px 16px;
  padding-top: 32px;             /* regola quanto “alto” */
  overflow: hidden;
}

.container { text-align: center; max-width: 480px; }

/* ====== TITOLI & FOTO ====== */
.propic {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ddd;
  margin-bottom: 12px;

  /* animazione pop-in */
  opacity: 0; transform: scale(.9);
  animation: pop-in .6s ease forwards;
}

.title-wrapper .title {
  font-size: 2rem; margin: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;

  /* animazione pop-in leggermente dopo */
  opacity: 0; transform: scale(.96);
  animation: pop-in .6s ease .15s forwards;
}

.badge-icon { width: 24px; height: 24px; }

.paragraph {
  margin-top: 6px; margin-bottom: 20px; font-size: 1rem; color: #333;

  /* animazione pop-in ancora dopo */
  opacity: 0; transform: scale(.98);
  animation: pop-in .6s ease .30s forwards;
}

/* ====== LINK CARDS ====== */
.link-list { display: flex; flex-direction: column; gap: 12px; }

.link { width: 260px; margin-inline: auto; }

.link {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px 18px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);

  /* rise-in (fade + slide up) con sfasamento */
  opacity: 0; transform: translateY(12px);
  animation: rise-in .5s ease forwards;
}
.link:hover { transform: scale(1.02); background: #f6f6f6; }

.link .icon { display: flex; align-items: center; gap: 10px; }
.link .label { flex: 1; text-align: left; padding-left: 10px; color: #111; }
.link .arrow { font-size: 1.2rem; }

/* Stagger semplice per i primi 4 link (a te ne servono 2) */
.link-list .link:nth-child(1) { animation-delay: .45s; }
.link-list .link:nth-child(2) { animation-delay: .60s; }
.link-list .link:nth-child(3) { animation-delay: .75s; }
.link-list .link:nth-child(4) { animation-delay: .90s; }

/* ====== POPUP ====== */
.popup {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; z-index: 99;
  padding: 20px;
}
.popup-content {
  background: #fff; color: #000;
  padding: 24px; border-radius: 16px; max-width: 340px; width: 100%;
  text-align: center; position: relative; z-index: 2;
  animation: pop-in .25s ease forwards;
}
.popup-icon { margin-bottom: 10px; }
.popup-title { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 4px; }
.popup-sub { font-size: 14px; color: #888; margin-bottom: 20px; line-height: 1.4; }
.popup-btn {
  display: inline-block; padding: 14px 28px; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  text-align: center; background: #0077ff; color: #fff; margin-bottom: 6px;
  max-width: 90%; box-sizing: border-box;
}
.popup-btn:active { background: #005ec2; }
.popup-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 14px; color: #bbb; font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px;
}
.popup-divider::before, .popup-divider::after {
  content: ''; flex: 1; height: 1px; background: #e8e8e8;
}
.popup-steps {
  text-align: left; margin: 0 0 4px; padding: 0; list-style: none;
}
.popup-steps li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #555; margin-bottom: 10px; line-height: 1.45;
}
.popup-steps .num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: #f0f0f0; color: #333; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.popup-steps b { color: #111; }

/* ====== FRECCIA POINTER ====== */
.pointer {
  display: flex; position: fixed; z-index: 100;
  top: 20px; right: 10px;
  animation: bounce-up 1.2s ease-in-out infinite;
}
.pointer-badge {
  display: flex; align-items: center; gap: 4px;
  background: #0077ff; color: #fff;
  padding: 6px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,119,255,.3);
}
.pointer-badge .ptr-arrow {
  font-size: 14px; line-height: 1;
}
/* Quando il popup è aperto: badge bianco */
.pointer.on-popup .pointer-badge {
  background: #fff; color: #111;
  box-shadow: 0 2px 8px rgba(255,255,255,.4);
}

/* ====== ANIMAZIONI KEYFRAMES ====== */
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes rise-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .7; }
}
