.service-hero {
  min-height: 88svh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 52% 30%, rgba(184, 121, 69, 0.24), transparent 34rem),
    linear-gradient(180deg, rgba(8, 13, 18, 0.34), rgba(8, 13, 18, 0.58)),
    url("../img/brochure.png") center center / cover no-repeat;
}

.service-hero .hero-content p:not(.eyebrow) {
  max-width: 850px;
}

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

.service-page h2,
.service-page h3 {
  color: var(--ink);
}

.service-page a:not(.inline-action) {
  transition: color var(--speed), transform var(--speed), border-color var(--speed), padding-left var(--speed);
}

.service-section {
  position: relative;
  width: 100%;
  padding: var(--section-y) var(--pad-x);
}

.service-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-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: center;
}

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

.service-split-reverse .service-copy {
  order: 2;
}

.service-split-reverse .service-media {
  order: 1;
}

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

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

.service-copy p {
  max-width: 720px;
}

.service-copy p a,
.room-content details a {
  color: var(--accent-dark);
  font-weight: 800;
  border-bottom: 1px solid rgba(184, 121, 69, 0.36);
}

.service-copy p a:hover,
.room-content details a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

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

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

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

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

.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;
  align-self: end;
  justify-self: end;
  max-width: 540px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.linked-services {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 121, 69, 0.13), transparent 34rem),
    linear-gradient(180deg, var(--paper), #fbf8f3);
}

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

.rank-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed), box-shadow var(--speed);
}

.rank-card img {
  height: clamp(250px, 24vw, 340px);
  object-fit: cover;
  transition: transform var(--speed-slow), filter var(--speed-slow);
}

.rank-card > div {
  position: relative;
  z-index: 2;
  margin: -56px 18px 18px;
  padding: 24px;
  border: 2px solid rgba(217, 183, 142, 0.48);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(10, 16, 22, 0.82), rgba(23, 34, 45, 0.80));
  box-shadow: 0 26px 66px rgba(9, 14, 19, 0.28);
  transition: transform var(--speed), border-color var(--speed), background var(--speed);
}

.rank-card h3 {
  color: var(--white);
  font-size: clamp(1.36rem, 2.2vw, 1.92rem);
}

.rank-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
}

.rank-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 22px;
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.rank-card a::after {
  content: "→";
  margin-left: 10px;
  transition: transform var(--speed);
}

.rank-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 76px rgba(23, 34, 45, 0.18);
}

.rank-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.04);
}

.rank-card:hover > div {
  transform: translateY(-6px);
  border-color: rgba(217, 183, 142, 0.72);
  background:
    linear-gradient(145deg, rgba(7, 12, 17, 0.84), rgba(25, 36, 45, 0.82));
}

.rank-card:hover a::after {
  transform: translateX(7px);
}

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

.light-service {
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 121, 69, 0.10), transparent 32rem),
    var(--paper);
}

.inline-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 50px;
  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: 800;
  line-height: 1;
  transition: transform var(--speed), box-shadow var(--speed);
}

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

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

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

.rooms-section {
  background:
    linear-gradient(110deg, rgba(9, 16, 23, 0.95), rgba(23, 34, 45, 0.84)),
    url("../img/aree-servite-milano-pavia.jpg") center center / cover no-repeat;
}

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

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

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

.rooms-section .section-heading p:not(.eyebrow) {
  border-color: var(--line-light);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 54px);
}

.room-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 0.56fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(10, 16, 22, 0.68), rgba(23, 34, 45, 0.68));
  box-shadow: 0 28px 72px rgba(8, 13, 18, 0.22);
  transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}

.room-card img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform var(--speed-slow), filter var(--speed-slow);
}

.room-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px);
}

.room-content h3 {
  margin-bottom: 14px;
}

.room-content p {
  font-size: 0.96rem;
}

.room-content details {
  margin-top: 18px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.78);
}

.room-content summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  color: var(--accent-soft);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.room-content summary::-webkit-details-marker {
  display: none;
}

.room-content summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  transition: transform var(--speed);
}

.room-content details[open] summary::after {
  transform: rotate(45deg);
}

.room-content details p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.room-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 183, 142, 0.52);
  box-shadow: 0 36px 92px rgba(8, 13, 18, 0.32);
}

.room-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.04);
}

.process-section {
  background: var(--paper-light);
}

.tips-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(184, 121, 69, 0.12), transparent 32rem),
    var(--paper);
}

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

.tip-card {
  padding: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.46);
  transition: transform var(--speed), background var(--speed), box-shadow var(--speed);
}

.tip-card::before {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin-bottom: 24px;
  background: var(--accent);
}

.tip-card p {
  font-size: 0.96rem;
}

.tip-card:hover {
  transform: translateY(-6px);
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
}

.faq-section {
  background: var(--paper-light);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: padding-left var(--speed), border-color var(--speed);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(1.18rem, 2vw, 1.58rem);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.035em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.8rem;
  line-height: 1;
  transition: transform var(--speed);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 820px;
  padding: 0 0 24px;
}

.faq-item:hover {
  padding-left: 18px;
  border-color: var(--accent-soft);
}

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

.service-contact::before {
  top: 0;
}

@media (max-width: 1180px) {
  .rank-grid,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .service-split-reverse .service-copy,
  .service-split-reverse .service-media {
    order: initial;
  }

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

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

  .rank-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  }
}

@media (max-width: 720px) {
  .service-hero {
    min-height: 84svh;
  }

  .service-section {
    padding-top: clamp(64px, 8vw, 88px);
    padding-bottom: clamp(64px, 8vw, 88px);
  }

  .service-media,
  .rank-card,
  .room-card {
    border-radius: 24px;
  }

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

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

  .rank-card > div {
    margin: -48px 14px 14px;
    padding: 22px;
  }

  .room-card {
    grid-template-columns: 1fr;
  }

  .room-card img {
    min-height: 260px;
    height: 280px;
  }

  .room-content {
    padding: 24px;
  }

  .faq-item:hover {
    padding-left: 0;
  }
}

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

  .rank-card img {
    height: 260px;
  }

  .room-card img {
    height: 240px;
    min-height: 240px;
  }

  .tip-card {
    padding: 24px 0;
    background: transparent;
  }

  .tip-card:hover {
    box-shadow: none;
  }
}

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

.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;
}

.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;
}

.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) {
  .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;
  }
}

.service-page a:not(.hero-buttons a):not(.inline-action):not(.contatti-azioni 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);
}

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

.service-section::before {
  top: var(--section-y);
}

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

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

.service-media {
  isolation: isolate;
}

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

.inline-action {
  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/ristrutturazione-casa.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,
.linked-services .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

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

.linked-services .section-heading p:not(.eyebrow) {
  border-color: var(--line-light);
}

.rank-card {
  border-radius: 34px;
  background: transparent;
  box-shadow: 0 30px 78px rgba(8, 13, 18, 0.34);
  isolation: isolate;
}

.rank-card img {
  height: clamp(360px, 34vw, 500px);
}

.rank-card > div {
  margin: -88px 15px 15px;
  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(var(--service-panel-blur));
  -webkit-backdrop-filter: blur(var(--service-panel-blur));
}

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

.rank-card:hover > div {
  border-color: rgba(217, 183, 142, 0.70);
}

.process-section {
  background:
    radial-gradient(circle at 15% 12%, rgba(184, 121, 69, 0.13), transparent 34rem),
    linear-gradient(180deg, var(--paper), #fbf8f3);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.process-card,
.process-step {
  position: relative;
  padding: clamp(26px, 3vw, 38px) clamp(18px, 2.2vw, 30px);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  transition: background var(--speed), transform var(--speed), box-shadow var(--speed);
}

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

.process-card span,
.process-step span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

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

.process-card p,
.process-step p {
  max-width: none;
  font-size: 0.95rem;
}

.process-card:hover,
.process-step:hover {
  background: rgba(255, 255, 255, 0.54);
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.room-card,
.room-content {
  backdrop-filter: blur(var(--service-panel-blur));
  -webkit-backdrop-filter: blur(var(--service-panel-blur));
}

.tips-section {
  background:
    radial-gradient(circle at 90% 6%, rgba(184, 121, 69, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--paper), #fbf8f3);
}

.tip-card {
  background: rgba(255, 255, 255, 0.30);
}

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

.faq-list {
  max-width: 980px;
  margin: 0;
}

.faq-item {
  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 summary {
  min-height: 76px;
  padding: 20px 0;
}

.faq-item summary::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 1.3rem;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--white);
  background: var(--accent);
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 62px 24px 0;
}

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

.service-contact {
  background:
    radial-gradient(circle at 92% 20%, rgba(184, 121, 69, 0.11), transparent 30rem),
    var(--paper-light);
}

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

  .process-card:nth-child(2),
  .process-step:nth-child(2) {
    border-right: 0;
  }

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

@media (max-width: 980px) {
  .service-split,
  .service-split-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),
  .process-step,
  .process-step:nth-child(2),
  .process-step:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .rank-card {
    border-radius: 24px;
  }

  .rank-card > div {
    margin: -72px 12px 12px;
    border-radius: 22px;
  }

  .faq-item p {
    padding-right: 0;
  }
}
/* === Fine uniformazione UI === */
