@import url("https://googleapis.com");
@import url('https://fonts.googleapis.com/css2?family=Edu+QLD+Hand:wght@400..700&display=swap');

:root {
  --a7-wine: #6b0f1a;
  --a7-wine-mid: #4a0d15;
  --a7-wine-deep: #2b0a0f;
  --a7-stone: #f2f0ee;
  --a7-line: #e4dfdb;
  --a7-ink: #2a1d20;
  --a7-muted: #6e6366;
  --a7-gold: #b8a07a;
  --edu-qld: "Times New Roman", serif, "Edu QLD Hand", cursive;
  --a7-serif:"Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --nav-h: 76px;
  --font-title-elegant: "Playfair Display", Georgia, serif;
  --font-body-clean: "Montserrat", Helvetica, sans-serif;
  --a7-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body-clean);
  color: var(--a7-ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--a7-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
}

a {
  color: var(--a7-wine);
  text-decoration: none;
}
a:hover {
  color: var(--a7-wine-mid);
}

img {
  max-width: 100%;
}

::selection {
  background: var(--a7-wine);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1eeec;
}
::-webkit-scrollbar-thumb {
  background: #c9bfba;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--a7-wine);
}

:focus-visible {
  outline: 2px solid var(--a7-wine);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: #fff;
  color: var(--a7-ink);
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--a7-wine-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-preloader {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  animation: a7pulse 1.2s ease-in-out infinite;
}
@keyframes a7pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Botões ---------- */
.btn-a7,
.btn-a7-ghost,
.btn-a7-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 6px;
  border: 1px solid var(--a7-wine);
  font-family: var(--font-body-clean);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.btn-a7 {
  background: var(--a7-wine);
  color: #fff;
}
.btn-a7:hover {
  background: var(--a7-wine-mid);
  border-color: var(--a7-wine-mid);
  color: #fff;
}
.btn-a7:active {
  transform: translateY(1px);
}

.btn-a7-outline {
  background: transparent;
  color: var(--a7-wine);
}
.btn-a7-outline:hover {
  background: var(--a7-wine);
  color: #fff;
}

.btn-a7-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-a7-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-a7-light {
  background: #fff;
  color: var(--a7-wine-deep);
  border-color: #fff;
}
.btn-a7-light:hover {
  background: var(--a7-stone);
  border-color: var(--a7-stone);
  color: var(--a7-wine-deep);
}

.btn-a7-wa {
  background: #1f8f55;
  border-color: #1f8f55;
  color: #fff;
}
.btn-a7-wa:hover {
  background: #187945;
  border-color: #187945;
  color: #fff;
}

.btn-a7-sm {
  padding: 11px 20px;
  font-size: 0.88rem;
}
.btn-a7-block {
  display: flex;
  width: 100%;
  min-height: 54px;
}

.btn-a7-text {
  background: none;
  border: 0;
  padding: 0;
  color: var(--a7-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-a7-text:hover {
  color: var(--a7-wine);
}

.link-underline {
  color: var(--a7-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--a7-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition:
    text-decoration-color 0.2s,
    color 0.2s;
}
.link-underline:hover {
  color: var(--a7-wine);
  text-decoration-color: var(--a7-wine);
}

/* ---------- Navbar ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  min-height: var(--nav-h);
  padding: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.site-nav .container {
  min-height: var(--nav-h);
}

.site-nav .navbar-brand {
  margin: 0;
  padding: 0;
}
.site-nav .navbar-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.site-nav .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--a7-ease);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.nav-login:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: #fff;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0;
}

.nav-fav {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.nav-fav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.nav-fav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--a7-wine);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  display: none;
}
.nav-fav.has-items .nav-fav-badge {
  display: block;
}

.navbar-toggler {
  border: 0;
  padding: 8px;
  color: #fff;
  box-shadow: none !important;
}
.navbar-toggler-icon {
  background-image: none !important;
  background: currentColor;
  width: 24px;
  height: 2px;
  position: relative;
  display: block;
  border-radius: 2px;
  transition: background 0.2s;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s;
}
.navbar-toggler-icon::before {
  top: -7px;
}
.navbar-toggler-icon::after {
  top: 7px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* estado sólido: rolou a página, menu aberto ou página sem faixa escura */
.site-nav.is-solid,
.site-nav.nav-solid {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--a7-line);
}
.site-nav.is-solid {
  box-shadow: 0 8px 30px -18px rgba(43, 10, 15, 0.4);
}
.site-nav.is-solid .navbar-brand img,
.site-nav.nav-solid .navbar-brand img {
  filter: none;
}
.site-nav.is-solid .nav-link,
.site-nav.nav-solid .nav-link {
  color: var(--a7-ink);
}
.site-nav.is-solid .nav-link:hover,
.site-nav.is-solid .nav-link.active,
.site-nav.nav-solid .nav-link:hover,
.site-nav.nav-solid .nav-link.active {
  color: var(--a7-wine);
}
.site-nav.is-solid .nav-login,
.site-nav.nav-solid .nav-login,
.site-nav.is-solid .nav-fav,
.site-nav.nav-solid .nav-fav {
  color: var(--a7-ink);
  border-color: var(--a7-line);
}
.site-nav.is-solid .nav-login:hover,
.site-nav.nav-solid .nav-login:hover,
.site-nav.is-solid .nav-fav:hover,
.site-nav.nav-solid .nav-fav:hover {
  background: var(--a7-stone);
  border-color: #cfc6c1;
  color: var(--a7-wine);
}
.site-nav.is-solid .nav-fav-badge,
.site-nav.nav-solid .nav-fav-badge {
  background: var(--a7-wine);
  color: #fff;
}
.site-nav.is-solid .nav-user,
.site-nav.nav-solid .nav-user {
  color: var(--a7-ink);
}
.site-nav.is-solid .navbar-toggler,
.site-nav.nav-solid .navbar-toggler {
  color: var(--a7-ink);
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding: 12px 0 22px;
  }
  .site-nav .navbar-nav {
    gap: 2px;
  }
  .site-nav .nav-link {
    padding: 12px 0;
    font-size: 1.05rem;
  }
  .site-nav .nav-link::after {
    display: none;
  }
  .nav-actions {
    margin-top: 14px;
    justify-content: flex-start;
  }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 780px);
  color: #fff;
  overflow: hidden;
  background: var(--a7-wine-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 58%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      rgba(43, 10, 15, 0.94) 0%,
      rgba(43, 10, 15, 0.78) 36%,
      rgba(43, 10, 15, 0.28) 72%,
      rgba(43, 10, 15, 0.38) 100%
    ),
    linear-gradient(0deg, rgba(43, 10, 15, 0.7) 0%, rgba(43, 10, 15, 0) 38%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 150px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 1;
  font-weight: 500;
  max-width: 15ch;
  margin: 0 0 26px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-inner > * {
  opacity: 0;
  transform: translateY(16px);
  animation: a7rise 0.9s var(--a7-ease) forwards;
}
.hero-inner > :nth-child(1) {
  animation-delay: 0.5s;
}
.hero-inner > :nth-child(2) {
  animation-delay: 0.65s;
}
.hero-inner > :nth-child(3) {
  animation-delay: 0.8s;
}
@keyframes a7rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Cabeçalho de páginas internas ---------- */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--a7-wine-deep) 0%,
    var(--a7-wine-mid) 100%
  );
  padding: calc(var(--nav-h) + 56px) 0 72px;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(184, 160, 122, 0.45);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.02;
}
.page-hero p {
  margin: 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.page-hero.has-dock {
  padding-bottom: 130px;
}

/* ---------- Busca ---------- */
.search-dock {
  position: relative;
  z-index: 6;
  margin-top: -96px;
}
.page-hero.has-dock + .search-dock {
  margin-top: -80px;
}

.search-panel {
  background: #fff;
  border-radius: 10px;
  padding: 28px 30px 30px;
  box-shadow:
    0 34px 60px -26px rgba(43, 10, 15, 0.45),
    0 0 0 1px rgba(43, 10, 15, 0.05);
}
.search-panel-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 20px;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--a7-muted);
  margin-bottom: 8px;
}

.search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid #d8d1cc;
  border-radius: 6px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--a7-wine);
  box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.12);
}
.search-ico {
  color: var(--a7-muted);
  font-size: 0.95rem;
}
.search-box input {
  flex: 1;
  min-width: 150px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body-clean);
  font-size: 0.97rem;
  color: var(--a7-ink);
  padding: 8px 0;
}
.search-box input::placeholder {
  color: #9a8f92;
}
#tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#tags:empty {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--a7-stone);
  color: var(--a7-ink);
  border: 1px solid var(--a7-line);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  font-size: 0.85rem;
  font-weight: 500;
}
.remove-tag {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--a7-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.remove-tag:hover {
  background: var(--a7-wine);
  color: #fff;
}

.suggestions-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--a7-line);
  border-radius: 8px;
  box-shadow: 0 22px 44px -16px rgba(43, 10, 15, 0.3);
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
}
.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 0.93rem;
  cursor: pointer;
}
.suggestion-item:hover {
  background: var(--a7-stone);
}
.suggestion-type {
  font-size: 0.76rem;
  color: var(--a7-muted);
  white-space: nowrap;
}

.price-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.price-head .field-label {
  margin: 0;
}
.price-readout {
  font-size: 0.88rem;
  color: var(--a7-muted);
  white-space: nowrap;
}
.price-readout b {
  color: var(--a7-ink);
  font-weight: 600;
}
.search-panel .col-lg-4 {
  padding-bottom: 6px;
}
#slider-range {
  margin: 4px 10px 22px;
}

.noUi-target {
  background: var(--a7-line);
  border: 0;
  box-shadow: none;
  height: 4px;
  border-radius: 4px;
}
.noUi-connect {
  background: var(--a7-wine);
}
.noUi-horizontal .noUi-handle {
  width: 22px !important;
  height: 22px !important;
  right: -11px;
  top: -9px;
  border-radius: 50%;
  border: 2px solid var(--a7-wine);
  background: #fff;
  box-shadow: 0 2px 6px rgba(43, 10, 15, 0.25);
  cursor: grab;
}
.noUi-handle::before,
.noUi-handle::after {
  display: none;
}
.noUi-handle:active {
  cursor: grabbing;
}
.noUi-handle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 5px rgba(107, 15, 26, 0.2);
}

/* ---------- Seções ---------- */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.section-after-dock {
  padding-top: clamp(64px, 8vw, 96px);
}
.section-tight {
  padding: clamp(40px, 6vw, 72px) 0;
}
.bg-stone {
  background: var(--a7-stone);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  font-weight: 500;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--a7-muted);
  max-width: 52ch;
}

/* ---------- Card de imóvel ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 30px 28px;
}

.pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--a7-line);
  border-radius: 8px;
  overflow: hidden;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.pcard:hover {
  border-color: #cdbfb8;
  box-shadow: 0 24px 40px -28px rgba(43, 10, 15, 0.45);
}

.pcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e9e5e2;
  overflow: hidden;
}
.pcard-media .carousel,
.pcard-media .carousel-inner,
.pcard-media .carousel-item,
.pcard-media a {
  height: 100%;
  display: block;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--a7-ease);
}
.pcard:hover .pcard-media img {
  transform: scale(1.035);
}

.pcard-chips {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}
.chip-sale {
  background: var(--a7-wine);
  color: #fff;
}
.chip-rent {
  background: #fff;
  color: var(--a7-ink);
}
.chip-featured {
  background: var(--a7-gold);
  color: var(--a7-wine-deep);
}

.pcard-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.pcard-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--a7-ink);
  transition:
    transform 0.2s,
    color 0.2s,
    background 0.2s;
}
.pcard-iconbtn:hover {
  transform: scale(1.08);
  color: var(--a7-wine);
  background: #fff;
}
.pcard-iconbtn.is-liked {
  color: #c4162a;
}

.pcard-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(43, 10, 15, 0.7);
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  pointer-events: none;
}

.pcard-media .carousel-control-prev,
.pcard-media .carousel-control-next {
  z-index: 2;
  width: 18%;
  opacity: 1;
}
.pcard-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--a7-ink);
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.pcard-media:hover .pcard-arrow,
.pcard-media .carousel-control-prev:focus-visible .pcard-arrow,
.pcard-media .carousel-control-next:focus-visible .pcard-arrow {
  opacity: 1;
}
@media (hover: none) {
  .pcard-arrow {
    opacity: 1;
  }
}

.pcard-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.pcard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--a7-muted);
}
.pcard-loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.pcard-loc i {
  color: var(--a7-wine);
  font-size: 0.78rem;
}
.pcard-loc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-code {
  white-space: nowrap;
}

.pcard-title {
  font-size: 1.62rem;
  line-height: 1.12;
  font-weight: 600;
  margin: 12px 0 14px;
  min-height: 2.24em;
}
.pcard-title a {
  color: var(--a7-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-title a:hover {
  color: var(--a7-wine);
}
.pcard-title a.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pcard-title a:focus-visible {
  outline: 0;
}
.pcard-title a:focus-visible::after {
  outline: 2px solid var(--a7-wine);
  outline-offset: -2px;
  border-radius: 0 0 8px 8px;
}

.pcard-price {
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.pcard-price strong {
  font-family: var(--edu-qld);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--a7-wine);
  line-height: 1;
  white-space: nowrap;
}
.pcard-price small {
  font-size: 0.82rem;
  color: var(--a7-muted);
}

.pcard-specs {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--a7-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.pcard-specs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--a7-muted);
}
.pcard-specs i {
  color: var(--a7-wine);
  font-size: 0.8rem;
}
.pcard-specs b {
  color: var(--a7-ink);
  font-weight: 600;
}

/* ---------- Pilares (home) ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}
.pillars-intro h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 20px;
  text-wrap: balance;
}
.pillars-intro p {
  color: var(--a7-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}
.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #d6cec9;
}
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 28px;
  padding: 30px 0;
  border-top: 1px solid #d6cec9;
}
.pillar h3 {
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}
.pillar p {
  margin: 0;
  color: var(--a7-muted);
}

/* ---------- Quem está por trás ---------- */
.founders {
  background: var(--a7-wine-deep);
  color: #fff;
}
.founders-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.founders-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #3a1a1f;
}
.founders-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.founders h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.06;
  font-weight: 500;
  margin: 0 0 20px;
  text-wrap: balance;
}
.founders p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  max-width: 44ch;
  margin: 0 0 34px;
}
.founders .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Depoimentos ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 40px;
}
.quote {
  margin: 0;
  padding-top: 28px;
  border-top: 2px solid var(--a7-wine);
  display: flex;
  flex-direction: column;
}
.quote blockquote {
  margin: 0 0 26px;
  flex: 1;
}
.quote blockquote p {
  font-family: var(--a7-serif);
  font-size: 1.5rem;
  line-height: 1.32;
  font-weight: 500;
  margin: 0;
  color: var(--a7-ink);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--a7-wine);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.quote-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.quote-who strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.quote-who small {
  color: var(--a7-muted);
  font-size: 0.82rem;
}
.quote-stars {
  margin-left: auto;
  color: #c9a24b;
  font-size: 0.7rem;
  white-space: nowrap;
}

.quotes-all {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 56px;
}

/* ---------- Sobre ---------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.about-intro h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 22px;
  text-wrap: balance;
}
.about-intro p {
  color: var(--a7-muted);
  font-size: 1.08rem;
  max-width: 54ch;
}
.about-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #e5e0dc;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.video-popup.btn-video {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--a7-ink);
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px -12px rgba(43, 10, 15, 0.5);
  transition: transform 0.2s;
}
.video-popup.btn-video:hover {
  transform: translateY(-2px);
  color: var(--a7-wine);
}
.btn-video .play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--a7-wine);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--a7-line);
}
.contact-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--a7-line);
}
.contact-ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--a7-stone);
  color: var(--a7-wine);
  font-size: 1.1rem;
}
.contact-list h3 {
  font-family: var(--font-body-clean);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--a7-muted);
  margin: 0 0 4px;
  letter-spacing: 0;
}
.contact-list p,
.contact-list a {
  font-size: 1.12rem;
  color: var(--a7-ink);
  margin: 0;
  font-weight: 500;
  word-break: break-word;
}
.contact-list a:hover {
  color: var(--a7-wine);
}
.map-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--a7-line);
  background: var(--a7-stone);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Listagem ---------- */
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--a7-line);
}
.results-count {
  font-size: 0.95rem;
  color: var(--a7-muted);
}
.results-count strong {
  color: var(--a7-ink);
  font-weight: 700;
}

#filters {
  transition: opacity 0.2s;
  min-height: 320px;
}
#filters.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.empty-state {
  text-align: center;
  padding: 72px 20px;
  max-width: 520px;
  margin: 0 auto;
}
.empty-state h3 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 12px;
}
.empty-state p {
  color: var(--a7-muted);
  margin: 0 0 26px;
}

.a7-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
}
.a7-pagination button {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  color: var(--a7-ink);
  border: 1px solid var(--a7-line);
  font-family: var(--font-body-clean);
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.a7-pagination button:hover {
  border-color: var(--a7-wine);
  color: var(--a7-wine);
}
.a7-pagination button.is-current {
  background: var(--a7-wine);
  border-color: var(--a7-wine);
  color: #fff;
}

/* ---------- Detalhe do imóvel ---------- */
.detail-top {
  padding: calc(var(--nav-h) + 28px) 0 0;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--a7-muted);
  margin-bottom: 18px;
}
.crumbs a {
  color: var(--a7-muted);
}
.crumbs a:hover {
  color: var(--a7-wine);
}
.crumbs span[aria-current] {
  color: var(--a7-ink);
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 40px;
  margin-bottom: 26px;
}
.detail-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.02;
  font-weight: 500;
  margin: 12px 0 10px;
  max-width: 22ch;
  text-wrap: balance;
}
.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-line {
  background: var(--a7-stone);
  color: var(--a7-ink);
  border: 1px solid var(--a7-line);
}
.detail-loc {
  color: var(--a7-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-loc i {
  color: var(--a7-wine);
}
.detail-tools {
  display: flex;
  gap: 10px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--a7-line);
  color: var(--a7-ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tool-btn:hover {
  border-color: var(--a7-wine);
  color: var(--a7-wine);
}
.tool-btn.is-liked i {
  color: #c4162a;
}

.gallery {
  position: relative;
  display: grid;
  gap: 8px;
  height: clamp(320px, 46vw, 540px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--a7-stone);
}
.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e0dad6;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.7s var(--a7-ease),
    filter 0.3s;
}
.gallery a:hover img {
  transform: scale(1.03);
}
.gallery .g-more {
  display: none;
}
.gallery.g-1 {
  grid-template-columns: 1fr;
}
.gallery.g-2 {
  grid-template-columns: 1fr 1fr;
}
.gallery.g-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery.g-3 a:first-child {
  grid-row: span 2;
}
.gallery.g-4 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 1fr);
}
.gallery.g-4 a:first-child {
  grid-row: span 3;
}
.gallery.g-5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery.g-5 a:first-child {
  grid-row: span 2;
}
.gallery-all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--a7-ink);
  border: 0;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(43, 10, 15, 0.55);
  transition:
    transform 0.2s,
    color 0.2s;
}
.gallery-all:hover {
  transform: translateY(-2px);
  color: var(--a7-wine);
}

.detail-body {
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px;
  background: var(--a7-line);
  border: 1px solid var(--a7-line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 44px;
}
.fact {
  background: #fff;
  padding: 20px 18px;
}
.fact b {
  display: block;
  font-family: var(--edu-qld);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--a7-ink);
}
.fact span {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--a7-muted);
}

.detail-block {
  margin-bottom: 52px;
}
.detail-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 18px;
}
.detail-desc {
  color: #4a3e41;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 68ch;
}
.detail-plant img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--a7-line);
  background: #fff;
}

.side-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: #fff;
  border: 1px solid var(--a7-line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 30px 50px -34px rgba(43, 10, 15, 0.5);
}
.side-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.side-price small {
  color: var(--a7-muted);
  font-size: 0.85rem;
}
.side-price strong {
  font-family: var(--edu-qld);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--a7-wine);
}
.side-fees {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.side-fees li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--a7-line);
  font-size: 0.93rem;
  color: var(--a7-muted);
}
.side-fees li b {
  color: var(--a7-ink);
  font-weight: 600;
}
.side-card hr {
  border: 0;
  border-top: 1px solid var(--a7-line);
  margin: 22px 0;
  opacity: 1;
}
.side-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.side-card .form-control {
  border: 1px solid #d8d1cc;
  border-radius: 6px;
  min-height: 48px;
  font-family: var(--font-body-clean);
  color: var(--a7-ink);
}
.side-card .form-control:focus {
  border-color: var(--a7-wine);
  box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.12);
}
.side-card .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--a7-muted);
  margin-bottom: 6px;
}
.side-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.similar {
  background: var(--a7-stone);
}

/* aviso de imóvel indisponível */
.imovel-alerta {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 10, 15, 0.6);
  backdrop-filter: blur(4px);
}
.imovel-alerta-box {
  width: min(420px, calc(100% - 40px));
  padding: 36px 30px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: alertaEntrada 0.3s ease;
}
.imovel-alerta-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbecee;
  color: var(--a7-wine);
  font-size: 28px;
  font-weight: 700;
}
.imovel-alerta-box h3 {
  margin: 0 0 10px;
  font-size: 1.9rem;
}
.imovel-alerta-box p {
  margin: 0 0 18px;
  color: var(--a7-muted);
}
.imovel-alerta-box small {
  color: #8a7f82;
}
@keyframes alertaEntrada {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Páginas de texto (cookies) / 404 ---------- */
.prose-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.prose-wrap h4 {
  font-family: var(--a7-serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.prose-wrap p {
  color: #4a3e41;
  line-height: 1.75;
}
.prose-wrap .mb-5 {
  margin-bottom: 2.6rem !important;
}
.prose-wrap table {
  font-size: 0.93rem;
}
.prose-wrap thead th {
  background: var(--a7-stone);
  font-weight: 600;
}

.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.error-code {
  font-family: var(--a7-serif);
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 0.9;
  font-weight: 500;
  color: var(--a7-wine);
  margin: 0 0 8px;
}
.error-page h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 12px;
}
.error-page p {
  color: var(--a7-muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--a7-wine-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 28px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-about {
  margin: 22px 0 24px;
  max-width: 36ch;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.footer-social a:hover {
  background: #fff;
  color: var(--a7-wine-deep);
  border-color: #fff;
}
.site-footer h6 {
  font-family: var(--font-body-clean);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: 0;
}
.site-footer ul li {
  margin-bottom: 11px;
}
.site-footer ul a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.site-footer ul a:hover {
  color: #fff;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.footer-contact i {
  color: var(--a7-gold);
  margin-top: 5px;
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}

/* ---------- Modal de favoritos ---------- */
#modalFavoritos .modal-content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
#modalFavoritos .modal-header {
  border-bottom: 1px solid var(--a7-line);
  padding: 20px 24px;
}
#modalFavoritos .modal-title {
  font-family: var(--a7-serif);
  font-size: 1.7rem;
  font-weight: 600;
}
#modalFavoritos .btn-close {
  position: static;
  margin: 0;
}
#modalFavoritos .modal-body {
  padding: 20px 24px;
}
#modalFavoritos .modal-footer {
  border-top: 1px solid var(--a7-line);
  justify-content: space-between;
  padding: 16px 24px;
}
.fav-empty {
  text-align: center;
  padding: 28px 8px;
  color: var(--a7-muted);
}
.fav-empty i {
  font-size: 1.8rem;
  color: var(--a7-wine);
  margin-bottom: 12px;
  display: block;
}

/* ---------- Cookies, toast, topo ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  max-width: 920px;
  margin: 0 auto;
  background: var(--a7-wine-deep);
  color: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.55);
  display: none;
}
.cookie-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner h6 {
  font-family: var(--font-body-clean);
  font-size: 0.98rem;
  font-weight: 600;
}
.cookie-banner small {
  color: rgba(255, 255, 255, 0.78);
}
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

.a7-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 5000;
  transform: translate(-50%, 20px);
  background: var(--a7-ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.a7-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1400;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--a7-wine);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
  box-shadow: 0 14px 26px -12px rgba(43, 10, 15, 0.6);
}
.scroll-top:hover {
  background: var(--a7-wine-mid);
  color: #fff;
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1199.98px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 991.98px) {
  .hero-inner {
    padding-bottom: 130px;
  }
  .search-panel {
    padding: 22px 20px 24px;
  }
  .pillars-grid,
  .founders-grid,
  .about-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .quotes-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .quotes-all {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .side-card {
    position: static;
  }
  .founders-photo {
    max-width: 560px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --nav-h: 68px;
  }
  .pillar {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }
  .gallery {
    display: block;
    height: auto;
  }
  .gallery a {
    display: none;
  }
  .gallery a:first-child {
    display: block;
    aspect-ratio: 4 / 3;
  }
  .gallery-all {
    right: 12px;
    bottom: 12px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .hero h1 {
    max-width: 11ch;
  }
  .pcard-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero-inner > * {
    opacity: 1;
    transform: none;
  }
}
