/* =========================================================
   Specialty pages — linguaggio editoriale Tutela Penale
   ========================================================= */

/* ---------- Hero ---------- */
.sp-hero {
  position: relative;
  min-height: 68vh;
  min-height: 68dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080e28;
  padding: 0;
}

.sp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  transform: scale(1.03);
  filter: contrast(1.06) saturate(0.85) brightness(0.82);
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(8, 14, 40, 0.94) 0%,
    rgba(8, 14, 40, 0.78) 38%,
    rgba(8, 14, 40, 0.35) 100%
  );
}

.sp-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 40%, transparent 15%, rgba(8, 14, 40, 0.55) 100%),
    linear-gradient(to top, rgba(8, 14, 40, 0.75) 0%, transparent 42%);
}

.sp-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(4.5rem, 9vw, 7rem);
}

.sp-hero-content {
  max-width: 38rem;
  text-align: left;
  animation: spRise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes spRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-eyebrow {
  margin: 0 0 1.5rem;
}

.sp-eyebrow .eyebrow-gold {
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-gold, #d4af37);
}

.sp-title-rule {
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-gold, #d4af37), transparent);
  margin-bottom: 1.5rem;
}

.sp-hero-title {
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.01em !important;
  color: #f7f4ec !important;
  margin: 0 0 1.5rem !important;
}

.sp-hero-title em {
  font-style: italic;
  font-weight: 500;
  color: #d4af37;
}

.sp-hero-lead {
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.1rem, 1.2vw, 1.35rem) !important;
  font-weight: 400 !important;
  font-style: italic;
  line-height: 1.65 !important;
  color: rgba(230, 232, 240, 0.88) !important;
  margin: 0 !important;
  max-width: 32rem;
}

.sp-hero-lead strong {
  font-weight: 700;
  font-style: normal;
  color: #f7f4ec;
}

/* ---------- Section chrome ---------- */
.sp-section {
  padding: clamp(5rem, 10vw, 8rem) 0 !important;
}

.sp-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.sp-section-title {
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(2.2rem, 3.6vw, 3rem) !important;
  font-weight: 400 !important;
  color: #f2f4fa !important;
  letter-spacing: 0.015em;
  margin: 0 0 1rem !important;
  line-height: 1.12 !important;
}

.sp-section-sub {
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.05rem, 0.45vw + 1rem, 1.25rem) !important;
  font-style: italic;
  font-weight: 400 !important;
  color: rgba(198, 204, 220, 0.9) !important;
  margin: 0 !important;
}

.sp-section-head::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  margin: 1.5rem auto 0;
  background: rgba(212, 175, 55, 0.55);
}

.sp-kicker {
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.92);
  margin: 0 0 1rem;
}

/* ---------- Intro (aside + body) ---------- */
.sp-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.sp-intro-aside {
  position: sticky;
  top: 7rem;
  padding-top: 0.35rem;
}

.sp-aside-title {
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.9rem, 3vw, 2.65rem) !important;
  font-weight: 400 !important;
  color: #f4f1e8 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.sp-aside-rule {
  width: 44px;
  height: 1px;
  background: rgba(212, 175, 55, 0.55);
  margin-top: 1.5rem;
}

.sp-intro-body {
  color: #c4cad9;
  font-size: clamp(1.05rem, 0.25vw + 1rem, 1.14rem);
  font-weight: 300;
  line-height: 1.85;
  max-width: 40rem;
}

.sp-intro-body p {
  margin: 0 0 1.45rem;
}

.sp-intro-body strong {
  color: #f2f4fa;
  font-weight: 600;
}

.sp-lead {
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.15rem, 0.45vw + 1.05rem, 1.35rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(242, 244, 250, 0.95);
  margin: 0 0 1.5rem;
}

/* Lead sotto i titoli di sezione: centrato come le altre testate */
.sp-section > .container > .sp-lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
}

.sp-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.sp-points li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(232, 234, 242, 0.92);
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
}

.sp-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--primary-gold, #d4af37);
}

/* ---------- Numbered item grid ---------- */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 3.75rem) clamp(2.75rem, 5.5vw, 4.75rem);
  max-width: 980px;
  margin: 0 auto;
}

.sp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1040px;
}

.sp-item {
  border-left: 1px solid rgba(212, 175, 55, 0.32);
  padding: 0.25rem 0.35rem 0.35rem 1.65rem;
  transition: border-color 0.3s ease;
}

.sp-item:hover {
  border-left-color: var(--primary-gold, #d4af37);
}

.sp-item-num {
  display: block;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.7);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.sp-item:hover .sp-item-num {
  color: var(--primary-gold, #d4af37);
}

.sp-item-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.15rem, 0.5vw + 1.05rem, 1.35rem) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: #f4f1e8 !important;
}

.sp-item-ref {
  margin: 0 0 0.75rem;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
}

.sp-item-text {
  margin: 0;
  color: #b8bfcf;
  font-size: clamp(0.94rem, 0.15vw + 0.9rem, 1.02rem);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Callout / quote ---------- */
.sp-callout {
  margin: 2rem 0 0;
  padding: 1.35rem 0 0.15rem 1.35rem;
  border-left: 1px solid rgba(212, 175, 55, 0.4);
  max-width: 40rem;
}

.sp-callout p {
  margin: 0;
  color: rgba(230, 232, 240, 0.92);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.75;
}

.sp-quote {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid rgba(212, 175, 55, 0.45);
}

.sp-quote p {
  margin: 0 0 1rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.28rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(230, 232, 240, 0.92);
}

.sp-quote cite {
  display: block;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.88);
}

/* ---------- Steps ---------- */
.sp-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: grid;
  gap: 0;
}

.sp-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.65rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}

.sp-step:last-child {
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.sp-step-num {
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.75);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.sp-step-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  color: #f4f1e8 !important;
}

.sp-step p {
  margin: 0;
  color: #b8bfcf;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Terms / highlight pair ---------- */
.sp-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.sp-term-value {
  margin: 0 0 0.35rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  color: #f7f4ec;
}

.sp-term-label {
  margin: 0;
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.88);
}

/* ---------- CTA ---------- */
.sp-cta {
  padding: clamp(4.5rem, 9vw, 7rem) 0 !important;
}

.sp-cta-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 2.25rem;
}

.sp-cta-title {
  margin: 0 0 1rem;
  font-family: var(--font-display), 'Libre Baskerville', Georgia, serif !important;
  font-size: clamp(1.75rem, 2.8vw, 2.3rem) !important;
  font-weight: 400 !important;
  font-style: italic;
  color: #f7f4ec !important;
}

.sp-cta-text {
  margin: 0 auto 1.75rem;
  max-width: 30rem;
  color: rgba(198, 204, 220, 0.9);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
}

.sp-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.25rem;
}

.sp-cta-link {
  font-family: var(--font-body), 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.sp-cta-link:hover {
  color: #f4d03f;
  border-bottom-color: #f4d03f;
}

.sp-cta-link--mute {
  color: rgba(184, 189, 208, 0.85);
  border-bottom-color: rgba(184, 189, 208, 0.3);
}

.sp-cta-link--mute:hover {
  color: var(--primary-gold, #d4af37);
  border-bottom-color: rgba(212, 175, 55, 0.5);
}

@media (max-width: 900px) {
  .sp-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sp-intro-grid,
  .sp-grid,
  .sp-grid--3,
  .sp-terms {
    grid-template-columns: 1fr;
  }

  .sp-intro-aside {
    position: static;
  }

  .sp-hero-content,
  .sp-section-head,
  .sp-intro-grid,
  .sp-intro-aside,
  .sp-intro-body,
  .sp-cta-inner {
    text-align: center;
  }

  .sp-title-rule,
  .sp-aside-rule,
  .sp-section-head::after {
    margin-left: auto;
    margin-right: auto;
  }

  .sp-hero-lead,
  .sp-intro-body,
  .sp-lead,
  .sp-cta-text {
    margin-left: auto;
    margin-right: auto;
  }

  .sp-item {
    text-align: center;
    border-left: none;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    padding: 1.5rem 0.25rem 0.35rem;
  }

  .sp-points {
    display: inline-grid;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .sp-callout,
  .sp-quote,
  .sp-steps {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .sp-eyebrow {
    justify-content: center;
  }
}
