.sentenze-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(24, 164, 158, .28), transparent 34%),
    linear-gradient(118deg, #052a3c 0%, #083e53 62%, #075c64 100%);
  padding: 54px 0 82px;
}

.sentenze-hero::after {
  position: absolute;
  right: -70px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .025);
  content: "";
}


.sentenze-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
  gap: 70px;
  align-items: end;
}

.sentenze-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
  color: #8ed7d4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sentenze-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font: 800 clamp(46px, 6vw, 76px)/.98 "Playfair Display", serif;
}

.sentenze-hero p {
  max-width: 720px;
  margin: 0;
  color: #dcebed;
  font-size: 18px;
}

.hero-archive-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(2, 31, 45, .32);
  backdrop-filter: blur(8px);
}

.hero-archive-stat strong {
  grid-row: span 2;
  font: 800 48px/1 "Playfair Display", serif;
  color: #fff;
}

.hero-archive-stat span {
  font-weight: 800;
  line-height: 1.15;
}

.hero-archive-stat small {
  color: #bbd7dc;
}

.sentenze-main {
  background: #f4f8f9;
  padding: 0 0 78px;
}

.filter-shell {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  padding: 26px;
  border: 1px solid #d7e4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(6, 43, 61, .11);
}

.search-line {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, .62fr)) auto;
  gap: 14px;
  align-items: end;
}

.filter-control label {
  display: block;
  margin-bottom: 7px;
  color: #345162;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.filter-control .input-wrap { position: relative; }
.filter-control .input-wrap i {
  position: absolute;
  left: 15px;
  top: 50%;
  color: #708793;
  transform: translateY(-50%);
}

.filter-control input,
.filter-control select,
.sort-control select {
  width: 100%;
  height: 48px;
  border: 1px solid #cfdde2;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #173145;
  font: 600 14px Inter, sans-serif;
}

.filter-control input { padding: 0 14px 0 43px; }
.filter-control select, .sort-control select { padding: 0 36px 0 13px; }
.filter-control input:focus, .filter-control select:focus, .sort-control select:focus {
  border-color: #0b8b8a;
  box-shadow: 0 0 0 3px rgba(11, 139, 138, .12);
}

.reset-button {
  height: 48px;
  border: 0;
  border-radius: 9px;
  background: #eaf3f4;
  color: #0b5e64;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
}

.reset-button:hover { background: #dceced; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.active-filters:empty { display: none; }
.filter-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #bdd8da;
  border-radius: 999px;
  background: #f2f9f9;
  color: #0b6265;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.filter-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  line-height: 1;
}

.archive-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  padding: 54px 0 22px;
  border-bottom: 1px solid #d6e2e6;
}

.archive-heading h2 {
  margin: 2px 0 0;
  color: #062b3d;
  font: 800 clamp(31px, 4vw, 44px)/1.1 "Playfair Display", serif;
}

.results-meta { color: #5d7080; }
.results-meta strong { color: #062b3d; }

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
}

.archive-toolbar p { margin: 0; color: #5d7080; }
.sort-control {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #486170;
  font-size: 13px;
  font-weight: 800;
}
.sort-control select { width: 175px; height: 42px; }

.sentenze-list { display: grid; gap: 14px; }

.sentence-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 205px;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid #d8e3e7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 43, 61, .045);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.sentence-card:hover {
  border-color: #a9cdcf;
  box-shadow: 0 14px 30px rgba(6, 43, 61, .08);
  transform: translateY(-2px);
}

.sentence-date {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e0e9ec;
  color: #6b7e89;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sentence-date strong {
  color: #073d50;
  font: 800 31px/1 "Playfair Display", serif;
}
.sentence-date span { margin-top: 4px; }

.sentence-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  color: #0b7778;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.sentence-topline .doc-kind {
  border-radius: 4px;
  background: #e8f3f3;
  padding: 4px 7px;
}
.sentence-card h3 {
  margin: 0 0 10px;
  color: #062b3d;
  font: 800 23px/1.22 "Playfair Display", serif;
}
.sentence-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: #526a78;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sentence-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: #6d808a;
  font-size: 12px;
}
.sentence-people i { color: #0b8b8a; }

.download-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.download-button {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: #07394d;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s, transform .2s;
}
.download-button:hover, .download-button:focus {
  background: #0b7778;
  color: #fff;
  transform: translateY(-1px);
}
.file-note { text-align: center; color: #71838d; font-size: 11px; }

.empty-state, .loading-state {
  padding: 64px 20px;
  border: 1px dashed #bfd0d5;
  border-radius: 13px;
  background: #fff;
  color: #667b86;
  text-align: center;
}
.empty-state i { display: block; margin-bottom: 12px; color: #0b8b8a; font-size: 34px; }
.empty-state h3 { margin: 0 0 7px; color: #062b3d; font-family: "Playfair Display", serif; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 30px;
}
.pagination button {
  min-width: 42px;
  height: 42px;
  border: 1px solid #cad9de;
  border-radius: 8px;
  background: #fff;
  color: #264657;
  font-weight: 800;
}
.pagination button:hover:not(:disabled), .pagination button[aria-current="page"] {
  border-color: #0b7778;
  background: #0b7778;
  color: #fff;
}
.pagination button:disabled { cursor: not-allowed; opacity: .45; }

.archive-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-top: 42px;
  padding: 22px 24px;
  border-left: 4px solid #d3a24a;
  border-radius: 8px;
  background: #fff;
  color: #526a78;
}
.archive-note i { color: #b5842e; font-size: 23px; }
.archive-note strong { display: block; margin-bottom: 3px; color: #173145; }

@media (max-width: 1100px) {
  .search-line { grid-template-columns: 1fr 1fr; }
  .reset-button { width: 100%; }
  .sentence-card { grid-template-columns: 86px minmax(0, 1fr); }
  .download-wrap { grid-column: 2; flex-direction: row; align-items: center; }
  .download-button { min-width: 205px; }
}

@media (max-width: 760px) {
  .sentenze-hero { padding: 44px 0 62px; }
  .sentenze-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-archive-stat { max-width: 360px; }
  .filter-shell { padding: 18px; }
  .search-line { grid-template-columns: 1fr; }
  .archive-heading { align-items: flex-start; flex-direction: column; }
  .archive-toolbar { align-items: flex-start; flex-direction: column; }
  .sentence-card { grid-template-columns: 1fr; gap: 15px; padding: 21px; }
  .sentence-date {
    align-self: auto;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #e0e9ec;
    padding-bottom: 13px;
  }
  .sentence-date strong { font-size: 24px; }
  .download-wrap { grid-column: 1; align-items: stretch; flex-direction: column; }
  .download-button { width: 100%; }
}
