/* ═══════════════════════════════════════════════
   CLINICA AUREA — Pordenone
   Cinematic editorial stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --cream: #f4efe7;
  --cream-dim: #eae3d6;
  --ink: #1d1a16;
  --ink-soft: #4a443c;
  --bronze: #a8865a;
  --bronze-light: #c9ab7e;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", -apple-system, sans-serif;
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--bronze); color: var(--cream); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── grain overlay ── */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ═══════════ PRELOADER ═══════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__inner { text-align: center; position: relative; height: 4rem; width: 100%; }
.preloader__word,
.preloader__brand {
  position: absolute;
  left: 0; right: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  opacity: 0;
}
.preloader__brand em { font-style: italic; color: var(--bronze-light); }
.preloader__counter {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--bronze-light);
  line-height: 1;
}
.preloader__veil {
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleY(0);
  transform-origin: top;
}

/* ═══════════ CURSOR ═══════════ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bronze);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: normal;
}
.cursor.is-hover { width: 56px; height: 56px; background: rgba(168, 134, 90, 0.25); backdrop-filter: blur(2px); }
.cursor.is-label { width: 90px; height: 90px; background: var(--ink); }
.cursor__label {
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  mix-blend-mode: difference;
  color: #fff;
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.nav__logo em { font-style: italic; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 0.2rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 99px;
  padding: 0.65rem 1.5rem;
  overflow: hidden;
  position: relative;
  transition: color 0.4s var(--ease);
}
.nav__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  border-radius: 99px;
}
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta span { position: relative; z-index: 1; }
.nav__cta:hover { color: #000; }
.nav__burger { display: none; }

/* ═══════════ MOBILE MENU ═══════════ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__links { display: flex; flex-direction: column; gap: 0.5rem; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 300;
  font-style: italic;
}
.menu__footer { margin-top: 3rem; font-size: 0.85rem; opacity: 0.6; line-height: 2; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: var(--cream);
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__media img {
  transform: scale(1.15);
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,16,12,0.82) 0%, rgba(20,16,12,0.15) 45%, rgba(20,16,12,0.3) 100%);
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 3.5rem;
}
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.hero__eyebrow span { display: inline-block; }
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; will-change: transform; }
.hero__line--italic em { font-style: italic; color: var(--bronze-light); }
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2.5rem;
}
.hero__sub {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.85;
  max-width: 34rem;
}
.hero__scroll {
  position: relative;
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero__scroll-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244,239,231,0.4);
  border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.5; }
}
.hero__scroll-arrow { font-size: 1.2rem; }

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  background: var(--ink);
  color: var(--cream-dim);
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

/* ═══════════ SECTION LABEL ═══════════ */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 2rem;
}
.section-label--light { color: var(--bronze-light); }

/* ═══════════ MANIFESTO ═══════════ */
.manifesto {
  padding: clamp(7rem, 14vw, 12rem) 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.manifesto__label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 3rem;
}
.manifesto__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.manifesto__text .w { opacity: 0.12; transition: opacity 0.5s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__meta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ═══════════ SPLIT ═══════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 3rem;
  max-width: 1500px;
  margin: 0 auto;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--reverse .split__body { order: 1; }
.split__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}
.split__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}
.split__title em { font-style: italic; color: var(--bronze); }
.split__quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  border-left: 2px solid var(--bronze);
  padding-left: 1.4rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
}
.split__quote em { font-style: italic; }
.split__text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  max-width: 32rem;
}
.split__list { list-style: none; margin-top: 2.5rem; }
.split__list li {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(29,26,22,0.14);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.split__list li::before {
  content: "✦";
  color: var(--bronze);
  font-size: 0.7rem;
}
.split__list li:last-child { border-bottom: 1px solid rgba(29,26,22,0.14); }

/* ═══════════ PARALLAX ═══════════ */
.parallax-wrap { overflow: hidden; position: relative; }
.parallax-img { will-change: transform; transform: scale(1.18); }

/* ═══════════ TRATTAMENTI ═══════════ */
.treatments {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(6rem, 11vw, 10rem) 3rem;
  position: relative;
}
.treatments__head { max-width: 1500px; margin: 0 auto 4.5rem; }
.treatments__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.treatments__title em { font-style: italic; color: var(--bronze-light); }
.treatments__grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}
.treatments__list { position: relative; z-index: 2; }
.treatment {
  display: grid;
  grid-template-columns: 3.5rem 1fr 2.2rem;
  grid-template-areas: "idx name arrow" "idx desc arrow";
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(244,239,231,0.16);
  position: relative;
  transition: padding-left 0.5s var(--ease);
}
.treatment:last-child { border-bottom: 1px solid rgba(244,239,231,0.16); }
.treatment:hover { padding-left: 1.2rem; }
.treatment__index {
  grid-area: idx;
  font-size: 0.8rem;
  color: var(--bronze-light);
  letter-spacing: 0.1em;
}
.treatment__name {
  grid-area: name;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  transition: color 0.4s;
}
.treatment:hover .treatment__name { color: var(--bronze-light); font-style: italic; }
.treatment__desc {
  grid-area: desc;
  font-size: 0.88rem;
  opacity: 0.55;
  line-height: 1.6;
}
.treatment__arrow {
  grid-area: arrow;
  align-self: center;
  font-size: 1.3rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.treatment:hover .treatment__arrow { opacity: 1; transform: translateX(0); }
.treatments__stage {
  position: sticky;
  top: clamp(4rem, 10vh, 7rem);
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 2px;
}
.treatments__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 0.55s var(--ease), transform 1.3s var(--ease);
}
.treatments__stage img.is-active { opacity: 1; transform: scale(1); }

/* ═══════════ CINEMA ═══════════ */
.cinema {
  position: relative;
  height: 85vh;
  min-height: 480px;
}
.cinema .parallax-img--deep { height: 130%; position: absolute; top: -15%; }
.cinema__caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20,16,12,0.32);
}
.cinema__caption p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
  line-height: 1.25;
  color: var(--cream);
  text-align: center;
  padding: 0 2rem;
}
.cinema__caption em { font-style: italic; color: var(--bronze-light); }

/* ═══════════ STATS ═══════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 3rem;
  gap: 2rem;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1;
  color: var(--bronze);
  display: block;
}
.stat__label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ═══════════ PERCORSO ═══════════ */
.path {
  background: var(--cream-dim);
  padding: clamp(6rem, 11vw, 10rem) 3rem;
}
.path__head { max-width: 1500px; margin: 0 auto 4.5rem; }
.path__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  letter-spacing: -0.015em;
}
.path__title em { font-style: italic; color: var(--bronze); }
.path__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1500px;
  margin: 0 auto;
}
.step { border-top: 1px solid rgba(29,26,22,0.2); padding-top: 1.6rem; }
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--bronze);
}
.step h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0.9rem 0 0.8rem;
}
.step p { font-size: 0.9rem; line-height: 1.8; color: var(--ink-soft); }

/* ═══════════ VOICE ═══════════ */
.voice {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) 3rem;
}
.voice__media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.voice__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.voice__text em { font-style: italic; color: var(--bronze); }
.voice__quote footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ═══════════ CONTACT ═══════════ */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(6rem, 12vw, 11rem) 3rem clamp(5rem, 9vw, 8rem);
  text-align: center;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.contact__line { display: block; overflow: hidden; }
.contact__title em { font-style: italic; color: var(--bronze-light); }
.contact__phone {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--bronze-light);
  padding-bottom: 0.3rem;
  color: var(--bronze-light);
  transition: color 0.4s, border-color 0.4s;
}
.contact__phone:hover { color: var(--cream); border-color: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1300px;
  margin: 5.5rem auto 0;
  text-align: left;
}
.contact__col h5 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.contact__col p { font-size: 0.92rem; line-height: 2; opacity: 0.8; }
.contact__col a { border-bottom: 1px solid rgba(244,239,231,0.3); transition: border-color 0.3s; }
.contact__col a:hover { border-color: var(--cream); }

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 0 3rem 2rem;
  overflow: hidden;
}
.footer__brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(7rem, 24vw, 22rem);
  line-height: 0.9;
  text-align: center;
  color: rgba(201, 171, 126, 0.14);
  user-select: none;
  transform: translateY(12%);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(244,239,231,0.14);
  padding-top: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.55;
}
.footer__row a:hover { text-decoration: underline; }

/* ═══════════ REVEAL UTILITIES ═══════════ */
.reveal-line span { display: inline-block; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }
  .nav__burger span { width: 30px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
  .nav__burger.is-open span:first-child { transform: translateY(4.2px) rotate(45deg); }
  .nav__burger.is-open span:last-child { transform: translateY(-4.2px) rotate(-45deg); }

  .hero__content { padding: 0 1.5rem 2.5rem; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }

  .manifesto { padding-left: 1.5rem; padding-right: 1.5rem; }
  .manifesto__meta { gap: 2rem; flex-wrap: wrap; }

  .split { grid-template-columns: 1fr; padding: 3.5rem 1.5rem; gap: 2.5rem; }
  .split--reverse .split__media { order: 0; }
  .split--reverse .split__body { order: 1; }

  .treatments { padding: 4.5rem 1.5rem; }
  .treatments__grid { grid-template-columns: 1fr; }
  .treatments__stage { display: none; }
  .treatment { grid-template-columns: 3rem 1fr; grid-template-areas: "idx name" "idx desc"; gap: 0.6rem 1rem; }
  .treatment__arrow { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); padding: 4rem 1.5rem; gap: 3rem 1rem; }

  .path { padding: 4.5rem 1.5rem; }
  .path__steps { grid-template-columns: 1fr; gap: 2rem; }

  .voice { grid-template-columns: 1fr; padding: 4.5rem 1.5rem; }

  .contact { padding: 5rem 1.5rem 4rem; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }

  .footer { padding: 0 1.5rem 1.5rem; }
  .footer__row { flex-direction: column; gap: 0.4rem; }

  .preloader__counter { right: 1.5rem; bottom: 1.5rem; }
}

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

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .hero__scroll-ring { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
