/* ==========================================================================
   Pagina Servizi – layout base
   ========================================================================== */

.servizi-page {
  --servizi-bg: #000000;
  --servizi-text-main: #f9fafb;
  --servizi-text-muted: #9ca3af;
}

/* Navbar: stili specifici solo per pagina Servizi */
.servizi-page .nav-link,
.servizi-page .mobile-nav-link {
  color: #ffffff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-shadow: none;
}

/* Home su Servizi: stile "normale", senza evidenza speciale */
.servizi-page .nav-link-home,
.servizi-page .mobile-nav-link-home {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #ffffff;
  text-shadow: none;
}

.servizi-page .nav-link-home::after {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-secondary)
  );
}

/* Voce attiva: Servizi */
.servizi-page .nav-link-active,
.servizi-page .mobile-nav-link-active {
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.9rem;
  background: linear-gradient(
    120deg,
    var(--color-accent),
    var(--color-secondary),
    var(--color-magenta)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(59, 130, 246, 0.55);
}

.servizi-page .nav-link-active::after,
.servizi-page .mobile-nav-link-active::after {
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-secondary),
    var(--color-magenta)
  );
}

.servizi-page .nav-link-active:hover,
.servizi-page .nav-link-active:focus-visible,
.servizi-page .mobile-nav-link-active:hover,
.servizi-page .mobile-nav-link-active:focus-visible {
  color: transparent;
}

/* Background pagina Servizi – stesso sistema di Home, ma con immagini Servizi */
.servizi-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/servizi/hero_background.webp") center center / cover
    no-repeat fixed;
}

/* Footer pagina Servizi – sfondo nero pieno */
.servizi-page .site-footer {
  background: #000000;
}

.servizi-hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3.5rem;
}

.servizi-hero-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.servizi-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
}

.servizi-hero-subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--servizi-text-main);
}

.servizi-section {
  min-height: 260px;
  padding: 4rem 1.5rem;
  background: #000000;
}

/* Sezione 1 – titolo + descrizione centrati */
.servizi-intro-hub {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--servizi-text-main);
}

.servizi-seo-inline {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--servizi-text-main);
}

.servizi-seo-inline a {
  display: inline-block;
  margin-left: 0.25rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.servizi-seo-inline a:hover,
.servizi-seo-inline a:focus-visible {
  color: rgba(56, 189, 248, 0.98);
}

.servizi-section-1-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.servizi-section-1-title {
  margin: 0 0 1.75rem;
  font-size: 1.3rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff;
}

.servizi-section-1-text {
  color: var(--servizi-text-main);
  font-size: 1rem;
  line-height: 1.6;
}

.servizi-section-1-text p {
  margin: 0 0 0.6rem;
}

.servizi-section-1-text p:first-child {
  font-size: 1.05rem;
  font-weight: 500;
  color: #e5e7eb;
}

.servizi-section-1-text p:nth-child(2) {
  font-style: italic;
  color: #c4c9ff;
}

.servizi-section-1-text p:last-child {
  margin-bottom: 0;
}

/* Sezione 3 – testo centrato sotto il carosello */
.servizi-section-3 {
  background: #000000;
}

.servizi-section-3-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.servizi-section-3-title {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
}

.servizi-section-3-text {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--servizi-text-main);
}

.servizi-section-3-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   2) Carosello sezione 2 – 3 rettangoli verticali
   ========================================================================== */

.servizi-carousel-section {
  background: #000000;
  padding: 4rem 1.5rem 5rem;
}

.servizi-carousel {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.servizi-stage {
  position: relative;
  min-height: min(80vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.servizi-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.servizi-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 80vh;
  max-height: 720px;
  border-radius: 28px;
  border: 1px solid rgba(99, 102, 241, 0.9);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.75),
    0 14px 34px rgba(56, 189, 248, 0.18);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 55%),
    #020617;
  background-image: var(--servizi-card-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition:
    transform 0.25s ease-out,
    opacity 0.25s ease-out,
    box-shadow 0.25s ease-out,
    filter 0.25s ease-out;
}

.servizi-card-1 { --servizi-card-bg: url("../img/servizi/hero_background.webp"); }
.servizi-card-2 { --servizi-card-bg: url("../img/servizi/hero_background.webp"); }
.servizi-card-3 { --servizi-card-bg: url("../img/servizi/hero_background.webp"); }
.servizi-card-4 { --servizi-card-bg: url("../img/servizi/hero_background.webp"); }
.servizi-card-5 { --servizi-card-bg: url("../img/servizi/hero_background.webp"); }

.servizi-card-content {
  position: absolute;
  inset: 1.75rem;
  padding: 2rem 2.1rem;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.86));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  color: #e5e7eb;
}

.servizi-card-content--scrollable {
  gap: 2.2rem;
}

.servizi-card-scroll-inner {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.4) transparent;
}

.servizi-card-scroll-inner::-webkit-scrollbar {
  width: 6px;
}

.servizi-card-scroll-inner::-webkit-scrollbar-track {
  background: transparent;
}

.servizi-card-scroll-inner::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.4);
  border-radius: 3px;
}

.servizi-card-scroll-hint {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
}

.servizi-card-scroll-hint-icon {
  font-size: 1.1rem;
  line-height: 1;
  animation: servizi-scroll-bounce 1.4s ease-in-out infinite;
}

@keyframes servizi-scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.servizi-card-body--stacked {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.servizi-card-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.servizi-card-section-lead {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5f5;
}

.servizi-card-section-foot {
  margin: 0.8rem 0 0;
  font-size: 0.86rem;
  color: #e5e7eb;
}

/* Spaziatura extra titoli nelle sezioni scrollabili (card 5) */
.servizi-card-body--stacked .servizi-card-section {
  gap: 1.2rem;
}

.servizi-card-body--stacked .servizi-card-pill-label {
  margin-bottom: 1.6rem;
}

.servizi-card-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.servizi-card-kicker-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 2em;
  height: 2em;
  color: #ffffff;
}

.servizi-card-kicker-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.servizi-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

.servizi-card-lead {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
  color: #e0e7ff;
}

/* Spaziatura extra tra titolo/sottotitolo/intro nella card scrollabile (n°5) */
.servizi-card-content--scrollable .servizi-card-kicker {
  margin-bottom: 1.1rem;
}

.servizi-card-content--scrollable .servizi-card-title {
  margin-bottom: 1.5rem;
}

.servizi-card-content--scrollable .servizi-card-lead {
  margin-bottom: 2.1rem;
}

.servizi-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.6rem;
  align-items: flex-start;
}

.servizi-card-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.96rem;
  line-height: 1.5;
}

.servizi-card-list li {
  list-style: disc;
}

.servizi-card-pill-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.servizi-card-pill-label {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
}

.servizi-card-pill-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.servizi-card-pill-list li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.7);
  background: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.95);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.servizi-card-foot {
  margin: 1.8rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: #f1f5f9;
}

.servizi-card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(129, 140, 248, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.servizi-card-cta:hover {
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.9);
}

.servizi-card-final {
  margin: 2.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #f1f5f9;
  text-align: center;
}

.servizi-card-content--scrollable .servizi-card-cta {
  margin-top: 1.25rem;
  text-align: center;
}

.servizi-card.is-active {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: saturate(1.05) brightness(1.02);
}

.servizi-card.is-left,
.servizi-card.is-right {
  z-index: 2;
  width: 52%;
  height: 70vh;
  max-height: 640px;
  opacity: 0.75;
  filter: blur(1px) brightness(0.9);
}

.servizi-card.is-left {
  transform: translate(-86%, -50%) scale(0.9);
}

.servizi-card.is-right {
  transform: translate(-14%, -50%) scale(0.9);
}

/* Animazione cambio card – desktop/tablet: transizione morbida su transform/opacity */

.servizi-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.servizi-arrow {
  position: relative;
  padding: 0.1rem 0.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.servizi-arrow::before {
  content: none;
}

.servizi-arrow-icon {
  display: block;
  width: 3.3rem;
  height: 3.3rem;
  position: relative;
}

.servizi-arrow-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.7))
    drop-shadow(0 0 10px rgba(56, 189, 248, 0.4))
    drop-shadow(0 0 18px rgba(129, 140, 248, 0.35));
}

.servizi-arrow:hover {
  box-shadow: none;
  transform: none;
}

.servizi-arrow:hover::before {
  opacity: 0;
}

.servizi-arrow:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ==========================================================================
   Dots sotto il carosello Servizi
   ========================================================================== */

.servizi-dots {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.servizi-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: radial-gradient(circle at 30% 0%, rgba(148, 163, 184, 0.4), transparent 70%),
    rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    width 0.2s ease;
}

.servizi-dot.is-active {
  width: 22px;
  border-color: rgba(129, 140, 248, 1);
  background: linear-gradient(90deg, #22c1c3, #6366f1, #ec4899);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 18px rgba(129, 140, 248, 0.7);
  animation: servizi-dot-snap 0.32s ease-out;
}

.servizi-dot:hover:not(.is-active) {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
  transform: translateY(-1px);
}

@keyframes servizi-dot-snap {
  0% {
    transform: scaleX(1) scaleY(1);
  }
  35% {
    transform: scaleX(1.3) scaleY(0.35);
  }
  100% {
    transform: scaleX(1.2) scaleY(1);
  }
}

/* Dots fissi per mobile (Servizi) */
.servizi-mobile-dots {
  position: fixed;
  inset: 50% 1.4rem auto auto;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.servizi-mobile-dots.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Media queries – stessi breakpoint di style.css/ugo.css
   ========================================================================== */

/* Tablet portrait (769px–1024px, verticale) */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: portrait) {
  .servizi-page::before {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
  }

  .servizi-hero {
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .servizi-section {
    padding: 3.5rem 1.5rem;
  }

  .servizi-carousel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .servizi-stage {
    min-height: min(78vh, 620px);
  }

  .servizi-arrow {
    display: none;
  }

  /* Tablet: un solo oggetto visibile, rettangolo ingrandito */
  .servizi-card {
    width: 88%;
    max-width: 600px;
    height: 78vh;
    max-height: 620px;
  }

  .servizi-card.is-left,
  .servizi-card.is-right {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }

  /* Tremolio fino al primo swipe (tablet portrait) */
  @keyframes servizi-shake-hint {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    20% { transform: translate(calc(-50% - 8px), -50%) scale(1); }
    40% { transform: translate(calc(-50% + 8px), -50%) scale(1); }
    60% { transform: translate(calc(-50% - 4px), -50%) scale(1); }
    80% { transform: translate(calc(-50% + 4px), -50%) scale(1); }
  }
  .servizi-carousel:not(.servizi-carousel-has-swiped) .servizi-card.is-active {
    animation: servizi-shake-hint 2.2s ease-in-out infinite;
  }

  /* Contenuto interno card – tablet portrait */
  .servizi-card-content {
    inset: 1.4rem;
    padding: 1.4rem 1.5rem;
    gap: 1.6rem;
  }

  .servizi-card-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }

  .servizi-card-title {
    font-size: 1.15rem;
    letter-spacing: 0.16em;
  }

  .servizi-card-lead {
    font-size: 0.9rem;
  }

  .servizi-card-body {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .servizi-card-list {
    font-size: 0.9rem;
  }

  .servizi-card-pill-label {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
  }

  .servizi-card-foot {
    margin-top: 1.4rem;
    font-size: 0.86rem;
  }

  /* Card scrollabile (5°) – tablet portrait */
  .servizi-card-content--scrollable {
    gap: 1.2rem;
  }

  .servizi-card-scroll-inner {
    padding-right: 0.25rem;
  }
}

/* Tablet landscape (769px–1366px, orizzontale) – carosello riscritto */
@media (max-width: 1366px) and (min-width: 769px) and (orientation: landscape) {
  /* --- Sezioni generiche --- */
  .servizi-page::before {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
  }

  .servizi-hero {
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .servizi-section {
    padding: 3.5rem 1.5rem;
  }

  /* --- Contenitore carosello --- */
  .servizi-carousel-section {
    padding: 3.5rem 1.5rem 4.25rem;
  }

  .servizi-carousel {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: center;
  }

  .servizi-stage {
    position: relative;
    min-height: min(70vh, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  /* Frecce nascoste: solo swipe + dots */
  .servizi-arrow {
    display: none !important;
  }

  /* --- Card: una sola visibile, centrata --- */
  .servizi-carousel-section .servizi-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 740px;
    height: 70vh;
    max-height: 640px;
    transform: translate(-50%, -50%);
  }

  .servizi-carousel-section .servizi-card.is-active {
    z-index: 3;
    opacity: 1;
    filter: saturate(1.05) brightness(1.02);
  }

  .servizi-carousel-section .servizi-card.is-left,
  .servizi-carousel-section .servizi-card.is-right {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }

  /* Tremolio fino al primo swipe */
  @keyframes servizi-shake-hint-landscape {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    20% { transform: translate(calc(-50% - 8px), -50%) scale(1); }
    40% { transform: translate(calc(-50% + 8px), -50%) scale(1); }
    60% { transform: translate(calc(-50% - 4px), -50%) scale(1); }
    80% { transform: translate(calc(-50% + 4px), -50%) scale(1); }
  }

  .servizi-carousel-section .servizi-carousel:not(.servizi-carousel-has-swiped) .servizi-card.is-active {
    animation: servizi-shake-hint-landscape 2.2s ease-in-out infinite;
  }

  /* --- Contenuto interno card (tutte) --- */
  .servizi-carousel-section .servizi-card-content {
    position: absolute;
    inset: 1.5rem 2rem;
    padding: 1.4rem 1.7rem;
    gap: 1.7rem;
  }

  .servizi-carousel-section .servizi-card-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
  }

  .servizi-carousel-section .servizi-card-title {
    font-size: 1.2rem;
    letter-spacing: 0.16em;
  }

  .servizi-carousel-section .servizi-card-lead {
    font-size: 0.92rem;
  }

  .servizi-carousel-section .servizi-card-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 2rem;
  }

  .servizi-carousel-section .servizi-card-list {
    font-size: 0.92rem;
  }

  .servizi-carousel-section .servizi-card-pill-label {
    font-size: 0.86rem;
  }

  .servizi-carousel-section .servizi-card-foot {
    margin-top: 1.5rem;
    font-size: 0.88rem;
  }

  /* Card 5 scrollabile */
  .servizi-carousel-section .servizi-card-content--scrollable {
    gap: 1.3rem;
  }

  .servizi-carousel-section .servizi-card-scroll-inner {
    padding-right: 0.3rem;
  }
}

/* Blocco scroll durante swipe carosello servizi (tablet portrait e landscape) */
@media (max-width: 1366px) and (min-width: 769px) {
  body.servizi-carousel-dragging {
    overflow: hidden;
    touch-action: none;
  }
}

/* Mobile landscape (481px–768px) – contenuti in colonna, stesso stile card */
@media (max-width: 768px) and (min-width: 481px) {
  .servizi-page::before {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
  }

  .servizi-hero {
    padding: 2.5rem 1.25rem 3rem;
  }

  .servizi-section {
    padding: 3rem 1.25rem;
  }

  .servizi-carousel-section {
    padding: 3rem 1.25rem 4rem;
  }

  .servizi-carousel-section .servizi-arrow,
  .servizi-carousel-section .servizi-dots {
    display: none !important;
  }

  .servizi-carousel-section .servizi-carousel {
    display: block;
    max-width: 100%;
  }

  .servizi-carousel-section .servizi-stage {
    position: static;
    min-height: 0;
    overflow: visible;
  }

  .servizi-carousel-section .servizi-track {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .servizi-carousel-section .servizi-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: none;
    transform: none;
    opacity: 1;
    filter: none;
    visibility: visible;
    pointer-events: auto;
  }

  .servizi-carousel-section .servizi-card-content {
    position: relative;
    inset: auto;
    margin: 1.25rem;
    min-height: calc(100% - 2.5rem);
  }

  .servizi-carousel-section .servizi-card-content--scrollable .servizi-card-scroll-inner {
    overflow: visible;
    max-height: none;
  }

  .servizi-carousel-section .servizi-card-content--scrollable .servizi-card-scroll-hint {
    display: none;
  }

  .servizi-carousel-section .servizi-card-body {
    grid-template-columns: 1fr;
  }

  .servizi-carousel-section .servizi-card-kicker,
  .servizi-carousel-section .servizi-card-title,
  .servizi-carousel-section .servizi-card-lead {
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  }

  .servizi-carousel-section .servizi-card-list {
    font-size: 0.88rem;
  }

  .servizi-mobile-dots {
    display: flex;
  }
}

/* Mobile portrait (fino a 480px) – contenuti in colonna, stesso stile card */
@media (max-width: 480px) {
  .servizi-page::before {
    background-image: url("../img/servizi/hero_background_mobile.webp");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
  }

  .servizi-hero {
    padding: 2.3rem 1.25rem 3rem;
  }

  .servizi-hero-title {
    font-size: 2.1rem;
    letter-spacing: 0.24em;
  }

  .servizi-hero-subtitle {
    font-size: 0.98rem;
  }

  .servizi-section {
    padding: 2.75rem 1.25rem;
  }

  .servizi-carousel-section {
    padding: 2.75rem 1.25rem 3.5rem;
  }

  .servizi-carousel-section .servizi-arrow,
  .servizi-carousel-section .servizi-dots {
    display: none !important;
  }

  .servizi-carousel-section .servizi-carousel {
    display: block;
    max-width: 100%;
  }

  .servizi-carousel-section .servizi-stage {
    position: static;
    min-height: 0;
    overflow: visible;
  }

  .servizi-carousel-section .servizi-track {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .servizi-carousel-section .servizi-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: none;
    transform: none;
    opacity: 1;
    filter: none;
    visibility: visible;
    pointer-events: auto;
  }

  .servizi-carousel-section .servizi-card-content {
    position: relative;
    inset: auto;
    margin: 1rem;
    min-height: calc(100% - 2rem);
    padding: 1.2rem 1.35rem;
    gap: 1.2rem;
  }

  .servizi-carousel-section .servizi-card-content--scrollable .servizi-card-scroll-inner {
    overflow: visible;
    max-height: none;
  }

  .servizi-carousel-section .servizi-card-content--scrollable .servizi-card-scroll-hint {
    display: none;
  }

  .servizi-carousel-section .servizi-card-body {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .servizi-carousel-section .servizi-card-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
  }

  .servizi-carousel-section .servizi-card-title {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
  }

  .servizi-carousel-section .servizi-card-lead {
    font-size: 0.9rem;
  }

  .servizi-carousel-section .servizi-card-list {
    font-size: 0.86rem;
  }

  .servizi-carousel-section .servizi-card-pill-label {
    font-size: 0.8rem;
  }

  .servizi-carousel-section .servizi-card-foot,
  .servizi-carousel-section .servizi-card-final {
    font-size: 0.84rem;
  }

  .servizi-carousel-section .servizi-card-cta {
    font-size: 0.8rem;
    margin-top: 0.85rem;
  }

  .servizi-mobile-dots {
    display: flex;
  }
}

