/* VIVES Ceramica — Decorative Ceramic Collections */
#vives-page {
  --vives-accent: #c8222c;
  --vives-dark: #111;
  --vives-gray: #5c5c5c;
  --vives-light: #f5f5f4;
  --vives-border: rgba(17, 17, 17, 0.08);
  --vives-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.vives-section { padding-block: clamp(4.5rem, 8vw, 7rem); }

.vives-section__header { margin-bottom: clamp(2rem, 4vw, 3rem); }

.vives-section__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vives-accent);
  margin-bottom: 0.85rem;
}

.vives-section__title {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 300;
  line-height: 1.15;
}

.vives-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vives-back:hover { color: #fff; }
html[dir="rtl"] .vives-back__arrow { transform: scaleX(-1); display: inline-block; }

.vives-hero {
  position: relative;
  min-height: 88vh;
  margin-top: var(--header-offset, 80px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.vives-hero__image,
.vives-hero__overlay { position: absolute; inset: 0; }
.vives-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.vives-hero__overlay { background: linear-gradient(to top, rgba(8, 8, 8, 0.82), rgba(8, 8, 8, 0.2) 58%); }
.vives-hero__content { position: relative; z-index: 2; color: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.vives-hero__title { font-size: clamp(2.6rem, 6.8vw, 5rem); font-weight: 200; letter-spacing: 0.03em; line-height: 1.05; margin-bottom: 0.9rem; }
.vives-hero__subtitle { font-size: clamp(1rem, 1.95vw, 1.3rem); font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); max-width: 48ch; }

.vives-section--about { background: var(--vives-light); }
.vives-about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.vives-about__media { margin: 0; border: 1px solid var(--vives-border); background: #fff; cursor: zoom-in; overflow: hidden; }
.vives-about__media img { width: 100%; height: clamp(300px, 32vw, 460px); object-fit: cover; }
.vives-about__text p { font-size: clamp(0.95rem, 1.3vw, 1.06rem); line-height: 1.9; color: var(--vives-gray); }

.vives-featured-card {
  background: #fff;
  border: 1px solid var(--vives-border);
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
.vives-featured-card__head { margin-bottom: 0.9rem; }
.vives-featured-card__name { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.vives-featured-card__desc-media,
.vives-featured-card__banner { margin: 0; border: 1px solid var(--vives-border); background: #fff; overflow: hidden; cursor: zoom-in; }
.vives-featured-card__desc-media img,
.vives-featured-card__banner img { width: 100%; display: block; }
.vives-featured-card__desc-media {
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
}
.vives-featured-card__desc-media img {
  height: clamp(420px, 42vw, 620px);
  object-fit: contain;
  padding: clamp(0.35rem, 0.7vw, 0.6rem);
}
.vives-featured-card__desc-media--portrait {
  max-width: min(100%, 520px);
  margin-inline: auto;
}
.vives-featured-card__banner img { height: clamp(300px, 30vw, 420px); object-fit: cover; }
.vives-featured-card__banner--solo img { height: clamp(360px, 36vw, 500px); }

.vives-banner-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 0.9rem; }
.vives-banner-grid__item { margin: 0; border: 1px solid var(--vives-border); overflow: hidden; cursor: zoom-in; background: #fff; }
.vives-banner-grid__item img { width: 100%; height: clamp(340px, 32vw, 480px); object-fit: cover; display: block; }
.vives-banner-grid--tandem {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.vives-banner-grid--tandem .vives-banner-grid__item img {
  height: clamp(130px, 10vw, 170px);
  object-fit: cover;
}

.vives-featured-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.35rem); }

.vives-section--decorative { background: var(--vives-light); }
.vives-decor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.vives-decor-card {
  background: #fff;
  border: 1px solid var(--vives-border);
  transition: transform 0.35s var(--vives-ease), box-shadow 0.35s var(--vives-ease);
}
.vives-decor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(17, 17, 17, 0.09); }
.vives-decor-card__media { margin: 0; border-bottom: 1px solid var(--vives-border); overflow: hidden; cursor: zoom-in; }
.vives-decor-card__media img { width: 100%; height: clamp(240px, 26vw, 360px); object-fit: cover; display: block; }
.vives-decor-card__title { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; text-align: center; padding: 0.85rem 0.7rem 1rem; color: var(--vives-dark); }

.vives-format-card { margin: 0 auto; max-width: min(100%, 580px); border: 1px solid var(--vives-border); background: #fff; cursor: zoom-in; }
.vives-format-card img { width: 100%; height: clamp(380px, 52vw, 680px); object-fit: contain; display: block; }

.vives-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 8, 8, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.vives-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.vives-lightbox__close,
.vives-lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.vives-lightbox__close { top: 1rem; inset-inline-end: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.75rem; line-height: 1; }
.vives-lightbox__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.8rem; }
.vives-lightbox__nav--prev { inset-inline-start: 1rem; }
.vives-lightbox__nav--next { inset-inline-end: 1rem; }
.vives-lightbox__stage { max-width: min(94vw, 1400px); max-height: 88vh; transform: scale(0.97); opacity: 0; transition: transform 0.3s var(--vives-ease), opacity 0.3s ease; }
.vives-lightbox.is-open .vives-lightbox__stage { transform: scale(1); opacity: 1; }
.vives-lightbox__stage img { width: 100%; max-height: 88vh; object-fit: contain; display: block; }

@media (max-width: 1024px) {
  .vives-about { grid-template-columns: 1fr; }
  .vives-decor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .vives-hero { min-height: 100svh; }
  .vives-featured-card__desc-media img { height: clamp(360px, 88vw, 520px); }
  .vives-featured-card__banner img { height: clamp(260px, 68vw, 360px); }
  .vives-featured-card__banner--solo img { height: clamp(280px, 72vw, 390px); }
  .vives-banner-grid__item img { height: clamp(260px, 70vw, 370px); }
  .vives-banner-grid--tandem { grid-template-columns: 1fr; }
  .vives-banner-grid--tandem .vives-banner-grid__item img { height: clamp(210px, 56vw, 290px); }
  .vives-decor-grid { grid-template-columns: 1fr; }
  .vives-decor-card__media img { height: clamp(250px, 70vw, 360px); }
  .vives-lightbox__nav { width: 2.5rem; height: 2.5rem; }
}

/* ---- VIVES redesign polish ---- */
#vives-page {
  background: #fff;
  overflow-x: hidden;
}

#vives-page .container {
  max-width: 1280px;
}

.vives-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.vives-section__header {
  margin-bottom: clamp(2.3rem, 4.5vw, 3.4rem);
  max-width: 64rem;
}

.vives-section__title {
  color: var(--vives-dark);
  letter-spacing: 0.01em;
}

.vives-hero {
  min-height: 92vh;
}

.vives-hero__overlay {
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.22) 58%),
    linear-gradient(to right, rgba(200, 34, 44, 0.12), transparent 40%);
}

.vives-hero__subtitle {
  max-width: 54ch;
  line-height: 1.65;
}

.vives-section--about {
  background: linear-gradient(180deg, #f8f8f7 0%, #f3f3f2 100%);
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.vives-about {
  align-items: stretch;
}

.vives-about__media {
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.1);
}

.vives-about__media img {
  height: clamp(380px, 38vw, 560px);
}

.vives-about__text {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--vives-border);
  border-radius: 4px;
  padding: clamp(1.2rem, 2.3vw, 2rem);
}

.vives-about__text p {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
}

.vives-featured-card {
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.vives-featured-card__name {
  color: var(--vives-dark);
}

.vives-featured-card__desc-media,
.vives-featured-card__banner,
.vives-banner-grid__item,
.vives-decor-card__media,
.vives-format-card {
  border-radius: 3px;
}

.vives-featured-card__desc-media {
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.03);
}

.vives-featured-card__desc-media img {
  height: clamp(470px, 44vw, 680px);
}

.vives-featured-card__desc-media--portrait {
  max-width: min(100%, 600px);
}

.vives-featured-card__banner img {
  height: clamp(340px, 30vw, 470px);
}

.vives-featured-card__banner--solo img {
  height: clamp(400px, 36vw, 560px);
}

.vives-banner-grid {
  margin-top: 1rem;
}

.vives-banner-grid--tandem .vives-banner-grid__item img {
  height: clamp(115px, 9vw, 150px);
  filter: saturate(0.92);
}

.vives-banner-grid--tandem .vives-banner-grid__item:hover img {
  filter: saturate(1);
}

.vives-section--decorative {
  background: #f6f6f5;
}

.vives-decor-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.vives-decor-card__media img {
  height: clamp(280px, 25vw, 390px);
}

.vives-format-card {
  padding: clamp(0.35rem, 0.9vw, 0.65rem);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
}

.vives-format-card img {
  background: #fff;
}

@media (max-width: 1100px) {
  .vives-about {
    grid-template-columns: 1fr;
  }

  .vives-about__media img {
    height: clamp(320px, 54vw, 520px);
  }
}

@media (max-width: 760px) {
  .vives-featured-card__desc-media img {
    height: clamp(380px, 88vw, 560px);
  }

  .vives-featured-card__banner img {
    height: clamp(250px, 62vw, 360px);
  }

  .vives-featured-card__banner--solo img {
    height: clamp(280px, 70vw, 410px);
  }
}
