:root {
  --navy: #0E1B2C;
  --navy-2: #16273D;
  --cream: #FBF6EE;
  --ink: #1B2430;
  --muted: #6B7280;
  --line: #E9E1D4;
  --coral: #FF6B3D;
  --coral-dark: #E8552A;
  --wa: #1FAF5A;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--navy);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(255,107,61,.28), transparent 45%),
    radial-gradient(circle at 100% 30%, rgba(80,140,255,.18), transparent 40%);
  color: var(--ink);
  min-height: 100vh;
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--cream);
  border-radius: 28px;
  padding: 28px 20px 24px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}

/* Hero */
.hero { text-align: center; margin-bottom: 22px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: rgba(255,107,61,.12);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.avatar {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--cream);
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px; font-weight: 700;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--coral);
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.role { margin-top: 6px; font-size: 15px; color: var(--muted); }
.role strong { color: var(--coral-dark); font-weight: 600; }

.tagline {
  margin: 14px auto 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: #3D4652;
}

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn + .btn { margin-top: 10px; }
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-wa { background: var(--navy); color: #fff; }
.btn-wa svg { color: #4ADE80; }
.btn-wa:hover { background: var(--navy-2); }

/* Contact blocks */
.block {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 6px;
}

.block h2 {
  display: flex; align-items: center; gap: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px; font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-triwo { background: var(--coral); }
.dot-dz { background: var(--navy); }

.list { list-style: none; }
.list li + li { border-top: 1px solid var(--line); }
.list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}
.list span { color: var(--muted); font-size: 13px; }
.list b { font-weight: 500; text-align: right; word-break: break-all; }
.list a:hover b { color: var(--coral-dark); }

/* Footer */
.foot {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.foot img { width: 72px; height: 72px; border-radius: 8px; background: #fff; padding: 4px; }
.foot b { color: var(--navy); }

/* ---------- Animazioni (leggere) ---------- */
body {
  background-size: 140% 140%, 140% 140%;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { background-position: 0% 0%, 100% 30%; }
  to   { background-position: 20% 10%, 80% 50%; }
}

.card { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero > *, .card > .btn, .card > .block, .card > .foot {
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.hero > *:nth-child(1) { animation-delay: .10s; }
.hero > *:nth-child(2) { animation-delay: .18s; }
.hero > *:nth-child(3) { animation-delay: .26s; }
.hero > *:nth-child(4) { animation-delay: .32s; }
.hero > *:nth-child(5) { animation-delay: .38s; }
.card > .btn-primary   { animation-delay: .46s; }
.card > .btn-wa        { animation-delay: .52s; }
.card > .block:nth-of-type(1) { animation-delay: .60s; }
.card > .block:nth-of-type(2) { animation-delay: .68s; }
.card > .foot          { animation-delay: .76s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* anello che "respira" attorno all'avatar */
.avatar { position: relative; }
.avatar::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; border: 2px solid var(--coral);
  opacity: 0; animation: ping 2.8s ease-out 1.2s infinite;
}
@keyframes ping {
  0%   { transform: scale(.92); opacity: .7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* riflesso sul pulsante principale */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine 4s ease-in-out 1.5s infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

.list a b { transition: color .2s ease, transform .2s ease; }
.list a:hover b { transform: translateX(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nw { white-space: nowrap; }
