/* =========================================================
   Max Body Massage — style.css
   Direzione: "Casa tua, oggi pomeriggio"
   ========================================================= */

:root {
  /* Palette OKLCH — warm-multicolor domestico */
  --c-cream:        oklch(96.2% 0.012 60);     /* sfondo principale, warm cream rosato */
  --c-cream-2:      oklch(93.5% 0.018 55);     /* surface alternativa */
  --c-cream-3:      oklch(89% 0.022 50);       /* divider/border warm */
  --c-rose:         oklch(86% 0.045 25);       /* rosa cipria spento (sfondo sezione) */
  --c-rose-2:       oklch(78% 0.075 22);       /* rosa più saturo per accent */
  --c-sage:         oklch(83% 0.035 145);      /* salvia tenue (sfondo sezione) */
  --c-sage-2:       oklch(58% 0.06 150);       /* salvia per testo/accent su cream */
  --c-amber:        oklch(85% 0.075 75);       /* ambra calda (sfondo sezione) */
  --c-amber-2:      oklch(64% 0.115 60);       /* ambra accent/cta */
  --c-ink:          oklch(22% 0.025 30);       /* primary text, warm dark */
  --c-ink-soft:     oklch(35% 0.022 30);       /* secondary text */
  --c-ink-mute:     oklch(48% 0.018 30);       /* muted text */
  --c-ink-deep:     oklch(15% 0.02 30);        /* sezione "Il metodo" sfondo scuro */
  --c-on-dark:      oklch(94% 0.01 60);        /* testo su scuro */
  --c-on-dark-mute: oklch(75% 0.012 50);

  /* Tipografia */
  --f-display: "Source Serif 4", "Georgia", serif;
  --f-body:    "Manrope", "Inter", system-ui, sans-serif;

  /* Sizing */
  --wrap: 1180px;
  --gutter: 22px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: 160ms;
  --t-mid:  280ms;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 84px 0;
  position: relative;
}
.section-cream { background: var(--c-cream); color: var(--c-ink); }
.section-rose  { background: var(--c-rose);  color: var(--c-ink); }
.section-sage  { background: var(--c-sage);  color: var(--c-ink); }
.section-amber { background: var(--c-amber); color: var(--c-ink); }
.section-ink {
  background: var(--c-ink-deep);
  color: var(--c-on-dark);
}

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--c-ink-mute);
  margin-bottom: 12px;
}
.section-head-light .section-eyebrow,
.section-ink .section-eyebrow { color: var(--c-on-dark-mute); }
.section-eyebrow::before { content: "—  "; }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin-bottom: 18px;
}
.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: 640px;
}
.section-ink .section-lead { color: var(--c-on-dark-mute); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(96.2% 0.012 60 / 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-cream-3);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink);
}
.brand-mark { color: var(--c-rose-2); display: inline-flex; }
.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand-line-1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-line-2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--c-ink-soft);
}

/* Hamburger */
.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-cream-3);
  background: var(--c-cream);
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--c-amber-2);
  outline-offset: 2px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.8px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100dvh - 72px);
  background: var(--c-cream);
  padding: 32px var(--gutter) 40px;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--c-cream-3);
  box-shadow: 0 18px 32px -16px oklch(20% 0.02 30 / 0.18);
  overflow-y: auto;
  animation: nav-fade-in 220ms var(--ease);
  z-index: 60;
}
.primary-nav.is-open {
  display: flex;
}
@keyframes nav-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.primary-nav a {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  font-family: var(--f-display);
  border-bottom: 1px solid var(--c-cream-3);
}
.primary-nav a:hover { color: var(--c-rose-2); }
.nav-cta {
  font-size: 15px;
  color: var(--c-ink-soft);
  padding-top: 16px;
}
.nav-cta strong {
  color: var(--c-ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--c-cream);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-wrap { text-align: center; padding-bottom: 100px; }
.hero-eyebrow {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-rose-2);
  font-size: 16px;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 8.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero-line-1 { display: block; }
.hero-line-2 {
  display: block;
  font-style: italic;
  color: var(--c-rose-2);
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--c-ink-soft);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
  font-size: 15px;
  color: var(--c-ink-mute);
}
.hero-trust li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.hero-trust span {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--c-ink);
}
.hero-frieze {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--c-rose-2);
  pointer-events: none;
}

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  border: 1.5px solid transparent;
}
.cta-primary {
  background: var(--c-ink);
  color: var(--c-cream);
}
.cta-primary:hover {
  background: var(--c-amber-2);
  color: var(--c-ink);
  transform: translateY(-1px);
}
.cta-ghost {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.cta-ghost:hover {
  background: var(--c-ink);
  color: var(--c-cream);
  transform: translateY(-1px);
}
.section-ink .cta-ghost {
  border-color: var(--c-on-dark);
  color: var(--c-on-dark);
}
.section-ink .cta-ghost:hover {
  background: var(--c-on-dark);
  color: var(--c-ink-deep);
}

/* ---------- Two-col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.two-col-text p { margin-bottom: 16px; color: var(--c-ink-soft); font-size: 17px; }
.two-col-text p:last-of-type { margin-bottom: 0; }

/* ---------- Value list (chi siamo aside) ---------- */
.value-list {
  display: grid;
  gap: 18px;
}
.value-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--c-cream-2);
  border-radius: var(--radius);
  border: 1px solid var(--c-cream-3);
}
.value-list strong {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}
.value-list span:not(.value-dot) {
  display: block;
  font-size: 15px;
  color: var(--c-ink-soft);
}
.value-dot {
  width: 12px; height: 12px;
  border-radius: 999px;
  margin-top: 8px;
  background: var(--c-ink);
}
.value-dot[data-tone="rose"]  { background: var(--c-rose-2); }
.value-dot[data-tone="sage"]  { background: var(--c-sage-2); }
.value-dot[data-tone="amber"] { background: var(--c-amber-2); }
.value-dot[data-tone="ink"]   { background: var(--c-ink); }

/* ---------- Servizi ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid oklch(75% 0.02 30 / 0.18);
  background: var(--c-cream);
  transition: transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.service-card[data-tone="cream"] { background: var(--c-cream); }
.service-card[data-tone="sage"]  { background: var(--c-sage); }
.service-card[data-tone="amber"] { background: var(--c-amber); }
.service-card[data-tone="rose"]  { background: oklch(89% 0.055 22); }
.service-card:hover { transform: translateY(-2px); border-color: var(--c-ink); }
.service-card h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink-soft);
}

.service-note {
  margin-top: 28px;
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-ink-soft);
  font-size: 17px;
  max-width: 620px;
}

/* ---------- Metodo (sezione scura) ---------- */
.method-flow {
  display: block;
  border-top: 1px solid oklch(94% 0.01 60 / 0.18);
}
.method-flow li {
  display: block;
  padding: 26px 0 28px;
  border-bottom: 1px solid oklch(94% 0.01 60 / 0.18);
}
.method-zone {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--c-rose-2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.method-flow h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 4.2vw, 30px);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--c-on-dark);
}
.method-flow p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-on-dark-mute);
}

/* ---------- Per chi è (sage) ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: start;
}
.problem-grid li {
  padding: 16px 18px;
  background: var(--c-cream);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--c-ink);
  border: 1px solid oklch(60% 0.06 150 / 0.22);
}

/* ---------- Contatti ---------- */
.contact-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-lead {
  font-size: 18px;
  color: var(--c-ink-soft);
  margin: 16px auto 36px;
  max-width: 560px;
}
.contact-card {
  background: var(--c-cream);
  border: 1px solid oklch(64% 0.115 60 / 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  margin-bottom: 32px;
}
.contact-label {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-ink-mute);
  font-size: 16px;
  margin-bottom: 8px;
}
.contact-number {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 60px);
  letter-spacing: -0.02em;
  color: var(--c-ink);
  user-select: all;
  word-break: keep-all;
  margin-bottom: 12px;
  line-height: 1.05;
}
.contact-hint {
  font-size: 15px;
  color: var(--c-ink-soft);
  max-width: 460px;
  margin: 0 auto;
}

.contact-meta {
  display: grid;
  gap: 14px;
  text-align: left;
  max-width: 540px;
  margin: 0 auto;
}
.contact-meta li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 18px;
  background: oklch(96% 0.04 75);
  border-radius: var(--radius);
  border: 1px solid oklch(64% 0.115 60 / 0.22);
}
.meta-label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--c-ink-mute);
}
.meta-value {
  font-size: 16px;
  color: var(--c-ink);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-cream-2);
  border-top: 1px solid var(--c-cream-3);
  padding: 36px 0 30px;
  color: var(--c-ink-soft);
}
.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--c-ink);
}
.footer-brand .brand-mark { color: var(--c-rose-2); }
.footer-copy { font-size: 14px; }
.footer-credit { font-size: 13px; }
.footer-credit a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-credit a:hover { color: var(--c-amber-2); }

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

@media (min-width: 540px) {
  .hero-cta { gap: 14px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: auto;
    height: 72px;
    background: transparent;
    box-shadow: none;
    padding: 0 var(--gutter);
    flex-direction: row;
    align-items: center;
    gap: 28px;
    border-top: 0;
    overflow: visible;
    animation: none;
    z-index: 51;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 28px;
  }
  .primary-nav a {
    padding: 8px 0;
    font-family: var(--f-body);
    font-size: 15px;
    border-bottom: 0;
    position: relative;
  }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1.5px;
    background: var(--c-rose-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--t-mid) var(--ease);
  }
  .primary-nav a:hover::after { transform: scaleX(1); }
  .nav-cta {
    padding: 0;
    font-size: 14px;
    border-left: 1px solid var(--c-cream-3);
    padding-left: 24px;
  }

  .section { padding: 110px 0; }
  .hero { padding-top: 96px; }
  .hero-wrap { padding-bottom: 140px; }

  .two-col {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .two-col-flip .two-col-text { order: 1; }
  .two-col-flip .problem-grid { order: 2; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .method-flow li {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    padding: 36px 0 38px;
    align-items: baseline;
  }
  .method-zone {
    margin-bottom: 0;
    padding-top: 8px;
    font-size: 17px;
  }
  .method-body { max-width: 760px; }
  .method-flow p { font-size: 17px; }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

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

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--c-amber-2);
  outline-offset: 3px;
  border-radius: 4px;
}
