/* ═══════════════════════════════════════════════════════════
   CASA DO CASTELO — CSS COMPLETO CORRIGIDO
   Paleta: Castanho · Bege · Creme · Dourado suave · Areia
   Sem verdes. Layout estável. Galeria estilo álbum.
   ═══════════════════════════════════════════════════════════ */

:root {
  --c950: #120d08;
  --c900: #1c1309;
  --c850: #27190e;
  --c800: #342111;
  --c750: #49301b;
  --c700: #5b3c22;
  --c650: #704b2d;
  --c600: #875f3a;

  --sand: #b98f5b;
  --sand-l: #d3b27b;
  --sand-xl: #ead6ae;

  --amber: #a87335;
  --tan: #c49a62;

  --gold: #c9a75a;
  --gold-l: #e2c987;
  --gold-d: #a27d38;

  --beige: #d8bd8b;
  --cream: #ead7b6;
  --parch: #f5ead0;
  --white: #fbf4e5;

  --text: #f2e3c7;
  --muted: rgba(242, 227, 199, .74);
  --muted2: rgba(242, 227, 199, .52);

  --bdr: rgba(232, 208, 160, .16);
  --bdr2: rgba(232, 208, 160, .30);
  --bdr3: rgba(232, 208, 160, .46);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Tema escuro — usado por defeito */
  --body-bg: var(--c900);
  --nav-scrolled-bg: rgba(28, 19, 9, .90);
  --footer-bg: var(--c950);
  --experience-small-border: #3e2818;

  --hero-fade: linear-gradient(
    180deg,
    rgba(28, 19, 9, 0) 0%,
    rgba(28, 19, 9, .16) 25%,
    rgba(28, 19, 9, .48) 52%,
    rgba(28, 19, 9, .82) 78%,
    var(--c900) 100%
  );

  --intro-bg: linear-gradient(
    180deg,
    var(--c900) 0%,
    var(--c900) 10%,
    #291b11 27%,
    #3c291a 50%,
    #523925 75%,
    #6a4d31 100%
  );

  --intro-glow:
    radial-gradient(ellipse 54% 42% at 88% 34%, rgba(245, 234, 208, .10), transparent 68%),
    radial-gradient(ellipse 48% 38% at 12% 78%, rgba(211, 178, 123, .08), transparent 70%);

  /* Mais uniforme do que a versão anterior: menos claro no topo e sem queda brusca no fundo. */
  --pillars-bg: linear-gradient(
    180deg,
    #6a4d31 0%,
    #735337 14%,
    #80603f 31%,
    #8b6947 49%,
    #7c5a3b 67%,
    #62422b 84%,
    #4a2e1b 100%
  );

  --pillars-glow: radial-gradient(
    ellipse 62% 52% at 50% 35%,
    rgba(245, 234, 208, .075),
    transparent 70%
  );

  --gallery-bg: linear-gradient(
    180deg,
    #4a2e1b 0%,
    #66442a 16%,
    #8b6541 36%,
    #aa8258 54%,
    #8a603e 70%,
    #5b3a25 86%,
    #3a2417 100%
  );

  --gallery-glow:
    radial-gradient(ellipse 65% 42% at 18% 28%, rgba(245, 234, 208, .12), transparent 64%),
    radial-gradient(ellipse 55% 40% at 88% 70%, rgba(226, 201, 135, .09), transparent 66%);

  --experience-bg: linear-gradient(
    180deg,
    #3a2417 0%,
    #3a2417 9%,
    #3e2818 27%,
    #4b301e 50%,
    #5c3e27 74%,
    #6f4f31 100%
  );

  --experience-glow: radial-gradient(
    ellipse 48% 50% at 8% 68%,
    rgba(245, 234, 208, .09),
    transparent 64%
  );

  --places-bg: linear-gradient(
    180deg,
    #6f4f31 0%,
    #6f4f31 10%,
    #785738 28%,
    #856241 46%,
    #704e31 67%,
    #50321e 84%,
    var(--c850) 100%
  );

  --places-glow: radial-gradient(
    ellipse 58% 38% at 88% 30%,
    rgba(245, 234, 208, .10),
    transparent 64%
  );

  --contact-top-fade: linear-gradient(
    180deg,
    var(--c850) 0%,
    rgba(39, 25, 14, .96) 22%,
    rgba(39, 25, 14, .72) 48%,
    rgba(39, 25, 14, .30) 76%,
    transparent 100%
  );
}

/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--body-bg);
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-bg);
  transition: opacity .65s var(--ease), visibility .65s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  width: max-content;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loader-castle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--gold-d);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  animation: loaderCastleIn .8s var(--ease) .05s forwards;
}

.loader-castle svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 20px rgba(91, 60, 34, .16));
}

.loader-title {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  animation: loaderTitleIn .75s var(--ease) .18s forwards;
}

.loader-bar {
  width: 100%;
  height: 2px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(232, 208, 160, .18);
}

.loader-bar div {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l), var(--gold-d));
  transform: translateX(-100%);
  animation: loaderFill 1.2s var(--ease) .28s forwards;
}

@keyframes loaderCastleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderTitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderFill {
  to {
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .loader-inner {
    max-width: calc(100vw - 36px);
  }

  .loader-castle {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
  }

  .loader-title {
    font-size: 1rem;
    letter-spacing: .17em;
    white-space: normal;
  }

  .loader-bar {
    margin-top: 22px;
  }
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 22px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(18, 13, 8, .78) 0%,
    rgba(18, 13, 8, .30) 70%,
    transparent 100%
  );
  transition: padding .35s var(--ease), background .35s;
}

.nav.scrolled {
  padding: 14px 6%;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--parch);
  transition: color .25s;
}

.nav-logo:hover {
  color: var(--gold-l);
}

.nav-logo svg {
  color: var(--gold);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  list-style: none;
}

.nav-menu a {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(245, 234, 208, .78);
  transition: color .25s;
}

.nav-menu a:hover {
  color: var(--gold-l);
}

.nav-cta {
  padding: 9px 20px;
  border: 1px solid var(--bdr2);
  border-radius: 999px;
  color: var(--gold-l) !important;
  background: rgba(245, 234, 208, .07);
  transition: background .3s, border-color .3s, transform .3s var(--ease) !important;
}

.nav-cta:hover {
  background: rgba(245, 234, 208, .13);
  border-color: var(--bdr3);
  transform: translateY(-2px) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bdr);
  border-radius: 999px;
  color: var(--gold-l);
  background: rgba(245, 234, 208, .07);
  backdrop-filter: blur(12px);
  transition: color .3s, background .3s, border-color .3s, transform .3s var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--bdr3);
  background: rgba(245, 234, 208, .13);
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.nav-menu a:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 4px;
}

.theme-icon {
  position: absolute;
  transition: opacity .3s ease, transform .4s var(--ease);
}

.theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(-25deg) scale(.7);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(25deg) scale(.7);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bdr);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  background: var(--cream);
  transition: .3s;
}

.nav-toggle.open span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.open span:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 6% 11vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 5.5s var(--ease);
  filter: brightness(1.12) saturate(1.03) contrast(.96);
}

.hero-img.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 10, 4, .78) 0%, rgba(18, 10, 4, .36) 50%, rgba(18, 10, 4, .08) 100%),
    linear-gradient(180deg, rgba(18, 10, 4, .50) 0%, transparent 18%),
    linear-gradient(0deg, var(--c900) 0%, rgba(18, 10, 4, .76) 12%, rgba(18, 10, 4, .36) 30%, transparent 58%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 46vh;
  z-index: 2;
  pointer-events: none;
  background: var(--hero-fade);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gold-l);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-tag span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-l);
  box-shadow: 0 0 16px rgba(226, 201, 135, .6);
  animation: dot-pulse 2.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10.5vw, 9.5rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.04em;
  color: var(--parch);
  margin-bottom: 26px;
  text-shadow: 0 20px 64px rgba(0, 0, 0, .38);
}

.hero-title em {
  font-style: italic;
  color: var(--gold-l);
  font-weight: 500;
}

.hero-desc {
  max-width: 580px;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.82;
  color: rgba(245, 234, 208, .86);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* BOTÕES */
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: .3s var(--ease);
}

.btn-primary {
  color: var(--c900);
  background: linear-gradient(135deg, var(--parch), var(--gold-l), var(--tan));
  box-shadow: 0 16px 40px rgba(196, 154, 98, .30);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(196, 154, 98, .40);
}

.btn-secondary {
  color: var(--cream);
  border: 1px solid rgba(245, 234, 208, .34);
  background: rgba(245, 234, 208, .07);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--bdr2);
  background: rgba(245, 234, 208, .13);
  transform: translateY(-4px);
}

/* HERO META */
.hero-meta {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 11vh;
  display: flex;
  gap: 14px;
}

.hero-meta div {
  min-width: 116px;
  padding: 16px 18px;
  border: 1px solid var(--bdr);
  background: rgba(28, 19, 9, .38);
  backdrop-filter: blur(14px);
  border-radius: 18px;
}

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-l);
  margin-bottom: 7px;
}

.hero-meta span {
  display: block;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(245, 234, 208, .74);
}

/* ANIMAÇÕES */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TÍTULOS */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-l);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-l);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -.032em;
  font-weight: 600;
  color: var(--parch);
  margin-bottom: 26px;
}

.section-title em {
  color: var(--gold-l);
  font-style: italic;
  font-weight: 500;
}

.section-body {
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.text-link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-l);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(226, 201, 135, .38);
  padding-bottom: 4px;
  transition: .3s var(--ease);
}

.text-link:hover {
  gap: 14px;
  border-color: var(--gold-l);
}

/* INTRO */
.intro-section {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  padding: 130px 6%;
  background: var(--intro-bg);
}

/* Luz suave apenas no interior da secção, sem tocar nas extremidades */
.intro-section::before {
  content: "";
  position: absolute;
  inset: 12% 0 10%;
  z-index: 0;
  pointer-events: none;
  background: var(--intro-glow);
}

.intro-section > * {
  position: relative;
  z-index: 1;
}

.intro-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.intro-media {
  position: relative;
}

.intro-media img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid rgba(245, 234, 208, .16);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
  filter: saturate(1.02) brightness(1.06);
}

.intro-badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  color: var(--parch);
  background: rgba(28, 19, 9, .58);
  border: 1px solid rgba(245, 234, 208, .20);
  backdrop-filter: blur(12px);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro-badge svg {
  color: var(--gold-l);
}

.features-intro {
  max-width: 1200px;
  margin: 92px auto 36px;
}

.features-title {
  max-width: 780px;
  margin-bottom: 15px;

  color: var(--parch);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.features-title em {
  color: var(--gold-l);
  font-weight: 500;
}

.features-intro p {
  max-width: 620px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--bdr);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(245, 234, 208, .055);
}

.feature-item {
  position: relative;
  min-height: 172px;
  padding: 24px 27px 25px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  background: rgba(245, 234, 208, .018);
  transition:
    background .35s var(--ease),
    box-shadow .35s var(--ease);
}

.feature-item:nth-child(3n) {
  border-right: 0;
}

.feature-item:nth-last-child(-n+3) {
  border-bottom: 0;
}

.feature-item:hover {
  background: linear-gradient(
    135deg,
    rgba(245, 234, 208, .115),
    rgba(211, 178, 123, .055)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.feature-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.feature-number {
  display: block;
  margin: 0;
  color: var(--gold-l);
  font-family: var(--serif);
  font-size: .86rem;
  letter-spacing: .12em;
}

.feature-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 208, 160, .19);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(245, 234, 208, .11),
      rgba(211, 178, 123, .045)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 10px 24px rgba(18, 11, 6, .08);
  transition:
    transform .35s var(--ease),
    background .35s ease,
    border-color .35s ease;
}

.feature-icon img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  opacity: .88;
  filter:
    brightness(0)
    saturate(100%)
    invert(84%)
    sepia(31%)
    saturate(637%)
    hue-rotate(356deg)
    brightness(96%)
    contrast(89%);
  transition:
    transform .35s var(--ease),
    opacity .35s ease;
}

.feature-item:hover .feature-icon {
  transform: translateY(-3px);
  border-color: rgba(232, 208, 160, .34);
  background:
    linear-gradient(
      145deg,
      rgba(245, 234, 208, .17),
      rgba(211, 178, 123, .08)
    );
}

.feature-item:hover .feature-icon img {
  transform: scale(1.08);
  opacity: 1;
}

.feature-item strong {
  display: block;
  max-width: 290px;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.feature-item small {
  display: block;
  max-width: 300px;
  margin-top: 8px;
  color: var(--muted2);
  font-size: .76rem;
  line-height: 1.55;
}


/* PILLARS */
.pillars-section {
  position: relative;
  isolation: isolate;
  margin-top: -1px;

  /* Reduzido para não existir muito espaço em cima */
  padding: 48px 6% 0;

  background: var(--pillars-bg);
}

.pillars-section::before {
  content: "";
  position: absolute;
  inset: 6% 0 10%;
  z-index: 0;
  pointer-events: none;
  background: var(--pillars-glow);
}

.pillars-grid {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  border-top: 1px solid rgba(245, 234, 208, .12);
}

.pillar {
  position: relative;
  min-width: 0;
  min-height: 500px;

  padding: 42px 34px 72px;

  border-right: 1px solid rgba(245, 234, 208, .12);

  overflow: hidden;

  transition:
    background .35s ease,
    transform .35s var(--ease);
}

.pillar:last-child {
  border-right: 0;
}

.pillar:hover {
  background: rgba(245, 234, 208, .055);
}

.pillar > span {
  display: block;

  margin-bottom: 42px;

  color: var(--parch);
  font-family: var(--serif);
  letter-spacing: .14em;
}

.pillar h3 {
  max-width: 390px;

  margin-bottom: 16px;

  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2rem, 2.5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.05;
}

.pillar p {
  max-width: 440px;
  min-height: 88px;

  margin-bottom: 30px;

  color: rgba(255, 246, 226, .76);
  line-height: 1.76;
}

.pillar img {
  width: 100%;
  height: 235px;

  object-fit: cover;

  border: 1px solid rgba(245, 234, 208, .18);
  border-radius: 28px;

  box-shadow:
    0 28px 75px rgba(0, 0, 0, .24),
    0 0 0 1px rgba(245, 234, 208, .10);

  filter: brightness(1.06) saturate(1.02);

  transition:
    transform .5s var(--ease),
    filter .4s ease;
}

.pillar:hover img {
  transform: scale(1.025);
  filter: brightness(1.11) saturate(1.05);
}

.pillars-header {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 62px;
}

.pillars-header .section-title {
  max-width: 900px;
}

.pillars-header .section-body {
  max-width: 670px;
}

.pillar:last-child {
  border-right: 0;
}

/* GALERIA — ÁLBUM */
.gallery-section {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  padding: 115px 6% 50px;
  background: var(--gallery-bg);
}

/* Luz suave da galeria sem alterar as cores das uniões */
.gallery-section::before {
  content: "";
  position: absolute;
  inset: 10% 0 12%;
  z-index: 0;
  pointer-events: none;
  background: var(--gallery-glow);
}

.gallery-section > * {
  position: relative;
  z-index: 1;
}

.gallery-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 92px;
  gap: 14px;
}

/* Organização tipo álbum:
   1-4 exterior/jardim juntos
   5-8 sala/cozinha
   9-12 quartos/casa de banho/entrada
*/
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 24px;
  background: rgba(245, 234, 208, .08);
  border: 1px solid rgba(245, 234, 208, .18);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
  transition:
    transform .42s var(--ease),
    box-shadow .42s var(--ease),
    border-color .42s var(--ease);
}

.gallery-item:nth-child(1) {
  grid-column: span 6;
  grid-row: span 5;
}

.gallery-item:nth-child(2) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item:nth-child(3) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item:nth-child(4) {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery-item:nth-child(5) {
  grid-column: span 4;
  grid-row: span 4;
}

.gallery-item:nth-child(6) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item:nth-child(7) {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-item:nth-child(8) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item:nth-child(9) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item:nth-child(10) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item:nth-child(11) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item:nth-child(12) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  filter: brightness(1.06) saturate(1.03) contrast(.98);
  transition: transform .72s var(--ease), filter .5s var(--ease);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(245, 234, 208, .18);
  z-index: 2;
  pointer-events: none;
  opacity: .65;
  transition: opacity .35s var(--ease), inset .35s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 13, 8, .04) 0%, transparent 35%),
    linear-gradient(0deg, rgba(18, 13, 8, .64) 0%, rgba(18, 13, 8, .18) 50%, transparent 78%);
  opacity: .78;
  transition: opacity .35s var(--ease);
}

.gallery-item span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 3;
  opacity: 1;
  transform: translateY(0);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(28, 19, 9, .42);
  border: 1px solid rgba(245, 234, 208, .18);
  backdrop-filter: blur(12px);
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 234, 208, .42);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, .30),
    0 0 0 1px rgba(245, 234, 208, .10);
}

.gallery-item:hover img {
  transform: scale(1.075);
  filter: brightness(1.14) saturate(1.07) contrast(1);
}

.gallery-item:hover::before {
  inset: 14px;
  opacity: 1;
}

.gallery-item:hover::after {
  opacity: .94;
}

/* EXPERIENCE */
.experience-section {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  padding: 125px 6%;
  background: var(--experience-bg);
}

/* Iluminação interior sem criar uma barra na entrada ou saída */
.experience-section::before {
  content: "";
  position: absolute;
  inset: 12% 0 12%;
  z-index: 0;
  pointer-events: none;
  background: var(--experience-glow);
}

.experience-section > * {
  position: relative;
  z-index: 1;
}

.experience-images {
  position: relative;
  min-height: 580px;
}

.experience-main {
  width: 82%;
  height: 555px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(245, 234, 208, .16);
  box-shadow:
    0 34px 88px rgba(0, 0, 0, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.experience-main img,
.experience-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-small {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 255px;
  height: 205px;
  border-radius: 26px;
  overflow: hidden;
  border: 7px solid var(--experience-small-border);
  box-shadow: 0 22px 62px rgba(0, 0, 0, .26);
}

.experience-quote {
  position: absolute;
  top: 40px;
  right: 18px;
  width: 265px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(28, 19, 9, .58);
  border: 1px solid var(--bdr);
  backdrop-filter: blur(14px);
}

.experience-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.26rem;
  line-height: 1.38;
  color: var(--parch);
}

.experience-text .section-body + .section-body {
  margin-top: 18px;
}

.experience-stats {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--bdr);
  padding-top: 28px;
}

.experience-stats div {
  display: grid;
  gap: 5px;
}

.experience-stats strong {
  color: var(--cream);
  font-weight: 500;
}

.experience-stats span {
  color: var(--muted2);
}

/* PLACES */
.places-section {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  padding: 78px 6% 125px;
  background: var(--places-bg);
}

/* Luz suave apenas no centro da secção */
.places-section::before {
  content: "";
  position: absolute;
  inset: 12% 0 13%;
  z-index: 0;
  pointer-events: none;
  background: var(--places-glow);
}

.places-section > * {
  position: relative;
  z-index: 1;
}

.places-list {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--bdr);
}

.place-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--bdr);
  transition: .32s var(--ease);
}

.place-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(245, 234, 208, .10), transparent);
}

.place-num {
  color: rgba(245, 234, 208, .58);
  font-family: var(--serif);
  letter-spacing: .12em;
}

.place-name {
  font-family: var(--serif);
  font-size: clamp(1.32rem, 2.5vw, 1.95rem);
  color: var(--parch);
}

.place-tag {
  color: var(--gold-l);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 234, 208, .28);
  padding: 7px 14px;
  border-radius: 999px;
}

/* CONTACT */
.contact-section {
  min-height: 76vh;
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 125px 6%;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: var(--contact-top-fade);
}

.contact-bg {
  position: absolute;
  inset: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.74) saturate(1.02);
}

.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(18, 13, 8, .86), rgba(18, 13, 8, .34)),
    radial-gradient(ellipse at 50% 38%, rgba(245, 234, 208, .15), transparent 40%);
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  text-align: center;
}

.contact-content .section-eyebrow {
  justify-content: center;
}

.contact-content .section-eyebrow::before {
  display: none;
}

.contact-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6vw, 5.8rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--parch);
  margin-bottom: 24px;
}

.contact-content p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.86;
}

.contact-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  padding: 26px 6%;
  text-align: center;
  color: var(--muted2);
  background: var(--footer-bg);
  border-top: 1px solid var(--bdr);
  font-size: .88rem;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(245, 234, 208, .10), transparent 45%),
    rgba(10, 7, 3, .94);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
  padding: 28px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 28px;
  border: 1px solid rgba(245, 234, 208, .18);
  box-shadow: 0 38px 100px rgba(0, 0, 0, .65);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(245, 234, 208, .08);
  border: 1px solid rgba(245, 234, 208, .18);
  color: var(--cream);
  font-size: 2rem;
  display: grid;
  place-items: center;
  transition: .25s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(245, 234, 208, .16);
  border-color: var(--bdr2);
}

.lightbox-close {
  top: 26px;
  right: 26px;
}

.lightbox-prev {
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lightbox-counter {
  position: fixed;
  right: 32px;
  bottom: 32px;
  color: var(--muted2);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero {
    padding-bottom: 8vh;
  }

  .hero-meta {
    display: none;
  }

  .intro-layout,
  .experience-section {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item:nth-child(3n) {
    border-right: 1px solid var(--bdr);
  }

  .feature-item:nth-child(even) {
    border-right: 0;
  }

  .feature-item:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--bdr);
  }

  .feature-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--bdr);
  }

  .pillar:last-child {
    border-bottom: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 88px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 6;
    grid-row: span 4;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9),
  .gallery-item:nth-child(10),
  .gallery-item:nth-child(11),
  .gallery-item:nth-child(12) {
    grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 780px) {
  .nav {
    padding: 18px 5%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    right: 5%;
    width: min(330px, 90vw);
    padding: 24px;
    border-radius: 24px;
    background: rgba(28, 19, 9, .95);
    border: 1px solid var(--bdr);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: .32s var(--ease);
  }

  .nav-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .hero {
    padding: 0 5% 8vh;
    min-height: 92svh;
  }

  .hero::after {
    height: 38vh;
  }

  .hero-title {
    font-size: clamp(3.7rem, 18vw, 6rem);
    line-height: 1;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .intro-section,
  .gallery-section,
  .experience-section,
  .places-section {
    padding-top: 65px;
  }

  .pillars-section {
    padding: 88px 5% 0;
  }

  .pillars-header {
    margin-bottom: 42px;
  }

  .features-intro {
    margin-top: 66px;
  }

  .section-title {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .intro-media img {
    height: 380px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .feature-item:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--bdr);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 145px;
    gap: 10px;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 20px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item span {
    left: 14px;
    bottom: 12px;
    font-size: .58rem;
    padding: 7px 11px;
  }

  .gallery-item::before {
    inset: 7px;
    border-radius: 15px;
  }

  .experience-images {
    min-height: auto;
  }

  .experience-main {
    width: 100%;
    height: 420px;
  }

  .experience-small,
  .experience-quote {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    width: 100%;
    margin-top: 16px;
    border: 0;
  }

  .experience-small {
    height: 215px;
  }

  .place-row {
    grid-template-columns: 44px 1fr;
  }

  .place-tag {
    grid-column: 2;
    width: max-content;
  }

  .contact-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  .contact-section::before {
    height: 175px;
  }
}

@media (max-width: 480px) {
  .nav-logo span {
    font-size: .98rem;
  }

  .nav-logo svg {
    width: 28px;
    height: 28px;
  }

  .hero-title {
    font-size: 3.7rem;
  }

  .intro-badge {
    left: 16px;
    right: 16px;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════
   MODO CLARO / ESCURO
   ═══════════════════════════════════════════════════════════ */

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;

  --body-bg: #f3e8d6;
  --nav-scrolled-bg: rgba(248, 240, 226, .92);
  --footer-bg: #2a1b11;
  --experience-small-border: #f0e2ca;

  --text: #3f2b1e;
  --muted: rgba(63, 43, 30, .76);
  --muted2: rgba(63, 43, 30, .56);

  --bdr: rgba(79, 50, 29, .15);
  --bdr2: rgba(79, 50, 29, .27);
  --bdr3: rgba(79, 50, 29, .42);

  --gold: #9f6c31;
  --gold-l: #8b5927;
  --gold-d: #70431d;

  --cream: #3a281c;
  --parch: #2e1e14;
  --white: #25170f;

  /* A imagem continua elegante e escura, mas termina num castanho médio. */
  --hero-fade: linear-gradient(
    180deg,
    rgba(72, 47, 29, 0) 0%,
    rgba(72, 47, 29, .10) 28%,
    rgba(84, 59, 38, .38) 55%,
    rgba(111, 81, 53, .75) 80%,
    #8b6b48 100%
  );

  --intro-bg: linear-gradient(
    180deg,
    #8b6b48 0%,
    #b89468 10%,
    #d9c09a 24%,
    #f3e8d6 48%,
    #f8f1e6 70%,
    #e7d1ad 100%
  );

  --intro-glow:
    radial-gradient(ellipse 54% 42% at 88% 34%, rgba(255, 255, 255, .28), transparent 68%),
    radial-gradient(ellipse 48% 38% at 12% 78%, rgba(255, 248, 232, .24), transparent 70%);

  --pillars-bg: linear-gradient(
    180deg,
    #e7d1ad 0%,
    #e4cca5 16%,
    #ddbd8d 34%,
    #d4ad79 54%,
    #cda06b 74%,
    #c49562 100%
  );

  --pillars-glow: radial-gradient(
    ellipse 62% 52% at 50% 35%,
    rgba(255, 255, 255, .24),
    transparent 70%
  );

  --gallery-bg: linear-gradient(
    180deg,
    #c49562 0%,
    #d7b589 16%,
    #ead7b8 34%,
    #f7efe2 54%,
    #ebd9bc 72%,
    #dfc39c 88%,
    #d9b98e 100%
  );

  --gallery-glow:
    radial-gradient(ellipse 65% 42% at 18% 28%, rgba(255, 255, 255, .32), transparent 64%),
    radial-gradient(ellipse 55% 40% at 88% 70%, rgba(255, 247, 230, .26), transparent 66%);

  --experience-bg: linear-gradient(
    180deg,
    #d9b98e 0%,
    #dfc7a5 12%,
    #ecddc5 30%,
    #f7efe3 52%,
    #efdfc7 72%,
    #e4cba6 100%
  );

  --experience-glow: radial-gradient(
    ellipse 48% 50% at 8% 68%,
    rgba(255, 255, 255, .26),
    transparent 66%
  );

  --places-bg: linear-gradient(
    180deg,
    #e4cba6 0%,
    #ead8bb 14%,
    #f4e9d8 34%,
    #f8f1e6 52%,
    #efdfc8 72%,
    #e3c9a5 88%,
    #dbc09a 100%
  );

  --places-glow: radial-gradient(
    ellipse 58% 38% at 88% 30%,
    rgba(255, 255, 255, .32),
    transparent 64%
  );

  --contact-top-fade: linear-gradient(
    180deg,
    #dbc09a 0%,
    rgba(219, 192, 154, .94) 22%,
    rgba(219, 192, 154, .66) 48%,
    rgba(219, 192, 154, .26) 76%,
    transparent 100%
  );
}

body,
.loader,
.nav,
.theme-toggle,
.nav-toggle,
.features-grid,
.feature-item,
.gallery-item,
.place-row,
.footer {
  transition-property: background-color, color, border-color, box-shadow, opacity, transform;
  transition-duration: .35s;
  transition-timing-function: ease;
}

/* O hero e o contacto mantêm texto claro porque estão sobre fotografias. */
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-desc,
html[data-theme="light"] .hero .btn-secondary,
html[data-theme="light"] .hero-meta span,
html[data-theme="light"] .contact-content h2,
html[data-theme="light"] .contact-content p,
html[data-theme="light"] .contact-section .btn-secondary,
html[data-theme="light"] .intro-badge,
html[data-theme="light"] .experience-quote p,
html[data-theme="light"] .gallery-item span,
html[data-theme="light"] .lightbox-close,
html[data-theme="light"] .lightbox-prev,
html[data-theme="light"] .lightbox-next {
  color: #fbf4e5;
}

html[data-theme="light"] .hero-title em,
html[data-theme="light"] .hero-tag,
html[data-theme="light"] .hero-meta strong {
  color: #e9ca83;
}

.hero .btn-primary,
html[data-theme="light"] .hero .btn-primary {
  color: #2b1b10 !important;
  background: #d9b875 !important;
  border: 1px solid rgba(255, 241, 207, .42);
  box-shadow: 0 14px 34px rgba(30, 17, 8, .22) !important;
}

.hero .btn-primary:hover,
html[data-theme="light"] .hero .btn-primary:hover {
  background: #e4c88d !important;
  transform: translateY(-3px);
}

html[data-theme="light"] .btn-secondary {
  color: #3a281c;
  border-color: rgba(64, 41, 25, .30);
  background: rgba(255, 255, 255, .28);
}

html[data-theme="light"] .feature-item {
  background: rgba(255, 255, 255, .12);
}

html[data-theme="light"] .feature-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 248, 233, .22));
}

html[data-theme="light"] .pillar p {
  color: rgba(55, 37, 25, .76);
}

html[data-theme="light"] .pillar:hover {
  background: rgba(255, 255, 255, .12);
}

html[data-theme="light"] .place-num {
  color: rgba(63, 43, 30, .58);
}

html[data-theme="light"] .place-tag {
  color: #805022;
  border-color: rgba(79, 50, 29, .28);
  background: rgba(255, 255, 255, .18);
}

html[data-theme="light"] .place-row:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, .38), transparent);
}

html[data-theme="light"] .gallery-item {
  border-color: rgba(79, 50, 29, .18);
  box-shadow: 0 22px 64px rgba(83, 52, 29, .18);
}

html[data-theme="light"] .experience-quote,
html[data-theme="light"] .intro-badge,
html[data-theme="light"] .gallery-item span {
  background: rgba(39, 25, 14, .66);
  border-color: rgba(255, 244, 223, .22);
}

html[data-theme="light"] .contact-bg img {
  filter: brightness(.78) saturate(1.02);
}

html[data-theme="light"] .footer {
  color: rgba(245, 234, 208, .60);
  border-color: rgba(232, 208, 160, .15);
}

/* NAVEGAÇÃO NO LIGHT MODE
   Mesma lógica visual do dark mode:
   o fundo bege desvanece dentro da própria barra,
   sem pseudo-elementos, faixas cinzentas ou linhas inferiores. */
html[data-theme="light"] .nav,
html[data-theme="light"] .nav:not(.scrolled) {
  background: linear-gradient(
    180deg,
    rgba(248, 241, 229, .96) 0%,
    rgba(245, 236, 221, .88) 35%,
    rgba(241, 228, 207, .66) 64%,
    rgba(236, 219, 194, .30) 84%,
    rgba(236, 219, 194, 0) 100%
  );
  border: 0;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Ao fazer scroll, a barra fica mais compacta e legível,
   mas continua sem a linha branca inferior. */
html[data-theme="light"] .nav.scrolled {
  background: rgba(248, 241, 229, .94);
  border: 0;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(70, 43, 24, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Logótipo */
html[data-theme="light"] .nav .nav-logo,
html[data-theme="light"] .nav:not(.scrolled) .nav-logo,
html[data-theme="light"] .nav.scrolled .nav-logo {
  color: #553722;
}

html[data-theme="light"] .nav .nav-logo:hover {
  color: #87572b;
}

html[data-theme="light"] .nav .nav-logo svg,
html[data-theme="light"] .nav:not(.scrolled) .nav-logo svg,
html[data-theme="light"] .nav.scrolled .nav-logo svg {
  color: #ad7334;
}

/* Links */
html[data-theme="light"] .nav .nav-menu a,
html[data-theme="light"] .nav:not(.scrolled) .nav-menu a,
html[data-theme="light"] .nav.scrolled .nav-menu a {
  color: #5e3e28;
  text-shadow: none;
}

html[data-theme="light"] .nav .nav-menu a:hover {
  color: #99622d;
}

/* Botão Contacto */
html[data-theme="light"] .nav .nav-cta,
html[data-theme="light"] .nav:not(.scrolled) .nav-cta,
html[data-theme="light"] .nav.scrolled .nav-cta {
  color: #70451f !important;
  background: rgba(255, 252, 246, .28);
  border: 1px solid rgba(103, 64, 30, .22);
  box-shadow: none;
}

html[data-theme="light"] .nav .nav-cta:hover {
  color: #543015 !important;
  background: rgba(255, 252, 246, .58);
  border-color: rgba(103, 64, 30, .34);
}

/* Botão de tema */
html[data-theme="light"] .nav .theme-toggle,
html[data-theme="light"] .nav:not(.scrolled) .theme-toggle,
html[data-theme="light"] .nav.scrolled .theme-toggle {
  color: #9a632d;
  background: rgba(248, 238, 222, .30);
  border: 1px solid rgba(103, 64, 30, .18);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .nav .theme-toggle:hover {
  color: #68401b;
  background: rgba(248, 238, 222, .58);
  border-color: rgba(103, 64, 30, .30);
}

/* Botão do menu mobile */
html[data-theme="light"] .nav .nav-toggle,
html[data-theme="light"] .nav:not(.scrolled) .nav-toggle,
html[data-theme="light"] .nav.scrolled .nav-toggle {
  background: rgba(248, 238, 222, .34);
  border: 1px solid rgba(103, 64, 30, .18);
}

html[data-theme="light"] .nav .nav-toggle span,
html[data-theme="light"] .nav:not(.scrolled) .nav-toggle span,
html[data-theme="light"] .nav.scrolled .nav-toggle span {
  background: #553722;
}

html[data-theme="light"] .loader-title {
  color: #3a281c;
}

html[data-theme="light"] .loader-castle {
  color: #8a5a2f;
}

html[data-theme="light"] .loader-bar {
  background: rgba(79, 50, 29, .14);
}

@media (max-width: 780px) {
  .nav-actions {
    margin-left: auto;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  html[data-theme="light"] .nav-menu {
    background: rgba(249, 243, 233, .97);
    border-color: rgba(103, 64, 30, .14);
    box-shadow: 0 24px 60px rgba(75, 46, 25, .12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  html[data-theme="light"] .nav-menu a {
    color: #553722 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Segurança final: a navegação clara não cria uma segunda faixa abaixo. */
html[data-theme="light"] .nav::before,
html[data-theme="light"] .nav::after {
  content: none !important;
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER NO LIGHT MODE
   Fundo branco/creme muito claro e texto castanho.
   O dark mode mantém-se inalterado.
   ═══════════════════════════════════════════════════════════ */

html[data-theme="light"] .footer {
  background: #e9e0cf !important;
  color: #68462f !important;
  border-top: 1px solid rgba(104, 70, 47, .14) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .footer p {
  color: #68462f !important;
}

/* ═══════════════════════════════════════════════════════════
   REFINAMENTO VISUAL — PALETAS, HEADER E GALERIA EM ÁLBUM
   Mantém a estrutura restante do site.
   ═══════════════════════════════════════════════════════════ */

/* Paleta escura: espresso, nogueira, linho e dourado envelhecido */
:root {
  --c950: #0f0b08;
  --c900: #17110d;
  --c850: #211812;
  --c800: #2b1f17;
  --c750: #3d2d22;
  --c700: #513c2d;
  --c650: #654c37;
  --c600: #795d42;

  --sand: #a98a65;
  --sand-l: #c9aa7c;
  --sand-xl: #e2cfad;

  --amber: #9a6c38;
  --tan: #b58d5f;

  --gold: #bea064;
  --gold-l: #dcc38e;
  --gold-d: #8e6d38;

  --beige: #d1ba96;
  --cream: #e7dac4;
  --parch: #f2e8d6;
  --white: #fbf7ef;

  --text: #ede1ce;
  --muted: rgba(237, 225, 206, .74);
  --muted2: rgba(237, 225, 206, .52);

  --body-bg: #17110d;
  --nav-scrolled-bg: rgba(23, 17, 13, .91);
  --footer-bg: #0f0b08;
  --experience-small-border: #302218;

  --hero-fade: linear-gradient(
    180deg,
    rgba(23, 17, 13, 0) 0%,
    rgba(23, 17, 13, .14) 25%,
    rgba(23, 17, 13, .46) 54%,
    rgba(23, 17, 13, .82) 80%,
    #17110d 100%
  );

  --intro-bg: linear-gradient(
    180deg,
    #17110d 0%,
    #1c1510 11%,
    #2b2018 30%,
    #3d2e23 54%,
    #4c3a2b 77%,
    #594432 100%
  );

  --pillars-bg: linear-gradient(
    180deg,
    #594432 0%,
    #644e3a 19%,
    #705944 42%,
    #765f49 56%,
    #604936 78%,
    #412f23 100%
  );

  --gallery-bg: linear-gradient(
    180deg,
    #412f23 0%,
    #513c2d 17%,
    #66503c 36%,
    #7a624a 55%,
    #65503c 72%,
    #493527 87%,
    #2c2018 100%
  );

  --experience-bg: linear-gradient(
    180deg,
    #2c2018 0%,
    #30241b 18%,
    #3c2d22 42%,
    #49382a 70%,
    #574330 100%
  );

  --places-bg: linear-gradient(
    180deg,
    #574330 0%,
    #604b37 18%,
    #6b5540 40%,
    #594331 66%,
    #3e2d21 84%,
    #211812 100%
  );

  --album-surface: rgba(249, 239, 220, .055);
  --album-surface-strong: rgba(249, 239, 220, .085);
  --album-border: rgba(232, 211, 174, .15);
  --album-line: rgba(232, 211, 174, .12);
  --album-shadow: 0 28px 80px rgba(10, 6, 3, .22);
  --album-label: rgba(242, 232, 214, .62);
}

/* Paleta clara: marfim, linho, taupe e castanho suave */
html[data-theme="light"] {
  --body-bg: #f4efe7;
  --nav-scrolled-bg: rgba(249, 245, 238, .94);
  --footer-bg: #fffdf9;
  --experience-small-border: #eee5d8;

  --text: #3c2e24;
  --muted: rgba(60, 46, 36, .72);
  --muted2: rgba(60, 46, 36, .52);

  --bdr: rgba(77, 56, 39, .13);
  --bdr2: rgba(77, 56, 39, .24);
  --bdr3: rgba(77, 56, 39, .36);

  --gold: #9a6d39;
  --gold-l: #875b2d;
  --gold-d: #6f461f;

  --cream: #403026;
  --parch: #33251d;
  --white: #281c15;

  --hero-fade: linear-gradient(
    180deg,
    rgba(79, 61, 47, 0) 0%,
    rgba(79, 61, 47, .10) 26%,
    rgba(93, 73, 57, .35) 55%,
    rgba(110, 88, 68, .70) 80%,
    #7d6754 100%
  );

  --intro-bg: linear-gradient(
    180deg,
    #7d6754 0%,
    #a18b76 10%,
    #c8b7a2 27%,
    #e8ded1 50%,
    #f6f1e9 72%,
    #e6d8c6 100%
  );

  --pillars-bg: linear-gradient(
    180deg,
    #e6d8c6 0%,
    #e1d2bf 19%,
    #dac8b1 42%,
    #d3bda2 60%,
    #cbb294 80%,
    #c3a889 100%
  );

  --gallery-bg: linear-gradient(
    180deg,
    #c3a889 0%,
    #d2bda3 17%,
    #e7dac9 36%,
    #f7f2ea 55%,
    #eadfce 72%,
    #ddcbb4 88%,
    #d1b99d 100%
  );

  --experience-bg: linear-gradient(
    180deg,
    #d1b99d 0%,
    #dbc7ae 18%,
    #e9dece 38%,
    #f7f3ec 58%,
    #eadfce 78%,
    #dfcfbb 100%
  );

  --places-bg: linear-gradient(
    180deg,
    #dfcfbb 0%,
    #e8dccd 18%,
    #f4eee6 39%,
    #f8f4ed 56%,
    #eadfce 76%,
    #dbc8b0 90%,
    #cfb79a 100%
  );

  --album-surface: rgba(255, 253, 249, .56);
  --album-surface-strong: rgba(255, 253, 249, .76);
  --album-border: rgba(82, 58, 39, .13);
  --album-line: rgba(82, 58, 39, .11);
  --album-shadow: 0 26px 70px rgba(78, 55, 37, .12);
  --album-label: rgba(60, 46, 36, .58);
}

/* Botão principal do hero: cor única e mais sofisticada */
.hero .btn-primary,
html[data-theme="light"] .hero .btn-primary {
  color: #24170f !important;
  background: #c9a76b !important;
  border-color: rgba(255, 242, 213, .38);
  box-shadow: 0 14px 34px rgba(22, 13, 7, .23) !important;
}

.hero .btn-primary:hover,
html[data-theme="light"] .hero .btn-primary:hover {
  background: #d6b87e !important;
  box-shadow: 0 20px 42px rgba(22, 13, 7, .29) !important;
}

/* ───────────────────────────────────────────────────────────
   NOTA EDITORIAL DO HEADER
   Sem caixa pesada: apenas tipografia, linha fina e um véu
   discreto sobre a fotografia.
   ─────────────────────────────────────────────────────────── */

.hero-note {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 11.2vh;
  width: min(390px, 31vw);
  padding: 18px 18px 17px 29px;

  color: #f4ead8;
  border-left: 1px solid rgba(226, 197, 139, .55);

  background: linear-gradient(
    90deg,
    rgba(20, 14, 10, .30) 0%,
    rgba(20, 14, 10, .13) 52%,
    rgba(20, 14, 10, 0) 100%
  );

  text-shadow: 0 5px 20px rgba(10, 6, 3, .30);
}

/* Pequeno ponto dourado sobre a linha vertical */
.hero-note::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7b873;
  box-shadow:
    0 0 0 5px rgba(215, 184, 115, .10),
    0 0 18px rgba(215, 184, 115, .22);
}

.hero-note-label {
  display: block;
  margin-bottom: 10px;
  color: #d9bd82;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero-note p {
  color: #f6ecdc;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.02;
}

.hero-note p em {
  color: #e4c889;
  font-weight: 500;
}

.hero-note-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;

  color: rgba(246, 234, 213, .64);
  font-size: .59rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-note-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(226, 197, 139, .55);
}

/* A nota fica sobre a fotografia em ambos os temas. */
html[data-theme="light"] .hero-note {
  color: #f4ead8;
}

@media (max-width: 1320px) {
  .hero-note {
    width: min(350px, 29vw);
    padding-left: 24px;
  }

  .hero-note p {
    font-size: clamp(1.45rem, 1.95vw, 1.95rem);
  }
}

/* ───────────────────────────────────────────────────────────
   GALERIA ORGANIZADA COMO ÁLBUM
   ─────────────────────────────────────────────────────────── */

.gallery-albums {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 34px;
}

.album-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--album-border);
  background:
    linear-gradient(145deg, var(--album-surface-strong), var(--album-surface));
  box-shadow: var(--album-shadow);
}

.album-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid var(--album-line);
  pointer-events: none;
}

.album-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 5px 21px;
}

.album-number {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-l);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.album-heading h3 {
  color: var(--parch);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1;
}

.album-count {
  padding-bottom: 4px;
  color: var(--album-label);
  font-size: .69rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.album-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: repeat(2, 205px);
  gap: 13px;
  grid-auto-rows: 205px;
  grid-auto-flow: dense;
}

/* Com quatro fotografias cria uma composição editorial.
   Fotografias adicionais entram automaticamente nas linhas seguintes. */
.album-grid .gallery-item {
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(12, 7, 3, .18);
}

.album-grid .gallery-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.album-grid .gallery-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.album-grid .gallery-item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.album-grid .gallery-item:nth-child(4) {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.album-grid .gallery-item:nth-child(n + 5) {
  grid-column: auto;
  grid-row: auto;
}

.album-grid .gallery-item::before {
  inset: 8px;
  border-radius: 14px;
  opacity: .48;
}

.album-grid .gallery-item span {
  left: 16px;
  bottom: 15px;
  padding: 7px 12px;
  font-size: .61rem;
  letter-spacing: .14em;
}

.album-grid .gallery-item:hover {
  transform: translateY(-4px);
}

html[data-theme="light"] .album-grid .gallery-item {
  border-color: rgba(77, 56, 39, .15);
  box-shadow: 0 16px 40px rgba(78, 55, 37, .13);
}

/* Um pouco mais espaço entre o título da galeria e o primeiro álbum */
.gallery-section .section-header {
  margin-bottom: 46px;
}

@media (max-width: 1180px) {
  .hero-note {
    display: none;
  }
}

@media (max-width: 920px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 260px 190px;
    grid-auto-rows: 190px;
  }

  .album-grid .gallery-item:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .album-grid .gallery-item:nth-child(2),
  .album-grid .gallery-item:nth-child(3),
  .album-grid .gallery-item:nth-child(4),
  .album-grid .gallery-item:nth-child(n + 5) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .gallery-albums {
    gap: 22px;
  }

  .album-card {
    padding: 15px;
    border-radius: 24px;
  }

  .album-card::before {
    inset: 7px;
    border-radius: 18px;
  }

  .album-heading {
    align-items: flex-start;
    padding: 4px 3px 16px;
  }

  .album-count {
    padding-top: 7px;
    font-size: .60rem;
  }

  .album-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 250px;
    grid-auto-rows: 185px;
    gap: 10px;
  }

  .album-grid .gallery-item:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .album-grid .gallery-item:nth-child(1) {
    min-height: 250px;
  }
}

/* ═══════════════════════════════════════════════════════════
   CORREÇÃO FINAL — TRANSIÇÃO LOCAIS → CONTACTO
   A primeira cor do contacto coincide exatamente com a última
   cor da secção anterior, eliminando a linha horizontal.
   ═══════════════════════════════════════════════════════════ */

.contact-section {
  margin-top: -2px;
}

/* DARK MODE */
:root {
  --contact-top-fade: linear-gradient(
    180deg,
    #211812 0%,
    rgba(33, 24, 18, .99) 12%,
    rgba(33, 24, 18, .92) 28%,
    rgba(33, 24, 18, .72) 48%,
    rgba(33, 24, 18, .42) 68%,
    rgba(33, 24, 18, .15) 84%,
    transparent 100%
  );
}

/* LIGHT MODE
   #cfb79a é também a última cor de --places-bg. */
html[data-theme="light"] {
  --contact-top-fade: linear-gradient(
    180deg,
    #cfb79a 0%,
    rgba(207, 183, 154, .99) 12%,
    rgba(207, 183, 154, .92) 28%,
    rgba(207, 183, 154, .72) 48%,
    rgba(207, 183, 154, .44) 68%,
    rgba(207, 183, 154, .16) 84%,
    transparent 100%
  );
}

/* O degradê ocupa mais altura para a fotografia aparecer aos poucos. */
.contact-section::before {
  top: -2px;
  height: clamp(310px, 34vh, 440px);
  background: var(--contact-top-fade);
}

/* Suaviza também o próprio início da fotografia. */
.contact-bg img {
  transform: scale(1.015);
}

@media (max-width: 780px) {
  .contact-section::before {
    height: 260px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LOCAIS PRÓXIMOS COM FOTOGRAFIAS
   Cada cartão abre uma galeria própria no lightbox existente.
   ═══════════════════════════════════════════════════════════ */

.places-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.place-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 238px 1fr;
  text-align: left;
  border-radius: 26px;
  color: var(--text);
  border: 1px solid rgba(232, 211, 174, .15);
  background:
    linear-gradient(
      145deg,
      rgba(248, 237, 218, .085),
      rgba(248, 237, 218, .035)
    );
  box-shadow:
    0 24px 64px rgba(10, 6, 3, .18),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  transition:
    transform .4s var(--ease),
    border-color .35s ease,
    box-shadow .4s var(--ease),
    background .35s ease;
}

.place-card:hover {
  transform: translateY(-7px);
  border-color: rgba(232, 211, 174, .30);
  background:
    linear-gradient(
      145deg,
      rgba(248, 237, 218, .12),
      rgba(248, 237, 218, .055)
    );
  box-shadow:
    0 34px 84px rgba(10, 6, 3, .26),
    inset 0 1px 0 rgba(255, 255, 255, .055);
}

.place-card:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 5px;
}

.place-card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.place-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(17, 11, 7, .58) 100%),
    linear-gradient(90deg, rgba(17, 11, 7, .08), transparent 45%);
  pointer-events: none;
}

.place-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(.96) contrast(.98);
  transition:
    transform .75s var(--ease),
    filter .5s ease;
}

.place-card:hover .place-card-media img {
  transform: scale(1.07);
  filter: saturate(1.04) contrast(1);
}

.place-card-count {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(252, 242, 223, .86);
  background: rgba(24, 15, 9, .48);
  border: 1px solid rgba(245, 225, 188, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.place-card-content {
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 21px 22px 22px;
}

.place-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.place-card-num {
  color: var(--gold-l);
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: .13em;
}

.place-card-tag {
  padding: 6px 9px;
  border: 1px solid rgba(232, 211, 174, .16);
  border-radius: 999px;
  color: rgba(238, 219, 185, .68);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.place-card-content > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--parch);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.03;
}

.place-card-text {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
}

.place-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin-top: auto;
  padding-top: 19px;
  color: var(--gold-l);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.place-card-link b {
  font-size: .86rem;
  font-weight: 400;
  transition: transform .3s var(--ease);
}

.place-card:hover .place-card-link b {
  transform: translate(3px, -3px);
}

/* LIGHT MODE */
html[data-theme="light"] .place-card {
  color: #3c2e24;
  border-color: rgba(82, 58, 39, .13);
  background:
    linear-gradient(
      145deg,
      rgba(255, 253, 249, .74),
      rgba(255, 251, 244, .48)
    );
  box-shadow:
    0 22px 56px rgba(78, 55, 37, .10),
    inset 0 1px 0 rgba(255, 255, 255, .55);
}

html[data-theme="light"] .place-card:hover {
  border-color: rgba(82, 58, 39, .23);
  background:
    linear-gradient(
      145deg,
      rgba(255, 253, 249, .92),
      rgba(255, 251, 244, .68)
    );
  box-shadow:
    0 32px 72px rgba(78, 55, 37, .15),
    inset 0 1px 0 rgba(255, 255, 255, .72);
}

html[data-theme="light"] .place-card-content > strong {
  color: #33251d;
}

html[data-theme="light"] .place-card-text {
  color: rgba(60, 46, 36, .70);
}

html[data-theme="light"] .place-card-tag {
  color: rgba(79, 55, 37, .67);
  border-color: rgba(82, 58, 39, .14);
}

html[data-theme="light"] .place-card-num,
html[data-theme="light"] .place-card-link {
  color: #875b2d;
}

@media (max-width: 1080px) {
  .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .places-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .place-card {
    grid-template-rows: 220px 1fr;
    border-radius: 22px;
  }

  .place-card-content {
    min-height: 205px;
    padding: 19px 18px 20px;
  }
}
@media (max-width: 780px) {
  .features-title {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }

  .feature-item {
    min-height: auto;
  }

  .pillar {
    padding: 44px 12px 54px;
  }

  .pillar span {
    margin-bottom: 34px;
  }

  .pillar p {
    min-height: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   TÍTULOS NUMA LINHA E ALINHADOS COM O CONTEÚDO
   ═══════════════════════════════════════════════════════════ */

/* O primeiro cabeçalho usa exatamente a mesma largura da grelha
   das seis características. */
.features-intro,
.features-grid {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.features-intro {
  margin-top: 92px;
  margin-bottom: 36px;
  padding: 0;
}

.features-title {
  max-width: none;
  margin-bottom: 17px;
  font-size: clamp(2.7rem, 3.25vw, 4rem);
  line-height: 1;
  white-space: nowrap;
}

/* O segundo cabeçalho usa exatamente a mesma largura
   dos três cartões abaixo. */
.pillars-header,
.pillars-grid {
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.pillars-header {
  margin-top: 0;
  margin-bottom: 62px;
  padding: 0;
}

.pillars-header .section-title {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 3.25vw, 4rem);
  line-height: 1;
  white-space: nowrap;
}

/* Os parágrafos continuam mais estreitos para facilitar a leitura. */
.features-intro p,
.pillars-header .section-body {
  max-width: 720px;
}

/* Em ecrãs intermédios, reduz o título antes de permitir quebra. */
@media (max-width: 1280px) {
  .features-title,
  .pillars-header .section-title {
    font-size: clamp(2.45rem, 3.15vw, 3.55rem);
  }
}

/* Em tablet e telemóvel, a quebra volta a ser natural. */
@media (max-width: 980px) {
  .features-title,
  .pillars-header .section-title {
    white-space: normal;
    font-size: clamp(2.45rem, 7vw, 3.55rem);
    line-height: 1.04;
  }
}

@media (max-width: 780px) {
  .features-intro {
    margin-top: 66px;
    margin-bottom: 30px;
  }

  .pillars-header {
    margin-bottom: 42px;
  }
}

.intro-section {
  padding-bottom: 55px;
}

.pillars-section {
  padding-top: 32px;
}

/* ═══════════════════════════════════════════════════════════
   ÍCONES DAS CARACTERÍSTICAS — LIGHT MODE E RESPONSIVO
   ═══════════════════════════════════════════════════════════ */

html[data-theme="light"] .feature-item {
  background: rgba(255, 255, 255, .10);
}

html[data-theme="light"] .feature-item:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .50),
    rgba(255, 248, 233, .25)
  );
}

html[data-theme="light"] .feature-icon {
  border-color: rgba(111, 73, 39, .14);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .56),
      rgba(226, 207, 178, .26)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .70),
    0 10px 24px rgba(89, 57, 32, .07);
}

html[data-theme="light"] .feature-icon img {
  opacity: .86;
  filter:
    brightness(0)
    saturate(100%)
    invert(34%)
    sepia(34%)
    saturate(927%)
    hue-rotate(343deg)
    brightness(90%)
    contrast(86%);
}

html[data-theme="light"] .feature-item:hover .feature-icon {
  border-color: rgba(111, 73, 39, .25);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .82),
      rgba(226, 207, 178, .38)
    );
}

@media (max-width: 1100px) {
  .feature-item {
    min-height: 168px;
  }
}

@media (max-width: 780px) {
  .feature-item {
    min-height: 150px;
    padding: 22px 22px 23px;
  }

  .feature-item-top {
    margin-bottom: 16px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }

  .feature-icon img {
    width: 27px;
    height: 27px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LOCALIZAÇÃO
   ═══════════════════════════════════════════════════════════ */

.location-section {
  position: relative;
  isolation: isolate;
  margin-top: -1px;
  padding: 105px 6% 72px;
  background: var(--experience-bg);
}

.location-section::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  z-index: 0;
  pointer-events: none;

  background: radial-gradient(
    ellipse 55% 48% at 85% 45%,
    rgba(245, 234, 208, .09),
    transparent 68%
  );
}

.location-layout {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.location-content .section-title {
  max-width: 620px;
}

.location-details {
  max-width: 600px;
  margin-top: 34px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
}

.location-details div {
  padding: 22px 0;
}

.location-details div + div {
  padding-left: 25px;
  border-left: 1px solid var(--bdr);
}

.location-details span {
  display: block;
  margin-bottom: 7px;

  color: var(--gold-l);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.location-details strong {
  color: var(--cream);
  font-size: .92rem;
  font-weight: 500;
}

.location-button {
  margin-top: 30px;
}

.location-map {
  position: relative;
  min-height: 500px;
  overflow: hidden;

  border: 1px solid var(--bdr);
  border-radius: 32px;

  box-shadow:
    0 34px 90px rgba(0, 0, 0, .24),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.location-map iframe {
  width: 100%;
  height: 500px;
  display: block;

  border: 0;

  filter:
    sepia(.18)
    saturate(.82)
    contrast(.94);
}

.location-map-label {
  position: absolute;
  top: 24px;
  left: 24px;
  right: auto;

  padding: 13px 17px;

  border: 1px solid rgba(245, 234, 208, .20);
  border-radius: 17px;

  background: rgba(28, 19, 9, .68);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 780px) {
.location-map-label {
top: 15px;
left: 15px;
right: auto;
bottom: auto;
}
}

.location-map-label span {
  display: block;
  margin-bottom: 4px;

  color: var(--parch);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.location-map-label strong {
  color: rgba(245, 234, 208, .68);
  font-size: .61rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* LIGHT MODE */

html[data-theme="light"] .location-details strong {
  color: #3c2e24;
}

html[data-theme="light"] .location-map {
  border-color: rgba(82, 58, 39, .14);

  box-shadow:
    0 30px 74px rgba(78, 55, 37, .13),
    inset 0 1px 0 rgba(255, 255, 255, .55);
}

html[data-theme="light"] .location-map iframe {
  filter:
    sepia(.08)
    saturate(.90)
    brightness(1.02)
    contrast(.94);
}

/* RESPONSIVO */

@media (max-width: 1000px) {
  .location-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .location-map,
  .location-map iframe {
    min-height: 450px;
    height: 450px;
  }
}

@media (max-width: 780px) {
  .location-section {
    padding: 78px 5% 42px;
  }

  .places-section {
    padding-top: 54px;
  }

  .location-details {
    grid-template-columns: 1fr;
  }

  .location-details div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--bdr);
  }

  .location-map,
  .location-map iframe {
    min-height: 360px;
    height: 360px;
  }

  .location-map {
    border-radius: 24px;
  }

  .location-map-label {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
}

/* ═══════════════════════════════════════════════════════════
   ESPAÇAMENTO EQUILIBRADO — ONDE ESTAMOS → LOCAIS PRÓXIMOS
   ═══════════════════════════════════════════════════════════ */

.location-section.section {
  padding-bottom: 72px;
}

.places-section.section {
  padding-top: 78px;
}

@media (max-width: 780px) {
  .location-section.section {
    padding: 78px 5% 42px;
  }

  .places-section.section {
    padding-top: 54px;
  }
}

/* ═══════════════════════════════════════════════════════════
   CORREÇÃO FINAL — DEGRADÊ DA LOCALIZAÇÃO E BOTÕES MAIS CLAROS
   ═══════════════════════════════════════════════════════════ */

/* O degradê começa exatamente na cor final da galeria e termina
   exatamente na cor inicial da secção "Locais próximos". */
:root {
  --location-bg: linear-gradient(
    180deg,
    #2c2018 0%,
    #34271e 14%,
    #433228 32%,
    #564232 52%,
    #604c3a 72%,
    #5d4937 88%,
    #574330 100%
  );

  --action-button-bg: linear-gradient(
    135deg,
    #ead6ac 0%,
    #d5b477 58%,
    #c99a5d 100%
  );

  --action-button-bg-hover: linear-gradient(
    135deg,
    #f2e2c0 0%,
    #dfc18b 58%,
    #d4aa70 100%
  );

  --action-button-text: #2b1b10;
}

html[data-theme="light"] {
  --location-bg: linear-gradient(
    180deg,
    #d1b99d 0%,
    #dbc6aa 14%,
    #eadcc9 32%,
    #f7f1e8 52%,
    #f1e7da 70%,
    #e7d9c6 86%,
    #dfcfbb 100%
  );

  --action-button-bg: linear-gradient(
    135deg,
    #fbf1df 0%,
    #ecd7ae 58%,
    #dfbd87 100%
  );

  --action-button-bg-hover: linear-gradient(
    135deg,
    #fff8eb 0%,
    #f2dfbc 58%,
    #e8ca98 100%
  );

  --action-button-text: #3b281b;
}

/* Degradê vertical visível e contínuo */
.location-section,
.location-section.section {
  background: var(--location-bg) !important;
}

/* Mantém uma luz suave no centro sem criar uma faixa plana */
.location-section::before {
  inset: 5% 0 6%;
  background:
    radial-gradient(
      ellipse 58% 46% at 84% 44%,
      rgba(255, 255, 255, .15),
      transparent 68%
    ),
    radial-gradient(
      ellipse 42% 34% at 16% 68%,
      rgba(255, 248, 235, .08),
      transparent 72%
    );
}

/* Botões "Como chegar" e "WhatsApp" mais claros.
   O botão principal do hero não é alterado. */
.location-button.btn-primary,
.contact-actions .btn-primary {
  color: var(--action-button-text) !important;
  background: var(--action-button-bg) !important;
  border: 1px solid rgba(255, 247, 228, .54) !important;
  box-shadow:
    0 14px 32px rgba(54, 34, 19, .16),
    inset 0 1px 0 rgba(255, 255, 255, .42) !important;
}

.location-button.btn-primary:hover,
.contact-actions .btn-primary:hover {
  color: var(--action-button-text) !important;
  background: var(--action-button-bg-hover) !important;
  border-color: rgba(255, 250, 238, .74) !important;
  box-shadow:
    0 20px 42px rgba(54, 34, 19, .20),
    inset 0 1px 0 rgba(255, 255, 255, .58) !important;
  transform: translateY(-3px);
}

/* No modo claro, mantém contraste suficiente sem ficarem castanho-escuros */
html[data-theme="light"] .location-button.btn-primary,
html[data-theme="light"] .contact-actions .btn-primary {
  color: #3b281b !important;
}

@media (max-width: 780px) {
  .location-section::before {
    inset: 4% 0 5%;
  }
}


/* ═══════════════════════════════════════════════════════════
   VERSÃO DINÂMICA — HEADER, NAVEGAÇÃO E LOCAIS PRÓXIMOS
   Adicionado em 2026. Mantém a identidade castanho/bege.
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   NAVEGAÇÃO FLUTUANTE
   ─────────────────────────────────────────────────────────── */
.nav {
  inset: 14px 2.5% auto 2.5%;
  width: auto;
  padding: 11px 14px 11px 19px;
  border: 1px solid rgba(244, 226, 193, .16);
  border-radius: 22px;
  background: rgba(18, 12, 8, .34);
  box-shadow:
    0 14px 42px rgba(8, 5, 3, .12),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(17px) saturate(1.08);
  -webkit-backdrop-filter: blur(17px) saturate(1.08);
  transition:
    inset .35s var(--ease),
    padding .35s var(--ease),
    border-radius .35s var(--ease),
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s var(--ease);
}

.nav::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7b873, #f0d9a5);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  opacity: .78;
  pointer-events: none;
}

.nav.scrolled {
  inset: 8px 3.5% auto 3.5%;
  padding: 9px 12px 9px 17px;
  border-radius: 20px;
  background: rgba(23, 17, 13, .88);
  border: 1px solid rgba(232, 211, 174, .17);
  box-shadow:
    0 18px 50px rgba(8, 5, 3, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.nav-logo {
  gap: 10px;
}

.nav-logo > svg {
  width: 38px;
  height: 38px;
  padding: 5px;
  border: 1px solid rgba(226, 197, 139, .20);
  border-radius: 13px;
  background: rgba(245, 234, 208, .055);
  transition: transform .35s var(--ease), background .35s ease;
}

.nav-logo:hover > svg {
  transform: translateY(-2px) rotate(-2deg);
  background: rgba(245, 234, 208, .10);
}

.nav-brand {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.nav-brand strong {
  color: #f2e8d6;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.nav-brand small {
  color: rgba(242, 232, 214, .54);
  font-family: var(--sans);
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-menu {
  gap: clamp(18px, 2.15vw, 32px);
}

.nav-menu a:not(.nav-cta) {
  position: relative;
  padding: 11px 0;
}

.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: #dec48d;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-menu a.active:not(.nav-cta) {
  color: #f0d8a5;
}

.nav-cta {
  padding: 10px 19px;
  background: rgba(222, 196, 141, .11);
  border-color: rgba(232, 211, 174, .27);
}

/* O topo do modo claro continua escuro sobre a fotografia.
   Depois do scroll passa para um vidro claro. */
html[data-theme="light"] .nav:not(.scrolled) {
  background: rgba(18, 12, 8, .34) !important;
  border-color: rgba(244, 226, 193, .18) !important;
  box-shadow:
    0 14px 42px rgba(8, 5, 3, .12),
    inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="light"] .nav:not(.scrolled) .nav-brand strong {
  color: #3b2b21 !important;
}

html[data-theme="light"] .nav:not(.scrolled) .nav-menu a {
  color: #4a2f1d !important;
  -webkit-text-fill-color: #4a2f1d !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .nav:not(.scrolled) .nav-brand small {
  color: rgba(242, 232, 214, .54) !important;
}

html[data-theme="light"] .nav:not(.scrolled) .nav-logo svg,
html[data-theme="light"] .nav:not(.scrolled) .theme-toggle {
  color: #dcc38e !important;
}

html[data-theme="light"] .nav.scrolled {
  background: rgba(249, 245, 238, .90) !important;
  border-color: rgba(77, 56, 39, .13) !important;
  box-shadow:
    0 18px 50px rgba(78, 55, 37, .13),
    inset 0 1px 0 rgba(255, 255, 255, .68) !important;
}

html[data-theme="light"] .nav.scrolled .nav-brand strong {
  color: #3b2b21 !important;
}

html[data-theme="light"] .nav.scrolled .nav-brand small {
  color: rgba(60, 46, 36, .50) !important;
}

/* ───────────────────────────────────────────────────────────
   HERO INTERATIVO
   ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  align-items: center;
  padding: 145px 6% 92px;
  isolation: isolate;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

.hero-bg {
  background: #17110d;
}

.hero-img {
  position: absolute;
  inset: -1.5%;
  width: 103%;
  height: 103%;
  opacity: 1;
  transform: scale(1.045) translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) !important;
  transform-origin: center;
  filter: brightness(1.09) saturate(1.02) contrast(.98);
  will-change: transform, opacity;
  transition:
    opacity .85s ease,
    transform 1.4s var(--ease),
    filter .85s ease !important;
}

.hero-img-next {
  z-index: 1;
  opacity: 0;
}

.hero-img-next.visible {
  opacity: 1;
}

.hero.hero-changing .hero-img-current {
  opacity: 0;
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 8, 5, .84) 0%, rgba(15, 10, 6, .54) 39%, rgba(18, 10, 4, .19) 70%, rgba(18, 10, 4, .13) 100%),
    linear-gradient(180deg, rgba(12, 8, 5, .48) 0%, transparent 24%),
    linear-gradient(0deg, #17110d 0%, rgba(18, 10, 4, .74) 13%, rgba(18, 10, 4, .28) 33%, transparent 62%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .20;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 105px 2.7% 28px;
  border: 1px solid rgba(246, 227, 190, .105);
  border-radius: 30px;
  pointer-events: none;
}

.hero::after {
  z-index: 4;
  height: 45vh;
}

.hero-content {
  z-index: 5;
  width: min(780px, 58vw);
  max-width: none;
  margin-top: 40px;
}

.hero-tag {
  margin-bottom: 18px;
  font-size: .67rem;
  letter-spacing: .23em;
}

.hero-title {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(4.5rem, 8.8vw, 8.7rem);
  line-height: .88;
  letter-spacing: -.045em;
}

.hero-title em {
  display: inline-block;
  text-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.hero-desc {
  max-width: 560px;
  margin-bottom: 29px;
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
}

.hero-highlights {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(242, 226, 197, .17);
  border-bottom: 1px solid rgba(242, 226, 197, .13);
}

.hero-highlights > span {
  min-width: 150px;
  padding: 14px 22px 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 236, 216, .71);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hero-highlights > span + span {
  padding-left: 22px;
  border-left: 1px solid rgba(242, 226, 197, .13);
}

.hero-highlights b {
  color: #d9bd82;
  font-family: var(--serif);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.hero-showcase {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: 6%;
  width: min(360px, 30vw);
  padding: 19px;
  border: 1px solid rgba(244, 226, 193, .17);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(20, 13, 8, .49), rgba(20, 13, 8, .24));
  box-shadow:
    0 28px 80px rgba(7, 4, 2, .20),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  transform: translateY(-39%);
}

.hero-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 3px 14px;
  border-bottom: 1px solid rgba(242, 226, 197, .14);
}

.hero-showcase-head > span {
  color: rgba(246, 234, 213, .58);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-showcase-head strong {
  color: #f1dec0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.hero-showcase-head strong i {
  margin: 0 4px;
  color: rgba(241, 222, 192, .35);
  font-style: normal;
  font-weight: 400;
}

.hero-switcher {
  display: grid;
}

.hero-choice {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 13px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(242, 226, 197, .105);
  opacity: .62;
  transition: opacity .3s ease, padding .35s var(--ease);
}

.hero-choice:last-child {
  border-bottom: 0;
}

.hero-choice:hover,
.hero-choice.active {
  padding-left: 9px;
  opacity: 1;
}

.hero-choice:focus-visible {
  outline: 2px solid #dcc38e;
  outline-offset: 4px;
  border-radius: 12px;
}

.hero-choice-num {
  color: #d9bd82;
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .08em;
}

.hero-choice-copy {
  display: grid;
  gap: 3px;
}

.hero-choice-copy strong {
  color: #f5ead8;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}

.hero-choice-copy small {
  color: rgba(246, 234, 213, .52);
  font-size: .61rem;
  letter-spacing: .06em;
}

.hero-choice-line {
  position: absolute;
  left: 44px;
  right: 4px;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
}

.hero-choice-line::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #d9bd82, transparent);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-choice.active .hero-choice-line::after {
  animation: heroChoiceProgress 6.5s linear forwards;
}

@keyframes heroChoiceProgress {
  to { transform: scaleX(1); }
}

.hero-scroll {
  position: absolute;
  z-index: 6;
  right: 6%;
  bottom: 31px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(246, 234, 213, .56);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.hero-scroll:hover {
  color: #f2dbad;
}

.hero-scroll i {
  position: relative;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(246, 226, 190, .22);
  border-radius: 999px;
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 1px;
  height: 8px;
  background: #dcc38e;
  transform: translateX(-50%);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: .35; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* O conteúdo do hero mantém-se claro nos dois temas. */
html[data-theme="light"] .hero-highlights > span,
html[data-theme="light"] .hero-showcase,
html[data-theme="light"] .hero-choice-copy strong,
html[data-theme="light"] .hero-choice-copy small,
html[data-theme="light"] .hero-showcase-head,
html[data-theme="light"] .hero-scroll {
  color: inherit;
}

/* ───────────────────────────────────────────────────────────
   FILTROS E DISTÂNCIAS DOS LOCAIS
   ─────────────────────────────────────────────────────────── */
.places-toolbar {
  max-width: 1240px;
  margin: -22px auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.places-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.place-filter {
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid rgba(232, 211, 174, .17);
  border-radius: 999px;
  color: rgba(242, 226, 197, .69);
  background: rgba(248, 237, 218, .045);
  font-size: .60rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition:
    color .3s ease,
    background .3s ease,
    border-color .3s ease,
    transform .3s var(--ease);
}

.place-filter:hover {
  transform: translateY(-2px);
  color: var(--parch);
  border-color: rgba(232, 211, 174, .30);
}

.place-filter.active {
  color: #2a1a10;
  background: #d7b873;
  border-color: #d7b873;
}

.place-filter:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 3px;
}

.places-result {
  flex: 0 0 auto;
  color: var(--muted2);
  font-size: .63rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.place-card {
  grid-template-rows: 238px 1fr;
}

.place-card.is-filtered-out {
  display: none;
}

.place-card-distance {
  position: absolute;
  z-index: 3;
  left: 15px;
  top: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 238, 204, .20);
  border-radius: 999px;
  color: #fff3dd;
  background: rgba(21, 13, 8, .56);
  box-shadow: 0 9px 22px rgba(10, 6, 3, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .59rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.place-card-content {
  min-height: 246px;
}

.place-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
}

.place-card-travel {
  max-width: 52%;
  color: var(--muted2);
  font-size: .62rem;
  line-height: 1.45;
  letter-spacing: .045em;
}

.place-card-footer .place-card-link {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 0;
}

/* ───────────────────────────────────────────────────────────
   ROTA DENTRO DO LIGHTBOX
   ─────────────────────────────────────────────────────────── */
.lightbox-route {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 69px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(245, 225, 188, .23);
  border-radius: 999px;
  color: #f5e7ce;
  background: rgba(24, 15, 9, .58);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  transition: background .3s ease, transform .3s var(--ease), border-color .3s ease;
}

.lightbox-route:hover {
  background: rgba(245, 225, 188, .15);
  border-color: rgba(245, 225, 188, .42);
  transform: translateX(-50%) translateY(-2px);
}

.lightbox-route[hidden] {
  display: none;
}

/* ───────────────────────────────────────────────────────────
   LIGHT MODE DOS NOVOS ELEMENTOS
   ─────────────────────────────────────────────────────────── */
html[data-theme="light"] .place-filter {
  color: rgba(60, 46, 36, .68);
  border-color: rgba(82, 58, 39, .14);
  background: rgba(255, 253, 249, .47);
}

html[data-theme="light"] .place-filter:hover {
  color: #3c2e24;
  border-color: rgba(82, 58, 39, .24);
}

html[data-theme="light"] .place-filter.active {
  color: #fff9ee;
  background: #8b6237;
  border-color: #8b6237;
}

html[data-theme="light"] .place-card-distance {
  color: #fff7e9;
  background: rgba(42, 27, 17, .62);
}

/* ───────────────────────────────────────────────────────────
   RESPONSIVO
   ─────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .hero-content {
    width: min(700px, 59vw);
  }

  .hero-showcase {
    right: 4.5%;
    width: min(330px, 30vw);
  }

  .hero-choice {
    min-height: 66px;
  }

  .nav-menu {
    gap: 18px;
  }

  .nav-menu a {
    font-size: .71rem;
  }
}

@media (max-width: 1020px) {
  .nav-brand small {
    display: none;
  }

  .hero-content {
    width: min(650px, 65vw);
  }

  .hero-showcase {
    top: 116px;
    right: 4.5%;
    width: auto;
    padding: 8px;
    border-radius: 999px;
    transform: none;
  }

  .hero-showcase-head,
  .hero-choice-copy,
  .hero-choice-line {
    display: none;
  }

  .hero-switcher {
    display: flex;
    gap: 5px;
  }

  .hero-choice {
    min-width: 42px;
    min-height: 42px;
    width: 42px;
    height: 42px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
  }

  .hero-choice:hover,
  .hero-choice.active {
    padding-left: 0;
    border-color: rgba(226, 197, 139, .38);
    background: rgba(226, 197, 139, .12);
  }

  .hero-choice-num {
    font-size: .72rem;
  }
}

@media (max-width: 860px) {
  .nav {
    inset: 10px 4% auto 4%;
    padding: 9px 10px 9px 14px;
  }

  .nav.scrolled {
    inset: 7px 4% auto 4%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    top: 76px;
    right: 4%;
    width: min(360px, 92vw);
    padding: 22px;
    border-radius: 23px;
    background: rgba(23, 17, 13, .96);
    border: 1px solid rgba(232, 211, 174, .16);
  }

  .nav-menu a:not(.nav-cta) {
    width: 100%;
    padding: 7px 0;
  }

  html[data-theme="light"] .nav-menu {
    background: rgba(249, 245, 238, .98) !important;
  }

  html[data-theme="light"] .nav-menu a:not(.nav-cta) {
    color: #4a3527 !important;
  }

  .hero {
    min-height: 96svh;
    padding: 138px 5% 72px;
    align-items: flex-end;
  }

  .hero::before {
    inset: 94px 3% 19px;
    border-radius: 25px;
  }

  .hero-content {
    width: 100%;
    max-width: 680px;
    margin-top: 0;
  }

  .hero-title {
    font-size: clamp(4rem, 15.5vw, 6.5rem);
  }

  .hero-showcase {
    top: 108px;
    right: 5%;
  }

  .hero-highlights {
    margin-top: 27px;
  }

  .hero-highlights > span {
    min-width: auto;
    padding-right: 16px;
    font-size: .58rem;
  }

  .hero-highlights > span + span {
    padding-left: 16px;
  }

  .hero-scroll {
    display: none;
  }

  .places-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -16px;
  }
}

@media (max-width: 620px) {
  .nav-brand strong {
    font-size: .83rem;
    letter-spacing: .065em;
  }

  .nav-logo > svg {
    width: 34px;
    height: 34px;
  }

  .nav-actions {
    margin-left: 10px;
    gap: 7px;
  }

  .theme-toggle,
  .nav-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero {
    min-height: 94svh;
    padding: 126px 5% 56px;
  }

  .hero::before {
    inset: 84px 3% 16px;
  }

  .hero-title {
    margin-bottom: 18px;
    font-size: clamp(3.7rem, 18vw, 5.1rem);
  }

  .hero-tag {
    max-width: 74%;
    line-height: 1.55;
  }

  .hero-desc {
    max-width: 94%;
    margin-bottom: 23px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
  }

  .hero-highlights > span {
    min-height: 48px;
    padding: 11px 10px 11px 0;
    line-height: 1.4;
  }

  .hero-highlights > span + span {
    padding-left: 10px;
  }

  .hero-highlights > span:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid rgba(242, 226, 197, .13);
    border-left: 0;
  }

  .hero-showcase {
    top: 91px;
    right: 5%;
    padding: 5px;
  }

  .hero-choice {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }

  .places-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .place-filter {
    width: 100%;
    padding-inline: 10px;
  }

  .place-card-distance {
    left: 12px;
    top: 12px;
  }

  .place-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .place-card-travel {
    max-width: 100%;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox img {
    max-width: 94vw;
    max-height: 72vh;
    border-radius: 20px;
  }

  .lightbox-route {
    bottom: 73px;
    max-width: calc(100vw - 36px);
    width: max-content;
    justify-content: center;
    text-align: center;
  }

  .lightbox-caption {
    bottom: 31px;
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .hero-choice,
  .hero-choice-line::after,
  .hero-scroll i::after,
  .place-card,
  .nav {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   VERSÃO 2 — HEADER CLÁSSICO MELHORADO + NOVOS LOCAIS
   ═══════════════════════════════════════════════════════════ */
.hero-classic {
  --hero-note-x: 0px;
  --hero-note-y: 0px;
}

.hero-classic .hero-img-static {
  transform:
    translate3d(var(--hero-shift-x, 0), var(--hero-shift-y, 0), 0)
    scale(1.055);
  transition: transform 1.1s var(--ease), filter .6s ease;
  will-change: transform;
}

.hero-classic .hero-img-static.loaded {
  transform:
    translate3d(var(--hero-shift-x, 0), var(--hero-shift-y, 0), 0)
    scale(1.015);
}

.hero-classic .hero-light {
  position: absolute;
  z-index: 3;
  top: 17%;
  right: 16%;
  width: min(390px, 32vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(237, 204, 139, .15) 0%, rgba(237, 204, 139, .055) 36%, transparent 70%);
  filter: blur(8px);
  animation: heroLightBreath 6s ease-in-out infinite;
}

@keyframes heroLightBreath {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hero-classic .hero-content {
  width: min(790px, 60vw);
}

.hero-ribbon {
  width: max-content;
  max-width: 100%;
  margin-top: 29px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  border: 1px solid rgba(245, 229, 199, .13);
  border-radius: 999px;
  color: rgba(247, 236, 216, .68);
  background: rgba(24, 15, 9, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .59rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hero-ribbon i {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: #d9bd82;
  box-shadow: 0 0 10px rgba(217, 189, 130, .42);
}

.hero-classic .hero-note-enhanced {
  bottom: 12.2vh;
  width: min(390px, 31vw);
  padding: 27px 27px 24px 31px;
  border: 1px solid rgba(239, 218, 178, .16);
  border-left: 1px solid rgba(226, 197, 139, .62);
  border-radius: 0 24px 24px 0;
  background: linear-gradient(135deg, rgba(20, 13, 8, .49), rgba(20, 13, 8, .18));
  box-shadow: 0 25px 70px rgba(7, 4, 2, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(15px) saturate(1.05);
  -webkit-backdrop-filter: blur(15px) saturate(1.05);
  transform: translate3d(var(--hero-note-x), var(--hero-note-y), 0);
  transition: transform .7s var(--ease), border-color .35s ease, background .35s ease;
}

.hero-classic .hero-note-enhanced:hover {
  border-color: rgba(239, 218, 178, .28);
  background: linear-gradient(135deg, rgba(28, 18, 11, .59), rgba(20, 13, 8, .24));
}

.hero-word-wrap {
  margin-top: 19px;
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  border-top: 1px solid rgba(244, 226, 193, .13);
  color: rgba(246, 234, 213, .55);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-word-wrap strong {
  color: #e3c789;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: lowercase;
  transition: opacity .22s ease, transform .22s var(--ease);
}

.hero-word-wrap strong.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.hero-note-link {
  margin-top: 19px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ead6aa;
  font-size: .61rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: gap .3s var(--ease), color .3s ease;
}

.hero-note-link:hover {
  gap: 14px;
  color: #fff0cf;
}

.places-toolbar {
  align-items: flex-end;
}

.places-toolbar-main {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.places-search {
  min-width: 225px;
  min-height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(232, 211, 174, .17);
  border-radius: 999px;
  color: var(--muted2);
  background: rgba(245, 234, 208, .05);
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}

.places-search:focus-within {
  border-color: rgba(232, 211, 174, .39);
  background: rgba(245, 234, 208, .09);
  transform: translateY(-1px);
}

.places-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--parch);
  background: transparent;
  font: inherit;
  font-size: .72rem;
  letter-spacing: .035em;
}

.places-search input::placeholder {
  color: var(--muted2);
}

.places-search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: .55;
}

.place-card-media-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(237, 208, 151, .14), transparent 45%),
    linear-gradient(145deg, rgba(82, 56, 35, .96), rgba(42, 28, 18, .98));
}

.place-card-placeholder {
  position: relative;
  z-index: 2;
  max-width: 82%;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: rgba(239, 218, 178, .72);
  text-align: center;
  transition: transform .4s var(--ease), color .3s ease;
}

.place-card-placeholder svg {
  opacity: .78;
}

.place-card-placeholder > span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.place-card-placeholder small {
  color: rgba(239, 218, 178, .40);
  font-size: .55rem;
  letter-spacing: .06em;
}

.place-card:hover .place-card-placeholder {
  color: #f1d9a7;
  transform: translateY(-4px);
}

.place-card-media-placeholder::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px dashed rgba(239, 218, 178, .15);
  border-radius: 21px;
  pointer-events: none;
}

.places-note {
  max-width: 1240px;
  margin: 28px auto 0;
  color: var(--muted2);
  font-size: .68rem;
  line-height: 1.65;
  letter-spacing: .035em;
}

.place-card-image-error .place-card-media img {
  display: none;
}

.place-card-image-error .place-card-media {
  background:
    radial-gradient(circle at 50% 20%, rgba(237, 208, 151, .14), transparent 45%),
    linear-gradient(145deg, rgba(82, 56, 35, .96), rgba(42, 28, 18, .98));
}

.place-card-image-error .place-card-media::before {
  content: "Fotografia indisponível";
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(239, 218, 178, .72);
  font-family: var(--serif);
  font-size: 1.12rem;
}

html[data-theme="light"] .places-search {
  color: rgba(60, 46, 36, .55);
  border-color: rgba(82, 58, 39, .14);
  background: rgba(255, 253, 249, .48);
}

html[data-theme="light"] .places-search:focus-within {
  border-color: rgba(82, 58, 39, .28);
  background: rgba(255, 253, 249, .74);
}

html[data-theme="light"] .places-search input {
  color: #3c2e24;
}

html[data-theme="light"] .places-search input::-webkit-search-cancel-button {
  filter: none;
}

@media (max-width: 1180px) {
  .hero-classic .hero-note {
    display: block;
    right: 4.5%;
    width: min(330px, 30vw);
    padding: 22px 22px 20px 25px;
  }

  .hero-classic .hero-note p {
    font-size: clamp(1.35rem, 1.85vw, 1.8rem);
  }

  .hero-classic .hero-content {
    width: min(690px, 61vw);
  }
}

@media (max-width: 980px) {
  .hero-classic .hero-note {
    display: none;
  }

  .hero-classic .hero-content {
    width: min(760px, 88vw);
  }

  .hero-classic .hero-light {
    right: -8%;
    width: 58vw;
  }

  .places-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .places-toolbar-main {
    align-items: stretch;
    flex-direction: column;
  }

  .places-search {
    width: min(100%, 420px);
  }

  .places-result {
    align-self: flex-start;
  }
}

@media (max-width: 620px) {
  .hero-ribbon {
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
    gap: 8px;
    line-height: 1.5;
  }

  .hero-ribbon i {
    display: none;
  }

  .hero-ribbon span {
    width: 100%;
  }

  .places-search {
    width: 100%;
    min-width: 0;
  }

  .place-card-placeholder small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-classic .hero-light,
  .hero-word-wrap strong,
  .place-card-placeholder {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* Nome da casa mais claro na caixa do mapa */
.location-map-label span {
color: #f8ead2 !important;
font-weight: 600;
text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

/* Texto dos locais próximos numa só linha em ecrãs grandes */
.places-section .section-body {
max-width: 1000px;
white-space: nowrap;
}

/* Em telemóvel, permite novamente a quebra de linha */
@media (max-width: 900px) {
.places-section .section-body {
white-space: normal;
}
}

/* Ícone no botão do WhatsApp */
.contact-actions .btn-whatsapp {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
}

.contact-actions .btn-whatsapp img {
width: 21px;
height: 21px;
flex: 0 0 21px;
object-fit: contain;
}

/* =========================================================
CORREÇÃO DO HEADER EM TABLET E JANELAS INTERMÉDIAS
========================================================= */
@media (max-width: 1100px) {
.nav {
inset: 10px 4% auto 4%;
padding: 9px 11px 9px 15px;
}

.nav.scrolled {
inset: 7px 4% auto 4%;
padding: 9px 11px 9px 15px;
}

.nav-logo {
min-width: 0;
}

.nav-brand small {
display: none;
}

.nav-brand strong {
white-space: nowrap;
}

.nav-actions {
margin-left: auto;
flex-shrink: 0;
}

.nav-toggle {
display: flex;
}

.nav-menu {
position: fixed;
z-index: 1001;


top: 82px;
left: 4%;
right: 4%;

width: auto;
margin: 0;
padding: 20px;

display: flex;
flex-direction: column;
align-items: stretch;
gap: 8px;

border: 1px solid rgba(232, 211, 174, .18);
border-radius: 23px;

background: rgba(23, 17, 13, .97);
box-shadow: 0 22px 60px rgba(8, 5, 3, .28);

backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);

opacity: 0;
visibility: hidden;
pointer-events: none;

transform: translateY(-10px) scale(.98);

transition:
  opacity .28s ease,
  visibility .28s ease,
  transform .35s var(--ease);


}

.nav-menu.active {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0) scale(1);
}

.nav-menu li {
width: 100%;
}

.nav-menu a,
.nav-menu a:not(.nav-cta) {
width: 100%;
min-height: 44px;


display: flex;
align-items: center;
justify-content: center;

padding: 11px 14px;
border-radius: 13px;


}

.nav-menu a:not(.nav-cta):hover,
.nav-menu a:not(.nav-cta).active {
background: rgba(245, 234, 208, .07);
}

.nav-cta {
margin-top: 5px;
justify-content: center;
}

html[data-theme="light"] .nav-menu {
background: rgba(249, 245, 238, .98) !important;
border-color: rgba(103, 64, 30, .16) !important;
box-shadow: 0 22px 60px rgba(67, 43, 25, .18);
}

html[data-theme="light"] .nav-menu a:not(.nav-cta) {
color: #4a3527 !important;
}

html[data-theme="light"] .nav-menu a:not(.nav-cta):hover,
html[data-theme="light"] .nav-menu a:not(.nav-cta).active {
background: rgba(103, 64, 30, .07);
}
}

@media (max-width: 620px) {
.nav-brand strong {
max-width: 170px;
overflow: hidden;
text-overflow: ellipsis;
}

.nav-menu {
top: 74px;
}
}

/* =========================================================
ETIQUETA DO MAPA — RESPONSIVA E NO CANTO SUPERIOR ESQUERDO
========================================================= */

.location-map-label {
top: 24px !important;
left: 24px !important;
right: auto !important;
bottom: auto !important;

width: max-content;
max-width: calc(100% - 48px);

padding: 13px 17px;
}

.location-map-label span,
.location-map-label strong {
max-width: 100%;
overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 780px) {
.location-map-label {
top: 15px !important;
left: 15px !important;
right: auto !important;
bottom: auto !important;


width: max-content;
max-width: calc(100% - 30px);

padding: 11px 14px;
border-radius: 14px;


}

.location-map-label span {
margin-bottom: 3px;
font-size: 1rem;
line-height: 1.2;
}

.location-map-label strong {
display: block;
font-size: .56rem;
line-height: 1.45;
letter-spacing: .09em;
}
}

/* Telemóveis pequenos */
@media (max-width: 420px) {
.location-map-label {
top: 12px !important;
left: 12px !important;


max-width: calc(100% - 24px);
padding: 10px 12px;


}

.location-map-label span {
font-size: .92rem;
}

.location-map-label strong {
font-size: .52rem;
letter-spacing: .07em;
}
}

/* =========================================================
   CORREÇÃO FINAL — FOTOGRAFIAS DOS LOCAIS E SETAS NO iOS
   ========================================================= */

/* Mantém todas as capas dos cartões com uma área estável. */
.place-card {
  grid-template-rows: 238px minmax(0, 1fr) !important;
}

.place-card-media {
  width: 100%;
  height: 238px !important;
  min-height: 238px !important;
  max-height: 238px !important;
  overflow: hidden;
  isolation: isolate;
}

/* Corrige fotografias verticais, horizontais e metadados de rotação
   no Safari/iPhone sem esticar nem deformar a imagem. */
.place-card-media > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
}

/* A seta do cartão é desenhada em CSS, evitando o emoji azul do iOS. */
.place-card-link b {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  overflow: visible;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: translate(0, 0);
  transition: transform .3s var(--ease);
}

.place-card-link b::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}

.place-card-link b::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.place-card:hover .place-card-link b {
  transform: translate(3px, -3px) !important;
}

/* As setas da galeria também deixam de depender de caracteres Unicode. */
.lightbox-prev,
.lightbox-next {
  font-size: 0 !important;
}

.lightbox-prev::before,
.lightbox-next::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.lightbox-prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.lightbox-next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

@media (max-width: 680px) {
  .place-card {
    grid-template-rows: 220px auto !important;
  }

  .place-card-media {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }
}

@media (max-width: 420px) {
  .place-card {
    grid-template-rows: 205px auto !important;
  }

  .place-card-media {
    height: 205px !important;
    min-height: 205px !important;
    max-height: 205px !important;
  }
}

/* =========================================================
   CORREÇÃO FINAL — HEADER CLARO NO TOPO EM TABLET/TELEMÓVEL
   No modo claro, o cabeçalho deixa de começar escuro antes do scroll.
   ========================================================= */

@media (max-width: 1100px) {
  html[data-theme="light"] .nav:not(.scrolled),
  html[data-theme="light"] .nav.scrolled {
    background: rgba(249, 245, 238, .96) !important;
    border: 1px solid rgba(77, 56, 39, .13) !important;
    box-shadow:
      0 14px 38px rgba(78, 55, 37, .13),
      inset 0 1px 0 rgba(255, 255, 255, .72) !important;
    backdrop-filter: blur(18px) saturate(1.04) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.04) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-brand strong,
  html[data-theme="light"] .nav.scrolled .nav-brand strong {
    color: #3b2b21 !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-brand small,
  html[data-theme="light"] .nav.scrolled .nav-brand small {
    color: rgba(59, 43, 33, .58) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-logo,
  html[data-theme="light"] .nav.scrolled .nav-logo {
    color: #553722 !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-logo > svg,
  html[data-theme="light"] .nav.scrolled .nav-logo > svg {
    color: #9a632d !important;
    background: rgba(255, 252, 246, .42) !important;
    border-color: rgba(103, 64, 30, .16) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .theme-toggle,
  html[data-theme="light"] .nav.scrolled .theme-toggle {
    color: #8a5728 !important;
    background: rgba(255, 252, 246, .48) !important;
    border-color: rgba(103, 64, 30, .18) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-toggle,
  html[data-theme="light"] .nav.scrolled .nav-toggle {
    background: rgba(255, 252, 246, .48) !important;
    border-color: rgba(103, 64, 30, .18) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-toggle span,
  html[data-theme="light"] .nav.scrolled .nav-toggle span {
    background: #553722 !important;
  }

  html[data-theme="light"] .nav:not(.scrolled)::after,
  html[data-theme="light"] .nav.scrolled::after {
    background: linear-gradient(90deg, #a96e32, #d1aa67) !important;
  }
}

/* =========================================================
   CORREÇÃO DEFINITIVA — MENU LIGHT MOBILE COM TEXTO ESCURO
   ========================================================= */
@media (max-width: 1100px) {
  html[data-theme="light"] body .nav .nav-menu.active li > a,
  html[data-theme="light"] body .nav:not(.scrolled) .nav-menu.active li > a,
  html[data-theme="light"] body .nav.scrolled .nav-menu.active li > a {
    color: #3f291b !important;
    -webkit-text-fill-color: #3f291b !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
    font-weight: 500 !important;
  }

  html[data-theme="light"] body .nav .nav-menu.active li > a:not(.nav-cta):hover,
  html[data-theme="light"] body .nav .nav-menu.active li > a:not(.nav-cta):focus-visible,
  html[data-theme="light"] body .nav .nav-menu.active li > a:not(.nav-cta).active {
    color: #7b4b24 !important;
    -webkit-text-fill-color: #7b4b24 !important;
    background: rgba(103, 64, 30, .08) !important;
  }

  html[data-theme="light"] body .nav .nav-menu.active li > a.nav-cta {
    color: #5e3518 !important;
    -webkit-text-fill-color: #5e3518 !important;
    background: rgba(255, 255, 255, .48) !important;
    border-color: rgba(91, 56, 29, .30) !important;
  }
}

/* =========================================================
   CORREÇÃO DESKTOP — LETRAS BEGE NO HEADER SOBRE O HERO
   Apenas antes do scroll e apenas em ecrãs grandes.
   Depois do scroll, o header claro mantém letras castanhas.
   ========================================================= */
@media (min-width: 1101px) {
  html[data-theme="light"] .nav:not(.scrolled) .nav-brand strong,
  html[data-theme="light"] .nav:not(.scrolled) .nav-menu a:not(.nav-cta),
  html[data-theme="light"] .nav:not(.scrolled) .nav-cta {
    color: #f2e3c7 !important;
    -webkit-text-fill-color: #f2e3c7 !important;
    opacity: 1 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .34) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-brand small {
    color: rgba(242, 227, 199, .72) !important;
    -webkit-text-fill-color: rgba(242, 227, 199, .72) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .30) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-menu a:not(.nav-cta):hover,
  html[data-theme="light"] .nav:not(.scrolled) .nav-menu a:not(.nav-cta).active {
    color: #e2c987 !important;
    -webkit-text-fill-color: #e2c987 !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-cta {
    background: rgba(245, 234, 208, .16) !important;
    border-color: rgba(245, 234, 208, .34) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-cta:hover {
    color: #fff4df !important;
    -webkit-text-fill-color: #fff4df !important;
    background: rgba(245, 234, 208, .25) !important;
    border-color: rgba(245, 234, 208, .48) !important;
  }

  html[data-theme="light"] .nav:not(.scrolled) .nav-menu a:not(.nav-cta)::after {
    background: #e2c987 !important;
  }
}

/* =========================================================
   CORREÇÃO LIGHT MODE — LINHA CASTANHA DE PROGRESSO NO HEADER
   Repõe a linha fina existente no modo escuro, mas em castanho.
   ========================================================= */
html[data-theme="light"] .nav::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  bottom: -1px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #8f5b2c, #c79a58) !important;
  transform: scaleX(var(--page-progress, 0)) !important;
  transform-origin: left center !important;
  opacity: .86 !important;
  pointer-events: none !important;
}

html[data-theme="light"] .nav.scrolled::after {
  background: linear-gradient(90deg, #7b4b24, #b98543) !important;
}


/* =========================================================
   CORREÇÃO DEFINITIVA — SETAS SEM EMOJI EM TODOS OS DISPOSITIVOS
   Aplica-se aos cartões dos locais, ao botão de traçar rota
   e aos controlos anterior/seguinte da galeria.
   ========================================================= */

/* Ícone externo dos cartões e do botão “Traçar rota”. */
.place-card-link b,
.lightbox-route > span[aria-hidden="true"] {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  flex: 0 0 14px !important;
  overflow: hidden !important;

  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;

  background-color: currentColor !important;

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M8 7h9v9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat !important;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M8 7h9v9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat !important;

  transform: none !important;
  transition: transform .28s var(--ease) !important;
}

/* Remove totalmente os desenhos antigos em pseudo-elementos. */
.place-card-link b::before,
.place-card-link b::after,
.lightbox-route > span[aria-hidden="true"]::before,
.lightbox-route > span[aria-hidden="true"]::after {
  content: none !important;
  display: none !important;
}

/* Movimento subtil, sem deformar o ícone. */
.place-card:hover .place-card-link b,
.place-card:focus-visible .place-card-link b,
.lightbox-route:hover > span[aria-hidden="true"],
.lightbox-route:focus-visible > span[aria-hidden="true"] {
  transform: translate(2px, -2px) !important;
}

/* Garante alinhamento correto dentro do botão de rota. */
.lightbox-route {
  align-items: center !important;
}

.lightbox-route > span[aria-hidden="true"] {
  margin-left: 2px !important;
}

/* Setas anterior e seguinte da galeria sem caracteres Unicode. */
.lightbox-prev,
.lightbox-next {
  font-size: 0 !important;
  line-height: 0 !important;
}

.lightbox-prev::before,
.lightbox-next::before {
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;

  background-color: currentColor !important;
  border: 0 !important;

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 18l-6-6 6-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat !important;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 18l-6-6 6-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat !important;

  transform: none !important;
}

.lightbox-next::before {
  transform: scaleX(-1) !important;
}

.lightbox-prev::after,
.lightbox-next::after {
  content: none !important;
  display: none !important;
}

/* Reforço para Safari/iPhone: nunca renderizar os caracteres como emoji. */
@media (max-width: 1100px) {
  .place-card-link b,
  .lightbox-route > span[aria-hidden="true"] {
    font-family: Arial, sans-serif !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    -webkit-text-fill-color: transparent !important;
    background-color: currentColor !important;
  }
}

/* =========================================================
   ESCOLHA DE CONTACTO WHATSAPP
   ========================================================= */

.btn-whatsapp {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
}

.contact-actions .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-actions .btn-whatsapp img {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  object-fit: contain;
}

.whatsapp-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 5500;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .22s ease,
    visibility .22s ease;
}

.whatsapp-choice-modal[hidden] {
  display: none !important;
}

.whatsapp-choice-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.whatsapp-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 6, .74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.whatsapp-choice-box {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  padding: 40px 38px 36px;
  overflow: hidden;
  border: 1px solid rgba(232, 208, 160, .24);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(226, 201, 135, .12),
      transparent 32%
    ),
    rgba(31, 22, 16, .97);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, .52),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(.975);
  transition:
    opacity .28s var(--ease),
    transform .28s var(--ease);
}

.whatsapp-choice-modal.active .whatsapp-choice-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.whatsapp-choice-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-l);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.whatsapp-choice-box h3 {
  margin: 0 42px 12px;
  color: var(--parch);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.whatsapp-choice-box > p {
  max-width: 350px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.whatsapp-choice-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bdr);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  transition:
    transform .28s var(--ease),
    background .28s ease,
    border-color .28s ease;
}

.whatsapp-choice-close:hover {
  transform: rotate(5deg);
  border-color: var(--bdr3);
  background: rgba(255, 255, 255, .1);
}

.whatsapp-choice-close::before,
.whatsapp-choice-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--cream);
}

.whatsapp-choice-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.whatsapp-choice-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.whatsapp-choice-options {
  display: grid;
  gap: 12px;
}

.whatsapp-person {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid var(--bdr);
  border-radius: 18px;
  background: rgba(245, 234, 208, .06);
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  transition:
    transform .3s var(--ease),
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.whatsapp-person:hover,
.whatsapp-person:focus-visible {
  transform: translateY(-3px);
  border-color: var(--bdr3);
  background: rgba(245, 234, 208, .12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}

.whatsapp-person:focus-visible,
.whatsapp-choice-close:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 3px;
}

.whatsapp-person img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.whatsapp-person > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.whatsapp-person strong {
  color: var(--cream);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}

.whatsapp-person small {
  color: var(--muted2);
  font-size: .72rem;
  line-height: 1.4;
}

.whatsapp-person-arrow {
  width: 14px;
  height: 14px;
  display: block;
  background-color: var(--gold-l);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M8 7h9v9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M8 7h9v9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform .28s var(--ease);
}

.whatsapp-person:hover .whatsapp-person-arrow,
.whatsapp-person:focus-visible .whatsapp-person-arrow {
  transform: translate(2px, -2px);
}

/* Modo claro */
html[data-theme="light"] .whatsapp-choice-backdrop {
  background: rgba(54, 37, 25, .52);
}

html[data-theme="light"] .whatsapp-choice-box {
  border-color: rgba(95, 62, 36, .18);
  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(171, 113, 53, .11),
      transparent 32%
    ),
    rgba(249, 243, 233, .985);
  box-shadow:
    0 34px 100px rgba(75, 48, 27, .25),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}

html[data-theme="light"] .whatsapp-choice-box h3,
html[data-theme="light"] .whatsapp-person strong {
  color: #3e291b;
}

html[data-theme="light"] .whatsapp-choice-box > p,
html[data-theme="light"] .whatsapp-person small {
  color: rgba(62, 41, 27, .66);
}

html[data-theme="light"] .whatsapp-person {
  border-color: rgba(95, 62, 36, .16);
  background: rgba(255, 255, 255, .44);
}

html[data-theme="light"] .whatsapp-person:hover,
html[data-theme="light"] .whatsapp-person:focus-visible {
  border-color: rgba(95, 62, 36, .28);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 34px rgba(75, 48, 27, .1);
}

html[data-theme="light"] .whatsapp-choice-close {
  border-color: rgba(95, 62, 36, .18);
  background: rgba(255, 255, 255, .42);
}

html[data-theme="light"] .whatsapp-choice-close::before,
html[data-theme="light"] .whatsapp-choice-close::after {
  background: #4b3020;
}

html[data-theme="light"] .whatsapp-person-arrow {
  background-color: #8a5728;
}

@media (max-width: 520px) {
  .whatsapp-choice-modal {
    padding: 16px;
  }

  .whatsapp-choice-box {
    padding: 38px 18px 20px;
    border-radius: 24px;
  }

  .whatsapp-choice-box h3 {
    margin-right: 38px;
    margin-left: 38px;
    font-size: clamp(1.85rem, 10vw, 2.45rem);
  }

  .whatsapp-choice-box > p {
    margin-bottom: 22px;
    font-size: .84rem;
  }

  .whatsapp-person {
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 12px;
    padding: 15px;
    border-radius: 16px;
  }

  .whatsapp-person img {
    width: 26px;
    height: 26px;
  }
}

/* =========================================================
   HERO MOBILE — ALTO MINHO NUMA LINHA E DESTAQUES COM BOLAS
   ========================================================= */
@media (max-width: 620px) {
  /* Mantém “Alojamento Local · Alto Minho” sempre na mesma linha. */
  .hero-classic .hero-tag {
    width: max-content !important;
    max-width: calc(100vw - 40px) !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    font-size: clamp(.52rem, 2.6vw, .61rem) !important;
    line-height: 1.2 !important;
    letter-spacing: .15em !important;
  }

  .hero-classic .hero-tag > span {
    width: 6px !important;
    height: 6px !important;
    flex: 0 0 6px !important;
  }

  /* Organiza os três destaques abaixo de “Ver a casa”. */
  .hero-classic .hero-ribbon {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    gap: 8px !important;
    margin-top: 24px !important;
    padding: 13px 15px !important;
    border-radius: 18px !important;
    background: rgba(24, 15, 9, .34) !important;
  }

  /* Os antigos separadores deixam de ser necessários. */
  .hero-classic .hero-ribbon > i {
    display: none !important;
  }

  /* Cada destaque fica com uma pequena bola dourada antes do texto. */
  .hero-classic .hero-ribbon > span {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: rgba(247, 236, 216, .76) !important;
    font-size: .58rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    letter-spacing: .095em !important;
    text-transform: uppercase !important;
  }

  .hero-classic .hero-ribbon > span::before {
    content: "" !important;
    width: 5px !important;
    height: 5px !important;
    flex: 0 0 5px !important;
    border-radius: 50% !important;
    background: #d9bd82 !important;
    box-shadow:
      0 0 0 4px rgba(217, 189, 130, .08),
      0 0 12px rgba(217, 189, 130, .42) !important;
  }
}

@media (max-width: 360px) {
  .hero-classic .hero-tag {
    font-size: .50rem !important;
    letter-spacing: .11em !important;
  }

  .hero-classic .hero-ribbon > span {
    font-size: .54rem !important;
  }
}

/* =========================================================
   LOCAIS PRÓXIMOS — PESQUISA E LISTA EXPANSÍVEL
   Mostra inicialmente seis sugestões e mantém as restantes
   acessíveis através de pesquisa, filtros ou do botão "Ver mais".
   ========================================================= */
.place-card.is-collapsed-out {
  display: none;
}

.places-search svg {
  flex: 0 0 auto;
  opacity: .72;
}

.places-more {
  width: 100%;
  max-width: 1240px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
  align-items: center;
  gap: 18px;
}

.places-more::before,
.places-more::after {
  content: "";
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 211, 174, .22)
  );
}

.places-more::after {
  transform: scaleX(-1);
}

.places-more[hidden] {
  display: none !important;
}

.places-more-button {
  min-height: 48px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(232, 211, 174, .22);
  border-radius: 999px;
  color: var(--gold-l);
  background: rgba(245, 234, 208, .065);
  box-shadow: 0 14px 34px rgba(18, 11, 6, .10);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition:
    color .3s ease,
    background .3s ease,
    border-color .3s ease,
    transform .3s var(--ease),
    box-shadow .3s ease;
}

.places-more-button:hover {
  transform: translateY(-3px);
  color: var(--parch);
  border-color: rgba(232, 211, 174, .42);
  background: rgba(245, 234, 208, .11);
  box-shadow: 0 18px 42px rgba(18, 11, 6, .16);
}

.places-more-button:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 4px;
}

.places-more-button i {
  position: relative;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  transition: transform .35s var(--ease);
}

.places-more-button i::before,
.places-more-button i::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 7px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.places-more-button i::before {
  left: 0;
  transform: rotate(42deg);
}

.places-more-button i::after {
  right: 0;
  transform: rotate(-42deg);
}

.places-more-button[aria-expanded="true"] i {
  transform: rotate(180deg);
}

html[data-theme="light"] .places-more::before,
html[data-theme="light"] .places-more::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(82, 58, 39, .18)
  );
}

html[data-theme="light"] .places-more-button {
  color: #6f4b2d;
  border-color: rgba(82, 58, 39, .16);
  background: rgba(255, 253, 249, .52);
  box-shadow: 0 14px 34px rgba(78, 55, 37, .08);
}

html[data-theme="light"] .places-more-button:hover {
  color: #4f3421;
  border-color: rgba(82, 58, 39, .28);
  background: rgba(255, 253, 249, .82);
}

@media (max-width: 720px) {
  .places-more {
    margin-top: 28px;
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
    gap: 12px;
  }

  .places-more-button {
    min-height: 46px;
    padding: 11px 17px;
    font-size: .60rem;
    letter-spacing: .10em;
  }
}

@media (max-width: 430px) {
  .places-more {
    grid-template-columns: 1fr;
  }

  .places-more::before,
  .places-more::after {
    display: none;
  }

  .places-more-button {
    width: 100%;
  }
}

