/* ══════════════════════════════════════════════════════════════
   Art direction: Massaggiatrice olistica – hippie chic & witchy
   Palette: terrosa elegante – salvia, terracotta, beige caldi,
            accenti dorati e prugna/viola
   Typography: Cormorant Garamond (display) + DM Sans (body)
   Density: spacious – generoso, premium, rilassante
   ══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7.5rem);

  /* 4px spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow:        400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── PALETTE TERROSA (light mode) ── */
  /* Superfici – beige caldi */
  --color-bg:              #f5f0e8;
  --color-surface:         #f9f5ed;
  --color-surface-2:       #fdfaf4;
  --color-surface-offset:  #ede6d8;
  --color-surface-dynamic: #e4dbcb;
  --color-divider:         #d8cfbe;
  --color-border:          #cfc5b2;

  /* Testo */
  --color-text:         #2c2318;
  --color-text-muted:   #7a6c5a;
  --color-text-faint:   #b8a998;
  --color-text-inverse: #f9f5ed;

  /* Verde salvia – accento primario */
  --color-primary:           #4a6741;
  --color-primary-hover:     #3a5232;
  --color-primary-active:    #2a3d25;
  --color-primary-highlight: #c8d9c2;

  /* Terracotta – accento secondario */
  --color-terracotta:       #b85c3a;
  --color-terracotta-hover: #9a4a2e;
  --color-terracotta-active:#7d3822;

  /* Oro – accento mistico */
  --color-gold:        #c8973a;
  --color-gold-light:  #e8c87a;
  --color-gold-hover:  #a87828;

  /* Prugna/viola – tocco esoterico */
  --color-plum:        #6b3e6b;
  --color-plum-light:  #9d6a9d;
  --color-plum-hover:  #542d54;

  /* Shadows (tono caldo) */
  --shadow-sm:  0 1px 3px oklch(0.25 0.04 50 / 0.08);
  --shadow-md:  0 4px 16px oklch(0.25 0.04 50 / 0.10);
  --shadow-lg:  0 12px 40px oklch(0.25 0.04 50 / 0.14);
  --shadow-xl:  0 24px 64px oklch(0.25 0.04 50 / 0.18);

  /* Header height */
  --header-h: 72px;

  /* Footer bg */
  --color-footer-bg: #1e1710;
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.1;
  font-family: var(--font-display);
}
p, li { text-wrap: pretty; }

::selection {
  background: color-mix(in oklch, var(--color-primary) 25%, transparent);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button { cursor: pointer; background: none; border: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-2); }

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

/* ── LAYOUT CONTAINER ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in oklch, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklch, var(--color-border) 60%, transparent);
  transition: background var(--transition-interactive), box-shadow var(--transition-interactive);
}

.site-header.scrolled {
  background: color-mix(in oklch, var(--color-surface) 97%, transparent);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity var(--transition-interactive);
}
.logo-link:hover { opacity: 0.75; }
.logo-svg { height: 36px; width: auto; }

/* Nav desktop */
.main-nav { display: none; }

@media (min-width: 768px) {
  .main-nav { display: block; }
  .hamburger { display: none; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}
.nav-link:hover { color: var(--color-primary); }

.nav-link--cta {
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.nav-link--cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 200;
}
.hamburger-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-slow), opacity var(--transition-interactive);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-surface-2);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-12) var(--space-8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-interactive), transform var(--transition-interactive);
  display: inline-block;
}
.mobile-nav-link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}
.mobile-nav-link--cta {
  color: var(--color-terracotta);
  font-style: italic;
}

.mobile-menu-footer {
  margin-top: var(--space-12);
}
.mobile-menu-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-block: var(--space-24) var(--space-16);
  padding-inline: clamp(var(--space-6), 8vw, var(--space-24));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    oklch(0.18 0.05 50 / 0.45) 0%,
    oklch(0.18 0.05 50 / 0.70) 50%,
    oklch(0.12 0.04 45 / 0.85) 100%
  );
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-5);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.0;
  color: #f5ede0;
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}
.hero-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-gold-light);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: color-mix(in oklch, #f5ede0 75%, transparent);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  right: clamp(var(--space-6), 8vw, var(--space-24));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-gold-light));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1);   }
}
.scroll-text {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--color-gold-light) 70%, transparent);
  writing-mode: vertical-rl;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-hero {
  background: var(--color-terracotta);
  color: #fdf5ec;
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
  box-shadow: 0 4px 20px color-mix(in oklch, var(--color-terracotta) 40%, transparent);
}
.btn-hero:hover {
  background: var(--color-terracotta-hover);
  box-shadow: 0 8px 32px color-mix(in oklch, var(--color-terracotta) 50%, transparent);
}
.btn-arrow { transition: transform var(--transition-interactive); }
.btn-hero:hover .btn-arrow { transform: translateX(4px); }

.btn-hero-ghost {
  background: transparent;
  color: #f5ede0;
  border: 1px solid color-mix(in oklch, #f5ede0 40%, transparent);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 300;
  letter-spacing: 0.08em;
}
.btn-hero-ghost:hover {
  background: color-mix(in oklch, #f5ede0 10%, transparent);
  border-color: color-mix(in oklch, #f5ede0 70%, transparent);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-card {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.btn-card:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-card-featured {
  background: var(--color-plum);
  color: #fdf5ec;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}
.btn-card-featured:hover {
  background: var(--color-plum-hover);
  box-shadow: var(--shadow-md);
}

/* ── INTRO BAND ──────────────────────────────────────────────── */
.intro-band {
  background: var(--color-primary);
  padding-block: var(--space-10);
  overflow: hidden;
}
.intro-band-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-12));
  text-align: center;
}
.intro-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: #e8f0e5;
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 60ch;
  margin-inline: auto;
}
.quote-mark {
  color: var(--color-gold-light);
  font-size: 1.2em;
  margin-inline: var(--space-2);
  opacity: 0.8;
}

/* ── SECTION HEADERS (shared) ─────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.section-heading em {
  font-style: italic;
  color: var(--color-plum);
}

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

.section-header {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  line-height: 1.7;
}

.body-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: var(--space-5);
}

/* ── CHI SONO ────────────────────────────────────────────────── */
.chi-sono {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  background: var(--color-surface);
}

.chi-sono-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .chi-sono-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--space-12), 6vw, var(--space-20));
  }
}

/* Portrait */
.portrait-frame {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}
.portrait-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-xl);
}
.portrait-deco {
  position: absolute;
  inset: -16px -16px auto auto;
  width: 160px;
  height: 160px;
  border: 1.5px solid color-mix(in oklch, var(--color-gold) 40%, transparent);
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: -1;
}
.portrait-deco::before {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border: 1.5px solid color-mix(in oklch, var(--color-plum) 30%, transparent);
  border-radius: var(--radius-lg);
}

/* Pillars */
.chi-sono-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-block: var(--space-8) var(--space-8);
}
.pillar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.pillar-icon {
  color: var(--color-gold);
  font-size: 0.7em;
}
.pillar-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ── TRATTAMENTI ─────────────────────────────────────────────── */
.trattamenti {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  background: var(--color-bg);
}

.trattamenti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .trattamenti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trattamenti-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.trattamento-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}
.trattamento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--color-primary) 30%, var(--color-border));
}

.trattamento-card--featured {
  background: linear-gradient(145deg, var(--color-surface-2) 0%, color-mix(in oklch, var(--color-plum) 6%, var(--color-surface)) 100%);
  border-color: color-mix(in oklch, var(--color-plum) 35%, var(--color-border));
  box-shadow: var(--shadow-md);
}
.trattamento-card--featured:hover {
  border-color: color-mix(in oklch, var(--color-plum) 55%, var(--color-border));
  box-shadow: var(--shadow-xl);
}

.card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-plum);
  color: #fdf5ec;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.card-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: var(--space-1);
}
.trattamento-card--featured .card-icon { color: var(--color-plum); }

.card-meta { flex: 1; }
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}
.card-duration {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.card-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.trattamenti-note {
  margin-top: var(--space-12);
  text-align: center;
  padding: var(--space-5) var(--space-8);
  background: color-mix(in oklch, var(--color-primary) 8%, var(--color-surface));
  border: 1px solid color-mix(in oklch, var(--color-primary) 20%, var(--color-border));
  border-radius: var(--radius-xl);
  max-width: 640px;
  margin-inline: auto;
}
.trattamenti-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── INTERLUDE ───────────────────────────────────────────────── */
.interlude {
  position: relative;
  height: clamp(260px, 35vw, 500px);
  overflow: hidden;
}
.interlude-img-wrap { position: relative; height: 100%; }
.interlude-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.interlude-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.15 0.05 50 / 0.75) 0%,
    oklch(0.15 0.05 50 / 0.55) 50%,
    oklch(0.15 0.05 50 / 0.70) 100%
  );
}
.interlude-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: var(--space-8);
}
.interlude-text p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 300;
  color: #f0e8d6;
  letter-spacing: 0.04em;
  line-height: 1.5;
  max-width: 60ch;
}

/* ── SPAZIO GALLERY ──────────────────────────────────────────── */
.spazio {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* 3-colonne uguali da tablet in su */
@media (min-width: 640px) {
  .gallery-grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-surface-offset);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 6;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.04); }


/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  background: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.testimonial-card::before {
  content: '❝';
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 3rem;
  color: color-mix(in oklch, var(--color-gold) 25%, transparent);
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: none;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--color-primary) 20%, var(--color-surface-offset));
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  flex-shrink: 0;
}
.author-name {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.author-detail {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

/* ── CONTATTI ────────────────────────────────────────────────── */
.contatti {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  background: var(--color-surface-offset);
}

.contatti-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .contatti-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--space-12), 6vw, var(--space-20));
  }
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 400;
  transition:
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--color-primary) 40%, var(--color-border));
}
.contact-method--wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  font-weight: 500;
}
.contact-method--wa:hover {
  background: #1eb956;
  border-color: #1eb956;
}
.contact-method--info {
  cursor: default;
  pointer-events: none;
  color: var(--color-text-muted);
}
.contact-icon { flex-shrink: 0; }

/* Immagine contatti */
.contatti-visual {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}
.contatti-img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}
.contatti-badge {
  position: absolute;
  bottom: var(--space-6);
  left: calc(-1 * var(--space-6));
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.badge-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-footer-bg);
  color: color-mix(in oklch, #f5ede0 60%, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-block: var(--space-16);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    text-align: left;
  }
  .footer-social { justify-self: end; }
}

.footer-logo { color: color-mix(in oklch, #f5ede0 80%, transparent); }
.footer-tagline {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklch, #f5ede0 35%, transparent);
  margin-top: var(--space-3);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}
@media (min-width: 640px) {
  .footer-nav ul { align-items: flex-start; }
}
.footer-nav a {
  font-size: var(--text-sm);
  color: color-mix(in oklch, #f5ede0 55%, transparent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition-interactive);
}
.footer-nav a:hover { color: var(--color-gold-light); }

.footer-social {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  justify-content: center;
}
.social-link {
  color: color-mix(in oklch, #f5ede0 55%, transparent);
  transition: color var(--transition-interactive), transform var(--transition-interactive);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.social-link:hover {
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid color-mix(in oklch, #f5ede0 10%, transparent);
  padding-block: var(--space-6);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: color-mix(in oklch, #f5ede0 30%, transparent);
  text-wrap: pretty;
}
.footer-bottom a {
  color: color-mix(in oklch, #f5ede0 45%, transparent);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, #f5ede0 15%, transparent);
  transition: color var(--transition-interactive);
}
.footer-bottom a:hover { color: var(--color-gold-light); }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: clamp(var(--space-5), 4vw, var(--space-8));
  right: clamp(var(--space-5), 4vw, var(--space-8));
  z-index: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45), var(--shadow-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    background var(--transition-interactive);
  position: fixed;
}
.whatsapp-float:hover {
  background: #1eb956;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55), var(--shadow-xl);
}
.whatsapp-float:active {
  transform: scale(0.98);
}

.wa-icon { flex-shrink: 0; }
.wa-label {
  white-space: nowrap;
}

/* Pulse ring */
.wa-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: #ff4444;
  border-radius: var(--radius-full);
  border: 2px solid white;
}
.wa-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid #ff4444;
  animation: pulsate 2s ease-out infinite;
}
@keyframes pulsate {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* Su mobile piccolo, nascondi la label wa */
@media (max-width: 380px) {
  .wa-label { display: none; }
  .whatsapp-float { padding: var(--space-4); }
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────────── */
.fade-in {
  opacity: 1;
}
.fade-in-up {
  opacity: 1;
}

/* JS-driven: quando JS è attivo, impostiamo initial state */
.js-loaded .fade-in {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-loaded .fade-in-up {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(24px);
}
.js-loaded .fade-in.visible,
.js-loaded .fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.12s !important; }
.delay-2 { transition-delay: 0.24s !important; }
.delay-3 { transition-delay: 0.36s !important; }
.delay-4 { transition-delay: 0.48s !important; }

/* ── MOBILE OVERRIDES (<480px) ──────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding-inline: var(--space-5);
    padding-block: var(--space-32) var(--space-12);
    min-height: 100dvh;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .btn-hero, .btn-hero-ghost {
    width: 100%;
    justify-content: center;
  }
  .contatti-badge {
    left: var(--space-4);
    bottom: var(--space-4);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social { justify-content: center; }
}
