:root{--page-title-display:none;}/* Start custom CSS */#vmr-motion-root a:focus-visible, #vmr-motion-root button:focus-visible { outline: 2px solid var(--vmr-motion-ink); outline-offset: 5px; box-shadow: 0 0 0 4px var(--vmr-motion-paper); }
#vmr-motion-root [id] { scroll-margin-top: 6rem; }
@media(prefers-reduced-motion: reduce) { #vmr-motion-root *, #vmr-motion-root *::before, #vmr-motion-root *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
#vmr-motion-root {
  --vmx-dark: var(--vmr-motion-paper);
  --vmx-light: var(--vmr-motion-ink);
  --vmx-paper: var(--vmr-motion-stone);
  --vmx-gutter: var(--vmr-motion-gutter);
  --vmx-ease: cubic-bezier(.22,.72,.18,1);
  --vmx-header-size: 5.125rem;
}
#vmx-site { visibility: hidden; }
#vmr-motion-root.vmx-admitted #vmx-site,
.elementor-editor-active #vmx-site,
.elementor-editor-preview #vmx-site { visibility: visible; }
.elementor-editor-active #vmx-gate,
.elementor-editor-preview #vmx-gate { display: none !important; }
#vmr-motion-root [id] { scroll-margin-top: calc(var(--vmx-header-size) + 1rem); }
#vmx-header {
  min-height: var(--vmx-header-size);
  background: var(--vmx-dark);
  border-bottom: 1px solid color-mix(in srgb, var(--vmx-light) 22%, transparent);
}
#vmx-header nav a { min-height: 44px; }
#vmr-motion-root #inici {
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  padding: calc(var(--vmx-header-size) + 2rem) var(--vmx-gutter) clamp(2.5rem, 7vh, 6rem);
  background: var(--vmx-dark);
  color: var(--vmx-light);
}
#vmx-hero-photo,
#vmr-motion-root [id^="vmx-frame-"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  z-index: 0;
}
#vmx-hero-photo img,
#vmr-motion-root [id^="vmx-frame-"] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}
#vmx-hero-photo img { object-position: center 57%; }
#vmx-hero-photo::after,
#vmr-motion-root [id^="vmx-frame-"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(25,16,21,.94), rgba(25,16,21,.57) 36%, rgba(25,16,21,.06) 78%);
  pointer-events: none;
}
#vmx-hero-copy {
  position: relative;
  z-index: 1;
  padding: 0;
  width: min(100%, 88rem);
  margin-inline: auto;
}
#vmx-headline {
  font-size: clamp(4rem, 10.3vw, 9.8rem);
  line-height: .88;
  letter-spacing: -.035em;
  color: var(--vmx-light);
  text-wrap: unset;
}
#vmx-headline > span {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.12em;
}
#vmx-headline > span > span { display: block; }
#vmx-hero-bottom {
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: 0;
  margin-top: clamp(1.5rem, 4vh, 3rem);
}
#vmx-hero-bottom p { font-size: clamp(1rem, 1.7vw, 1.25rem); }
#vmx-hero-cta {
  min-height: 3.25rem;
  padding: .9rem 1.35rem;
  border: 1px solid var(--vmx-light);
  color: var(--vmx-light);
  transition: background-color .24s ease, color .24s ease;
}
#vmx-hero-cta:hover { color: var(--vmx-dark); background: var(--vmx-light); text-decoration: none; }
#vmx-site main { background: var(--vmx-paper); }
#vmr-motion-root #marca { background: var(--vmx-paper); }
#vmx-story, #vmx-stage { padding: 0; width: 100%; }
#vmx-story { position: relative; }
#vmx-stage { position: relative; background: var(--vmx-dark); color: var(--vmx-light); }
#vmr-motion-root [id^="vmx-chapter-"] {
  display: grid;
  position: relative;
  align-items: end;
  min-height: 70svh;
  padding: 6rem var(--vmx-gutter) 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
#vmr-motion-root [id^="vmx-copy-"] {
  z-index: 2;
  padding: 0;
  color: var(--vmx-light);
  position: relative;
}
#vmr-motion-root [id^="vmx-copy-"] h2 {
  font-size: clamp(4rem, 7.5vw, 8.5rem);
  line-height: .94;
  max-width: 11ch;
  color: inherit;
}
#vmr-motion-root [id^="vmx-copy-"] p {
  margin-top: 1.25rem;
  max-width: 38ch;
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  color: inherit;
}
#vmx-frame-castell img { object-position: 50% 42%; }
#vmx-frame-parellada img { object-position: 50% 40%; }
#vmx-frame-celler::after {
  background: linear-gradient(90deg, rgba(30,17,27,.94), rgba(30,17,27,.57) 56%, rgba(30,17,27,.46));
}
#vmx-story-bottle {
  display: block;
  position: absolute;
  right: 0;
  bottom: 3.5rem;
  width: 48%;
  height: 69%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}
#vmx-chapters, #vmx-progress { display: none; }
#vmx-story.vmx-sequence { height: 286svh; }
#vmx-story.vmx-sequence #vmx-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
#vmx-story.vmx-sequence [id^="vmx-chapter-"] {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding-bottom: clamp(6.4rem, 13vh, 9rem);
}
#vmx-story.vmx-sequence #vmx-chapters {
  display: flex;
  position: absolute;
  left: var(--vmx-gutter);
  right: var(--vmx-gutter);
  bottom: 1.8rem;
  flex-direction: row;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: 0;
  z-index: 5;
}
#vmx-chapters a { color: var(--vmx-light); min-height: 44px; padding-inline: .125rem; }
#vmx-chapters a[aria-current="step"] { text-decoration: underline; text-underline-offset: .45rem; }
#vmx-story.vmx-sequence #vmx-progress {
  display: block;
  position: absolute;
  z-index: 5;
  left: var(--vmx-gutter);
  right: var(--vmx-gutter);
  bottom: 1.3rem;
  height: 2px;
  padding: 0;
  background: rgba(255,248,236,.38);
}
#vmx-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--vmx-light);
  transform: scaleX(var(--vmx-progress, 0));
  transform-origin: left;
}
#vmr-motion-root #caves { background: var(--vmx-paper); }
#vmx-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin-top: clamp(1.6rem, 5vw, 3.5rem);
  border-bottom: 1px solid color-mix(in srgb, var(--vmx-dark) 24%, transparent);
}
#vmx-choices a {
  justify-content: center;
  min-height: 3.4rem;
  padding: .65rem .5rem;
  color: var(--vmx-dark);
  border-bottom: 2px solid transparent;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
}
#vmx-choices a[aria-selected="true"] { border-color: currentColor; font-weight: 600; }
#vmx-products { padding: 0; }
#vmx-products.vmx-tabs-ready { display: grid; touch-action: pan-y pinch-zoom; }
#vmx-products.vmx-tabs-ready > article { grid-area: 1 / 1; }
#vmx-products > article[hidden] { display: none !important; }
#vmx-products > article {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  min-height: 31rem;
  gap: 1rem;
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  background: var(--vmx-surface);
  color: var(--vmx-dark);
  overflow: clip;
}
#vmx-product-guarda { --vmx-surface: var(--vmr-motion-vine); }
#vmx-product-reserva { --vmx-surface: var(--vmr-motion-gold); }
#vmx-product-rosat { --vmx-surface: var(--vmr-motion-rose); }
#vmx-products article > img { width: 100%; height: clamp(20rem, 38vw, 31rem); object-fit: contain; }
#vmx-products article > div { padding: 0; }
#vmx-products h3 { font-size: clamp(3.2rem, 6.6vw, 7.3rem); line-height: .92; max-width: 9ch; }
#vmx-products p { margin-top: 1.25rem; }
#vmx-site #vmx-closing, #vmx-footer { background: var(--vmx-dark); color: var(--vmx-light); }
#vmx-footer { border-top: 1px solid color-mix(in srgb, var(--vmx-light) 24%, transparent); }

html:has(#vmx-gate[open]) { overflow: hidden; }
#vmx-gate {
  --vmx-modal-dark: var(--vmr-motion-paper, #241722);
  --vmx-modal-paper: var(--vmr-motion-stone, #F4EDE2);
  position: fixed;
  inset: 0;
  width: min(54rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--vmx-modal-dark);
  background: var(--vmx-modal-paper);
  font-family: var(--vmr-motion-body, sans-serif);
  z-index: 10000;
}
#vmx-gate[open] { display: grid; grid-template-columns: .85fr 1.15fr; }
#vmx-gate::backdrop { background: rgba(25,15,24,.96); }
#vmx-gate:not(:modal)[open] { box-shadow: 0 0 0 100vmax rgba(25,15,24,.96); }
.vmx-gate-photo {
  background: var(--vmx-modal-dark) url("https://vilademager.com/wp-content/uploads/2026/11/vilademager-redisseny-castell.webp") center 42% / cover no-repeat;
  min-height: 32rem;
}
.vmx-gate-content { padding: clamp(1.75rem, 5vw, 3.6rem); }
.vmx-gate-logo { display: block; width: 10rem; height: auto; margin-bottom: 2.1rem; }
#vmx-age-title {
  margin: 0 0 .8rem;
  color: inherit;
  font-family: var(--vmr-motion-display, Georgia, serif);
  font-size: clamp(3.35rem, 6vw, 5.25rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.025em;
}
#vmx-age-title:focus { outline: none; }
#vmx-age-note { margin: 0 0 1.6rem; font-size: 1rem; line-height: 1.45; }
#vmx-age-actions { display: grid; gap: .55rem; }
#vmx-age-message { margin: 0; font-size: .9rem; line-height: 1.4; }
#vmx-age-message:not(:empty) { margin-top: 1rem; }
#vmx-age-actions button {
  min-height: 3rem;
  border: 1px solid var(--vmx-modal-dark);
  padding: .6rem 1rem;
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  background: var(--vmx-modal-dark);
  color: var(--vmx-modal-paper);
  cursor: pointer;
}
#vmx-age-actions #vmx-age-no { background: transparent; color: var(--vmx-modal-dark); }
#vmx-age-actions :focus-visible { outline: 2px solid var(--vmx-modal-dark); outline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  #vmr-motion-root.vmx-admitted #vmx-hero-photo img { animation: vmx-open-photo 1.65s var(--vmx-ease) both; }
  #vmr-motion-root.vmx-admitted #vmx-headline > span > span { animation: vmx-open-line 1.1s var(--vmx-ease) .14s both; }
  #vmr-motion-root.vmx-admitted #vmx-headline > span:nth-child(2) > span { animation-delay: .32s; }
  #vmr-motion-root.vmx-admitted #vmx-hero-bottom { animation: vmx-open-detail .75s var(--vmx-ease) .56s both; }
  @keyframes vmx-open-photo { from { transform: scale(1.12); } to { transform: scale(1); } }
  @keyframes vmx-open-line { from { transform: translateY(117%); } to { transform: translateY(0); } }
  @keyframes vmx-open-detail { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1024px) {
  #vmr-motion-root { --vmx-gutter: 2rem; }
}
@media (max-width: 767px) {
  #vmr-motion-root { --vmx-gutter: var(--vmr-motion-gutter-mobile); --vmx-header-size: 4.5rem; }
  #vmr-motion-root #inici { min-height: 91svh; padding-bottom: 2.6rem; }
  #vmx-hero-photo img { object-position: 57% center; }
  #vmx-headline { font-size: clamp(3.35rem, 12.4vw, 5.3rem); line-height: .94; }
  #vmx-hero-bottom { flex-direction: column; align-items: flex-start; }
  #vmx-hero-bottom p { max-width: 31ch; }
  #vmx-story.vmx-sequence { height: 225svh; }
  #vmx-story.vmx-sequence #vmx-stage { height: 90svh; }
  #vmr-motion-root [id^="vmx-chapter-"] { min-height: 65svh; padding-top: 5rem; }
  #vmx-story.vmx-sequence [id^="vmx-chapter-"] { min-height: 0; padding-bottom: 6.5rem; }
  #vmr-motion-root [id^="vmx-copy-"] h2 { font-size: clamp(3.15rem, 12vw, 5.25rem); }
  #vmr-motion-root [id^="vmx-copy-"] p { max-width: 30ch; }
  #vmx-frame-castell img { object-position: 56% 42%; }
  #vmx-frame-celler::after { background: linear-gradient(0deg, rgba(30,17,27,.98) 14%, rgba(30,17,27,.7) 47%, rgba(30,17,27,.36)); }
  #vmx-story-bottle { width: 55%; height: 50%; right: -2%; top: 5rem; bottom: auto; }
  #vmx-story.vmx-sequence #vmx-chapters { justify-content: space-between; gap: .5rem; bottom: 1.55rem; }
  #vmx-chapters a { font-size: .85rem; }
  #vmx-products > article { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 2rem 1.25rem 1rem; }
  #vmx-products h3 { font-size: clamp(2.7rem, 11vw, 4.4rem); max-width: 12ch; }
  #vmx-products p { margin-top: .85rem; }
  #vmx-products article > img { height: 22rem; }
  #vmx-gate[open] { display: block; width: min(28rem, calc(100% - 1.5rem)); }
  .vmx-gate-photo { display: none; }
  .vmx-gate-logo { width: 8rem; margin-bottom: 1.6rem; }
}
@media (max-width: 767px) {
  #vmx-products article > div { min-height: 9.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(#vmr-motion-root) { scroll-behavior: auto !important; }
}/* End custom CSS */