/*
Theme Name: Spazio Ritual Benessere
Author: Davide Denu
Description: Tema WordPress professionale per Spazio Ritual Benessere di Roberta Conti.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: spazio-ritual
*/

:root {
  --sage-900: #31453c;
  --sage-700: #667e70;
  --sage-500: #94aa9b;
  --cream-100: #fbf7f1;
  --cream-200: #efe7da;
  --rose-200: #e9d2cf;
  --rose-500: #b98982;
  --ink: #25241f;
  --muted: #716c62;
  --white: #fffdfa;
  --shadow: 0 22px 60px rgba(49, 69, 60, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-100);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.88);
  border-bottom: 1px solid rgba(49, 69, 60, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(49, 69, 60, 0.08));
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.brand-role {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(49, 69, 60, 0.2);
  background: var(--white);
  color: var(--sage-900);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--sage-900);
  font-size: 0.94rem;
  font-weight: 650;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:not(.nav-cta) {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms ease;
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sage-900);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(49, 69, 60, 0.16);
}

.main-nav li {
  list-style: none;
}

.main-nav ul {
  display: contents;
  margin: 0;
  padding: 0;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--sage-900);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(49, 69, 60, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  background: #24352e;
  box-shadow: 0 18px 36px rgba(49, 69, 60, 0.24);
}

.button.secondary {
  background: transparent;
  color: var(--sage-900);
  border-color: rgba(49, 69, 60, 0.22);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(49, 69, 60, 0.08);
}

.hero-inner {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-content: center;
  padding: 72px 0 96px;
}

.hero-copy {
  width: min(680px, 100%);
}

.light-button {
  background: var(--white);
  color: var(--sage-900);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.light-button:hover,
.light-button:focus-visible {
  background: var(--cream-100);
  color: var(--sage-900);
}

.ghost-light {
  background: rgba(255, 253, 250, 0.12);
  color: var(--white);
  border-color: rgba(255, 253, 250, 0.46);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.ghost-light:hover,
.ghost-light:focus-visible {
  background: rgba(255, 253, 250, 0.2);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  border-top: 1px solid rgba(255, 253, 250, 0.28);
  border-bottom: 1px solid rgba(255, 253, 250, 0.18);
  color: var(--white);
}

.hero-proof div {
  padding: 18px 22px 18px 0;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.hero-proof span {
  margin-top: 4px;
  color: rgba(255, 253, 250, 0.76);
  font-size: 0.92rem;
}

.ritual-thread {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(49, 69, 60, 0.25), rgba(185, 137, 130, 0.7), rgba(49, 69, 60, 0.25), transparent);
  transform-origin: left center;
  animation: threadDraw 1600ms ease both;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--sage-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
  font-weight: 650;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  max-width: 840px;
}

h3 {
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.05;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #4d4a43;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin-top: 54px;
  background: rgba(49, 69, 60, 0.12);
  border: 1px solid rgba(49, 69, 60, 0.12);
  box-shadow: var(--shadow);
}

.hero-fact {
  padding: 22px;
  background: rgba(255, 253, 250, 0.86);
}

.hero-fact strong {
  display: block;
  color: var(--sage-900);
  font-size: 1.25rem;
  line-height: 1.15;
}

.hero-fact span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section.alt {
  background: var(--white);
}

.section.soft {
  background: var(--cream-200);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  align-items: start;
  gap: 42px;
  margin-bottom: 46px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.ritual-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(49, 69, 60, 0.14);
}

.ritual-step {
  padding: 26px 20px;
  border-right: 1px solid rgba(49, 69, 60, 0.14);
}

.ritual-step:last-child {
  border-right: 0;
}

.ritual-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--rose-200);
  color: var(--sage-900);
  font-weight: 800;
}

.ritual-step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.price-card,
.faq-item,
.contact-panel,
.bio-panel {
  background: var(--white);
  border: 1px solid rgba(49, 69, 60, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(49, 69, 60, 0.08);
}

.service-card {
  padding: 30px;
  min-height: 310px;
}

.service-card,
.path-card,
.price-card,
.faq-item,
.contact-panel,
.studio-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.path-card:hover,
.price-card:hover,
.faq-item:hover,
.contact-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 69, 60, 0.2);
  box-shadow: 0 22px 52px rgba(49, 69, 60, 0.12);
}

.compact-section {
  padding-block: clamp(66px, 8vw, 104px);
}

.intro-split,
.narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.story-copy p {
  margin-top: 0;
  color: var(--muted);
}

.legal-copy {
  max-width: 820px;
}

.legal-copy h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--sage-900);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 2px solid var(--rose-500);
}

.text-link.light {
  color: var(--white);
  border-color: rgba(255, 253, 250, 0.7);
}

.home-opening {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.8fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.home-opening h2 {
  max-width: 760px;
}

.home-opening p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}

.studio-context-photo {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(49, 69, 60, 0.02), rgba(49, 69, 60, 0.18)),
    url("assets/images/studio-prima-ascolto.jpg") center / cover no-repeat;
  box-shadow: 0 24px 64px rgba(49, 69, 60, 0.16);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid rgba(49, 69, 60, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.92), rgba(255, 253, 250, 0.76)),
    var(--white);
  box-shadow: 0 16px 40px rgba(49, 69, 60, 0.08);
}

.path-card span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--rose-500);
  font-weight: 900;
}

.path-card p {
  color: var(--muted);
}

.path-card a {
  color: var(--sage-900);
  font-weight: 850;
  text-decoration: none;
}

.service-card .tag {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--rose-500);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card p,
.price-card p,
.bio-panel p {
  color: var(--muted);
}

.service-card ul,
.price-card ul {
  padding-left: 20px;
  color: var(--muted);
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.bio-teaser,
.about-page-grid {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.bio-teaser-photo,
.about-photo-small {
  min-height: 340px;
  border-radius: 8px;
  background: url("assets/images/roberta-conti.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.about-photo-small {
  min-height: 380px;
}

.bio-photo {
  min-height: 560px;
  background: url("assets/images/roberta-conti.jpg") center / cover no-repeat;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bio-panel {
  padding: clamp(30px, 5vw, 56px);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #4d4a43;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--sage-500);
  box-shadow: inset 0 0 0 4px var(--cream-100);
}

.prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  display: flex;
  min-height: 305px;
  padding: 30px;
  flex-direction: column;
}

.price-card.featured {
  background: var(--sage-900);
  color: var(--white);
}

.price-card.featured h3,
.price-card.featured p,
.price-card.featured ul,
.price-card.featured .price {
  color: var(--white);
}

.price {
  margin: 20px 0 8px;
  color: var(--sage-900);
  font-size: 2.3rem;
  font-weight: 850;
  line-height: 1;
}

.note {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.cert {
  min-width: 190px;
  scroll-snap-align: start;
}

.cert img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border: 1px solid rgba(49, 69, 60, 0.14);
  border-radius: 8px;
  background: var(--white);
}

.cert figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 24px 28px;
}

.faq-item summary {
  color: var(--sage-900);
  font-weight: 800;
  cursor: pointer;
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 22px;
  align-items: start;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(251, 247, 241, 0.98), rgba(239, 231, 218, 0.94)),
    var(--cream-200);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 137, 130, 0.75), transparent);
}

.page-hero-inner {
  padding: clamp(76px, 10vw, 130px) 0 clamp(66px, 8vw, 104px);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.page-hero .button {
  margin-top: 30px;
}

.service-detail-list {
  display: grid;
  gap: 20px;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(49, 69, 60, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(49, 69, 60, 0.08);
}

.service-detail h2 {
  max-width: 340px;
  font-size: clamp(1.85rem, 2.5vw, 2.8rem);
  line-height: 1.06;
}

.service-detail-media {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream-200);
  aspect-ratio: 16 / 10;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail p {
  margin-top: 0;
}

/* Paths and gift selection share the site's existing palette and typography. */
.journey-page { background: var(--white); letter-spacing: 0; }
.gift-experience ~ .whatsapp-float { display: none; }
.journey-intro { padding: 64px 0 40px; border-bottom: 1px solid #dce3dd; }
.journey-intro h1 { font-size: 3.5rem; line-height: 1.08; max-width: 960px; }
.journey-intro p { max-width: 680px; margin: 22px 0 0; color: #555c55; font-size: 1.1rem; }
.journey-section { padding: 44px 0 72px; }
.journey-page h2 { font-size: 2.5rem; line-height: 1.12; }
.journey-page h3 { font-size: 1.5rem; line-height: 1.2; }
.journey-page .button { text-align: center; line-height: 1.4; }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.package-card {
  display: flex; flex-direction: column; padding: 32px; min-width: 0;
  border: 1px solid #dce3dd; border-top: 3px solid var(--sage-500);
  border-radius: 8px; background: #fff; transition: box-shadow 200ms ease, border-color 200ms ease;
}
.package-card:hover, .package-card:focus-within { border-color: var(--sage-700); box-shadow: 0 12px 30px rgba(49,69,60,.08); }
.package-purpose { color: #76504d; font-weight: 650; margin: 10px 0; }
.package-description { margin: 0; min-height: 3.3em; color: #555c55; }
.package-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.package-price strong { color: var(--sage-900); font-size: 2.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.package-price strong span { font-size: 1.4rem; font-weight: 500; }
.package-price > span { color: #666; font-size: .95rem; }
.package-includes { border-block: 1px solid #e2e5df; padding-block: 16px; }
.package-includes summary, .gift-question summary { cursor: pointer; font-weight: 650; color: var(--sage-900); padding-block: 6px; }
.package-card ul { margin: 14px 0 0; padding-left: 21px; }
.package-card li { padding-left: 3px; margin-block: 6px; }
.package-card li::marker { color: var(--sage-700); }
.package-bonus { padding: 20px 0 0; }
.package-bonus h3 { font: 700 1rem "Inter", Arial, sans-serif; color: #76504d; }
.package-card .button { align-self: flex-start; margin-top: 28px; }
.journey-closing { padding: 56px 0 72px; background: #edf2ec; }
.journey-closing p { color: #555c55; }
.gift-workbench { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
.gift-options > p { color: #555c55; }
.gift-choices { border: 0; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.gift-choices legend { font-weight: 650; padding: 0 0 10px; }
.gift-choices label { display: flex; gap: 12px; padding: 16px 2px; border-bottom: 1px solid #dce3dd; cursor: pointer; line-height: 1.5; }
.gift-choices label:first-of-type { grid-column: 1 / -1; }
.gift-choices input { accent-color: var(--sage-900); width: 20px; height: 20px; flex: 0 0 20px; margin: 4px 0 0; }
.gift-choices span { font-weight: 650; }
.gift-choices small { display: block; color: #555c55; font-size: .85rem; font-weight: 400; }
.gift-choices label:has(input:checked) { background: #edf2ec; box-shadow: inset 0 -2px var(--sage-700); }
.gift-choices label:focus-within { outline: 2px solid var(--sage-900); outline-offset: 3px; }
.gift-request { display: flex; width: fit-content; margin-top: 26px; }
.gift-options .gift-note { font-size: .85rem; margin-top: 12px; }
.gift-voucher { margin: 0; overflow: hidden; border-radius: 8px; background: var(--sage-900); box-shadow: var(--shadow); }
.gift-voucher img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 45%; }
.gift-voucher figcaption { padding: 28px 32px; color: #fff; }
.gift-voucher figcaption > p { margin: 0 0 16px; color: #e9d2cf; font-size: .95rem; }
.gift-voucher h2 { color: #fff; font-size: 2.7rem; line-height: 1.1; }
.gift-selection { display: grid; gap: 4px; min-height: 84px; border-top: 1px solid #6a7c72; margin-top: 24px; padding-top: 18px; align-content: start; }
.gift-selection span { color: #e7ebe8; font-variant-numeric: tabular-nums; }
.gift-steps ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; padding: 0; margin: 36px 0; list-style: none; counter-reset: gift-step; }
.gift-steps li { counter-increment: gift-step; }
.gift-steps li::before { content: counter(gift-step, decimal-leading-zero); display: block; color: #76504d; font-size: 1rem; margin-bottom: 14px; }
.gift-question { max-width: 760px; padding: 14px 0; border-top: 1px solid #cbd7cb; }
.journey-page a:focus-visible, .journey-page summary:focus-visible, .main-nav a:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 5px; }
@media (max-width: 1100px) {
  .gift-workbench { gap: 32px; }
}
@media (max-width: 760px) {
  .journey-intro { padding: 38px 0 28px; }
  .journey-intro h1 { font-size: 2.5rem; }
  .journey-intro p { font-size: 1rem; }
  .journey-page h2 { font-size: 2rem; }
  .journey-section { padding: 28px 0 44px; }
  .package-grid, .gift-workbench, .gift-steps ol { grid-template-columns: 1fr; gap: 24px; }
  .package-card { padding: 24px; }
  .package-description { min-height: 0; }
  .gift-voucher { max-width: 480px; width: 100%; }
  .gift-voucher h2 { font-size: 2.5rem; }
  .gift-voucher img { aspect-ratio: 4 / 3; }
  .gift-request { width: 100%; }
  .journey-closing { padding: 40px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.gift-layout h2 {
  max-width: 620px;
}

.gift-layout p {
  max-width: 620px;
  color: var(--muted);
}

.gift-card {
  display: grid;
  gap: 14px;
  padding: 38px;
  border: 1px solid rgba(49, 69, 60, 0.14);
  border-radius: 8px;
  background: var(--sage-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.gift-card-label {
  color: var(--rose-200);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gift-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.gift-card > span:last-child {
  color: rgba(255, 253, 250, 0.78);
}

.decision-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 8px;
  background: var(--sage-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.decision-band h2 {
  color: var(--white);
}

.decision-band p {
  color: rgba(255, 253, 250, 0.78);
}

.decision-band .button {
  background: var(--white);
  color: var(--sage-900);
  box-shadow: none;
}

.contact-panel {
  padding: clamp(28px, 4vw, 44px);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--sage-900);
  font-weight: 750;
}

.studio-card {
  padding: 28px;
  background: var(--sage-900);
  color: var(--white);
  border-radius: 8px;
}

.studio-card h3 {
  color: var(--white);
}

.studio-card p {
  color: rgba(255, 253, 250, 0.82);
}

.site-footer {
  padding: 36px 0 96px;
  color: rgba(255, 253, 250, 0.74);
  background: var(--sage-900);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong {
  color: var(--white);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1f8f55;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(31, 143, 85, 0.28);
}

.whatsapp-float svg {
  width: 20px;
  height: 20px;
}

.wp-site-blocks,
.entry-content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.page-main {
  padding: 76px 0;
}

.page-main h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-visible {
    animation: contentArrival 520ms ease both;
  }

}

@keyframes threadDraw {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes contentArrival {
  from { opacity: 0.4; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 28px;
    background: var(--cream-100);
    border-bottom: 1px solid rgba(49, 69, 60, 0.12);
    transform: translateY(-120%);
    transition: transform 220ms ease;
    visibility: hidden;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
  }

  body.menu-open .main-nav {
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .main-nav .button {
    margin-top: 10px;
  }

  body.menu-open .nav-toggle span {
    opacity: 0;
  }

  body.menu-open .nav-toggle::before {
    transform: translateY(6px) rotate(45deg);
  }

  body.menu-open .nav-toggle::after {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 920px) {
  .home-opening,
  .intro-split,
  .narrative-grid,
  .bio-teaser,
  .about-page-grid,
  .service-detail,
  .gift-layout,
  .decision-band {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .section-head,
  .bio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .prices,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .ritual-strip {
    grid-template-columns: 1fr 1fr;
  }

  .ritual-step:nth-child(2) {
    border-right: 0;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 86px;
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-actions,
  .section-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .ritual-strip {
    grid-template-columns: 1fr;
  }

  .ritual-step {
    border-right: 0;
    border-bottom: 1px solid rgba(49, 69, 60, 0.14);
  }

  .ritual-step:last-child {
    border-bottom: 0;
  }

  .bio-photo {
    min-height: 420px;
  }

  .bio-teaser-photo,
  .about-photo-small {
    width: min(100%, 260px);
    min-height: 320px;
  }

  .studio-context-photo {
    min-height: 340px;
  }

  .whatsapp-float {
    right: 16px;
    left: auto;
    bottom: 16px;
    width: 58px;
    min-height: 58px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float span,
  .whatsapp-float {
    font-size: 0;
  }
}

/* Refined home direction */
.site-header {
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 14px 40px rgba(49, 69, 60, 0.07);
}

.header-inner {
  min-height: 68px;
}

.brand img {
  width: 118px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #fbf7f1 0%, #f2eadf 54%, #dce6dd 100%);
  border-bottom: 1px solid rgba(49, 69, 60, 0.1);
}

.home-hero::before {
  content: "";
  position: absolute;
  right: 9vw;
  bottom: 9vh;
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  border: 1px solid rgba(185, 137, 130, 0.22);
  border-radius: 999px;
  opacity: 0.8;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rose-500), var(--sage-500), transparent);
  transform-origin: left center;
  animation: threadDraw 1400ms ease both;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 360px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(64px, 8vw, 104px) 0 clamp(58px, 7vw, 86px);
}

.home-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3rem, 5.8vw, 5.35rem);
  line-height: 0.96;
  text-wrap: balance;
}

.home-hero-copy .lead {
  max-width: 720px;
  color: #48463e;
  font-size: clamp(1.06rem, 1.65vw, 1.22rem);
}

.home-hero-panel {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(49, 69, 60, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.72);
  box-shadow: 0 24px 70px rgba(49, 69, 60, 0.12);
  backdrop-filter: blur(18px);
}

.home-hero-panel p {
  margin: 0;
  color: #4b473d;
  font-size: 1rem;
  line-height: 1.55;
}

.home-hero-stats {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(49, 69, 60, 0.14);
}

.home-hero-stats span {
  display: block;
  color: var(--muted);
  min-width: 0;
}

.home-hero-stats strong {
  display: block;
  color: var(--sage-900);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 2.7vw, 2.25rem);
  line-height: 1;
}

.home-hero-stats small {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.25;
}

.home-intro {
  background: var(--white);
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.home-intro-grid h2,
.home-services-head h2,
.home-map-grid h2 {
  max-width: 820px;
  font-size: clamp(2.35rem, 4.7vw, 4.65rem);
  line-height: 1;
}

.home-intro-grid p,
.home-services-head p,
.home-map-grid p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
}

.studio-context-photo {
  min-height: 460px;
  border: 12px solid var(--cream-100);
  background:
    linear-gradient(180deg, rgba(49, 69, 60, 0.01), rgba(49, 69, 60, 0.04)),
    url("assets/images/studio-prima-ascolto.jpg") center / cover no-repeat;
}

.home-services-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(250px, 0.55fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: end;
  margin-bottom: 36px;
}

.refined-grid .path-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(249, 244, 236, 0.88));
}

.refined-grid .path-card span {
  margin-bottom: 24px;
  color: var(--rose-500);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.refined-grid .path-card a {
  margin-top: auto;
  padding-top: 18px;
}

.home-map-section {
  background: var(--white);
}

.home-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.7fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}

.map-frame {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(49, 69, 60, 0.16);
  border-radius: 8px;
  background: var(--cream-200);
  box-shadow: 0 24px 64px rgba(49, 69, 60, 0.14);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}

.map-wide {
  margin-top: 26px;
}

.contact-panel h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-panel {
    animation: panelFloat 5200ms ease-in-out infinite;
  }
}

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

@media (max-width: 980px) {
  .main-nav {
    font-size: 0.9rem;
    gap: 16px;
  }

  .home-hero-grid,
  .home-intro-grid,
  .home-services-head,
  .home-map-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    min-height: auto;
  }

  .home-hero-panel {
    max-width: 560px;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail h2 {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
  }

  .brand img {
    width: 98px;
  }

  .main-nav { top: 64px; max-height: calc(100dvh - 64px); }

  .home-hero-grid {
    padding: 62px 0 72px;
  }

  .home-hero-copy h1 {
    font-size: clamp(3.2rem, 15vw, 4.7rem);
  }

  .home-hero-stats span {
    display: block;
  }

  .home-hero-panel {
    padding: 22px;
  }

  .home-hero-panel p {
    font-size: 0.98rem;
  }

  .home-hero-stats strong {
    font-size: 2rem;
  }

  .studio-context-photo,
  .map-frame,
  .map-frame iframe {
    min-height: 330px;
  }
}
