html {
  scroll-behavior: smooth;
}

@media (min-width: 1024px) {
  html {
    zoom: 0.7;
  }
}

body {
  min-width: 320px;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.15vw, 1.4rem);
  font-weight: var(--font-weight-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

@media (min-width: 1024px) {
  :root {
    --text-xs: 1rem;
    --text-sm: 1.2rem;
    --text-base: 1.4rem;
    --text-lg: 1.7rem;
    --text-xl: 2.05rem;
  }

  body {
    font-size: var(--text-base);
  }
}

html.route-pending {
  background: #f4f0e7;
}

html.route-pending body {
  visibility: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

section[hidden] {
  display: none;
}

section {
  min-height: 100svh;
  padding: calc(7rem + var(--space-lg)) var(--space-md) var(--space-xl);
}

.container {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--color-accent-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--font-brand);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

/* Navigation */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 6.75rem;
  padding: var(--space-sm) var(--space-md);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.brand-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: clamp(7rem, 10vw, 9rem);
  height: 5.6rem;
  place-items: center;
  transform: translate(-50%, -50%);
}

.brand-mark__image,
.service-detail__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-toggle {
  position: absolute;
  top: 50%;
  right: var(--space-md);
  display: grid;
  width: 48px;
  height: 48px;
  padding: 12px 8px;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-popup {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: var(--space-md);
  display: flex;
  min-width: 12rem;
  padding: var(--space-sm);
  flex-direction: column;
  background: var(--color-text);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(61, 18, 20, 0.2);
}

.nav-popup[hidden] {
  display: none;
}

.nav-popup a {
  display: flex;
  min-height: var(--touch-min);
  padding-inline: var(--space-md);
  align-items: center;
  color: var(--color-bg);
  border-radius: 0.8rem;
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-menu);
}

.nav-popup a:hover,
.nav-popup a:focus-visible {
  color: var(--color-text);
  background: var(--color-accent);
}

@media (max-width: 767px) {
  body::before {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    content: '';
    background: rgba(87, 25, 29, 0.08);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition:
      opacity 300ms ease,
      backdrop-filter 300ms ease,
      visibility 0s linear 300ms;
  }

  body.nav-menu-open::before {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition-delay: 0s;
  }

  body.nav-menu-open {
    overflow: hidden;
  }

  .site-nav {
    background: rgba(244, 240, 231, 0.68);
    border-bottom-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0.4rem 2rem rgba(87, 25, 29, 0.06);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
  }

  .nav-toggle {
    z-index: 4;
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 0.5rem 1.5rem rgba(87, 25, 29, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav-popup,
  .nav-popup[hidden] {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3;
    display: flex;
    width: min(82vw, 21rem);
    min-width: 0;
    height: 100dvh;
    padding: calc(6.75rem + 1.25rem) 1.25rem 2rem;
    gap: 0.8rem;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    background: rgba(244, 240, 231, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 2rem 0 0 2rem;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      -1.5rem 0 4rem rgba(87, 25, 29, 0.18);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    pointer-events: none;
    transform: translateX(105%);
    transition:
      transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 460ms;
  }

  .nav-popup:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .nav-popup::before {
    position: absolute;
    top: 3.375rem;
    left: 1.5rem;
    content: 'Menu';
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: var(--font-weight-menu);
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    transform: translateY(-50%);
  }

  .nav-popup a {
    position: relative;
    min-height: 3.75rem;
    padding-inline: 1.25rem;
    color: var(--color-text);
    background: transparent;
    font-size: 1.65rem;
    transition: color 220ms ease, background-color 220ms ease;
  }

  .nav-popup li:last-child {
    margin-top: auto;
  }

  .nav-popup a[aria-current='page'] {
    background: rgba(255, 139, 74, 0.18);
  }

  .nav-popup a:hover,
  .nav-popup a:focus-visible {
    color: var(--color-text);
    background: rgba(255, 139, 74, 0.32);
  }
}

/* Hero */

.section-home {
  min-height: 100svh;
  padding: 6.75rem 0 0;
}

.hero {
  --hero-progress: 0;

  min-height: calc(100svh - 6.75rem);
  background: var(--color-bg);
}

.hero__stage {
  position: relative;
}

.hero__media {
  position: relative;
  height: min(70svh, 42rem);
  min-height: 27rem;
  overflow: hidden;
  background: var(--color-text);
}

.hero__media::after {
  display: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.hero__intro {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-lg);
  left: var(--space-md);
  z-index: 2;
  color: #57191d;
}

.hero__heading {
  max-width: 13ch;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.84;
}

.hero__subtitle {
  max-width: 48ch;
  margin-top: var(--space-lg);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.5;
  text-wrap: balance;
}

.hero__copy {
  padding: clamp(2rem, 8vw, 5rem) var(--space-md);
}

.hero__tagline {
  max-width: 52ch;
  color: var(--color-text-muted);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.5;
}

.hero__tagline p + p {
  margin-top: var(--space-md);
}

.hero__trigger {
  display: none;
}

@media (max-width: 767px) {
  .hero__media {
    transition:
      height 1250ms cubic-bezier(0.22, 0.61, 0.36, 1),
      min-height 1250ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .hero__image {
    object-position: 54% center;
  }

  .hero__media::after {
    display: none;
  }

  .hero__intro {
    top: clamp(1.5rem, 7vw, 2.5rem);
    right: var(--space-md);
    bottom: auto;
    left: 28%;
    text-align: right;
    transition:
      opacity 800ms ease,
      transform 1000ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .hero__heading,
  .hero__subtitle {
    margin-left: auto;
  }

  .hero__heading {
    font-size: clamp(2.4rem, 10vw, 2.8rem);
  }

  .hero__copy {
    max-height: 0;
    padding-block: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: max-height 900ms ease, padding 900ms ease, opacity 900ms ease, transform 900ms ease;
  }

  .hero__trigger {
    position: absolute;
    top: clamp(22rem, 58svh, 32rem);
    left: 50%;
    z-index: 4;
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    color: var(--color-text);
    background: rgba(244, 240, 231, 0.86);
    border: 1px solid rgba(87, 25, 29, 0.3);
    border-radius: 50%;
    box-shadow: 0 0.75rem 2rem rgba(42, 9, 13, 0.12);
    place-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateX(-50%);
    transition:
      opacity 420ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 300ms ease,
      box-shadow 300ms ease;
  }

  .hero__trigger svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(90deg);
  }

  .hero__trigger:hover,
  .hero__trigger:focus-visible {
    background: rgba(244, 240, 231, 0.98);
    box-shadow: 0 1rem 2.8rem rgba(42, 9, 13, 0.18);
    transform: translateX(-50%) scale(1.16);
  }

  .hero--animating .hero__media,
  .hero--complete .hero__media {
    height: clamp(18rem, 38svh, 22rem);
    min-height: 18rem;
  }

  .hero--animating .hero__intro,
  .hero--complete .hero__intro {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1.5rem);
  }

  .hero--animating .hero__copy,
  .hero--complete .hero__copy {
    max-height: 80rem;
    padding-block: clamp(2rem, 8vw, 5rem);
    opacity: 1;
    transform: translateY(0);
  }

  .hero--animating .hero__tagline p,
  .hero--complete .hero__tagline p {
    animation: mobile-hero-copy-reveal 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .hero--animating .hero__tagline p:nth-child(2),
  .hero--complete .hero__tagline p:nth-child(2) {
    animation-delay: 140ms;
  }

  .hero--complete .hero__trigger,
  .hero--animating .hero__trigger {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.82);
  }
}

@keyframes mobile-hero-copy-reveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services */

.section-servizi {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 139, 74, 0.2), transparent 32rem),
    var(--color-bg);
}

.section-servizi .container {
  width: 100%;
  max-width: none;
}

.service-list {
  border-top: 1px solid var(--color-line);
}

.service-item {
  position: relative;
  display: grid;
  padding: clamp(2rem, 6vw, 4rem) 0;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  border-bottom: 1px solid var(--color-line);
  transition: background 200ms ease;
}

.service-item::before {
  position: absolute;
  inset: var(--space-sm) calc(-1 * var(--space-md));
  z-index: 0;
  content: '';
  background: transparent;
  border-radius: 1.5rem;
  pointer-events: none;
  transition: background 200ms ease;
}

.service-item:hover::before {
  background: color-mix(in srgb, var(--color-accent) 9%, transparent);
}

.service-item__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: url('../assets/images/hero.jpg') center / cover no-repeat;
  border: 1px solid color-mix(in srgb, var(--color-line) 65%, transparent);
  border-radius: 1.25rem;
  box-shadow: 0 18px 38px rgba(87, 25, 29, 0.11);
}

.service-item:nth-child(1) .service-item__visual {
  background-image: url('../assets/images/style-formula.jpg');
  background-position: 58% center;
}

.service-item:nth-child(2) .service-item__visual {
  background-position: 18% center;
}

.service-item:nth-child(3) .service-item__visual {
  background-position: 88% center;
}

.service-item__label {
  font-family: var(--font-brand);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.service-item__copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  padding-top: var(--space-sm);
}

.service-item__description {
  max-width: 62ch;
  margin-top: var(--space-lg);
  color: var(--color-text-muted);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.55;
}



.service-item__actions {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 1;
  grid-row: 3;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-item__action,
.service-item__more,
.service-item__status {
  display: inline-flex;
  min-height: var(--touch-min);
  padding: 0.7rem 1rem;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.service-item__action {
  color: var(--color-bg);
  background: var(--color-text);
  border-color: var(--color-text);
}

.service-item__more,
.service-item__status {
  color: var(--color-text);
  background: transparent;
}

.service-item__status {
  color: var(--color-accent-dark);
}

.service-item__action:hover,
.service-item__action:focus-visible,
.service-item__more:hover,
.service-item__more:focus-visible {
  color: var(--color-text);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.service-detail {
  min-height: 100svh;
  padding: calc(6.75rem + var(--space-xl)) var(--space-md) var(--space-2xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 139, 74, 0.22), transparent 34rem),
    var(--color-bg);
}

.service-detail__nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  height: 6.75rem;
  padding: var(--space-md);
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.service-detail__logo {
  position: relative;
  display: grid;
  width: 8rem;
  height: 5.4rem;
  flex: 0 0 auto;
  place-items: center;
}

.service-detail__back,
.service-detail__cta {
  display: inline-flex;
  min-height: var(--touch-min);
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
}

.service-detail__back:hover,
.service-detail__back:focus-visible {
  background: var(--color-surface);
}

.service-detail__header,
.service-detail__body {
  width: min(100%, 860px);
  margin-inline: auto;
}

.service-detail__header {
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  border-bottom: 1px solid var(--color-line);
}

.service-detail__title {
  max-width: 10ch;
  font-family: var(--font-brand);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.service-detail__lead {
  max-width: 62ch;
  margin-top: var(--space-lg);
  color: var(--color-text-muted);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.55;
}

.service-detail__availability {
  font-style: italic;
}

.service-detail__coming-soon {
  display: block;
  max-width: 8ch;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  color: var(--color-accent-dark);
  font-family: var(--font-brand);
  font-size: clamp(3.75rem, 12vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.78;
  text-transform: uppercase;
}

.service-detail__body {
  min-height: 0;
  padding: clamp(2.5rem, 7vw, 5rem) 0 0;
}

.service-detail__heading {
  margin-bottom: var(--space-lg);
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
}

.service-detail__steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: service-step;
}

.service-detail__step {
  position: relative;
  padding: var(--space-lg);
  padding-top: 4.5rem;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  border: 1px solid var(--color-line);
  border-radius: 1.5rem;
  counter-increment: service-step;
}

.service-detail__step::before {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  content: counter(service-step, decimal-leading-zero);
  color: var(--color-accent-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service-detail__step h3 {
  margin-bottom: var(--space-sm);
  font-family: var(--font-brand);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.15;
}

.service-detail__step p {
  color: var(--color-text-muted);
}

.service-detail__footer {
  width: min(100%, 860px);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.service-detail__cta {
  color: var(--color-bg);
  background: var(--color-text);
  border-color: var(--color-text);
}

.service-detail__cta:hover,
.service-detail__cta:focus-visible {
  color: var(--color-text);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Deterministic entrance for standalone service pages. */

.service-detail-page .service-detail__header > *,
.service-detail-page .service-detail__body > .eyebrow,
.service-detail-page .service-detail__heading,
.service-detail-page .service-detail__step,
.service-detail-page .service-detail__footer {
  opacity: 0;
  animation: service-detail-fade-in 1800ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--detail-reveal-delay, 0ms);
}

.service-detail-page .service-detail__header > :nth-child(2) {
  --detail-reveal-delay: 100ms;
}

.service-detail-page .service-detail__header > :nth-child(3) {
  --detail-reveal-delay: 200ms;
}

.service-detail-page .service-detail__header > :nth-child(4) {
  --detail-reveal-delay: 300ms;
}

.service-detail-page .service-detail__header > :nth-child(5),
.service-detail-page .service-detail__body > .eyebrow {
  --detail-reveal-delay: 400ms;
}

.service-detail-page .service-detail__heading {
  --detail-reveal-delay: 500ms;
}

.service-detail-page .service-detail__step:nth-child(1) {
  --detail-reveal-delay: 600ms;
}

.service-detail-page .service-detail__step:nth-child(2) {
  --detail-reveal-delay: 700ms;
}

.service-detail-page .service-detail__step:nth-child(3) {
  --detail-reveal-delay: 800ms;
}

.service-detail-page .service-detail__step:nth-child(4),
.service-detail-page .service-detail__footer {
  --detail-reveal-delay: 900ms;
}

@keyframes service-detail-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.booking-intro {
  max-width: 58ch;
  margin-top: var(--space-lg);
  color: var(--color-text-muted);
}

/* Appointment request */

.booking-dialog {
  width: min(calc(100% - 2rem), 52rem);
  max-height: calc(100svh - 2rem);
  padding: 0;
  overflow: auto;
  color: var(--color-text);
  background: rgba(244, 240, 231, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 30px 90px rgba(61, 18, 20, 0.28);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}

@media (min-width: 768px) {
  .booking-dialog {
    height: calc(100svh - 0.5rem);
    max-height: calc(100svh - 0.5rem);
  }

  .booking-dialog__panel {
    display: grid;
    min-height: 100%;
    align-content: center;
  }
}

@media (min-width: 1024px) {
  .booking-dialog {
    position: fixed;
    inset: auto;
    top: 50%;
    left: 50%;
    width: min(78rem, calc(100vw - 4rem));
    height: min(50rem, calc(100svh - 4rem));
    max-height: calc(100svh - 4rem);
    transform: translate(-50%, -50%);
    zoom: 1.428571;
    scrollbar-width: none;
    font-size: 1rem;
  }

  .booking-dialog::-webkit-scrollbar {
    display: none;
  }

  .booking-dialog__panel {
    padding: clamp(2.5rem, 4vw, 4rem);
    grid-template-columns: minmax(18rem, 0.8fr) minmax(30rem, 1.2fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-content: normal;
    align-items: center;
  }

  .booking-dialog__header {
    max-width: 30rem;
    margin-inline: 0;
    padding-right: 0;
    align-self: start;
  }

  .booking-form {
    min-width: 0;
    margin-top: 0;
    align-self: center;
  }

  .booking-dialog .booking-calendar {
    width: min(100%, 30rem);
    max-width: none;
    margin-inline: auto;
    padding: 0.75rem;
    zoom: 1;
  }

  .booking-calendar__days {
    row-gap: 0.125rem;
  }

  .booking-calendar__day,
  .booking-calendar__spacer {
    width: 2.5rem;
    height: 2.5rem;
    aspect-ratio: auto;
    justify-self: center;
  }

  .booking-calendar__legend {
    margin-top: 0.5rem;
  }

  .booking-calendar__nav {
    margin-bottom: 0.5rem;
  }

  .booking-calendar__nav button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .booking-calendar__weekdays {
    margin-bottom: 0.35rem;
  }

  .booking-calendar__status {
    min-height: 1.25rem;
    margin-top: 0.35rem;
  }
}

.booking-dialog::backdrop {
  background: rgba(41, 12, 15, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.booking-dialog__panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.booking-dialog__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: grid;
  width: var(--touch-min);
  height: var(--touch-min);
  place-items: center;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.8rem;
  line-height: 1;
}

.booking-dialog__header {
  max-width: 36rem;
  margin-inline: auto;
  padding-right: 3rem;
}

.booking-dialog__header h2 {
  margin-bottom: var(--space-md);
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.booking-dialog__header > p:last-child {
  color: var(--color-text-muted);
}

.booking-dialog__header strong {
  color: var(--color-accent-dark);
}

.booking-form {
  margin-top: var(--space-md);
}

.booking-calendar {
  width: min(100%, 25rem);
  margin-inline: auto;
  padding: clamp(0.8rem, 2vw, 1.25rem);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1rem 3rem rgba(87, 25, 29, 0.08);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.booking-calendar__nav {
  display: grid;
  margin-bottom: var(--space-md);
  grid-template-columns: var(--touch-min) 1fr var(--touch-min);
  gap: var(--space-sm);
  align-items: center;
}

.booking-calendar__nav h3 {
  font-family: var(--font-brand);
  font-size: var(--text-xl);
  text-align: center;
  text-transform: capitalize;
}

.booking-calendar__nav button {
  display: grid;
  width: var(--touch-min);
  height: var(--touch-min);
  place-items: center;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.booking-calendar__nav button:disabled {
  opacity: 0.3;
}

.booking-calendar__weekdays,
.booking-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.25rem, 1vw, 0.6rem);
}

.booking-calendar__weekdays {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.booking-calendar__day,
.booking-calendar__spacer {
  min-width: 0;
  aspect-ratio: 1;
}

.booking-calendar__day {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.booking-calendar__day.is-available {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent) 42%, var(--color-bg));
  border: 1px solid color-mix(in srgb, var(--color-accent-dark) 45%, transparent);
  cursor: pointer;
}

.booking-calendar__day.is-available:hover,
.booking-calendar__day.is-available:focus-visible {
  color: var(--color-bg);
  background: var(--color-text);
  transform: scale(1.06);
}

.booking-calendar__day.is-unavailable {
  color: color-mix(in srgb, var(--color-text-muted) 45%, transparent);
  background: color-mix(in srgb, var(--color-surface) 50%, transparent);
  text-decoration: line-through;
  cursor: not-allowed;
}

.booking-calendar__legend {
  display: flex;
  margin-top: var(--space-md);
  gap: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.booking-calendar__legend span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.booking-calendar__legend i {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.booking-calendar__legend i.is-available {
  background: var(--color-accent);
}

.booking-calendar__legend i.is-unavailable {
  background: var(--color-surface);
}

.booking-calendar__status {
  min-height: 1.5rem;
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.booking-contact {
  display: grid;
  max-width: 42rem;
  gap: var(--space-md);
}

.booking-contact[hidden] {
  display: none;
}

.booking-contact__selection {
  display: flex;
  padding: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--color-accent) 22%, var(--color-bg));
  border-radius: 0.9rem;
}

.booking-contact__selection strong {
  text-transform: capitalize;
}

.booking-contact__selection button {
  color: var(--color-accent-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: underline;
}

.booking-form__field {
  display: grid;
  gap: 0.4rem;
}

.booking-form__field label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.booking-form__field label span {
  color: var(--color-text-muted);
  font-weight: 400;
}

.booking-form__field input,
.booking-form__field select,
.booking-form__field textarea {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.8rem 0.9rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
}

.booking-form__field textarea {
  min-height: 7rem;
  resize: vertical;
}

.booking-form__field input:focus,
.booking-form__field select:focus,
.booking-form__field textarea:focus {
  border-color: var(--color-accent-dark);
  outline: 2px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
  outline-offset: 1px;
}

.booking-form__field--honeypot {
  position: absolute;
  left: -10000px;
}

.booking-form__consent {
  display: flex;
  margin-top: var(--space-md);
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.booking-form__consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--color-accent-dark);
}

.booking-form__note {
  margin-top: var(--space-md);
  padding: 0.8rem 1rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: 0.75rem;
  font-size: var(--text-sm);
}

.booking-form__submit {
  display: inline-flex;
  min-height: var(--touch-min);
  margin-top: var(--space-lg);
  padding: 0.8rem 1.2rem;
  gap: var(--space-md);
  align-items: center;
  color: var(--color-text);
  background: var(--color-accent);
  border-radius: 999px;
  font-weight: 700;
}

.booking-form__submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.booking-form__status {
  margin-top: var(--space-md);
  font-weight: 700;
}

.booking-form__status:empty {
  display: none;
}

.booking-form__status--success {
  margin: var(--space-lg) 0 0;
  padding: var(--space-lg);
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent) 28%, var(--color-bg));
  border-radius: 1rem;
  font-family: var(--font-brand);
  font-size: var(--text-xl);
  line-height: 1.25;
}

.booking-form__status--error {
  color: #9d1c24;
}

/* Shop */

.section-shop {
  background: var(--color-text);
  color: var(--color-bg);
}

.section-shop .container {
  width: 100%;
  max-width: none;
}

.section-shop .eyebrow {
  color: var(--color-accent);
}

.shop-test-notice {
  display: flex;
  width: fit-content;
  margin: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)) 0 var(--space-lg);
  padding: 0.5rem 0.85rem;
  gap: var(--space-sm);
  align-items: center;
  color: var(--color-bg);
  border: 1px solid rgba(244, 240, 231, 0.32);
  border-radius: 999px;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.shop-test-notice span {
  color: var(--color-accent);
  font-size: 0.65rem;
}

.product-grid {
  display: grid;
  gap: var(--space-md);
}

.product-card {
  display: flex;
  min-height: 32rem;
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-lg);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid rgba(244, 240, 231, 0.18);
  border-radius: 1.6rem;
  box-shadow: 0 22px 50px rgba(25, 7, 8, 0.24);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:nth-child(2) {
  background: var(--color-bg);
}

.product-card--gift {
  background: var(--color-bg);
}

.product-card:hover {
  box-shadow: 0 28px 65px rgba(25, 7, 8, 0.32);
  transform: translateY(-4px);
}

.product-card__meta {
  color: var(--color-text-muted);
  font-size: clamp(1.15rem, 1.35vw, 1.4rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-card__visual {
  min-height: 9rem;
  margin-inline: calc(-1 * var(--space-sm));
  background: center / cover no-repeat;
  border-radius: 1rem;
}

.product-card__visual--shopping {
  background-image: url('../assets/images/style-formula.jpg');
  background-position: 58% center;
}

.product-card__visual--color {
  background-image: url('../assets/images/dizionario-colore.jpg');
  background-position: 58% center;
}

.product-card__title {
  max-width: 12ch;
  font-family: var(--font-brand);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.product-card__meta {
  margin-top: var(--space-sm);
}

.product-card__price {
  margin-top: auto;
  color: var(--color-accent-dark);
  font-family: var(--font-product);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.btn-buy {
  display: flex;
  min-height: var(--touch-min);
  width: 100%;
  padding: 0.8rem 1rem;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
  background: var(--color-accent);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: gap 180ms ease, background 180ms ease;
}

.btn-buy:hover,
.btn-buy:focus-visible {
  color: var(--color-bg);
  background: var(--color-text);
}

.btn-buy:disabled {
  cursor: wait;
  opacity: 0.58;
}

.gift-card-checkout-status {
  min-height: 1.5rem;
  margin-top: var(--space-md);
  color: rgba(244, 240, 231, 0.76);
}

.gift-card-checkout-status--success {
  color: #b9e1bd;
}

.gift-card-checkout-status--error {
  color: #ffc0bd;
}

.result-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-width: none;
  padding: 0;
  color: var(--color-text);
  border: 0;
  border-radius: 1.75rem;
  background: transparent;
  box-shadow: 0 30px 90px rgba(27, 8, 10, 0.34);
}

.result-dialog::backdrop {
  background: rgba(42, 12, 16, 0.72);
  backdrop-filter: blur(5px);
}

.result-dialog__panel {
  padding: clamp(2rem, 6vw, 3.5rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 139, 74, 0.28), transparent 18rem),
    var(--color-bg);
}

.result-dialog__panel h2 {
  margin-bottom: var(--space-md);
  font-family: var(--font-brand);
  font-size: clamp(2rem, 7vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.result-dialog__panel > p:not(.eyebrow) {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.result-dialog__close {
  min-height: var(--touch-min);
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  background: var(--color-accent);
  border-radius: 999px;
  font-weight: 700;
}

/* About */

.section-about {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.section-about::after {
  position: absolute;
  right: -4rem;
  bottom: -8rem;
  z-index: 0;
  content: 'S';
  color: rgba(255, 139, 74, 0.14);
  font-family: var(--font-brand);
  font-size: min(75vw, 46rem);
  font-style: italic;
  line-height: 0.7;
  pointer-events: none;
  transform: rotate(-10deg);
}

.about-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-lg);
}

.about-content h2 {
  max-width: 10ch;
  font-family: var(--font-brand);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.about-content__bio {
  max-width: 66ch;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.75;
}

.about-content__bio p + p {
  margin-top: var(--space-md);
}

.about-content__lead {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.55;
}

.about-content__bio strong {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.about-content__bio em {
  font-family: var(--font-brand);
  font-size: 1.08em;
}

.about-content__closing {
  padding-top: var(--space-md);
  color: var(--color-accent-dark);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.55;
}

.section-heading,
.hero__heading,
.service-item__label,
.service-detail__title,
.service-detail__coming-soon,
.service-detail__heading,
.service-detail__step h3,
.booking-dialog__header h2,
.booking-calendar__nav h3,
.product-card__title,
.result-dialog__panel h2,
.about-content h2 {
  font-weight: var(--font-weight-title);
}

.section-heading,
.hero__heading,
.service-detail__title,
.service-detail__coming-soon,
.service-detail__heading,
.service-detail__step h3,
.booking-dialog__header h2,
.booking-calendar__nav h3,
.result-dialog__panel h2,
.about-content h2 {
  font-family: var(--font-brand);
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Progressive content reveal */

.reveal-item {
  opacity: 0;
  transition: opacity 1800ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity;
}

.reveal-item.is-visible {
  opacity: 1;
}

@media (min-width: 768px) {
  section {
    padding: calc(8rem + var(--space-xl)) var(--space-lg) var(--space-2xl);
  }

  .site-nav {
    height: 7.5rem;
    padding-inline: var(--space-lg);
  }

  .nav-toggle {
    display: none;
  }

  .nav-popup,
  .nav-popup[hidden] {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    grid-template-columns: repeat(3, max-content) 1fr;
    column-gap: clamp(0.25rem, 2vw, 2.5rem);
    align-items: center;
    color: var(--color-text);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-popup li:nth-child(2) {
    margin-right: 0;
  }

  .nav-popup li:nth-child(3) {
    margin-left: 0;
  }

  .nav-popup li:last-child {
    justify-self: end;
    text-align: right;
  }

  .nav-popup a {
    display: inline-flex;
    min-height: var(--touch-min);
    padding-inline: var(--space-sm);
    color: var(--color-text);
    background: transparent;
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: var(--font-weight-menu);
    text-transform: uppercase;
  }

  .nav-popup a:hover,
  .nav-popup a:focus-visible {
    color: var(--color-accent-dark);
    background: transparent;
  }

  .section-home {
    padding-top: 7.5rem;
  }

  .booking-calendar__day {
    font-size: var(--text-base);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .about-content {
    grid-template-columns: minmax(18rem, 0.8fr) 1.2fr;
    align-items: start;
    column-gap: var(--space-2xl);
  }

}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero {
    height: calc(100svh - 7.5rem);
    min-height: 0;
  }

  .hero__stage {
    position: relative;
    top: auto;
    height: calc(100svh - 7.5rem);
    min-height: 34rem;
    overflow: hidden;
  }

  .hero__media {
    position: absolute;
    top: calc(var(--hero-progress) * 5%);
    right: calc(var(--hero-progress) * 58%);
    bottom: calc(var(--hero-progress) * 5%);
    left: calc(var(--hero-progress) * 3%);
    height: auto;
    min-height: 0;
    border-radius: calc(var(--hero-progress) * 2rem);
    box-shadow: 0 28px 70px rgba(87, 25, 29, calc(var(--hero-progress) * 0.2));
    will-change: inset, border-radius;
  }

  .hero__media::after {
    opacity: calc(1 - var(--hero-progress));
  }

  .hero__image {
    transform: scale(calc(1.05 - var(--hero-progress) * 0.05));
    will-change: transform;
  }

  .hero__intro {
    top: clamp(2.5rem, 6vw, 5rem);
    right: clamp(2rem, 6vw, 6rem);
    bottom: auto;
    left: 45%;
    text-align: right;
    opacity: calc(1 - var(--hero-progress) * 2.1);
    transform: translateY(calc(var(--hero-progress) * -2rem));
    will-change: opacity, transform;
  }

  .hero__heading {
    max-width: 11ch;
    margin-left: auto;
    font-size: 3.8rem;
  }

  .hero__subtitle {
    margin-left: auto;
  }

  .hero__copy {
    position: absolute;
    inset: 0 4% 0 55%;
    display: flex;
    padding: clamp(2rem, 4vw, 4rem);
    align-items: center;
    opacity: calc((var(--hero-progress) - 0.38) * 2.5);
    transform: translateX(calc((1 - var(--hero-progress)) * 3rem));
    will-change: opacity, transform;
  }

  .hero__tagline {
    font-size: clamp(1.55rem, 1.86vw, 1.9rem);
    line-height: 1.6;
  }

  .hero__trigger {
    position: absolute;
    top: 75%;
    right: clamp(1.5rem, 3vw, 3rem);
    bottom: auto;
    z-index: 4;
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    padding: 0;
    color: var(--color-text);
    background: rgba(244, 240, 231, 0.86);
    border: 1px solid rgba(87, 25, 29, 0.3);
    border-radius: 50%;
    box-shadow: 0 0.75rem 2rem rgba(42, 9, 13, 0.12);
    place-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
      opacity 420ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 300ms ease,
      box-shadow 300ms ease;
  }

  .hero__trigger svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .hero__trigger:hover,
  .hero__trigger:focus-visible {
    background: rgba(244, 240, 231, 0.98);
    box-shadow: 0 1rem 2.8rem rgba(42, 9, 13, 0.18);
    transform: translateY(-50%) scale(1.16);
  }

  .hero--animating .hero__trigger,
  .hero--complete .hero__trigger {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.82);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  /* Compensate viewport sizing for the 70% desktop zoom. */
  .hero {
    height: calc(142.86svh - 7.5rem);
  }

  .hero__stage {
    height: calc(142.86svh - 7.5rem);
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .service-item {
    min-height: 17rem;
    grid-template-columns: minmax(14rem, 0.75fr) minmax(18rem, 1fr) minmax(12rem, auto);
    gap: clamp(1.5rem, 3vw, 3.25rem);
    align-items: center;
  }

  .service-item__visual {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 3;
  }

  .service-item__copy {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
  }

  .service-item__actions {
    width: 13rem;
    margin-right: clamp(2rem, 5vw, 6rem);
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-item {
    opacity: 1;
    transition: none;
  }

  .hero--animating .hero__tagline p,
  .hero--complete .hero__tagline p {
    animation: none;
  }

  .service-detail-page .service-detail__header > *,
  .service-detail-page .service-detail__body > .eyebrow,
  .service-detail-page .service-detail__heading,
  .service-detail-page .service-detail__step,
  .service-detail-page .service-detail__footer {
    opacity: 1;
    animation: none;
  }
}
