/**
 * Vorino Home — P01 visual polish (Phase 3C.2 / 3C.3 paper dividers).
 * Desktop master: 01_home_desktop.png (1536×1024).
 * Mobile ≤768px: phone mockup (full-bleed hero + 3 features + location). Desktop locked.
 * Paper dividers: assets/img/home/vorino-paper-divider-{top,bottom}.png (RGBA, aspect preserved).
 */

.vorino-home {
  --vh-olive: var(--vorino-olive-900, #21351a);
  --vh-olive-deep: var(--vorino-olive-950, #182713);
  --vh-cream: var(--vorino-parchment-50, #fff8eb);
  --vh-paper: var(--vorino-parchment-100, #f8edd8);
  --vh-ink: var(--vorino-ink, #30251c);
  --vh-muted: var(--vorino-muted, #6a5b49);
  /* Full-bleed parchment background; light side inset so content is not edge-stuck. */
  --vh-home-width: 100%;
  --vh-home-gutter: clamp(0.85rem, 2.2vw, 1.5rem);
  --vh-divider-bottom-h: calc(100vw * 119 / 1672);
  --vh-paper-texture: url("../img/home/parchment-paper-texture-256.png");
  color: var(--vh-ink);
  font-family: var(--vorino-font-sans, "Segoe UI", sans-serif);
  /* Visible overflow so full-bleed divider + hanging logo / overlapping features are not clipped. */
  overflow: visible;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/*
 * Tile parchment across the whole homepage (and Elementor editor canvas),
 * not only inside the Vorino Home widget height — empty sections below stay textured.
 */
body.home,
body.front-page,
body.elementor-editor-active.home,
body.elementor-editor-active.front-page {
  background-color: var(--vorino-parchment-50, #fff8eb);
  background-image: var(
    --vh-home-bg-image,
    url("../img/home/parchment-paper-texture-256.png")
  );
  background-repeat: var(--vh-home-bg-repeat, repeat);
  background-size: var(--vh-home-bg-size, 256px 256px);
  background-position: var(--vh-home-bg-position, top left);
  background-attachment: scroll;
  min-height: 100vh;
}

body.home .vorino-site-main--elementor,
body.front-page .vorino-site-main--elementor,
body.home .vorino-elementor-canvas,
body.front-page .vorino-elementor-canvas,
body.home .elementor,
body.front-page .elementor,
body.home .elementor-section,
body.front-page .elementor-section,
body.home .elementor-element.e-con,
body.front-page .elementor-element.e-con,
body.home .elementor-widget-wrap,
body.front-page .elementor-widget-wrap,
body.home .elementor-widget-container,
body.front-page .elementor-widget-container {
  background-color: transparent;
}

/* Elementor wrappers must not clip features that overlap the lower divider. */
.elementor-widget-vorino-home,
.elementor-widget-vorino-home > .elementor-widget-container {
  overflow: visible;
}

.vorino-home__wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--vh-home-gutter);
  box-sizing: border-box;
}

/*
 * Continuous parchment body below the hero — background stays edge-to-edge;
 * content uses a modest horizontal gutter only.
 */
.vorino-home__body {
  /* flow-root = BFC so welcome negative margin does not collapse and drag
     the parchment background up over the lower paper divider. */
  display: flow-root;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 1.5rem;
  overflow: visible;
  background-color: var(--vh-cream);
  background-image: var(
    --vh-home-bg-image,
    var(--vh-paper-texture)
  );
  background-repeat: var(--vh-home-bg-repeat, repeat);
  background-size: var(--vh-home-bg-size, 256px 256px);
  background-position: var(--vh-home-bg-position, top center);
}

.vorino-home__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
  flex-shrink: 0;
  color: var(--vh-olive);
}

.vorino-home__olive-mark {
  display: inline-flex;
  line-height: 0;
}

.vorino-home__olive-mark .vorino-home__icon {
  width: 1.85rem;
  height: 1.85rem;
  color: #c4a574;
}

.vorino-home__olive-mark--categories {
  display: inline-flex;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

.vorino-home__categories-head {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  text-align: center;
  /* Keep title above transformed category cards (cards create stacking contexts). */
  isolation: isolate;
}

.vorino-home__categories-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--vorino-font-serif, Georgia, "Times New Roman", serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--vh-olive-deep, #182713);
}

.vorino-home__olive-mark--news {
  flex-shrink: 0;
}

.vorino-home__dev-chip {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(24, 39, 19, 0.55);
  color: #f7f1e4;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid rgba(255, 248, 235, 0.28);
  pointer-events: none;
}

.vorino-home__dev-chip--hero {
  /* Sit below the top paper strip so the chip never covers headline/CTAs. */
  position: absolute;
  top: clamp(3.25rem, 8vw, 5.5rem);
  right: 0.85rem;
  z-index: 2;
}

.vorino-home__dev-chip--muted {
  background: rgba(48, 37, 28, 0.55);
  color: #f7f1e4;
}

.vorino-home__placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  background:
    linear-gradient(135deg, rgba(33, 53, 26, 0.1), rgba(48, 37, 28, 0.06)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 7px,
      rgba(48, 37, 28, 0.035) 7px,
      rgba(48, 37, 28, 0.035) 8px
    ),
    var(--vh-paper);
  color: var(--vh-muted);
  font-size: 0.75rem;
  border: 1px dashed var(--vorino-paper-edge, #dfc9a4);
}

/* ——— Hero ——— */
.vorino-home__hero {
  position: relative;
  z-index: 1;
  /* No isolation — lets the shared header logo paint fully over the hero. */
  min-height: clamp(36rem, 45.1vw, 43.5rem);
  color: #fff;
  overflow: visible;
  background-color: transparent;
  margin: 0;
  padding: 0;
  border: 0;
}

.vorino-home__hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #2a241c;
  background-image:
    linear-gradient(
      102deg,
      rgba(16, 12, 8, 0.78) 0%,
      rgba(16, 12, 8, 0.42) 36%,
      rgba(16, 12, 8, 0.14) 58%,
      rgba(16, 12, 8, 0.08) 100%
    ),
    var(--vorino-home-hero-image, none);
  background-repeat: no-repeat;
  /* Wide 1672×941 composition: bias right so food/interior remain visible. */
  background-position: 62% 42%;
  background-size: cover;
}

.vorino-home__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 70%, rgba(0, 0, 0, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(16, 12, 8, 0.08) 0%, transparent 18%, transparent 78%, rgba(16, 12, 8, 0.12) 100%);
  pointer-events: none;
}

/* Extracted parchment strips — full hero/bleed width, height auto (no vertical stretch). */
.vorino-home__paper-divider {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: none;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: center bottom;
}

/* Device swap: desktop + mobile assets rendered; show one per breakpoint. */
.vorino-home__paper-divider--mobile {
  display: none !important;
}

/* Flip axes (--vh-paper-*-flip-x/y: 1 or -1) from Elementor Paper dividers. */
.vorino-home__paper-divider--top.vorino-home__paper-divider--desktop {
  transform: scaleX(var(--vh-paper-top-flip-x, 1))
    scaleY(var(--vh-paper-top-flip-y, 1));
  transform-origin: center top;
}

.vorino-home__paper-divider--bottom.vorino-home__paper-divider--desktop {
  transform: scaleX(var(--vh-paper-bottom-flip-x, 1))
    scaleY(var(--vh-paper-bottom-flip-y, 1));
  transform-origin: center top;
}

.vorino-home__paper-divider--top.vorino-home__paper-divider--mobile {
  transform: scaleX(var(--vh-mobile-paper-top-flip-x, 1))
    scaleY(var(--vh-mobile-paper-top-flip-y, 1));
  transform-origin: center top;
}

.vorino-home__paper-divider--bottom.vorino-home__paper-divider--mobile {
  transform: scaleX(var(--vh-mobile-paper-bottom-flip-x, 1))
    scaleY(var(--vh-mobile-paper-bottom-flip-y, 1));
  transform-origin: center top;
}

/*
 * Top decorative parchment strip — original asset vorino-paper-divider-top.png.
 * Pre-3C.6 tuck (negative top) assumed an in-flow opaque header band; with the
 * homepage absolute transparent header that tuck pushed the PNG off-screen.
 * top:0 keeps the same PNG/height/texture visible under the transparent nav
 * (opaque CSS header fill stays removed — only this divider provides the paper).
 */
.vorino-home__paper-divider--top {
  top: 0;
  max-width: none;
  display: block;
  z-index: 3;
}

/*
 * Lower torn-paper seam lives on the body (not under an opaque body layer).
 * Anchored to body top, overlapping the hero photo above. Features/village
 * sit above this layer (z-index) and overlap it vertically.
 */
.vorino-home__paper-divider--bottom {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: calc(-1 * var(--vh-divider-bottom-h) * 0.72);
  bottom: auto;
  z-index: 3;
  display: block;
  line-height: 0;
  pointer-events: none;
  object-position: center top;
}

.vorino-home__hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: end;
  /* Extra top padding clears absolute transparent header + hanging logo. */
  padding: clamp(6.75rem, 12vw, 8.75rem) 0 clamp(4.35rem, 8vw, 5.85rem);
  min-height: inherit;
  box-sizing: border-box;
}

.vorino-home__hero-copy {
  max-width: 34rem;
  padding-bottom: 0.35rem;
  position: relative;
  z-index: 2;
}

.vorino-home__hero-title {
  margin: 0.4rem 0 0.85rem;
  font-family: var(--vorino-font-serif, Georgia, serif);
  font-style: var(--vh-hero-title-style, italic);
  font-weight: var(--vh-hero-title-weight, 600);
  font-size: var(--vh-hero-title-size, clamp(2.55rem, 4.6vw, 3.85rem));
  line-height: 1.08;
  letter-spacing: var(--vh-hero-title-tracking, 0.005em);
  color: var(--vh-hero-title-color, #fff);
  text-align: var(--vh-hero-title-align, left);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  transform: translate(var(--vh-hero-title-x, 0px), var(--vh-hero-title-y, 0px));
}

.vorino-home--hero-font-serif .vorino-home__hero-title {
  font-family: var(--vorino-font-serif, Georgia, "Times New Roman", serif);
}
.vorino-home--hero-font-sans .vorino-home__hero-title {
  font-family: var(--vorino-font-sans, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
}
.vorino-home--hero-font-display .vorino-home__hero-title {
  font-family: "EB Garamond", Garamond, "Palatino Linotype", Palatino, Georgia, serif;
}
.vorino-home--hero-font-georgia .vorino-home__hero-title {
  font-family: Georgia, "Times New Roman", Times, serif;
}
.vorino-home--hero-font-palatino .vorino-home__hero-title {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
.vorino-home--hero-font-times .vorino-home__hero-title {
  font-family: "Times New Roman", Times, Georgia, serif;
}
.vorino-home--hero-font-ui-sans .vorino-home__hero-title {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.vorino-home--hero-font-system .vorino-home__hero-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vorino-home--hero-align-center .vorino-home__hero-copy {
  text-align: center;
}
.vorino-home--hero-align-right .vorino-home__hero-copy {
  text-align: right;
}
.vorino-home--hero-align-center .vorino-home__olive-mark {
  justify-content: center;
  margin-inline: auto;
}
.vorino-home--hero-align-right .vorino-home__olive-mark {
  justify-content: flex-end;
  margin-inline-start: auto;
}

/* Mobile-only location strip — hidden on desktop. */
.vorino-home__mobile-location {
  display: none;
}

/* Photo + paper band: hidden by default; shown on mobile / tablet via modifiers. */
.vorino-home__midband {
  display: none;
}

.vorino-home__hero-line {
  display: block;
}

.vorino-home__hero-sub {
  margin: 0 0 1.55rem;
  max-width: 26rem;
  font-family: var(--vorino-font-sans, "Segoe UI", sans-serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 248, 235, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.vorino-home__hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
}

.vorino-home__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--vorino-font-sans, "Segoe UI", sans-serif);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vorino-home__btn:focus-visible {
  outline: 2px solid var(--vorino-focus, #c4a574);
  outline-offset: 3px;
}

.vorino-home__btn .vorino-home__icon {
  width: 1.2rem;
  height: 1.2rem;
}

.vorino-home__btn--primary {
  background: var(--vh-olive);
  color: #f7f1e4;
  box-shadow: 0 8px 20px rgba(24, 39, 19, 0.3);
}

.vorino-home__btn--primary:hover {
  background: var(--vh-olive-deep);
  color: #fff;
}

.vorino-home__btn--secondary {
  background: var(--vh-cream);
  color: var(--vh-olive-deep);
  border-color: rgba(255, 248, 235, 0.55);
}

.vorino-home__btn--secondary:hover {
  background: #fff;
  color: var(--vh-olive-deep);
}

/* Hero CTAs — size/colors from Elementor (CSS vars on the button). */
.vorino-home__btn--hero-cta {
  font-size: var(--vh-cta-fs, 0.94rem);
  background: var(--vh-cta-bg, var(--vh-olive));
  color: var(--vh-cta-fg, #f7f1e4);
  border-color: color-mix(in srgb, var(--vh-cta-fg, #f7f1e4) 35%, transparent);
}

.vorino-home__btn--hero-cta:hover {
  background: var(--vh-cta-bg-hover, var(--vh-cta-bg, var(--vh-olive)));
  color: var(--vh-cta-fg-hover, var(--vh-cta-fg, #f7f1e4));
  filter: var(--vh-cta-hover-filter, brightness(1.08));
}

.vorino-home__btn--hero-cta .vorino-home__icon {
  width: 1.15em;
  height: 1.15em;
  color: inherit;
}

.vorino-home__btn--cream {
  justify-content: center;
  width: 100%;
  background: var(--vh-cream);
  color: var(--vh-olive-deep);
  border-radius: 10px;
  margin-top: 0.35rem;
}

.vorino-home__btn--sm {
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.vorino-home__btn.is-unavailable,
.vorino-home__cta--pending {
  opacity: 0.78;
  cursor: not-allowed;
  box-shadow: none;
}

/* ——— Welcome (icons + village sit ON the lower paper divider) ——— */
.vorino-home__welcome {
  position: relative;
  /* Overlap the torn-paper band only; keep clear space before categories. */
  margin: calc(-1 * var(--vh-divider-bottom-h) * 0.55) 0 0;
  /* Room under icons/village so category cards stay clear (covers Elementor Y nudge). */
  padding: 0 0 3.25rem;
  background: transparent;
  border: 0;
  z-index: 5;
  overflow: visible;
}

.vorino-home__welcome-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 1rem 1.75rem;
  align-items: end;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.vorino-home__welcome-aside {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(18rem, 1.55fr);
  gap: 0.5rem 0.75rem;
  align-items: end;
  min-width: 0;
  min-height: 12rem;
  z-index: 5;
}

.vorino-home__features {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.vorino-home__feature {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: var(--vh-feat-align, center);
  gap: 0.55rem;
  text-align: var(--vh-feat-text-align, center);
  font-size: var(--vh-feat-text, 13px);
  line-height: 1.35;
  color: var(--vh-olive);
  font-weight: 600;
  padding: 0.35rem 0.65rem 0.5rem;
  transform: translate(var(--vh-feat-x, 0px), var(--vh-feat-y, 0px));
  overflow: visible;
}

.vorino-home__feature:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(120, 98, 62, 0.28) 18%,
    rgba(120, 98, 62, 0.28) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.vorino-home__feature-icon {
  display: block;
  width: var(--vh-feat-icon, 46px);
  height: var(--vh-feat-icon, 46px);
  object-fit: contain;
  pointer-events: none;
  transform: translateY(var(--vh-feat-icon-y, 0px));
}

.vorino-home__feature-label {
  display: block;
  max-width: 100%;
  font-family: var(--vorino-font-sans, "Segoe UI", sans-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  transform: translateY(var(--vh-feat-text-y, 0px));
}

.vorino-home__quote {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0.35rem 0.15rem 1.1rem;
  border-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: var(--vh-quote-align, flex-start);
  text-align: var(--vh-quote-text-align, left);
  font-family: var(--vorino-font-serif, Georgia, serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.45;
  color: var(--vh-olive-deep);
  min-width: 0;
  max-width: 18rem;
  transform: translate(var(--vh-quote-x, 0px), var(--vh-quote-y, 0px));
}

.vorino-home__olive-branch {
  display: block;
  width: min(5.75rem, 42%);
  height: auto;
  margin: 0 0 0.15rem;
  pointer-events: none;
  user-select: none;
}

.vorino-home__olive-branch--welcome {
  transform: translate(var(--vh-quote-olive-x, 0px), var(--vh-quote-olive-y, 0px));
}

/* Lower parchment accents — same workflow PNG, positioned like the master. */
.vorino-home__olive-branch--lower-left,
.vorino-home__olive-branch--lower-right,
.vorino-home__olive-branch--photos {
  position: absolute;
  width: min(6.5rem, 18vw);
  margin: 0;
  z-index: 0;
  opacity: 0.92;
}

.vorino-home__olive-branch--lower-left {
  left: clamp(0.25rem, 2vw, 1.25rem);
  top: 12%;
  transform: rotate(-18deg);
}

.vorino-home__olive-branch--lower-right {
  right: clamp(0.25rem, 2vw, 1.25rem);
  top: 28%;
  transform: scaleX(-1) rotate(-12deg);
}

.vorino-home__olive-branch--photos {
  left: 50%;
  bottom: -0.35rem;
  width: min(5.25rem, 14vw);
  transform: translateX(-50%) rotate(8deg);
  opacity: 0.85;
}

.vorino-home__quote p {
  margin: 0;
}

.vorino-home__village {
  position: relative;
  z-index: 5;
  justify-self: var(--vh-village-justify, end);
  align-self: end;
  width: min(100%, var(--vh-village-w, 576px));
  max-width: 100%;
  height: var(--vh-village-h, auto);
  /* No negative bottom margin — that pulled category cards up under the village on the frontend. */
  margin: 0 -0.25rem 0 0;
  line-height: 0;
  pointer-events: none;
  user-select: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  transform: translate(var(--vh-village-x, 0px), var(--vh-village-y, 0px));
}

.vorino-home--hide-village .vorino-home__village {
  display: none !important;
}

.vorino-home__village-picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 0;
}

.vorino-home__village-img {
  display: block;
  width: 100%;
  height: var(--vh-village-h, auto);
  max-width: 100%;
  object-fit: var(--vh-village-fit, contain);
  object-position: var(--vh-village-object, right bottom);
  background: transparent;
}

/* ——— Categories ——— */
.vorino-home__categories {
  position: relative;
  z-index: 1;
  padding: 0.35rem 0 0;
  background: transparent;
  margin: 0;
}

.vorino-home__categories .vorino-home__wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.vorino-home__cat-grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  /* Absorbs upward per-card transforms so cards cannot cover the title. */
  padding: var(--vh-cats-lift-pad, 0px) 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.vorino-home__cat-grid > li {
  min-width: 0;
  display: flex;
  justify-content: var(--vh-cat-justify, stretch);
  align-items: stretch;
}

.vorino-home__cat {
  display: block;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  min-height: var(--vh-cat-h, 9rem);
  aspect-ratio: 5 / 3.35;
  box-shadow: var(--vorino-shadow-soft, 0 8px 24px rgba(24, 39, 19, 0.08));
  background: #3a3228;
  transform: translate(var(--vh-cat-x, 0px), var(--vh-cat-y, 0px));
}

.vorino-home__cat.is-unavailable {
  cursor: not-allowed;
}

.vorino-home__cat-media,
.vorino-home__cat-media img,
.vorino-home__placeholder--cat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  font-size: 0;
}

.vorino-home__placeholder--cat {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(58, 50, 40, 0.55), rgba(30, 26, 20, 0.72)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.03) 8px,
      rgba(255, 255, 255, 0.03) 9px
    );
  font-size: 0.72rem;
}

.vorino-home__cat-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.05) 18%, rgba(20, 16, 10, 0.78) 100%);
}

.vorino-home__cat-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 0.85rem;
  font-family: var(--vorino-font-serif, Georgia, serif);
  font-weight: 600;
  font-size: var(--vh-cat-text, 1.05rem);
  letter-spacing: 0.01em;
  text-align: var(--vh-cat-text-align, left);
  transform: translateY(var(--vh-cat-text-y, 0px));
}

.vorino-home__cat-arrow {
  opacity: 0.9;
  flex-shrink: 0;
}

/* ——— Lower trio ——— */
.vorino-home__lower {
  position: relative;
  background: transparent;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.vorino-home__lower-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem 1.35rem;
  align-items: start;
}

.vorino-home__lower-inner.is-two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.vorino-home__story,
.vorino-home__photos,
.vorino-home__news {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.vorino-home__story {
  justify-self: var(--vh-story-justify, stretch);
  max-width: var(--vh-story-w, none);
  text-align: var(--vh-story-text-align, left);
  transform: translate(var(--vh-story-x, 0px), var(--vh-story-y, 0px));
}

.vorino-home__photos {
  justify-self: var(--vh-photos-justify, center);
  max-width: var(--vh-photos-w, none);
  text-align: var(--vh-photos-text-align, center);
  transform: translate(var(--vh-photos-x, 0px), var(--vh-photos-y, 0px));
  align-items: center;
  justify-content: center;
  min-height: 15rem;
}

.vorino-home__news {
  justify-self: var(--vh-news-justify, stretch);
  max-width: var(--vh-news-w, none);
  text-align: var(--vh-news-text-align, left);
  transform: translate(var(--vh-news-x, 0px), var(--vh-news-y, 0px));
}

.vorino-home__section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-width: 0;
}

.vorino-home__section-head h2 {
  margin: 0;
  font-family: var(--vorino-font-serif, Georgia, serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--vh-olive-deep);
}

.vorino-home__section-head--light h2 {
  color: var(--vh-cream);
}

.vorino-home__section-head--light .vorino-home__icon {
  color: var(--vh-cream);
}

.vorino-home__story-text {
  margin: 0 0 1rem;
  color: var(--vh-muted);
  font-family: var(--vorino-font-sans, "Segoe UI", sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Center collage: single Polaroid (frame/rotation/shadow from Elementor). */
.vorino-home__photos-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Extra top padding clears the tape-strip ::before so it is not clipped. */
  padding-top: 0.75rem;
  width: min(100%, var(--vh-photos-w, 22rem));
  margin: 0 auto;
}

.vorino-home__polaroid {
  margin: 0;
  /* Top/sides = frame width; bottom = 2.2× gives Polaroid caption-space. */
  padding: var(--vh-polaroid-bw, 10px) var(--vh-polaroid-bw, 10px) calc(var(--vh-polaroid-bw, 10px) * 2.2);
  background: var(--vh-polaroid-frame, #fffdf8);
  box-shadow: var(--vh-polaroid-shadow, 0 14px 32px rgba(48, 37, 28, 0.18));
  border: 1px solid var(--vh-polaroid-bdr-color, transparent);
  position: relative;
  box-sizing: border-box;
}

.vorino-home__polaroid--single {
  width: 100%;
  max-width: var(--vh-photos-w, 22rem);
  transform: rotate(var(--vh-photo-rot, -5deg));
}

.vorino-home__polaroid::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 50%;
  width: 3.4rem;
  height: 1rem;
  transform: translateX(-50%) rotate(1deg);
  background: rgba(244, 228, 180, 0.75);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.vorino-home__polaroid img,
.vorino-home__placeholder--polaroid {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
  border: 0;
}

.vorino-home__section-head-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.vorino-home__section-head-title h2 {
  margin: 0;
}

.vorino-home__news-head {
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.vorino-home__news-all {
  font-size: 0.85rem;
  color: var(--vh-olive);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vorino-home__news-all.is-unavailable {
  color: var(--vh-muted);
  text-decoration: none;
  opacity: 0.75;
  cursor: not-allowed;
}

.vorino-home__news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.vorino-home__news-item a,
.vorino-home__news-item.is-placeholder {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.vorino-home__news-thumb img,
.vorino-home__placeholder--thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 0;
}

.vorino-home__news-item strong {
  display: block;
  font-family: var(--vorino-font-serif, Georgia, serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--vh-olive-deep);
}

.vorino-home__news-item em {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--vorino-font-sans, "Segoe UI", sans-serif);
  font-style: normal;
  font-size: 0.76rem;
  color: var(--vh-muted);
}

/* ——— Responsive PROVISIONAL ——— */
@media (max-width: 1200px) {
  .vorino-home__cat-grid {
    gap: 0.55rem;
  }

  .vorino-home__cat-label {
    font-size: 0.88rem;
    padding: 0.7rem 0.7rem;
  }
}

@media (max-width: 1024px) {
  .vorino-home__hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem 1.25rem;
    padding: clamp(3.6rem, 7.7vw, 5rem) 0 clamp(3.3rem, 6.6vw, 4.7rem);
  }

  .vorino-home__welcome-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: start;
  }

  .vorino-home__welcome-aside {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 1.1fr);
  }

  .vorino-home__village {
    width: min(100%, var(--vh-village-w, 448px));
  }

  .vorino-home__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vorino-home__cat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
  }

  .vorino-home__cat-grid > li {
    min-width: 9.5rem;
    scroll-snap-align: start;
  }

  .vorino-home__lower-inner {
    grid-template-columns: 1fr 1fr;
  }

  .vorino-home__news {
    grid-column: 1 / -1;
  }
}

/*
 * Mobile home mockup:
 *  - phone portrait / small widths ≤768px
 *  - OR short phone landscape (≤926px wide and ≤560px tall)
 * Real tablets in landscape are taller than 560px, so they stay out.
 */
@media (max-width: 768px), (max-width: 926px) and (orientation: landscape) and (max-height: 560px) {
  /* ——— Mobile home mockup ——— */

  /*
   * Papers / 100vw full-bleeds must not create a horizontal pan into white.
   * clip avoids a scroll container that fights vertical touch scrolling.
   */
  html:has(body.home),
  html:has(body.front-page),
  body.home,
  body.front-page {
    overflow-x: clip;
    max-width: 100%;
  }

  body.home .vorino-site-main,
  body.front-page .vorino-site-main,
  body.home .elementor,
  body.front-page .elementor {
    overflow-x: clip;
    max-width: 100%;
  }

  /*
   * Fill the parchment edge-to-edge on mobile (no side gutters / short tiles).
   * Cover mode vars come from Elementor; fall back to cover so the bg always fills.
   */
  html:has(body.home),
  html:has(body.front-page) {
    min-height: 100%;
    background-color: var(--vorino-parchment-50, #fff8eb);
  }

  body.home,
  body.front-page,
  body.elementor-editor-active.home,
  body.elementor-editor-active.front-page {
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    background-color: var(--vorino-parchment-50, #fff8eb);
    background-image: var(
      --vh-home-bg-image,
      url("../img/home/parchment-paper-texture-256.png")
    );
    background-repeat: var(--vh-home-bg-repeat, no-repeat);
    background-size: var(--vh-home-bg-size, cover);
    background-position: var(--vh-home-bg-position, center top);
    background-attachment: scroll;
  }

  body.home #page,
  body.front-page #page,
  body.home .site,
  body.front-page .site,
  body.home .vorino-site,
  body.front-page .vorino-site,
  body.home .vorino-site-main,
  body.front-page .vorino-site-main,
  body.home .vorino-site-main--elementor,
  body.front-page .vorino-site-main--elementor,
  body.home .vorino-elementor-canvas,
  body.front-page .vorino-elementor-canvas,
  body.home .elementor,
  body.front-page .elementor {
    background-color: transparent !important;
    background-image: none !important;
    width: 100%;
    max-width: none;
  }

  .vorino-home,
  .vorino-home__body {
    background-color: transparent;
    background-image: none;
    width: 100%;
    max-width: none;
  }

  /*
   * Keep the torn-paper seam overlapping the hero photo (not below it).
   * Flatten hero/body stacking contexts so paper (z≈3) can paint over the
   * photo while CTAs/copy (z≈6) still sit above the paper — only the buttons
   * needed to be above the divider, not the whole hero.
   */
  .vorino-home--mobile-fullbleed .vorino-home__hero {
    min-height: var(--vh-mobile-hero-min, 72vh);
    overflow: visible;
    z-index: auto;
  }

  .vorino-home--mobile-fullbleed .vorino-home__body {
    z-index: auto;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-media {
    background-position: center center;
    background-size: cover;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(16, 12, 8, var(--vh-mobile-hero-overlay, 0.48));
    pointer-events: none;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    grid-template-columns: none;
    min-height: inherit;
    padding: clamp(5.5rem, 18vw, 6.5rem) 1rem clamp(2.25rem, 8vw, 3.25rem);
    gap: 0;
    text-align: center;
    /* Same layer as CTAs so title/sub/buttons clear the overlapping paper. */
    z-index: var(--vh-mobile-cta-z, 6);
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-copy {
    position: relative;
    z-index: var(--vh-mobile-cta-z, 6);
    max-width: 22rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: var(--vh-mobile-hero-title-align, center);
  }

  .vorino-home--mobile-fullbleed .vorino-home__olive-mark {
    justify-content: center;
    margin-inline: auto;
  }

  .vorino-home--mobile-hero-align-left.vorino-home--mobile-fullbleed .vorino-home__olive-mark {
    justify-content: flex-start;
    margin-inline: 0;
  }

  .vorino-home--mobile-hero-align-right.vorino-home--mobile-fullbleed .vorino-home__olive-mark {
    justify-content: flex-end;
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-title {
    font-size: var(--vh-mobile-hero-title-size, clamp(1.9rem, 8vw, 2.35rem));
    transform: translate(var(--vh-mobile-hero-title-x, 0px), var(--vh-mobile-hero-title-y, 0px));
    text-align: var(--vh-mobile-hero-title-align, center);
    color: var(--vh-mobile-hero-title-color, var(--vh-hero-title-color, #fff));
    letter-spacing: var(--vh-mobile-hero-title-tracking, var(--vh-hero-title-tracking, 0.005em));
    font-weight: var(--vh-mobile-hero-title-weight, var(--vh-hero-title-weight, 600));
    font-style: var(--vh-mobile-hero-title-style, var(--vh-hero-title-style, italic));
  }

  .vorino-home--mobile-hero-font-serif .vorino-home__hero-title {
    font-family: var(--vorino-font-serif, Georgia, "Times New Roman", serif);
  }
  .vorino-home--mobile-hero-font-sans .vorino-home__hero-title {
    font-family: var(--vorino-font-sans, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  }
  .vorino-home--mobile-hero-font-display .vorino-home__hero-title {
    font-family: "EB Garamond", Garamond, "Palatino Linotype", Palatino, Georgia, serif;
  }
  .vorino-home--mobile-hero-font-georgia .vorino-home__hero-title {
    font-family: Georgia, "Times New Roman", Times, serif;
  }
  .vorino-home--mobile-hero-font-palatino .vorino-home__hero-title {
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  }
  .vorino-home--mobile-hero-font-times .vorino-home__hero-title {
    font-family: "Times New Roman", Times, Georgia, serif;
  }
  .vorino-home--mobile-hero-font-ui-sans .vorino-home__hero-title {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  .vorino-home--mobile-hero-font-system .vorino-home__hero-title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 18rem;
    text-align: var(--vh-mobile-hero-title-align, center);
    font-size: var(--vh-mobile-hero-sub-size, 0.94rem);
    color: var(--vh-mobile-hero-sub-color, rgba(255, 248, 235, 0.94));
    transform: translate(
      var(--vh-mobile-hero-sub-x, 0px),
      var(--vh-mobile-hero-sub-y, 0px)
    );
  }

  .vorino-home--mobile-hero-align-left.vorino-home--mobile-fullbleed .vorino-home__hero-sub {
    margin-left: 0;
    margin-right: auto;
  }

  .vorino-home--mobile-hero-align-right.vorino-home--mobile-fullbleed .vorino-home__hero-sub {
    margin-left: auto;
    margin-right: 0;
  }

  /* Paper dividers — device image swap + show/hide, scale, offset. */
  .vorino-home__paper-divider--desktop {
    display: none !important;
  }

  .vorino-home__paper-divider--mobile {
    display: block !important;
  }

  .vorino-home--mobile-hide-paper-top .vorino-home__paper-divider--top {
    display: none !important;
  }

  .vorino-home--mobile-hide-paper-bottom .vorino-home__paper-divider--bottom {
    display: none !important;
  }

  /*
   * Center with left + negative margin — NOT translateX(-50%).
   * Transform-based centering leaves the pre-transform box overflowing to the
   * right, which makes mobile pages horizontally draggable into white space.
   */
  .vorino-home__paper-divider--top.vorino-home__paper-divider--mobile {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    height: var(--vh-mobile-paper-top-h, auto);
    object-fit: var(--vh-mobile-paper-top-fit, contain);
    transform: translateY(var(--vh-mobile-paper-top-y, 0px))
      scaleX(var(--vh-mobile-paper-top-flip-x, 1))
      scaleY(
        calc(
          var(--vh-mobile-paper-top-scale, 1) *
            var(--vh-mobile-paper-top-flip-y, 1)
        )
      );
    transform-origin: center top;
  }

  .vorino-home__paper-divider--bottom.vorino-home__paper-divider--mobile {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    height: var(--vh-mobile-paper-bottom-h, auto);
    object-fit: var(--vh-mobile-paper-bottom-fit, contain);
    /* Stay under CTAs (z≈6) but above the hero photo. */
    z-index: 4;
    /* Default tuck overlaps the hero; Elementor offset Y nudges from there. */
    top: calc(-1 * var(--vh-divider-bottom-h) * 0.72);
    transform: translateY(var(--vh-mobile-paper-bottom-y, 0px))
      scaleX(var(--vh-mobile-paper-bottom-flip-x, 1))
      scaleY(
        calc(
          var(--vh-mobile-paper-bottom-scale, 1) *
            var(--vh-mobile-paper-bottom-flip-y, 1)
        )
      );
    transform-origin: center top;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-ctas {
    position: relative;
    z-index: var(--vh-mobile-cta-z, 6);
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 17.5rem;
    margin: 0 auto;
    transform: translate(
      var(--vh-mobile-cta-x, 0px),
      var(--vh-mobile-cta-y, 0px)
    );
  }

  .vorino-home--mobile-fullbleed .vorino-home__btn--hero-cta {
    justify-content: center;
    width: 100%;
    padding: var(--vh-mobile-cta-pad-y, 0.72rem) var(--vh-mobile-cta-pad-x, 1.2rem);
    min-height: var(--vh-mobile-cta-min-h, 0px);
  }

  .vorino-home--mobile-fullbleed .vorino-home__btn--primary.vorino-home__btn--hero-cta {
    font-size: var(--vh-mobile-cta-menu-fs, 14px);
    background: var(--vh-mobile-cta-menu-bg, var(--vh-cta-bg, var(--vh-olive)));
    color: var(--vh-mobile-cta-menu-fg, var(--vh-cta-fg, #f7f1e4));
    border-color: color-mix(
      in srgb,
      var(--vh-mobile-cta-menu-fg, var(--vh-cta-fg, #f7f1e4)) 35%,
      transparent
    );
  }

  .vorino-home--mobile-fullbleed .vorino-home__btn--primary.vorino-home__btn--hero-cta:hover {
    background: var(
      --vh-mobile-cta-menu-bg-hover,
      var(--vh-cta-bg-hover, var(--vh-mobile-cta-menu-bg, var(--vh-cta-bg, var(--vh-olive))))
    );
    color: var(
      --vh-mobile-cta-menu-fg-hover,
      var(--vh-cta-fg-hover, var(--vh-mobile-cta-menu-fg, var(--vh-cta-fg, #f7f1e4)))
    );
    filter: var(--vh-mobile-cta-hover-filter, var(--vh-cta-hover-filter, brightness(1.08)));
  }

  .vorino-home--mobile-fullbleed .vorino-home__btn--secondary.vorino-home__btn--hero-cta {
    font-size: var(--vh-mobile-cta-book-fs, 14px);
    background: var(--vh-mobile-cta-book-bg, var(--vh-cta-bg, var(--vh-cream)));
    color: var(--vh-mobile-cta-book-fg, var(--vh-cta-fg, var(--vh-olive-deep)));
    border-color: color-mix(
      in srgb,
      var(--vh-mobile-cta-book-fg, var(--vh-cta-fg, var(--vh-olive-deep))) 35%,
      transparent
    );
  }

  .vorino-home--mobile-fullbleed .vorino-home__btn--secondary.vorino-home__btn--hero-cta:hover {
    background: var(
      --vh-mobile-cta-book-bg-hover,
      var(--vh-cta-bg-hover, var(--vh-mobile-cta-book-bg, var(--vh-cta-bg, var(--vh-cream))))
    );
    color: var(
      --vh-mobile-cta-book-fg-hover,
      var(--vh-cta-fg-hover, var(--vh-mobile-cta-book-fg, var(--vh-cta-fg, var(--vh-olive-deep))))
    );
    filter: var(--vh-mobile-cta-hover-filter, var(--vh-cta-hover-filter, brightness(1.08)));
  }

  .vorino-home--mobile-hide-plate .vorino-home__hero-visual,
  .vorino-home--mobile-hide-plate .vorino-home__hero-plate {
    display: none !important;
  }

  .vorino-home__welcome {
    margin-top: calc(-1 * var(--vh-divider-bottom-h) * 0.35);
    padding-bottom: 1.75rem;
  }

  .vorino-home__welcome-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .vorino-home__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    transform: translateY(var(--vh-mobile-feat-y, 0px));
    padding: 0.5rem 0 0.25rem;
  }

  .vorino-home--mobile-feat-2 .vorino-home__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vorino-home--mobile-feat-4 .vorino-home__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vorino-home--mobile-feat-2 .vorino-home__feature:nth-child(n + 3),
  .vorino-home--mobile-feat-3 .vorino-home__feature:nth-child(n + 4) {
    display: none;
  }

  .vorino-home__feature {
    padding: 0.25rem 0.35rem;
    --vh-feat-icon: var(--vh-mobile-feat-icon, 40px);
    --vh-feat-text: var(--vh-mobile-feat-text, 12px);
  }

  /* Default: no feature separators on mobile unless explicitly enabled. */
  .vorino-home__feature::after {
    display: none;
  }

  .vorino-home--mobile-feat-dividers .vorino-home__feature:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    top: var(--vh-mobile-feat-div-top, 12%);
    right: 0;
    bottom: var(--vh-mobile-feat-div-bottom, 18%);
    width: var(--vh-mobile-feat-div-w, 1px);
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--vh-mobile-feat-div-color, rgba(120, 98, 62, 0.35)) 18%,
      var(--vh-mobile-feat-div-color, rgba(120, 98, 62, 0.35)) 82%,
      transparent 100%
    );
    pointer-events: none;
  }

  .vorino-home--mobile-hide-quote .vorino-home__quote {
    display: none !important;
  }

  .vorino-home--mobile-hide-village .vorino-home__village {
    display: none !important;
  }

  .vorino-home--mobile-hide-quote.vorino-home--mobile-hide-village .vorino-home__welcome-aside {
    display: none;
  }

  /* Village — mobile size/position; image swap via <picture> source (one img only). */
  .vorino-home__village {
    justify-self: var(--vh-mobile-village-justify, center);
    width: min(100%, var(--vh-mobile-village-w, 320px));
    max-width: 100%;
    height: var(--vh-mobile-village-h, auto);
    margin-inline: auto;
    overflow: hidden;
    transform: translate(
      var(--vh-mobile-village-x, 0px),
      var(--vh-mobile-village-y, 0px)
    );
  }

  .vorino-home__village-img {
    height: var(--vh-mobile-village-h, auto);
    max-height: 100%;
    object-fit: var(--vh-mobile-village-fit, contain);
    object-position: var(--vh-mobile-village-object, center bottom);
  }

  /* When quote is hidden, aside is village-only — single column, no leftover grid gap. */
  .vorino-home--mobile-hide-quote .vorino-home__welcome-aside {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    justify-items: center;
  }

  .vorino-home--mobile-show-location .vorino-home__mobile-location {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding: 0 0 0.5rem;
  }

  /*
   * Welcome uses z-index:5. Midband sits above it.
   * Break out of Elementor column padding so photo + tears are edge-to-edge.
   * Mobile only when .vorino-home--midband-mobile is set.
   */
  .vorino-home--midband-mobile .vorino-home__midband {
    display: block;
    position: relative;
    z-index: 6;
    /* 100% (not 100vw) — avoids classic horizontal overflow from vw + scrollbar. */
    width: 100%;
    max-width: 100%;
    margin: 0.35rem 0 0.75rem;
    margin-left: 0;
    padding: 0;
    overflow-x: clip;
    overflow-y: visible;
    isolation: isolate;
  }

  .vorino-home--midband-mobile .vorino-home__midband-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    overflow-y: visible;
  }

  .vorino-home--midband-mobile .vorino-home__midband-media {
    position: relative;
    z-index: 1;
    width: 100%;
    height: var(--vh-midband-h, 220px);
    min-height: 8rem;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background: #3a3228;
  }

  .vorino-home--midband-mobile .vorino-home__midband-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--vh-midband-fit, cover);
    object-position: center center;
  }

  /*
   * Full-bleed edge-to-edge papers. Do NOT use left:50% + negative margin —
   * if that margin calc fails, the strip starts mid-screen and spills right
   * (horizontal pan into parchment). Width/X Elementor nudges are portrait-unsafe.
   */
  .vorino-home--midband-mobile .vorino-home__midband-paper {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 45%;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: fill;
    object-position: center;
    transform-origin: center center;
  }

  .vorino-home--midband-mobile .vorino-home__midband-paper--top {
    top: var(--vh-midband-paper-top-y, 0px);
    bottom: auto;
    object-position: center top;
    transform: scaleX(var(--vh-midband-paper-top-flip-x, 1))
      scaleY(var(--vh-midband-paper-top-flip-y, 1));
  }

  .vorino-home--midband-mobile .vorino-home__midband-paper--bottom {
    top: auto;
    bottom: calc(var(--vh-midband-paper-bot-y, 0px) * -1);
    object-position: center bottom;
    transform: scaleX(var(--vh-midband-paper-bot-flip-x, 1))
      scaleY(var(--vh-midband-paper-bot-flip-y, 1));
  }

  .vorino-home__mobile-location-media {
    margin: 0;
    width: var(--vh-mobile-loc-w, 100%);
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    justify-self: center;
    transform: translate(var(--vh-mobile-loc-x, 0px), var(--vh-mobile-loc-y, 0px));
  }

  .vorino-home__mobile-location-img {
    display: block;
    width: 100%;
    height: var(--vh-mobile-loc-h, auto);
    aspect-ratio: var(--vh-mobile-loc-ar, 16 / 9);
    object-fit: cover;
  }

  .vorino-home__mobile-location-text {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    font-family: var(--vorino-font-sans, "Segoe UI", sans-serif);
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--vh-olive-deep);
    text-align: left;
  }

  .vorino-home__mobile-location-text a {
    color: inherit;
    text-decoration: none;
  }

  .vorino-home__mobile-location-text a:hover,
  .vorino-home__mobile-location-text a:focus-visible {
    text-decoration: underline;
  }

  .vorino-home__mobile-location-pin {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--vh-olive);
  }

  .vorino-home__photos-stack {
    width: min(100%, 18rem);
    margin-inline: auto;
  }

  .vorino-home__categories {
    isolation: isolate;
    transform: translate(
      var(--vh-mobile-cats-x, 0px),
      var(--vh-mobile-cats-y, 0px)
    );
  }

  .vorino-home__categories-head {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.15rem 0.5rem 0.35rem;
    background: transparent;
  }

  .vorino-home__categories-title {
    font-size: clamp(1.45rem, 6.5vw, 1.75rem);
  }

  .vorino-home__story {
    transform: translate(
      var(--vh-mobile-story-x, 0px),
      var(--vh-mobile-story-y, 0px)
    );
  }

  .vorino-home__photos {
    transform: translate(
      var(--vh-mobile-photos-x, 0px),
      var(--vh-mobile-photos-y, 0px)
    );
  }

  .vorino-home__news {
    transform: translate(
      var(--vh-mobile-news-x, 0px),
      var(--vh-mobile-news-y, 0px)
    );
  }

  .vorino-home__cat-grid {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin-top: 0;
    /* Mobile uses translateX-only on cards; no lift pad needed. */
    padding-top: 0;
  }

  .vorino-home__cat-grid > li {
    min-width: 0;
  }

  .vorino-home__cat {
    min-height: 8.5rem;
    aspect-ratio: auto;
    /*
     * Per-card offset_y was pulling cards up over the section title.
     * On mobile keep horizontal nudges only; use section Y for the block.
     */
    transform: translateX(var(--vh-cat-x, 0px));
  }

  .vorino-home__lower-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vorino-home__news {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .vorino-home--mobile-fullbleed .vorino-home__hero-ctas {
    max-width: none;
  }

  .vorino-home__btn {
    justify-content: center;
  }
}

/* Front-page header breathing room (homepage-scoped) */
body.home .vorino-header__main,
body.front-page .vorino-header__main {
  gap: 0.75rem 1rem;
}

/*
 * Clear hanging Customizer logo so H1 / CTAs are not covered (P01 master).
 * Home wrap (1280) is wider than header shell wrap (1180); add half-delta so
 * inset aligns to the hanging sign’s right edge rather than the home column.
 */
body.home.wp-custom-logo .vorino-home__hero-copy,
body.front-page.wp-custom-logo .vorino-home__hero-copy {
  /* Clear hanging logo; home wrap now matches shell width so no half-delta needed. */
  padding-inline-start: calc(var(--vorino-logo-w-desktop, 152px) + 1.1rem);
}

body.home.wp-custom-logo .vorino-home__dev-chip--hero,
body.front-page.wp-custom-logo .vorino-home__dev-chip--hero {
  left: auto;
  right: 0.85rem;
}

@media (max-width: 1024px) {
  body.home.wp-custom-logo .vorino-home__hero-copy,
  body.front-page.wp-custom-logo .vorino-home__hero-copy {
    padding-inline-start: calc(clamp(5.75rem, 19vw, 10.5rem) + 0.65rem);
  }
}

/*
 * Tablet midband — Elementor tablet range is 768–1024px (preview wrapper is 768px).
 * At 768px mobile midband rules may also match; these declarations come later and win
 * when .vorino-home--midband-tablet is present.
 */
@media (min-width: 768px) and (max-width: 1024px) {
  .vorino-home--midband-tablet .vorino-home__midband {
    display: block;
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0 1rem;
    margin-left: 0;
    padding: 0;
    overflow: visible;
    isolation: isolate;
  }

  .vorino-home--midband-tablet .vorino-home__midband-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .vorino-home--midband-tablet .vorino-home__midband-media {
    position: relative;
    z-index: 1;
    width: 100%;
    height: var(--vh-midband-h-tablet, 360px);
    min-height: 10rem;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background: #3a3228;
  }

  .vorino-home--midband-tablet .vorino-home__midband-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--vh-midband-fit-tablet, cover);
    object-position: center center;
  }

  .vorino-home--midband-tablet .vorino-home__midband-paper {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 42%;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: fill;
    object-position: center;
    transform-origin: center center;
  }

  .vorino-home--midband-tablet .vorino-home__midband-paper--top {
    top: var(--vh-midband-paper-top-y-tablet, 0px);
    bottom: auto;
    object-position: center top;
    transform: scaleX(var(--vh-midband-paper-top-flip-x, 1))
      scaleY(var(--vh-midband-paper-top-flip-y, 1));
  }

  .vorino-home--midband-tablet .vorino-home__midband-paper--bottom {
    top: auto;
    bottom: calc(var(--vh-midband-paper-bot-y-tablet, 0px) * -1);
    object-position: center bottom;
    transform: scaleX(var(--vh-midband-paper-bot-flip-x, 1))
      scaleY(var(--vh-midband-paper-bot-flip-y, 1));
  }
}

@media (max-width: 768px), (max-width: 926px) and (orientation: landscape) and (max-height: 560px) {
  body.home.wp-custom-logo .vorino-home__hero-copy,
  body.front-page.wp-custom-logo .vorino-home__hero-copy {
    /* Centered mockup title — logo hangs above, no side clear. */
    padding-inline-start: 0;
    padding-top: 0;
  }

  body.home.wp-custom-logo .vorino-home--mobile-fullbleed .vorino-home__hero-inner,
  body.front-page.wp-custom-logo .vorino-home--mobile-fullbleed .vorino-home__hero-inner {
    padding-top: clamp(6.25rem, 22vw, 7.5rem);
  }
}

/*
 * Phone landscape only. Short height excludes tablets (iPad landscape ≈768px tall).
 * Portrait mobile, tablet portrait, and desktop are unchanged.
 * Also re-locks midband papers so width/X Elementor values cannot spill sideways.
 */
@media (max-width: 926px) and (orientation: landscape) and (max-height: 560px) {
  html:has(body.home),
  html:has(body.front-page),
  body.home,
  body.front-page {
    overflow-x: clip;
    max-width: 100%;
  }

  body.home .vorino-site-main,
  body.front-page .vorino-site-main,
  body.home .elementor,
  body.front-page .elementor,
  body.home .vorino-home,
  body.front-page .vorino-home {
    overflow-x: clip;
    max-width: 100%;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero {
    min-height: min(48vh, 16.5rem);
    max-height: 68vh;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-inner {
    padding-top: clamp(2.75rem, 12vh, 3.75rem);
    padding-bottom: clamp(0.85rem, 4vh, 1.5rem);
    padding-inline: 1.25rem;
  }

  body.home.wp-custom-logo .vorino-home--mobile-fullbleed .vorino-home__hero-inner,
  body.front-page.wp-custom-logo .vorino-home--mobile-fullbleed .vorino-home__hero-inner {
    padding-top: clamp(3rem, 14vh, 4rem);
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-copy {
    max-width: min(28rem, 70vw);
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-title {
    font-size: clamp(1.35rem, 3.8vw, 1.75rem);
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-sub {
    max-width: min(26rem, 70vw);
    font-size: clamp(0.82rem, 2.2vw, 0.95rem);
    margin-bottom: 0.85rem;
  }

  .vorino-home--mobile-fullbleed .vorino-home__hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: min(30rem, 92vw);
    gap: 0.5rem 0.7rem;
  }

  .vorino-home--mobile-fullbleed .vorino-home__btn--hero-cta {
    width: auto;
    min-width: 9rem;
    flex: 1 1 auto;
  }

  .vorino-home__paper-divider--top.vorino-home__paper-divider--mobile,
  .vorino-home__paper-divider--bottom.vorino-home__paper-divider--mobile {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .vorino-home__welcome {
    padding-bottom: 1rem;
  }

  .vorino-home__features {
    gap: 0.25rem;
    padding: 0.25rem 0 0.15rem;
  }

  .vorino-home__feature {
    padding: 0.15rem 0.3rem;
    --vh-feat-icon: clamp(28px, 6vh, 36px);
    --vh-feat-text: clamp(11px, 2.4vw, 12px);
  }

  .vorino-home__village {
    width: min(100%, 14rem);
  }

  .vorino-home--midband-mobile .vorino-home__midband,
  .vorino-home--midband-tablet .vorino-home__midband {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.25rem 0 0.5rem;
    margin-left: 0;
    overflow-x: clip;
  }

  .vorino-home--midband-mobile .vorino-home__midband-frame,
  .vorino-home--midband-tablet .vorino-home__midband-frame {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .vorino-home--midband-mobile .vorino-home__midband-media,
  .vorino-home--midband-tablet .vorino-home__midband-media {
    height: min(var(--vh-midband-h, 160px), 28vh);
    min-height: 5rem;
  }

  .vorino-home--midband-mobile .vorino-home__midband-paper,
  .vorino-home--midband-tablet .vorino-home__midband-paper {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .vorino-home__categories-title {
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  }

  .vorino-home__cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .vorino-home__cat {
    min-height: 6.5rem;
  }

  .vorino-home__photos-stack {
    width: min(100%, 14rem);
  }

  .vorino-home__lower-inner {
    gap: 1.35rem;
  }
}
