/* ==========================================================================
   Dott. Donatino Gravina — Refreshed Design System & Animations
   Palette preservata dal brand originale + motion fluido e accessibile
   ========================================================================== */

:root {
  --green-950: #0d2b1a;
  --green-900: #143e26;
  --green-800: #1c5434;
  --green-700: #2b6643;
  --olive-600: #608334;
  --olive-500: #7c9e4e;
  --olive-400: #97b770;
  --olive-300: #b7d493;
  --sage-100: #eef5e7;
  --sage-50: #f7feef;
  --surface-50: #f6f8f6;
  --surface-100: #edf1ee;
  --surface-white: #ffffff;
  --ink-900: #1a1d1a;
  --ink-700: #39423c;
  --ink-500: #525b55;
  --ink-400: #6f7c73;
  --border-subtle: rgba(20, 62, 38, 0.11);
  --border-strong: rgba(20, 62, 38, 0.22);
  --whatsapp: #25d366;
  --miodottore: #00b39b;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20, 62, 38, 0.05);
  --shadow-md: 0 12px 32px rgba(20, 62, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 62, 38, 0.12);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1200px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--surface-white);
  line-height: 1.65;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
  position: relative;
  touch-action: pan-y;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ==========================================================================
   Reading Progress Bar & Navbar
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--olive-600), var(--olive-400), var(--green-900));
  transition: width 80ms linear;
}

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-out-expo),
              border-color 300ms var(--ease-out-expo),
              box-shadow 300ms var(--ease-out-expo);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sage-100);
  box-shadow: var(--shadow-sm);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--green-900);
}

.brand__role {
  font-size: 0.76rem;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-links a {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-700);
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--green-900);
  background: var(--sage-100);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--green-900);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 95;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms var(--ease-out-expo), opacity 220ms ease;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mobile-drawer li a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-900);
}

.mobile-drawer li a:hover {
  background: var(--sage-100);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 260ms var(--ease-spring),
              box-shadow 260ms var(--ease-out-expo),
              background 220ms ease,
              border-color 220ms ease,
              color 220ms ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--sm {
  padding: 0.62rem 1.15rem;
  font-size: 0.88rem;
}

.btn--primary {
  background: var(--green-900);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 62, 38, 0.22);
}

.btn--primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 62, 38, 0.28);
}

.btn--miodottore {
  background: var(--miodottore);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 179, 155, 0.28);
}

.btn--miodottore:hover {
  background: #009c87;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 179, 155, 0.34);
}

.btn--whatsapp {
  background: #1ea851;
  color: #ffffff;
}

.btn--whatsapp:hover {
  background: #179044;
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--surface-white);
  color: var(--green-900);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--sage-50);
  border-color: var(--green-900);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--sage-100);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive-600);
  box-shadow: 0 0 0 4px rgba(96, 131, 52, 0.18);
  animation: pulseDot 2.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(96, 131, 52, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(96, 131, 52, 0.06); }
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */

.section {
  padding-block: clamp(4.5rem, 8vw, 6.75rem);
}

.section--tinted {
  background: var(--surface-50);
}

.section--sage {
  background: linear-gradient(180deg, var(--sage-50) 0%, var(--surface-white) 100%);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(2.4rem, 4vw, 3.4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--green-900);
  margin: 0.85rem 0 0.85rem;
}

.section-lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--ink-500);
  margin: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(60% 55% at 88% 12%, rgba(151, 183, 112, 0.22), transparent 65%),
    radial-gradient(50% 45% at 8% 85%, rgba(20, 62, 38, 0.06), transparent 65%),
    var(--surface-white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.3vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--green-900);
  margin: 1.15rem 0 1.2rem;
}

.hero__title em {
  font-style: italic;
  color: var(--olive-600);
  font-weight: 500;
}

.hero__copy {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--ink-500);
  max-width: 56ch;
  margin: 0 0 1.9rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.1rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--ink-500);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta svg {
  color: var(--olive-600);
  flex-shrink: 0;
}

.hero__meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
  background: var(--sage-100);
  border: 1px solid rgba(96, 131, 52, 0.25);
  color: var(--green-900);
  font-weight: 600;
  transition: transform 220ms var(--ease-spring), background 200ms ease, border-color 200ms ease;
}

.hero__meta-pill:hover {
  background: #e2efd6;
  border-color: var(--olive-600);
  transform: translateY(-1px);
}

/* ==========================================================================
   MRS — My Real Size Featured Spotlight
   ========================================================================== */

.mrs-section {
  padding-block: clamp(3.2rem, 6vw, 5.2rem);
}

.mrs-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 4.5vw, 3.8rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.4rem);
  border-radius: 32px;
  background:
    radial-gradient(60% 70% at 88% 20%, rgba(125, 172, 138, 0.26), transparent 65%),
    radial-gradient(50% 60% at 10% 90%, rgba(151, 183, 112, 0.16), transparent 65%),
    linear-gradient(135deg, #0f321e 0%, #164429 55%, #1c5434 100%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(13, 43, 26, 0.22);
}

.mrs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olive-300);
}

.mrs-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px;
}

.mrs-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 1.1rem 0 1rem;
}

.mrs-title em {
  font-style: italic;
  color: var(--olive-300);
  font-weight: 500;
}

.mrs-lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  margin: 0 0 1.65rem;
  max-width: 58ch;
}

.mrs-lead strong {
  color: #ffffff;
}

.mrs-points {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.9rem;
}

.mrs-point {
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mrs-point strong {
  display: block;
  font-size: 0.93rem;
  color: var(--olive-300);
  margin-bottom: 0.2rem;
}

.mrs-point span {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.mrs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn--mrs {
  background: #f7feef;
  color: var(--green-900);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn--mrs:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.btn--mrs-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--mrs-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.mrs-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.mrs-photo {
  margin: 0;
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.mrs-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.mrs-tag-card {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-900);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  z-index: 2;
}

.mrs-tag-card__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25a56a;
  box-shadow: 0 0 0 4px rgba(37, 165, 106, 0.2);
}

.mrs-tag-card strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.15;
}

.mrs-tag-card span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-500);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 32px 32px 32px 96px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sage-100);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 800ms var(--ease-out-expo);
}

.hero-frame:hover img {
  transform: scale(1.03);
}

.hero-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(20, 62, 38, 0.1);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: gentleFloat 6s ease-in-out infinite;
}

.hero-float--top {
  top: 8%;
  left: -1.6rem;
  max-width: 245px;
}

.hero-float--bottom {
  bottom: 7%;
  right: -1.1rem;
  max-width: 265px;
  animation-delay: -3s;
}

.hero-float__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sage-100);
  color: var(--green-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-float__icon--md {
  background: rgba(0, 179, 155, 0.14);
  color: #008a77;
}

.hero-float strong {
  display: block;
  font-size: 0.9rem;
  color: var(--green-900);
  line-height: 1.2;
}

.hero-float span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 2px;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */

.stats-strip {
  background: var(--green-900);
  color: #ffffff;
  padding-block: 1.85rem;
  overflow: hidden;
}

.stats-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.stats-marquee__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: statsMarquee var(--stats-duration, 28s) linear infinite;
}

.stats-marquee__group {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}

@keyframes statsMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.stat-item {
  flex: 0 0 auto;
  width: 260px;
  padding: 0.35rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item__value {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--olive-300);
  line-height: 1.1;
}

.stat-item__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 0.35rem;
  max-width: 26ch;
}

@media (max-width: 640px) {
  .stat-item {
    width: 220px;
    padding: 0.35rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-marquee__track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    justify-content: center;
    transform: none !important;
  }

  .stats-marquee__group:nth-child(n + 2) {
    display: none;
  }

  .stats-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .stat-item {
    width: min(240px, 100%);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.85rem 1rem;
  }

  .marquee__track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    justify-content: center;
    gap: 1rem;
    transform: none !important;
  }

  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: 1rem;
  }

  .marquee__group:nth-child(n + 2) {
    display: none;
  }

  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .cred-pill {
    min-width: 0;
    max-width: 100%;
  }
}

/* ==========================================================================
   Percorsi Nutrizionali (Editorial Bento)
   ========================================================================== */

.percorsi-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.35rem;
}

.percorso-card {
  position: relative;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 360ms var(--ease-out-expo),
              box-shadow 360ms var(--ease-out-expo),
              border-color 280ms ease;
}

.percorso-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(96, 131, 52, 0.35);
}

.percorso-card--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: linear-gradient(135deg, #ffffff 0%, var(--sage-50) 100%);
}

.percorso-card--half {
  grid-column: span 6;
}

.percorso-card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-100);
}

.percorso-card--featured .percorso-card__media {
  min-height: 320px;
}

.percorso-card--half .percorso-card__media {
  aspect-ratio: 16 / 9;
}

.percorso-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out-expo);
}

.percorso-card:hover .percorso-card__media img {
  transform: scale(1.05);
}

.percorso-card__body {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}

.percorso-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.percorso-tag {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--olive-600);
  background: var(--sage-100);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.percorso-num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-400);
}

.percorso-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 1.8vw, 1.55rem);
  color: var(--green-900);
  line-height: 1.25;
  margin: 0.75rem 0 0.65rem;
}

.percorso-card p {
  color: var(--ink-500);
  font-size: 0.96rem;
  margin: 0;
}

.percorso-card__note {
  margin-top: 0.75rem !important;
  padding-left: 0.85rem;
  border-left: 2px solid var(--olive-400);
  font-size: 0.88rem !important;
  color: var(--ink-700) !important;
}

.percorso-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-900);
  margin-top: 0.5rem;
  width: fit-content;
}

.percorso-link svg {
  transition: transform 240ms var(--ease-spring);
}

.percorso-card:hover .percorso-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Chi Sono & Credentials Marquee
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.about-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(20, 62, 38, 0.92);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.about-badge strong {
  color: var(--olive-300);
  font-weight: 600;
}

.about-body p {
  color: var(--ink-500);
  font-size: 1.03rem;
  margin: 0 0 1.05rem;
}

.about-quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--sage-50);
  border-left: 3px solid var(--olive-600);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--green-900);
}

.credentials-wrap {
  margin-top: 4rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border-subtle);
}

.credentials-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 1.5rem;
}

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: marqueeScroll var(--cred-duration, 36s) linear infinite;
}

.marquee__group {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
  min-width: 245px;
}

.cred-pill img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.cred-pill strong {
  display: block;
  font-size: 0.85rem;
  color: var(--green-900);
  line-height: 1.2;
}

.cred-pill span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-400);
}

/* ==========================================================================
   Il Metodo (Animated Vertical Timeline)
   ========================================================================== */

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.method-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.timeline {
  position: relative;
  padding-left: 2.75rem;
  display: grid;
  gap: 1.5rem;
}

.timeline__rail {
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.timeline__fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--olive-600), var(--green-900));
  transition: height 120ms linear;
}

.timeline-step {
  position: relative;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.65rem;
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 300ms var(--ease-out-expo);
}

.timeline-step:hover {
  border-color: rgba(96, 131, 52, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-step__marker {
  position: absolute;
  left: -2.75rem;
  top: 1.45rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 2px solid var(--olive-600);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px var(--surface-50);
  transition: background 260ms ease, color 260ms ease, transform 260ms var(--ease-spring);
}

.timeline-step.is-active .timeline-step__marker {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #ffffff;
  transform: scale(1.08);
}

.timeline-step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--green-900);
  margin: 0 0 0.45rem;
}

.timeline-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Booking Hub (Google Calendar + scheda MioDottore)
   ========================================================================== */

.gcal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.gcal-box {
  position: relative;
  min-height: 640px;
  background: var(--surface-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gcal-box iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

.gcal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  min-height: 640px;
  padding: 2rem 1.5rem;
  color: var(--ink-700);
}

.gcal-placeholder svg {
  color: var(--green-800);
  opacity: 0.85;
}

.gcal-placeholder h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-900);
}

.gcal-placeholder p {
  margin: 0;
  max-width: 36ch;
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.45;
}

.gcal-placeholder__note {
  margin-top: 0.5rem !important;
  font-size: 0.78rem !important;
  color: var(--ink-400) !important;
}

.gcal-placeholder__note code {
  font-size: 0.72rem;
}

.gcal-aside {
  background: var(--surface-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
}

.gcal-aside .md-profile {
  margin-bottom: 1rem;
}

.gcal-aside .md-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gcal-aside .md-actions .btn {
  width: 100%;
  justify-content: center;
}

.btn--ghost-md {
  background: transparent !important;
  color: #007d6c !important;
  border: 1px solid rgba(0, 179, 155, 0.45);
}

.btn--ghost-md:hover {
  background: rgba(0, 179, 155, 0.08) !important;
}

.gcal-aside__fine {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-400);
  text-align: center;
}

@media (max-width: 900px) {
  .gcal-layout {
    grid-template-columns: 1fr;
  }

  .gcal-box,
  .gcal-placeholder {
    min-height: 520px;
  }

  .gcal-box iframe {
    height: 620px;
  }
}

.booking-section {
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-950) 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.booking-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 50% at 90% 10%, rgba(151, 183, 112, 0.2), transparent 65%),
    radial-gradient(40% 45% at 10% 90%, rgba(0, 179, 155, 0.14), transparent 65%);
  pointer-events: none;
}

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

.booking-section .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: var(--olive-300);
}

.booking-section .section-title {
  color: #ffffff;
}

.booking-section .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.booking-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 2rem;
}

.booking-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 240ms ease, color 240ms ease;
}

.booking-tab.is-active {
  background: #ffffff;
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}

.booking-tab__pill {
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 179, 155, 0.16);
  color: #007d6c;
  font-weight: 700;
}

.booking-tab:not(.is-active) .booking-tab__pill {
  background: rgba(255, 255, 255, 0.16);
  color: var(--olive-300);
}

.booking-panel {
  display: none;
  background: var(--surface-white);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  animation: fadeSlideUp 360ms var(--ease-out-expo);
}

.booking-panel.is-active {
  display: block;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.md-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.md-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.md-profile img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 179, 155, 0.3);
}

.md-profile h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--green-900);
  margin: 0;
}

.md-profile p {
  margin: 0.15rem 0 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.md-benefits {
  list-style: none;
  margin: 1.25rem 0 1.65rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.md-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.md-benefits svg {
  color: var(--miodottore);
  flex-shrink: 0;
  margin-top: 3px;
}

.md-widget-card {
  background: var(--surface-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.md-widget-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.md-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #007d6c;
  font-size: 0.9rem;
}

.md-services {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.md-service-row {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.md-service-row strong {
  color: var(--green-900);
}

.md-service-row span {
  font-size: 0.8rem;
  color: var(--ink-400);
}

.md-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Studio form helpers */
.agenda-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: #fff9eb;
  border: 1px solid #f2dca6;
  color: #6b4f0b;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.agenda-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.75rem;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin-bottom: 0.6rem;
}

.service-options {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.service-opt {
  text-align: left;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 200ms ease, background 200ms ease;
}

.service-opt:hover {
  border-color: var(--olive-600);
}

.service-opt.is-selected {
  border-color: var(--green-900);
  background: var(--sage-50);
}

.service-opt strong {
  display: block;
  font-size: 0.93rem;
  color: var(--green-900);
}

.service-opt small {
  color: var(--ink-400);
  font-size: 0.8rem;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.day-btn {
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  text-align: center;
  font-size: 0.8rem;
  transition: all 180ms ease;
}

.day-btn strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green-900);
}

.day-btn.is-selected {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #ffffff;
}

.day-btn.is-selected strong {
  color: #ffffff;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.slot-btn {
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-50);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-900);
  transition: all 180ms ease;
}

.slot-btn:hover {
  border-color: var(--olive-600);
  background: var(--sage-50);
}

.slot-btn.is-selected {
  background: var(--olive-600);
  border-color: var(--olive-600);
  color: #ffffff;
}

.agenda-form {
  display: grid;
  gap: 0.85rem;
}

.input-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.35rem;
}

.input-group input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(20, 62, 38, 0.12);
}

.gdpr-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.gdpr-check input {
  margin-top: 3px;
  accent-color: var(--green-900);
}

.booking-summary {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--sage-50);
  border: 1px solid rgba(96, 131, 52, 0.25);
  font-size: 0.86rem;
  color: var(--green-900);
}

.booking-confirmed {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.booking-confirmed.is-visible {
  display: block;
  animation: fadeSlideUp 320ms var(--ease-out-expo);
}

.booking-confirmed__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--olive-600);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

/* ==========================================================================
   FAQ Split Accordion
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.faq-item.is-open {
  border-color: rgba(96, 131, 52, 0.45);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--green-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 280ms var(--ease-out-expo), background 220ms ease, color 220ms ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--green-900);
  color: #ffffff;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out-expo);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  overflow: hidden;
}

.faq-answer__inner p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* ==========================================================================
   Blog & Filterable Articles
   ========================================================================== */

.blog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--ink-700);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 200ms ease;
}

.filter-pill:hover {
  border-color: var(--green-900);
}

.filter-pill.is-active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #ffffff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.article-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease-out-expo), box-shadow 320ms var(--ease-out-expo), opacity 220ms ease;
}

.article-card.is-hidden {
  display: none;
}

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

.article-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-100);
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out-expo);
}

.article-card:hover .article-card__img img {
  transform: scale(1.05);
}

.article-card__body {
  padding: 1.25rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-400);
  margin-bottom: 0.65rem;
}

.article-meta__cat {
  color: var(--olive-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--green-900);
  margin: 0 0 0.6rem;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin: 0 0 1rem;
  flex: 1;
}

/* ==========================================================================
   Contatti & Privacy-First Map + Footer
   ========================================================================== */

.contact-request {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-request__info .section-title {
  margin-top: 0.35rem;
}

.contact-list--inline {
  margin-top: 1.75rem;
}

.contact-request__note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-500);
  max-width: 38ch;
}

.contact-form {
  display: grid;
  gap: 1.35rem;
}

.contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
}

.contact-field__label {
  font-size: 0.82rem;
  color: var(--ink-400);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  background: transparent;
  padding: 0.65rem 0;
  font: inherit;
  color: var(--green-900);
  outline: none;
  transition: border-color 180ms ease;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: var(--green-700);
}

.contact-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--ink-500);
  line-height: 1.45;
}

.contact-form__privacy input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-form__privacy-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green-800);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

@media (max-width: 860px) {
  .contact-request,
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: stretch;
}

.contact-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sage-100);
  color: var(--green-900);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}

.contact-list a,
.contact-list span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-900);
}

.map-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 340px;
  background:
    radial-gradient(circle at 30% 30%, rgba(151, 183, 112, 0.22), transparent 60%),
    linear-gradient(135deg, var(--sage-50) 0%, var(--surface-100) 100%);
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  max-width: 360px;
}

.map-placeholder h3 {
  font-family: var(--font-serif);
  color: var(--green-900);
  margin: 0.75rem 0 0.45rem;
}

.map-placeholder p {
  font-size: 0.88rem;
  color: var(--ink-500);
  margin: 0 0 1.25rem;
}

/* Footer: “due sedi, una firma” — quiet clinical colophon */
.site-footer {
  --footer-ink: #f4f8f1;
  --footer-muted: rgba(244, 248, 241, 0.62);
  --footer-line: rgba(244, 248, 241, 0.14);
  --footer-accent: #c5e39a;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 8% 0%, rgba(96, 131, 52, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #0f3320 0%, var(--green-950) 48%, #0a2215 100%);
  color: var(--footer-muted);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: 0.9rem;
}

.footer-shell {
  position: relative;
  z-index: 1;
}

.footer-mark {
  position: absolute;
  right: -0.05em;
  top: -0.22em;
  font-family: var(--font-serif);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
  animation: footerBreath 9s ease-in-out infinite;
}

@keyframes footerBreath {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-mark { animation: none; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 0.8fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--footer-line);
  align-items: start;
}

.footer-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-accent);
}

.footer-name {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--footer-ink);
}

.footer-meta {
  margin: 0 0 0.35rem;
  max-width: 28ch;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--footer-muted);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid rgba(197, 227, 154, 0.45);
  border-radius: 999px;
  color: var(--green-950);
  background: var(--footer-accent);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 280ms var(--ease-out-expo), background 220ms ease, gap 280ms var(--ease-out-expo);
}

.footer-cta:hover,
.footer-cta:focus-visible {
  gap: 0.8rem;
  transform: translateY(-2px);
  background: #d7efb2;
  outline: none;
}

.footer-cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(197, 227, 154, 0.35);
}

.footer-col-label {
  margin: 0 0 0.95rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 248, 241, 0.42);
}

.footer-studios {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-studio {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0.55rem 0.7rem 0.35rem;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms ease, background 220ms ease, transform 280ms var(--ease-out-expo);
}

.footer-studio:hover,
.footer-studio:focus-visible {
  border-left-color: var(--footer-accent);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
  outline: none;
}

.footer-studio__idx {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--footer-accent);
  padding-top: 0.2rem;
}

.footer-studio__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-studio__body strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--footer-ink);
}

.footer-studio__body span {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--footer-muted);
}

.footer-nav,
.footer-legal-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-nav a,
.footer-legal-col a {
  position: relative;
  color: rgba(244, 248, 241, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  padding-bottom: 0.1rem;
  transition: color 200ms ease;
}

.footer-nav a::after,
.footer-legal-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--footer-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out-expo);
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-legal-col a:hover,
.footer-legal-col a:focus-visible {
  color: var(--footer-ink);
  outline: none;
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after,
.footer-legal-col a:hover::after,
.footer-legal-col a:focus-visible::after {
  transform: scaleX(1);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding-top: 1.45rem;
  font-size: 0.78rem;
  color: rgba(244, 248, 241, 0.48);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-mark {
    font-size: 8rem;
    right: -0.12em;
  }

  .footer-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Scroll Reveal Motion System (/animate)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease-out-expo),
              transform 720ms var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

[data-reveal="left"] {
  transform: translateX(-26px);
}

[data-reveal="right"] {
  transform: translateX(26px);
}

[data-reveal="scale"] {
  transform: scale(0.95);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1120px) {
  .nav-links,
  .nav-actions .btn--sm {
    display: none;
  }

  .nav-toggle,
  .mobile-drawer {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  .hero-grid,
  .mrs-card,
  .about-grid,
  .method-layout,
  .md-grid,
  .agenda-grid,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 460px;
    margin-inline: auto;
  }

  .hero-float--top {
    left: 0.5rem;
  }

  .hero-float--bottom {
    right: 0.5rem;
  }

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

  .percorso-card--half {
    grid-column: span 12;
  }

  .method-sticky {
    position: static;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .day-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-float {
    position: static;
    margin-top: 0.85rem;
    max-width: 100%;
    animation: none;
  }
}

/* Mobile: keep cred marquee endless; skip heavy intro */
@media (max-width: 900px) {
  .cred-pill {
    min-width: 220px;
  }

  .intro-3d,
  .replay-intro-btn {
    display: none !important;
  }

  body.intro-active {
    position: static;
    height: auto;
    touch-action: pan-y;
    overflow-x: hidden;
  }

  .container {
    width: min(var(--container), calc(100% - 1.5rem));
  }

  .gcal-box,
  .gcal-placeholder {
    min-height: 0;
  }

  .gcal-box iframe {
    height: min(70vh, 560px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .intro-3d,
  .replay-intro-btn {
    display: none !important;
  }
}

/* ==========================================================================
   3D Stethoscope Intro Stage
   ========================================================================== */

body.intro-active {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.intro-3d {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(55% 55% at 50% 45%, rgba(255, 255, 255, 0.96) 0%, rgba(247, 254, 239, 0.96) 55%, rgba(232, 242, 224, 0.98) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  transition: opacity 1100ms var(--ease-out-expo), backdrop-filter 1100ms ease;
}

.intro-3d.is-fading {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
}

.intro-3d.is-done {
  display: none;
}

#stethoscopeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-3d__caption {
  position: absolute;
  bottom: clamp(2.2rem, 6vh, 4rem);
  text-align: center;
  pointer-events: none;
  z-index: 2;
  animation: fadeSlideUp 700ms var(--ease-out-expo);
}

.intro-3d__caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--green-900);
  letter-spacing: -0.01em;
}

.intro-3d__caption span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-600);
  margin-top: 0.25rem;
}

.intro-3d__skip {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-900);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 200ms ease, transform 200ms ease;
}

.intro-3d__skip:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.replay-intro-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  color: var(--green-900);
  font-size: 0.74rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms var(--ease-out-expo), background 200ms ease;
}

.replay-intro-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.replay-intro-btn:hover {
  background: var(--sage-50);
  border-color: var(--olive-600);
}

/* ==========================================================================
   Floating Version Switcher (Versione 1 <-> Versione 2)
   ========================================================================== */

.version-switcher {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(20, 62, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.version-switcher__item {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: background 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.version-switcher__item:hover {
  color: #ffffff;
}

.version-switcher__item.is-active {
  background: #ffffff;
  color: #143e26;
}
