:root{
  --bg: #ffffff;
  --soft: #f6f4f1;
  --text: #141414;
  --muted: #5c5c5c;
  --border: rgba(17,17,17,.10);

  /* Paleta inspirada nos teus prints (dourado/taupe) */
  --accent: #9A7F5F;
  --accent-2: #B79B78;
  --accent-ink: #ffffff;

  --shadow: 0 14px 40px rgba(0,0,0,.12);
  --radius: 18px;
  --radius-lg: 24px;
  --container: 1320px;

  --serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
a:hover{ opacity:.92; }
strong{ font-weight: 650; }

/* Acessibilidade */
.skip-link{
  position:absolute; left:-999px; top:12px;
  background: var(--text); color:#fff;
  padding:10px 12px; border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus{ left:12px; }

/* Layout */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.section{ padding: 86px 0; }
.section-tight{ padding: 44px 0 64px; }
.section-soft{ background: rgb(255, 255, 255); } 

.section-title{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 3.1vw, 52px);
  margin: 0 0 10px;
}
.section-lead{
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
  max-width: 70ch;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow-anchor: none;

  /* ajuda a evitar o “primeiro engasgo” */
  transform: translateZ(0);
  will-change: transform;
}

/* Durante a animação, tira o blur para não travar */
.site-header.is-animating{
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner{
  height: 100px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;

  transition: height .35s cubic-bezier(.2,.8,.2,1);
  will-change: height;

  /* isola o reflow ao header */
  contain: layout paint;
}

.site-header.is-scrolled .header-inner{
  height: 95px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand-logo{
  width: 70px;
  height: 70px;
  padding: 6px;
}
.brand-text{ display:flex; flex-direction: column; gap: 2px; }
.brand-title{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}
.brand-subtitle{ font-size: .82rem; color: var(--muted); }

.nav{ display:flex; align-items:center; gap: 14px; }
.nav-list{
  display:flex;
  align-items:center;
  gap: 22px;
  list-style:none;
  padding:0;
  margin:0;
}
.nav-link{
  font-weight: 500;
  color: #2b2b2b;
  position: relative;
  padding: 10px 6px;
}

.nav-link:hover{
  color: #413b37;
}

/* Barra default (escondida) */
.nav-link::after{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 2px;
  background: #5a524c;
  border-radius: 999px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

/* Hover */
.nav-link:hover::after{
  transform: scaleX(1);
}

/* Ativo via aria-current */
.nav-link[aria-current="page"]{
  color: #5a524c;
}
.nav-link[aria-current="page"]::after{
  transform: scaleX(1);
}

.header-cta{ display:flex; align-items:center; }
.phone-pill{
  display:flex;
  align-items:center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(154,127,95,.25);
}
.phone-pill__label{
  display:inline-grid;
  place-items:center;
  width: 36px; height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.phone-pill__number{ font-weight: 650; letter-spacing: .01em; }

/* Mobile nav toggle */
.nav-toggle{
  display:none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  padding: 10px;
}
.nav-toggle span{
  display:block;
  height: 2px;
  background: #2b2b2b;
  border-radius: 999px;
}
.nav-toggle span + span{ margin-top: 6px; }

/* HERO */
.hero{
  position: relative;
  min-height: calc(100svh - 86px);
  display:grid;
  place-items:center;
  padding: 90px 0 70px;
  overflow: clip;
}
.hero-bg{
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.62)),
    radial-gradient(1200px 520px at 50% 20%, rgba(154,127,95,.26), transparent 62%),
    url("../img/NDE_0288.JPG");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
}

.hero-bg2{
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.62)),
    radial-gradient(1200px 520px at 50% 20%, rgba(154,127,95,.26), transparent 62%),
    url("../assets/NDE_5764.JPG");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
}

.hero-center--sobre {
  transform: translateY(-30px);
}

.hero-bggaleria{
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.62)),
    radial-gradient(1200px 520px at 50% 20%, rgba(154,127,95,.26), transparent 62%),
    url("../img/NDE_2659.JPG");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
}

.hero-bottom{
  position:absolute;
  left: 0; right: 0; bottom: -1px;
  height: 110px;
    background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.06) 20%,
    rgba(255, 255, 255, 0.16) 40%,
    rgba(255, 255, 255, 0.34) 62%,
    rgba(255, 255, 255, 0.58) 80%,
    rgba(255, 255, 255, 0.82) 92%,
    rgba(255, 255, 255, 1) 100%
  );
}

.hero-inner{ position: relative; }
.hero-center{
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  padding: 0 6px;
}
.hero-title{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: .96;
  margin: 0 0 12px;
  color: #fff;
}
.hero-lead{
  margin: 0 auto 20px;
  color: rgba(255,255,255,.86);
  max-width: 68ch;
  font-size: 1.08rem;
}
.hero-actions{
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-badges{
  display:flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 10px 12px;
  display:flex;
  gap: 8px;
  align-items: center;
}
.badge__k{ font-weight: 650; opacity:.95; }
.badge__v{ opacity:.92; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--accent);
  color: var(--accent-ink);

}
.btn-primary:hover{ background: #8f7456; }

.btn-secondary{
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.btn-secondary:hover{
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.30);
}
.btn-outline{
  background: #fff;
  border-color: rgba(154,127,95,.32);
  color: var(--text);
}
.btn-outline:hover{ border-color: rgba(154,127,95,.55); }


/* Título centrado (se não tiveres) */
.section-title--center{
  text-align: center;
  margin-bottom: 28px;
}

/* Secção equipa */
.team{
  background: color(srgb rgb(255, 255, 255) rgb(255, 255, 255) rgb(255, 255, 255));
}

.team-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

/* Card */
.team-card{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  aspect-ratio: 3 / 4;

  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;

  /* tira o fundo preto */
  background: transparent;

  transition: transform .28s ease, box-shadow .28s ease;
}

.team-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform .45s ease;
}
/* só escala quando estás em hover */
.team-card:hover .team-card__img{
  transform: translateZ(0) scale(1.01);
}

.team-card:hover{
  transform: translate3d(0,-4px,0);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}




/* Overlay */
.team-card__overlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 16px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.78) 45%,
    rgba(0,0,0,.92) 100%
  );
}

/* Tipografia */
.team-card__name{
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .2px;
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}

.team-card__role{
  margin: 8px 0 0;
  font-size: .95rem;
  color: rgba(255,255,255,.74);
  font-family: var(--sans);
}

/* Detalhe dourado */
.team-card__role::before{
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
  border-radius: 999px;
  opacity: .95;
}

/* Responsivo */
@media (max-width: 980px){
  .team-grid{
    grid-template-columns: 1fr;
  }
  .team-card{
    max-width: 520px;
    margin-inline: auto;
  }
}

/* Grids / cards */
.grid{ display:grid; gap: 16px; }
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.pillars{ grid-template-columns: repeat(3, 1fr); }
.pillar h3{
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
}
.pillar p{ margin: 0; color: var(--muted); }

.icon{
  width: 40px; height: 40px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(154,127,95,.12);
  color: var(--accent);
  font-weight: 800;
}

/* Stats */
.stats{
  background: #5f584f;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}
.stat{ text-align:center; }
.stat__n{
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 700;
  transition: transform .25s ease;
}
.stat__k{ margin: 0; opacity: .92; font-weight: 500; }

.stats.is-animating .stat__n{
  transform: translateY(-1px);
}

/* GALERIA: 3 colunas, bordas iguais, sem animações */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 50px;
}

.gallery-item{
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  /* ✅ usa o ratio real das fotos (mais nítido) */
  aspect-ratio: 3 / 2; /* experimenta 16/9 ou 4/3 se as tuas forem assim */
}

.gallery-item img{
  object-fit: contain; background: #0b0b0b; 
}

/* CTA */
.cta-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(154,127,95,.08), rgba(154,127,95,.02));
  padding: 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-title{
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 2.6vw, 40px);
}
.cta-lead{ margin: 0; color: var(--muted); max-width: 64ch; }
.cta-actions{ display:flex; gap: 12px; flex-wrap: wrap; }

.mini-info{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.mini-info__item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}
.mini-info__k{ margin: 0 0 6px; color: var(--muted); font-weight: 600; }
.mini-info__v{ margin: 0; font-weight: 600; }

/* Footer */
.site-footer{
  padding: 28px 0 44px;
  border-top: none;
  background: #fff;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-brand{ margin: 0; color: var(--muted); }
.footer-links{ display:flex; gap: 16px; color: var(--muted); }
.footer-links a:hover{ color: var(--text); }

.fineprint{ color: var(--muted); font-size: .92rem; }

/* Responsive */
@media (max-width: 980px){
  .pillars{ grid-template-columns: 1fr; }
}
@media (max-width: 820px){
  .nav-toggle{ display:inline-grid; place-items:center; }
  .nav-list{
    position: absolute;
    left: 20px;
    right: 20px;
    top: 86px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
  }
  .nav-list.is-open{ display:flex; }
  .nav-link{ padding: 12px 12px; border-radius: 12px; }
  .nav-link:hover{ background: rgba(154,127,95,.10); }
  .nav-link.is-active::after{ display:none; }
  .header-cta{ display:none; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .mini-info{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .section{ padding: 70px 0; }
  .stats{ grid-template-columns: 1fr; }
  .hero{ padding: 84px 0 66px; }
}


/* Contact section (dark gradient) */
.contact-section{
  color: #fff;
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(154,127,95,.28), transparent 62%),
    linear-gradient(180deg, #1a1612 0%, #0c0b0a 55%, #0b0b0b 100%);
  position: relative;
  overflow: clip;
   font-family: var(--sans);
}

/* Só altera textos dentro da secção de contacto */
.contact-section .section-title{ color:#fff; }
.contact-section .section-lead{ color: rgba(255,255,255,.82); }

/* Layout 2 colunas */
.contact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

/* Cards (lado esquerdo) */
.contact-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.contact-card{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.18);
}
.contact-card__k{ margin: 0 0 6px; color: rgba(0,0,0,.55); font-weight: 600; }
.contact-card__v{ margin: 0; font-weight: 750; color: #0b0b0b; }
.contact-card__s{ margin: 6px 0 0; color: rgba(0,0,0,.55); }

/* Form */
.contact-form{
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.contact-form label{ display:block; font-weight: 600; }
.contact-form label span{ display:block; font-size: .9rem; color: #2a2a2a; margin: 10px 0 8px; }

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  outline: none;
  font: inherit;
  background: #faf9f7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(154, 127, 95, 0.75);
  box-shadow: 0 0 0 1px rgba(154, 127, 95, 0.18);
  background: #fff;
}

.contact-form button,
.contact-form .btn,
.contact-form .btn-primary {
  font-family: var(--sans);
  font-style: normal;
}

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* === SOBRE NÓS (extras) === */

.prose{ max-width: 78ch; }
.prose p{ margin: 0 0 14px; color: var(--muted); }
.prose strong{ color: var(--text); }

.spacer{ height: 14px; }

.about-split{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}

.about-media{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}
.about-media img{
  width:100%;
  height: 520px;
  object-fit: cover;
}
.about-media figcaption{
  padding: 12px 14px;
  font-size: .92rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Especialização (texto + imagem) */
.about-feature{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.about-feature__text{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}
.subhead{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
}

.about-feature__media{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  margin: 0;
}
.about-feature__media img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.specialization-highlight {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(154, 127, 95, 0.28);
}

.specialization-highlight__title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.specialization-highlight p {
  margin: 0;
  max-width: 580px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted, #5f5f5f);
}

/* Tags */
.about-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 30px;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(154,127,95,.10);
  border: 1px solid rgba(154,127,95,.20);
  color: #3b3632;
  font-weight: 600;
  font-size: .92rem;
}

/* Timeline */
.timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 12px;
}
.timeline-item{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}
.timeline-year{
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.1;
}
.timeline-title{
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
}
.timeline-text{
  margin: 0;
  color: var(--muted);
}

/* Quote */
.quote-card{
  margin-top: 18px;
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(154,127,95,.10), rgba(154,127,95,.02));
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.quote-card__text{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: #2a2724;
}
.quote-card__by{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ================================
   FOOTER (identidade visual)
   (substitui o bloco FOOTER blend)
================================ */
.site-footer{
  background: #0b0b0b;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.72);
}

.site-footer h3.footer-title { font-size: 1.5rem; }
.site-footer h4.footer-title { font-size: 1.5rem; }
.site-footer .footer-top { align-items: start; } /* só para garantir */
.site-footer .footer-col--brand { padding-top: 2px; } /* ajusta 4–8px ao teu gosto */


/* Tipografia e cor base */
.site-footer .footer-desc,
.site-footer .footer-address,
.site-footer .footer-brand,
.site-footer .footer-links{
  color: rgba(255,255,255,.72);
}

/* Logo/título principal */
.site-footer .footer-logo{
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 28px;
  line-height: 1.15;
  color: #fff;
}

/* Títulos de coluna (coerente com headings do site) */
.site-footer .footer-title{
  margin: 0 0 2px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

/* Topo (4 colunas) – mantém a tua estrutura */
.site-footer .footer-top{
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
}

.site-footer .footer-desc,
.site-footer .footer-address{
  margin: 20.5px 0 0;
  max-width: 52ch;
  line-height: 1.7;
}

.site-footer .footer-list,
.site-footer .footer-address{
  margin: 7px 0 0;
}


/* Listas */
.site-footer .footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

/* Links do footer com “barra” tipo nav */
.site-footer .footer-list a,
.site-footer .footer-links a,
.site-footer .footer-brand a{
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: rgba(255,255,255,.72);
  transition: color .18s ease, opacity .18s ease;
}

.site-footer .footer-list a::after,
.site-footer .footer-links a::after,
.site-footer .footer-brand a::after{
  content:"";
  position:absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  opacity: .9;
}

.site-footer .footer-list a:hover,
.site-footer .footer-links a:hover,
.site-footer .footer-brand a:hover{
  color: #fff;
  opacity: 1;
}

.site-footer .footer-list a:hover::after,
.site-footer .footer-links a:hover::after,
.site-footer .footer-brand a:hover::after{
  transform: scaleX(1);
}

/* Acessibilidade (tab) */
.site-footer .footer-list a:focus-visible,
.site-footer .footer-links a:focus-visible,
.site-footer .footer-brand a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(154,127,95,.22);
  border-radius: 10px;
}

/* Botões de contacto – linguagem dos botões do site */
.site-footer .footer-actions{
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.site-footer .footer-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 650;
  letter-spacing: .01em;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);

  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.site-footer .footer-btn:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(154,127,95,.45);
}

.site-footer .footer-btn:active{
  transform: translateY(0);
}

/* Barra inferior */
.site-footer .footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0;
}

.site-footer .footer-inner.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer .footer-brand{ margin: 0; }
.site-footer .footer-links{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

 /* Serviços */
.hero-bgservicos{
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.62)),
    radial-gradient(1200px 520px at 50% 20%, rgba(154,127,95,.26), transparent 62%),
    url("../img/NDE_5768.JPG");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
}

.services-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card{
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,.10);
  border-color: rgba(154,127,95,.24);
}

.service-card__icon{
  width: 52px;
  height: 52px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  background: rgba(154,127,95,.12);
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card__title{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.65rem;
  line-height: 1.05;
}

.service-card__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.btn-full{
  width: 100%;
}

.hp-field{
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form textarea{
  resize: none;
}

@media (max-width: 980px){
  .services-grid{
    grid-template-columns: 1fr;
  }
}

.hero-bgnecrologia{
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.62)),
    radial-gradient(1200px 520px at 50% 20%, rgba(154,127,95,.26), transparent 62%),
    url("../img/necrologia.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
}

.necrology-section{
  background: #f7f5f2;
}

.necrology-head{
  margin-bottom: 44px;
}

.obit-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
  align-items: start;
}

.obit-card{
  text-align: center;
}

.obit-card__head{
  margin-bottom: 18px;
}

.obit-card__photo-wrap{
  width: 152px;
  height: 152px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  background: #e9e4dd;
}

.obit-card__photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.obit-card__meta{
  max-width: 320px;
  margin: 0 auto;
}


.obit-card__name{
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 2rem;
  line-height: 1.02;
}



.obit-card__date{
  margin: 10px 0 0;
  color: #5e5a56;
  font-size: 1rem;
  font-weight: 500;
}

.obit-card__body{
  text-align: left;
  background: #fff;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.obit-card:hover .obit-card__body{
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,.09);
  border-color: rgba(154,127,95,.22);
}

.obit-detail + .obit-detail{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.obit-detail__label{
  margin: 0 0 6px;
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.obit-detail__value{
  margin: 0;
  color: #2b2b2b;
  line-height: 1.7;
  font-weight: 500;
}

.obit-card__meta{
  max-width: 320px;
  margin: 0 auto;
}

.obit-card__name{
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 2rem;
  line-height: 1.02;
}

.obit-card__date{
  margin: 10px 0 0;
  color: #5e5a56;
  font-size: 1rem;
  font-weight: 500;
}

.obit-card__actions{
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.obit-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(154,127,95,.12);
  border: 1px solid rgba(154,127,95,.18);
  color: #5b4a38;
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.obit-toggle:hover{
  border-color: rgba(154,127,95,.32);
}

.obit-toggle[aria-expanded="true"]{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.obit-card__body{
  text-align: left;
  background: #fff;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  margin-top: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.obit-card__body[hidden]{
  display: none;
}

.obit-card.is-open .obit-card__body{
  border-color: rgba(154,127,95,.22);
  box-shadow: 0 18px 34px rgba(0,0,0,.09);
}
@media (max-width: 1200px){
  .obit-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }
}

@media (max-width: 680px){
  .obit-grid{
    grid-template-columns: 1fr;
  }

  .obit-card__name{
    font-size: 1.8rem;
  }

  .obit-card__photo-wrap{
    width: 136px;
    height: 136px;
  }

  .obit-card__body{
    padding: 20px 18px;
    border-radius: 20px;
  }
}

/* ================================
   RESPONSIVO GLOBAL (site todo)
================================ */

/* Imagens sempre fluidas */
img, video{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container com margens confortáveis */
.container{
  width: min(var(--container), calc(100% - 32px));
}

/* Espaçamento mais suave */
.section{
  padding-block: clamp(56px, 6vw, 96px);
}
.section-tight{
  padding-block: clamp(40px, 4.8vw, 72px);
}

/* Títulos responsivos */
.section-title{
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
}

.hero-bgcontacto{
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.62)),
    radial-gradient(1200px 520px at 50% 20%, rgba(154,127,95,.26), transparent 62%),
    url("../img/NDE_2659.JPG");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02);
}

.contact-map iframe{
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

.btn-full{
  width: 100%;
}

.hp-field{
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
textarea {
  resize: none;
}
.location-section{
  padding-top: 100px;
  padding-bottom: 100px;
}

.location-layout{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.location-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-card{
  margin-top: 28px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
}

.location-item + .location-item{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.location-item__k{
  margin: 0 0 6px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9A7F5F;
}

.location-item__v{
  margin: 0;
  color: #222;
  line-height: 1.7;
}

.location-item__v a{
  color: inherit;
  text-decoration: none;
}

.location-item__v a:hover{
  text-decoration: underline;
}

.location-actions{
  margin-top: 24px;
}

.location-map-wrap{
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.location-map{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

@media (max-width: 980px){
  .location-layout{
    grid-template-columns: 1fr;
  }

  .location-map{
    min-height: 420px;
  }
}

@media (max-width: 640px){
  .location-section{
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .location-card{
    padding: 22px;
    border-radius: 20px;
  }

  .location-map-wrap{
    border-radius: 20px;
  }

  .location-map{
    min-height: 340px;
  }
}

/* <= 980px (tablet / mobile) */
@media (max-width: 980px){
  .container{
    width: min(var(--container), calc(100% - 24px));
  }

  /* HERO: botões empilhados */
  .hero-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* Badges em coluna */
  .hero-badges{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Grids genéricos */
  .grid{
    grid-template-columns: 1fr !important;
  }

  /* Stats: 2 colunas */
  .stats{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* CTA (se tiver lado a lado) */
  .cta-card{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cta-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cta-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* Mini-info em coluna */
  .mini-info{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* CONTACTO (sem duplicar regras) */
  .contact{
    grid-template-columns: 1fr;
  }
  .form-row{
    grid-template-columns: 1fr;
  }
}

/* <= 520px (telemóvel) */
@media (max-width: 520px){
  .container{
    width: min(var(--container), calc(100% - 18px));
  }

  /* Stats para 1 coluna */
  .stats{
    grid-template-columns: 1fr;
  }
}
/* ==============================================
   CORREÇÕES RESPONSIVAS — TABLET E MOBILE
   Estas regras estão no final para não alterar
   o layout original em ecrãs com mais de 980px.
============================================== */

@media (max-width: 980px){
  /* Evita que conteúdos longos forcem as colunas para fora do ecrã */
  .about-split > *,
  .about-feature > *,
  .contact > *,
  .location-layout > *,
  .form-row > *,
  .site-footer .footer-top > *{
    min-width: 0;
  }

  /* Secções de texto + imagem passam para uma coluna */
  .about-split,
  .about-feature{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-media{
    margin: 0;
  }

  .about-media img{
    height: clamp(320px, 58vw, 460px);
  }

  .about-feature__media img{
    height: clamp(300px, 58vw, 440px);
    min-height: 0;
  }

  /* Galeria: mantém boa dimensão das imagens em tablet */
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 38px;
  }

  .gallery-item img{
    width: 100%;
    height: 100%;
  }

  /* Impede campos e textos longos de criarem scroll horizontal */
  .contact-form,
  .contact-form input,
  .contact-form select,
  .contact-form textarea{
    min-width: 0;
    max-width: 100%;
  }

  .contact-card__v,
  .contact-card__s,
  .mini-info__v,
  .location-item__v,
  .footer-desc,
  .footer-address,
  .site-footer .footer-btn{
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Footer: quatro colunas seriam demasiado apertadas */
  .site-footer .footer-top{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    padding: 52px 0;
  }

  .site-footer .footer-actions{
    max-width: none;
  }

  /* Mantém os botões do hero legíveis sem ficarem excessivamente largos */
  .hero-actions,
  .hero-badges{
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 820px){
  /* Segurança contra qualquer overflow lateral em mobile */
  html,
  body{
    max-width: 100%;
    overflow-x: hidden;
  }

  @supports (overflow: clip){
    html,
    body{
      overflow-x: clip;
    }
  }

  .container{
    width: min(var(--container), calc(100% - 32px));
  }

  /* Header mobile */
  .header-inner,
  .site-header.is-scrolled .header-inner{
    height: 84px;
    contain: none;
  }

  .brand-logo{
    width: 62px;
    height: 62px;
    padding: 5px;
  }

  /* Corrige o ícone do menu, que antes podia aparecer vazio */
  .nav-toggle{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 44px;
  }

  .nav-toggle span{
    width: 20px;
    height: 2px;
    margin: 0 !important;
  }

  /* Coloca o menu imediatamente abaixo do header e evita que seja cortado */
  .nav-list{
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 60;
    max-height: calc(100svh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-link{
    display: block;
    width: 100%;
  }

  .nav-link::after{
    display: none;
  }

  /* Hero adaptado à altura real do header mobile */
  .hero{
    min-height: calc(100svh - 84px);
    padding: 64px 0 74px;
  }

  .hero-inner,
  .hero-center{
    width: 100%;
  }

  .hero-center{
    padding: 0;
  }

  .hero-title{
    font-size: clamp(48px, 10vw, 66px);
    line-height: .98;
  }

  .hero-lead{
    max-width: 42ch;
    font-size: 1.03rem;
    line-height: 1.5;
  }

  .hero-bottom{
    height: 76px;
  }

  /* Amplia apenas a fotografia de fundo, mantendo os gradientes originais */
  .hero-bg,
  .hero-bg2,
  .hero-bggaleria,
  .hero-bgservicos,
  .hero-bgcontacto{
    background-size: cover, cover, auto 118%;
    background-position: center, center, 50% 56%;
    background-repeat: no-repeat;
  }

  /* A imagem da necrologia já é vertical e não precisa do mesmo zoom */
  .hero-bgnecrologia{
    background-size: cover, cover, cover;
    background-position: center, center, center 30%;
    background-repeat: no-repeat;
  }

  .section-head{
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px){
  /* Galeria e footer passam definitivamente para uma coluna */
  .gallery-grid{
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 30px;
  }

  .site-footer .footer-top{
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 48px 0;
  }

  .site-footer .footer-inner.footer-bottom{
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
    gap: 14px;
  }

  .site-footer .footer-links{
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer .footer-btn{
    width: 100%;
  }

  /* Timeline preparada para ecrãs estreitos */
  .timeline-item{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Um pouco mais de aproximação nas fotografias horizontais do hero */
  .hero-bg,
  .hero-bg2,
  .hero-bggaleria,
  .hero-bgservicos,
  .hero-bgcontacto{
    background-size: cover, cover, auto 124%;
    background-position: center, center, 50% 58%;
  }
}

@media (max-width: 520px){
  /* Mantém 16px de margem lateral, em vez de deixar o conteúdo colado */
  .container{
    width: min(var(--container), calc(100% - 32px));
  }

  .header-inner,
  .site-header.is-scrolled .header-inner{
    height: 82px;
  }

  .brand-logo{
    width: 60px;
    height: 60px;
  }

  .nav-list{
    left: 12px;
    right: 12px;
    max-height: calc(100svh - 102px);
  }

  /* Hero compacto e equilibrado para ecrãs como o iPhone SE */
  .hero{
    min-height: calc(100svh - 82px);
    padding: 52px 0 68px;
  }

  .hero-title{
    font-size: clamp(44px, 13vw, 54px);
    margin-bottom: 14px;
  }

  .hero-lead{
    max-width: 31ch;
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-actions{
    gap: 10px;
    margin-bottom: 0;
  }

  .hero-actions .btn{
    min-height: 52px;
    padding-inline: 16px;
  }

  .hero-bottom{
    height: 64px;
  }

  .hero-bg,
  .hero-bg2,
  .hero-bggaleria,
  .hero-bgservicos,
  .hero-bgcontacto{
    background-size: cover, cover, auto 128%;
    background-position: center, center, 50% 60%;
  }

  .hero-bgnecrologia{
    background-position: center, center, center 26%;
  }

  /* Imagens empilhadas com uma altura adequada ao telemóvel */
  .about-media img{
    height: 280px;
  }

  .about-feature__media img{
    height: 270px;
  }

  .team-card{
    width: 100%;
  }

  .team-card__overlay{
    padding: 16px;
  }

  .team-card__name{
    font-size: 1.25rem;
  }

  /* Cartões, CTA e formulário sem excesso de volume */
  .cta-card,
  .location-card,
  .contact-form{
    padding: 18px;
  }

  .service-card{
    padding: 20px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea{
    font-size: 16px;
  }

  .contact-card__v,
  .mini-info__v,
  .location-item__v{
    font-size: .98rem;
  }

  .about-tags{
    gap: 8px;
    margin-bottom: 24px;
  }

  .tag{
    padding: 9px 11px;
    font-size: .88rem;
  }

  .stats{
    gap: 12px;
    padding: 22px 16px;
  }

  .stat{
    padding: 4px 0;
  }

  .location-map,
  .contact-map iframe{
    min-height: 320px;
  }

  .obit-card__body{
    padding: 18px 16px;
  }

  .site-footer .footer-top{
    padding: 44px 0;
  }

  .site-footer .footer-logo{
    font-size: 26px;
  }

  .site-footer .footer-bottom{
    padding: 18px 0 24px;
  }
}

@media (max-width: 360px){
  .container{
    width: min(var(--container), calc(100% - 24px));
  }

  .hero-title{
    font-size: 42px;
  }

  .hero-lead{
    font-size: .96rem;
  }

  .contact-card__v,
  .contact-card__s,
  .site-footer .footer-btn{
    font-size: .92rem;
  }
}

/* =========================================================
   COOKIES E SERVIÇOS EXTERNOS
   ========================================================= */

body.cookie-modal-open{
  overflow: hidden;
}

.cookie-layer[hidden],
.cookie-banner[hidden],
.cookie-modal[hidden],
.location-map[hidden],
.location-map-placeholder[hidden]{
  display: none !important;
}

.cookie-layer{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.cookie-banner{
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 22px;
  color: #f8f6f2;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 52%),
    #25221f;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  pointer-events: auto;
  animation: cookie-banner-in .35s ease both;
}

.cookie-banner__brand{
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.cookie-banner__brand img{
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.cookie-banner__content{
  min-width: 0;
}

.cookie-eyebrow{
  margin: 0 0 5px;
  color: #c9ab84;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cookie-banner h2,
.cookie-dialog h2,
.cookie-category h3{
  margin: 0;
  color: inherit;
}

.cookie-banner h2{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.05;
}

.cookie-banner__content > p:last-child{
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(248,246,242,.76);
  font-size: .95rem;
  line-height: 1.55;
}

.cookie-banner__actions,
.cookie-dialog__footer{
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-btn{
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.cookie-btn:hover{
  transform: translateY(-1px);
}

.cookie-btn:focus-visible,
.cookie-dialog__close:focus-visible,
.cookie-switch input:focus-visible + .cookie-switch__track{
  outline: 2px solid #c9ab84;
  outline-offset: 3px;
}

.cookie-btn--primary{
  color: #fff;
  background: #9a7f5f;
  border-color: #9a7f5f;
}

.cookie-btn--primary:hover{
  background: #aa8c68;
  border-color: #aa8c68;
}

.cookie-btn--secondary{
  color: inherit;
  background: transparent;
  border-color: rgba(255,255,255,.36);
}

.cookie-btn--secondary:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
}

.cookie-btn--ghost{
  color: inherit;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
}

.cookie-btn--ghost:hover{
  background: rgba(255,255,255,.14);
}

.cookie-modal{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
}

.cookie-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(18,16,14,.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: cookie-fade-in .22s ease both;
}

.cookie-dialog{
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: hidden;
  color: #292623;
  background: #fff;
  border: 1px solid rgba(154,127,95,.22);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  animation: cookie-dialog-in .28s ease both;
}

.cookie-dialog__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid rgba(154,127,95,.18);
}

.cookie-dialog h2{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1;
}

.cookie-dialog__close{
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #292623;
  background: #f5f2ee;
  border: 1px solid rgba(154,127,95,.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.cookie-dialog__close:hover{
  background: #eee8e1;
}

.cookie-dialog__body{
  overflow-y: auto;
  padding: 24px 28px;
  overscroll-behavior: contain;
}

.cookie-dialog__intro{
  margin: 0 0 20px;
  color: #5b5550;
  font-size: .96rem;
  line-height: 1.65;
}

.cookie-category{
  padding: 20px;
  background: #faf9f7;
  border: 1px solid rgba(154,127,95,.2);
  border-radius: 19px;
}

.cookie-category + .cookie-category{
  margin-top: 14px;
}

.cookie-category__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.cookie-category h3{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.cookie-category__top p{
  margin: 7px 0 0;
  color: #665f59;
  font-size: .89rem;
  line-height: 1.55;
}

.cookie-category__status{
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #6f5a41;
  background: #eee5d9;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.cookie-category__details{
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(154,127,95,.18);
}

.cookie-category__details dl{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.cookie-category__details dl > div{
  min-width: 0;
}

.cookie-category__details dt{
  margin-bottom: 4px;
  color: #89735b;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cookie-category__details dd{
  margin: 0;
  color: #5f5953;
  font-size: .8rem;
  line-height: 1.45;
}

.cookie-switch{
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.cookie-switch input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-switch__track{
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  background: #d7d1ca;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  transition: background-color .2s ease;
}

.cookie-switch__thumb{
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
  transition: transform .2s ease;
}

.cookie-switch input:checked + .cookie-switch__track{
  background: #9a7f5f;
}

.cookie-switch input:checked + .cookie-switch__track .cookie-switch__thumb{
  transform: translateX(22px);
}

.cookie-note{
  margin-top: 14px;
  padding: 16px 18px;
  color: #554f49;
  background: #f3efe9;
  border-radius: 16px;
}

.cookie-note strong{
  display: block;
  margin-bottom: 4px;
  color: #292623;
}

.cookie-note p{
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
}

.cookie-dialog__footer{
  justify-content: flex-end;
  padding: 18px 28px 24px;
  background: #fff;
  border-top: 1px solid rgba(154,127,95,.18);
}

.cookie-dialog .cookie-btn--secondary{
  color: #292623;
  border-color: rgba(41,38,35,.28);
}

.cookie-dialog .cookie-btn--secondary:hover{
  background: #f4f1ed;
  border-color: rgba(41,38,35,.42);
}

.cookie-dialog .cookie-btn--ghost{
  color: #292623;
  background: #f1ede8;
  border-color: #f1ede8;
}

.cookie-dialog .cookie-btn--ghost:hover{
  background: #e8e1d9;
}

.location-map-consent{
  position: relative;
  width: 100%;
  min-height: 460px;
  height: 100%;
}

.location-map-consent .location-map{
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.location-map-placeholder{
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 460px;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(154,127,95,.11), transparent 44%),
    #f5f2ee;
}

.location-map-placeholder__icon{
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  color: #8d7354;
  background: #fff;
  border: 1px solid rgba(154,127,95,.2);
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(65,52,39,.08);
}

.location-map-placeholder h3{
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.location-map-placeholder p{
  max-width: 520px;
  margin: 10px auto 20px;
  color: #615b55;
  line-height: 1.6;
}

.location-map-placeholder__actions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

@keyframes cookie-banner-in{
  from{
    opacity: 0;
    transform: translateY(18px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookie-dialog-in{
  from{
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cookie-fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@media (max-width: 980px){
  .cookie-banner{
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cookie-banner__actions{
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 680px){
  .cookie-banner{
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 24px);
    padding: 17px;
    border-radius: 20px;
  }

  .cookie-banner__brand{
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .cookie-banner__brand img{
    width: 44px;
    height: 44px;
  }

  .cookie-banner h2{
    font-size: 1.55rem;
  }

  .cookie-banner__content > p:last-child{
    grid-column: 1 / -1;
    font-size: .86rem;
  }

  .cookie-banner__actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cookie-banner__actions .cookie-btn{
    width: 100%;
  }

  .cookie-banner__actions .cookie-btn--ghost{
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cookie-modal{
    align-items: end;
    padding: 10px;
  }

  .cookie-dialog{
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 24px 24px 16px 16px;
  }

  .cookie-dialog__header{
    padding: 21px 20px 17px;
  }

  .cookie-dialog h2{
    font-size: 1.85rem;
  }

  .cookie-dialog__body{
    padding: 20px;
  }

  .cookie-category{
    padding: 17px;
  }

  .cookie-category__top{
    gap: 14px;
  }

  .cookie-category__details dl{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cookie-dialog__footer{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 15px 20px 20px;
  }

  .cookie-dialog__footer .cookie-btn{
    width: 100%;
  }

  .cookie-dialog__footer .cookie-btn--ghost{
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .location-map-consent,
  .location-map-consent .location-map,
  .location-map-placeholder{
    min-height: 340px;
  }

  .location-map-placeholder{
    padding: 24px 18px;
  }

  .location-map-placeholder__actions{
    width: 100%;
  }

  .location-map-placeholder__actions .btn{
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  .cookie-banner,
  .cookie-modal__backdrop,
  .cookie-dialog{
    animation: none;
  }

  .cookie-btn,
  .cookie-dialog__close,
  .cookie-switch__track,
  .cookie-switch__thumb{
    transition: none;
  }
}

.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   PERGUNTAS FREQUENTES
   ========================================================= */

body.faq-modal-open{
  overflow: hidden;
}

.faq-modal[hidden],
.faq-item__answer[hidden]{
  display: none !important;
}

/* Mantém o botão das FAQ visualmente igual aos links do footer. */
.site-footer .footer-faq-link{
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

.site-footer .footer-faq-link::after{
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.site-footer .footer-faq-link:hover{
  color: #fff;
  opacity: 1;
}

.site-footer .footer-faq-link:hover::after{
  transform: scaleX(1);
}

.site-footer .footer-faq-link:focus-visible{
  outline: none;
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(154,127,95,.22);
}

.faq-modal{
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 28px;
}

.faq-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(19,17,15,.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: faq-fade-in .24s ease both;
}

.faq-dialog{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: min(820px, calc(100svh - 56px));
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(154,127,95,.22);
  border-radius: 28px;
  box-shadow:
    0 30px 90px rgba(0,0,0,.28),
    0 8px 28px rgba(0,0,0,.12);
  animation: faq-dialog-in .28s ease both;
}

.faq-dialog:focus{
  outline: none;
}

.faq-dialog__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 34px 26px;
  border-bottom: 1px solid rgba(154,127,95,.18);
}

.faq-eyebrow{
  margin: 0 0 7px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.faq-dialog h2{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
}

.faq-dialog__intro{
  max-width: 590px;
  margin: 14px 0 0;
  color: #5f5b56;
  font-size: .98rem;
  line-height: 1.65;
}

.faq-dialog__close{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(154,127,95,.22);
  border-radius: 50%;
  background: #f8f6f3;
  color: #1c1a18;
  font: inherit;
  cursor: pointer;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.faq-dialog__close span{
  display: block;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.faq-dialog__close:hover{
  color: #fff;
  background: var(--accent);
}

.faq-dialog__close:focus-visible,
.faq-item__question:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.faq-dialog__body{
  padding: 12px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(154,127,95,.55) transparent;
  scrollbar-width: thin;
}

.faq-dialog__body::-webkit-scrollbar{
  width: 8px;
}

.faq-dialog__body::-webkit-scrollbar-track{
  background: transparent;
}

.faq-dialog__body::-webkit-scrollbar-thumb{
  background: rgba(154,127,95,.48);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

.faq-item{
  border-bottom: 1px solid rgba(154,127,95,.2);
}

.faq-item:last-child{
  border-bottom: 0;
}

.faq-item h3{
  margin: 0;
}

.faq-item__question{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: #211f1c;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease;
}

.faq-item__question:hover,
.faq-item__question[aria-expanded="true"]{
  color: var(--accent);
}

.faq-item__icon{
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.faq-item__icon::before,
.faq-item__icon::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .22s ease;
}

.faq-item__icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::after{
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__answer{
  padding: 0 42px 22px 0;
}

.faq-item__answer p{
  margin: 0;
  color: #605c56;
  font-size: .95rem;
  line-height: 1.75;
}

.faq-item__answer a{
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.faq-item__answer a:hover{
  text-decoration: underline;
}

.faq-dialog__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 34px;
  border-top: 1px solid rgba(154,127,95,.18);
  background: #f8f6f3;
}

.faq-dialog__footer p{
  margin: 0;
  color: #55514c;
  font-size: .93rem;
}

@keyframes faq-dialog-in{
  from{
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes faq-fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@media (max-width: 700px){
  .faq-modal{
    place-items: end center;
    padding: 10px;
  }

  .faq-dialog{
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 24px 24px 16px 16px;
  }

  .faq-dialog__header{
    gap: 16px;
    padding: 24px 20px 19px;
  }

  .faq-dialog h2{
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .faq-dialog__intro{
    margin-top: 10px;
    font-size: .92rem;
    line-height: 1.55;
  }

  .faq-dialog__close{
    width: 42px;
    height: 42px;
  }

  .faq-dialog__body{
    padding: 5px 20px;
  }

  .faq-item__question{
    gap: 16px;
    padding: 19px 0;
    font-size: .95rem;
  }

  .faq-item__answer{
    padding: 0 28px 19px 0;
  }

  .faq-item__answer p{
    font-size: .9rem;
    line-height: 1.65;
  }

  .faq-dialog__footer{
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 19px 20px 20px;
  }

  .faq-dialog__footer .btn{
    width: 100%;
  }
}

@media (max-width: 390px){
  .faq-modal{
    padding: 8px;
  }

  .faq-dialog{
    max-height: calc(100svh - 16px);
    border-radius: 20px 20px 14px 14px;
  }

  .faq-dialog__header{
    padding: 21px 18px 17px;
  }

  .faq-dialog__body{
    padding-inline: 18px;
  }

  .faq-dialog__footer{
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce){
  .faq-modal__backdrop,
  .faq-dialog{
    animation: none;
  }

  .faq-dialog__close,
  .faq-item__question,
  .faq-item__icon::before,
  .faq-item__icon::after{
    transition: none;
  }
}

/* =========================================================
   MODAIS — UNIFORMIZAÇÃO E CONTEÚDOS LEGAIS
   ========================================================= */

body.legal-modal-open{
  overflow: hidden;
}

.legal-modal[hidden]{
  display: none !important;
}

/* Botões legais do rodapé com o mesmo comportamento visual dos links. */
.site-footer .footer-legal-link{
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, opacity .18s ease;
}

.site-footer .footer-legal-link::after{
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.site-footer .footer-legal-link:hover{
  color: #fff;
  opacity: 1;
}

.site-footer .footer-legal-link:hover::after{
  transform: scaleX(1);
}

.site-footer .footer-legal-link:focus-visible{
  outline: none;
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(154,127,95,.22);
}

/* Estrutura comum dos três tipos de modal. */
.cookie-dialog,
.faq-dialog,
.legal-dialog{
  width: min(780px, 100%);
  max-height: min(820px, calc(100svh - 56px));
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(154,127,95,.22);
  border-radius: 28px;
  box-shadow:
    0 30px 90px rgba(0,0,0,.28),
    0 8px 28px rgba(0,0,0,.12);
}

.cookie-dialog__header,
.faq-dialog__header,
.legal-dialog__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 34px 26px;
  border-bottom: 1px solid rgba(154,127,95,.18);
}

.cookie-eyebrow,
.faq-eyebrow,
.legal-eyebrow{
  margin: 0 0 7px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cookie-dialog h2,
.faq-dialog h2,
.legal-dialog h2{
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
}

.cookie-dialog__close,
.faq-dialog__close,
.legal-dialog__close{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(154,127,95,.22);
  border-radius: 50%;
  background: #f8f6f3;
  color: #1c1a18;
  font: inherit;
  cursor: pointer;
  transform: none;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

.cookie-dialog__close:hover,
.faq-dialog__close:hover,
.legal-dialog__close:hover{
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: none;
}

.cookie-dialog__close:focus-visible,
.faq-dialog__close:focus-visible,
.legal-dialog__close:focus-visible,
.legal-inline-action:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cookie-dialog__close svg,
.faq-dialog__close svg,
.legal-dialog__close svg{
  display: block;
  pointer-events: none;
}

.cookie-modal__backdrop,
.faq-modal__backdrop,
.legal-modal__backdrop{
  background: rgba(19,17,15,.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Modal legal. */
.legal-modal{
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: grid;
  place-items: center;
  padding: 28px;
}

.legal-modal__backdrop{
  position: absolute;
  inset: 0;
  animation: legal-fade-in .24s ease both;
}

.legal-dialog{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: legal-dialog-in .28s ease both;
}

.legal-dialog:focus{
  outline: none;
}

.legal-dialog__intro{
  max-width: 600px;
  margin: 14px 0 0;
  color: #5f5b56;
  font-size: .98rem;
  line-height: 1.65;
}

.legal-dialog__body{
  padding: 8px 34px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(154,127,95,.55) transparent;
  scrollbar-width: thin;
}

.legal-dialog__body::-webkit-scrollbar{
  width: 8px;
}

.legal-dialog__body::-webkit-scrollbar-track{
  background: transparent;
}

.legal-dialog__body::-webkit-scrollbar-thumb{
  background: rgba(154,127,95,.48);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

.legal-section{
  padding: 24px 0;
  border-bottom: 1px solid rgba(154,127,95,.18);
}

.legal-section:last-child{
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h3{
  margin: 0 0 10px;
  color: #292623;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.legal-section p{
  margin: 0;
  color: #605a54;
  font-size: .94rem;
  line-height: 1.75;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p,
.legal-section .legal-table-wrap + p{
  margin-top: 11px;
}

.legal-section ul{
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 21px;
  color: #605a54;
  font-size: .94rem;
  line-height: 1.65;
}

.legal-section a{
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.legal-section a:hover{
  text-decoration: underline;
}

.legal-contact-list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.legal-contact-list > div{
  min-width: 0;
  padding: 14px;
  background: #faf9f7;
  border: 1px solid rgba(154,127,95,.18);
  border-radius: 14px;
}

.legal-contact-list dt{
  margin-bottom: 5px;
  color: #89735b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-contact-list dd{
  margin: 0;
  color: #5f5953;
  font-size: .84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.legal-table-wrap{
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid rgba(154,127,95,.2);
  border-radius: 16px;
  background: #fff;
}

.legal-table{
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  color: #5f5953;
  font-size: .84rem;
  line-height: 1.55;
}

.legal-table th,
.legal-table td{
  padding: 13px 15px;
  border-bottom: 1px solid rgba(154,127,95,.16);
  text-align: left;
  vertical-align: top;
}

.legal-table th{
  color: #6f5a41;
  background: #f4efe9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.legal-table tr:last-child td{
  border-bottom: 0;
}

.legal-inline-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 15px;
  padding: 10px 15px;
  border: 1px solid rgba(154,127,95,.38);
  border-radius: 999px;
  background: #f4efe9;
  color: #6f5a41;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease;
}

.legal-inline-action:hover{
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.legal-dialog__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 34px;
  border-top: 1px solid rgba(154,127,95,.18);
  background: #f8f6f3;
}

.legal-dialog__footer p{
  margin: 0;
  color: #55514c;
  font-size: .86rem;
}

@keyframes legal-dialog-in{
  from{
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes legal-fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@media (max-width: 700px){
  .cookie-dialog,
  .faq-dialog,
  .legal-dialog{
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 24px 24px 16px 16px;
  }

  .cookie-dialog__header,
  .faq-dialog__header,
  .legal-dialog__header{
    gap: 16px;
    padding: 24px 20px 19px;
  }

  .cookie-dialog h2,
  .faq-dialog h2,
  .legal-dialog h2{
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .cookie-dialog__close,
  .faq-dialog__close,
  .legal-dialog__close{
    width: 42px;
    height: 42px;
  }

  .legal-modal{
    place-items: end center;
    padding: 10px;
  }

  .legal-dialog__intro{
    margin-top: 10px;
    font-size: .92rem;
    line-height: 1.55;
  }

  .legal-dialog__body{
    padding: 4px 20px 20px;
  }

  .legal-section{
    padding: 21px 0;
  }

  .legal-section h3{
    font-size: 1.28rem;
  }

  .legal-section p,
  .legal-section ul{
    font-size: .9rem;
    line-height: 1.68;
  }

  .legal-contact-list{
    grid-template-columns: 1fr;
  }

  .legal-dialog__footer{
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 19px 20px 20px;
  }

  .legal-dialog__footer .btn{
    width: 100%;
  }
}

@media (max-width: 390px){
  .legal-modal{
    padding: 8px;
  }

  .cookie-dialog,
  .faq-dialog,
  .legal-dialog{
    max-height: calc(100svh - 16px);
    border-radius: 20px 20px 14px 14px;
  }

  .cookie-dialog__header,
  .faq-dialog__header,
  .legal-dialog__header{
    padding: 21px 18px 17px;
  }

  .legal-dialog__body{
    padding-inline: 18px;
  }

  .legal-dialog__footer{
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce){
  .legal-modal__backdrop,
  .legal-dialog{
    animation: none;
  }

  .cookie-dialog__close,
  .faq-dialog__close,
  .legal-dialog__close,
  .legal-inline-action,
  .site-footer .footer-legal-link::after{
    transition: none;
  }
}

/* =========================================================
   GALERIA — GRELHA, HOVER E VISUALIZADOR
   Aplicado apenas à página da galeria.
   ========================================================= */

.gallery-section{
  padding: 50px 0 90px;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  padding-top: 0;
}

.gallery-item{
  position: relative;
  aspect-ratio: 3 / 2;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 127, 95, .16);
  border-radius: var(--radius-lg);
  background: #eeeae5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.gallery-item__button{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

.gallery-item img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: transparent;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform .45s ease;
}

.gallery-item__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, .48) 100%);
  opacity: 0;
  transition: opacity .28s ease;
}

.gallery-item__view{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(20, 18, 16, .46);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-item:hover,
.gallery-item:focus-within{
  transform: translate3d(0, -4px, 0);
  border-color: rgba(154, 127, 95, .32);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.gallery-item:hover img,
.gallery-item:focus-within img{
  transform: translateZ(0) scale(1.01);
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-within .gallery-item__overlay{
  opacity: 1;
}

.gallery-item__button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: inherit;
}

body.gallery-lightbox-open{
  overflow: hidden;
}

.gallery-lightbox[hidden]{
  display: none !important;
}

.gallery-lightbox{
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-lightbox__backdrop{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(11, 10, 9, .84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;

  width: fit-content;
  max-width: calc(100vw - 32px);

  height: auto;
  max-height: calc(100svh - 32px);

  display: grid;
  grid-template-columns: 56px minmax(0, auto) 56px;
  align-items: center;
  gap: 18px;

  padding: 0;
  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
  overflow: visible;
  outline: none;
}

.gallery-lightbox__figure {
  min-width: 0;
  min-height: 0;

  width: fit-content;
  max-width: calc(100vw - 200px);

  height: auto;
  max-height: calc(100svh - 32px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin: 0;
}

.gallery-lightbox__image {
  width: auto;
  max-width: 100%;

  height: auto;
  max-height: calc(100svh - 84px);

  display: block;

  object-fit: contain;
  object-position: center;

  border-radius: 20px;
  background: transparent;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);

  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__caption {
  min-height: 0;
  margin: 0;

  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* ==================================================
   BOTÕES DO LIGHTBOX
================================================== */

.gallery-lightbox__close,
.gallery-lightbox__nav {
  display: grid;
  place-items: center;

  flex: 0 0 auto;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(30, 28, 26, 0.68);
  color: #fff;

  font: inherit;
  cursor: pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  border-color: rgba(154, 127, 95, 0.85);
  background: var(--accent, #9a7f5f);
  color: #fff;
}

.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.gallery-lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 5;

  width: 46px;
  height: 46px;

  border-radius: 50%;
  transform: none;
}

.gallery-lightbox__close:hover {
  transform: none;
}

.gallery-lightbox__close svg,
.gallery-lightbox__nav svg {
  display: block;
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.gallery-lightbox__close svg {
  width: 23px;
  height: 23px;
}

.gallery-lightbox__nav svg {
  width: 27px;
  height: 27px;
}

.gallery-lightbox__nav {
  position: relative;

  width: 56px;
  height: 56px;

  border-radius: 50%;
  transform: none;
}

.gallery-lightbox__nav:hover {
  transform: none;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 980px) {
  .gallery-section {
    padding: 38px 0 76px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 0;
  }

  .gallery-lightbox__dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);

    grid-template-columns: 48px minmax(0, auto) 48px;
    gap: 10px;
  }

  .gallery-lightbox__figure {
    max-width: calc(100vw - 140px);
    max-height: calc(100svh - 24px);
  }

  .gallery-lightbox__image {
    max-height: calc(100svh - 78px);
  }

  .gallery-lightbox__nav {
    width: 48px;
    height: 48px;
  }

  .gallery-lightbox__close {
    top: 18px;
    right: 18px;
  }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {
  .gallery-section {
    padding: 28px 0 60px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-item {
    border-radius: 18px;
  }

  .gallery-item__overlay {
    display: none;
  }

  .gallery-lightbox {
    padding: 8px;
  }

  .gallery-lightbox__dialog {
    width: fit-content;
    max-width: 100%;

    height: auto;
    max-height: calc(100svh - 16px);

    display: block;

    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .gallery-lightbox__figure {
    width: fit-content;
    max-width: 100%;

    height: auto;
    max-height: calc(100svh - 16px);

    gap: 9px;
  }

  .gallery-lightbox__image {
    width: auto;
    max-width: 100%;

    height: auto;
    max-height: calc(100svh - 62px);

    border-radius: 15px;
  }

  .gallery-lightbox__nav {
    display: none;
  }

  .gallery-lightbox__nav:hover {
    transform: translateY(-50%);
  }

  .gallery-lightbox__nav--prev {
    left: 10px;
  }

  .gallery-lightbox__nav--next {
    right: 10px;
  }

  .gallery-lightbox__close {
    position: fixed;
    top: 14px;
    right: 14px;

    width: 42px;
    height: 42px;
  }

  .gallery-lightbox__caption {
    padding-inline: 12px;
    font-size: 0.84rem;
  }
}

/* ==================================================
   REDUÇÃO DE MOVIMENTO
================================================== */

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img,
  .gallery-item__overlay,
  .gallery-lightbox__close,
  .gallery-lightbox__nav {
    transition: none;
  }
}


.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-status.is-success {
  color: #4f7652;
}

.form-status.is-error {
  color: #a33a3a;
}
