/* ====== 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%;
}

.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,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; z-index: 99;
}
.popup-content {
  background: #fff; color: #000;
  padding: 24px; border-radius: 12px; max-width: 320px; text-align: center;

  /* piccolo pop-in quando appare (opzionale, carino) */
  animation: pop-in .25s ease forwards;
}
.button-wrapper { display: flex; gap: 10px; margin-top: 16px; justify-content: center; }
.button {
  padding: 10px 16px; border: none; background: #0077ff; color: #fff;
  border-radius: 8px; cursor: pointer; transition: background .3s ease;
}
.button:hover { background: #005ec2; }
.button.light { background: #ddd; color: #000; }
.button.light:hover { background: #ccc; }

/* ====== 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); }
}
