/* =========================================================
   Officine LùBar page
   Hero · Intro · Le due stanze · La pianta · Cosa succede ·
   I dettagli · Come funziona · Richiedi · Trovaci
   Palette: ivory, rose, brick, cream, deep moss accent.
   ========================================================= */

.officine {
  --off-paper:    #f1ebe1;
  --off-paper-2:  #ece4d6;
  --off-rose-bg:  #d6a89a;
  --off-brick-c:  #b87a68;
  --off-cream-c:  #e8d8c4;
  --off-ink:      #2a2722;
  --off-ink-soft: rgba(42, 39, 34, 0.7);
  --off-ink-faint:rgba(42, 39, 34, 0.45);
  background: var(--off-paper);
  color: var(--off-ink);
}

/* ---------- HERO carousel ----------------------------------- */
.off-hero {
  position: relative;
  height: 100dvh;
  min-height: 720px;
  max-height: 940px;
  color: #fff;
  overflow: hidden;
}
@media (min-width: 720px) {
  .off-hero {
    /* Match .app height (bezel was removed). */
    height: min(844px, calc(100dvh - 64px));
    min-height: 0;
    max-height: none;
  }
}
.off-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Ken Burns: starts zoomed and slightly off-centre, drifts to rest
     while the slide is active. Same pattern as the Ristorante hero. */
  transform: scale(1.12) translate(1.5%, 1%);
  transition: opacity 1100ms ease, transform 6s ease-out;
}
.off-hero__slide.is-active {
  opacity: 1;
  transform: scale(1) translate(0, 0);
}
.off-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28,22,18,0.5) 0%,
    rgba(28,22,18,0) 30%,
    rgba(28,22,18,0) 55%,
    rgba(28,22,18,0.78) 100%);
  pointer-events: none;
}

.off-hero__head {
  position: absolute;
  left: 0; right: 0;
  bottom: 124px;
  padding: 0 var(--gutter-body);
  z-index: 5;
}
.off-hero__line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.off-hero__line::before {
  content: '';
  width: 22px; height: 1px;
  background: rgba(255, 255, 255, 0.6);
}
.off-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: var(--ls-display);
  color: #fff;
}
.off-hero__title em {
  font-style: italic;
  color: #e8c1ad;
}

.off-hero__bottom {
  position: absolute;
  left: var(--gutter-body); right: var(--gutter-body);
  bottom: 64px;
  display: flex;
  align-items: center;
  z-index: 5;
}

/* ---------- Intro ------------------------------------------- */
.off-intro {
  background: var(--off-paper);
  color: var(--off-ink);
  padding: var(--section-y) var(--gutter-body);
}
.off-intro__eye {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--off-ink-faint);
  margin-bottom: 20px;
}
.off-intro__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: var(--ls-headline);
}
.off-intro__title em { font-style: italic; }
.off-intro__lede {
  margin: 0;
  max-width: 520px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--off-ink-soft);
}

/* ---------- Stanze (Atelier + Cortile) ---------------------- */
.off-stanze {
  background: var(--off-paper-2);
  color: var(--off-ink);
  padding: var(--section-y) 0 var(--sp-9);
}
.off-stanze__head { padding: 0 var(--gutter-body); margin-bottom: 28px; }
.off-stanze__eye {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--off-ink-faint);
  margin-bottom: 14px;
}
.off-stanze__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--ls-headline);
}
.off-stanze__title em { font-style: italic; }

.off-room { display: flex; flex-direction: column; margin-bottom: 36px; }
.off-room:last-child { margin-bottom: 0; }

.off-room__gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.off-room__gallery img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1100ms ease;
}
.off-room__gallery img.is-active { opacity: 1; }
.off-room__gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 30%, transparent 60%, rgba(28,22,18,0.45) 100%);
  pointer-events: none;
}

.off-room__label {
  position: absolute;
  left: 18px; bottom: 18px;
  background: var(--label-bg, var(--off-cream-c));
  color: var(--off-ink);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.off-room__floor {
  position: absolute;
  right: 18px; top: 18px;
  background: rgba(28, 22, 18, 0.55);
  color: #fff;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.off-room__dots {
  position: absolute;
  left: 18px; right: 18px; bottom: 70px;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.off-room__meta { padding: 20px var(--gutter-body) 4px; }
.off-room__stats {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--off-ink-faint);
}
.off-room__stat-num {
  color: var(--off-ink);
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: none;
  margin-right: 6px;
}
.off-room__line {
  margin: 0;
  max-width: 460px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--off-ink-soft);
}

/* ---------- Pianta (floorplan) ------------------------------ */
.off-plan {
  background: var(--off-paper);
  color: var(--off-ink);
  padding: var(--section-y) 0 var(--sp-9);
  border-top: 1px solid rgba(42, 39, 34, 0.08);
}
.off-plan__head { padding: 0 var(--gutter-body); margin-bottom: 22px; }

.off-plan__floors {
  padding: 0 var(--gutter-body);
  margin-bottom: 18px;
}
.off-plan__floors-inner {
  display: inline-flex;
  border: 1px solid rgba(42, 39, 34, 0.25);
}
.off-plan__floor-btn {
  padding: 10px 14px;
  background: transparent;
  color: var(--off-ink);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.off-plan__floor-btn.is-active {
  background: var(--off-ink);
  color: var(--off-paper);
}

.off-plan__drawing {
  margin: 0 20px;
  padding: 8px 12px 0;
  background: #f6f1e7;
  border: 1px solid rgba(42, 39, 34, 0.12);
  position: relative;
}
.off-plan__caption {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: rgba(42, 39, 34, 0.45);
}
.off-plan__caption--tr { top: 10px; right: 14px; }
.off-plan__caption--bl { bottom: 10px; left: 14px; }
.off-plan__svg { display: none; width: 100%; height: auto; }
.off-plan__svg.is-active { display: block; }

.off-plan__legend {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 var(--gutter-body);
}
.off-plan__legend-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(42, 39, 34, 0.14);
  cursor: pointer;
  transition: background var(--t-fast) ease;
}
.off-plan__legend-item:last-child { border-bottom: 1px solid rgba(42, 39, 34, 0.14); }
.off-plan__legend-item.is-active {
  background: rgba(125, 136, 105, 0.08);
}
.off-plan__legend-num {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--off-ink-faint);
}
.off-plan__legend-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  color: var(--off-ink);
}
.off-plan__legend-mq {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-ink-faint);
  white-space: nowrap;
}

/* ---------- Cosa succede (uses) ----------------------------- */
.off-uses {
  background: var(--off-ink);
  color: #f1ebe1;
  padding: var(--section-y) var(--gutter-body) var(--sp-9);
}
.off-uses__eye {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(241, 235, 225, 0.55);
  margin-bottom: 18px;
}
.off-uses__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: var(--ls-headline);
  /* Override base.css `h1,h2,h3,h4 { color: var(--ink) }` — the section
     has a dark background so the title needs the light ink. */
  color: #f1ebe1;
}
.off-uses__title em { font-style: italic; color: #e8c1ad; }
.off-uses__list { list-style: none; margin: 0; padding: 0; }
.off-uses__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(241, 235, 225, 0.14);
}
.off-uses__item:last-child { border-bottom: 1px solid rgba(241, 235, 225, 0.14); }
.off-uses__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
}
.off-uses__count {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 235, 225, 0.55);
  white-space: nowrap;
}

/* ---------- Dettagli ---------------------------------------- */
.off-details {
  background: var(--off-paper);
  color: var(--off-ink);
  padding: var(--section-y) 0 var(--sp-9);
}
.off-details__head { padding: 0 var(--gutter-body); margin-bottom: 24px; }
.off-details__photo { aspect-ratio: 5 / 4; overflow: hidden; }
.off-details__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.off-details__list {
  list-style: none;
  margin: 0;
  padding: 24px var(--gutter-body) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}
.off-details__item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 39, 34, 0.14);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

/* ---------- Processo (3 steps) ------------------------------ */
.off-process {
  background: var(--off-rose-bg);
  color: var(--off-ink);
  padding: var(--section-y) var(--gutter-body) var(--sp-9);
}
.off-process__eye {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(42, 39, 34, 0.5);
  margin-bottom: 14px;
}
.off-process__title {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: var(--ls-headline);
}
.off-process__title em { font-style: italic; }
.off-process__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.off-process__item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(42, 39, 34, 0.18);
}
.off-process__item:last-child { border-bottom: 1px solid rgba(42, 39, 34, 0.18); }
.off-process__num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--off-brick-c);
  padding-top: 4px;
}
.off-process__step-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  font-style: italic;
}
.off-process__step-sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(42, 39, 34, 0.72);
}

/* ---------- Enquire form ----------------------------------- */
.off-enquiry {
  background: var(--off-paper);
  color: var(--off-ink);
  padding: var(--section-y) var(--gutter-body) var(--sp-9);
  scroll-margin-top: 60px;
}
.off-enquiry .form-input,
.off-enquiry .form-select,
.off-enquiry .form-stepper {
  border-bottom-color: rgba(42, 39, 34, 0.25);
  color: var(--off-ink);
}
.off-enquiry__eye {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--off-ink-faint);
  margin-bottom: 14px;
}
.off-enquiry__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: var(--ls-headline);
}
.off-enquiry__title em { font-style: italic; }

.off-enquiry__type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
.off-enquiry__type-btn {
  padding: 8px 14px;
  border: 1px solid rgba(42, 39, 34, 0.25);
  background: transparent;
  color: var(--off-ink);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}
.off-enquiry__type-btn.is-active {
  background: var(--off-ink);
  color: var(--off-paper);
  border-color: var(--off-ink);
}

.off-enquiry .form-input,
.off-enquiry .form-select,
.off-enquiry .form-stepper {
  border-bottom-color: rgba(42, 39, 34, 0.25);
}
.off-enquiry textarea.form-input {
  resize: none;
  min-height: 70px;
}

.btn--off {
  background: var(--off-ink);
  color: var(--off-paper);
}
.btn--off:hover { background: var(--off-brick-c); color: #fff; }

/* ---------- Trovaci ----------------------------------------- */
.off-trovaci {
  background: var(--off-ink);
  color: var(--off-paper);
  padding: var(--section-y) var(--gutter-body) var(--sp-9);
}
.off-trovaci__eye {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(241, 235, 225, 0.5);
  margin-bottom: 14px;
}
.off-trovaci__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.off-trovaci__title em { font-style: italic; color: #e8c1ad; }
.off-trovaci__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(241, 235, 225, 0.85);
}
.off-trovaci__contact a { color: inherit; text-decoration: none; }
.off-trovaci__contact-eye {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(241, 235, 225, 0.55);
}
.off-trovaci__map {
  display: block;
  position: relative;
  aspect-ratio: 5 / 3;
  background: #3a3530;
  overflow: hidden;
  margin: 0 calc(-1 * var(--gutter-body));
}
.off-trovaci__map svg { display: block; width: 100%; height: 100%; }
