/**
 * Osório HP showcase (acf/menin-osorio-hp-showcase).
 * Layout aligned with HO experiences mockup: title rule, L-corners on photo, CTA bottom-aligned.
 */

.block-osorio-hp-showcase {
  width: 100%;
  overflow: hidden;
}

.osorio-hp-showcase__inner {
  padding: 150px 0 0;
}


.osorio-hp-showcase__phrase {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.0625rem, 1.9vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: 0;
  color: #ad644e;
}

.osorio-hp-showcase__phrase:last-of-type {
  margin-bottom: 0;
}


.block-osorio-hp-showcase .osorio-historia__accent-text{
  margin-top: 50px;
  margin-left: 107px;
  padding-left: 12px;
}

/* Description: top-left L-corner (same as enologia / onde comprar), alinhado à esquerda */
.osorio-hp-showcase__description-wrap {
  position: relative;
  margin-top: clamp(0.875rem, 2vw, 1.5rem);
  margin-left: 0;
  margin-right: auto;
  width: 100%;
  max-width: 36rem;
  padding-top: 12px;
  padding-left: 12px;
  box-sizing: border-box;
}

.osorio-hp-showcase__description-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-color: rgba(35, 31, 32, 0.35);
  border-style: solid;
  border-width: 1px 0 0 1px;
  pointer-events: none;
}

/* Fade-in: Bootstrap `.fade` + keyframes (same approach as HO image banner) */
@media (prefers-reduced-motion: no-preference) {
  .block-osorio-hp-showcase .osorio-hp-showcase__description-wrap.fade {
    transition: none;
    opacity: 0;
    animation: osorio-hp-showcase-desc-fade-in 0.85s ease-out 0.12s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-osorio-hp-showcase .osorio-hp-showcase__description-wrap.fade {
    transition: none;
    opacity: 1;
  }
}

@keyframes osorio-hp-showcase-desc-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.block-osorio-hp-showcase .osorio-hp-showcase__description {
  margin: 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0;
  leading-trim: none;
  color: #231f20;
  text-align: left;
}

.block-osorio-hp-showcase .osorio-hp-showcase__description > p:last-child {
  margin-bottom: 0;
}

/* CTA: centered under text block, pinned to bottom of row on large screens */
.osorio-hp-showcase__cta {
  margin-top: auto;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  width: 100%;
}

.osorio-hp-showcase__button.btn {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.osorio-hp-showcase__button.btn svg {
  width: clamp(28px, 5vw, 36px);
  height: auto;
}

/* Media frame: L-shaped corners (top-left + bottom-left), mockup */
.osorio-hp-showcase__media {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 448px;
  padding: 14px 0 14px 14px;
  box-sizing: border-box;
}

/* Slider: nav above images */
.osorio-hp-showcase__slideshow {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.osorio-hp-showcase__slideshow .osorio-hp-showcase__rotator {
  flex: 1 1 auto;
  min-height: 0;
}

/* Single image: rotator is direct child of .osorio-hp-showcase__media */
.osorio-hp-showcase__media > .osorio-hp-showcase__rotator:first-child {
  flex: 1 1 auto;
  min-height: 0;
}

/* Slider controls: bottom-left of image — compact line+tick accents, VER MAIS, all white */
.osorio-hp-showcase__slider-nav {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: clamp(0.85rem, 2.5vw, 1.35rem) clamp(0.75rem, 2.2vw, 1.25rem);
  pointer-events: none;
}

.osorio-hp-showcase__slider-nav__inner {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 0.9rem);
  pointer-events: auto;
}

/* Narrower rule + tick than section title accent */
.osorio-hp-showcase__slider-accent-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 1px;
}

.osorio-hp-showcase__slider-accent-mark::before {
  content: "";
  display: block;
  width: clamp(0.65rem, 2.2vw, 1.35rem);
  height: 1px;
  background-color: #fff;
}

.osorio-hp-showcase__slider-accent-mark::after {
  content: "";
  display: block;
  width: 1px;
  height: 0.45rem;
  background-color: #fff;
  flex-shrink: 0;
}

/* Prev: tick on the outer (left) side — mirror of title accent */
.osorio-hp-showcase__slider-accent-mark--prev {
  flex-direction: row-reverse;
}

.osorio-hp-showcase__slider-hit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(0.55rem, 1.8vw, 0.85rem) clamp(0.45rem, 1.5vw, 0.7rem);
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.osorio-hp-showcase__slider-hit:hover {
  opacity: 0.72;
}

.osorio-hp-showcase__slider-hit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.osorio-hp-showcase__slider-vermais {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  padding: 0 clamp(0.2rem, 0.8vw, 0.35rem);
}

.osorio-hp-showcase__media::before,
.osorio-hp-showcase__media::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(35, 31, 32, 0.35);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}

/* Top-left ┐ (lines along top + left, opening toward image) */
.osorio-hp-showcase__media::before {
  top: 0;
  left: 0px;
  border-width: 1px 0 0 1px;
}

/* Bottom-left ┘ */
.osorio-hp-showcase__media::after {
  bottom: 0;
  right: -10px;
  border-width: 0px 1px 1px 0px;
}

.osorio-hp-showcase__rotator {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 45vw, 492px);
  overflow: hidden;
  background: #ebe6e1;
}

.osorio-hp-showcase__rotator--slideshow .osorio-hp-showcase__rotator-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.65s ease-in-out;
  pointer-events: none;
}

.osorio-hp-showcase__rotator--slideshow
  .osorio-hp-showcase__rotator-img.is-active {
  opacity: 1;
  z-index: 1;
}

.osorio-hp-showcase__rotator:not(.osorio-hp-showcase__rotator--slideshow)
  .osorio-hp-showcase__rotator-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 45vw, 492px);
  object-fit: cover;
}

.osorio-hp-showcase__rotator--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 35vw, 360px);
  padding: 1.5rem;
  text-align: center;
  color: rgba(35, 31, 32, 0.55);
  font-size: 0.95rem;
}

/* Bottom decorative banner: slight pull-up like mockup overlap */
.osorio-hp-showcase__banner {
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.osorio-hp-showcase__banner-img {
  display: block;
  width: 70%;
  margin-left: auto;
  margin-right: -70px;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.wp-block-acf-menin-osorio-hp-showcase.alignwide .block-osorio-hp-showcase,
.wp-block-acf-menin-osorio-hp-showcase.alignfull .block-osorio-hp-showcase {
  width: 100%;
}

@media (max-width: 991.98px) {
  .osorio-hp-showcase__row {
    min-height: 0;
  }

  .osorio-hp-showcase__text-col {
    min-height: 0;
  }

  .osorio-hp-showcase__media {
    min-height: clamp(220px, 65vw, 400px);
    padding: 12px 0 12px 12px;
  }

  .osorio-hp-showcase__cta {
    justify-content: center;
    margin-bottom: 30px;
  }

  .osorio-hp-showcase__banner {
    margin-top: clamp(-1.5rem, -4vw, -0.5rem);
  }

  .osorio-hp-showcase__banner-img {
    object-position: center bottom;
  }
}
