/* ════════════════════════════════════════════════
   css/our-activity.css — algo-freedom society
   Stili specifici di our_activity.php — Le nostre attività
   ════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────── */
.activity-hero {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(105deg, rgba(8,22,44,.92) 0%, rgba(10,26,50,.60) 50%, rgba(14,32,58,.18) 100%),
    linear-gradient(135deg, #051426 0%, #0a2845 35%, #1a3a5c 65%, #2d5a7b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.activity-hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .40;
}
.activity-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 360px at 10% 20%, rgba(255,255,255,.07), transparent 58%),
    radial-gradient(600px 300px at 75% 30%, rgba(105,168,232,.11), transparent 60%);
  pointer-events: none; mix-blend-mode: screen;
}
.activity-hero-inner {
  position: relative; z-index: 2;
  padding: 60px 0 56px; color: #fff;
}
.activity-hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(105,168,232,.18); border: 1px solid rgba(105,168,232,.32);
  border-radius: 999px; padding: 6px 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: rgba(105,168,232,.95);
  margin-bottom: 16px;
}
.activity-hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: adot 2s ease infinite;
}
@keyframes adot { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(1.3);} }
.activity-hero-title {
  margin: 0 0 14px; font-size: 52px; line-height: 1.06;
  letter-spacing: -.5px; font-weight: 800;
  text-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.activity-hero-title .thin { font-weight: 100; opacity: .9; }
.activity-hero-sub {
  margin: 0; font-size: 16px; color: rgba(255,255,255,.78);
  line-height: 1.65; max-width: 600px;
}

/* ─── Intro band (ispirata a .values-band di about.php) ── */
.activity-intro-band {
  background: linear-gradient(90deg, var(--nav-1), var(--nav-3));
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0 8px;
  color: #fff;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.10);
}
.activity-intro-left { flex: 1; min-width: 260px; }
.activity-intro-left h2 { margin: 0 0 10px; font-size: 19px; font-weight: 900; }
.activity-intro-left p { margin: 0; font-size: 14px; color: rgba(255,255,255,.80); line-height: 1.65; }
.activity-intro-stats {
  display: flex; gap: 20px; flex-wrap: wrap;
  flex: 0 0 auto;
  align-self: center;
}
.activity-intro-stat {
  text-align: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 14px 20px;
  min-width: 80px;
}
.activity-intro-stat .stat-n { font-size: 28px; font-weight: 900; color: var(--accent); line-height: 1; }
.activity-intro-stat .stat-l { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.60); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* ─── Jump nav (indice rapido) ─────────────────────────── */
.activity-jumpnav {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 20px 0 8px;
}
.activity-jumplink {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.activity-jumplink:hover { border-color: rgba(63,121,183,.30); color: var(--accent-2); background: rgba(63,121,183,.04); }
.activity-jumplink svg { width: 13px; height: 13px; flex: 0 0 auto; }
.ajl-count {
  background: rgba(63,121,183,.12); border-radius: 999px;
  padding: 1px 7px; font-size: 11px; font-weight: 800; color: var(--accent-2);
}

/* ─── Color variants for group icons ─────────────────── */
.activity-group-ico--blue   { background: linear-gradient(135deg, #1f3550, #2f5f86); }
.activity-group-ico--amber  { background: linear-gradient(135deg, #7c4d0f, #b45309); }
.activity-group-ico--green  { background: linear-gradient(135deg, #14532d, #166534); }
.activity-group-ico--purple { background: linear-gradient(135deg, #4c1d95, #6d28d9); }
.activity-group-ico--teal   { background: linear-gradient(135deg, #134e4a, #0f766e); }

/* ─── Section wrapper ─────────────────────────────────── */
.activities-section { padding: 38px 0 10px; }

/* ─── Activity link groups ─────────────────────────────── */
.activity-group {
  margin-bottom: 36px;
}
.activity-group-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid rgba(15,23,42,.07);
}
.activity-group-ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--nav-1), var(--nav-3));
  flex: 0 0 auto;
}
.activity-group-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.activity-group-title {
  flex: 1;
  font-size: 17px; font-weight: 900; color: #1b2a44; margin: 0;
}
.activity-group-sub {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  margin: 0;
}
.activity-count {
  background: rgba(63,121,183,.10); border: 1px solid rgba(63,121,183,.18);
  border-radius: 999px; padding: 3px 12px;
  font-size: 11.5px; font-weight: 700; color: var(--accent-2);
}

/* ─── Link items ───────────────────────────────────────── */
.activity-links-list {
  display: flex; flex-direction: column; gap: 10px;
}
.activity-link-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
  text-decoration: none; color: inherit;
}
.activity-link-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(63,121,183,.22);
}
.ali-type {
  flex: 0 0 auto; margin-top: 2px;
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(105,168,232,.10); border: 1px solid rgba(105,168,232,.18);
}
.ali-type svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-2); stroke-width: 2.1; }
.ali-body { flex: 1; min-width: 0; }
.ali-title {
  font-size: 14px; font-weight: 800; color: #1b2a44;
  margin: 0 0 3px; line-height: 1.35;
}
.ali-meta {
  font-size: 12px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ali-tag {
  display: inline-block;
  background: rgba(63,121,183,.08); border-radius: 999px;
  padding: 2px 9px; font-size: 11px; font-weight: 700; color: var(--accent-2);
}
.ali-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.ali-status.published { color: #2e7d32; }
.ali-status.forthcoming { color: #b45309; }
.ali-status.in-progress { color: var(--accent-2); }
.ali-arrow {
  flex: 0 0 auto; align-self: center;
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(63,121,183,.08);
  color: var(--accent-2); font-size: 16px; font-weight: 700;
  transition: background .12s ease;
}
.activity-link-item:hover .ali-arrow { background: rgba(63,121,183,.18); }

/* ─── All publications link ───────────────────────────── */
.all-pubs-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  background: var(--card); border: 1px solid rgba(63,121,183,.25);
  border-radius: var(--radius); font-size: 14px; font-weight: 700;
  color: var(--accent-2); box-shadow: var(--shadow);
  transition: all .13s ease;
}
.all-pubs-link:hover { background: rgba(63,121,183,.06); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.all-pubs-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 920px) {
  .activity-hero-inner { padding: 50px 0 44px; }
  .activity-intro-band { flex-direction: column; gap: 20px; }
  .activity-intro-stats { width: 100%; justify-content: flex-start; }
  .activity-hero-title { font-size: 42px; }
}
@media (max-width: 640px) {
  .activity-hero-title { font-size: 34px; }
  .ali-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}
