/* Barô Core: widgets Elementor. Cores e fontes vêm dos tokens do tema (com fallback). */
.baro-placeholder { padding: 12px 16px; border: 1px dashed #8a8a8a; background: #fff; color: #444; font: 13px/1.5 sans-serif; }

/* ---------- Residências ---------- */
.baro-residencias { --baro-gap: 16px; --baro-row: 318px; --baro-cols: 2; --baro-ratio: 4 / 3; }
.baro-residencias__grid { display: grid; gap: var(--baro-gap); }
.baro-residencias--mosaico .baro-residencias__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-auto-rows: var(--baro-row); }
.baro-residencias--mosaico .baro-residencia-card:nth-child(5n+1) { grid-row: span 2; }
.baro-residencias--grade .baro-residencias__grid { grid-template-columns: repeat(var(--baro-cols), minmax(0, 1fr)); }
.baro-residencias--grade .baro-residencia-card { aspect-ratio: var(--baro-ratio); }
.baro-residencia-card { position: relative; display: block; overflow: hidden; min-height: 0; background: rgb(255 255 255 / 6%); color: #fff; text-decoration: none; }
.baro-residencia-card__image { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.baro-residencia-card__caption { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 32px); background: linear-gradient(to top, var(--baro-shade, rgb(3 20 26 / 82%)), transparent); opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.baro-residencia-card__title { font-family: var(--evs-font-heading, sans-serif); font-size: clamp(1.25rem, .9rem + 1vw, 1.95rem); font-weight: 500; line-height: 1.1; color: #fff; }
.baro-residencia-card__location { font-family: var(--evs-font-body, sans-serif); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgb(255 255 255 / 78%); }
.baro-residencia-card:is(:hover, :focus-visible) .baro-residencia-card__image { transform: scale(1.04); }
.baro-residencia-card:is(:hover, :focus-visible) .baro-residencia-card__caption,
.baro-residencias--legenda .baro-residencia-card__caption { opacity: 1; transform: none; }
.baro-residencia-card:focus-visible { outline: 2px solid var(--evs-accent, #C6AE88); outline-offset: 3px; }
@media (hover: none) { .baro-residencia-card__caption { opacity: 1; transform: none; } }
.baro-residencias__more { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 56px); padding-bottom: 10px; border-bottom: 1px solid rgb(255 255 255 / 35%); font-family: var(--evs-font-body, sans-serif); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-decoration: none; transition: border-color .3s ease, gap .3s ease; }
.baro-residencias__more:hover, .baro-residencias__more:focus-visible { gap: 20px; border-color: var(--evs-accent, #C6AE88); color: #fff; }
@media (max-width: 1024px) { .baro-residencias { --baro-row: 240px; } }
@media (max-width: 767px) {
 .baro-residencias { --baro-gap: 10px; --baro-row: 260px; }
 .baro-residencias--mosaico .baro-residencias__grid { grid-template-columns: minmax(0, 1fr); }
 .baro-residencias--mosaico .baro-residencia-card:nth-child(5n+1) { grid-row: auto; }
}

/* ---------- Topo da residência ---------- */
.baro-topo { --baro-shade-opacity: .6; position: relative; display: flex; align-items: flex-end; min-height: 100vh; overflow: hidden; background: #0b1d22; color: #fff; isolation: isolate; }
.baro-topo__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.baro-topo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(0 0 0 / 35%), transparent 22%), linear-gradient(to top, rgb(3 20 26 / var(--baro-shade-opacity)), transparent 55%); pointer-events: none; }
.baro-topo__content { box-sizing: border-box; width: 100%; max-width: calc(var(--baro-container, 1180px) + 64px); margin-inline: auto; padding: 0 32px clamp(48px, 6vw, 72px); }
.baro-topo__location { margin: 0 0 14px; font-family: var(--evs-font-body, sans-serif); font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / 80%); }
.baro-topo__title { margin: 0; font-family: var(--evs-font-heading, sans-serif); font-size: clamp(2.75rem, 1.4rem + 5vw, 6.25rem); font-weight: 500; line-height: 1; letter-spacing: -.01em; color: #fff; }
@media (max-width: 1024px) { .baro-topo__content { padding-inline: 24px; } }
@media (max-width: 767px) { .baro-topo { min-height: 82vh; } .baro-topo__content { padding-inline: 16px; } }

/* ---------- Galeria ---------- */
.baro-galeria { --baro-gap: 16px; --baro-cols: 3; display: grid; grid-template-columns: repeat(var(--baro-cols), minmax(0, 1fr)); gap: var(--baro-gap); }
.baro-galeria__item { display: block; margin: 0; overflow: hidden; aspect-ratio: var(--baro-ratio-small, 5 / 4); background: rgb(0 0 0 / 5%); }
.baro-galeria__item--large { grid-column: 1 / -1; aspect-ratio: var(--baro-ratio-large, 16 / 10); }
.baro-galeria__image { display: block; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
a.baro-galeria__item:is(:hover, :focus-visible) .baro-galeria__image { transform: scale(1.03); }
a.baro-galeria__item:focus-visible { outline: 2px solid var(--evs-primary, #163842); outline-offset: 3px; }
@media (max-width: 767px) { .baro-galeria { --baro-gap: 10px; grid-template-columns: minmax(0, 1fr); } }

/* ---------- Vídeo ---------- */
.baro-video { --baro-shade-opacity: .7; position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; overflow: hidden; background: #001116; color: #fff; isolation: isolate; }
.baro-video__cover, .baro-video__media { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.baro-video__cover { z-index: -3; }
.baro-video__media { z-index: -2; cursor: pointer; }
.baro-video::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(0 17 22 / calc(var(--baro-shade-opacity) * .1)) 0%, rgb(0 17 22 / calc(var(--baro-shade-opacity) * .55)) 45%, rgb(0 17 22 / var(--baro-shade-opacity)) 80%, #001116 100%); pointer-events: none; transition: opacity .6s ease; }
.baro-video.is-playing::after { opacity: .25; }
.baro-video__content { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; width: 100%; max-width: calc(var(--baro-container, 1180px) + 64px); margin-inline: auto; padding: 120px 32px; pointer-events: none; }
.baro-video__title { margin: 0; font-family: var(--evs-font-heading, sans-serif); font-size: clamp(2.5rem, 1.3rem + 4vw, 5rem); font-weight: 500; line-height: 1.02; color: #fff; transition: opacity .5s ease; }
.baro-video__description { grid-column: 3; justify-self: end; max-width: 300px; margin: 0; font-family: var(--evs-font-body, sans-serif); font-size: 16px; line-height: 1.7; color: rgb(255 255 255 / 72%); transition: opacity .5s ease; }
.baro-video__play { display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; padding: 0; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; background: transparent; color: #fff; font-family: var(--evs-font-body, sans-serif); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; pointer-events: auto; transition: background-color .3s ease, color .3s ease, opacity .4s ease, transform .3s ease; }
.baro-video__play:hover, .baro-video__play:focus-visible { background: #fff; color: #052B36; transform: scale(1.05); }
.baro-video__play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.baro-video.is-playing :is(.baro-video__title, .baro-video__description) { opacity: 0; }
.baro-video.is-playing .baro-video__play { opacity: 0; }
.baro-video.is-playing:hover .baro-video__play, .baro-video.is-playing .baro-video__play:focus-visible { opacity: 1; }
.baro-video__bar { position: absolute; inset: auto 28px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.baro-video__time { padding-left: 52px; font-family: var(--evs-font-body, sans-serif); font-size: 13px; color: rgb(255 255 255 / 60%); font-variant-numeric: tabular-nums; }
.baro-video__progress { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; margin: 0; border-radius: 2px; background: linear-gradient(to right, rgb(255 255 255 / 85%) var(--baro-progress, 0%), rgb(255 255 255 / 22%) var(--baro-progress, 0%)); cursor: pointer; }
.baro-video__progress::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .2s ease; }
.baro-video__progress::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.baro-video__progress:is(:hover, :focus-visible)::-webkit-slider-thumb { opacity: 1; }
.baro-video__progress:is(:hover, :focus-visible)::-moz-range-thumb { opacity: 1; }
.baro-video__progress:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.baro-video > .baro-placeholder { position: absolute; top: 16px; left: 16px; }
@media (max-width: 1024px) { .baro-video__content { padding-inline: 24px; } }
@media (max-width: 767px) {
 .baro-video { min-height: 85vh; }
 .baro-video__content { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 96px 16px 120px; }
 .baro-video__description { grid-column: auto; justify-self: start; }
 .baro-video__bar { inset-inline: 16px; }
 .baro-video__time { padding-left: 0; }
}
/* ---------- Janela do YouTube ---------- */
.baro-modal { box-sizing: border-box; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.baro-modal::backdrop { background: rgb(0 12 15 / 92%); }
.baro-modal[open] { display: flex; align-items: center; justify-content: center; animation: baro-modal-in .3s ease; }
.baro-modal__frame { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: clamp(56px, 6vw, 80px) clamp(12px, 4vw, 64px); box-sizing: border-box; }
.baro-modal iframe { display: block; width: min(100%, calc((100dvh - 160px) * 16 / 9), 1400px); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; box-shadow: 0 24px 80px rgb(0 0 0 / 50%); }
.baro-modal__close { position: absolute; top: 16px; right: 16px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: transparent; color: #fff; font: 300 28px/1 var(--evs-font-body, sans-serif); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.baro-modal__close:hover, .baro-modal__close:focus-visible { background: #fff; color: #052B36; }
.baro-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
html.baro-modal-open { overflow: hidden; }
/* O reset do Hello Elementor pinta todo button:focus/hover de rosa (#c36): foco por clique fica neutro. */
:is(.baro-video__play, .baro-modal__close):focus:not(:focus-visible):not(:hover) { background: transparent; color: #fff; }
@keyframes baro-modal-in { from { opacity: 0; } }

/* Play no topo da residência: alinhado à base do título. */
.baro-topo__content { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.baro-topo__text { min-width: 0; }
.baro-topo__play { flex-shrink: 0; margin-bottom: 8px; }
@media (max-width: 767px) { .baro-topo__play { width: 64px; height: 64px; margin-bottom: 4px; } }

@media (prefers-reduced-motion: reduce) {
 .baro-modal[open] { animation: none; }
 .baro-residencia-card__image, .baro-galeria__image, .baro-residencia-card__caption { transition: none; }
}
