/* ── Pagina "Tutti i link" (link-in-bio) ── */
/* Colonna centrata su sfondo notte sfumato. Le variabili di brand e
   l'animazione fadeUp sono definite in base.css, già caricato dal layout. */

.link-page {
  background: linear-gradient(135deg, var(--night) 0%, var(--navy) 60%, #1e4d8c 100%);
  min-height: 100vh;
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
/* Alone rosso decorativo, come .page-hero::before in base.css */
.link-page::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.link-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }

/* ── Header: avatar, nome, ruolo ── */
.link-header { text-align: center; margin-bottom: 2.75rem; }
.link-avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 1.25rem; overflow: hidden; border: 3px solid rgba(255,255,255,0.9); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.link-avatar img { width: 100%; height: 100%; object-fit: cover; }
.link-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.75rem; color: white; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.link-role { font-size: 0.95rem; color: rgba(255,255,255,0.65); }

/* ── Gruppi di link ── */
.link-group { margin-top: 2rem; }
.link-group-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 0.85rem; padding-left: 0.25rem; }
.link-cards { display: flex; flex-direction: column; gap: 0.85rem; }

/* ── Card link ── */
.link-card { display: flex; align-items: center; gap: 1rem; background: var(--white); color: var(--night); border-radius: 16px; padding: 1.05rem 1.25rem; text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.18); transition: transform 0.2s, box-shadow 0.2s; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.link-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.link-card-icon svg { width: 22px; height: 22px; }
.link-card-body { flex: 1; min-width: 0; }
.link-card-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.2rem; }
.link-card-value { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.98rem; color: var(--night); overflow-wrap: anywhere; }
.link-card-hint { font-size: 0.78rem; color: #64748b; }
.link-card-arrow { margin-left: auto; flex-shrink: 0; color: #94a3b8; transition: color 0.2s, transform 0.2s; }
.link-card:hover .link-card-arrow { color: var(--navy); transform: translateX(3px); }

/* ── Chip colorate (stesse tinte usate nel sito) ── */
.link-chip-wa { background: rgba(31,157,85,0.12); color: #1f9d55; }
.link-chip-phone, .link-chip-map { background: rgba(200,16,46,0.09); color: var(--red); }
.link-chip-email { background: #e8f0fe; color: #2b6cb0; }
.link-chip-site { background: rgba(27,58,107,0.1); color: var(--navy); }

/* ── Nota finale ── */
.link-note { text-align: center; margin-top: 2.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ── Animazioni (riusa fadeUp di base.css) ── */
.link-header { animation: fadeUp 0.5s ease both; }
.link-inner > section:nth-of-type(1) { animation: fadeUp 0.5s 0.1s ease both; }
.link-inner > section:nth-of-type(2) { animation: fadeUp 0.5s 0.2s ease both; }
.link-inner > section:nth-of-type(3) { animation: fadeUp 0.5s 0.3s ease both; }
.link-note { animation: fadeUp 0.5s 0.4s ease both; }

/* ── Touch feedback (mobile) ── */
@media (hover: none) {
  .link-card:active { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .link-page { padding: 6rem 1.25rem 4rem; }
  .link-avatar { width: 96px; height: 96px; }
  .link-card { padding: 0.95rem 1rem; }
}
