/* Gestione appuntamenti — una giornata in salone (D106). */

.ap-hero { position: relative; overflow: hidden; padding: 72px 0 110px; background: var(--ink); }
.ap-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(184, 153, 104, .14), transparent 60%);
  pointer-events: none;
}
.ap-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.ap-hero h1 { margin: 0 0 28px; font-size: clamp(48px, 5.4vw, 86px) !important; line-height: 1.02 !important; }
.ap-hero .ap-hero__lead { margin: 0; max-width: 580px; font-size: 20px !important; line-height: 1.6 !important; color: var(--mist); }

/* Lock screen: the phone wakes up and bookings drop in one after another. */
.ap-lock {
  justify-self: center;
  width: min(340px, 100%);
  padding: 11px;
  border-radius: 46px;
  background: #1C1F1D;
  box-shadow: 0 60px 100px -50px rgba(23, 25, 26, .55);
  opacity: 0;
  transform: translateY(80px) rotate(4deg);
  transition: opacity .8s ease .2s, transform 1.2s cubic-bezier(.16, 1, .3, 1) .2s;
}
.is-ready .ap-lock { opacity: 1; transform: rotate(-3deg); }
.ap-lock__screen {
  min-height: 600px;
  padding: 56px 16px 22px;
  border-radius: 36px;
  background: linear-gradient(170deg, #2A2724 0%, #141618 60%);
  color: #F4EFE6;
  text-align: center;
}
.ap-lock__time { font-family: var(--sans); font-size: 72px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.ap-lock__date { margin-top: 8px; font-size: 15px; color: rgba(244, 239, 230, .7); }
.ap-lock__stack { display: grid; gap: 10px; margin-top: 46px; text-align: left; }
.ap-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(244, 239, 230, .14);
  backdrop-filter: blur(10px);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-18px) scale(.96);
  transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.4, .64, 1);
  transition-delay: calc(1.1s + var(--i) * .55s);
}
.is-ready .ap-note { opacity: 1; transform: none; }
.ap-note .mock-brand__mark { width: 30px; height: 30px; border-radius: 8px; background: #F4EFE6; color: #1C1F1D; }
.ap-note__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-note__text b { font-size: 13px; }
.ap-note__text span { color: rgba(244, 239, 230, .75); line-height: 1.35; }
.ap-note__ago { font-size: 11px; color: rgba(244, 239, 230, .55); white-space: nowrap; }

/* The day: a still clock on the left, the moments on the right. */
.ap-day { padding: 120px 0 80px; background: var(--ink-2); }
.ap-day__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; }
.ap-day__aside { position: sticky; top: 110px; align-self: start; }
.ap-day h2 { margin: 0 0 18px; font-size: clamp(40px, 4.4vw, 68px) !important; line-height: 1.04 !important; }
.ap-day .ap-day__intro { margin: 0 0 40px; color: var(--mist); }
.ap-day__clock { display: flex; align-items: center; gap: 36px; }
.ap-day__clock-phone { display: none; }
.ap-clock { width: min(300px, 46vw); height: auto; flex: 0 0 auto; }
.ap-clock__face { fill: var(--ink); stroke: var(--hair-strong); stroke-width: 1; }
.ap-clock__tick { stroke: var(--hair-strong); stroke-width: 1; }
.ap-clock__hour { stroke: var(--cream); stroke-width: 2; }
.ap-clock__h,
.ap-clock__m { stroke-linecap: round; transform-origin: 100px 100px; transition: transform 1.1s cubic-bezier(.45, .05, .2, 1); }
.ap-clock__h { stroke: var(--cream); stroke-width: 5; }
.ap-clock__m { stroke: var(--gold-line); stroke-width: 2.5; }
.ap-clock__pin { fill: var(--cream); }
.ap-day__digital { display: flex; flex-direction: column; gap: 4px; }
.ap-day__tomorrow { font-size: 14px; font-weight: 600; color: var(--gold); }
.ap-day__digits { font-family: var(--mono); font-size: 44px; letter-spacing: .04em; color: var(--cream); }

.ap-day__moments { list-style: none; margin: 0; padding: 0; position: relative; }
.ap-day__moments::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--hair-strong); }
.ap-moment { position: relative; padding: 0 0 12vh 36px; }
.ap-moment::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1.5px solid var(--hair-strong);
  transition: background-color .4s ease, border-color .4s ease, transform .4s ease;
}
.ap-moment.is-past::before,
.ap-moment.is-now::before { background: var(--cream); border-color: var(--cream); }
.ap-moment.is-now::before { transform: scale(1.5); }
.ap-moment__time { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--mist); }
.ap-moment__card {
  padding: 28px 30px;
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 0 24px 50px -36px rgba(23, 25, 26, .35);
  opacity: .45;
  transform: scale(.97);
  transform-origin: left center;
  transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.ap-moment.is-now .ap-moment__card,
.ap-moment.is-past .ap-moment__card { opacity: 1; transform: none; }
.ap-moment h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--cream); }
.ap-moment p { margin: 0 0 10px; color: var(--mist); }
.ap-moment p:last-child { margin-bottom: 0; }

/* The opening-hours sign. */
.ap-sign-section { padding: 130px 0; background: var(--ink); }
.ap-sign__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.ap-sign-section h2 { margin: 0 0 22px; font-size: clamp(36px, 3.8vw, 56px) !important; line-height: 1.06 !important; }
.ap-sign-section .ap-sign__text { margin: 0 0 14px; max-width: 520px; color: var(--mist); }
.ap-sign { position: relative; justify-self: center; width: min(440px, 100%); padding-top: 70px; transform-origin: 50% 0; }
.ap-sign.is-in { animation: ap-swing 2.4s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes ap-swing {
  0% { transform: rotate(9deg); }
  25% { transform: rotate(-6deg); }
  50% { transform: rotate(3deg); }
  75% { transform: rotate(-1.2deg); }
  100% { transform: rotate(0deg); }
}
.ap-sign__cord {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 72px;
  transform: translateX(-50%);
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--hair-strong) 50%, transparent calc(50% + 1px)) left / 50% 100% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1px), var(--hair-strong) 50%, transparent calc(50% + 1px)) right / 50% 100% no-repeat;
}
.ap-sign__cord::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 999px;
  background: var(--cream);
}
.ap-sign__board {
  position: relative;
  padding: 30px 32px 26px;
  border-radius: 20px;
  background: var(--night);
  color: var(--ivory);
  box-shadow: 0 40px 80px -40px rgba(23, 25, 26, .6);
}
.ap-sign__title { margin-bottom: 18px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold-light); }
.ap-sign__row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; font-size: 15px; }
.ap-sign__row span:first-child { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); }
.ap-sign__row span:last-child { color: var(--ivory-muted); text-align: right; }
.ap-sign__dots { flex: 1 1 auto; border-bottom: 1px dotted rgba(244, 239, 230, .3); transform: translateY(-4px); }

@media (max-width: 900px) {
  .ap-hero__grid,
  .ap-day__grid,
  .ap-sign__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ap-hero h1 { font-size: clamp(38px, 8.6vw, 58px) !important; }
  .ap-hero .ap-hero__lead { font-size: 17px !important; }
  .ap-lock__screen { min-height: 520px; }
  .ap-day__aside { position: static; }
  .ap-day__clock-desk { display: none; }
  .ap-day__clock-phone {
    display: block;
    position: sticky;
    top: 70px;
    z-index: 2;
    margin: 0 -20px 24px;
    padding: 12px 20px;
    background: rgba(244, 244, 242, .94);
    backdrop-filter: blur(10px);
  }
  .ap-day__clock { gap: 18px; }
  .ap-clock { width: 110px; }
  .ap-day__digits { font-size: 30px; }
  .ap-moment { padding-bottom: 56px; }
}

@media (max-width: 640px) {
  .ap-moment h3 { font-size: 26px; }
  .ap-moment__card { padding: 22px; }
  .ap-sign__board { padding: 24px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-hero *, .ap-day *, .ap-sign { transition: none !important; animation: none !important; }
}
