/* ==========================================================================
   PINA HOUSE — Casas de férias em Portugal
   Folha de estilos principal
   Paleta: creme · verde-oliva · dourado  |  Tipografia: Cormorant Garamond + Mulish
   ========================================================================== */

:root {
  --cream:      #F5EFE3;
  --cream-2:    #FBF8F1;
  --cream-3:    #ECE3D0;
  --sand:       #E2D6BB;
  --olive-900:  #2F3720;
  --olive-700:  #4A5930;
  --olive-600:  #55653C;
  --olive-500:  #66754A;
  --olive-300:  #A7B08B;
  --olive-100:  #DDE2CC;
  --gold:       #B8963F;
  --gold-2:     #D3BB78;
  --gold-3:     #EFE3C2;
  --ink:        #3A4030;
  --muted:      #5C6150;
  --white:      #FFFDF8;

  --shadow:     0 30px 60px -30px rgba(47, 55, 32, .38);
  --shadow-sm:  0 12px 30px -18px rgba(47, 55, 32, .35);
  --radius:     22px;
  --radius-sm:  14px;
  --ease:       cubic-bezier(.2, .7, .2, 1);
  --container:  1180px;

  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body:    'Mulish', 'Gill Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--olive-700); line-height: 1.05; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--gold-3); color: var(--olive-900); }

/* Grão de papel — dá calor e textura ao creme */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9990;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilitários ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--cream2 { background: var(--cream-2); }
.section--olive { background: var(--olive-700); color: var(--cream); }
.section--olive h2, .section--olive h3 { color: var(--cream); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after { display: none !important; }
.eyebrow__num { font-family: var(--font-display); font-style: italic; font-size: 22px; letter-spacing: 0; font-weight: 500; color: var(--gold-2); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow--noline::before { display: none; }

.h-display { font-size: clamp(40px, 5vw, 68px); letter-spacing: -.01em; }
.h-display em { font-style: italic; font-weight: 500; color: var(--olive-600); }
.lead { font-size: clamp(17px, 1.4vw, 19px); font-weight: 400; color: var(--ink); max-width: 62ch; }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }

/* Ornamento: linha — folha — linha */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 26px auto; }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament .icon { width: 22px; height: 22px; }
.ornament--left { justify-content: flex-start; margin-inline: 0; }
.ornament--left::before, .ornament--left::after { display: none; }

/* Botões */
.btn {
  --bg: var(--olive-700); --fg: var(--cream); --arrow: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1;
  box-shadow: 0 14px 30px -16px rgba(47, 55, 32, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s;
}
.btn__arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--arrow); color: var(--olive-900); transition: transform .5s var(--ease);
}
.btn__arrow .icon { width: 16px; height: 16px; stroke-width: 2; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(47, 55, 32, .7); background: var(--olive-900); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--olive-700); --arrow: var(--cream-3); box-shadow: inset 0 0 0 1.5px var(--olive-300); }
.btn--ghost:hover { background: var(--olive-100); box-shadow: inset 0 0 0 1.5px var(--olive-500); }
.btn--cream { --bg: var(--cream); --fg: var(--olive-700); --arrow: var(--gold); }
.btn--cream:hover { background: var(--white); }
.btn--wa { --bg: var(--olive-700); --fg: var(--cream); --arrow: var(--gold); }
.btn__arrow--wa { background: var(--olive-700); color: var(--white); }
.btn__arrow--wa .icon { width: 20px; height: 20px; }
.btn--wa .btn__arrow--wa, .btn--cta-dark .btn__arrow--wa { background: var(--gold); color: var(--olive-900); }
.btn--wa .btn__arrow .icon { width: 20px; height: 20px; }
.btn--lg { padding: 10px 10px 10px 32px; font-size: 16px; }
.btn--lg .btn__arrow { width: 44px; height: 44px; }
.btn--sm { padding: 6px 6px 6px 20px; font-size: 14px; }
.btn--sm .btn__arrow { width: 32px; height: 32px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--olive-700);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--wa .icon { color: var(--gold); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: 22px;
  transition: padding .4s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(245, 239, 227, .86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(74, 89, 48, .12);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--olive-700); }
.brand__mark { width: 54px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 23px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__link {
  position: relative; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-700);
  padding-block: 6px;
}
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--olive-900); }
.nav__cta { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; color: var(--olive-700); transition: transform .4s var(--ease); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Seletor de idioma ---------- */
.idiomas { display: flex; align-items: center; gap: 9px; }
.idiomas__opt {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px; border-radius: 5px;
  opacity: .6; filter: saturate(.7);
  transition: opacity .35s var(--ease), filter .35s var(--ease), box-shadow .35s var(--ease);
}
.idiomas__opt svg {
  width: 23px; height: 15.3px; border-radius: 2.5px;
  box-shadow: 0 0 0 1px rgba(47, 55, 32, .16), 0 1px 3px -1px rgba(47, 55, 32, .3);
}
.idiomas__cod { display: none; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--olive-700); }
.idiomas__opt:hover { opacity: .85; filter: none; }
.idiomas__opt.is-active { opacity: 1; filter: none; box-shadow: 0 0 0 1.5px var(--gold); }
.idiomas__opt.is-active .idiomas__cod { color: var(--olive-900); }

/* ---------- HERO (página inicial) — “postal” ---------- */
.hero { position: relative; padding-top: clamp(96px, 12vh, 124px); padding-bottom: clamp(56px, 7vh, 92px); background: var(--cream); }
.hero__frame {
  position: relative; height: clamp(500px, 76vh, 760px);
  border-radius: 30px; overflow: hidden; background: var(--cream-3);
  box-shadow: var(--shadow);
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.06); animation: heroZoom 2.8s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(47, 55, 32, .12) 0%, transparent 28%, transparent 55%, rgba(47, 55, 32, .38) 100%); }
.hero__chips { position: absolute; top: 22px; right: 22px; z-index: 2; display: flex; gap: 8px; }
.hero__chips .chip { background: rgba(245, 239, 227, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: transparent; }
.hero__float {
  position: absolute; right: clamp(20px, 3vw, 44px); bottom: clamp(70px, 12vh, 130px); z-index: 2;
  width: clamp(150px, 16vw, 220px); aspect-ratio: 3 / 4;
  border-radius: 16px; overflow: hidden; border: 6px solid var(--cream); box-shadow: var(--shadow);
  transform: rotate(3deg); transition: transform .8s var(--ease);
}
.hero__float:hover { transform: rotate(0) translateY(-4px); }
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
.hero__float figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(245, 239, 227, .92); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--olive-700); }
.hero__card {
  position: relative; z-index: 3;
  max-width: 620px; margin: clamp(-430px, -34vh, -330px) 0 0 clamp(20px, 4vw, 56px);
  padding: clamp(30px, 4vw, 48px) clamp(26px, 4vw, 52px) clamp(28px, 3vw, 40px);
  background: var(--cream-2); border-radius: 28px;
  border: 1px solid rgba(184, 150, 63, .28); box-shadow: var(--shadow);
}
.hero__card::before { content: ""; position: absolute; inset: 10px; border-radius: 20px; border: 1px solid rgba(184, 150, 63, .22); pointer-events: none; }
.hero__branch { width: 150px; height: auto; margin: 0 0 6px -6px; }
.hero__title { font-size: clamp(56px, 6.6vw, 92px); font-weight: 400; letter-spacing: -.005em; line-height: .95; color: var(--olive-700); }
.hero__tagline { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(21px, 2.2vw, 29px); color: var(--olive-600); margin: 14px 0 16px; line-height: 1.25; }
.hero__text { font-size: 16.5px; font-weight: 400; color: var(--ink); max-width: 50ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--olive-700); }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note .icon { width: 16px; height: 16px; color: var(--gold); }

/* Desktop: o cartão vive DENTRO da moldura, para o hero caber por inteiro na 1.ª dobra */
@media (min-width: 961px) {
  .hero { padding-bottom: clamp(30px, 4.5vh, 60px); }
  .hero .container { position: relative; }
  .hero__frame {
    height: calc(100vh - clamp(150px, 19vh, 205px));
    height: calc(100svh - clamp(150px, 19vh, 205px));
    max-height: 780px; min-height: 470px;
  }
  .hero__card {
    position: absolute; z-index: 3; margin: 0;
    left: clamp(22px, 3.2vw, 52px); bottom: clamp(22px, 3.2vh, 44px);
    width: min(560px, 53%); max-width: none;
    padding: clamp(22px, 3.2vh, 42px) clamp(26px, 2.6vw, 46px) clamp(20px, 2.8vh, 34px);
  }
  .hero__branch { width: clamp(100px, 8vw, 146px); margin-bottom: clamp(2px, .6vh, 6px); }
  .hero__title { font-size: clamp(44px, min(5.2vw, 8.2vh), 84px); }
  .hero__tagline { font-size: clamp(18px, min(1.85vw, 2.9vh), 27px); margin: clamp(8px, 1.3vh, 14px) 0 clamp(8px, 1.3vh, 16px); }
  .hero__text { font-size: clamp(14.5px, 1.85vh, 16.5px); margin-bottom: clamp(14px, 2.3vh, 26px); }
  .hero__note { margin-top: clamp(12px, 2.1vh, 26px); }
  .hero__float { top: auto; bottom: clamp(22px, 3.2vh, 44px); width: clamp(140px, 14vw, 200px); }
  .eyebrow { margin-bottom: 12px; }
  .hero__card .eyebrow { margin-bottom: clamp(6px, 1.1vh, 14px); }
}

/* entradas do hero */
.hero__frame { opacity: 0; animation: fadeIn 1.2s var(--ease) forwards; }
.hero__card > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero__card > :nth-child(1) { animation-delay: .25s; }
.hero__card > :nth-child(2) { animation-delay: .35s; }
.hero__card > :nth-child(3) { animation-delay: .45s; }
.hero__card > :nth-child(4) { animation-delay: .55s; }
.hero__card > :nth-child(5) { animation-delay: .65s; }
.hero__card > :nth-child(6) { animation-delay: .75s; }
.hero__card > :nth-child(7) { animation-delay: .85s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Faixa de confiança ---------- */
.trust { border-block: 1px solid rgba(184, 150, 63, .3); background: var(--cream-2); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
.trust__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 22px 22px;
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: var(--olive-700);
}
.trust__item + .trust__item { position: relative; }
.trust__item + .trust__item::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); }
.trust__item .icon { width: 22px; height: 22px; color: var(--gold); }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__text .h-display { margin-bottom: 24px; }
.intro__sign { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(184, 150, 63, .3); }
.intro__sign-name { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1; color: var(--olive-700); }
.intro__sign-role { display: block; margin-top: 8px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.intro__media { position: relative; padding: 0 0 84px 72px; }
.intro__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--cream-3); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.intro__media:hover .intro__photo img { transform: scale(1.03); }
.intro__photo--small { position: absolute; top: 44px; left: 0; width: 38%; aspect-ratio: 3 / 4; border: 7px solid var(--cream-2); border-radius: var(--radius-sm); transform: rotate(-3deg); }
.intro__quote {
  position: absolute; left: 24px; bottom: 0; margin: 0; max-width: 72%;
  padding: 34px 32px 26px; background: var(--cream); border: 1px solid rgba(184, 150, 63, .38); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; color: var(--olive-700);
}
.intro__quote::before { content: "\201C"; position: absolute; top: -18px; left: 26px; font-family: var(--font-display); font-style: normal; font-size: 92px; line-height: 1; color: var(--gold-2); }
.intro__quote small { display: block; margin-top: 14px; font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Casas (página inicial) ---------- */
.estate { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.estate + .estate { margin-top: clamp(80px, 10vw, 150px); }
.estate--reverse .estate__media { order: 2; }
.estate__media { position: relative; }
.estate__main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.estate__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.estate__media:hover .estate__main img { transform: scale(1.035); }
.estate__float {
  position: absolute; right: -8%; bottom: -10%; width: 44%; aspect-ratio: 1;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 8px solid var(--cream); box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
  transition: transform .8s var(--ease);
}
.estate--reverse .estate__float { right: auto; left: -8%; transform: rotate(2.5deg); }
.estate__media:hover .estate__float { transform: rotate(0deg) translateY(-6px); }
.estate__float img { width: 100%; height: 100%; object-fit: cover; }
.estate__badge {
  position: absolute; top: 22px; left: 22px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(245, 239, 227, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--olive-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.estate__badge .icon { width: 14px; height: 14px; color: var(--gold); }
.estate__title { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; margin-bottom: 8px; }
.estate__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--olive-600); margin-bottom: 20px; }
.estate__text { color: var(--ink); font-weight: 400; font-size: 16.5px; }
.estate__hl { display: grid; gap: 10px; margin: 22px 0 26px; }
.estate__hl li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.estate__hl .icon { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 18px 0; margin-bottom: 26px; border-top: 1px solid rgba(184, 150, 63, .3); border-bottom: 1px solid rgba(184, 150, 63, .3); }
.specs li { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--olive-700); }
.specs .icon { width: 20px; height: 20px; color: var(--gold); }
.estate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* ---------- Conforto em cada detalhe ---------- */
.comfort { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.features { display: grid; gap: 22px; margin-top: 30px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(184, 150, 63, .45); background: var(--cream-2); }
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--ink); margin: 0; font-weight: 400; }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 230px 190px; gap: 14px; }
.collage figure { border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-3); }
.collage figure:nth-child(2) { grid-row: 2 / 4; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage figure:hover img { transform: scale(1.05); }

/* ---------- Depoimentos ---------- */
.tms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.tm {
  position: relative; margin: 0; display: flex; flex-direction: column;
  padding: 34px 32px 28px; border-radius: var(--radius);
  background: var(--cream-2); border: 1px solid rgba(184, 150, 63, .28); box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tm:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tm__stars { display: flex; gap: 4px; color: var(--gold); margin-bottom: 16px; }
.tm__stars .icon { width: 17px; height: 17px; }
.tm__text {
  margin: 0 0 24px; flex: 1;
  font-family: var(--font-display); font-size: 21px; line-height: 1.45; color: var(--olive-700); font-weight: 400;
}
.tm__text::before { content: "\201C"; }
.tm__text::after { content: "\201D"; }
.tm__author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(184, 150, 63, .28); }
.tm__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--cream); box-shadow: 0 4px 12px -6px rgba(47, 55, 32, .5); }
.tm__author strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--olive-700); line-height: 1.15; }
.tm__author small { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold); }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
.step { position: relative; padding: 8px 40px 8px 0; }
.step + .step { padding-left: 40px; border-left: 1px solid rgba(184, 150, 63, .35); }
.step__num { font-family: var(--font-display); font-style: italic; font-size: 64px; line-height: 1; color: var(--gold-2); margin-bottom: 14px; }
.step h3 { font-size: 27px; font-weight: 500; margin-bottom: 10px; }
.step p { color: var(--ink); font-weight: 400; font-size: 15.5px; margin: 0; }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--olive-700); color: var(--cream); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 50%, rgba(211, 187, 120, .16), transparent 70%);
}
.cta-band__branch { position: absolute; right: -60px; bottom: -40px; width: 520px; height: auto; opacity: .22; transform: rotate(-10deg); pointer-events: none; filter: sepia(.2) brightness(1.15); }
.cta-band__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cta-band h2 { color: var(--cream); font-size: clamp(38px, 4.6vw, 64px); }
.cta-band h2 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.cta-band p { color: rgba(245, 239, 227, .9); font-weight: 400; max-width: 52ch; }
.cta-band .eyebrow { color: var(--gold-2); }
.cta-band .eyebrow::before { background: var(--gold-2); }
.cta-band__contacts { display: grid; gap: 14px; justify-items: start; }
.cta-band__phone { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--cream); }
.cta-band__phone .icon { width: 22px; height: 22px; color: var(--gold-2); }
.cta-band__phone strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .02em; }
.cta-band__phone small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--cream-2); border-top: 1px solid rgba(184, 150, 63, .3); padding: 72px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.site-footer h4 { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 18px; }
.site-footer p { font-size: 14.5px; color: var(--ink); font-weight: 400; }
.site-footer ul li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer ul a:hover { color: var(--gold); }
.site-footer address { font-style: normal; font-size: 14.5px; color: var(--ink); font-weight: 400; line-height: 1.6; }
.site-footer address strong { display: block; color: var(--olive-700); font-weight: 600; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(184, 150, 63, .25); font-size: 12.5px; color: var(--muted); }
.site-footer__bottom a { color: var(--olive-700); font-weight: 600; }
.site-footer .brand { margin-bottom: 18px; }

/* ---------- Página de casa: hero ---------- */
.estate-hero { padding-top: clamp(120px, 16vh, 160px); padding-bottom: 40px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--olive-700); }
.breadcrumb .icon { width: 14px; height: 14px; }
.estate-hero__head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.estate-hero__title { font-size: clamp(52px, 7vw, 100px); line-height: .95; letter-spacing: -.01em; }
.estate-hero__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); color: var(--olive-600); margin-top: 14px; }
.estate-hero__aside { justify-self: end; display: grid; gap: 16px; justify-items: end; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(184, 150, 63, .45); background: var(--cream-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--olive-700); }
.chip .icon { width: 15px; height: 15px; color: var(--gold); }

.photo-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 280px 280px; gap: 12px; }
.photo-grid figure { border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--cream-3); position: relative; }
.photo-grid figure:first-child { grid-column: 1 / 3; grid-row: 1 / 3; border-radius: var(--radius); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid__all {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  background: rgba(245, 239, 227, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--olive-700);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), background .3s;
}
.photo-grid__all:hover { transform: translateY(-2px); background: var(--white); }
.photo-grid__all .icon { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Factos rápidos ---------- */
.facts { border-block: 1px solid rgba(184, 150, 63, .3); background: var(--cream-2); }
.facts__list { display: grid; grid-template-columns: repeat(5, 1fr); }
.facts__item { display: flex; align-items: center; gap: 14px; padding: 24px 22px; }
.facts__item + .facts__item { border-left: 1px solid rgba(184, 150, 63, .25); }
.facts__item .icon { width: 28px; height: 28px; color: var(--gold); }
.facts__item small { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts__item strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--olive-700); line-height: 1.1; }

/* ---------- Sobre a casa ---------- */
.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about__text p { font-size: 16.5px; color: var(--ink); font-weight: 400; }
.about__text .lead { color: var(--olive-700); font-family: var(--font-display); font-size: clamp(22px, 2vw, 27px); font-weight: 500; line-height: 1.4; max-width: none; }
.pull { margin: 34px 0; padding: 28px 32px; border-left: 2px solid var(--gold-2); background: var(--cream-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--olive-700); }
.card { background: var(--cream-2); border: 1px solid rgba(184, 150, 63, .3); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); position: sticky; top: 110px; }
.card__title { font-size: 30px; font-weight: 500; margin-bottom: 4px; }
.card__sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.card__list { display: grid; gap: 14px; margin-bottom: 26px; }
.card__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; }
.card__list .icon { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.card__list strong { color: var(--olive-700); font-weight: 600; }
.card__list span { display: block; color: var(--muted); font-size: 13.5px; }
.card .btn { width: 100%; justify-content: space-between; }
.card__note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Espaços ---------- */
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.space { position: relative; }
.space__img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 18px; background: var(--cream-3); cursor: zoom-in; }
.space__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.space:hover .space__img img { transform: scale(1.05); }
.space__num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 18px; margin-right: 8px; }
.space h3 { font-size: 26px; font-weight: 500; margin-bottom: 8px; }
.space p { font-size: 15px; color: var(--ink); font-weight: 400; margin: 0; }

/* ---------- Comodidades ---------- */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.amenity { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--cream-2); border: 1px solid rgba(184, 150, 63, .22); font-size: 14.5px; font-weight: 500; color: var(--olive-700); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; }
.amenity:hover { transform: translateY(-3px); border-color: rgba(184, 150, 63, .55); box-shadow: var(--shadow-sm); }
.amenity .icon { width: 24px; height: 24px; color: var(--gold); }

/* ---------- Galeria ---------- */
.gallery { column-count: 3; column-gap: 14px; margin-top: 48px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; position: relative; background: var(--cream-3); }
.gallery img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--cream); background: linear-gradient(transparent, rgba(47, 55, 32, .55)); opacity: 0; transition: opacity .5s; }
.gallery figure:hover figcaption { opacity: 1; }

/* ---------- Localização ---------- */
.location { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.location address { font-style: normal; font-family: var(--font-display); font-size: 26px; line-height: 1.3; color: var(--olive-700); margin: 18px 0 20px; font-weight: 500; }
.location address small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.location p { color: var(--ink); font-weight: 400; }
.distances { display: grid; gap: 12px; margin: 24px 0 28px; }
.distances li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed rgba(184, 150, 63, .4); font-size: 15px; }
.distances li span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.distances .icon { width: 18px; height: 18px; color: var(--gold); }
.distances strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--olive-700); white-space: nowrap; }

/* ---------- Por perto (dentro da secção de localização) ---------- */
.perto { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 40px); }  /* o contentor da secção é a grelha do mapa */
.perto__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.perto__title { font-size: clamp(30px, 3vw, 40px); font-weight: 400; }
.perto__note { margin: 0; font-size: 15px; color: var(--muted); }
.perto__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.perto__img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 16px; background: var(--cream-3); }
.perto__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.perto__item:hover .perto__img img { transform: scale(1.05); }
.perto__item h4 { font-size: 23px; font-weight: 500; line-height: 1.15; margin-bottom: 8px; }
.perto__time { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-700); }
.perto__time .icon { width: 17px; height: 17px; color: var(--gold); }
.perto__credito { display: block; margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.perto__credito a { text-decoration: underline; text-decoration-color: rgba(92, 97, 80, .4); text-underline-offset: 2px; }
.perto__credito a:hover { color: var(--olive-700); }
.perto__casa { color: var(--gold); border-bottom: 1px solid rgba(184, 150, 63, .45); transition: color .3s, border-color .3s; }
.perto__casa:hover { color: var(--olive-700); border-color: var(--olive-700); }
.perto--home { margin-top: clamp(72px, 9vw, 120px); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; background: var(--cream-3); border: 8px solid var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }

/* ---------- Regras & check-in ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.rules__col { background: var(--cream-2); border: 1px solid rgba(184, 150, 63, .28); border-radius: var(--radius); padding: 34px 36px; }
.rules__col h3 { font-size: 30px; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.rules__col h3 .icon { width: 26px; height: 26px; color: var(--gold); }
.rules__col li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(184, 150, 63, .2); font-size: 15px; }
.rules__col li:first-child { border-top: 0; padding-top: 0; }
.rules__col li .icon { width: 20px; height: 20px; color: var(--olive-600); margin-top: 3px; }
.rules__col li.is-no .icon { color: #B0563F; }
.rules__col strong { color: var(--olive-700); font-weight: 600; }
.rules__col span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }

/* ---------- Outra casa (cross-link) ---------- */
.other {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: center;
  background: var(--cream-2); border: 1px solid rgba(184, 150, 63, .3); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.other__img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.other__img img { width: 100%; height: 100%; object-fit: cover; }
.other h3 { font-size: 34px; font-weight: 500; margin: 4px 0 6px; }
.other p { margin: 0; color: var(--ink); font-weight: 400; font-size: 15px; }

/* ---------- Modal de reserva ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(47, 55, 32, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .35s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); overflow-y: auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.4vw, 44px) clamp(24px, 3vw, 36px);
  background: var(--cream-2); border-radius: 26px; border: 1px solid rgba(184, 150, 63, .35);
  box-shadow: 0 40px 90px -40px rgba(47, 55, 32, .8);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--olive-700); transition: background .3s; }
.modal__close:hover { background: var(--cream-3); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__branch { width: 118px; height: auto; margin-bottom: 10px; }
.modal__title { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.05; }
.modal__title em { font-style: italic; font-weight: 500; color: var(--olive-600); }
.modal__sub { margin: 12px 0 24px; font-size: 15px; color: var(--ink); }
.modal__form { display: grid; gap: 16px; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin: 0; display: grid; gap: 7px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold); padding: 0; }
.field input[type="date"], .field select {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--white); border: 1px solid rgba(184, 150, 63, .45); border-radius: 12px;
  transition: border-color .3s, box-shadow .3s;
}
.field input[type="date"] { min-height: 48px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5930' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 150, 63, .2); }
.field input.is-bad { border-color: #B0563F; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg__opt span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--olive-700); background: var(--white); border: 1px solid rgba(184, 150, 63, .45); cursor: pointer; transition: background .3s, border-color .3s, color .3s; text-align: center; }
.seg__opt span .icon { width: 16px; height: 16px; color: var(--gold); flex: none; }
.seg__opt input:checked + span { background: var(--olive-700); border-color: var(--olive-700); color: var(--cream); }
.seg__opt input:checked + span .icon { color: var(--gold-2); }
.seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(184, 150, 63, .3); }
.check { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1px solid rgba(184, 150, 63, .55); background: var(--white); cursor: pointer; transition: background .25s, border-color .25s; }
.check input:checked { background: var(--olive-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5EFE3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/13px no-repeat; border-color: var(--olive-700); }
.check input:focus-visible { box-shadow: 0 0 0 3px rgba(184, 150, 63, .3); }
.modal__nights { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--olive-600); }
.modal__error { margin: 0; padding: 11px 14px; border-radius: 10px; background: #F6E8E3; color: #8F4230; font-size: 14px; font-weight: 600; }
.modal__send { width: 100%; justify-content: space-between; margin-top: 4px; }
.modal__note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
body.modal-open { overflow: hidden; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(47, 55, 32, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); object-fit: contain; animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__caption { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; color: var(--cream); font-family: var(--font-display); font-style: italic; font-size: 20px; }
.lightbox__caption span { font-family: var(--font-body); font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--gold-2); font-weight: 700; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 239, 227, .12); color: var(--cream); border: 1px solid rgba(245, 239, 227, .25); transition: background .3s, transform .4s var(--ease); }
.lightbox__btn:hover { background: rgba(245, 239, 227, .25); transform: scale(1.06); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__btn--close { top: 22px; right: 22px; }
.lightbox__btn--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__btn--next:hover { transform: translateY(-50%) scale(1.06); }
body.lb-open { overflow: hidden; }

/* ---------- Revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .reveal, .hero__card > *, .hero__frame { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .facts__list { grid-template-columns: repeat(3, 1fr); }
  .facts__item:nth-child(4) { border-left: 0; }
  .facts__item:nth-child(n+4) { border-top: 1px solid rgba(184, 150, 63, .25); }
  .amenities { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav { position: fixed; inset: 0; z-index: 90; flex-direction: column; justify-content: center; gap: 28px; background: var(--cream); padding: 40px 24px; transform: translateY(-100%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
  .nav.is-open { transform: none; opacity: 1; }
  .nav__link { font-family: var(--font-display); font-size: 38px; letter-spacing: .02em; text-transform: none; font-weight: 400; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 20px 0 0; }
  .nav-toggle { display: grid; position: relative; z-index: 95; }

  /* No menu de ecrã inteiro há espaço para o nome do idioma ao lado da bandeira */
  .idiomas { gap: 18px; margin-top: 6px; }
  .idiomas__opt { padding: 6px 9px; border-radius: 8px; }
  .idiomas__opt svg { width: 28px; height: 18.6px; }
  .idiomas__cod { display: block; font-size: 12px; }
  .site-header.menu-open { background: transparent; box-shadow: none; }

  .hero { padding-top: 92px; padding-bottom: 44px; }
  .hero__frame { height: clamp(360px, 56vh, 520px); border-radius: 22px; }
  .hero__chips { display: none; }
  .hero__float { width: 116px; right: 14px; top: 14px; bottom: auto; border-width: 4px; transform: rotate(2deg); }
  .hero__float figcaption { display: none; }
  .hero__card { margin: -190px 12px 0; padding: 26px 22px 24px; border-radius: 22px; }
  .hero__branch { width: 120px; }

  .intro, .estate, .comfort, .about, .location, .cta-band__inner, .rules { grid-template-columns: 1fr; }
  .estate--reverse .estate__media { order: 0; }
  .intro__media { padding: 0 0 96px 0; margin-top: 8px; }
  .intro__photo--small { display: none; }
  .intro__quote { left: 16px; right: 16px; max-width: none; }
  .estate__main { aspect-ratio: 4 / 3.4; }
  .estate__float { bottom: -8%; width: 40%; }
  .estate-hero__head { grid-template-columns: 1fr; }
  .estate-hero__aside { justify-self: start; justify-items: start; text-align: left; }
  .chips { justify-content: flex-start; }
  .card { position: static; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step + .step { padding-left: 0; border-left: 0; padding-top: 34px; border-top: 1px solid rgba(184, 150, 63, .35); }
  .step { padding-right: 0; }
  .spaces { grid-template-columns: 1fr 1fr; }
  .perto__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .perto__item h4 { font-size: 20px; }
  .perto__time { flex-wrap: wrap; row-gap: 6px; white-space: nowrap; letter-spacing: .1em; }
  .perto__sep { display: none; }
  .perto__casa { flex-basis: 100%; width: max-content; max-width: 100%; }
  .tms { grid-template-columns: 1fr; gap: 18px; }
  .tm { padding: 28px 26px 24px; }
  .collage { grid-template-rows: 160px 200px 160px; }
  .gallery { column-count: 2; }
  .other { grid-template-columns: 1fr; }
  .photo-grid { grid-template-rows: 240px 240px; }
  .photo-grid figure:nth-child(n+4) { display: none; }
  .photo-grid figure:first-child { grid-column: 1 / 4; grid-row: 1; }
  .photo-grid figure:nth-child(2) { grid-column: 1 / 3; }
  .photo-grid figure:nth-child(3) { grid-column: 3 / 5; }
  .photo-grid figure:nth-child(2), .photo-grid figure:nth-child(3) { grid-row: 2; }
  .photo-grid figure:first-child { grid-column: 1 / 5; }
}

@media (max-width: 640px) {
  .container, .container--narrow { width: min(100% - 40px, var(--container)); }
  .hero__title { font-size: clamp(50px, 15vw, 72px); }
  .trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .trust__item { padding: 14px 10px; font-size: 11px; letter-spacing: .12em; }
  .trust__item + .trust__item::before { display: none; }
  .trust__item:last-child { grid-column: 1 / -1; justify-content: center; }
  .trust__item .icon { width: 18px; height: 18px; }
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__item { padding: 18px 14px; }
  .facts__item:nth-child(n+3) { border-top: 1px solid rgba(184, 150, 63, .25); }
  .facts__item:nth-child(odd) { border-left: 0; }
  .facts__item:nth-child(4) { border-left: 1px solid rgba(184, 150, 63, .25); }
  .facts__item:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
  .spaces { grid-template-columns: 1fr; }
  .tm__text { font-size: 19px; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .amenity { padding: 14px; font-size: 13.5px; }
  .modal { padding: 10px; }
  .modal__box { border-radius: 20px; max-height: calc(100svh - 20px); padding: 22px 20px 20px; }
  .modal__row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal__branch { width: 88px; margin-bottom: 6px; }
  .modal__title { font-size: 27px; }
  .modal__sub { margin: 8px 0 16px; font-size: 14px; }
  .modal__form { gap: 13px; }
  .field input[type="date"], .field select { padding: 11px 12px; font-size: 15px; }
  .seg { grid-template-columns: 1fr 1fr; gap: 8px; }
  .seg__opt span { padding: 11px 6px; font-size: 12.5px; }
  .modal__close { top: 10px; right: 10px; }
  .gallery { column-count: 2; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; }
  .rules__col { padding: 26px 22px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .photo-grid { grid-template-rows: 260px 160px; gap: 8px; }
  .estate__float { right: -4%; }
  .estate--reverse .estate__float { left: -4%; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 74px; transform: none; width: 46px; height: 46px; }
  .lightbox__btn--prev { left: 18px; }
  .lightbox__btn--next { right: 18px; }
  .lightbox__caption { bottom: 20px; font-size: 16px; width: 60%; text-align: center; flex-direction: column; gap: 4px; }
  .cta-band__branch { width: 300px; }
  .hero__note { flex-wrap: wrap; gap: 12px; }
}
