/* ============================================================
   Assistenza Infermieristica Domiciliare · Dott.ssa Fabiola Silvia Cirasa
   Design system: pulito, sanitario, premium. Animazioni solo su
   transform/opacity per garantire 60fps.
   ============================================================ */

:root {
  --navy-900: #0d3a5c;
  --navy-800: #114a75;
  --teal-700: #0f7d93;
  --teal-600: #1592aa;
  --teal-500: #1ea8c2;
  --teal-100: #d7eef4;
  --teal-50: #eef8fb;
  --ink: #16323f;
  --muted: #52707e;
  --line: #dcebf1;
  --bg: #ffffff;
  --bg-soft: #f4fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(13, 58, 92, 0.06), 0 2px 8px rgba(13, 58, 92, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 58, 92, 0.08), 0 12px 32px rgba(13, 58, 92, 0.10);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wa-green: #1fae54;
  --wa-green-dark: #178f44;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-700);
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Tipografia ---------- */

h1,
h2,
h3 {
  line-height: 1.15;
  color: var(--teal-700);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

.eyebrow {
  display: block;
  line-height: 1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

section {
  padding: 88px 0;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Header piu largo del contenuto per far respirare la nav */
.site-header .container {
  width: min(1320px, calc(100% - 40px));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name strong {
  color: var(--navy-900);
  font-size: 0.98rem;
  white-space: nowrap;
}

.brand-name span {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.main-nav a:hover {
  color: var(--teal-700);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Hamburger (solo mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.28s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 174, 84, 0.35);
}

.btn-whatsapp:hover {
  background: var(--wa-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 174, 84, 0.4);
}

/* Pulsante "Chiama ora" nel colore eyebrow (teal) */
.btn-call {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 125, 147, 0.32);
}

.btn-call:hover {
  background: var(--teal-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 125, 147, 0.4);
}

.btn-outline {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* top = header (76px) + ~44px di spazio visibile sopra l'eyebrow */
  padding: 120px 0 72px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-50) 0%, #ffffff 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}

.hero-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(30, 168, 194, 0.35), transparent 65%);
  top: -140px;
  right: -120px;
  animation: float-a 14s ease-in-out infinite;
}

.hero-blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(17, 74, 117, 0.22), transparent 65%);
  bottom: -160px;
  left: -120px;
  animation: float-b 18s ease-in-out infinite;
}

@keyframes float-a {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-40px, 30px, 0);
  }
}

@keyframes float-b {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(36px, -26px, 0);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  margin: 0 0 16px;
}

.hero .hero-sub {
  font-size: 1.28rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--teal-700);
  max-width: 560px;
  margin-bottom: 22px;
}

/* Evidenziatore giallo obliquo, disegnato a pennarello */
.hl {
  position: relative;
  white-space: nowrap;
  color: var(--ink);
  padding: 0 2px;
}

.hl::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 12%;
  bottom: 8%;
  z-index: -1;
  background: linear-gradient(100deg, #ffd83d, #ffe680);
  border-radius: 3px;
  transform: rotate(-2.2deg) skewX(-9deg);
}

.hero .lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero .lead strong {
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-reassure {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  padding: 9px 17px 9px 9px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  will-change: transform;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chip svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-500), var(--navy-800));
  color: #fff;
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.hero-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.hero-card .role {
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.hero-card .sub {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-50), #fff);
  border: 1px solid var(--teal-100);
  color: var(--navy-900);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.hero-card-badge svg {
  width: 17px;
  height: 17px;
  color: var(--teal-600);
  flex-shrink: 0;
}

.hero-card .creds {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  display: grid;
  gap: 9px;
  text-align: left;
}

.hero-card .creds li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.hero-card .creds li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ---------- Sezione Chi sono ---------- */

.about {
  background: var(--bg);
}

.about-grid {
  display: block;
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-text .eyebrow {
  justify-content: center;
}

.about-text h2 {
  margin-inline: auto;
}

.about-text p+p {
  margin-top: 16px;
}

.about-text p {
  color: var(--muted);
  max-width: 68ch;
  margin-inline: auto;
}

.about-text p strong {
  color: var(--ink);
}

/* Accento animato sotto il titolo Chi sono */
.about-text h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin: 22px auto 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-500, var(--teal-700)), var(--teal-700));
  transition: width 0.9s var(--ease-out) 0.45s;
  will-change: width;
}

.about-text h2.in::after {
  width: 72px;
}

/* Pill credenziali sotto il testo */
.about-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* Ingresso a cascata dei singoli chip quando la lista diventa visibile */
.about-chips .chip {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.96);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.about-chips.in .chip {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.about-chips.in .chip:nth-child(1) { transition-delay: 0.05s; }
.about-chips.in .chip:nth-child(2) { transition-delay: 0.14s; }
.about-chips.in .chip:nth-child(3) { transition-delay: 0.23s; }
.about-chips.in .chip:nth-child(4) { transition-delay: 0.32s; }

.about-chips.in .chip:hover {
  transform: translate3d(0, -3px, 0) scale(1);
}

/* ---------- Servizi ---------- */

.services {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 18%;
  height: 220px;
  background: linear-gradient(105deg, transparent 8%, rgba(255, 255, 255, 0.72) 45%, rgba(30, 168, 194, 0.10) 52%, transparent 88%);
  opacity: 0.66;
  pointer-events: none;
  transform: translate3d(-26%, 0, 0) rotate(-5deg);
  animation: svc-section-sheen 13s var(--ease-out) infinite;
  will-change: transform, opacity;
}

.services .container {
  position: relative;
  z-index: 1;
}

/* ----- Service explorer: lista editoriale + pannello sticky ----- */

.svc-explorer {
  display: block;
}

.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}


.svc-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 21px 18px 21px 22px;
  overflow: hidden;
}

/* Riempimento gradiente che scorre da sinistra (solo transform: 60fps) */
.svc-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal-100) 0%, rgba(238, 248, 251, 0) 85%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}

/* Barra accento verticale */
.svc-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}

.svc-item:hover::before,
.svc-item.is-active::before {
  transform: scaleX(1);
}

.svc-item:hover::after,
.svc-item.is-active::after {
  transform: scaleY(1);
}

.svc-item:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: -2px;
}

/* Chip icona su ogni riga */
.svc-ic {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  transition: transform 0.45s var(--ease-out), background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.svc-ic svg {
  width: 23px;
  height: 23px;
}

.svc-item:hover .svc-ic,
.svc-item.is-active .svc-ic {
  background: linear-gradient(140deg, var(--teal-500), var(--teal-700));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(21, 146, 170, 0.25);
  transform: scale(1.04);
}

.svc-idx {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #9db4c0;
  transition: color 0.4s ease;
}

.svc-item:hover .svc-idx,
.svc-item.is-active .svc-idx {
  color: var(--teal-600);
}

.svc-txt {
  position: relative;
  flex: 1;
  min-width: 0;
}

.svc-title {
  display: block;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  transition: transform 0.45s var(--ease-out), color 0.4s ease;
  will-change: transform;
}

.svc-item:hover .svc-title,
.svc-item.is-active .svc-title {
  transform: translateX(6px);
  color: var(--teal-700);
}

/* Contenitore a fisarmonica: anima l'altezza reale (0fr -> 1fr), 60fps.
   Su desktop resta sempre chiuso (la descrizione è nel pannello);
   su mobile si apre sulla voce attiva. */
.svc-desc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.svc-desc {
  overflow: hidden;
  min-height: 0;
  padding-top: 7px;
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
}

.svc-arrow {
  position: relative;
  margin-left: -6px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal-600);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}

.svc-item:hover .svc-arrow,
.svc-item.is-active .svc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Pannello di dettaglio: non piu mostrato, le descrizioni sono nelle card */
.svc-panel {
  display: none;
  position: sticky;
  top: 100px;
  align-self: start;
  isolation: isolate;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(30, 168, 194, 0.12), transparent 58%),
    linear-gradient(155deg, #ffffff 0%, #ffffff 48%, var(--teal-50) 100%);
  border: 1px solid var(--teal-100);
  border-radius: 30px;
  padding: 46px;
  box-shadow:
    0 1px 2px rgba(13, 58, 92, 0.04),
    0 26px 52px -18px rgba(15, 125, 147, 0.3),
    0 12px 24px -16px rgba(13, 58, 92, 0.16);
  overflow: hidden;
}

.svc-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.svc-panel::after {
  content: "";
  position: absolute;
  inset: -70% auto -70% -42%;
  z-index: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent);
  opacity: 0;
  transform: translate3d(-120%, 0, 0) rotate(18deg);
  animation: svc-panel-sheen 8.8s var(--ease-out) infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.svc-panel > * {
  position: relative;
  z-index: 1;
}


.svc-slides {
  position: relative;
  min-height: 274px;
}

.svc-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
  will-change: transform, opacity;
}

.svc-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.svc-slide-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--teal-500), var(--teal-700));
  color: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  box-shadow:
    0 16px 32px -12px rgba(15, 125, 147, 0.5),
    0 0 0 7px rgba(30, 168, 194, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}

.svc-slide-icon svg {
  width: 32px;
  height: 32px;
}

.svc-slide.is-active .svc-slide-icon {
  transform: translate3d(0, -2px, 0) scale(1.03);
}

.svc-slide h3 {
  color: var(--navy-900);
  font-size: 1.5rem;
  margin-bottom: 12px;
  max-width: 20ch;
}

.svc-slide p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 42ch;
}

.svc-panel-cta {
  position: relative;
  margin-top: 30px;
  align-self: flex-start;
}

@keyframes svc-section-sheen {
  0%,
  18% {
    opacity: 0;
    transform: translate3d(-26%, 0, 0) rotate(-5deg);
  }

  45% {
    opacity: 0.66;
  }

  78%,
  100% {
    opacity: 0;
    transform: translate3d(26%, 0, 0) rotate(-5deg);
  }
}

@keyframes svc-panel-sheen {
  0%,
  42% {
    opacity: 0;
    transform: translate3d(-120%, 0, 0) rotate(18deg);
  }

  55% {
    opacity: 0.68;
  }

  76%,
  100% {
    opacity: 0;
    transform: translate3d(460%, 0, 0) rotate(18deg);
  }
}

@media (min-width: 961px) {
  /* Desktop: prestazioni disposte orizzontalmente in una griglia di card */
  .svc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    border-top: 0;
  }

  .svc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 28px 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: default;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
      border-color 0.4s var(--ease-out);
  }

  /* Sulle card niente riempimento a scorrimento ne barra laterale */
  .svc-item::before,
  .svc-item::after {
    display: none;
  }

  .svc-item:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-100);
  }

  .svc-item:hover .svc-ic {
    transform: scale(1.05);
  }

  /* Titolo pieno, senza scorrimento orizzontale */
  .svc-item:hover .svc-title {
    transform: none;
  }

  .svc-title {
    font-size: 1.12rem;
  }

  /* La descrizione e sempre visibile nella card */
  .svc-desc-wrap {
    grid-template-rows: 1fr;
  }

  .svc-desc {
    padding-top: 7px;
    font-size: 0.96rem;
  }

  /* Numero progressivo come badge in alto a destra */
  .svc-idx {
    position: absolute;
    top: 24px;
    right: 24px;
    margin: 0;
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 30px;
    border: 1px solid var(--teal-100);
    border-radius: 999px;
    background: var(--teal-50);
    color: var(--teal-600);
    transition: color 0.35s ease, background-color 0.35s ease, transform 0.35s var(--ease-out);
  }

  .svc-item:hover .svc-idx {
    color: #fff;
    background: linear-gradient(140deg, var(--teal-500), var(--teal-700));
    border-color: transparent;
  }

  /* La freccia non serve piu senza pannello */
  .svc-arrow {
    display: none;
  }
}

@media (max-width: 960px) {
  /* Mobile: nessuna card, ogni prestazione si apre a fisarmonica */
  .svc-explorer {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Il pannello di destra non serve su mobile */
  .svc-panel {
    display: none;
  }

  .svc-item {
    align-items: flex-start;
    padding: 20px 8px 20px 18px;
  }

  .svc-ic {
    margin-top: 1px;
  }

  /* Numero e chevron allineati alla riga del titolo */
  .svc-idx,
  .svc-arrow {
    margin-top: 4px;
  }

  /* Niente scorrimento del titolo su mobile */
  .svc-item:hover .svc-title,
  .svc-item.is-active .svc-title {
    transform: none;
  }

  /* Chevron indicatore fisarmonica */
  .svc-arrow {
    display: block;
    opacity: 1;
    margin-left: 2px;
    transform: rotate(90deg);
    transition: transform 0.4s var(--ease-out);
  }

  .svc-item.is-active .svc-arrow {
    transform: rotate(-90deg);
    color: var(--teal-700);
  }

  /* Apertura a tendina della descrizione sulla voce attiva */
  .svc-item.is-active .svc-desc-wrap {
    grid-template-rows: 1fr;
  }
}

.services-note {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
  padding: 16px 22px;
}

/* ---------- Come funziona ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Zone e disponibilità ---------- */

.zones {
  background: var(--bg-soft);
}

.zones-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  will-change: transform;
}

.zone-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.zone-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal-600);
  flex-shrink: 0;
}

.zones-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.availability-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(30, 168, 194, 0.12), transparent 55%),
    linear-gradient(158deg, #ffffff 0%, var(--teal-50) 100%);
  color: var(--ink);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    var(--shadow-md);
}

/* Alone teal decorativo in alto a destra */
.availability-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 168, 194, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Badge "attiva ora" con puntino pulsante */
.availability-card .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.availability-card .live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 0 rgba(31, 174, 84, 0.5);
  animation: live-pulse 2s var(--ease-out) infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 174, 84, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 174, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 174, 84, 0); }
}

.availability-card h3 {
  color: var(--teal-700);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.availability-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.availability-card p strong {
  color: var(--teal-700);
}

.availability-card .days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 28px;
}

.availability-card .day {
  text-align: center;
  padding: 11px 2px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid var(--teal-100);
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(13, 58, 92, 0.05);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  will-change: transform;
}

.availability-card .day.weekend {
  background: linear-gradient(150deg, var(--teal-500), var(--teal-700));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 146, 170, 0.32);
}

.availability-card:hover .day.weekend {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(21, 146, 170, 0.4);
}

/* ---------- Recensioni ---------- */

.reviews {
  background: #ffffff;
  overflow: hidden;
}

.rev-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 40px;
  background: linear-gradient(135deg, var(--teal-50), #ffffff);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 26px 34px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}

.rev-score {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

.rev-summary-mid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rev-stars {
  display: inline-flex;
  gap: 3px;
  color: #fbbc04;
}

.rev-stars svg {
  width: 20px;
  height: 20px;
}

.rev-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.rev-gicon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rev-summary .btn {
  margin-left: auto;
}

/* Marquee a scorrimento infinito (solo transform: 60fps) */
.rev-marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.rev-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 10px 4px;
  animation: rev-scroll 46s linear infinite;
  will-change: transform;
}

.rev-marquee:hover .rev-track {
  animation-play-state: paused;
}

.rev-marquee.is-paused .rev-track {
  animation-play-state: paused;
}

@keyframes rev-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.rev-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 400px;
  height: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.rev-card.is-expanded {
  height: auto;
  min-height: 340px;
}

.rev-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.rev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rev-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.rev-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}

.rev-card.is-expanded .rev-body {
  flex: none;
  overflow: visible;
}

.rev-card.is-expanded .rev-body::after {
  opacity: 0;
}

.rev-text {
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.6;
}

.rev-more {
  align-self: flex-start;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--teal-700);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.rev-more:hover {
  color: var(--navy-900);
}

.rev-more:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 4px;
  border-radius: 6px;
}

.rev-author {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rev-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--a, var(--teal-500)), var(--b, var(--navy-800)));
}

.rev-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.rev-meta strong {
  color: var(--navy-900);
  font-size: 0.96rem;
}

.rev-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.rev-mobile-controls {
  display: none;
}

@media (max-width: 700px) {
  .rev-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .rev-track {
    animation: none;
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    min-height: 368px;
    margin-inline: auto;
    padding: 4px 0 8px;
  }

  .rev-card {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-width: 360px;
    height: 360px;
    margin-inline: auto;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(18px, 0, 0) scale(0.98);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out), visibility 0.35s;
  }

  .rev-card.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
  }

  .rev-card.is-expanded {
    height: auto;
    min-height: 360px;
  }

  .rev-card:hover {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .rev-mobile-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
  }

  .rev-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--teal-100);
    cursor: pointer;
    transition: width 0.25s var(--ease-out), background-color 0.25s ease;
  }

  .rev-dot.is-active {
    width: 28px;
    background: var(--teal-600);
  }

  .rev-dot:focus-visible {
    outline: 2px solid var(--teal-600);
    outline-offset: 4px;
  }

  .rev-dupe {
    display: none;
  }

  .rev-summary {
    padding: 24px;
  }

  .rev-score {
    font-size: 2.6rem;
  }

  .rev-summary .btn {
    margin-left: 0;
  }
}

/* ---------- FAQ ---------- */

#faq {
  background: var(--bg-soft);
}

.faq-list {
  max-width: 780px;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary .faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--teal-600);
  transition: transform 0.3s var(--ease-out);
}

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

.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Contatti ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(30, 168, 194, 0.55), transparent 60%),
    radial-gradient(70% 110% at 0% 100%, rgba(13, 58, 92, 0.45), transparent 60%),
    linear-gradient(155deg, var(--teal-700) 0%, var(--teal-600) 100%);
  color: #fff;
}

.contact .eyebrow {
  color: var(--teal-100);
}

.contact h2 {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact .lead-contact {
  color: rgba(255, 255, 255, 0.88);
  margin: 16px 0 30px;
  max-width: 480px;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact .btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.contact .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--teal-700);
}

.contact-info {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, var(--shadow-md);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-info .row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info .row svg {
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  will-change: transform;
}

.contact-info .row:hover svg {
  transform: translateY(-2px);
}

.contact-info .row strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-100);
  margin-bottom: 3px;
}

.contact-info .row span,
.contact-info .row a {
  color: #fff;
  font-size: 0.98rem;
}

.contact-info .row a {
  color: #fff;
  font-weight: 600;
}

.contact-info .row a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0a2c46;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 36px;
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.footer-brand strong {
  color: #fff;
  display: block;
}

.footer-legal p {
  margin-bottom: 6px;
}

.footer-links {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 820px;
}

/* ---------- WhatsApp flottante ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(31, 174, 84, 0.45);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  will-change: transform;
}

.wa-float svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 174, 84, 0.5);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  opacity: 0.5;
  z-index: -1;
  animation: wa-pulse 2.4s var(--ease-out) infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }

  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* ---------- Animazioni reveal (60fps: solo transform/opacity) ---------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}

.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.svc-explorer.reveal.in {
  transform: none;
  transition: none;
  will-change: auto;
}

/* Entrata hero al caricamento */
.hero .reveal-hero {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  animation: hero-in 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
  will-change: transform, opacity;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ---------- Pagine legali ---------- */

.legal-page {
  padding: 150px 0 80px;
  max-width: 820px;
}

.legal-page h1 {
  margin-bottom: 10px;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page strong {
  color: var(--ink);
}

/* ---------- Accessibilità: riduzione movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero .reveal-hero,
  .about-chips .chip {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .about-text h2::after {
    transition: none;
  }

  .hero-blob-1,
  .hero-blob-2,
  .services::before,
  .svc-panel::after,
  .wa-float::before,
  .availability-card .live::before,
  .svc-panel::before {
    animation: none;
  }

  .btn,
  .wa-float,
  .zone-item,
  .chip,
  .svc-ic,
  .svc-desc-wrap,
  .svc-item::before,
  .svc-item::after,
  .svc-idx,
  .svc-title,
  .svc-arrow,
  .svc-slide,
  .svc-slide-icon,
  .rev-card,
  .rev-dot {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {

  .hero-grid,
  .zones-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-card img {
    width: 84px;
    height: 84px;
  }

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

  section {
    padding: 64px 0;
  }
}

/* Il brand esteso non entra con 6 voci di menu: sotto ~1260px la nav
   collassa nel menu a tendina hamburger. */
@media (max-width: 1260px) {
  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 24px;
    font-size: 1rem;
    white-space: normal;
  }

  .main-nav a::after {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .zone-list {
    grid-template-columns: 1fr;
  }

  .brand-name span {
    display: none;
  }

  .brand-name strong {
    font-size: 0.88rem;
  }

  .header-cta .btn-label {
    display: none;
  }

  .header-cta {
    padding: 10px 14px;
  }

  .availability-card .day {
    font-size: 0.66rem;
    padding: 8px 1px;
  }
}
