/* =========================================================
   Medical Mom - shared design system
   Concept: "Movimento & Energia"
   Pages link this file in <head>; each page adds its own
   page-specific <style> block in <head>.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #FAF8F3;
  --bg-soft: #F4F1E9;
  --ink: #2D2D35;
  --muted: #5F5C66;
  --teal: #3A5671;
  --teal-dark: #2D4257;
  --teal-light: #E4EAF0;
  --teal-deep: #2D4257;
  --coral: #F58220;
  --coral-soft: #F8A763;
  --coral-light: #FEF3E9;
  --coral-deep: #AC5308;
  --purple-dark: #3A5671;
  --purple-light: #6B8499;
  --purple-mist: #E8EEF2;
  --footer: #1B2835;
  --white: #FFFFFF;
  --radius: 24px;
  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-card: 0 10px 30px rgba(45, 45, 53, .06);
  --shadow-lift: 0 24px 50px rgba(58, 86, 113, .20);
  --nav-h: 78px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: hidden; overflow-x: clip;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
svg { display: inline-block; }
::selection { background: var(--teal-light); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -70px; z-index: 300;
  background: var(--purple-dark); color: #fff;
  padding: 12px 18px; border-radius: 12px;
  font: 600 .95rem/1 var(--font-display); text-decoration: none;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Flow indicator (same level as the title) ---------- */
.flow-indicator { display: inline-flex; align-items: center; gap: 12px; }
.flow-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--coral);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.flow-line { width: 54px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--teal), transparent); }
.flow-label {
  font: 600 .78rem/1 var(--font-display);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--purple-dark); white-space: nowrap;
}
.section-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; margin-bottom: clamp(26px, 4vw, 44px);
}
.section-head .flow-indicator { flex: none; }

/* ---------- Typography helpers ---------- */
.teal-word { color: var(--teal-deep); }
.coral-word { color: var(--coral-deep); }
.section-title {
  font: 800 clamp(1.9rem, 3.2vw, 2.6rem)/1.16 var(--font-display);
  letter-spacing: -.02em; color: var(--ink);
}
.section-lead {
  font: 400 1.05rem/1.7 var(--font-body); color: var(--muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-display); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
    background-color .3s var(--ease), color .3s var(--ease),
    border-color .3s var(--ease), gap .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-teal {
  background: var(--teal); color: #fff;
  box-shadow: 0 10px 22px rgba(58, 86, 113, .35);
}
.btn-teal:hover {
  background: var(--teal-dark); color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(58, 86, 113, .45);
}
a.btn.btn-teal,
button.btn.btn-teal {
  color: #fff;
}
a.btn.btn-teal:hover,
button.btn.btn-teal:hover {
  color: #fff;
}
.btn-coral {
  background: var(--coral); color: var(--ink);
  box-shadow: 0 10px 22px rgba(245, 130, 32, .35);
}
.btn-coral:hover {
  background: var(--coral-deep); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(245, 130, 32, .45);
}
.btn-outline {
  border-color: var(--purple-dark); color: var(--purple-dark); background: transparent;
}
.btn-outline:hover {
  background: var(--purple-dark); color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(58, 86, 113, .28);
}
.btn-white {
  border-color: rgba(255, 255, 255, .85); color: #fff; background: transparent;
}
.btn-white:hover {
  background: #fff; color: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .25);
}
.btn-xl { padding: 17px 32px; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease),
    backdrop-filter .4s var(--ease), border-color .4s var(--ease);
}
.navbar.scrolled {
  background: rgba(250, 248, 243, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(58, 86, 113, .08);
  box-shadow: 0 6px 24px rgba(45, 45, 53, .06);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 22%; flex: none;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(245, 130, 32, .28);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name {
  font: 800 1.25rem/1 var(--font-display); color: var(--ink);
  letter-spacing: -.01em;
}
.brand-name span { color: var(--coral-deep); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative; padding: 8px 0;
  font: 500 .98rem/1 var(--font-body); color: var(--ink); text-decoration: none;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--purple-dark);
  transition: left .3s var(--ease), right .3s var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { left: 0; right: 0; }
.nav-cta { padding: 12px 24px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 70px;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
.hero-title {
  font: 800 clamp(2.5rem, 4.6vw, 3.75rem)/1.1 var(--font-display);
  color: var(--ink); letter-spacing: -.02em; margin-bottom: 26px;
}
.hero-lead {
  font: 400 1.125rem/1.7 var(--font-body); color: var(--muted);
  max-width: 52ch; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 560px; min-width: 0; }
.ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; }
.ring-teal {
  width: 470px; height: 470px;
  transform: translate(-50%, -50%);
  border: 2px dashed var(--teal);
  animation: spin 30s linear infinite;
}
.ring-coral {
  width: 330px; height: 330px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--coral-soft);
}
.float-card {
  position: absolute; z-index: 3;
  display: flex; gap: 14px; align-items: center;
  width: 300px; padding: 18px 22px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(58, 86, 113, .10);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(45, 45, 53, .12);
  animation: float 6s ease-in-out infinite;
}
.fc-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal-deep);
}
.fc-icon.coral { background: var(--coral-light); color: var(--coral-deep); }
.fc-icon svg { width: 22px; height: 22px; }
.float-card h3 {
  font: 700 1rem/1.25 var(--font-display); letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 4px;
}
.float-card p { font: 400 .86rem/1.45 var(--font-body); color: var(--muted); }
.fc-1 { top: 36px; left: 18px; }
.fc-2 { top: 47%; right: 0; animation-delay: -2s; }
.fc-3 { bottom: 20px; left: 70px; animation-delay: -4s; }

.hero-blob { position: absolute; pointer-events: none; }
.blob-1 {
  top: 20px; right: -70px; width: 420px; height: 420px;
  background: linear-gradient(135deg, rgba(245, 130, 32, .28), rgba(58, 86, 113, .30));
  animation: morph 14s ease-in-out infinite;
}
.blob-2 {
  bottom: -150px; left: -110px; width: 460px; height: 460px;
  background: linear-gradient(135deg, rgba(58, 86, 113, .30), rgba(245, 130, 32, .22));
  animation: morph 16s ease-in-out infinite;
  animation-delay: -6s;
}

/* ---------- Sections / bands ---------- */
.section { position: relative; z-index: 2; padding: clamp(70px, 9vw, 130px) 0; }
.section--flush-top { padding-top: 30px; }
.section--flush-bottom { padding-bottom: 40px; }
.band-teal {
  background: linear-gradient(180deg, transparent, rgba(228, 234, 240, .62), transparent);
}
.band-coral {
  background: linear-gradient(180deg, transparent, rgba(254, 243, 233, .62), transparent);
}
.band-mist {
  background: linear-gradient(180deg, transparent, rgba(232, 238, 242, .60), transparent);
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.card-large { grid-column: 1; grid-row: 1 / span 2; }
.card-wide { grid-column: 1 / -1; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(58, 86, 113, .10);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transform: scaleX(0); transform-origin: left; z-index: 2;
  transition: transform .5s var(--ease);
}
.service-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 86, 113, .14), rgba(245, 130, 32, .05) 55%, transparent 72%);
  opacity: 0; transform: scale(.3);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; transform: scale(1); }
.card-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal-deep);
  margin-bottom: 24px;
  transition: transform .4s var(--ease);
}
.card-icon.coral { background: var(--coral-light); color: var(--coral-deep); }
.card-icon svg { width: 28px; height: 28px; }
.service-card:hover .card-icon { transform: rotate(-8deg) scale(1.1); }
.service-card h3 {
  font: 700 1.35rem/1.25 var(--font-display); letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 14px;
}
.card-desc { font: 400 1rem/1.65 var(--font-body); color: var(--muted); margin-bottom: 20px; }
.card-desc + .feature-list { margin-top: 6px; }
.feature-list { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font: 500 .98rem/1.5 var(--font-body); color: var(--ink);
}
.check {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-deep);
  display: grid; place-items: center;
}
.check svg { width: 13px; height: 13px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 .98rem/1 var(--font-display); color: var(--purple-dark);
  text-decoration: none;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.card-link svg { width: 18px; height: 18px; }
.service-card:hover .card-link { gap: 12px; }

.card-small { padding: clamp(22px, 2.5vw, 30px); display: flex; flex-direction: column; }
.card-small .card-icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px; }
.card-small .card-icon svg { width: 24px; height: 24px; }
.card-small h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card-small .card-desc { font-size: .96rem; margin-bottom: 18px; }
.card-small .card-link { margin-top: auto; }
.card-small .tag { align-self: flex-start; margin-bottom: 14px; }

.card-wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 26px; align-items: center;
}
.card-wide .card-icon { width: 60px; height: 60px; margin-bottom: 0; }
.card-wide h3 { margin-bottom: 8px; }
.card-wide .card-desc { margin-bottom: 0; }
.card-wide-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

/* Coming soon pills */
.coming-pills { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.coming-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  border: 2px dashed var(--purple-light);
  color: var(--purple-dark); background: transparent;
  font: 600 .98rem/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease),
    transform .3s var(--ease), box-shadow .3s var(--ease), border-style .3s var(--ease);
}
.coming-pill svg { width: 16px; height: 16px; }
.coming-pill:hover {
  border-style: solid; background: var(--purple-dark); color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(58, 86, 113, .28);
}

/* ---------- Steps ("Come funziona") ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; }
.step { position: relative; text-align: center; list-style: none; }
.step-num {
  width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--white); border: 2px solid rgba(58, 86, 113, .08);
  box-shadow: 0 12px 28px rgba(45, 45, 53, .10);
  display: grid; place-items: center;
  font: 800 1.55rem/1 var(--font-display); color: var(--teal-deep);
  transition: transform .35s var(--ease), border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}
.step:hover .step-num {
  border-color: var(--coral); transform: scale(1.1);
  box-shadow: 0 18px 34px rgba(245, 130, 32, .25);
}
.step h3 {
  font: 700 1.1rem/1.3 var(--font-display); letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 10px;
}
.step p { font: 400 .95rem/1.6 var(--font-body); color: var(--muted); max-width: 24ch; margin-inline: auto; }

/* ---------- About (morph shape + stats + badges) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-shape { position: relative; height: 520px; }
.morph-shape {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 430px; height: 430px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 30px 60px rgba(58, 86, 113, .30);
  animation: morph 15s ease-in-out infinite;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .94);
}
.morph-shape svg { width: 150px; height: 150px; }
.stat-card {
  position: absolute; z-index: 3;
  background: var(--white); border: 1px solid rgba(58, 86, 113, .08);
  border-radius: 20px; padding: 20px 26px;
  box-shadow: 0 18px 40px rgba(45, 45, 53, .14);
  animation: float 7s ease-in-out infinite;
}
.stat-card .num {
  font: 800 2.4rem/1 var(--font-display); color: var(--coral-deep);
  letter-spacing: -.02em;
}
.stat-card .label {
  font: 500 .9rem/1.4 var(--font-body); color: var(--muted); margin-top: 6px;
}
.stat-1 { top: 58px; left: -14px; }
.stat-2 { bottom: 58px; right: -6px; animation-delay: -3s; }
.feature-badges { display: grid; gap: 16px; margin-top: 28px; }
.feature-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid rgba(58, 86, 113, .10);
  border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-card);
  font: 600 1rem/1.3 var(--font-display); color: var(--ink);
}
.fb-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal-deep);
}
.fb-icon.coral { background: var(--coral-light); color: var(--coral-deep); }
.fb-icon.mist { background: var(--purple-mist); color: var(--purple-dark); }
.fb-icon svg { width: 20px; height: 20px; }

/* ---------- Final CTA box ---------- */
.cta-box {
  position: relative; overflow: hidden;
  background: var(--purple-dark);
  border-radius: 34px;
  padding: clamp(44px, 6vw, 84px);
  box-shadow: 0 30px 70px rgba(58, 86, 113, .35);
}
.cta-box > * { position: relative; z-index: 2; }
.cta-box h2 {
  font: 800 clamp(1.9rem, 3.4vw, 2.9rem)/1.15 var(--font-display);
  letter-spacing: -.02em; color: #fff; max-width: 22ch; margin-bottom: 18px;
}
.cta-box p {
  font: 400 1.05rem/1.7 var(--font-body); color: rgba(255, 255, 255, .78);
  max-width: 52ch; margin-bottom: 34px;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-blob { position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.cta-blob.teal {
  width: 280px; height: 280px; background: rgba(58, 86, 113, .55);
  top: -70px; right: 10%; animation: float 9s ease-in-out infinite;
}
.cta-blob.coral {
  width: 240px; height: 240px; background: rgba(245, 130, 32, .45);
  bottom: -90px; left: 6%; animation: float 11s ease-in-out infinite;
  animation-delay: -4s;
}

/* ---------- Page header (internal pages) ---------- */
.page-header { position: relative; z-index: 1; padding: 195px 0 100px; }
.page-header-inner { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: 500 .92rem/1 var(--font-body); color: var(--muted); margin-bottom: 30px;
}
.breadcrumb a { color: var(--purple-dark); text-decoration: none; transition: color .3s var(--ease); }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb .sep { color: var(--purple-light); }
.breadcrumb .sep svg { width: 14px; height: 14px; display: block; }
.breadcrumb .current { color: var(--muted); }
.ph-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.page-header h1 {
  font: 800 clamp(2.3rem, 4vw, 3.5rem)/1.1 var(--font-display);
  letter-spacing: -.02em; color: var(--ink); max-width: 19ch;
}
.page-lead {
  font: 400 1.1rem/1.7 var(--font-body); color: var(--muted); max-width: 60ch;
}
.page-lead a,
.form-card > p a {
  color: var(--teal-dark);
  font-weight: 600;
}
.ph-blob { position: absolute; pointer-events: none; }
.ph-blob.b1 {
  top: -80px; right: -70px; width: 360px; height: 360px;
  background: linear-gradient(135deg, rgba(58, 86, 113, .26), rgba(245, 130, 32, .18));
  animation: morph 15s ease-in-out infinite;
}
.ph-blob.b2 {
  bottom: -140px; left: -70px; width: 420px; height: 420px;
  background: linear-gradient(135deg, rgba(232, 238, 242, .95), rgba(245, 130, 32, .16));
  animation: morph 17s ease-in-out infinite; animation-delay: -7s;
}
.ph-blob.b3 {
  top: 60px; right: 34%; width: 160px; height: 160px;
  border: 2px dashed var(--teal); border-radius: 50%;
  opacity: .5; animation: spin 34s linear infinite;
}

/* ---------- Detail pages (2 columns + sticky sidebar) ---------- */
.layout-2col {
  display: grid; grid-template-columns: 1fr 380px;
  gap: clamp(40px, 5vw, 72px); align-items: start;
  overflow: visible;
}
.content-block { margin-bottom: 44px; }
.content-block h2 {
  font: 700 clamp(1.5rem, 2.4vw, 1.9rem)/1.25 var(--font-display);
  letter-spacing: -.015em; color: var(--ink); margin-bottom: 18px;
}
.content-block p {
  font: 400 1.02rem/1.75 var(--font-body); color: var(--ink);
  margin-bottom: 16px; max-width: 66ch;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block .feature-list { margin-top: 6px; max-width: 60ch; }
.content-block a { color: var(--purple-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.content-block a:hover { color: var(--teal-dark); }
.highlight-box {
  border-radius: 22px; padding: 26px 30px; margin: 10px 0 26px;
  background: linear-gradient(135deg, rgba(228, 234, 240, .92), rgba(254, 243, 233, .82));
  border: 1px solid rgba(58, 86, 113, .18);
}
.highlight-box.coral-tint {
  background: linear-gradient(135deg, rgba(254, 243, 233, .92), rgba(232, 238, 242, .85));
  border-color: rgba(245, 130, 32, .20);
}
.highlight-box h3 {
  display: flex; align-items: center; gap: 10px;
  font: 700 1.1rem/1.3 var(--font-display); letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 10px;
}
.highlight-box h3 svg { width: 22px; height: 22px; color: var(--teal-deep); flex: none; }
.highlight-box.coral-tint h3 svg { color: var(--coral-deep); }
.highlight-box p { font: 400 1rem/1.7 var(--font-body); color: var(--ink); max-width: 60ch; }

.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  z-index: 5;
  background: var(--white); border: 1px solid rgba(58, 86, 113, .10);
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 32px;
}
.sidebar h3 {
  font: 700 1.15rem/1.3 var(--font-display); letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 20px;
}
.side-info { list-style: none; }
.side-info li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-top: 1px solid rgba(58, 86, 113, .10);
}
.side-info li:first-child { border-top: 0; }
.si-icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--purple-mist); color: var(--purple-dark);
  display: grid; place-items: center;
}
.si-icon svg { width: 18px; height: 18px; }
.si-label {
  display: block; margin-bottom: 5px;
  font: 500 .76rem/1 var(--font-display); letter-spacing: .07em;
  text-transform: uppercase; color: var(--purple-light);
}
.si-value { font: 600 .98rem/1.45 var(--font-body); color: var(--ink); }
.sidebar .btn { width: 100%; margin-top: 24px; }
.side-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font-body); color: var(--purple-dark);
  text-decoration: none; margin-top: 18px;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.side-link:hover { gap: 12px; color: var(--teal-dark); }
.side-link svg { width: 16px; height: 16px; }

/* ---------- Coming soon pages ---------- */
.coming-wrap { position: relative; z-index: 2; text-align: center; max-width: 700px; margin-inline: auto; }
.coming-icon {
  width: 128px; height: 128px; margin: 0 auto 36px;
  border-radius: 38% 62% 55% 45% / 50% 44% 56% 50%;
  background: linear-gradient(135deg, var(--coral-light), var(--teal-light));
  display: grid; place-items: center;
  color: var(--coral-deep);
  box-shadow: 0 20px 44px rgba(245, 130, 32, .18);
  animation: float 7s ease-in-out infinite;
}
.coming-icon svg { width: 58px; height: 58px; }
.coming-wrap h1 {
  font: 800 clamp(2.2rem, 4vw, 3.3rem)/1.12 var(--font-display);
  letter-spacing: -.02em; color: var(--ink); margin-bottom: 18px;
}
.coming-wrap .page-lead { margin-inline: auto; }
.coming-wrap .btn { margin-top: 30px; }
.coming-icon { margin-bottom: 30px; }

/* Icon cards grid */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icon-card {
  position: relative;
  background: var(--white); border: 1px solid rgba(58, 86, 113, .10);
  border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.icon-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.ic-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal-deep);
  transition: transform .4s var(--ease);
}
.ic-icon.coral { background: var(--coral-light); color: var(--coral-deep); }
.ic-icon svg { width: 24px; height: 24px; }
.icon-card:hover .ic-icon { transform: rotate(-8deg) scale(1.08); }
.icon-card h3 {
  font: 700 1.1rem/1.3 var(--font-display); letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 10px;
}
.icon-card p { font: 400 .96rem/1.6 var(--font-body); color: var(--muted); margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .72rem/1 var(--font-display); letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple-dark);
  background: var(--purple-mist); border-radius: 999px; padding: 7px 14px;
}
.tag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
  animation: pulseDot 2s ease-in-out infinite;
}
.active-links {
  margin-top: 64px; padding-top: 36px;
  border-top: 2px dashed var(--purple-light);
  text-align: center;
}
.active-links .flow-indicator { justify-content: center; margin-bottom: 24px; }
.links-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
.info-card {
  position: relative; overflow: hidden;
  background: var(--purple-dark); border-radius: 26px; padding: 38px 34px; color: #fff;
}
.info-card::after {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(245, 130, 32, .28); filter: blur(34px);
}
.info-card h2 {
  position: relative; z-index: 1;
  font: 800 1.4rem/1.25 var(--font-display); letter-spacing: -.01em;
  color: #fff; margin-bottom: 28px;
}
.info-list { list-style: none; display: grid; gap: 22px; position: relative; z-index: 1; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.info-list li > div { min-width: 0; }
.il-icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: rgba(255, 255, 255, .12); color: var(--coral-soft);
  display: grid; place-items: center;
}
.il-icon svg { width: 20px; height: 20px; }
.il-label {
  display: block; margin-bottom: 6px;
  font: 500 .74rem/1 var(--font-display); letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.il-value { font: 600 1rem/1.5 var(--font-body); color: #fff; overflow-wrap: anywhere; }
a.il-value {
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  transition: border-color .3s var(--ease);
}
a.il-value:hover { border-color: var(--coral-soft); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; position: relative; z-index: 1; }
.quick-links a {
  font: 600 .82rem/1 var(--font-display); letter-spacing: .02em;
  color: rgba(255, 255, 255, .9); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 9px 16px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.quick-links a:hover { background: #fff; color: var(--purple-dark); border-color: #fff; }

.form-card {
  background: var(--white); border: 1px solid rgba(58, 86, 113, .10);
  border-radius: 26px; padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 .86rem/1 var(--font-display); color: var(--ink); letter-spacing: .01em; }
.field label .req { color: var(--coral-deep); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  background: var(--bg); border: 1.5px solid rgba(58, 86, 113, .16);
  border-radius: 14px; padding: 13px 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--purple-light); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(58, 86, 113, .18);
  background: #fff;
}
.field textarea { min-height: 132px; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.form-note { font: 400 .86rem/1.5 var(--font-body); color: var(--muted); max-width: 32ch; }
.form-success {
  display: none; margin-top: 18px; border-radius: 16px; padding: 18px 20px;
  background: var(--teal-light); border: 1px solid rgba(58, 86, 113, .3);
  font: 600 1rem/1.5 var(--font-body); color: var(--teal-deep);
}
.form-success.show { display: block; }

/* Map embed */
.map-wrap {
  position: relative; overflow: hidden; margin-top: 32px;
  width: 100%; height: 420px;
  border-radius: 26px; border: 1px solid rgba(58, 86, 113, .12);
  box-shadow: var(--shadow-card);
  background: var(--teal-light);
}
.about-grid .map-wrap { margin-top: 0; height: 400px; }
.map-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: rgba(255, 255, 255, .72); padding: 74px 0 0; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 54px; }
.footer .brand-mark.footer-mark { width: 60px; height: 60px; box-shadow: 0 10px 22px rgba(0, 0, 0, .35); }
.footer .brand-name { color: #fff; }
.footer .brand-name span { color: var(--coral-soft); }
.footer-tag {
  font: 400 .95rem/1.7 var(--font-body); color: rgba(255, 255, 255, .6);
  margin-top: 18px; max-width: 30ch;
}
.footer-social {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 0;
  color: rgba(255, 255, 255, .88);
  font: 600 .92rem/1 var(--font-display);
  text-decoration: none;
}
.footer-social:hover { color: var(--coral-soft); }
.footer-social-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--coral-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.footer-social-icon svg { width: 18px; height: 18px; }
.footer-social:hover .footer-social-icon {
  background: var(--coral); color: #fff; border-color: var(--coral);
}
.footer h4 {
  font: 600 .92rem/1 var(--font-display); text-transform: uppercase;
  letter-spacing: .08em; color: #fff; margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a {
  color: rgba(255, 255, 255, .72); text-decoration: none;
  font: 400 .95rem/1.5 var(--font-body);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font: 400 .95rem/1.6 var(--font-body); }
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--coral-soft); }
.footer-contact a { padding-left: 0; }
.footer-contact a:hover { color: var(--coral-soft); padding-left: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 400 .88rem/1.6 var(--font-body); color: rgba(255, 255, 255, .5);
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
/* transform on the sticky element itself would cancel position: sticky */
.js .sidebar.reveal,
.js .sidebar.reveal.in {
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 40% 50% 50% 60%; }
  33% { border-radius: 62% 38% 56% 44% / 40% 58% 42% 60%; }
  66% { border-radius: 42% 58% 40% 60% / 55% 40% 60% 45%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .55; }
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 20px 24px 28px;
    background: rgba(250, 248, 243, .97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(58, 86, 113, .12);
    transform: translateY(-16px); opacity: 0; visibility: hidden;
    pointer-events: none;
    transition: transform .4s var(--ease), opacity .4s var(--ease), visibility .4s;
  }
  .navbar.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-link { font-size: 1.15rem; padding: 10px 0; }
  .nav-cta { margin-top: 10px; align-self: flex-start; }
  .navbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .navbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 0; padding: 130px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .card-large { grid-column: auto; grid-row: auto; }
  .card-wide { grid-column: auto; }
  .cards-2 { grid-template-columns: 1fr; }
  .card-wide-side { align-items: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-shape { height: 440px; }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; top: auto; z-index: auto; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap,
  .about-grid .map-wrap { height: 340px; }
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-header { padding-top: 150px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 40px, 1220px); }
  .hero-title { font-size: 2.35rem; }
  .hero-actions .btn { width: 100%; }
  .section-title { font-size: 1.75rem; }
  .icon-grid { grid-template-columns: 1fr; }
  .card-wide { grid-template-columns: 1fr; gap: 16px; }
  .card-wide-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .price-boxes { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 26px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .about-shape { height: auto; }
  .about-shape { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
  .morph-shape {
    position: relative; top: auto; left: auto; transform: none;
    width: 260px; height: 260px; margin-inline: auto;
    grid-column: 1 / -1; margin-bottom: 8px;
  }
  .stat-card { position: static; width: 100%; }
  .stat-2 { animation-delay: 0s; }
  .page-header { padding-top: 130px; padding-bottom: 70px; }
  .ph-head { gap: 14px; }
  .flow-label { letter-spacing: .12em; }
  .flow-line { width: 36px; }
  .coming-pill { width: 100%; justify-content: center; }
  .map-wrap,
  .about-grid .map-wrap { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Price cards & price tags ---------- */
.price-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.price-box {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid rgba(58, 86, 113, .10);
  border-radius: 22px; padding: 26px 26px 24px;
  box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.price-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transform: scaleX(.35); transform-origin: left;
  transition: transform .45s var(--ease);
}
.price-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(58, 86, 113, .25); }
.price-box:hover::before { transform: scaleX(1); }
.pb-label { font: 500 .78rem/1.2 var(--font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--purple-light); }
.pb-title { font: 700 1.12rem/1.35 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.pb-sub { font: 400 .9rem/1.5 var(--font-body); color: var(--muted); }
.pb-price { font: 800 2.3rem/1 var(--font-display); letter-spacing: -.02em; color: var(--coral-deep); margin-top: 6px; }
.pb-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font: 600 .92rem/1 var(--font-body); color: var(--teal-dark);
  transition: gap .3s var(--ease);
}
.pb-cta svg { width: 16px; height: 16px; }
.price-box:hover .pb-cta { gap: 12px; }
.price-box b { font-weight: 600; }
.price-inline { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.price-tag {
  font: 800 1.9rem/1 var(--font-display); letter-spacing: -.02em; color: var(--coral-deep);
}
.price-note { font: 500 .85rem/1.4 var(--font-body); color: var(--purple-light); letter-spacing: .02em; }
.card-price {
  font: 800 1.7rem/1 var(--font-display); letter-spacing: -.02em; color: var(--coral-deep);
  margin: 4px 0 18px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 14px; max-width: 780px; }
.faq-item {
  background: var(--white); border: 1px solid rgba(58, 86, 113, .10);
  border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item[open],
.faq-item.is-open { border-color: rgba(58, 86, 113, .30); box-shadow: var(--shadow-lift); }
.faq-item summary,
.faq-item .faq-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font: 600 1rem/1.45 var(--font-display); letter-spacing: -.005em; color: var(--ink);
  transition: color .3s var(--ease);
}
.faq-item .faq-trigger {
  width: 100%; margin: 0; border: 0; background: transparent;
  text-align: left; appearance: none; -webkit-appearance: none; border-radius: 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover,
.faq-item .faq-trigger:hover { color: var(--teal-dark); }
.faq-item summary:focus-visible,
.faq-item .faq-trigger:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 18px; }
.faq-chev {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal-dark);
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.faq-chev svg { width: 15px; height: 15px; }
.faq-item[open] .faq-chev,
.faq-item.is-open .faq-chev { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-item[open] .faq-chev svg,
.faq-item.is-open .faq-chev svg { color: #fff; stroke: currentColor; transform: none; }
.faq-body { padding: 0 24px 22px; }
.faq-body p { font: 400 .97rem/1.7 var(--font-body); color: var(--muted); max-width: 62ch; margin: 0; }
.js .faq-item .faq-panel {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height .36s var(--ease), opacity .28s var(--ease);
}
.js .faq-item.is-open .faq-panel { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .faq-item .faq-panel,
  .faq-item .faq-chev { transition: none; }
}

/* ---------- Form: checkbox + error state ---------- */
.field-check {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 12px;
  font: 400 .9rem/1.55 var(--font-body); color: var(--muted); cursor: pointer;
}
.field-check input {
  width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--teal-dark);
  cursor: pointer;
}
.field-check input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.field-error { font: 500 .8rem/1.4 var(--font-body); color: var(--coral-deep); }
.form-error {
  display: none; margin-top: 16px;
  font: 500 .92rem/1.6 var(--font-body); color: var(--coral-deep);
  background: var(--coral-light); border: 1px solid rgba(245, 130, 32, .30);
  border-radius: 14px; padding: 14px 18px;
}
.form-error.show { display: block; }

/* ---------- Dropdown "Altri servizi" ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 .98rem/1 var(--font-body); color: var(--ink);
  background: none; border: 0; cursor: pointer; padding: 8px 0;
  font-family: inherit;
}
.nav-dropdown-toggle svg {
  width: 14px; height: 14px; color: var(--purple-light);
  transition: transform .3s var(--ease);
}
.nav-dropdown.open .nav-dropdown-toggle svg,
.nav-dropdown-toggle:hover svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; z-index: 100;
  min-width: 220px;
  background: var(--white); border: 1px solid rgba(58, 86, 113, .12);
  border-radius: 16px; padding: 10px 0;
  box-shadow: 0 18px 40px rgba(58, 86, 113, .18);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), visibility .25s, transform .25s var(--ease);
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 10px 20px;
  font: 500 .92rem/1.45 var(--font-body); color: var(--ink);
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav-dropdown-menu a:hover {
  background: var(--teal-light);
  color: var(--teal-deep);
}

/* ---------- Mobile menu (dropdown inside) ---------- */
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
}
@media (max-width: 968px) {
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px;
    border-left: 2px solid var(--purple-light);
    min-width: 0; margin-top: 4px;
  }
  .nav-dropdown-menu a { padding: 8px 0; }
}

/* ---------- FAQ on landing pages ---------- */
.faq-cta {
  margin-top: 40px; text-align: center;
}
.faq-cta p { font: 500 1rem/1.5 var(--font-display); color: var(--muted); }

/* ---------- Distretto grid (ecografia pillar) ---------- */
.distretto-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 28px;
}
.distretto-card {
  background: var(--white); border: 1px solid rgba(58, 86, 113, .10);
  border-radius: 18px; padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.distretto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.distretto-card h4 {
  font: 700 1rem/1.35 var(--font-display); color: var(--ink);
  margin-bottom: 8px; letter-spacing: -.01em;
}
.distretto-card p { font: 400 .92rem/1.6 var(--font-body); color: var(--muted); }
@media (max-width: 680px) { .distretto-grid { grid-template-columns: 1fr; } }

/* ---------- Prezzo box (visita & ecografia) ---------- */
.price-hero-box {
  background: linear-gradient(135deg, rgba(245, 130, 32, .12), rgba(58, 86, 113, .08));
  border: 2px solid rgba(245, 130, 32, .28); border-radius: 22px;
  padding: 28px 32px; margin: 28px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.price-hero-box .phb-num {
  font: 800 3rem/1 var(--font-display); color: var(--coral-deep);
  letter-spacing: -.02em; flex: none;
}
.price-hero-box .phb-text { flex: 1; min-width: 200px; }
.price-hero-box .phb-text p {
  font: 500 1rem/1.5 var(--font-display); color: var(--ink); margin: 0;
}
.price-hero-box .phb-text small {
  display: block; font: 400 .85rem/1.4 var(--font-body); color: var(--muted); margin-top: 4px;
}

/* ---------- Prenota page ---------- */
.prenota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.prenota-card {
  background: var(--white); border: 2px solid rgba(58, 86, 113, .08);
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow-card); text-align: center;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.prenota-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}
.prenota-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lift);
  border-color: rgba(245, 130, 32, .22);
}
.prenota-card h3 {
  font: 700 1.35rem/1.3 var(--font-display); letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 14px;
}
.prenota-card .pc-price {
  font: 800 3rem/1 var(--font-display); letter-spacing: -.02em;
  color: var(--coral-deep); margin-bottom: 4px;
}
.prenota-card .pc-note {
  font: 400 .92rem/1.5 var(--font-body); color: var(--muted); margin-bottom: 24px;
}
@media (max-width: 680px) { .prenota-grid { grid-template-columns: 1fr; } }

#prenota-online { scroll-margin-top: 110px; }
.calendar-wrap {
  overflow: hidden;
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(58, 86, 113, .12);
  box-shadow: var(--shadow-card);
  background: #fff;
}
.calendar-wrap iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}
.calendar-note {
  margin-top: 16px;
  font: 400 .92rem/1.6 var(--font-body);
  color: var(--muted);
}
.calendar-note a {
  color: var(--teal-dark);
  font-weight: 600;
}
@media (max-width: 680px) {
  .calendar-wrap iframe { height: 640px; }
}

/* ---------- Fixes ---------- */
:root {
  --teal-deep: #2D4257;
  --coral-deep: #AC5308;
}
@supports (color: oklch(from #fff l c h)) {
  :root {
    --teal-deep: oklch(from var(--teal) calc(L - 0.14) c h);
    --coral-deep: oklch(from var(--coral) calc(L - 0.19) c h);
  }
}
@keyframes spinCenter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.ring-teal { animation: spinCenter 30s linear infinite; }
.si-label { color: var(--purple-dark); }


/* =========================================================
   LAYER PLUGIN - Medical M.O.M. (WordPress)
   Menu mobile a pannello · banner cookie · stati form ·
   rifiniture responsive
   ========================================================= */

/* ---------- Reset del vecchio menu a tendina ----------
   Su mobile la navigazione desktop viene nascosta del tutto:
   il menu vive nel pannello dedicato #mobile-menu. */
@media (max-width: 968px) {
  .nav-links {
    position: static;
    display: none;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
  .navbar.menu-open .nav-links { display: none; }
}

/* ---------- Hamburger: diventa una X quando il menu e' aperto ---------- */
.nav-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.navbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Backdrop ---------- */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(16, 24, 49, .48);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; }
.nav-backdrop[hidden] { display: none; }

/* ---------- Pannello del menu mobile ---------- */
.nav-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 999;
  width: min(400px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg);
  border-left: 1px solid rgba(58, 86, 113, .10);
  box-shadow: -18px 0 46px rgba(58, 86, 113, .18);
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  /* Il pannello scorre da solo: con il body bloccato resta sempre
     raggiungibile anche su schermi bassi o in orizzontale. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* Notch e barre di sistema su iOS. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu[hidden] { display: none; }

.nav-menu-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px;
  min-height: 78px;
  background: var(--bg);
  border-bottom: 1px solid rgba(58, 86, 113, .10);
}
.nav-menu-head .brand-name { font-size: 1.1rem; }
.nav-menu-head .brand-mark { width: 40px; height: 40px; }

.nav-menu-close {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(58, 86, 113, .16); border-radius: 50%;
  background: var(--white); color: var(--purple-dark);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
    border-color .25s var(--ease), transform .25s var(--ease);
}
.nav-menu-close svg { width: 22px; height: 22px; }
.nav-menu-close:hover {
  background: var(--purple-dark); color: #fff;
  border-color: var(--purple-dark); transform: rotate(90deg);
}
.nav-menu-close:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}

.nav-menu-body {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding: 18px 22px 8px;
}
.nav-menu-link {
  display: block; padding: 13px 0;
  font: 600 1.08rem/1.3 var(--font-display); color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 86, 113, .07);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.nav-menu-link:hover,
.nav-menu-link:focus-visible { color: var(--teal-deep); padding-left: 6px; }
.nav-menu-link[aria-current="page"] { color: var(--coral-deep); }
.nav-menu-link--sub {
  padding-left: 16px;
  font: 500 1rem/1.3 var(--font-body); color: var(--muted);
  border-left: 2px solid var(--purple-mist);
  border-bottom: 0;
  padding-top: 10px; padding-bottom: 10px;
}
.nav-menu-link--sub:hover,
.nav-menu-link--sub:focus-visible { padding-left: 22px; border-left-color: var(--teal); }
.nav-menu-label {
  display: block; margin: 20px 0 6px;
  font: 600 .72rem/1 var(--font-display); letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple-light);
}
.nav-menu-sep {
  display: block; height: 1px; margin: 20px 0 4px;
  background: rgba(58, 86, 113, .10);
}

.nav-menu-foot {
  flex: none;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding: 20px 22px 26px;
  border-top: 1px solid rgba(58, 86, 113, .10);
  background: var(--bg-soft);
}
.nav-menu-cta { width: 100%; }
.nav-menu-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 1rem/1 var(--font-display); color: var(--purple-dark);
  text-decoration: none;
}
.nav-menu-phone svg { width: 18px; height: 18px; color: var(--teal); }

/* Su schermi molto stretti il pannello occupa tutta la larghezza. */
@media (max-width: 420px) {
  .nav-menu { width: 100%; border-left: 0; }
}

/* Il pannello e' esclusivamente mobile: da 969px in su non compare mai,
   nemmeno se una classe residua restasse attaccata. */
@media (min-width: 969px) {
  .nav-menu,
  .nav-backdrop { display: none !important; }
  body.no-scroll { overflow: auto; }
}

/* ---------- Stati dei form ---------- */
.field input.error,
.field select.error,
.field textarea.error,
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, .16);
}
.field-check.error span { color: var(--coral-deep); }
.form-success.show,
.form-error.show { display: block; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn[disabled] { opacity: .7; cursor: not-allowed; }
.form-message { display: none; }
.form-message.is-error,
.form-message.error {
  display: block; margin-top: 16px;
  font: 500 .92rem/1.6 var(--font-body); color: var(--coral-deep);
  background: var(--coral-light); border: 1px solid rgba(245, 130, 32, .30);
  border-radius: 14px; padding: 14px 18px;
}
.form-message.is-success,
.form-message.success {
  display: block; margin-top: 16px;
  font: 500 .92rem/1.6 var(--font-body); color: var(--teal-deep);
  background: var(--teal-light); border: 1px solid rgba(58, 86, 113, .28);
  border-radius: 14px; padding: 14px 18px;
}

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 900;
  width: min(100% - 32px, 940px);
  transform: translate(-50%, 24px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cookie-banner[aria-hidden="false"] {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.cookie-banner-inner {
  position: relative;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--white); border: 1px solid rgba(58, 86, 113, .12);
  border-radius: 20px; padding: 20px 56px 20px 24px;
  box-shadow: 0 20px 46px rgba(58, 86, 113, .18);
}
.cookie-banner-text {
  flex: 1 1 320px; margin: 0;
  font: 400 .9rem/1.6 var(--font-body); color: var(--muted);
}
.cookie-banner-text a { color: var(--teal-deep); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.cookie-banner-close {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; color: var(--purple-light); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cookie-banner-close svg { width: 18px; height: 18px; }
.cookie-banner-close:hover { background: var(--purple-mist); color: var(--purple-dark); }

@media (max-width: 600px) {
  .cookie-banner { bottom: 12px; width: calc(100% - 24px); }
  .cookie-banner-inner { padding: 20px 20px 18px; gap: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
  .cookie-banner-close { top: 8px; right: 8px; }
}

/* ---------- Risorse: griglia dinamica ---------- */
.article-card.hidden { display: none; }
.featured-card.hidden { display: none; }
.blog-empty,
.blog-empty-filter {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font: 400 1rem/1.7 var(--font-body); color: var(--muted);
  background: var(--bg-soft); border: 1px dashed rgba(58, 86, 113, .18);
  border-radius: 18px; padding: 28px 26px; text-align: center;
}
.blog-pagination {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap; margin-top: 46px;
}
.blog-pagination .page-status {
  font: 500 .9rem/1 var(--font-body); color: var(--muted);
}
.blog-pagination [aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Articolo: contenuto generato da WordPress ---------- */
.article-body > * + * { margin-top: 20px; }
.article-body h2 {
  font: 700 clamp(1.35rem, 2.2vw, 1.7rem)/1.3 var(--font-display);
  letter-spacing: -.015em; color: var(--ink); margin-top: 40px;
}
.article-body h3 {
  font: 700 1.15rem/1.4 var(--font-display); color: var(--ink); margin-top: 30px;
}
.article-body p,
.article-body li { font: 400 1.02rem/1.8 var(--font-body); color: var(--muted); }
.article-body ul,
.article-body ol { padding-left: 22px; }
.article-body li + li { margin-top: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--teal-deep); }
.article-body img {
  max-width: 100%; height: auto; border-radius: 18px; display: block;
}
.article-featured-img {
  width: 100%; height: auto; border-radius: var(--radius);
  margin-bottom: 34px; box-shadow: var(--shadow-card);
}
.article-related-head {
  font: 700 clamp(1.35rem, 2.2vw, 1.7rem)/1.3 var(--font-display);
  color: var(--ink); margin-bottom: 26px;
}

/* ---------- Rifiniture responsive ---------- */
img, svg, video { max-width: 100%; }
img { height: auto; }
table { display: block; width: 100%; overflow-x: auto; }
pre { overflow-x: auto; }
/* Nessuna pagina deve poter scorrere in orizzontale su mobile. */
html, body { overflow-x: hidden; overflow-x: clip; }
body.no-scroll { overflow: hidden; }
.footer-legal-head { margin-top: 26px; }

@media (max-width: 968px) {
  .featured-card { grid-template-columns: 1fr; gap: 28px; }
  .featured-visual { height: 220px; order: -1; }
}
@media (max-width: 600px) {
  .breadcrumb { flex-wrap: wrap; row-gap: 6px; }
  .category-filter { gap: 8px; margin-bottom: 32px; }
  .category-chip { padding: 9px 16px; font-size: .82rem; }
  .article-meta { flex-wrap: wrap; row-gap: 8px; }
  .blog-pagination { gap: 12px; }
  .blog-pagination .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Tap target minimo di 44px sui comandi principali (linee guida WCAG). */
@media (pointer: coarse) {
  .category-chip,
  .footer-col a,
  .footer-contact a,
  .footer-social,
  .nav-menu-phone { min-height: 44px; display: flex; align-items: center; }
  .nav-menu-phone { justify-content: center; }
  .nav-menu-link { display: block; line-height: 1.3; padding-top: 15px; padding-bottom: 15px; }
}

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 910;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(18, 140, 80, .38);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.wa-fab svg { width: 30px; height: 30px; display: block; max-width: none; }
.wa-fab:hover,
.wa-fab:focus-visible {
  background: #1EBE57;
  color: #fff;
  box-shadow: 0 14px 32px rgba(18, 140, 80, .46);
}
.wa-fab:hover { transform: translateY(-2px) scale(1.04); }
.wa-fab:focus-visible { outline: 3px solid #25D366; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
  .wa-fab:hover { transform: none; }
}
