.storici-page {
  background: #ffffff;
}

.storici-intro {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.storici-kicker,
.storici-card__status,
.storici-card__category {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.storici-kicker {
  margin-bottom: 1rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.storici-title,
.storici-section__heading h2,
.storici-card h3,
.storici-source h2 {
  color: #0f172a;
}

.storici-title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.storici-lead,
.storici-section__heading p,
.storici-card p,
.storici-source p {
  color: #475569;
  line-height: 1.8;
}

.storici-lead {
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
}

.storici-notice {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 1.5rem;
  background: #fffbeb;
  color: #78350f;
  box-shadow: 0 20px 44px rgba(120, 53, 15, 0.08);
}

.storici-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #fef3c7;
  color: #b45309;
  font-size: 1.25rem;
}

.storici-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.storici-notice p {
  margin: 0;
  color: #92400e;
  line-height: 1.65;
}

.storici-section {
  background: #f8fafc;
}

.storici-section__heading {
  max-width: 56rem;
  margin-bottom: 2rem;
}

.storici-section__heading h2,
.storici-source h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.storici-card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.07);
}

.storici-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.storici-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  font-size: 1.2rem;
}

.storici-card__status {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.storici-card__category {
  margin-bottom: 0.7rem;
  color: #1d4ed8;
}

.storici-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.storici-card p {
  margin-bottom: 0.9rem;
}

.storici-card__use {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.storici-card__actions a {
  color: #1d4ed8;
  font-weight: 700;
}

.storici-source {
  background: #ffffff;
}

.storici-source__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
}

@media (min-width: 992px) {
  .storici-source__links {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .storici-card,
  .storici-notice {
    padding: 1.3rem;
    border-radius: 1.3rem;
  }

  .storici-card__topline {
    align-items: flex-start;
  }

  .storici-source__links .btn {
    width: 100%;
  }
}

html[data-theme="dark"] .page-servizi-storici .storici-page,
html[data-theme="dark"] .page-servizi-storici .storici-source {
  background: #08111f;
}

html[data-theme="dark"] .page-servizi-storici .storici-intro,
html[data-theme="dark"] .page-servizi-storici .storici-section {
  background: linear-gradient(180deg, #0b1423 0%, #08111f 100%);
}

html[data-theme="dark"] .page-servizi-storici .storici-card {
  border-color: var(--public-border);
  background: var(--public-surface);
  box-shadow: var(--public-shadow);
}

html[data-theme="dark"] .page-servizi-storici .storici-title,
html[data-theme="dark"] .page-servizi-storici .storici-section__heading h2,
html[data-theme="dark"] .page-servizi-storici .storici-card h3,
html[data-theme="dark"] .page-servizi-storici .storici-source h2 {
  color: var(--public-heading);
}

html[data-theme="dark"] .page-servizi-storici .storici-lead,
html[data-theme="dark"] .page-servizi-storici .storici-section__heading p,
html[data-theme="dark"] .page-servizi-storici .storici-card p,
html[data-theme="dark"] .page-servizi-storici .storici-source p {
  color: var(--public-text);
}

html[data-theme="dark"] .page-servizi-storici .storici-notice {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(120, 53, 15, 0.24);
}

html[data-theme="dark"] .page-servizi-storici .storici-notice p,
html[data-theme="dark"] .page-servizi-storici .storici-notice strong {
  color: #fde68a;
}
