
/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --stone: #F4EFE4;
  --clay: #A9764E;
  --ink: #2B2620;
  --moss: #5C6B4C;
  --line: rgba(43, 38, 32, .12);
  --bg: #FBF8F2;
  --panel: var(--stone);
  --fg: var(--ink);
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Ritmo vertical — usar sempre estes tokens */
  --space-section: clamp(4.5rem, 9vw, 7.5rem);
  --space-head: clamp(2.25rem, 4.5vw, 3.5rem);
  --space-gap: clamp(1.25rem, 2.6vw, 2rem);
  --gutter: clamp(20px, 4vw, 28px);
  --header-h: 80px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

/* Escala tipográfica para ecrãs maiores (todos os tamanhos usam rem) */
@media (min-width: 1200px) {
  html { font-size: 106.25%; } /* 17px */
}

@media (min-width: 1440px) {
  html { font-size: 112.5%; } /* 18px */
}

@media (min-width: 1920px) {
  html { font-size: 125%; } /* 20px */
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

/* Front page: sobreposto ao hero, transparente. */
.site-header--overlay,
.admin-bar .site-header--overlay {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: rgba(251, 248, 242, .18);
  color: #FBF8F2;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

.site-header--overlay.is-scrolled {
  background: rgba(251, 248, 242, .94);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.site-header--overlay.is-scrolled .btn-line:hover {
  background: var(--ink);
  color: #FBF8F2;
}

.admin-bar .site-header--overlay { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header--overlay { top: 46px; } }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 50px;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo em {
  font-style: italic;
  color: var(--clay);
}

/* Logo enviado via Customizer > Identidade do Site.
   O core não emite width/height na <img> (flex-width/flex-height),
   por isso a imagem tem de ser limitada por CSS. */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  height: 50px;
  text-decoration: none;
}

.custom-logo-link img {
  height: auto;
  max-height: 100%;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__menu {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: .92rem;
}

.site-nav__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  opacity: .85;
}

.site-nav__menu a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header--overlay .btn-line { border-color: currentColor; }
.site-header--overlay .btn-line:hover { background: #FBF8F2; color: var(--ink); }

.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
  }

  .menu-toggle__bar,
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    content: "";
  }

  .menu-toggle__bar::before { position: absolute; top: -7px; }
  .menu-toggle__bar::after { position: absolute; top: 7px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px var(--gutter) 24px;
    background: var(--ink);
    color: #FBF8F2;
  }

  .site-nav.is-open { display: flex; }
  .site-nav__menu { flex-direction: column; gap: 0; }
  .site-nav .btn-line { border-color: #FBF8F2; }
}

/* Imagens de conteúdo que preenchem o contentor (cards, banda, galeria). */
.space-media img,
.imgband img,
.around-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #FBF8F2;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: .92rem;
  border: 1px solid var(--ink);
  transition: background .2s ease, color .2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn-line {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: .92rem;
  border: 1px solid var(--ink);
  transition: background .2s ease, color .2s ease;
}

.btn-line:hover {
  background: var(--ink);
  color: #FBF8F2;
}

/* ============================================================
   HERO — sempre 100vh, header sobreposto
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  color: #FBF8F2;
  background: var(--ink);
}

@supports (height: 100svh) {
  .hero { height: 100svh; }
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Opacidade definida no Customizer (Hero > Opacidade do overlay) via --hero-overlay. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(20, 16, 10);
  opacity: var(--hero-overlay, .45);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  max-width: 16ch;
}

.hero__subtitle {
  margin-top: 18px;
  max-width: 48ch;
  font-size: 1.04rem;
  opacity: .92;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__note {
  font-size: .86rem;
  opacity: .8;
}

.btn--light {
  background: #FBF8F2;
  color: var(--ink);
  border-color: #FBF8F2;
}

.btn--light:hover {
  background: transparent;
  color: #FBF8F2;
}

/* ============================================================
   SECTIONS — base
   ============================================================ */
section {
  padding-block: var(--space-section);
}

/* Títulos de secção — uma só escala */
.section-head h2,
.around-head h2,
.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: var(--space-head);
}

@media (min-width: 760px) {
  .section-head {
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: var(--space-gap) 64px;
  }
}

.section-head p {
  opacity: .72;
  max-width: 46ch;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro__inner {
  display: grid;
  gap: var(--space-gap);
}

@media (min-width: 800px) {
  .intro__inner {
    grid-template-columns: .8fr 1.2fr;
    align-items: start;
    gap: 64px;
  }
}

.intro .intro-stat {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.6rem, 7vw, 5.5rem);
  line-height: .9;
  color: var(--clay);
}

.intro .stat-label {
  margin-top: 16px;
  font-size: .94rem;
  opacity: .68;
  max-width: 30ch;
}

.intro .copy p {
  max-width: 58ch;
  font-size: 1.05rem;
  opacity: .9;
}

.intro .copy p + p {
  margin-top: 1.1em;
}

/* ============================================================
   FULL-BLEED IMAGE BAND
   ============================================================ */
.imgband {
  position: relative;
  overflow: hidden;
  height: 52vh;
  min-height: 340px;
  max-height: 520px;
}

/* ============================================================
   SPACES — grelha de cards
   ============================================================ */
.space-grid {
  display: grid;
  gap: var(--space-gap);
}

@media (min-width: 640px) {
  .space-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.space-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.space-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(43, 38, 32, .08);
}

.space-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.space-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.space-card:hover .space-media img {
  transform: scale(1.04);
}

.space-copy {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.space-copy .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  opacity: .4;
  font-size: 1rem;
  margin-bottom: 10px;
}

.space-copy h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.space-copy p {
  opacity: .78;
  font-size: .95rem;
}

/* ============================================================
   AROUND — envolvente
   ============================================================ */
.around {
  position: relative;
  overflow: hidden;
  color: #FBF8F2;
  isolation: isolate;
}

.around-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.around-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.around-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 10, .72) 0%, rgba(20, 16, 10, .55) 100%);
}

.around-head {
  max-width: 600px;
  margin: 0 auto var(--space-head);
  text-align: center;
}

.around-head p {
  margin-top: 14px;
  opacity: .86;
}

.around-stats {
  display: grid;
  gap: var(--space-gap);
  list-style: none;
}

@media (min-width: 640px) {
  .around-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .around-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Bordas abertas: só os cantos superior-esquerdo e inferior-direito,
   que se estendem ao passar o rato. */
.around-stats .stat {
  position: relative;
  padding: 32px 28px;
  transition: transform .35s ease;
}

.around-stats .stat::before,
.around-stats .stat::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(251, 248, 242, .55);
  transition: width .45s ease, height .45s ease, border-color .45s ease;
}

.around-stats .stat::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
}

.around-stats .stat::after {
  right: 0;
  bottom: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: var(--radius-md);
}

.around-stats .stat:hover {
  transform: translateY(-4px);
}

.around-stats .stat:hover::before,
.around-stats .stat:hover::after {
  width: 60%;
  height: 60%;
  border-color: #FBF8F2;
}

.stat-value {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 20px;
}

.stat-value small {
  font-size: .38em;
  font-style: italic;
  margin-left: 6px;
  opacity: .7;
}

.around-stats .stat h3 {
  font-size: 1.02rem;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
}

.around-stats .stat p {
  opacity: .78;
  font-size: .92rem;
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .around-stats .stat,
  .around-stats .stat::before,
  .around-stats .stat::after {
    transition: none;
  }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  gap: var(--space-head) var(--space-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.reviews-grid > div {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.14rem;
  line-height: 1.5;
}

.review-meta {
  margin-top: 20px;
  font-size: .86rem;
  opacity: .62;
}

/* ============================================================
   GALLERY SLIDER (Swiper)
   ============================================================ */
.gallery-slider {
  width: 100%;
  overflow: hidden;
  padding-bottom: calc(var(--space-section) - 52px);
}

.cdf-gallery-swiper {
  padding-bottom: 52px;
  padding-left: 12px;
  padding-right: 12px;
}

/* Com um só slide não há paginação, por isso o espaço para os bullets
   deixaria um vazio de 52px no fundo. */
.cdf-gallery-swiper[data-slides="1"] {
  padding-bottom: 12px;
}

.swiper-slide {
  height: auto;
}

.gallery-slide-inner {
  position: relative;
  width: 100%;
  /* Altura explícita via padding-bottom trick para garantir render correto */
  padding-bottom: 110%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-slide-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

/* Em modo loop, o slide activo duplicado recebe swiper-duplicate-active e não
   swiper-slide-active. Sem esta excepção, a imagem repetiria a transição de
   escala a cada volta e via-se a emenda. */
.cdf-gallery-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-duplicate-active) .gallery-slide-inner img {
  transform: scale(.97);
}

.cdf-gallery-swiper .swiper-slide-active .gallery-slide-inner img,
.cdf-gallery-swiper .swiper-duplicate-active .gallery-slide-inner img {
  transform: scale(1);
}

.cdf-gallery-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.3);
}



/* Paginação — bullets com cor do tema */
.cdf-gallery-swiper .swiper-pagination-bullet {
  background: var(--clay);
  opacity: .35;
  width: 7px;
  height: 7px;
  transition: opacity .2s, transform .2s;
}

/* Setas — estilizadas com as cores do tema */
.cdf-gallery-prev,
.cdf-gallery-next {
  color: var(--clay);
  background: rgba(251, 248, 242, .85);
  border-radius: 50%;
  width: 42px !important;
  height: 42px !important;
  margin-top: calc(-42px / 2);
  transition: background .2s, color .2s;
}

.cdf-gallery-prev::after,
.cdf-gallery-next::after {
  font-size: .9rem !important;
  font-weight: 700;
}

.cdf-gallery-prev:hover,
.cdf-gallery-next:hover {
  background: var(--ink);
  color: #FBF8F2;
}

@media (max-width: 679px) {
  .cdf-gallery-prev,
  .cdf-gallery-next {
    display: none !important;
  }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: #FBF8F2;
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-head);
}

.cta-band h2 {
  max-width: 18ch;
  color: #FBF8F2;
}

.cta-band .btn {
  background: #FBF8F2;
  color: var(--ink);
  border-color: #FBF8F2;
  white-space: nowrap;
}

.cta-band .btn:hover {
  background: transparent;
  color: #FBF8F2;
}

/* ============================================================
   FORMULÁRIO DE CONTACTO
   ============================================================ */
.contact-form {
  width: 100%;
}

.form-grid {
  display: grid;
  gap: 22px 24px;
}

@media (min-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .field-full {
    grid-column: 1 / -1;
  }
}

.contact-form .field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.contact-form label {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #FBF8F2;
  opacity: .72;
}

.contact-form .optional {
  text-transform: none;
  letter-spacing: 0;
  opacity: .55;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(251, 248, 242, .28);
  border-radius: var(--radius-md);
  background: rgba(251, 248, 242, .06);
  color: #FBF8F2;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, background .2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(251, 248, 242, .45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #FBF8F2;
  background: rgba(251, 248, 242, .11);
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

/* O input date pinta o ícone do calendário com a cor do texto. */
.contact-form input[type="date"] {
  color-scheme: dark;
}

.contact-form [aria-invalid="true"] {
  border-color: #E07A5F;
}

.contact-form .field-error {
  font-size: .8rem;
  color: #EDAB98;
}

.form-notice {
  margin: 0 0 24px;
  padding: 13px 16px;
  border-left: 3px solid;
  border-radius: var(--radius-md);
  font-size: .92rem;
}

.form-notice.ok {
  border-color: var(--moss);
  background: rgba(92, 107, 76, .3);
}

.form-notice.ko {
  border-color: #E07A5F;
  background: rgba(224, 122, 95, .22);
}

.contact-form .form-actions {
  margin: 32px 0 0;
}

.contact-form button {
  cursor: pointer;
  font-family: inherit;
}

/* Honeypot: escondido fora do ecrã em vez de display:none,
   porque muitos bots ignoram campos com display:none. */
.contact-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   FOOTER — 4 colunas
   ============================================================ */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

.site-footer a {
  text-decoration: none;
  opacity: .82;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer__title {
  font-family: 'Work Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 14px;
}

.site-footer .logo,
.site-footer .custom-logo-link {
  height: 40px;
  opacity: 1;
  margin-bottom: 14px;
}

.site-footer__slogan {
  max-width: 34ch;
  opacity: .82;
}

.site-footer__menu,
.site-footer__contacts {
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer__contacts { margin-top: 16px; }

.site-footer__gov-logo { margin-top: 20px; }

.site-footer__gov-logo img {
  width: auto;
  max-width: 180px;
  height: auto;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
}

.site-footer .social-links__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 1;
  transition: background-color .2s, color .2s, border-color .2s;
}

.site-footer .social-links__btn:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  text-decoration: none;
}

.social-links__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  font-size: .8rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

.site-footer__bottom p { opacity: .7; }

.site-footer__credits a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 639px) {
  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-body {
  padding-block: clamp(3rem, 6vw, 5rem);
  max-width: 820px;
}

.page-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.entry__content > * + * { margin-top: 1em; }
.entry__content ul,
.entry__content ol { padding-left: 1.4em; }
.entry__content a { color: var(--clay); }
.entry--summary + .entry--summary { margin-top: 2.5rem; }
.entry__meta { opacity: .6; font-size: .86rem; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   ANIMAÇÕES — entrada e rolagem
   Só activas com html.has-motion (definido em main.js quando há JS
   e o utilizador não pediu movimento reduzido). Sem JS, tudo visível.
   ============================================================ */

/* Hero — entrada ao carregar */
@keyframes cdf-hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@keyframes cdf-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.has-motion .hero__media {
  animation: cdf-hero-zoom 2.4s var(--ease-out) both;
}

.has-motion .hero__content > * {
  animation: cdf-fade-up .9s var(--ease-out) both;
}

.has-motion .hero__content > :nth-child(1) { animation-delay: .15s; }
.has-motion .hero__content > :nth-child(2) { animation-delay: .3s; }
.has-motion .hero__content > :nth-child(3) { animation-delay: .45s; }

.has-motion .site-header--overlay {
  animation: cdf-fade-up .8s var(--ease-out) both;
}

/* Revelação ao rolar */
.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-motion [data-reveal="fade"] { transform: none; }
.has-motion [data-reveal="zoom"] { transform: scale(.96); }

.has-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Parallax suave nas imagens de fundo */
.has-motion [data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.15);
  will-change: transform;
}
