.service-hero {
  background:
    radial-gradient(circle at 50% 34%, rgba(184, 121, 69, 0.24), transparent 34rem),
    linear-gradient(180deg, rgba(8, 13, 18, 0.38), rgba(8, 13, 18, 0.58)),
    url("/img/brochure.png") center center / cover no-repeat;
}

.service-page {
  background: var(--paper);
}

.service-page a:not(.hero-buttons a):not(.contatti-azioni a):not(.contatti-sidebar a) {
  transition: color var(--speed), transform var(--speed), border-color var(--speed), background var(--speed), box-shadow var(--speed);
}

.service-intro,
.linked-services,
.service-feature,
.wide-detail,
.process-section,
.local-section,
.faq-section {
  position: relative;
  width: 100%;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.service-intro::before,
.linked-services::before,
.service-feature::before,
.wide-detail::before,
.process-section::before,
.local-section::before,
.faq-section::before {
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.service-intro {
  background:
    radial-gradient(circle at 12% 10%, rgba(184, 121, 69, 0.10), transparent 34rem),
    linear-gradient(180deg, var(--paper-light), var(--paper));
}

.service-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.service-intro-title {
  position: sticky;
  top: 96px;
  padding-top: clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--line-strong);
}

.service-intro-title::before {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin-bottom: 26px;
  background: var(--accent);
}

.service-intro-text {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.service-intro-text p {
  max-width: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  grid-template-areas:
    "eyebrow testo"
    "titolo testo";
  column-gap: clamp(34px, 5vw, 78px);
  row-gap: 14px;
  align-items: end;
  margin-bottom: clamp(46px, 6vw, 80px);
}

.section-heading .eyebrow {
  grid-area: eyebrow;
  margin-bottom: 0;
}

.section-heading h2 {
  grid-area: titolo;
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow) {
  grid-area: testo;
  justify-self: end;
  max-width: 520px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.linked-services {
  background:
    radial-gradient(circle at 86% 0%, rgba(184, 121, 69, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--paper), #fbf8f3);
}

.linked-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}

.linked-service-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(8, 13, 18, 0.84), rgba(23, 34, 45, 0.78)),
    url("/img/sistemi-copertura-tetti.jpg") center center / cover no-repeat;
  box-shadow: 0 28px 74px rgba(23, 34, 45, 0.20);
  isolation: isolate;
}

.linked-service-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(217, 183, 142, 0.34);
  border-radius: 22px;
  opacity: 0.62;
  transition: inset var(--speed), opacity var(--speed), border-color var(--speed);
}

.linked-service-card::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: 30px;
  color: var(--accent-soft);
  font-size: 1.5rem;
  font-weight: 900;
  transition: transform var(--speed);
}

.linked-service-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: auto;
  color: var(--accent-soft);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.linked-service-card h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2.12rem);
}

.linked-service-card p {
  max-width: none;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.75);
}

.linked-service-card strong {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--accent-soft);
  font-size: 0.92rem;
}

.linked-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 38px 94px rgba(23, 34, 45, 0.28);
}

.linked-service-card:hover::before {
  inset: 12px;
  opacity: 1;
  border-color: rgba(217, 183, 142, 0.64);
}

.linked-service-card:hover::after {
  transform: translateX(7px);
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  background: var(--paper-light);
}

.service-feature:nth-of-type(even) {
  background:
    radial-gradient(circle at 16% 12%, rgba(184, 121, 69, 0.10), transparent 32rem),
    var(--paper);
}

.service-feature-reverse {
  grid-template-columns: minmax(360px, 1.05fr) minmax(0, 0.95fr);
}

.service-feature-text {
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--line-strong);
}

.service-feature-text::before {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin-bottom: 26px;
  background: var(--accent);
}

.service-feature-text p {
  max-width: 680px;
}

.service-feature-text a:not(.service-inline-link) {
  color: var(--accent-dark);
  font-weight: 800;
  border-bottom: 1px solid rgba(184, 121, 69, 0.34);
}

.service-feature-text a:not(.service-inline-link):hover {
  color: var(--accent);
  border-color: var(--accent);
}

.service-feature-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-image);
}

.service-feature-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  pointer-events: none;
}

.service-feature-media img {
  height: clamp(360px, 38vw, 560px);
  object-fit: cover;
  transition: transform var(--speed-slow), filter var(--speed-slow);
}

.service-feature-media:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.04);
}

.service-inline-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 34px rgba(184, 121, 69, 0.24);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
}

.service-inline-link::after {
  content: "→";
  margin-left: 10px;
  transition: transform var(--speed);
}

.service-inline-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(23, 34, 45, 0.18);
}

.service-inline-link:hover::after {
  transform: translateX(6px);
}

.wide-detail {
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(9, 16, 23, 0.96), rgba(23, 34, 45, 0.86)),
    url("/img/sistemi-copertura-tetti.jpg") center center / cover no-repeat;
}

.wide-detail h2,
.wide-detail h3 {
  color: var(--white);
}

.wide-detail p {
  color: rgba(255, 255, 255, 0.78);
}

.wide-detail .eyebrow {
  color: var(--accent-soft);
}

.wide-detail-inner {
  max-width: 920px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.process-section {
  background: linear-gradient(180deg, var(--paper-light), var(--paper));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}

.process-card {
  min-height: 280px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed), background var(--speed);
}

.process-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.process-card h3 {
  font-size: clamp(1.28rem, 2vw, 1.72rem);
}

.process-card p {
  max-width: none;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 121, 69, 0.42);
  background: var(--paper-light);
  box-shadow: 0 22px 52px rgba(23, 34, 45, 0.14);
}

.local-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(9, 16, 23, 0.95), rgba(23, 34, 45, 0.82)),
    url("/img/aree-servite-milano-pavia.jpg") center center / cover no-repeat;
}

.local-section h2,
.local-section h3 {
  color: var(--white);
}

.local-section p {
  color: rgba(255, 255, 255, 0.76);
}

.local-section .eyebrow {
  color: var(--accent-soft);
}

.local-content {
  padding-top: clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--line-light);
}

.local-content a {
  color: var(--accent-soft);
  font-weight: 800;
  border-bottom: 1px solid rgba(217, 183, 142, 0.38);
}

.local-content a:hover {
  color: var(--white);
  border-color: var(--white);
}

.local-note {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-light);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.local-note ul {
  display: grid;
  gap: 12px;
}

.local-note li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1.14vw, 1.07rem);
}

.local-note li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.faq-section {
  background:
    radial-gradient(circle at 86% 10%, rgba(184, 121, 69, 0.11), transparent 34rem),
    var(--paper-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.faq-item {
  padding: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-strong);
  background: transparent;
  transition: transform var(--speed), border-color var(--speed);
}

.faq-item h3 {
  max-width: 640px;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
}

.faq-item p {
  max-width: none;
}

.faq-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.roof-page .contatti {
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 1100px) {
  .linked-services-grid {
    grid-template-columns: 1fr;
  }

  .linked-service-card {
    min-height: 300px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .service-intro-grid,
  .service-feature,
  .service-feature-reverse,
  .local-section {
    grid-template-columns: 1fr;
  }

  .service-intro-title {
    position: relative;
    top: auto;
  }

  .service-feature-reverse .service-feature-media {
    order: 2;
  }

  .service-feature-reverse .service-feature-text {
    order: 1;
  }

  .section-heading {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "titolo"
      "testo";
  }

  .section-heading p:not(.eyebrow) {
    justify-self: start;
    max-width: 720px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .service-intro,
  .linked-services,
  .service-feature,
  .wide-detail,
  .process-section,
  .local-section,
  .faq-section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
  }

  .service-intro-text,
  .local-note,
  .faq-item {
    padding: 24px;
    border-radius: 22px;
  }

  .service-feature-media,
  .service-feature-media img {
    border-radius: 22px;
  }

  .service-feature-media img {
    height: 320px;
  }

  .service-feature-media::after {
    inset: 12px;
    border-radius: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: auto;
  }

  .process-card span {
    margin-bottom: 24px;
  }

  .linked-service-card {
    min-height: 320px;
    border-radius: 24px;
  }

  .linked-service-card::before {
    border-radius: 18px;
  }
}

@media (max-width: 460px) {
  .service-feature-media img {
    height: 280px;
  }

  .linked-service-card {
    min-height: 340px;
  }

  .service-inline-link {
    width: 100%;
    justify-content: center;
  }
}

/* === Uniformazione UI da facciate.css + blur basso scroll === */
:root {
  --service-scroll-blur: 4px;
  --service-panel-blur: 6px;
}

.roof-page .scroll-reveal:not(.is-visible),
.roof-page .reveal-on-scroll:not(.is-visible),
.roof-page .reveal:not(.is-visible),
.roof-page [data-scroll-reveal]:not(.is-visible),
.roof-page [data-reveal]:not(.is-visible),
.roof-page [data-animate]:not(.is-visible),
.service-page .scroll-reveal:not(.is-visible),
.service-page .reveal-on-scroll:not(.is-visible),
.service-page .reveal:not(.is-visible),
.service-page [data-scroll-reveal]:not(.is-visible),
.service-page [data-reveal]:not(.is-visible),
.service-page [data-animate]:not(.is-visible) {
  filter: blur(var(--service-scroll-blur)) !important;
}

.roof-page .scroll-reveal.is-visible,
.roof-page .reveal-on-scroll.is-visible,
.roof-page .reveal.is-visible,
.roof-page [data-scroll-reveal].is-visible,
.roof-page [data-reveal].is-visible,
.roof-page [data-animate].is-visible,
.service-page .scroll-reveal.is-visible,
.service-page .reveal-on-scroll.is-visible,
.service-page .reveal.is-visible,
.service-page [data-scroll-reveal].is-visible,
.service-page [data-reveal].is-visible,
.service-page [data-animate].is-visible {
  filter: blur(0) !important;
}

.roof-page .contatti,
.roof-page .service-contact,
.roof-page .service-contatti,
.roof-page footer,
.roof-page .site-footer,
.service-page .contatti,
.service-page .service-contact,
.service-page .service-contatti,
.service-page footer,
.service-page .site-footer {
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .roof-page .scroll-reveal,
  .roof-page .reveal-on-scroll,
  .roof-page .reveal,
  .roof-page [data-scroll-reveal],
  .roof-page [data-reveal],
  .roof-page [data-animate],
  .service-page .scroll-reveal,
  .service-page .reveal-on-scroll,
  .service-page .reveal,
  .service-page [data-scroll-reveal],
  .service-page [data-reveal],
  .service-page [data-animate] {
    filter: none !important;
  }
}

.roof-page a:not(.hero-buttons a):not(.service-inline-link):not(.contatti-azioni a):not(.contatti-sidebar a),
.service-page a:not(.hero-buttons a):not(.service-inline-link):not(.contatti-azioni a):not(.contatti-sidebar a) {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(184, 121, 69, 0.34);
  transition: color var(--speed), text-decoration-color var(--speed), transform var(--speed), border-color var(--speed), background var(--speed), box-shadow var(--speed);
}

.roof-page a:not(.hero-buttons a):not(.service-inline-link):not(.contatti-azioni a):not(.contatti-sidebar a):hover,
.service-page a:not(.hero-buttons a):not(.service-inline-link):not(.contatti-azioni a):not(.contatti-sidebar a):hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.service-intro::before,
.linked-services::before,
.service-feature::before,
.wide-detail::before,
.process-section::before,
.local-section::before,
.faq-section::before {
  top: var(--section-y);
}

.service-feature,
.service-feature-reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(38px, 5.6vw, 86px);
}

.service-feature-reverse {
  grid-template-columns: minmax(360px, 1.04fr) minmax(0, 0.96fr);
}

.service-feature-media {
  isolation: isolate;
}

.service-feature-media img {
  height: clamp(390px, 40vw, 590px);
}

.service-inline-link {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(184, 121, 69, 0.30);
}

.linked-services {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(9, 16, 23, 0.96), rgba(23, 34, 45, 0.86)),
    url("/img/sistemi-copertura-tetti.jpg") center center / cover no-repeat;
}

.linked-services::before {
  background: linear-gradient(90deg, transparent, var(--line-light), transparent);
}

.linked-services h2,
.linked-services h3 {
  color: var(--white);
}

.linked-services p {
  color: rgba(255, 255, 255, 0.76);
}

.linked-services .eyebrow,
.linked-service-card span,
.linked-service-card strong {
  color: var(--accent-soft);
}

.linked-services-grid {
  gap: clamp(24px, 3vw, 42px);
}

.linked-service-card {
  min-height: clamp(420px, 40vw, 560px);
  border-radius: 34px;
  box-shadow: 0 30px 78px rgba(8, 13, 18, 0.34);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed), background var(--speed);
}

.linked-service-card::before {
  inset: 15px;
  border: 2px solid rgba(217, 183, 142, 0.44);
  border-radius: 26px;
  opacity: 1;
  backdrop-filter: blur(var(--service-panel-blur));
  -webkit-backdrop-filter: blur(var(--service-panel-blur));
}

.linked-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 42px 104px rgba(8, 13, 18, 0.46);
}

.linked-service-card:hover::before {
  inset: 12px;
  border-color: rgba(217, 183, 142, 0.70);
}

.process-grid {
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.process-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.process-card:last-child {
  border-right: 0;
}

.process-card span {
  display: inline-flex;
  margin-bottom: 24px;
  font-size: 0.82rem;
}

.process-card:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-soft);
}

.local-note {
  border-radius: 30px;
  backdrop-filter: blur(var(--service-panel-blur));
  -webkit-backdrop-filter: blur(var(--service-panel-blur));
}

.faq-grid {
  gap: 14px;
  max-width: 980px;
}

.faq-item {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.30);
  transition: background var(--speed), box-shadow var(--speed), transform var(--speed);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.54);
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .process-card:nth-child(2) {
    border-right: 0;
  }

  .process-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .service-feature,
  .service-feature-reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card,
  .process-card:nth-child(2),
  .process-card:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-card:last-child {
    border-bottom: 0;
  }

  .linked-service-card {
    min-height: 430px;
    border-radius: 24px;
  }
}
/* === Fine uniformazione UI === */

/* === SERVIZI COLLEGATI TETTI: stile identico a facciate, copy invariato === */
.linked-services {
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(9, 16, 23, 0.96), rgba(23, 34, 45, 0.86)),
    url("/img/sistemi-copertura-tetti.jpg") center center / cover no-repeat;
}

.linked-services::before {
  top: var(--section-y);
  background: linear-gradient(90deg, transparent, var(--line-light), transparent);
}

.linked-services h2,
.linked-services h3 {
  color: var(--white);
}

.linked-services p {
  color: rgba(255, 255, 255, 0.76);
}

.linked-services .eyebrow {
  color: var(--accent-soft);
}

.linked-services .section-heading {
  display: block;
  max-width: 980px;
  margin-bottom: clamp(46px, 6vw, 82px);
}

.linked-services .section-heading .eyebrow {
  margin-bottom: 14px;
}

.linked-services .section-heading h2 {
  margin-bottom: 20px;
}

.linked-services .section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.linked-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px);
}

.linked-service-card {
  position: relative;
  display: flex;
  min-height: clamp(420px, 40vw, 560px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 34px;
  color: var(--white);
  background: transparent;
  box-shadow: 0 30px 78px rgba(8, 13, 18, 0.34);
  isolation: isolate;
  text-decoration: none !important;
  transform: translateY(0);
  transition: transform var(--speed), box-shadow var(--speed);
}

.linked-service-card *,
.linked-service-card:hover * {
  text-decoration: none !important;
}

.linked-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.08), rgba(8, 13, 18, 0.72)),
    radial-gradient(circle at 50% 100%, rgba(184, 121, 69, 0.30), transparent 28rem);
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity var(--speed);
}

.linked-service-card::after {
  content: none;
  display: none;
}

.linked-service-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform var(--speed-slow), filter var(--speed-slow);
}

.linked-service-card-index {
  display: none !important;
}

.linked-service-card__panel {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  display: grid;
  gap: 12px;
  width: calc(100% - 30px);
  margin: 15px;
  padding: clamp(22px, 2.5vw, 30px);
  border: 2px solid rgba(217, 183, 142, 0.44);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(10, 16, 22, 0.82), rgba(23, 34, 45, 0.76));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--speed), border-color var(--speed), background var(--speed);
}

.linked-service-card__panel h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-title);
  font-size: clamp(1.42rem, 2.4vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.linked-service-card__panel p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

.linked-service-card__panel strong {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.linked-service-card__panel strong::after {
  content: " →";
  margin-left: 4px;
}

.linked-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 42px 104px rgba(8, 13, 18, 0.46);
}

.linked-service-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05);
}

.linked-service-card:hover .linked-service-card__panel {
  transform: translateY(-8px);
  border-color: rgba(217, 183, 142, 0.70);
  background: linear-gradient(145deg, rgba(7, 12, 17, 0.88), rgba(25, 36, 45, 0.82));
}

@media (max-width: 1180px) {
  .linked-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .linked-service-card {
    min-height: 430px;
    border-radius: 24px;
  }

  .linked-service-card__panel {
    width: calc(100% - 24px);
    margin: 12px;
    border-radius: 22px;
  }
}

@media (max-width: 460px) {
  .linked-service-card {
    min-height: 390px;
  }
}
/* === Fine servizi collegati tetti === */
/* === FIX MOBILE DEFINITIVO GRONDAIE + SEZIONI TETTI === */
@media screen and (max-width: 1180px) {
  html body main.service-page.roof-page section.wide-detail {
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body main.service-page.roof-page section.wide-detail > .wide-detail-inner,
  html body main.service-page.roof-page section.wide-detail > .wide-detail-inner[style] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 32px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(56px, 12vw, 86px) var(--pad-x) !important;
    box-sizing: border-box !important;
  }

  html body main.service-page.roof-page section.wide-detail > .wide-detail-inner > div,
  html body main.service-page.roof-page section.wide-detail > .wide-detail-inner > div[style] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body main.service-page.roof-page section.wide-detail figure,
  html body main.service-page.roof-page section.wide-detail figure[style] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
  }

  html body main.service-page.roof-page section.wide-detail figure img,
  html body main.service-page.roof-page section.wide-detail figure img[style],
  html body main.service-page.roof-page section.wide-detail img[src*="grondaia"] {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 22px !important;
    transform: none !important;
    filter: none !important;
  }

  html body main.service-page.roof-page .service-feature,
  html body main.service-page.roof-page .service-feature-reverse {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body main.service-page.roof-page .service-feature-text,
  html body main.service-page.roof-page .service-feature-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body main.service-page.roof-page .service-feature-media img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
}
/* === FINE FIX MOBILE DEFINITIVO GRONDAIE + SEZIONI TETTI === */
