
:root {
  --primary: #8FCBAE;
  --secondary: #4F9C7B;
  --accent: #B8E3CC;
  --dark: #3A7860;
  --sage: #8FCBAE;
  --sage-dark: #3A7860;
  --ivory: #f3eee6;
  --ivory-soft: #f7f4ee;
  --ink: #1c1b19;
  --muted: #5c574f;
  --line: #e4ddd3;
  --white: #fffcf7;
  --whatsapp: #25d366;
  --radius: 16px;
  --radius-pill: 999px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 1000;
  padding: 10px 14px; background: var(--ink); color: var(--white);
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247,244,238,.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}
.site-header.is-scrolled {
  background: rgba(247,244,238,.94);
  border-bottom-color: rgba(228,221,211,.9);
  box-shadow: 0 12px 32px rgba(28,27,25,.06);
}
.header-inner {
  min-height: 64px; display: flex; align-items: center; gap: 16px;
}
.brand { text-decoration: none; min-width: 0; margin-right: auto; }
.brand-group { display: inline-flex; align-items: center; gap: 12px; }
/* The logo replaces the studio name, so it is sized as a wordmark lockup:
   free width, capped height, and no circular crop — that would cut the ends off
   a wide logo, which is the shape most of them are. */
.brand-logo-wrap { display: block; line-height: 0; }
.brand-logo {
  height: clamp(32px, 4vw, 46px); width: auto; max-width: min(240px, 46vw);
  object-fit: contain; display: block;
}
.brand-copy { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.brand-copy strong {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.brand-copy > span {
  color: var(--muted); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted); font-size: 14px; font-weight: 500;
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius-pill);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: rgba(28,27,25,.05); }
.menu-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid rgba(228,221,211,.85); border-radius: 12px;
  background: rgba(255,252,247,.45); cursor: pointer; color: var(--ink);
}
.header-cta { margin-left: 8px; }

/* Buttons */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border: 1px solid transparent;
  border-radius: var(--radius-pill); background: var(--sage-dark); color: var(--white);
  font: 600 14px/1 var(--font-body); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
}
.button:hover, .button:focus { background: #385b3f; color: var(--white); }
.button.secondary {
  background: transparent; border-color: rgba(28,27,25,.16); color: var(--ink);
}
.button.secondary:hover { background: rgba(28,27,25,.05); }
.button.small { min-height: 38px; padding: 8px 14px; font-size: 13px; }

/* Hero & page hero */
.hero, .page-hero { padding: clamp(36px,5.5vw,72px) 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,.98fr) minmax(320px,1.02fr);
  gap: clamp(32px,5vw,70px); align-items: center;
}
.hero-media-wrap { position: relative; }
.hero-media, .split-media, .portrait-card, .image-band img {
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(28,27,25,.12);
}
.hero-media img, .split-media img, .portrait-card img { width: 100%; object-fit: cover; }
.hero-note {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(255,252,247,.92); padding: 12px 16px;
  border-radius: 14px; font-size: 14px; backdrop-filter: blur(10px);
}
.eyebrow {
  margin: 0 0 14px; color: var(--sage-dark);
  font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0; font-family: var(--font-title); font-optical-sizing: auto;
  line-height: 1.05; color: var(--ink); letter-spacing: -0.03em; font-weight: 600;
}
h1 { font-size: clamp(34px,5.6vw,62px); }
h2 { font-size: clamp(26px,3.6vw,42px); margin-bottom: 16px; }
.lead { color: var(--muted); font-size: clamp(16px,1.7vw,19px); line-height: 1.55; max-width: 640px; }
.hero-actions, .section-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(48px,7vw,80px) 0; }
.section.ivory, .ivory { background: var(--ivory); }
.section.sage, .sage { background: var(--sage-dark); color: var(--white); }
.section.sage h2, .section.sage .lead { color: var(--white); }
.section.sage .button.secondary { border-color: rgba(255,255,255,.5); color: var(--white); }
.manifesto-quote {
  margin: 0; padding: 0; border: none;
  font-family: var(--font-title); font-size: clamp(24px,3vw,36px);
  line-height: 1.35; text-align: center;
}
.statement-box {
  padding: clamp(28px,4vw,48px);
  border-left: 3px solid var(--sage);
  border-radius: 20px;
  background: rgba(255,252,247,.55);
}
.grid.three { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; box-shadow: 0 1px 0 rgba(28,27,25,.03);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); align-items: center; }
.appointments-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

/* Treatments */
.treatment-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.treatment-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.treatment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(28,27,25,.08);
}
.treatment-num {
  display: block; color: var(--sage); font-weight: 650;
  font-size: 12px; letter-spacing: .16em; margin-bottom: 8px;
}
.tier-list { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.tier { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tier-price { font-weight: 700; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.benefit-card { background: var(--white); border-radius: 20px; padding: 22px; border: 1px solid var(--line); }
.indications-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.indications-list li {
  padding: 12px 16px; background: var(--white);
  border-radius: 14px; border: 1px solid var(--line);
}
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li { padding-left: 24px; position: relative; margin-bottom: 8px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--sage-dark); font-weight: 700;
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; margin: 0;
}
.testimonial blockquote { margin: 12px 0; font-style: italic; }
.testimonial figcaption { color: var(--muted); font-weight: 600; font-size: 14px; }
.stars-full { color: #f5a524; }
.stars-empty { color: var(--line); }
.reviews-source { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { display: grid; gap: 8px; margin: 16px 0; }
.form-field { display: grid; gap: 6px; margin-bottom: 14px; }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; background: var(--white);
}
.media-placeholder {
  min-height: 320px; background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 22px;
}

/* Booking */
.booking-root { margin-top: 24px; }
.bk-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.bk-week-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  white-space: nowrap;
}
.bk-week-btn:hover {
  border-color: var(--sage);
  box-shadow: 0 8px 20px rgba(28,27,25,.06);
  transform: translateY(-1px);
}
#bk-prev { justify-self: start; }
#bk-next { justify-self: end; }
.bk-range {
  font-family: var(--font-title);
  font-size: clamp(18px, 2.4vw, 24px);
  text-align: center;
  color: var(--ink);
}
.bk-schedule { display: grid; gap: 20px; }
.bk-day-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}
.bk-day-title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
}
.bk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bk-list-item { margin: 0; }
.bk-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--ivory-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.bk-slot:hover {
  border-color: var(--sage);
  background: var(--white);
  transform: translateY(-1px);
}
.bk-slot-time {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bk-slot-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-dark);
}
.bk-empty-week {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 20px;
}
body.bk-modal-open { overflow: hidden; }
.bk-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.bk-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(28,27,25,.42);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.bk-modal-panel {
  position: relative;
  width: min(100%, 460px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(28,27,25,.18);
}
.bk-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--ivory-soft);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.bk-modal-title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 24px;
}
.bk-selected {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.bk-form { margin: 0; }
.bk-field { display: grid; gap: 6px; margin-bottom: 12px; }
.bk-field label { font-size: 14px; font-weight: 600; }
.bk-field input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
}
.bk-submit { width: 100%; margin-top: 8px; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-message.is-error { color: #b91c1c; }
.bk-message.is-success { color: var(--sage-dark); font-weight: 600; }
.booking-loading, .booking-offline { color: var(--muted); }

/* Footer */
.site-footer { background: var(--sage-dark); color: #e9f2ee; margin-top: 48px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-title { font-family: var(--font-title); font-size: 20px; margin: 0 0 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #cfe3db; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--white); }
.footer-contact .contact-item { color: #cfe3db; text-decoration: none; font-size: 14px; display: block; margin-bottom: 6px; }
.footer-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--white); text-decoration: none;
}
.facebook-mark { background: #1877f2; }
.instagram-mark { background: #c13584; }
.whatsapp-mark { background: var(--whatsapp); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; color: #b9d1c8;
}
.footer-muted { color: #cfe3db; font-size: 14px; }

/* Prenota float */
.prenota-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-dark); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(28,27,25,.22);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.prenota-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(28,27,25,.28);
}
.prenota-float svg { width: 26px; height: 26px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-enabled .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .footer-grid,
  .grid.three, .treatment-grid, .benefit-grid, .testimonials-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .bk-toolbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .bk-range { order: -1; }
  #bk-prev, #bk-next { justify-self: stretch; }
}
@media (max-width: 720px) {
  .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(247,244,238,.96);
    border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
    backdrop-filter: blur(18px);
  }
  body.menu-open .site-nav { display: flex; }
  .header-cta { display: none; }
}
