/* ═══════════════════════════════════════════════════════════════
   ADLP NEWS SYSTEM - category-archive.css
   Trasposizione fedele mockup categoria v2. Scoped su body.adlp-category-archive.
   (Header/footer reali del sito; stub e reset rimossi, gia' in base.css)
   ═══════════════════════════════════════════════════════════════ */
/* STUB */

/* ═══════════════════════════════════════════════
   HERO CATEGORIA — charcoal 360px, icona + titolo
   ═══════════════════════════════════════════════ */
body.adlp-category-archive .category-hero {
  background: var(--charcoal);
  color: var(--cream);
  height: 360px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--red);
  display: flex;
  align-items: center;
}
body.adlp-category-archive .category-hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background-image: radial-gradient(circle at 70% 40%, rgba(179,43,12,0.2), transparent 60%);
}
body.adlp-category-archive .category-hero-content {
  max-width: var(--layout-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--layout-padding);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: center;
}
body.adlp-category-archive .category-hero-icon {
  width: 100px;
  height: 100px;
  background: var(--red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.adlp-category-archive .category-hero-icon svg { width: 52px; height: 52px; fill: white; }

body.adlp-category-archive .category-hero-breadcrumb {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,230,211,0.6);
  margin-bottom: 14px;
}
body.adlp-category-archive .category-hero-breadcrumb a { color: rgba(240,230,211,0.85); }
body.adlp-category-archive .category-hero-breadcrumb a:hover { color: white; }
body.adlp-category-archive .category-hero-breadcrumb .sep { opacity: 0.4; margin: 0 8px; }

body.adlp-category-archive .category-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 12px;
}
body.adlp-category-archive .category-hero-title em { font-style: italic; color: var(--red-accent); }

body.adlp-category-archive .category-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: rgba(240,230,211,0.75);
  font-weight: 500;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
body.adlp-category-archive .category-hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(240,230,211,0.4); }
body.adlp-category-archive .category-hero-meta strong { color: var(--red-accent); font-weight: 700; }

body.adlp-category-archive .category-hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(240,230,211,0.8);
  max-width: 720px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   LAYOUT 2-COL — card impilate + sidebar
   ═══════════════════════════════════════════════ */
body.adlp-category-archive .category-layout {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 56px var(--layout-padding);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

body.adlp-category-archive .category-main { min-width: 0; }

body.adlp-category-archive .category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
body.adlp-category-archive .category-header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
body.adlp-category-archive .category-header-sort {
  font-size: 12px;
  color: var(--text-muted);
}
body.adlp-category-archive .category-header-sort select {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 6px;
}

/* CARD IMPILATE GRANDI */
body.adlp-category-archive .articles-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.adlp-category-archive .cat-article-card {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 28px;
  background: white;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.25s ease;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
body.adlp-category-archive .cat-article-card:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

body.adlp-category-archive .cat-article-img {
  aspect-ratio: 16/10;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
body.adlp-category-archive .cat-article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

body.adlp-category-archive .cat-article-body { min-width: 0; }

body.adlp-category-archive .cat-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
body.adlp-category-archive .cat-article-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

body.adlp-category-archive .cat-article-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
body.adlp-category-archive .cat-article-date { font-size: 12px; color: var(--text-muted); font-weight: 500; }

body.adlp-category-archive .cat-article-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.adlp-category-archive .cat-article-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.adlp-category-archive .cat-article-link {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: none;
}
body.adlp-category-archive .cat-article-link::after { content: " ›"; }

body.adlp-category-archive .cat-article-arrow {
  width: 44px;
  height: 44px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
body.adlp-category-archive .cat-article-card:hover .cat-article-arrow { background: var(--red); color: white; transform: translateX(4px); }

/* PAGINATION */
body.adlp-category-archive .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
body.adlp-category-archive .pagination a, body.adlp-category-archive .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 0 10px;
}
body.adlp-category-archive .pagination a:hover { background: var(--red); color: white; border-color: var(--red); }
body.adlp-category-archive .pagination .current { background: var(--red); color: white; border-color: var(--red); }
body.adlp-category-archive .pagination .dots { background: transparent; border: none; }

/* ═══════════════════════════════════════════════
   SIDEBAR — 5 widget, Newsletter/Tools/Manifesto identici a landing
   ═══════════════════════════════════════════════ */
body.adlp-category-archive .category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.adlp-category-archive .widget {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
body.adlp-category-archive .widget-subtitle {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
body.adlp-category-archive .widget-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
}

/* WIDGET 1 — CTA categoria-specifica */
body.adlp-category-archive .widget-cta-big {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
body.adlp-category-archive .widget-cta-big::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
body.adlp-category-archive .widget-cta-big .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-accent);
  margin-bottom: 12px;
}
body.adlp-category-archive .widget-cta-big .eyebrow svg { width: 13px; height: 13px; fill: var(--red-accent); }
body.adlp-category-archive .widget-cta-big .title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
body.adlp-category-archive .widget-cta-big .desc {
  font-size: 13px;
  color: rgba(240,230,211,0.8);
  line-height: 1.55;
  margin-bottom: 20px;
}
body.adlp-category-archive .widget-cta-big .buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.adlp-category-archive .widget-cta-big .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}
body.adlp-category-archive .widget-cta-big .btn-primary:hover { background: var(--red-hover); color: white; }
body.adlp-category-archive .widget-cta-big .btn-primary::after { content: "→"; }
body.adlp-category-archive .widget-cta-big .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid rgba(240,230,211,0.3);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}
body.adlp-category-archive .widget-cta-big .btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(240,230,211,0.08);
  color: var(--cream);
}
body.adlp-category-archive .widget-cta-big .meta {
  font-size: 11px;
  color: rgba(240,230,211,0.55);
  margin-top: 14px;
  text-align: center;
}

/* WIDGET 2 — Newsletter charcoal IDENTICO LANDING */
body.adlp-category-archive .widget-newsletter {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}
body.adlp-category-archive .widget-newsletter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
body.adlp-category-archive .widget-newsletter .widget-subtitle { color: rgba(240,230,211,0.6); }
body.adlp-category-archive .widget-newsletter .widget-title { color: var(--cream); }
body.adlp-category-archive .widget-newsletter .desc { font-size: 12.5px; color: rgba(240,230,211,0.75); margin-bottom: 14px; line-height: 1.5; }
body.adlp-category-archive .widget-newsletter input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(240,230,211,0.08);
  border: 1px solid rgba(240,230,211,0.2);
  color: var(--cream);
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
}
body.adlp-category-archive .widget-newsletter input::placeholder { color: rgba(240,230,211,0.4); }
body.adlp-category-archive .widget-newsletter button {
  width: 100%;
  padding: 11px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
body.adlp-category-archive .widget-newsletter button:hover { background: var(--red-hover); }

/* WIDGET 3 — Tools IDENTICO LANDING */
body.adlp-category-archive .widget-tools .tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
}
body.adlp-category-archive .widget-tools .tool-item:last-child { border-bottom: none; }
body.adlp-category-archive .widget-tools .tool-icon {
  width: 24px; height: 24px;
  background: var(--cream-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* WIDGET 4 — Altre categorie in PILL orizzontali compatte */
body.adlp-category-archive .widget-cats-pill .cats-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.adlp-category-archive .widget-cats-pill .cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  transition: all 0.2s ease;
  border-bottom: none;
}
body.adlp-category-archive .widget-cats-pill .cat-pill:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  border-bottom: none;
}
body.adlp-category-archive .widget-cats-pill .cat-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
  cursor: default;
}
body.adlp-category-archive .widget-cats-pill .cat-pill-count {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: white;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
}
body.adlp-category-archive .widget-cats-pill .cat-pill:hover .cat-pill-count, body.adlp-category-archive .widget-cats-pill .cat-pill.active .cat-pill-count { color: var(--red); background: white; }

/* WIDGET 5 — Manifesto charcoal IDENTICO LANDING */
body.adlp-category-archive .widget-manifesto {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}
body.adlp-category-archive .widget-manifesto::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
body.adlp-category-archive .widget-manifesto .widget-subtitle { color: rgba(240,230,211,0.55); }
body.adlp-category-archive .widget-manifesto .widget-title { color: var(--cream); }
body.adlp-category-archive .widget-manifesto .quote {
  font-family: 'Georgia', serif;
  font-size: 17px;
  line-height: 1.4;
  color: var(--cream);
  font-style: italic;
  margin: 0 0 14px;
}
body.adlp-category-archive .widget-manifesto .sign {
  font-size: 12px;
  color: rgba(240,230,211,0.65);
  line-height: 1.45;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 1100px)  {
  body.adlp-category-archive .category-layout { grid-template-columns: 1fr; gap: 40px; }
  body.adlp-category-archive .cat-article-card { grid-template-columns: 220px 1fr; }
  body.adlp-category-archive .cat-article-arrow { display: none; }
}
@media (max-width: 720px)  {
  body.adlp-category-archive .category-hero { height: auto; padding: 40px 0; }
  body.adlp-category-archive .category-hero-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  body.adlp-category-archive .category-hero-icon { margin: 0 auto; }
  body.adlp-category-archive .category-hero-title { font-size: 36px; }
  body.adlp-category-archive .cat-article-card { grid-template-columns: 1fr; }
  body.adlp-category-archive .cat-article-img { aspect-ratio: 16/9; }
  body.adlp-category-archive .category-layout { padding: 40px 20px; }
}


/* ── Widget Tag Cloud (pesata per frequenza) ───────────────────── */
body.adlp-category-archive .widget-tags-cloud .tags-cloud {
  display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: baseline;
}
body.adlp-category-archive .widget-tags-cloud .tag-cloud-item {
  color: var(--text-soft); line-height: 1.3; font-weight: 500;
  border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease;
}
body.adlp-category-archive .widget-tags-cloud .tag-cloud-item:hover {
  color: var(--red); border-color: var(--red);
}
body.adlp-category-archive .widget-tags-cloud .tag-cloud-item.is-current {
  color: var(--red); font-weight: 700;
}

/* ── Fallback card senza featured image ────────────────────────── */
body.adlp-category-archive .cat-article-img.is-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream-light), var(--cream));
}
body.adlp-category-archive .cat-article-img.is-fallback .cat-icon-box,
body.adlp-category-archive .cat-article-img.is-fallback .cat-icon-box.lg {
  width: 64px; height: 64px; border-radius: 14px; background: var(--red);
}
body.adlp-category-archive .cat-article-img.is-fallback .cat-icon-box svg {
  width: 32px; height: 32px; fill: #fff;
}

/* ── Hero con immagine dall'ultimo articolo (overlay scuro, icona davanti) ── */
body.adlp-category-archive .category-hero.has-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(17,17,17,0.93) 0%, rgba(17,17,17,0.80) 50%, rgba(17,17,17,0.58) 100%),
    var(--hero-image, none);
  background-size: cover, cover;
  background-position: center, center;
}
