/* Stile condiviso dalle otto pagine di approfondimento. */
.service-detail {
  background: var(--cream);
}

.service-detail .skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--navy);
  transform: translateY(-160%);
}

.service-detail .skip-link:focus {
  transform: translateY(0);
}

.service-detail a:focus-visible,
.service-detail button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.detail-hero,
.detail-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f7f5f0;
  background:
    radial-gradient(ellipse at 96% 10%, rgba(201, 168, 106, 0.11), transparent 52%),
    linear-gradient(135deg, #142e34, #10252b 60%, #0d2127);
}

.detail-hero {
  padding: 132px 0 76px;
}

.detail-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 730px;
  height: 730px;
  top: -345px;
  right: -330px;
  border: 1px solid rgba(201, 168, 106, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(201, 168, 106, 0.025);
  pointer-events: none;
}

.service-detail .breadcrumbs {
  display: flex;
  position: static;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 42px;
  padding: 0;
  background: none;
  color: #b9c8c9;
  font-size: 12px;
  line-height: 1.6;
}

.service-detail .breadcrumbs a {
  color: #b9c8c9;
  font-size: inherit;
  text-decoration: none;
}

.service-detail .breadcrumbs a:hover {
  color: #e2c48d;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.service-detail .eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 22px;
}

.service-detail .eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: currentColor;
}

.detail-hero .eyebrow,
.detail-cta .eyebrow {
  color: #d6b77f;
}

.detail-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 3.8vw, 54px);
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.detail-tagline {
  margin: 0 0 18px;
  color: #e2c48d;
  font-size: 18px;
  line-height: 1.6;
}

.detail-lead {
  max-width: 56ch;
  margin: 0;
  color: #c6d1d0;
  font-size: 15px;
  line-height: 1.85;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 25px;
  margin-top: 29px;
}

.detail-actions .text-link {
  padding: 10px 0;
  color: #e2c48d;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(201, 168, 106, 0.5);
}

.detail-photo {
  position: relative;
  align-self: stretch;
  min-height: 400px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.3);
  border-radius: 18px;
  background: #193238;
}

.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.detail-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 25, 30, 0.94));
  pointer-events: none;
}

.detail-photo figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  height: 100%;
  padding: 32px;
}

.detail-photo small {
  margin-bottom: 12px;
  color: #e2c48d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.detail-photo strong {
  max-width: 24ch;
  color: #f7f5f0;
  font: 500 29px/1.22 Georgia,'Times New Roman',serif, serif;
  text-wrap: balance;
}

.detail-body {
  padding: 82px 0 88px;
}

.detail-body .eyebrow {
  color: #94702f;
}

.detail-section-intro {
  max-width: 770px;
}

.detail-body h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 39px;
  line-height: 1.18;
  text-wrap: balance;
}

.detail-body p {
  color: #526669;
  font-size: 15px;
  line-height: 1.85;
}

.detail-section-intro > p:last-child {
  margin-bottom: 0;
}

.detail-inclusions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.detail-inclusion {
  position: relative;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e4ded1;
  border-radius: 14px;
}

.detail-inclusion h3 {
  margin: 0 0 12px;
  padding-left: 25px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
}

.detail-inclusion h3::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 31px;
  width: 7px;
  height: 7px;
  border: 1px solid #7b5a22;
  transform: rotate(45deg);
}

.detail-inclusion p {
  margin: 0;
}

.detail-process {
  margin-top: 66px;
  padding-top: 52px;
  border-top: 1px solid #ded9cf;
  scroll-margin-top: 30px;
}

.detail-process h2 {
  font-size: 33px;
}

.detail-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}

.detail-steps li {
  margin: 0;
}

.step-number {
  display: block;
  color: #997335;
  font: 500 29px/1 Georgia,'Times New Roman',serif, serif;
}

.detail-steps h3 {
  margin: 17px 0 10px;
  color: var(--navy);
  font-size: 17px;
}

.detail-steps p {
  margin: 0;
  font-size: 14px;
}

.detail-note {
  margin: 34px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: #efede6;
  border-radius: 0 8px 8px 0;
  font-size: 13px !important;
}

.detail-cta {
  padding: 64px 0 36px;
}

.detail-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.detail-cta h2 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.18;
  text-wrap: balance;
}

.detail-cta-row p:last-child {
  max-width: 630px;
  margin: 0;
  color: #c6d1d0;
  font-size: 15px;
  line-height: 1.8;
}

.detail-cta-row > .btn {
  flex-shrink: 0;
}

.service-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 46px;
  padding-top: 25px;
  border-top: 1px solid rgba(201, 168, 106, 0.23);
}

.service-pager a {
  padding: 10px 0;
  color: #f7f5f0;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.service-pager a:last-child {
  text-align: right;
}

.service-pager small {
  display: block;
  margin-bottom: 6px;
  color: #d6b77f;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.service-pager a:hover {
  color: #e2c48d;
}

@media (max-width: 1024px) {
  .service-detail header {
    gap: 18px;
  }

  .service-detail header nav {
    gap: 13px;
  }

  .service-detail header nav .btn {
    padding: 13px 16px;
  }

  .detail-hero-grid {
    gap: 36px;
  }

  .detail-photo strong {
    font-size: 26px;
  }
}

@media (max-width: 800px) {
  .service-detail header #nav {
    padding: 25px;
    gap: 20px;
    border: 1px solid rgba(201, 168, 106, 0.25);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  .service-detail #toggle {
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }

  .detail-hero {
    padding: 112px 0 55px;
  }

  .service-detail .breadcrumbs {
    margin-bottom: 30px;
  }

  .detail-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-hero h1 {
    max-width: 650px;
  }

  .detail-photo,
  .detail-photo figcaption {
    min-height: 300px;
  }

  .detail-body {
    padding: 60px 0;
  }

  .detail-body h2 {
    font-size: 33px;
  }

  .detail-steps {
    gap: 24px;
  }

  .detail-cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }
}

@media (max-width: 520px) {
  .detail-hero h1 {
    font-size: 36px;
  }

  .detail-tagline {
    font-size: 17px;
  }

  .detail-actions {
    gap: 12px 22px;
  }

  .detail-photo,
  .detail-photo figcaption {
    min-height: 260px;
  }

  .detail-photo figcaption {
    padding: 25px;
  }

  .detail-body h2,
  .detail-cta h2 {
    font-size: 30px;
  }

  .detail-inclusions,
  .detail-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .detail-inclusion {
    padding: 25px;
  }

  .detail-inclusion h3::before {
    top: 33px;
    left: 26px;
  }

  .detail-process {
    margin-top: 46px;
    padding-top: 36px;
  }

  .detail-steps li {
    position: relative;
    padding: 0 0 24px 48px;
    border-bottom: 1px solid #e4ded1;
  }

  .detail-steps li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .step-number {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 25px;
  }

  .detail-steps h3 {
    margin-top: 0;
  }

  .detail-cta {
    padding: 48px 0 27px;
  }

  .service-pager {
    gap: 22px;
  }

  .service-pager a {
    font-size: 12px;
    overflow-wrap: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.service-detail) {
    scroll-behavior: auto;
  }
}
