/* ============================================================
   The Cut — child theme custom styles
   Companion al theme.json. Tutto ciò che block editor non gestisce.
   ============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

@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; }
}

/* ---------- Eyebrow utility ---------- */
.thecut-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--wp--preset--color--mute);
  display: inline-block;
}

/* ---------- Buttons (override theme.json where needed) ---------- */
.wp-block-button__link.is-style-ghost,
.thecut-btn-ghost {
  background: transparent !important;
  color: var(--wp--preset--color--ink) !important;
  border: 1px solid var(--wp--preset--color--ink);
  padding: 13px 30px;
}
.wp-block-button__link.is-style-ghost:hover,
.thecut-btn-ghost:hover {
  background: var(--wp--preset--color--ink) !important;
  color: var(--wp--preset--color--white) !important;
}

/* ---------- Floating WhatsApp / Phone buttons ----------
   NO sticky CTA bar (decisione 20 Mag: sito è prenotazione-first, sticky duplica CTA inline).
   Floating WA + phone restano: canali alternativi per chi NON vuole prenotare online. */
.thecut-float {
  position: fixed;
  right: 16px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thecut-float:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.thecut-float--whatsapp { bottom: 24px;  background: #25D366; }
.thecut-float--phone    { bottom: 92px;  background: var(--wp--preset--color--ink); }
.thecut-float svg { width: 28px; height: 28px; fill: white; }

/* ---------- Reveal on scroll ---------- */
.thecut-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.thecut-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Service row ---------- */
.thecut-service-row {
  border-bottom: 1px solid rgba(10,10,10,0.10);
  padding: 28px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.thecut-service-row:last-child { border-bottom: none; }
.thecut-service-row__title { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.5rem, 2vw, 1.875rem); font-weight: 400; }
.thecut-service-row__meta  { font-size: 14px; color: var(--wp--preset--color--mute); margin-top: 4px; font-weight: 300; }
.thecut-service-row__price { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.5rem, 2vw, 1.875rem); }

/* ---------- Gallery image (grayscale hover effect) ---------- */
.thecut-gallery img {
  filter: grayscale(20%);
  transition: transform 0.8s ease, filter 0.4s ease;
}
.thecut-gallery img:hover {
  transform: scale(1.03);
  filter: grayscale(0%);
}

/* ---------- Hero overlay ---------- */
.thecut-hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  overflow: hidden;
}
.thecut-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.thecut-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.45) 100%);
}
.thecut-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 0 24px 80px;
  color: white;
}

/* ---------- Header scroll behavior ---------- */
.thecut-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.thecut-header.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.thecut-header.is-scrolled .thecut-header__link { color: var(--wp--preset--color--ink); }

/* ---------- FAQ accordion ---------- */
.thecut-faq details {
  border-bottom: 1px solid var(--wp--preset--color--stone);
  padding: 20px 0;
}
.thecut-faq summary {
  cursor: pointer;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.thecut-faq summary::-webkit-details-marker { display: none; }
.thecut-faq summary::after {
  content: '+';
  font-size: 24px;
  transition: transform 0.2s ease;
}
.thecut-faq details[open] summary::after { transform: rotate(45deg); }
.thecut-faq details > div {
  padding-top: 12px;
  color: var(--wp--preset--color--mute);
  font-weight: 300;
  line-height: 1.7;
}
