/* ── case-history.css — Mattiussi-inspired ───────────── */

.ch-hero { padding-bottom: 0; }
.ch-filters {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 0 0;
  flex-wrap: wrap;
}
.ch-filter {
  background: transparent;
  border: 1px solid var(--grey);
  padding: 0.5rem 1.125rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.6875rem, 0.65rem + 0.1vw, 0.75rem);
  color: var(--text-3);
  cursor: pointer;
  transition: all .3s ease-out .05s;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ch-filter:hover { border-color: var(--green-d); color: var(--green-d); }
.ch-filter.active {
  background: var(--green-d);
  border-color: var(--green-d);
  color: var(--white);
}

/* FEATURED */
.ch-featured { padding: clamp(2.5rem, 4vw, 4rem) var(--gutter); }
.ch-featured-alt { background: var(--off-white); }
.ch-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--grey);
}
.ch-featured-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.6875rem, 0.65rem + 0.1vw, 0.75rem);
  font-weight: 700;
  color: var(--green-d);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-dot {
  width: 0.5rem; height: 0.5rem;
  background: var(--green-d);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.ch-featured-meta { font-size: 0.75rem; color: var(--text-3); }

.ch-featured-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: 2.5rem;
}
.ch-case-img {
  width: 100%;
  height: clamp(220px, 25vw, 400px);
  object-fit: cover;
  display: block;
}
.ch-client {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ch-client-logo {
  background: var(--off-white);
  border: 1px solid var(--grey);
  padding: 0.5rem;
  flex-shrink: 0;
  width: clamp(52px, 6vw, 72px);
  height: clamp(52px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ch-client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ch-client-type {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.125rem;
}
.ch-client-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.875rem, 0.8rem + 0.15vw, 1rem);
  color: var(--black-l);
}
.ch-client-sub { font-size: 0.6875rem; color: var(--text-3); margin-top: 0.125rem; }
.ch-case-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  color: var(--black-l);
  margin-bottom: 0.75rem;
}
.ch-case-desc {
  font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem);
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.125rem;
}
.ch-tags { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ch-tag {
  background: var(--off-white);
  border: 1px solid var(--grey);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  color: var(--text-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ch-challenges {
  background: var(--off-white);
  border: 1px solid var(--grey);
  padding: 1rem 1.125rem;
  margin-bottom: 1.25rem;
}
.ch-ch-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.625rem;
}
.ch-ch-item {
  font-size: 0.75rem;
  color: var(--text-2);
  padding: 0.3125rem 0;
  line-height: 1.55;
}
.ch-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.ch-kpi {
  background: var(--off-white);
  border: 1px solid var(--grey);
  border-right: none;
  padding: clamp(0.75rem, 1.5vw, 1rem) 0.625rem;
  text-align: center;
}
.ch-kpi:last-child { border-right: 1px solid var(--grey); }
.ch-kpi-n {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.3vw, 1.375rem);
  color: var(--green-d);
  line-height: 1;
}
.ch-kpi-l {
  font-size: 0.625rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 0.25rem;
}

/* TESTIMONIANZE */
.ch-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--grey);
}
.ch-quote {
  background: var(--off-white);
  border-left: 2px solid var(--green-d);
  padding: 1.25rem 1.375rem;
}
.ch-quote:first-child { border-right: 1px solid var(--grey); }
.ch-quote p {
  font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem);
  color: var(--text-2);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 0.625rem;
}
.ch-quote footer {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green-d);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-style: normal;
}

/* COMING SOON */
.ch-coming {
  padding: clamp(3rem, 5vw, 5rem) var(--gutter);
  background: var(--off-white);
}
.ch-coming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.ch-coming-card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-right: none;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  opacity: .6;
}
.ch-coming-card:last-child { border-right: 1px solid var(--grey); }
.ch-cta-card {
  opacity: 1;
  border-color: var(--green-l);
  background: var(--off-white);
}
.ch-coming-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--off-white);
  border: 1px solid var(--grey);
  padding: 0.25rem 0.625rem;
  margin-bottom: 0.75rem;
}
.ch-cta-badge { color: var(--green-d); background: transparent; border-color: var(--green-l); }
.ch-coming-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.875rem, 0.8rem + 0.15vw, 1rem);
  color: var(--black-l);
  margin-bottom: 0.25rem;
}
.ch-coming-sector {
  font-size: 0.6875rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 0.75rem;
}
.ch-coming-desc { font-size: clamp(0.8125rem, 0.75rem + 0.1vw, 0.875rem); color: var(--text-2); line-height: 1.65; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .ch-featured-body { grid-template-columns: 1fr; }
  .ch-testimonials { grid-template-columns: 1fr; }
  .ch-quote:first-child { border-right: none; }
  .ch-coming-grid { grid-template-columns: 1fr; }
  .ch-coming-card { border-right: 1px solid var(--grey) !important; border-bottom: none; }
  .ch-coming-card:last-child { border-bottom: 1px solid var(--grey); }
  .ch-results { grid-template-columns: repeat(2, 1fr); }
  .ch-kpi:nth-child(2) { border-right: 1px solid var(--grey); }
}
@media (max-width: 600px) {
  .ch-featured-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .ch-case-img { height: 200px; }
}
