/* ========================================================================
   CLINICA SVOOLTA — Editorial Luxury Aesthetic
   Dark warm palette · Editorial typography · Fashion-forward layout
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --black: #0A0A08;
  --black-warm: #111110;
  --black-soft: #1A1918;
  --charcoal: #2A2826;
  --warm-800: #3D3835;
  --warm-700: #524B47;
  --warm-600: #6B6259;
  --warm-500: #8A7F74;
  --warm-400: #A89B8E;
  --warm-300: #C4B5A5;
  --warm-200: #D9CCBE;
  --warm-100: #EDE5DA;
  --cream: #F5F0EB;
  --ivory: #FAF7F4;
  --white: #FEFDFB;

  --gold: #C6A87D;
  --gold-dark: #8a6d3b;
  --gold-light: #DBBF97;
  --gold-muted: rgba(198, 168, 125, 0.15);
  --gold-glow: rgba(198, 168, 125, 0.08);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --fs-massive: clamp(4rem, 9vw, 9rem);
  --fs-hero-sub: clamp(1rem, 1.4vw, 1.25rem);
  --fs-display: clamp(3rem, 5.5vw, 5.5rem);
  --fs-h1: clamp(2.4rem, 4vw, 4rem);
  --fs-h2: clamp(2rem, 3.2vw, 3.2rem);
  --fs-h3: clamp(1.4rem, 2vw, 2rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.4rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.6875rem;

  --lh-tight: 0.95;
  --lh-heading: 1.1;
  --lh-body: 1.65;

  --ls-mega: 0.25em;
  --ls-wide: 0.14em;
  --ls-normal: 0.02em;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 9rem;
  --space-section: clamp(6rem, 12vw, 10rem);

  --container: 1400px;
  --container-narrow: 1100px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 100px;

  --transition-fast: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-base: 350ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection {
  background: var(--gold-muted);
  color: var(--white);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.divider-line {
  width: 100%;
  height: 1px;
  background: rgba(198, 168, 125, 0.12);
}

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  mix-blend-mode: difference;
}

.nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(10, 10, 8, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: var(--space-md) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
}

.nav__logo em {
  font-style: italic;
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: var(--space-xs) 0;
  transition: opacity var(--transition-fast);
}

.nav__link:hover { opacity: 0.6; }

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: inherit;
}

.nav__dropdown-arrow {
  transition: transform var(--transition-base);
}

.nav__dropdown:hover .nav__dropdown-arrow,
.nav__dropdown.open .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-sm));
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(10, 10, 8, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(198, 168, 125, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--transition-base);
  z-index: 200;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  color: var(--gold);
  background: rgba(198, 168, 125, 0.08);
  padding-left: calc(var(--space-lg) + 4px);
}

.nav__cta {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 0.8em 2em;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 4px 0;
  cursor: pointer;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* --- Mobile menu overlay (hidden on desktop) --- */
.nav__overlay { display: none; }

@media (max-width: 768px) {

  /* Kill mix-blend-mode when menu is open */
  .nav.menu-open {
    mix-blend-mode: normal;
    z-index: 1100;
  }

  .nav__toggle {
    display: flex;
    z-index: 1010;
    position: relative;
  }

  /* Overlay — not needed visually but keeps tap-to-close */
  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
    opacity: 0;
    pointer-events: none;
  }
  .nav__overlay.visible {
    opacity: 1;
    pointer-events: all;
  }

  /* ---- FULLSCREEN MENU PANEL ---- */
  .nav__links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    background: #0a0a08;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-2xl);
    gap: var(--space-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    mix-blend-mode: normal;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }

  /* Nav links */
  .nav__link {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--gold);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(198, 168, 125, 0.12);
    transition: color var(--transition-fast);
  }

  .nav__link:hover,
  .nav__link.active {
    color: var(--white);
  }

  .nav__link.active::after { display: none; }

  /* CTA */
  .nav__cta {
    margin-top: var(--space-xl);
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-size: var(--fs-label);
    padding: 1em 2em;
    background: var(--gold);
    color: var(--black);
    border-radius: var(--radius-pill);
  }

  /* Dropdown */
  .nav__dropdown {
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-bottom: 1px solid rgba(198, 168, 125, 0.12);
  }

  .nav__dropdown-toggle {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--gold);
    padding: var(--space-md) 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
  }

  .nav__dropdown-arrow {
    color: var(--gold);
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .nav__dropdown.open .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    transform: none;
    padding-bottom: var(--space-sm);
  }

  .nav__dropdown:hover .nav__dropdown-menu { opacity: 0; visibility: hidden; max-height: 0; }
  .nav__dropdown:hover.open .nav__dropdown-menu { opacity: 1; visibility: visible; max-height: 200px; }

  .nav__dropdown-link {
    padding: var(--space-xs) 0;
    font-size: 0.95rem;
    color: var(--warm-400);
    text-align: center;
    display: block;
  }

  .nav__dropdown-link:hover {
    padding-left: 0;
    background: none;
    color: var(--gold);
  }
}

/* ============================
   HERO — SCROLL-DRIVEN REVEAL
   Image starts full-screen, shrinks to right on scroll, text appears on left
   ============================ */
.hero {
  position: relative;
  height: 200vh; /* scroll distance for the animation */
  background: var(--black);
}

/* Sticky container that stays in view during scroll */
.hero__image-layer {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 2;
  will-change: transform;
  /* These get animated via JS: width, border-radius, margin */
  transition: none; /* JS drives this directly for smoothness */
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 8, 0.1) 0%,
    rgba(10, 10, 8, 0.0) 40%,
    rgba(10, 10, 8, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Brand mark visible in initial full-screen state */
.hero__intro-brand {
  position: absolute;
  bottom: var(--space-4xl);
  left: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: opacity 0.4s ease;
}

.hero__intro-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
}

.hero__intro-logo em {
  font-style: italic;
  color: var(--gold);
}

.hero__intro-tagline {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--gold);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-2xl);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 3;
  transition: opacity 0.4s ease;
}

.hero__scroll-hint span {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--warm-400);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--warm-700);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* Content — absolute within hero, JS toggles between fixed/absolute to "pin" then "release" */
.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--space-3xl) var(--space-3xl) var(--gutter);
  z-index: 1;
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
}

/* When JS pins it in view during scroll */
.hero__content.pinned {
  position: fixed;
}

/* When scroll passes hero, JS positions it at the bottom of hero so it scrolls away */
.hero__content.released {
  position: absolute;
  bottom: 0;
  top: auto;
}

.hero__content.visible {
  pointer-events: all;
}

.hero__label {
  margin-bottom: var(--space-2xl);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-massive);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-2xl);
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__title-line {
  display: block;
}

.hero__subtitle {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--warm-400);
  max-width: 38ch;
  margin-bottom: var(--space-lg);
}

.hero__badges {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger: each badge appears with a delay */
.hero__badge:nth-child(1) { transition-delay: 0.15s; }
.hero__badge:nth-child(2) { transition-delay: 0.3s; }
.hero__badge:nth-child(3) { transition-delay: 0.45s; }

/* When hero content becomes visible, animate badges in */
.hero__content.visible .hero__badge {
  opacity: 1;
  transform: translateY(0);
}

.hero__badge-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 168, 125, 0.2);
  border-radius: 50%;
  color: var(--gold);
}

.hero__badge-icon svg { width: 14px; height: 14px; }

.hero__badge-text {
  font-size: 0.7rem;
  color: var(--warm-400);
  line-height: 1.3;
}

.hero__badge-text strong {
  display: block;
  color: var(--cream);
  font-weight: 500;
}

/* ---- Mobile hero (stacked layout + premium entrance animations) ---- */
@media (max-width: 768px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero__image-layer {
    position: relative;
    height: 65dvh;
    min-height: 400px;
  }

  .hero__image {
    animation: mobileHeroImageReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero__image-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 8, 0) 0%,
      rgba(10, 10, 8, 0) 50%,
      rgba(10, 10, 8, 0.7) 100%
    );
  }

  /* Show brand on mobile too — elegant fade over the image bottom */
  .hero__intro-brand {
    display: flex;
    bottom: var(--space-2xl);
    left: var(--gutter);
    opacity: 0;
    animation: mobileFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  }

  .hero__intro-logo {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero__scroll-hint {
    display: none;
  }

  .hero__content {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: mobileFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    padding: var(--space-2xl) var(--gutter) var(--space-3xl);
    pointer-events: all;
  }

  .hero__label {
    opacity: 0;
    animation: mobileFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    margin-bottom: var(--space-lg);
  }

  .hero__title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    opacity: 0;
    animation: mobileFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    margin-bottom: var(--space-lg);
  }

  .hero__subtitle {
    opacity: 0;
    animation: mobileFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
    font-size: var(--fs-body);
  }

  .hero__badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .hero__badge {
    opacity: 0;
    transform: translateY(16px);
    animation: mobileFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero__badge:nth-child(1) { animation-delay: 0.9s; }
  .hero__badge:nth-child(2) { animation-delay: 1.05s; }
  .hero__badge:nth-child(3) { animation-delay: 1.2s; }

  .hero__actions {
    flex-direction: column;
    gap: var(--space-md);
    align-items: stretch;
    opacity: 0;
    animation: mobileFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__image-layer {
    height: 55dvh;
    min-height: 340px;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero__badges {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Mobile hero keyframes */
@keyframes mobileHeroImageReveal {
  from {
    transform: scale(1.08);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 1.1em 2.6em;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.btn--gold {
  color: var(--black);
  background: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(198, 168, 125, 0.2);
}

.btn--outline {
  color: var(--cream);
  background: transparent;
  border: 1.5px solid var(--warm-700);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--white {
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--white);
}

.btn--white:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--gold);
  background: transparent;
  border: none;
  padding: 0;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn--ghost .btn__arrow {
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  transition: width var(--transition-base);
  position: relative;
}

.btn--ghost .btn__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
}

.btn--ghost:hover .btn__arrow { width: 36px; }

.btn--lg {
  font-size: var(--fs-small);
  padding: 1.2em 3em;
}

/* ============================
   MARQUEE / RUNNING TEXT
   ============================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-top: var(--space-4xl);
  padding: var(--space-lg) 0;
  background: linear-gradient(135deg, #8a6d3b, #c6a87d 40%, #d4b98a 60%, #8a6d3b);
  border-top: none;
  border-bottom: none;
}

.marquee__track {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

.marquee__item {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--black);
  padding-right: var(--space-2xl);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xl);
}

.marquee__item::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--black);
  opacity: 0.4;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================
   SECTION HEADERS
   ============================ */
.section {
  padding-block: var(--space-section);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-block: clamp(3.5rem, 8vw, 5rem);
  }
}

.section--cream {
  background: var(--ivory);
  color: var(--black);
}

.section--dark-alt {
  background: var(--black-warm);
}

/* About section — warm dark with subtle gold atmosphere */
.section--sand {
  background: #111110;
  position: relative;
  overflow: hidden;
}

.section--sand::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(198, 168, 125, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section--sand .split__title {
  color: var(--white);
}

.section--sand .split__text {
  color: var(--warm-400);
}

.section--sand .feature {
  color: var(--warm-300);
}

.section--sand .feature__icon {
  color: var(--gold);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header--center {
  text-align: center;
}

.section-header__label {
  margin-bottom: var(--space-lg);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--white);
}

.section--cream .section-header__title {
  color: var(--black);
}

.section-header__desc {
  margin-top: var(--space-md);
  font-size: var(--fs-body-lg);
  color: var(--warm-400);
  max-width: 50ch;
  line-height: var(--lh-body);
}

.section--cream .section-header__desc {
  color: var(--warm-600);
}

.section-header--center .section-header__desc {
  margin-inline: auto;
}

/* ============================
   SERVICES — EDITORIAL GRID
   ============================ */
/* --- Services Ovals --- */
.services-ovals {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding-top: var(--space-xl);
}

.service-oval {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 0 1 300px;
  max-width: 300px;
  group: service;
}

.service-oval__image {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(198, 168, 125, 0.15);
  transition: border-color 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-oval:hover .service-oval__image {
  border-color: var(--gold);
  transform: translateY(-8px);
}

.service-oval__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fallback when images are missing */
.service-oval:nth-child(1) .service-oval__image {
  background: linear-gradient(160deg, #1a1510, #2a2018 40%, #1a1510);
}
.service-oval:nth-child(2) .service-oval__image {
  background: linear-gradient(160deg, #12140f, #1e2118 40%, #12140f);
}
.service-oval:nth-child(3) .service-oval__image {
  background: linear-gradient(160deg, #14110e, #221c15 40%, #14110e);
}

.service-oval:hover .service-oval__image img {
  transform: scale(1.06);
}

.service-oval__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(10, 10, 8, 0.6) 100%
  );
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.service-oval:hover .service-oval__overlay {
  opacity: 0.7;
}

.service-oval__content {
  text-align: center;
  padding-top: var(--space-xl);
}

.service-oval__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-xs);
  line-height: var(--lh-heading);
  transition: color 0.4s ease;
}

.service-oval:hover .service-oval__title {
  color: var(--gold);
}

.service-oval__desc {
  font-size: var(--fs-small);
  color: var(--warm-400);
  line-height: var(--lh-body);
  margin-bottom: var(--space-md);
}

.service-oval__cta {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-oval:hover .service-oval__cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .services-ovals { gap: var(--space-2xl); }
  .service-oval { flex: 0 1 260px; max-width: 260px; }
}

@media (max-width: 768px) {
  .services-ovals {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
  }
  .service-oval {
    flex: none;
    width: min(280px, 75vw);
    max-width: 280px;
  }
  .service-oval__cta { opacity: 1; transform: translateY(0); }
  .service-oval__image {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 480px) {
  .service-oval {
    width: min(240px, 70vw);
    max-width: 240px;
  }
}

/* ============================
   ABOUT / SPLIT SECTION
   ============================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.split--image-left {
  grid-template-columns: 1.1fr 0.9fr;
}

.split__image {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  aspect-ratio: 3/4.2;
  background: url('../img/dottore.jpg') center/cover no-repeat;
}

.split__image::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 20%;
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse, var(--gold-muted) 0%, transparent 70%);
  filter: blur(50px);
}

.split__content {
  padding-block: var(--space-2xl);
}

.split__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.section--cream .split__title {
  color: var(--black);
}

.split__text {
  font-size: var(--fs-body);
  color: var(--warm-400);
  line-height: var(--lh-body);
  max-width: 44ch;
  margin-bottom: var(--space-xl);
}

.section--cream .split__text {
  color: var(--warm-600);
}

/* Feature list */
.features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-small);
  color: var(--warm-300);
}

.section--cream .feature {
  color: var(--warm-700);
}

.feature__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
}

@media (max-width: 768px) {
  .split, .split--image-left {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .split__image { aspect-ratio: 4/3; }
}

/* ============================
   STATS
   ============================ */
/* --- Stats strip — fluid divider between sections --- */
.stats-strip {
  padding: var(--space-3xl) 0;
  border-top: 1px solid rgba(198, 168, 125, 0.1);
  border-bottom: 1px solid rgba(198, 168, 125, 0.1);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  position: relative;
  padding: var(--space-lg) var(--space-xl);
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(198, 168, 125, 0.12);
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__text {
  font-size: var(--fs-xs);
  color: var(--warm-500);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats-strip {
    padding: var(--space-xl) 0;
    overflow: hidden;
    max-width: 100vw;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    overflow: hidden;
  }
  .stat {
    padding: var(--space-sm) var(--space-xs);
    overflow: hidden;
  }
  .stat__number {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    word-break: break-all;
  }
  .stat__text {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  .stat:nth-child(2)::after { display: none; }
  .stat:nth-child(1), .stat:nth-child(2) {
    border-bottom: 1px solid rgba(198, 168, 125, 0.08);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 380px) {
  .stat__number {
    font-size: 1.2rem;
  }
  .stat__text {
    font-size: 0.55rem;
  }
}

/* ============================
   TESTIMONIALS
   ============================ */
/* ============================
   BEFORE / AFTER SCROLL
   ============================ */
.ba-scroll {
  overflow: hidden;
  padding: 0 0 var(--space-xl);
}

.ba-scroll__track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  padding: var(--space-md) var(--space-2xl);
  animation: ba-marquee 35s linear infinite;
}

.ba-scroll:hover .ba-scroll__track {
  animation-play-state: paused;
}

@keyframes ba-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ba-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ba-card__oval {
  width: 280px;
  height: 380px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(198, 168, 125, 0.15);
  position: relative;
  transition: border-color 0.4s ease;
}

.ba-card:hover .ba-card__oval {
  border-color: var(--gold);
}

/* --- Photo in oval + review below --- */
.ba-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-card__review {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
}

.ba-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.ba-card__quote {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 0.6rem;
}

.ba-card__name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.ba-card__treatment {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(254, 253, 251, 0.45);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .ba-scroll {
    padding: 0 0 var(--space-md);
  }
  .ba-scroll__track {
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
  }
  .ba-card { flex: 0 0 220px; }
  .ba-card__oval { width: 220px; height: 300px; }
  .ba-card__review { max-width: 220px; }
  .ba-card__quote { font-size: 0.75rem; }
  .ba-card__name { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .ba-card { flex: 0 0 190px; }
  .ba-card__oval { width: 190px; height: 260px; }
  .ba-card__review { max-width: 190px; }
}

/* Legacy — keep old testimonial class for compat */
.testimonial {
  padding: var(--space-2xl);
  border: 1px solid rgba(198, 168, 125, 0.1);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.testimonial:hover {
  border-color: rgba(198, 168, 125, 0.25);
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-lg);
}

.testimonial__stars svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.testimonial__text {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-style: italic;
  line-height: 1.4;
  color: var(--warm-200);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(198, 168, 125, 0.08);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--gold);
}

.testimonial__name {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--cream);
}

.testimonial__role {
  font-size: var(--fs-xs);
  color: var(--warm-500);
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; }
}

/* ============================
   CTA X-MARQUEE SECTION
   ============================ */
.cta-x {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.cta-x::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(198,168,125,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* --- Diagonal bands --- */
.cta-x__band {
  position: absolute;
  left: -20%;
  width: 140%;
  white-space: nowrap;
  overflow: hidden;
  padding: var(--space-lg) 0;
  background: var(--gold);
  z-index: 2;
}

.cta-x__band--top {
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
}

.cta-x__band--bottom {
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
}

/* --- Scrolling tracks --- */
.cta-x__track {
  display: inline-flex;
  will-change: transform;
}

.cta-x__track--forward {
  animation: cta-x-scroll-forward 30s linear infinite;
}

.cta-x__track--reverse {
  animation: cta-x-scroll-reverse 30s linear infinite;
}

@keyframes cta-x-scroll-forward {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes cta-x-scroll-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* --- Words --- */
.cta-x__word {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: var(--ls-normal);
  color: var(--black);
  padding-right: var(--space-3xl);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xl);
}

.cta-x__word::after {
  content: '\25C6';
  font-size: 0.35em;
  font-style: normal;
  color: var(--black);
  opacity: 0.3;
}

/* --- Center hub --- */
.cta-x__center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-3xl);
  background: radial-gradient(ellipse, rgba(10,10,8,0.95) 0%, rgba(10,10,8,0.8) 70%, transparent 100%);
}

.cta-x__tagline {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cta-x {
    height: 55vh;
    min-height: 400px;
  }
  .cta-x__band {
    left: -40%;
    width: 180%;
  }
  .cta-x__band--top  { transform: translateY(-50%) rotate(-10deg); }
  .cta-x__band--bottom { transform: translateY(-50%) rotate(10deg); }
  .cta-x__word {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    padding-right: var(--space-2xl);
  }
  .cta-x__center {
    padding: var(--space-2xl);
    gap: var(--space-md);
  }
  .cta-x__center .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cta-x {
    height: 50vh;
    min-height: 360px;
  }
  .cta-x__band {
    left: -50%;
    width: 200%;
  }
  .cta-x__band--top  { transform: translateY(-50%) rotate(-8deg); }
  .cta-x__band--bottom { transform: translateY(-50%) rotate(8deg); }
  .cta-x__center .btn--lg {
    font-size: var(--fs-label);
    padding: 1em 2em;
  }
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid rgba(198, 168, 125, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand-desc {
  color: var(--warm-500);
  font-size: var(--fs-small);
  margin-top: var(--space-md);
  max-width: 28ch;
  line-height: var(--lh-body);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-mega);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  color: var(--warm-500);
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--cream);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(198, 168, 125, 0.08);
  font-size: var(--fs-xs);
  color: var(--warm-700);
}

.footer__social {
  display: flex;
  gap: var(--space-lg);
}

.footer__social a {
  color: var(--warm-600);
  transition: color var(--transition-fast);
}

.footer__social a:hover { color: var(--gold); }

.footer__social svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .footer {
    padding: var(--space-3xl) 0 var(--space-lg);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
  }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: none; }

/* Hero entrance — intro brand fades in on load */
.hero__intro-brand {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero__scroll-hint {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

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

/* Subtler reveal on mobile — smaller movements feel more polished */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .stagger > * {
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .section-header__title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .section-header__desc {
    font-size: var(--fs-body);
  }

  .marquee {
    margin-top: var(--space-2xl);
  }

  .split__image {
    border-radius: 999px;
    max-width: 280px;
    margin-inline: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *, .hero__content > *, .hero__visual {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero__scroll-line::after { animation: none; }
  .marquee__track { animation: none; }
  .cta-x__track--forward,
  .cta-x__track--reverse { animation: none; }
}

/* ============================
   SUBPAGE HERO (shared across chi-siamo, contatti)
   ============================ */
.subpage-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.subpage-hero--short {
  height: 50vh;
  min-height: 380px;
  background: var(--black-warm);
}

.subpage-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.subpage-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(10,10,8,0.4) 50%, rgba(10,10,8,0.2) 100%);
}

.subpage-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-4xl) var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}

.subpage-hero__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xl);
  transition: opacity var(--transition-fast);
}

.subpage-hero__back:hover { opacity: 0.6; }
.subpage-hero__back svg { width: 16px; height: 16px; }

.subpage-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.subpage-hero__title em { font-style: italic; color: var(--gold); }

.subpage-hero__desc {
  font-size: var(--fs-body-lg);
  color: var(--warm-400);
  max-width: 50ch;
  line-height: var(--lh-body);
}

@media (max-width: 768px) {
  .subpage-hero {
    height: 50vh;
    min-height: 360px;
  }
  .subpage-hero--short {
    height: 40vh;
    min-height: 280px;
  }
  .subpage-hero__content {
    padding: var(--space-2xl) var(--gutter);
  }
  .subpage-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .subpage-hero__desc {
    font-size: var(--fs-body);
  }
}

@media (max-width: 480px) {
  .subpage-hero {
    height: 45vh;
    min-height: 300px;
  }
  .subpage-hero__title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }
}

/* ============================
   CHI SIAMO — ABOUT DOCTOR
   ============================ */
.about-doctor {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: var(--space-4xl);
  align-items: start;
}

.about-doctor__image {
  border-radius: 999px;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
}

.about-doctor__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-doctor__name {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  color: var(--white);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.about-doctor__role {
  font-size: var(--fs-small);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: 600;
  margin-bottom: var(--space-2xl);
}

.about-doctor__bio {
  font-size: var(--fs-body);
  color: var(--warm-400);
  line-height: var(--lh-body);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

.about-doctor__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(198, 168, 125, 0.1);
}

.about-doctor__credential {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--fs-small);
  color: var(--warm-300);
}

.about-doctor__credential svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}

@media (max-width: 768px) {
  .about-doctor {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .about-doctor__image {
    max-width: 280px;
    margin-inline: auto;
  }
}

/* ============================
   CHI SIAMO — VALUES GRID
   ============================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
}

.value-card {
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid rgba(198, 168, 125, 0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.value-card:hover {
  border-color: rgba(198, 168, 125, 0.2);
  transform: translateY(-4px);
}

.value-card:hover::before { opacity: 1; }

.value-card__icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(198, 168, 125, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.value-card__icon svg { width: 22px; height: 22px; }

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.value-card__desc {
  font-size: var(--fs-small);
  color: var(--warm-500);
  line-height: var(--lh-body);
}

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

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

/* ============================
   CHI SIAMO — CLINIC FEATURES
   ============================ */
.clinic-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
}

.clinic-feature {
  padding: var(--space-xl);
  position: relative;
}

.clinic-feature__number {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  color: rgba(198, 168, 125, 0.08);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.clinic-feature__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.clinic-feature__desc {
  font-size: var(--fs-small);
  color: var(--warm-400);
  line-height: var(--lh-body);
}

@media (max-width: 1024px) {
  .clinic-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .clinic-features { grid-template-columns: 1fr; }
}

/* ============================
   CONTATTI — LAYOUT
   ============================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--white);
  margin-bottom: var(--space-2xl);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(198, 168, 125, 0.08);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}

.contact-card:hover {
  border-color: rgba(198, 168, 125, 0.2);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(198, 168, 125, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.contact-card__icon svg { width: 20px; height: 20px; }

.contact-card__label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-card__value {
  font-size: var(--fs-small);
  color: var(--warm-400);
  line-height: var(--lh-body);
}

.contact-card__value a {
  transition: color var(--transition-fast);
}

.contact-card__value a:hover {
  color: var(--gold);
}

.contact-direct {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================
   CONTATTI — FORM
   ============================ */
.contact-form-card {
  background: var(--black-soft);
  border: 1px solid rgba(198, 168, 125, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.contact-form__title em {
  font-style: italic;
  color: var(--gold);
}

.contact-form__desc {
  font-size: var(--fs-small);
  color: var(--warm-500);
  margin-bottom: var(--space-2xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--warm-400);
}

.form-input {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--cream);
  background: rgba(198, 168, 125, 0.04);
  border: 1px solid rgba(198, 168, 125, 0.12);
  border-radius: var(--radius-md);
  padding: 0.9em 1.2em;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  background: rgba(198, 168, 125, 0.06);
}

.form-input::placeholder {
  color: var(--warm-600);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C6A87D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2em center;
  padding-right: 3em;
  cursor: pointer;
}

.form-select option,
.form-select optgroup {
  background: var(--black-soft);
  color: var(--cream);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-privacy {
  margin-top: var(--space-xs);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--warm-500);
  cursor: pointer;
}

.form-checkbox {
  margin-top: 3px;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

/* ============================
   CONTATTI — MAP
   ============================ */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(198, 168, 125, 0.08);
}

.map-embed iframe {
  display: block;
  filter: grayscale(0.8) brightness(0.7) contrast(1.1);
  transition: filter var(--transition-slow);
}

.map-embed:hover iframe {
  filter: grayscale(0.3) brightness(0.8) contrast(1.05);
}

/* ============================
   FAQ (shared — also used in treatment pages)
   ============================ */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(198, 168, 125, 0.08);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.faq-item__question:hover { color: var(--gold); }

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-bottom: var(--space-lg);
}

.faq-item__answer p {
  font-size: var(--fs-body);
  color: var(--warm-400);
  line-height: var(--lh-body);
  max-width: 60ch;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 100%;
    overflow: hidden;
  }
  .contact-form-wrapper {
    max-width: 100%;
    overflow: hidden;
  }
  .contact-form-card {
    padding: var(--space-lg);
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-form__title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }
  .contact-form__desc {
    font-size: var(--fs-small);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-input,
  .form-select,
  .form-textarea {
    max-width: 100%;
    box-sizing: border-box;
  }
  .form-submit {
    width: 100%;
    justify-content: center;
  }
  .contact-card {
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .contact-card__icon {
    width: 36px;
    height: 36px;
  }
  .contact-card__icon svg {
    width: 16px;
    height: 16px;
  }
  .contact-direct {
    flex-direction: column;
  }
  .contact-direct .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: var(--space-md);
  }
  .contact-form__title {
    font-size: 1.2rem;
  }
}

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--warm-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--warm-500); }

/* ============================
   WHATSAPP FLOATING WIDGET
   ============================ */
.wa-widget {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  pointer-events: none;
}

.wa-widget__tooltip {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.6em 1em;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.wa-widget__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  pointer-events: auto;
  position: relative;
}

.wa-widget__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37,211,102,0.5);
}

.wa-widget__btn:hover + .wa-widget__tooltip,
.wa-widget__btn:hover ~ .wa-widget__tooltip {
  /* fallback — tooltip is before btn in DOM, use JS or reorder */
}

.wa-widget:hover .wa-widget__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.wa-widget__btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Pulse ring */
.wa-widget__btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: wa-pulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

@media (max-width: 480px) {
  .wa-widget {
    bottom: var(--space-md);
    right: var(--space-md);
  }
  .wa-widget__btn {
    width: 52px;
    height: 52px;
  }
  .wa-widget__btn svg {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-widget__btn::before { animation: none; }
}
