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

:root {
  --navy-900: #15568f;
  --navy-800: #1a6aac;
  --teal-700: #1683c0;
  --teal-600: #1f97d6;
  --teal-500: #3aabe8;
  --teal-100: #d5ebfa;
  --teal-50: #eef6fd;
  --call-red: #e23b3b;
  --ink: #1f4a70;
  --muted: #4d6f92;
  --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;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 4px;
  border-radius: 6px;
}

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: sticky;
  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 {
  position: relative;
  display: flex;
  align-items: center;
  height: 128px;
}

/* Nav spaccata: due gruppi di uguale larghezza ai lati del logo centrato */
.nav-groups {
  display: contents;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-inline: 44px;
  line-height: 0;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}

.header-logo:hover {
  transform: translateY(-2px);
}

.header-logo img {
  width: 116px;
  height: 116px;
}

/* "Chiama ora" spinto in fondo a destra del gruppo, senza rompere il
   centraggio del logo (i gruppi restano di uguale larghezza) */
.header-cta {
  margin-left: auto;
}

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

.brand img {
  width: 60px;
  height: 60px;
  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: 28px;
}

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

/* Dropdown Prestazioni: pannello leggero, leggibile e navigabile da tastiera. */
.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  width: calc(100% + 24px);
  height: 18px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--teal-700);
}

.nav-dropdown-toggle:focus-visible {
  outline: 3px solid rgba(32, 150, 151, 0.2);
  outline-offset: 6px;
  border-radius: 5px;
}

.nav-dropdown-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.28s var(--ease-out);
}

.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 58px);
  left: -18px;
  width: min(780px, calc(100vw - 40px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(13, 59, 76, 0.1);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(9, 39, 52, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.28s var(--ease-out), visibility 0.2s;
  will-change: transform, opacity;
}

.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.nav-dropdown-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px 13px;
  border-bottom: 1px solid var(--line);
}

.nav-dropdown-head span {
  color: var(--teal-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-dropdown-head strong {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-top: 10px;
}

.nav-service-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(13, 59, 76, 0.08);
  border-radius: 15px;
  background: linear-gradient(180deg, #fbfdfe 0%, #f7fbfc 100%);
}

.nav-service-group-heading {
  margin: 0 4px 7px;
  color: var(--teal-700);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-service-group-toggle {
  display: none;
}

.nav-service-group-list {
  display: grid;
  gap: 2px;
}

.main-nav .nav-dropdown-panel a,
.main-nav .nav-dropdown-panel a:hover {
  color: var(--navy-900);
}

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

.main-nav .nav-dropdown-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 7px;
  min-height: 41px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.81rem;
  line-height: 1.23;
  white-space: normal;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}

.main-nav .nav-dropdown-link:hover,
.main-nav .nav-dropdown-link:focus-visible,
.main-nav .nav-dropdown-link[aria-current="page"] {
  background: var(--teal-50);
  border-color: rgba(32, 150, 151, 0.15);
  transform: translate3d(0, -1px, 0);
}

.main-nav .nav-dropdown-link:focus-visible,
.main-nav .nav-dropdown-all:focus-visible {
  outline: 3px solid rgba(32, 150, 151, 0.18);
  outline-offset: 2px;
}

.nav-dropdown-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eef7f7;
  color: var(--teal-700);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.nav-dropdown-arrow {
  width: 14px;
  height: 14px;
  color: var(--teal-700);
  transition: transform 0.25s var(--ease-out);
}

.nav-dropdown-link:hover .nav-dropdown-arrow,
.nav-dropdown-all:hover .nav-dropdown-arrow {
  transform: translate3d(3px, 0, 0);
}

.main-nav .nav-dropdown-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 8px 1px;
  border-top: 1px solid var(--line);
  color: var(--teal-700);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: normal;
}

.nav-service-group-count,
.nav-service-group-chevron {
  display: none;
}

.main-nav .nav-dropdown-all:hover {
  color: var(--teal-800);
}

/* Icone delle voci e riga azioni: esistono solo nel menu mobile */
.nav-ico {
  display: none;
}

.nav-menu-actions {
  display: none;
}

.nav-mobile-heading,
.nav-backdrop {
  display: none;
}

/* 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" con bordo rosso */
.btn-call {
  background: #fff;
  color: var(--call-red);
  border-color: var(--call-red);
  box-shadow: 0 6px 18px rgba(226, 59, 59, 0.18);
}

.btn-call svg {
  color: var(--call-red);
}

.btn-call:hover {
  background: #fff;
  color: #c92f2f;
  border-color: #c92f2f;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 47, 47, 0.24);
}

.btn-call:hover svg {
  color: #c92f2f;
}

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

.btn-request {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy-900), var(--teal-700));
  box-shadow: 0 8px 22px rgba(21, 86, 143, 0.22);
}

.btn-request:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 86, 143, 0.3);
}

.btn-request:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.header-cta.btn-request {
  padding-inline: 18px;
  font-size: 0.86rem;
}

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

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-50) 0%, #ffffff 100%);
}

/* Logo grande e centrato: solo su mobile (vedi media query). Su desktop il
   logo sta al centro della nav spaccata. */
.brand-topbar {
  display: none;
  justify-content: center;
  padding: 22px 0 14px;
  background: #fff;
}

.brand-topbar-link {
  display: inline-flex;
  line-height: 0;
}

.brand-topbar img {
  width: 184px;
  height: 184px;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}

.brand-topbar-link:hover img {
  transform: translateY(-2px);
}

/* Logo compatto nella barra: solo su mobile (vedi media query) */
.brand-mobile {
  display: none;
  line-height: 0;
}

.brand-mobile img {
  width: 48px;
  height: 48px;
}

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

/* Negli hero (home e pagine prestazioni), sui dispositivi con
   mouse/trackpad (desktop) mostriamo "Richiedi assistenza" (apre il
   modulo) al posto di "Chiama ora"; su touch resta "Chiama ora".
   Di default (touch) il form e nascosto. */
.hero-cta-request {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .hero-cta-call {
    display: none;
  }

  .hero-cta-request {
    display: inline-flex;
  }
}

.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: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.about-text {
  text-align: left;
}

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

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

.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: 20px 0 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;
}

/* Riquadro di fiducia usato finché non sarà disponibile una foto professionale */
.about-card {
  align-self: stretch;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(58, 171, 232, 0.16), transparent 62%),
    linear-gradient(145deg, var(--teal-50), #fff 64%);
  box-shadow: var(--shadow-md);
}

.about-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-800));
  box-shadow: 0 10px 24px rgba(22, 131, 192, 0.22);
}

.about-card-icon svg {
  width: 30px;
  height: 30px;
}

.about-card h3 {
  max-width: 360px;
  margin-bottom: 26px;
  color: var(--navy-900);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.about-card-list {
  display: grid;
  gap: 20px;
}

.about-card-list li {
  position: relative;
  padding-left: 24px;
}

.about-card-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 5px rgba(58, 171, 232, 0.12);
}

.about-card-list strong,
.about-card-list span {
  display: block;
}

.about-card-list strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.about-card-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.about-emergency {
  margin-top: 28px;
  padding: 15px 17px;
  border-left: 4px solid var(--call-red);
  border-radius: 10px;
  background: rgba(226, 59, 59, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.about-emergency strong {
  color: #b72a2a;
}

/* Pill credenziali sotto il testo */
.about-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  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;
  color: inherit;
  text-decoration: none;
  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-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.svc-detail-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease-out);
}

.svc-item:hover .svc-detail-link svg,
.svc-item:focus-visible .svc-detail-link svg {
  transform: translate3d(4px, 0, 0);
}

.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: pointer;
    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-desc-wrap,
  .svc-item.is-active .svc-desc-wrap {
    grid-template-rows: 1fr;
  }

  .svc-arrow {
    display: none;
  }
}

.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.active {
  background: linear-gradient(150deg, var(--teal-500), var(--teal-700));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 143, 206, 0.32);
}

.availability-card:hover .day.active {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 143, 206, 0.4);
}

/* Orari di contatto */
.availability-card .hours {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.availability-card .hours li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--teal-100);
  font-size: 0.92rem;
}

.availability-card .hours span {
  color: var(--muted);
  font-weight: 600;
}

.availability-card .hours strong {
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
}

/* ---------- 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.is-manually-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;
}

.rev-motion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 8px 12px;
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rev-motion-toggle:hover,
.rev-motion-toggle[aria-pressed="true"] {
  color: var(--teal-700);
  border-color: var(--teal-500);
  background: var(--teal-50);
}

.rev-motion-toggle svg {
  width: 16px;
  height: 16px;
}

.rev-motion-toggle .rev-play-icon,
.rev-motion-toggle[aria-pressed="true"] .rev-pause-icon {
  display: none;
}

.rev-motion-toggle[aria-pressed="true"] .rev-play-icon {
  display: block;
}

@media (max-width: 700px) {
  .wa-float,
  .chat-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 16px, 0) scale(0.86);
  }

  .wa-float.is-visible,
  .chat-launcher.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }

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

.footer-credit {
  margin-top: 18px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.52);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  transition: color 0.2s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* ---------- 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), opacity 0.25s ease;
  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;
  }
}

/* ---------- Assistente virtuale (chat widget) ---------- */

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 300;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--teal-500), var(--navy-800));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(21, 86, 143, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.25s ease;
  will-change: transform;
}

.chat-launcher:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 86, 143, 0.46);
}

.chat-launcher svg {
  width: 30px;
  height: 30px;
  grid-area: 1 / 1;
}

.chat-launcher-icon-close {
  display: none;
}

.chat-launcher.is-open .chat-launcher-icon-open {
  display: none;
}

.chat-launcher.is-open .chat-launcher-icon-close {
  display: block;
}

.chat-tip {
  position: fixed;
  right: 22px;
  bottom: 172px;
  z-index: 300;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: chat-tip-in 0.3s var(--ease-out);
}

@keyframes chat-tip-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.chat-panel {
  position: fixed;
  right: 22px;
  top: 16px;
  bottom: 172px;
  z-index: 301;
  width: 368px;
  max-width: calc(100vw - 44px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 58, 92, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.25s var(--ease-out), visibility 0.22s;
}

.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Su desktop, con schermi molto alti, il pannello non deve crescere
   all'infinito: si ferma a un'altezza comoda e resta agganciato in
   alto vicino al lanciatore. Su mobile (<=480px) vale invece la
   regola a tutto schermo piu sotto, che deve prevalere. */
@media (min-width: 481px) and (min-height: 780px) {
  .chat-panel {
    max-height: 600px;
  }
}

.chat-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(140deg, var(--teal-500), var(--navy-800));
  color: #fff;
  flex-shrink: 0;
}

.chat-panel-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.chat-panel-icon svg {
  width: 19px;
  height: 19px;
}

.chat-panel-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-panel-head-text strong {
  font-size: 0.96rem;
}

.chat-panel-head-text span {
  font-size: 0.76rem;
  opacity: 0.88;
}

.chat-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.chat-head-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat-head-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.chat-head-btn svg {
  width: 15px;
  height: 15px;
}

.chat-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  background: var(--teal-50);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.chat-disclaimer svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--navy-800);
}

.chat-messages {
  flex: 1;
  /* min-height:0 permette all'area di comprimersi e scorrere invece di
     spingere fuori dal pannello i pulsanti in fondo su finestre basse. */
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-msg-assistant {
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--navy-900);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 15px;
}

.chat-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
  animation: chat-typing 1.1s ease-in-out infinite;
}

.chat-msg-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-msg-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}

/* Le regole author con display: ... vincono sull'attributo [hidden]
   della UA: ripristiniamo esplicitamente display:none quando nascosti. */
.chat-suggestions[hidden] {
  display: none;
}

.chat-suggestions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chat-suggestions button:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--bg-soft);
}

.chat-form input:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
}

.chat-form input:disabled {
  opacity: 0.6;
}

.chat-send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat-send:hover {
  background: var(--navy-800);
}

.chat-send:disabled {
  opacity: 0.55;
  cursor: default;
}

.chat-send svg {
  width: 17px;
  height: 17px;
}

.chat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
  flex-shrink: 0;
}

.chat-actions .btn {
  padding: 9px 10px;
  font-size: 0.82rem;
}

.chat-actions .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* "Richiedi assistenza" (apre il modulo) al posto di "Chiama ora" sui
   dispositivi con mouse/trackpad (desktop), a prescindere dalla
   larghezza della finestra; su touch resta "Chiama ora". Serve anche
   che la pagina abbia il modulo (classe chat-has-form). Di default
   nascosto (per i touch). */
.chat-action-request {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .chat-actions.chat-has-form .chat-action-call {
    display: none;
  }

  .chat-actions.chat-has-form .chat-action-request {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  /* Su iPhone il pannello diventa uno sheet quasi a tutto schermo:
     ancorato in alto e in basso alle safe-area di iOS (notch e home
     indicator), cosi la parte bassa con i pulsanti non finisce mai
     dietro la barra di Safari e la chat resta grande. Copre il
     lanciatore, ma il pannello ha il suo tasto di chiusura. */
  .chat-panel {
    left: 10px;
    right: 10px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    max-height: none;
  }
}

/* ---------- 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);
}

.legal-summary,
.legal-callout {
  margin: 28px 0 34px;
  padding: 20px 22px;
  border: 1px solid #cfe4ee;
  border-radius: 16px;
  background: linear-gradient(145deg, #f3faff, #fff);
  box-shadow: var(--shadow-sm);
}

.legal-summary > strong,
.legal-callout > strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-summary p,
.legal-callout p {
  margin: 0;
  color: var(--ink);
}

.legal-callout {
  border-color: #ead9a9;
  background: #fffaf0;
}

.legal-callout > strong {
  color: #8a6316;
}

.legal-table-wrap {
  margin: 20px 0 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.55;
}

.legal-table th,
.legal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #edf7fb;
  color: var(--navy-900);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table td {
  color: var(--muted);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef4f7;
  color: var(--navy-900);
  font-size: 0.82em;
}

@media (max-width: 640px) {
  .legal-page {
    padding-top: 128px;
  }

  .legal-page .updated {
    margin-bottom: 26px;
  }

  .legal-page h2 {
    margin-top: 32px;
  }

  .legal-summary,
  .legal-callout {
    padding: 17px 18px;
  }

  .legal-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .legal-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .legal-table td {
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--teal-700);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* ---------- 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;
  }

  .rev-track {
    animation: none;
    transform: 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;
  }

  .request-dialog,
  .request-close,
  .request-progress-line i,
  .request-progress-step span,
  .request-field input,
  .request-field select,
  .request-field textarea {
    transition: none;
  }

  .nav-dropdown-panel,
  .nav-dropdown-chevron,
  .nav-dropdown-link,
  .nav-dropdown-arrow,
  .nav-backdrop,
  .nav-service-group-toggle,
  .nav-service-group-list,
  .nav-service-group-chevron {
    transition: none;
  }

  .request-dialog::backdrop,
  .request-submit.is-loading svg {
    animation: none;
  }
}

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

@media (max-width: 960px) {

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

  .about-card {
    min-height: 280px;
  }

  .hero {
    padding-top: 40px;
  }

  .brand-topbar {
    padding: 10px 0 8px;
  }

  .brand-topbar img {
    width: 118px;
    height: 118px;
  }

  .hero-grid {
    gap: 40px;
  }

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

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

  section {
    padding: 64px 0;
  }
}

/* Sotto ~1120px la nav collassa nel menu a tendina hamburger. */
@media (max-width: 1120px) {
  /* Logo grande e centrato anche su mobile; l'hamburger va in alto a destra
     e la riga della nav collassa per non lasciare spazio vuoto. */
  .brand-topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 0 10px;
  }

  .brand-topbar img {
    width: 136px;
    height: 136px;
  }

  .brand-topbar-tagline {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-align: center;
    padding: 0 24px;
  }

  /* Su desktop il logo sta nella nav; su mobile lo nascondo (c'e brand-topbar) */
  .header-logo {
    display: none;
  }

  /* Header senza blur su mobile: cosi l'hamburger fixed si ancora al viewport */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-inner {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .nav-toggle {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 145;
    padding: 0;
    border: 0;
    background: rgba(7, 31, 43, 0.42);
    opacity: 0;
    visibility: hidden;
    cursor: default;
    transition: opacity 0.24s ease, visibility 0.24s;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer laterale: mantiene la navigazione compatta anche con molti servizi. */
  .nav-groups {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 150;
    width: min(410px, calc(100vw - 22px));
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: #fff;
    border-left: 1px solid rgba(13, 59, 76, 0.08);
    border-radius: 22px 0 0 22px;
    box-shadow: -22px 0 70px rgba(7, 31, 43, 0.18);
    padding: 20px 16px 18px;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(102%, 0, 0);
    transition: opacity 0.2s ease, transform 0.32s var(--ease-out), visibility 0.25s;
    will-change: transform, opacity;
  }

  .nav-groups.open {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }

  .nav-mobile-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    margin: 0 54px 12px 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-mobile-heading span {
    color: var(--teal-700);
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .nav-mobile-heading strong {
    margin-top: 3px;
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 650;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--navy-900);
    white-space: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

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

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

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--navy-900);
    font-size: 1rem;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:active,
  .nav-dropdown-toggle:focus-visible,
  .nav-dropdown.is-open .nav-dropdown-toggle {
    background: var(--teal-50);
    color: var(--teal-700);
  }

  .nav-dropdown-toggle:focus-visible {
    outline-offset: 1px;
  }

  .nav-dropdown-chevron {
    width: 18px;
    height: 18px;
    margin-left: auto;
  }

  .nav-dropdown-panel {
    position: static;
    width: auto;
    max-height: 0;
    margin: 0 4px 0 52px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -5px, 0);
    transform-origin: top;
    transition: max-height 0.35s var(--ease-out), opacity 0.2s ease, transform 0.3s var(--ease-out), visibility 0.2s;
    will-change: max-height, transform, opacity;
  }

  .nav-dropdown.is-open .nav-dropdown-panel {
    max-height: 620px;
    margin-bottom: 8px;
    padding-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }

  .nav-dropdown-head {
    display: none;
  }

  .nav-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 0;
  }

  .nav-service-group {
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
  }

  .nav-service-group-heading {
    display: none;
  }

  .nav-service-group-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(13, 59, 76, 0.08);
    border-radius: 11px;
    background: #f7fafb;
    color: var(--navy-900);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .nav-service-group-toggle:hover,
  .nav-service-group-toggle:focus-visible,
  .nav-service-group.is-expanded .nav-service-group-toggle {
    border-color: rgba(32, 150, 151, 0.18);
    background: var(--teal-50);
  }

  .nav-service-group-toggle:focus-visible {
    outline: 3px solid rgba(32, 150, 151, 0.17);
    outline-offset: 1px;
  }

  .nav-service-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--teal-700);
    font-size: 0.63rem;
    font-weight: 750;
  }

  .nav-service-group-chevron {
    display: block;
    width: 16px;
    height: 16px;
    color: var(--teal-700);
    transition: transform 0.25s var(--ease-out);
  }

  .nav-service-group.is-expanded .nav-service-group-chevron {
    transform: rotate(180deg);
  }

  .nav-service-group-list {
    display: grid;
    gap: 1px;
    max-height: 0;
    margin: 0 0 0 7px;
    padding-left: 7px;
    overflow: hidden;
    border-left: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -4px, 0);
    transition: max-height 0.3s var(--ease-out), margin 0.3s var(--ease-out), opacity 0.18s ease, transform 0.25s var(--ease-out), border-color 0.2s ease, visibility 0.2s;
  }

  .nav-service-group.is-expanded .nav-service-group-list {
    max-height: 250px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-color: rgba(32, 150, 151, 0.2);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .main-nav .nav-dropdown-link {
    grid-template-columns: 22px minmax(0, 1fr) 14px;
    gap: 7px;
    min-height: 37px;
    padding: 5px 7px;
    border: 0;
    border-radius: 9px;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .main-nav .nav-dropdown-link:hover,
  .main-nav .nav-dropdown-link:active,
  .main-nav .nav-dropdown-link:focus-visible,
  .main-nav .nav-dropdown-link[aria-current="page"] {
    background: rgba(227, 246, 245, 0.9);
    border-color: transparent;
    transform: none;
  }

  .nav-dropdown-index {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.58rem;
  }

  .nav-dropdown-arrow {
    width: 14px;
    height: 14px;
  }

  .main-nav .nav-dropdown-all {
    margin-top: 5px;
    padding: 10px 8px 5px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  /* Icona in un riquadro tenue: da colore senza appesantire */
  .nav-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--teal-50);
    color: var(--teal-700);
    flex-shrink: 0;
  }

  .main-nav a:hover .nav-ico,
  .main-nav a:active .nav-ico,
  .nav-dropdown-toggle:hover .nav-ico,
  .nav-dropdown-toggle:active .nav-ico,
  .nav-dropdown.is-open .nav-dropdown-toggle .nav-ico {
    background: #fff;
  }

  .nav-ico svg {
    width: 19px;
    height: 19px;
  }

  /* Azioni rapide in fondo al menu: Chiama + WhatsApp affiancati */
  .nav-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 4px 2px;
    border-top: 1px solid var(--line);
  }

  .nav-menu-actions .btn {
    padding: 12px 10px;
    font-size: 0.92rem;
  }

  /* Su mobile "Chiama ora" della barra e nascosto (c'e nel menu) */
  .main-nav .header-cta {
    display: none;
  }
}

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

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

  .brand-topbar {
    gap: 5px;
    padding: 10px 0 8px;
  }

  .brand-topbar img {
    width: 112px;
    height: 112px;
  }

  .about-card {
    padding: 28px 24px;
  }

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

/* ---------- Pagine delle singole prestazioni ---------- */

.detail-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 235, 241, 0.75);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.3s ease;
}

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

.detail-header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 24px;
}

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

.detail-brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.detail-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.detail-brand-copy strong {
  color: var(--navy-900);
  font-size: 0.96rem;
}

.detail-brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.detail-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.detail-header .btn {
  flex: 0 0 auto;
}

.detail-breadcrumb {
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.detail-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #9db4c0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 72px;
  background:
    radial-gradient(circle at 90% 10%, rgba(58, 171, 232, 0.18), transparent 30%),
    linear-gradient(180deg, var(--teal-50), #fff);
}

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

.detail-hero h1 {
  max-width: 770px;
  margin-bottom: 20px;
}

.detail-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-trust-list li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--teal-700);
  font-weight: 800;
}

.detail-quick-card {
  padding: 30px;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.detail-quick-card h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.detail-quick-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

.detail-quick-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-quick-list strong {
  display: block;
  color: var(--ink);
}

.detail-content-section {
  padding: 80px 0;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 72px;
  align-items: start;
}

.detail-article {
  min-width: 0;
}

.detail-article > section {
  padding: 0;
}

.detail-article > section + section {
  margin-top: 54px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.detail-article h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.detail-article p {
  margin-bottom: 16px;
  color: var(--muted);
}

.detail-check-list {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.detail-check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
}

.detail-check-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.detail-process li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.detail-process span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-weight: 800;
}

.detail-process strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.detail-process p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.detail-sidebar {
  position: sticky;
  top: 112px;
  padding: 26px;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  background: var(--teal-50);
}

.detail-sidebar h2 {
  margin-bottom: 16px;
  font-size: 1.22rem;
}

.detail-sidebar p,
.detail-sidebar li {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-sidebar ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-sidebar li {
  padding-top: 10px;
  border-top: 1px solid var(--teal-100);
}

.detail-sidebar .btn {
  width: 100%;
  margin-top: 10px;
}

.detail-faq {
  padding: 80px 0;
  background: var(--bg-soft);
}

.detail-faq .section-head {
  margin-bottom: 28px;
}

.detail-faq-list {
  display: grid;
  max-width: 900px;
  gap: 12px;
}

.detail-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.detail-faq summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.detail-faq summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 22px;
  color: var(--teal-700);
  font-size: 1.35rem;
}

.detail-faq details[open] summary::after {
  content: "−";
}

.detail-faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

.detail-related {
  padding: 80px 0;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-related-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.detail-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-500);
}

.detail-related-card strong {
  color: var(--teal-700);
  font-size: 1.05rem;
}

.detail-related-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-related-card em {
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal-700);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
}

.detail-cta {
  padding: 0 0 80px;
}

.detail-cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--teal-700));
  color: #fff;
}

.detail-cta-box h2 {
  margin-bottom: 8px;
  color: #fff;
}

.detail-cta-box p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-cta-box .btn-call {
  background: #fff;
}

.detail-emergency {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 960px) {
  .detail-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-nav {
    display: none;
  }

  .detail-header .btn {
    margin-left: auto;
  }

  .detail-hero-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .detail-quick-card {
    max-width: 620px;
  }

  .detail-sidebar {
    position: static;
  }

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

  .detail-cta-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-related-grid {
    grid-template-columns: 1fr;
  }

  .detail-header-inner {
    min-height: 74px;
    gap: 12px;
  }

  .detail-brand img {
    width: 50px;
    height: 50px;
  }

  .detail-brand-copy span {
    display: none;
  }

  .detail-brand-copy strong {
    max-width: 145px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .detail-header .btn {
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .detail-header .btn svg {
    width: 18px;
    height: 18px;
  }

  .detail-breadcrumb {
    padding-top: 14px;
  }

  .detail-hero {
    padding: 28px 0 56px;
  }

  .detail-lead {
    font-size: 1.04rem;
  }

  .detail-actions .btn {
    width: 100%;
  }

  .detail-quick-card {
    padding: 24px;
  }

  .detail-content-section,
  .detail-faq,
  .detail-related {
    padding: 60px 0;
  }

  .detail-content-grid {
    gap: 46px;
  }

  .detail-article > section + section {
    margin-top: 42px;
    padding-top: 42px;
  }

  .detail-cta {
    padding-bottom: 60px;
  }

  .detail-cta-box {
    padding: 28px 22px;
  }

  .detail-cta-actions .btn {
    width: 100%;
  }
}

/* ---------- Modulo richiesta assistenza ---------- */

body.request-modal-open {
  overflow: hidden;
}

.request-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(92svh, 860px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(8, 45, 73, 0.28);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
  will-change: transform, opacity;
}

.request-dialog.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.request-dialog::backdrop {
  background: rgba(8, 34, 55, 0.58);
  animation: request-backdrop-in 0.22s ease both;
}

@keyframes request-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.request-dialog-shell {
  position: relative;
  overflow: hidden;
}

.request-dialog-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--navy-900), var(--teal-500));
}

.request-dialog-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 30px 32px 24px;
  background: linear-gradient(145deg, #f5fbff 0%, #fff 72%);
  border-bottom: 1px solid var(--line);
}

.request-dialog-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--teal-100);
  border-radius: 17px;
  background: #fff;
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}

.request-dialog-icon svg {
  width: 27px;
  height: 27px;
}

.request-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.request-dialog-head h2 {
  margin-bottom: 6px;
  color: var(--navy-900);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.request-dialog-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.request-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), color 0.2s ease, border-color 0.2s ease;
}

.request-close:hover {
  color: var(--teal-700);
  border-color: var(--teal-500);
  transform: rotate(5deg) scale(1.04);
}

.request-close svg {
  width: 20px;
  height: 20px;
}

.request-form {
  padding: 26px 32px 30px;
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
}

.request-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.request-field-wide {
  grid-column: 1 / -1;
}

.request-field > span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.request-field b {
  color: var(--call-red);
}

.request-field em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 500;
}

.request-field input,
.request-field select,
.request-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbdfe9;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}

.request-field textarea {
  min-height: 86px;
  resize: vertical;
}

.request-field input::placeholder,
.request-field textarea::placeholder {
  color: #839dac;
}

.request-field input:hover,
.request-field select:hover,
.request-field textarea:hover {
  border-color: #9dc6db;
}

.request-field input:focus,
.request-field select:focus,
.request-field textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(31, 151, 214, 0.12);
}

.request-field small {
  align-self: flex-end;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.request-privacy {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.request-privacy input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal-700);
}

.request-privacy a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.request-notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #f4f8fa;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.request-notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--teal-700);
}

.request-status {
  min-height: 0;
  margin-top: 0;
  font-size: 0.84rem;
  font-weight: 600;
}

.request-status.is-error {
  margin-top: 14px;
  color: #a62b2b;
}

.request-status a {
  color: inherit;
  text-decoration: underline;
}

.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.request-cancel {
  padding: 11px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.request-submit {
  min-width: 190px;
  padding: 12px 21px;
  font-size: 0.92rem;
}

.request-submit.is-loading svg {
  animation: request-send-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes request-send-pulse {
  to { transform: translate3d(4px, -4px, 0); }
}

.request-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.request-success {
  padding: 48px 34px 42px;
  text-align: center;
}

.request-success-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #eaf8ef;
  color: var(--wa-green-dark);
}

.request-success-icon svg {
  width: 34px;
  height: 34px;
}

.request-success h2 {
  margin-bottom: 10px;
  color: var(--navy-900);
}

.request-success p {
  max-width: 510px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.request-success-close {
  min-width: 140px;
}

@media (max-width: 640px) {
  .request-dialog {
    width: calc(100% - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 22px;
  }

  .request-dialog-head {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 24px 20px 19px;
  }

  .request-dialog-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .request-dialog-icon svg {
    width: 23px;
    height: 23px;
  }

  .request-dialog-head p {
    display: none;
  }

  .request-close {
    width: 36px;
    height: 36px;
  }

  .request-form {
    padding: 21px 20px 24px;
  }

  .request-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .request-field-wide {
    grid-column: auto;
  }

  .request-field input,
  .request-field select {
    min-height: 46px;
  }

  .request-actions {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
  }

  .request-cancel,
  .request-submit {
    width: 100%;
    min-width: 0;
  }
}

/* Modulo compatto a due passaggi */
.request-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 24px;
}

.request-dialog-head {
  gap: 15px;
  align-items: center;
  padding: 22px 26px 18px;
}

.request-dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.request-dialog-icon svg {
  width: 24px;
  height: 24px;
}

.request-kicker {
  margin-bottom: 4px;
  font-size: 0.67rem;
}

.request-dialog-head h2 {
  margin-bottom: 3px;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.request-dialog-head p {
  font-size: 0.84rem;
  line-height: 1.4;
}

.request-form {
  padding: 18px 26px 22px;
}

.request-progress {
  display: grid;
  grid-template-columns: auto minmax(52px, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 430px;
  margin: 0 auto 16px;
}

.request-progress-step {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #7d929f;
}

.request-progress-step span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #cbdfe9;
  border-radius: 50%;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.request-progress-step strong {
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.request-progress-step.is-current,
.request-progress-step.is-complete {
  color: var(--navy-900);
}

.request-progress-step.is-current span,
.request-progress-step.is-complete span {
  border-color: var(--teal-700);
  background: var(--teal-700);
  color: #fff;
}

.request-progress-step.is-current span {
  transform: scale(1.06);
  box-shadow: 0 5px 13px rgba(14, 113, 164, 0.2);
}

.request-progress-line {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9ef;
}

.request-progress-line i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-700), var(--teal-500));
  transition: width 0.24s var(--ease-out);
}

.request-progress.is-second .request-progress-line i {
  width: 100%;
}

.request-step[hidden] {
  display: none;
}

.request-step {
  padding: 0;
  will-change: transform, opacity;
}

.request-step-head {
  margin-bottom: 14px;
}

.request-step-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--teal-700);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.request-step-head h3 {
  color: var(--navy-900);
  font-size: 1.16rem;
  line-height: 1.2;
}

.request-form-grid {
  gap: 12px 14px;
}

.request-field {
  gap: 5px;
}

.request-field > span {
  font-size: 0.78rem;
}

.request-field em {
  font-size: 0.72rem;
}

.request-field input,
.request-field select,
.request-field textarea {
  min-height: 44px;
  padding: 10px 13px;
  font-size: 0.88rem;
}

.request-field textarea {
  min-height: 70px;
}

.request-field small {
  font-size: 0.65rem;
}

.request-step-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.request-step-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--teal-700);
}

.request-privacy {
  margin-top: 13px;
  font-size: 0.75rem;
  line-height: 1.38;
}

.request-notice {
  margin-top: 11px;
  padding: 9px 11px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.request-status.is-error {
  margin-top: 10px;
}

.request-actions {
  margin-top: 16px;
}

.request-cancel,
.request-back {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.request-back svg {
  width: 17px;
  height: 17px;
}

.request-submit,
.request-next {
  min-width: 190px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .request-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 20px;
  }

  .request-dialog-head {
    gap: 10px;
    padding: 17px 15px 14px;
  }

  .request-dialog-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .request-close {
    width: 34px;
    height: 34px;
  }

  .request-form {
    padding: 14px 15px 17px;
  }

  .request-progress {
    gap: 7px;
    margin-bottom: 12px;
  }

  .request-progress-step {
    gap: 6px;
  }

  .request-progress-step span {
    width: 25px;
    height: 25px;
  }

  .request-progress-step strong {
    font-size: 0.68rem;
  }

  .request-step-head {
    margin-bottom: 10px;
  }

  .request-step-head h3 {
    font-size: 1.05rem;
  }

  .request-form-grid {
    gap: 9px;
  }

  .request-field input,
  .request-field select {
    min-height: 42px;
  }

  .request-field textarea {
    min-height: 58px;
  }

  .request-step-note {
    margin-top: 10px;
    font-size: 0.7rem;
  }

  .request-privacy {
    margin-top: 10px;
    font-size: 0.7rem;
  }

  .request-notice {
    margin-top: 9px;
    padding: 7px 9px;
    font-size: 0.67rem;
  }

  .request-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .request-cancel,
  .request-back,
  .request-next,
  .request-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (max-height: 680px) and (min-width: 641px) {
  .request-dialog-head {
    padding-block: 16px 13px;
  }

  .request-dialog-head p {
    display: none;
  }

  .request-form {
    padding-block: 14px 17px;
  }

  .request-progress,
  .request-step-head {
    margin-bottom: 10px;
  }

  .request-actions {
    margin-top: 12px;
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  .request-dialog-head {
    padding: 12px 14px 10px;
  }

  .request-dialog-icon {
    width: 36px;
    height: 36px;
  }

  .request-kicker {
    display: none;
  }

  .request-dialog-head h2 {
    font-size: 1.25rem;
  }

  .request-form {
    padding: 10px 14px 13px;
  }

  .request-progress {
    margin-bottom: 8px;
  }

  .request-step-head {
    margin-bottom: 7px;
  }

  .request-form-grid {
    gap: 7px;
  }

  .request-field input,
  .request-field select {
    min-height: 40px;
    padding-block: 8px;
  }

  .request-field textarea {
    min-height: 52px;
  }

  .request-privacy,
  .request-notice,
  .request-step-note {
    margin-top: 7px;
  }

  .request-actions {
    margin-top: 9px;
  }
}
