/* ═══════════════════════════════════════════════════════════════
   css/press.css — algo-freedom society
   Stili per press.php (pagina archivio Press)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero sezione Press ──────────────────────────────────────── */
.press-hero {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(110deg, rgba(8,22,44,.94) 0%, rgba(10,26,50,.70) 50%, rgba(14,32,58,.26) 100%),
    linear-gradient(135deg, #030b17 0%, #071829 35%, #0f2a46 65%, #1a3f60 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.press-hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .40;
}
.press-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    transparent, transparent 39px,
    rgba(105,168,232,.05) 39px, rgba(105,168,232,.05) 40px
  );
  pointer-events: none;
}
.press-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 300px at 8% 22%, rgba(105,168,232,.12), transparent 60%),
    radial-gradient(500px 260px at 80% 65%, rgba(63,121,183,.10), transparent 58%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.press-hero-inner {
  position: relative;
  z-index: 2;
  padding: 66px 0 60px;
  color: #fff;
}
.press-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(105,168,232,.14);
  border: 1px solid rgba(105,168,232,.26);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(105,168,232,.95);
  margin-bottom: 16px;
  animation: pressFadeSlide .7s ease both;
}
.press-hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pressPulse 2s ease infinite;
}
@keyframes pressPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.45; transform:scale(1.35); }
}
@keyframes pressFadeSlide {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.press-hero-title {
  margin: 0;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -.5px;
  font-weight: 800;
  text-shadow: 0 12px 32px rgba(0,0,0,.38);
  animation: pressFadeSlide .7s .1s ease both;
}
.press-hero-title .thin { font-weight: 100; opacity: .9; }
.press-hero-sub {
  margin: 12px 0 0;
  font-size: 16px;
  color: rgba(255,255,255,.80);
  font-weight: 500;
  max-width: 520px;
  line-height: 1.6;
  animation: pressFadeSlide .7s .2s ease both;
}

/* ─── Filter bar ──────────────────────────────────────────────── */
.filter-bar {
  background: var(--card);
  border-bottom: 2px solid rgba(15,23,42,.09);
  position: sticky;
  top: var(--header-h, 76px);
  z-index: 40;
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
}
.filter-inner {
  display: flex;
  align-items: center;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  position: relative;
  top: 2px;
  text-decoration: none;
}
.filter-btn:hover { color: var(--nav-2); }
.filter-btn.active { color: var(--nav-2); border-bottom-color: var(--accent); }
.filter-count {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(105,168,232,.12);
  border: 1px solid rgba(105,168,232,.2);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 900;
  color: var(--accent-2);
}
.filter-btn.active .filter-count {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

/* ─── Grid pubblicazioni ──────────────────────────────────────── */
.pub-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 14px;
}
.pub-grid.cols-1 { grid-template-columns: 1fr; }
.pub-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pub-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── pub-card ────────────────────────────────────────────────── */
.pub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.pub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pub-card-top {
  padding: 20px 20px 16px;
  background:
    radial-gradient(360px 140px at 15% 10%, rgba(105,168,232,.10), transparent 60%),
    linear-gradient(180deg, #fff, rgba(245,248,253,.97));
  border-bottom: 1px solid rgba(15,23,42,.07);
  flex: 1;
}
.pub-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* ─── Badge tipo (pub-type) e preset colori ───────────────────── */
.pub-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(63,121,183,.10);
  color: var(--accent-2);
  border: 1px solid rgba(63,121,183,.2);
}
/* Color presets pt-c-* */
.pub-type.pt-c-blue   { background: rgba(59,130,246,.12)    !important; color: #1d4ed8 !important; border: 1px solid rgba(59,130,246,.25)    !important; }
.pub-type.pt-c-sky    { background: rgba(14,165,233,.12)    !important; color: #0284c7 !important; border: 1px solid rgba(14,165,233,.25)    !important; }
.pub-type.pt-c-teal   { background: rgba(20,184,166,.12)    !important; color: #0f766e !important; border: 1px solid rgba(20,184,166,.25)    !important; }
.pub-type.pt-c-green  { background: rgba(34,197,94,.12)     !important; color: #15803d !important; border: 1px solid rgba(34,197,94,.25)     !important; }
.pub-type.pt-c-amber  { background: rgba(245,158,11,.12)    !important; color: #b45309 !important; border: 1px solid rgba(245,158,11,.25)    !important; }
.pub-type.pt-c-orange { background: rgba(249,115,22,.12)    !important; color: #c2410c !important; border: 1px solid rgba(249,115,22,.25)    !important; }
.pub-type.pt-c-red    { background: rgba(239,68,68,.12)     !important; color: #b91c1c !important; border: 1px solid rgba(239,68,68,.25)     !important; }
.pub-type.pt-c-rose   { background: rgba(244,63,94,.12)     !important; color: #be123c !important; border: 1px solid rgba(244,63,94,.25)     !important; }
.pub-type.pt-c-purple { background: rgba(168,85,247,.12)    !important; color: #7e22ce !important; border: 1px solid rgba(168,85,247,.25)    !important; }
.pub-type.pt-c-indigo { background: rgba(99,102,241,.12)    !important; color: #4338ca !important; border: 1px solid rgba(99,102,241,.25)    !important; }
.pub-type.pt-c-gray   { background: rgba(100,116,139,.12)   !important; color: #475569 !important; border: 1px solid rgba(100,116,139,.25)   !important; }
/* Badge effect animations pt-fx-* */
@keyframes pub-type-blink {
  0%,100% { opacity:1 } 50% { opacity:.35 }
}
@keyframes pub-type-pulse {
  0%,100% { transform:scale(1) } 50% { transform:scale(1.06) }
}
@keyframes pub-type-shine {
  0% { filter:brightness(1) } 50% { filter:brightness(1.18) } 100% { filter:brightness(1) }
}
.pub-type.pt-fx-blink { animation: pub-type-blink 1.4s ease-in-out infinite; }
.pub-type.pt-fx-pulse { animation: pub-type-pulse 1.8s ease-in-out infinite; }
.pub-type.pt-fx-shine { animation: pub-type-shine 2s   ease-in-out infinite; }

.pub-year     { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.pub-abstract { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pub-authors  { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.pub-card-bottom {
  padding: 12px 20px;
  background: linear-gradient(90deg, #2b4f72, #1f3550);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pub-journal {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  display: flex;
  align-items: center;
  gap: 7px;
}
.pub-journal svg { width: 13px; height: 13px; fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2; flex: 0 0 auto; }
.pub-card-actions { display: flex; gap: 8px; }
.pub-action {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .12s;
  color: #fff;
}
.pub-action:hover { background: rgba(255,255,255,.2); }
.pub-action svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; }

/* ─── Thumb immagine card ─────────────────────────────────────── */
.press-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e8edf2;
  overflow: hidden;
  flex-shrink: 0;
}
.press-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.pub-card:hover .press-card-thumb img { transform: scale(1.05); }
.press-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2a46 0%, #1a3f60 100%);
  color: rgba(255,255,255,.30);
}
.press-card-play-overlay {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.32);
}
.press-card-play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.30);
}
.press-card-play-btn svg {
  width: 18px; height: 18px;
  fill: #1d4ed8;
  margin-left: 3px;
}

/* ─── Paginazione ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nav-2);
  background: var(--card);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all .13s;
  cursor: pointer;
}
.page-btn:hover { background: #f1f5f9; border-color: var(--accent-2); }
.page-btn.active { background: var(--nav-2); border-color: var(--nav-2); color: #fff; }
.page-btn.arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; }

/* ─── Empty state ─────────────────────────────────────────────── */
.press-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.press-empty svg { display: block; margin: 0 auto 16px; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1111px) {
  .hamburger { display: flex; }
  .nav { height: auto; padding: 14px 0; }
  nav[aria-label="Primary"] { display: none; }
  .nav-cta { display: none; }
  .press-hero-title { font-size: 36px; }
  .pub-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pub-grid.cols-3,
  .pub-grid.cols-2 { grid-template-columns: 1fr; gap: 16px; }
}
.pub-authors {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  font-style: italic;
}