/* Layout archivio Attualità ispirato alla griglia BDS: titolo laterale e schede compatte. */

main:has(> .page-hero + .section .post-grid) > .page-hero {
  padding: 26px 3% 18px;
}

main:has(> .page-hero + .section .post-grid) > .page-hero .breadcrumbs,
main:has(> .page-hero + .section .post-grid) > .page-hero p {
  display: none;
}

main:has(> .page-hero + .section .post-grid) > .page-hero h1 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.4px;
}

main:has(> .page-hero + .section .post-grid) > .section {
  padding-top: 10px;
}

main:has(> .page-hero + .section .post-grid) .post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  align-items: start;
}

main:has(> .page-hero + .section .post-grid) .post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
  break-inside: auto;
}

main:has(> .page-hero + .section .post-grid) .post-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

main:has(> .page-hero + .section .post-grid) .post-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 14px 0;
}

main:has(> .page-hero + .section .post-grid) .post-card h3 {
  order: 1;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.22;
}

main:has(> .page-hero + .section .post-grid) .post-card p {
  order: 2;
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #222;
  font-size: 12px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

main:has(> .page-hero + .section .post-grid) .read-more {
  order: 3;
  margin: auto 0 14px;
  font-size: 11px;
  line-height: 1.2;
}

main:has(> .page-hero + .section .post-grid) .post-meta {
  order: 4;
  margin: 0 -14px;
  padding: 9px 14px;
  border-top: 1px solid #e8e8e8;
  color: var(--bds-blue);
  font-size: 10px;
  line-height: 1.2;
}

@media (min-width: 1181px) {
  main:has(> .page-hero + .section .post-grid) {
    display: grid;
    grid-template-columns: minmax(210px, 24%) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
    width: min(calc(100% - 4%), 1500px);
    margin-inline: auto;
    padding: 12px 0 60px;
  }

  main:has(> .page-hero + .section .post-grid) > .page-hero {
    grid-column: 1;
    padding: 0;
  }

  main:has(> .page-hero + .section .post-grid) > .page-hero .wrap,
  main:has(> .page-hero + .section .post-grid) > .section > .wrap {
    width: 100%;
  }

  main:has(> .page-hero + .section .post-grid) > .section {
    grid-column: 2;
    padding: 0;
  }
}

@media (max-width: 900px) {
  main:has(> .page-hero + .section .post-grid) .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main:has(> .page-hero + .section .post-grid) > .page-hero h1 {
    font-size: 30px;
  }

  main:has(> .page-hero + .section .post-grid) .post-grid {
    grid-template-columns: 1fr;
  }

  main:has(> .page-hero + .section .post-grid) .post-image img {
    height: 190px;
  }
}
