.documenti-page {
  background: #ffffff;
}

.documenti-section,
.documenti-section--intro {
  position: relative;
}

.documenti-section--soft {
  background: #f8fafc;
}

.documenti-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.documenti-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.documenti-lead {
  max-width: 64rem;
  margin: 1rem auto 0;
  color: #475569;
  font-size: 1.03rem;
  line-height: 1.85;
}

.documenti-section__heading {
  max-width: 54rem;
  margin: 0 0 2rem;
}

.documenti-section__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.85rem, 2.5vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.documenti-section__lead {
  margin: 0.95rem 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
}

.document-card {
  padding: 1.7rem;
}

.documenti-empty {
  padding: 1.7rem;
  text-align: center;
}

.document-card--product {
  display: flex;
  flex-direction: column;
}

.document-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.document-card__type {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  background: rgba(29, 78, 216, 0.08);
  color: #1841bf;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-card__title {
  margin: 0 0 0.8rem;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.2;
}

.document-card__copy {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.document-card__featured-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.document-card__featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.document-card__list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.document-card__entry {
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.document-card__entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.document-card__entry h4 {
  margin: 0 0 0.8rem;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.45;
}

.document-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.3rem;
}

.document-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  background: rgba(29, 78, 216, 0.08);
  color: #1841bf;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.document-card__link:hover,
.document-card__link:focus {
  background: linear-gradient(135deg, #1738b4 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}

.document-card__link--secondary {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

.document-card__link--secondary:hover,
.document-card__link--secondary:focus {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

@media (max-width: 991px) {
  .document-card__featured-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .document-card {
    padding: 1.35rem;
  }

  .documenti-section__title {
    font-size: 1.85rem;
  }

  .document-card__actions,
  .document-card__featured-actions {
    width: 100%;
  }

  .document-card__link,
  .document-card__featured-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
