/* ====== Design Tokens ====== */
:root{
  --bg: #0b0d10;
  --panel: #111419;
  --ink: #e8eef6;
  --muted: #a8b3c5;
  --brand: #6aa3ff;
  --brand-strong: #3b82f6;
  --ring: 0 0 0 3px rgba(106,163,255,.35);
  --radius: 1.25rem;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f7f9fc;
    --panel: #ffffff;
    --ink: #0b1220;
    --muted: #516079;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
  }
}

/* ====== Base ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.15), transparent 60%),
              radial-gradient(900px 500px at 100% 10%, rgba(59,130,246,.12), transparent 60%),
              var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ====== Layout ====== */
.container{
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* non space-between */
  gap: 1rem;
  flex-wrap: wrap; /* se lo schermo è troppo stretto, la foto andrà sotto */
}

.title {
  flex: 1 1 auto; /* consenti al titolo di restringersi */
  margin: 0;
}

.profile-pic {
  flex: 0 0 auto;
  width: 100px;   /* dimensione fissa */
  height: 100px;
  object-fit: cover;
}


.qualifiche {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .qualifiche {
    columns: 2;
    column-gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .qualifiche {
    columns: 2;
  }
}


.title{
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle{
  margin: 0;
  font-size: 0.45rem;
  color: var(--muted);
  max-width: 100ch;
}

/* ====== Cards ====== */
.links{
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 18px;
  margin-top: 28px;
}

@media (min-width: 640px){
  .links{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 960px){
  .links{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.card{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 18px;
  background: var(--panel);
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  border-color: rgba(106,163,255,.35);
}

.card:focus-visible{
  outline: none;
  box-shadow: var(--shadow), var(--ring);
  border-color: var(--brand);
}

.icon{
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: white;
}

.card-body{ display: grid; gap: 4px; }
.card-title{
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-text{
  margin: 0;
  color: var(--muted);
  font-size: .975rem;
}

/* ====== Footer ====== */
.footer{
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
  margin-top: 36px;
}

/* ====== Reduced Motion ====== */
@media (prefers-reduced-motion: reduce){
  .card{ transition: none; }
  .card:hover{ transform: none; }
}
