/* Francisco Veríssimo — Serviços Agrícolas · v3
   Composição: faixas alternadas (verde-escuro, marfim, amarelo) com grelha assimétrica de 12 colunas.
   O sol do logótipo e os sulcos do campo são os motivos gráficos; a hero usa um relevo 3D real (WebGL). */
:root {
  --verde: #123E32;
  --verde-escuro: #092D24;
  --amarelo: #F4C21B;
  --marfim: #F4F2E9;
  --tinta: #0B241D;
  --cinza-verde: #4A5C53;
  --esbatido: #7D8A80;
  --ocre: #8A6A00;
  --linha-clara: rgba(244, 242, 233, .16);
  --linha-escura: rgba(18, 62, 50, .2);
  --f-display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-corpo: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-rotulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --hh: 76px;
  --logo: 104px;
  --gut: max(24px, env(safe-area-inset-left, 0px));
  --gut-r: max(24px, env(safe-area-inset-right, 0px));
  --foco: var(--amarelo);
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --hh: 64px; --logo: 80px; --gut: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--logo) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--verde-escuro); color: var(--marfim); font-family: var(--f-corpo); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amarelo); color: var(--verde-escuro); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 900; line-height: .92; letter-spacing: -.005em; text-transform: uppercase; margin: 0; text-wrap: balance; }
p { margin: 0; }
.eyebrow { font-family: var(--f-rotulo); font-weight: 600; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: currentColor; flex: none; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 52ch; }
.on-light { background: var(--marfim); color: var(--tinta); --foco: var(--verde); }
.on-yellow { background: var(--amarelo); color: var(--verde-escuro); --foco: var(--verde-escuro); }

/* ---------- Cabeçalho ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--verde-escuro); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; height: var(--hh);
  padding-left: max(20px, var(--gut)); padding-right: max(20px, var(--gut-r));
  display: flex; align-items: center; gap: 24px; border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
  view-transition-name: cabecalho;
}
.site-header.scrolled, .site-header.solid { background: rgba(9, 45, 36, .95); border-bottom-color: var(--linha-clara); }
.site-header .brand { align-self: flex-start; margin-top: 8px; }
.brand { display: block; flex: none; background: transparent; padding: 4px; line-height: 0; }
.brand img { width: calc(var(--logo) - 8px); height: calc(var(--logo) - 8px); }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: 10px 14px; text-decoration: none;
  font-family: var(--f-rotulo); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(var(--amarelo), var(--amarelo)) no-repeat 14px calc(100% - 6px) / 0 2px;
  transition: background-size .25s var(--ease-out), color .2s ease;
}
.nav a[aria-current="page"] { color: var(--amarelo); background-size: calc(100% - 28px) 2px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background-size: calc(100% - 28px) 2px; } }
.menu-toggle { display: none; }
.call {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  background: var(--amarelo); color: var(--verde-escuro); text-decoration: none;
  font-family: var(--f-rotulo); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap;
}
.call svg { width: 18px; height: 18px; flex: none; }
.call-label { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
@media (max-width: 900px) {
  .site-header { gap: 10px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; cursor: pointer;
    background: var(--verde-escuro); color: var(--marfim); border: 1px solid var(--linha-clara);
    font: 600 .95rem/1 var(--f-rotulo); letter-spacing: .12em; text-transform: uppercase;
  }
  .menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); box-shadow: 0 0 0 currentColor; }
  .nav ul {
    position: absolute; top: var(--hh); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--verde-escuro); border-bottom: 1px solid var(--linha-clara);
    padding: calc(var(--logo) - var(--hh) + 12px) var(--gut-r) 20px var(--gut);
    transform-origin: 50% 0; animation: menuIn .2s var(--ease-out);
  }
  .nav ul[hidden] { display: none !important; }
  .nav a { display: block; padding: 14px 0; font-size: 1.5rem; background-position: 0 calc(100% - 8px); }
  .nav a[aria-current="page"] { background-size: 48px 2px; }
  .call-label { display: none; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 440px) {
  .call { padding: 8px 12px; font-size: 1.05rem; }
  .call .num { display: none; }
  .call-label { display: inline; }
}

/* Página inicial: cabeçalho a branco sobre a cena */
.site-header.over:not(.scrolled) .nav a[aria-current="page"] { color: var(--marfim); background-image: linear-gradient(var(--marfim), var(--marfim)); }
.site-header.over .nav a { text-shadow: 0 1px 12px rgba(9, 45, 36, .55); }
.site-header.over .call { background: transparent; color: var(--marfim); border: 2px solid var(--marfim); transition: background-color .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) { .site-header.over .call:hover { background: var(--marfim); color: var(--verde-escuro); } }
@media (max-width: 900px) { .site-header.over .menu-toggle { background: transparent; border-color: var(--marfim); } }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding: 14px 26px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font: 700 1.15rem/1 var(--f-rotulo); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease; touch-action: manipulation;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn .lbl { display: inline-flex; align-items: center; gap: 14px; }
.btn-primary { background: var(--amarelo); color: var(--verde-escuro); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-dark { background: var(--verde-escuro); color: var(--marfim); }
.btn:active { transform: scale(.97); transition: transform .12s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--marfim); color: var(--verde-escuro); border-color: var(--marfim); }
  .on-light .btn-ghost:hover, .on-yellow .btn-ghost:hover { background: var(--verde-escuro); color: var(--marfim); border-color: var(--verde-escuro); }
  .btn svg { transition: transform .25s var(--ease-out); }
  .btn:hover svg { transform: translateX(4px); }
}
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--f-rotulo); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--amarelo); }
.text-link svg { width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .text-link:hover svg { transform: translateX(4px); } }

/* ---------- Hero 3D (página inicial) ---------- */
.hero3d {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--verde-escuro) url("img/hero-campo.jpg") center 60% / cover no-repeat;
}
.hero3d-sky, .hero3d-sun, .hero3d-canvas { position: absolute; opacity: 0; transition: opacity .8s var(--ease-out); }
.hero3d-sky { inset: 0; background: linear-gradient(180deg, #092D24 0, #163E30 calc(var(--hz, 45%) - 24%), #8E6E38 calc(var(--hz, 45%) - 5%), #EDC77F var(--hz, 45%)); }
.hero3d-sun { left: 66%; top: var(--hz, 45%); width: clamp(120px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--amarelo); transform: translate(-50%, -64%); }
.hero3d-canvas { inset: 0; width: 100%; height: 100%; }
.hero3d.is-3d .hero3d-sky, .hero3d.is-3d .hero3d-sun, .hero3d.is-3d .hero3d-canvas { opacity: 1; }
.hero3d-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 45, 36, .78) 0%, rgba(9, 45, 36, .45) 38%, rgba(9, 45, 36, 0) 66%),
    linear-gradient(180deg, rgba(9, 45, 36, .35) 0%, rgba(9, 45, 36, 0) 30%, rgba(9, 45, 36, 0) 62%, rgba(9, 45, 36, .7) 100%);
}
.hero3d-content { position: relative; z-index: 2; display: grid; gap: 22px; padding-block: calc(var(--logo) + 40px) 96px; }
.hero3d .eyebrow { color: var(--amarelo); }
.hero3d h1 { font-size: clamp(3.6rem, 9.2vw, 9.6rem); max-width: 9.5ch; line-height: .9; }
.hero3d h1 .accent { color: var(--amarelo); }
.hero-sub { font-family: var(--f-rotulo); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.2; max-width: 30ch; color: var(--marfim); }
.hero-desc { font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 50ch; color: rgba(244, 242, 233, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 8px; }
.hero-tools { position: absolute; z-index: 3; right: var(--gut-r); bottom: 24px; display: flex; align-items: center; gap: 18px; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; cursor: pointer;
  background: rgba(9, 45, 36, .7); color: var(--marfim); border: 1px solid rgba(244, 242, 233, .35);
  font: 600 .85rem/1 var(--f-rotulo); letter-spacing: .12em; text-transform: uppercase;
}
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle[hidden] { display: none; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 .78rem/1 var(--f-rotulo); letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 46px; background: rgba(244, 242, 233, .25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--amarelo); animation: desce 1.8s var(--ease-in-out) infinite; }
@keyframes desce { to { transform: translateY(350%); } }

/* Versão só com a animação: ecrã inteiro, sem texto visível; sombra apenas por baixo do cabeçalho */
.hero-only { min-height: 100vh; min-height: 100svh; }
.hero-only .hero3d-shade { background: linear-gradient(180deg, rgba(9, 45, 36, .55) 0, rgba(9, 45, 36, 0) 22%, rgba(9, 45, 36, 0) 80%, rgba(9, 45, 36, .35) 100%); }
@media (max-width: 720px) { .hero-only .hero3d-shade { background: linear-gradient(180deg, rgba(9, 45, 36, .55) 0, rgba(9, 45, 36, 0) 20%, rgba(9, 45, 36, 0) 82%, rgba(9, 45, 36, .35) 100%); } .hero-only .hero-tools { justify-content: flex-end; } }

/* Entrada coreografada do texto: começa visível em 60 ms e não depende do 3D */
.enter { animation: entra .8s var(--ease-out) both; animation-delay: calc(60ms + var(--d, 0) * 80ms); }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }
.hero3d h1 .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; margin-bottom: -.05em; }
.hero3d h1 .wd { display: inline-block; animation: palavra .9s var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes palavra { from { transform: translateY(105%); } }
@media (max-width: 720px) {
  .hero3d { align-items: flex-start; }
  .hero3d-content { padding-block: calc(var(--logo) + 28px) 120px; gap: 18px; }
  .hero3d h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .hero3d-shade { background: linear-gradient(180deg, rgba(9, 45, 36, .6) 0%, rgba(9, 45, 36, .55) 40%, rgba(9, 45, 36, .5) 70%, rgba(9, 45, 36, .85) 100%); }
  .hero3d-sun { width: 104px; left: 80%; opacity: .75; }
  .hero3d.is-3d .hero3d-sun { opacity: .75; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-tools { left: var(--gut); right: var(--gut-r); justify-content: space-between; bottom: 16px; }
  .scroll-cue { display: none; }
}

/* ---------- Cabeçalho das páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--verde-escuro); }
.page-hero .wrap { padding-block: calc(var(--logo) + 56px) clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: end; }
.page-hero .eyebrow { grid-column: 1 / -1; color: var(--amarelo); }
.page-hero h1 { grid-column: 1 / 9; font-size: clamp(3.4rem, 9vw, 9rem); }
.page-hero .lead { grid-column: 1 / 8; color: rgba(244, 242, 233, .92); }
.page-hero-media { grid-column: 9 / 13; grid-row: 2 / span 2; align-self: end; }
.page-hero-media .frame { overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; background: var(--verde); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.furrows { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; width: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%); mask-image: linear-gradient(to bottom, transparent, #000 70%); }
.furrows line { stroke: rgba(244, 194, 27, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (max-width: 900px) {
  .page-hero h1, .page-hero .lead { grid-column: 1 / -1; }
  .page-hero-media { grid-column: 1 / -1; grid-row: auto; max-width: 360px; }
}

/* ---------- Faixa de identidade ---------- */
.band { background: var(--amarelo); color: var(--verde-escuro); overflow: hidden; padding-block: 16px; border-block: 1px solid var(--verde-escuro); }
.band-row { display: flex; width: max-content; }
.band-group { display: flex; align-items: center; flex: none; }
.band-group span { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: 1; font-size: clamp(2rem, 5vw, 4.2rem); padding-inline: .32em; white-space: nowrap; }
.band-group b { flex: none; width: .5em; height: .5em; border-radius: 50%; background: var(--verde-escuro); font-size: clamp(2rem, 5vw, 4.2rem); }
.motion .band-row { animation: faixa 60s linear infinite; }
.band.paused .band-row, .motion-paused .band-row { animation-play-state: paused; }
@keyframes faixa { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Secções genéricas ---------- */
.section { padding-block: clamp(88px, 11vw, 160px); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2.8rem, 6.6vw, 6.4rem); }
.on-light .eyebrow { color: var(--verde); }
.on-light h2 { color: var(--verde); }

/* Texto que ganha cor com o scroll */
.scrub .w { color: color-mix(in srgb, var(--verde) calc(var(--t, 1) * 100%), var(--esbatido)); }
.scrub .w.ac { color: color-mix(in srgb, var(--ocre) calc(var(--t, 1) * 100%), var(--esbatido)); }

/* Início: o que fazemos */
.intro h2 { grid-column: 1 / 11; grid-row: 2; font-size: clamp(3rem, 7.6vw, 7.6rem); }
.intro-list { grid-column: 1 / 7; grid-row: 3; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--verde); align-self: start; }
.intro-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--linha-escura); text-decoration: none; color: var(--tinta); position: relative; isolation: isolate; }
.intro-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--amarelo); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .intro-list a:hover::before { transform: scaleX(1); } }
.intro-list a:focus-visible::before { transform: scaleX(1); }
.intro-list strong { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1; color: var(--verde); }
.intro-list small { grid-column: 1; font-size: 1rem; color: var(--cinza-verde); }
.intro-list svg { grid-row: 1 / span 2; grid-column: 2; width: 26px; height: 26px; color: var(--verde); }
.intro-list + .intro-cta { grid-column: 1 / 7; grid-row: 4; }
.intro-media { grid-column: 8 / 13; grid-row: 3 / span 2; align-self: start; }

/* Vídeo decorativo / de conteúdo */
.vid { margin: 0; position: relative; }
.vid .frame { position: relative; overflow: hidden; background: var(--verde); aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid figcaption { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--cinza-verde); }
.vid-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; cursor: pointer; background: rgba(9, 45, 36, .78); color: var(--marfim); border: 0; font: 600 .85rem/1 var(--f-rotulo); letter-spacing: .12em; text-transform: uppercase; }
.vid-toggle svg { width: 14px; height: 14px; }

/* Início: área de atuação */
.area { position: relative; overflow: hidden; }
.area .grid12 { align-items: end; }
.area h2 { grid-column: 1 / 8; grid-row: 1; font-size: clamp(3rem, 7vw, 7rem); }
.area h2 em { font-style: normal; color: var(--amarelo); }
.area .lead { grid-column: 1 / 7; grid-row: 2; color: rgba(244, 242, 233, .9); }
.area-places { grid-column: 8 / 13; grid-row: 1 / span 2; display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha-clara); align-self: end; }
.area-places li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linha-clara); }
.area-places b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.area-places span { font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--amarelo); text-align: right; }
.wide-photo { margin: clamp(56px, 7vw, 96px) 0 0; overflow: hidden; }
.wide-photo .frame { overflow: hidden; aspect-ratio: 16 / 7; background: var(--verde); }
.wide-photo img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.wide-photo figcaption { margin-top: 12px; font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: rgba(244, 242, 233, .7); }

/* Chamada para ação */
.cta { padding-block: clamp(88px, 10vw, 140px); position: relative; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: end; position: relative; z-index: 1; }
.cta h2 { grid-column: 1 / 9; font-size: clamp(2.8rem, 6.6vw, 6.6rem); }
.cta-side { grid-column: 9 / 13; display: grid; gap: 18px; justify-items: start; }
.cta-phone { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.cta-sun { position: absolute; right: -8vw; bottom: -30vw; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(9, 45, 36, .18); pointer-events: none; }
.cta-sun::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 2px solid rgba(9, 45, 36, .12); }

/* ---------- Serviços ---------- */
.svc-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; grid-column: 1 / -1; }
.svc-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(244, 242, 233, .4); text-decoration: none; font: 600 1rem/1 var(--f-rotulo); letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .svc-index a:hover { background: var(--amarelo); color: var(--verde-escuro); border-color: var(--amarelo); } }
.svc-group { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--linha-escura); }
.svc-group:first-of-type { border-top: 0; }
.svc-group .grid12 { align-items: start; }
.svc-group-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.svc-group h2 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); color: var(--verde); }
.svc-count { font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza-verde); }
.svc-list { grid-column: 1 / 8; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--verde); }
.svc-group.no-media .svc-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.svc-item { display: grid; gap: 14px; padding: 26px 0; border-bottom: 1px solid var(--linha-escura); }
.svc-item h3 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--tinta); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.svc-actions .btn { min-height: 48px; padding: 10px 18px; font-size: 1rem; }
.svc-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 1rem/1 var(--f-rotulo); letter-spacing: .1em; text-transform: uppercase; color: var(--verde); text-underline-offset: 5px; }
.svc-wa svg { width: 18px; height: 18px; }
.svc-media { grid-column: 9 / 13; display: grid; gap: 28px; position: sticky; top: calc(var(--logo) + 24px); }
.svc-media figure { margin: 0; }
.svc-media .frame { overflow: hidden; background: var(--verde); }
.svc-media img { width: 100%; height: auto; }
.svc-media figcaption, .media-cap { margin-top: 10px; font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--cinza-verde); }
.svc-media .vid .frame { max-height: 70vh; }
@media (max-width: 900px) {
  .svc-list, .svc-group.no-media .svc-list { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .svc-media { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* ---------- Sobre nós ---------- */
.about-blocks { display: grid; gap: 0; border-top: 2px solid var(--verde); }
.about-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; padding-block: 40px; border-bottom: 1px solid var(--linha-escura); }
.about-block h2 { grid-column: 1 / 6; font-size: clamp(2.2rem, 4.2vw, 4rem); color: var(--verde); }
.about-block p { grid-column: 7 / 13; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.6; max-width: 56ch; }
@media (max-width: 900px) { .about-block h2, .about-block p { grid-column: 1 / -1; } }

/* Cartões sobrepostos (vantagens) */
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.card { position: sticky; top: calc(var(--logo) + 24px + var(--i) * 22px); }
.card-in { position: relative; overflow: hidden; min-height: min(46vh, 380px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 20px 48px; align-content: center; padding: clamp(28px, 4vw, 56px); transform-origin: 50% 0; will-change: transform; }
.card-in::after { content: ""; position: absolute; inset: 0; background: #031510; opacity: var(--dim, 0); pointer-events: none; }
.card:nth-child(3n+1) .card-in { background: var(--verde-escuro); color: var(--marfim); }
.card:nth-child(3n+2) .card-in { background: var(--marfim); color: var(--verde-escuro); }
.card:nth-child(3n) .card-in { background: var(--verde); color: var(--marfim); }
.card-k { font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; color: var(--amarelo); align-self: start; }
.card:nth-child(3n+2) .card-k { color: var(--ocre); }
.card h3 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); position: relative; z-index: 1; }
.card-art { position: absolute; right: 0; bottom: 0; width: min(40%, 420px); height: 70%; pointer-events: none; }
.card-art * { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .28; }
@media (max-width: 900px) { .card-in { grid-template-columns: minmax(0, 1fr); min-height: min(44vh, 340px); align-content: start; } }

/* ---------- Galeria ---------- */
.gallery { background: var(--verde-escuro); position: relative; }
.gallery-pin { padding-block: clamp(80px, 10vw, 140px) 56px; display: grid; gap: 40px; align-content: center; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.gallery-head .eyebrow { color: var(--amarelo); margin-bottom: 18px; }
.gallery h2 { font-size: clamp(3rem, 6.6vw, 6.2rem); max-width: 11ch; }
.gallery h2 em { font-style: normal; color: var(--amarelo); }
.gallery-ctrl { display: flex; align-items: center; gap: 12px; }
.gallery-count { font-family: var(--f-rotulo); font-weight: 600; font-size: 1.15rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin-right: 12px; min-width: 5.5ch; }
.gallery-count .cur { color: var(--amarelo); font-size: 1.6rem; }
.round-btn { width: 56px; height: 56px; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--marfim); border: 1px solid rgba(244, 242, 233, .4); border-radius: 50%; transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.round-btn svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .round-btn:hover:not(:disabled) { background: var(--amarelo); color: var(--verde-escuro); border-color: var(--amarelo); } }
.round-btn:disabled { opacity: .35; cursor: default; }
.gallery-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-left: var(--gut); padding-right: var(--gut-r); scroll-padding-inline: var(--gut); }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 48px); width: max-content; }
.g-item { flex: none; scroll-snap-align: start; display: grid; gap: 12px; }
.g-open { display: block; padding: 0; border: 0; background: var(--verde); cursor: zoom-in; overflow: hidden; line-height: 0; }
.g-open img { height: min(56svh, 400px); width: auto; max-width: 84vw; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .g-open:hover img { transform: scale(1.03); } }
.g-cap { display: flex; gap: 12px; align-items: baseline; font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; }
.g-cap span { color: var(--amarelo); font-variant-numeric: tabular-nums; }
.gallery-progress { margin-inline: var(--gut) var(--gut-r); height: 2px; background: var(--linha-clara); position: relative; overflow: hidden; }
.gallery-progress span { position: absolute; inset: 0; background: var(--amarelo); transform-origin: 0 50%; transform: scaleX(0); }
.gallery.is-pinned .gallery-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: calc(var(--logo) + 28px) 40px; gap: 32px; overflow: hidden; }
.gallery.is-pinned .gallery-viewport { overflow: hidden; scroll-snap-type: none; }
.gallery.is-pinned .gallery-track { align-items: center; will-change: transform; }
.gallery.is-pinned .g-item:nth-child(odd) img { height: min(50vh, 580px); }
.gallery.is-pinned .g-item:nth-child(even) img { height: min(40vh, 460px); }
.gallery.is-pinned .g-item:nth-child(even) { align-self: flex-end; }
.gallery.is-pinned .g-open img { max-width: none; }
@media (max-height: 760px) { .gallery.is-pinned h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); } }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--marfim); overflow: hidden; }
.lightbox::backdrop { background: rgba(6, 30, 24, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gut-r) 12px var(--gut); }
.lb-bottom { padding: 12px var(--gut-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gut); }
.lb-count { font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.lb-count b { color: var(--amarelo); }
.lb-close { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px; cursor: pointer; background: var(--amarelo); color: var(--verde-escuro); border: 0; font: 700 1rem/1 var(--f-rotulo); letter-spacing: .12em; text-transform: uppercase; }
.lb-close svg { width: 18px; height: 18px; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding-inline: var(--gut); }
.lb-stage img { max-width: min(100%, 1400px); max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); width: auto; height: auto; object-fit: contain; transform-origin: 0 0; }
.lb-cap { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1; }
.lb-nav { display: flex; gap: 12px; }

/* ---------- Contactos ---------- */
.contact-page .wrap { padding-block: calc(var(--logo) + 56px) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.contact-info { grid-column: 1 / 7; display: grid; gap: 32px; }
.contact-info .eyebrow { color: var(--amarelo); }
.contact-info h1 { font-size: clamp(3rem, 6.4vw, 6.4rem); }
.label { font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; color: rgba(244, 242, 233, .75); margin-bottom: 6px; }
.phone-big { display: inline-block; font-family: var(--f-display); font-weight: 900; line-height: .9; font-size: clamp(3.4rem, 7.6vw, 7.4rem); color: var(--amarelo); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-note { margin-top: 8px; color: rgba(244, 242, 233, .82); }
.phone-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.copy-btn { min-height: 48px; padding: 10px 18px; cursor: pointer; background: transparent; color: var(--marfim); border: 1px solid rgba(244, 242, 233, .45); font: 600 1rem/1 var(--f-rotulo); letter-spacing: .1em; text-transform: uppercase; }
.copy-status { font-size: .95rem; color: var(--amarelo); min-height: 1.5em; }
.contact-facts { display: grid; gap: 22px; border-top: 1px solid var(--linha-clara); padding-top: 24px; }
.contact-facts a { font-size: 1.25rem; text-underline-offset: 5px; text-decoration-color: rgba(244, 194, 27, .7); overflow-wrap: anywhere; }
.contact-facts p:not(.label) { font-size: 1.2rem; }
.form-panel { grid-column: 8 / 13; background: var(--marfim); color: var(--tinta); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; --foco: var(--verde); }
.form-panel h2 { font-size: clamp(2rem, 3vw, 2.8rem); color: var(--verde); }
.form-panel > p { color: var(--cinza-verde); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--verde); }
.field label span { color: var(--cinza-verde); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #9AA59D; border-radius: 0; background: #fff; color: var(--tinta); font: 400 1.05rem/1.4 var(--f-corpo); color-scheme: light; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
.field [aria-invalid="true"] { border-color: #A3261B; }
.field-error { color: #A3261B; font-size: .95rem; min-height: 0; }
.form-status { padding: 14px 16px; font-size: 1rem; border-left: 4px solid var(--verde); background: #E6E9DF; }
.form-status.error { border-left-color: #A3261B; background: #F6E5E2; }
.form-status[hidden] { display: none; }
.form-note { font-size: .9rem; color: var(--cinza-verde); }
@media (max-width: 900px) { .contact-info, .form-panel { grid-column: 1 / -1; } }

/* ---------- Rodapé ---------- */
.footer { background: var(--verde); border-top: 1px solid var(--linha-clara); }
.footer .wrap { padding-block: 56px max(40px, env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 32px 48px; align-items: start; }
.footer .brand { justify-self: start; }
.footer .brand img { width: 96px; height: 96px; }
.footer-name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.8rem; line-height: 1; margin-bottom: 8px; }
.footer-meta { color: rgba(244, 242, 233, .82); max-width: 44ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { min-height: 36px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.footer-note { grid-column: 1 / -1; font-size: .85rem; color: rgba(244, 242, 233, .6); border-top: 1px solid var(--linha-clara); padding-top: 20px; }
@media (max-width: 900px) { .footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer .wrap > div:first-of-type { grid-column: 1 / -1; } }

/* ---------- Revelação ao entrar no ecrã ---------- */
.motion .rv { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion .rv:not(.in) { opacity: 0; transform: translateY(24px); }

/* ---------- Transições entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .16s ease-out both; }
::view-transition-new(root) { animation: vtIn .3s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
.no-vt.motion main { animation: vtIn .3s var(--ease-out) both; }

@media (max-width: 900px) {
  .intro h2, .intro-list, .intro-list + .intro-cta, .intro-media, .area h2, .area .lead, .area-places, .cta h2, .cta-side { grid-column: 1 / -1; grid-row: auto; }
  .intro-media { max-width: 420px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* =========================================================
   v3.3 — Abertura comandada pelo scroll (página inicial)
   Sem JS / movimento reduzido / sem WebGL: versão estática (por defeito).
   Com a cena activa (.story-live): pista alta, cena fixa, faixa e cartões em movimento.
   ========================================================= */
.site-header.over { position: absolute; }
.story { --u: min(calc(100vw / 1440), calc(100vh / 960)); position: relative; background: var(--marfim); }
.story-scene {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--verde-escuro) url("img/hero-campo.jpg") 62% 50% / cover no-repeat;
}
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.story-shade {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--intro, 1);
  background:
    linear-gradient(90deg, rgba(9, 45, 36, .78) 0%, rgba(9, 45, 36, .42) 36%, rgba(9, 45, 36, 0) 62%),
    linear-gradient(180deg, rgba(9, 45, 36, .45) 0%, rgba(9, 45, 36, 0) 26%);
}
.story-intro { position: relative; z-index: 2; display: grid; gap: 22px; align-content: center; min-height: 100vh; min-height: 100svh; padding-block: calc(var(--logo) + 40px) 96px; }
.story-intro .eyebrow { color: var(--amarelo); }
.story-intro h1 { font-size: clamp(3.6rem, 9.2vw, 9.6rem); max-width: 9.5ch; line-height: .9; }
.story-intro h1 .accent { color: var(--amarelo); }
.story-intro h1 .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; margin-bottom: -.05em; }
.story-intro h1 .wd { display: inline-block; animation: palavra .9s var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 70ms); }
.story-cue, .story-speed { display: none; }

/* Faixa e cartões — versão estática: bloco normal por baixo da abertura */
.story-band { position: relative; background: var(--verde-escuro); color: var(--marfim); padding: 72px var(--gut-r) 96px var(--gut); }
.story-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1360px; margin: 0 auto; }
.strip-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.strip-lead h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .98; text-transform: uppercase; }
.strip-lead h2 .ac { color: var(--amarelo); }
.strip-copy p { font-size: 1rem; line-height: 1.55; color: rgba(244, 242, 233, .66); margin: 0 0 12px; }
.strip-card { display: grid; align-content: start; gap: 14px; text-decoration: none; color: var(--marfim); padding: 6px 0; }
.strip-card svg { width: 40px; height: 40px; color: var(--marfim); }
.strip-card h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.8rem; line-height: .98; margin: 0; }
.strip-card p { font-size: 1rem; line-height: 1.5; margin: 0; color: rgba(244, 242, 233, .82); }
.story-pill {
  display: table; margin: 48px auto 0; padding: 12px 22px; min-height: 44px; border: 1px solid rgba(244, 242, 233, .55); border-radius: 999px;
  color: var(--marfim); text-decoration: none; font: 600 .85rem/1.2 var(--f-rotulo); letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .strip-lead { grid-template-columns: 1fr; }
  .story-intro { align-content: start; padding-block: calc(var(--logo) + 28px) 120px; gap: 18px; }
  .story-intro h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .story-shade { background: linear-gradient(180deg, rgba(9, 45, 36, .62) 0%, rgba(9, 45, 36, .55) 55%, rgba(9, 45, 36, .7) 100%); }
  .story-intro .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Versão viva ---------- */
.story-live .story-scene {
  position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 0; overflow: hidden;
  background: var(--marfim);
}
.story-live .story-canvas { display: block; }
.story-live .story-intro { opacity: var(--intro, 1); transform: translateY(calc((1 - var(--intro, 1)) * -40px)); height: 100vh; height: 100svh; min-height: 0; }
.story-live.intro-off .story-intro, .story-live.intro-off .story-cue { visibility: hidden; }
.story-live .story-cue {
  display: flex; position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 8px;
  color: var(--marfim); font: 600 .78rem/1 var(--f-rotulo); letter-spacing: .22em; text-transform: uppercase; opacity: var(--intro, 1);
}
.story-cue i { display: block; width: 1px; height: 40px; background: rgba(244, 242, 233, .3); position: relative; overflow: hidden; }
.story-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--amarelo); animation: desce 1.8s var(--ease-in-out) infinite; }
.story-live .story-speed {
  display: block; position: absolute; z-index: 3; left: calc(26 * var(--u)); top: calc(52 * var(--u)); margin: 0;
  font: 600 max(11px, calc(10.5 * var(--u)))/1 var(--f-rotulo); letter-spacing: .14em; color: var(--verde-escuro);
  font-variant-numeric: tabular-nums; opacity: var(--ph, 0); transition: opacity .3s var(--ease-out);
}
.story-live .story-band {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; top: var(--edge-px, 100vh); padding: 0; overflow: hidden;
}
.story-live .story-strip {
  position: absolute; left: 0; top: calc(76 * var(--u)); display: flex; gap: calc(120 * var(--u)); max-width: none; margin: 0;
  will-change: transform; transform: translate3d(100vw, 0, 0);
}
.story-live .strip-lead { display: flex; gap: calc(64 * var(--u)); align-items: flex-start; flex: none; }
.story-live .strip-lead h2 { font-size: calc(64 * var(--u)); white-space: nowrap; }
.story-live .strip-copy { width: calc(250 * var(--u)); flex: none; }
.story-live .strip-copy p { font-size: max(11px, calc(12 * var(--u))); color: rgba(244, 242, 233, .62); }
.story-live .strip-card { flex: none; width: calc(270 * var(--u)); padding: 0 calc(30 * var(--u)); border-left: 1px solid rgba(244, 242, 233, .12); gap: calc(14 * var(--u)); }
.story-live .strip-card:first-of-type { border-left: 0; }
.story-live .strip-card svg { width: calc(38 * var(--u)); height: calc(38 * var(--u)); }
.story-live .strip-card h3 { font-size: calc(26 * var(--u)); }
.story-live .strip-card p { font-size: max(11px, calc(12.4 * var(--u))); }
/* Varrimento: de amarelo a marfim à medida que o cartão entra pela direita */
.story-live .strip-card h3, .story-live .strip-card p {
  background: linear-gradient(90deg, var(--marfim) calc(var(--s, -40%) - 34%), var(--amarelo) calc(var(--s, -40%) - 6%), transparent calc(var(--s, -40%) + 26%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story-live .story-pill {
  position: absolute; left: 50%; bottom: calc(36 * var(--u)); margin: 0;
  opacity: var(--ph, 0); transform: translate(-50%, calc((1 - var(--ph, 0)) * 24px));
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .story-pill:hover { background: var(--marfim); color: var(--verde-escuro); } .strip-card:hover h3 { text-decoration: underline; text-decoration-color: var(--amarelo); } }
.strip-card:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 6px; }

/* Telemóveis e ecrãs verticais */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .story { --u: min(calc(100vw / 430), 1.4px); }
  .story-live .story-strip { top: calc(44 * var(--u)); gap: calc(56 * var(--u)); padding-left: 22px; }
  .story-live .strip-lead { flex-direction: column; gap: calc(20 * var(--u)); }
  .story-live .strip-lead h2 { font-size: calc(46 * var(--u)); }
  .story-live .strip-copy { width: calc(300 * var(--u)); }
  .story-live .strip-copy p { font-size: calc(13 * var(--u)); }
  .story-live .strip-card { width: calc(250 * var(--u)); }
  .story-live .strip-card p { font-size: calc(13 * var(--u)); }
  .story-live .story-speed { font-size: 11px; left: 20px; top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .story-intro h1 .wd { animation: none; } }

/* ---------- v3.4 — Serviços: texto e imagens equilibrados ---------- */
.svc-group-head { display: grid; gap: 10px; margin-bottom: 28px; }
.svc-group-head .svc-count { order: -1; margin: 0; }
.svc-group h2 { font-size: clamp(2.4rem, 4.2vw, 4.2rem); line-height: .95; }
.svc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.svc-group.flip .svc-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc-group.flip .svc-text { order: 2; }
.svc-split .svc-list { grid-column: auto; }
.svc-split .svc-item h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
/* Todas as imagens do grupo com a mesma altura: a largura de cada uma é proporcional ao seu formato */
.svc-split .svc-media { grid-column: auto; position: static; display: flex; gap: 14px; align-items: flex-start; }
.svc-fig { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.svc-fig .frame { aspect-ratio: var(--ar); overflow: hidden; background: var(--verde); }
.svc-fig img, .svc-fig video { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-fig figcaption { margin-top: 10px; font-family: var(--f-rotulo); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; line-height: 1.35; color: var(--cinza-verde); }
.svc-group.no-media .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
@media (max-width: 900px) {
  .svc-split, .svc-group.flip .svc-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc-group.flip .svc-text { order: 0; }
  .svc-split .svc-media { gap: 10px; }
  .svc-group.no-media .svc-list { grid-template-columns: minmax(0, 1fr); }
}

/* v3.5 — vídeos na galeria */
.g-open.is-video { position: relative; cursor: pointer; }
.g-play { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: var(--amarelo); color: var(--verde-escuro); font-family: var(--f-rotulo); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1; transition: transform .2s var(--ease-out); }
.g-play svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .g-open.is-video:hover .g-play { transform: scale(1.05); } }
.lb-stage video { max-width: min(100%, 1400px); max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); width: auto; height: auto; background: #000; transform-origin: 0 0; }
.lb-stage [hidden] { display: none; }

/* v3.6 — Informação legal */
.field-check { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.field-check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--verde); }
.field-check label { font-family: var(--f-corpo); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1rem; color: var(--tinta); line-height: 1.45; }
.field-check label a, .form-note a { color: var(--verde); text-decoration: underline; text-underline-offset: 3px; }
.field-check .field-error { grid-column: 1 / -1; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--linha-clara); }
.footer-legal > a:not(.lre) { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.lre { display: inline-grid; gap: 2px; padding: 10px 16px; min-height: 44px; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); font-family: var(--f-rotulo); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; font-size: .95rem; text-decoration: none; transition: border-color .2s, background-color .2s; }
.lre:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.lre-s { color: rgba(255, 255, 255, .75); font-size: .78rem; letter-spacing: .12em; font-weight: 600; }
.lre:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.legal-page .wrap { padding-block: calc(var(--logo) + 56px) clamp(80px, 10vw, 140px); }
.legal-page h1 { font-size: clamp(3rem, 7vw, 6.4rem); margin-block: 12px 40px; }
.legal-page .eyebrow { color: var(--amarelo); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 48px 0 12px; color: var(--amarelo); }
.prose p { margin: 0 0 14px; color: rgba(244, 242, 233, .92); }
.prose a { color: var(--marfim); text-decoration: underline; text-underline-offset: 3px; }
.legal-date { font-size: .95rem; color: rgba(244, 242, 233, .7) !important; }
mark.tbc { background: var(--amarelo); color: var(--verde-escuro); padding: 0 4px; font-weight: 600; }
.footer-firma { flex: 1 1 100%; margin: 0; font-size: .9rem; color: rgba(244, 242, 233, .75); }

/* ---------- v3.8: abertura em ecrã inteiro (fotografias / vídeo), som ambiente ---------- */
.cine { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--verde-escuro); isolation: isolate; }
.cine-media { position: absolute; inset: 0; z-index: -2; }
.cine-media img, .cine-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-slide { opacity: 0; }
.cine-slide:first-child { opacity: 1; }
.cine-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(9, 45, 36, .72) 0%, rgba(9, 45, 36, .38) 38%, rgba(9, 45, 36, .2) 62%, rgba(9, 45, 36, .7) 100%),
  linear-gradient(90deg, rgba(9, 45, 36, .55) 0%, rgba(9, 45, 36, 0) 70%); }
.cine-copy { display: grid; gap: clamp(18px, 2.4vw, 28px); padding-block: calc(var(--logo) + 48px) 140px; }
.cine .eyebrow { color: var(--amarelo); }
.cine h1 { font-size: clamp(3.1rem, 6.2vw, 7.2rem); font-weight: 800; line-height: .92; max-width: 17ch; text-shadow: 0 2px 30px rgba(9, 45, 36, .35); }
.cine h1 .accent { color: var(--amarelo); }
.cine h1 .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.cine h1 .wd { display: inline-block; animation: palavra 1.1s var(--ease-out) both; animation-delay: calc(200ms + var(--i) * 90ms); }
.cine-sub { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--f-rotulo); font-weight: 500; font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: .06em; line-height: 1.3; color: rgba(244, 242, 233, .9); max-width: 64ch; }
.cine-sub::before { content: ""; flex: none; width: 40px; height: 2px; background: var(--amarelo); }
.cine-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 44px;
  color: var(--marfim); text-decoration: none; font: 600 .78rem/1 var(--f-rotulo); letter-spacing: .22em; text-transform: uppercase; }
.cine-cue i { display: block; width: 1px; height: 44px; background: rgba(244, 242, 233, .3); position: relative; overflow: hidden; }
.cine-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--amarelo); animation: desce 2.2s var(--ease-in-out) infinite; }
/* Fotografias em sequência lenta (só com movimento) */
.motion .cine-slide { animation: cine 24s linear infinite both; animation-delay: calc(var(--k) * 8s - .01s); }
.motion .cine-slide:first-child { animation-delay: -.01s; }
@keyframes cine {
  0% { opacity: 0; transform: scale(1.0); }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1.09); }
}
.motion .cine-slide:first-child { animation-name: cine-1; }
@keyframes cine-1 { /* a primeira já está visível ao abrir: não começa em branco */
  0% { opacity: 1; transform: scale(1.0); } 33.3% { opacity: 1; } 40% { opacity: 0; transform: scale(1.09); } 94% { opacity: 0; transform: scale(1); } 100% { opacity: 1; transform: scale(1.0); }
}
.cine.has-video .cine-slide { display: none; }
@media (max-width: 720px) {
  .cine { align-items: end; }
  .cine-copy { padding-block: calc(var(--logo) + 32px) 104px; }
  .cine h1 { font-size: clamp(2.7rem, 12.4vw, 4.4rem); }
  .cine-shade { background: linear-gradient(180deg, rgba(9, 45, 36, .6) 0%, rgba(9, 45, 36, .15) 30%, rgba(9, 45, 36, .55) 60%, rgba(9, 45, 36, .9) 100%); }
  .cine .hero-actions .btn { flex: 1 1 100%; }
}

/* Secção de fotografia larga */
.wide-photo { position: relative; min-height: min(58vh, 560px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.wide-photo-media { position: absolute; inset: 0; z-index: -2; }
.wide-photo-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.wide-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 45, 36, 0) 30%, rgba(9, 45, 36, .85) 100%), linear-gradient(270deg, rgba(9, 45, 36, .55) 0%, rgba(9, 45, 36, 0) 60%); }
.wide-photo-copy { display: grid; gap: 22px; padding-block: 72px clamp(56px, 6vw, 88px); }
@media (min-width: 901px) { .wide-photo-copy { justify-items: start; padding-left: max(52%, var(--gut)); } }
.wide-photo .eyebrow { color: var(--amarelo); }
.wide-quote { margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 3.3vw, 3.2rem); line-height: 1.02; max-width: 24ch; text-wrap: balance; }
.wide-photo .text-link { justify-self: start; color: var(--marfim); }
.story-band { padding-block: clamp(88px, 10vw, 140px); }

/* Botão de som: só o ícone do altifalante */
.sound { position: fixed; z-index: 70; right: max(16px, var(--gut-r)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(9, 45, 36, .78); color: var(--marfim); border: 1px solid rgba(244, 242, 233, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s ease, color .2s ease, transform .12s var(--ease-out); }
.sound[hidden] { display: none; }
.sound svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.sound .i-on, .sound[aria-pressed="true"] .i-off { display: none; }
.sound[aria-pressed="true"] .i-on { display: block; }
.sound[aria-pressed="true"] { color: var(--amarelo); border-color: rgba(244, 194, 27, .6); }
.sound:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .sound:hover { background: var(--marfim); color: var(--verde-escuro); } }

@media (prefers-reduced-motion: reduce) {
  .cine h1 .wd { animation: none; }
  .cine-cue i::after { animation: none; }
}
/* v3.9.1: no telemóvel a fotografia fica por cima e o texto por baixo, para não tapar o trator */
@media (max-width: 720px) {
  .wide-photo { display: block; min-height: 0; background: var(--verde-escuro); }
  .wide-photo-media { position: relative; inset: auto; z-index: auto; aspect-ratio: 4 / 3; }
  .wide-photo-media img { object-position: center 72%; }
  .wide-photo::after { display: none; }
  .wide-photo-copy { padding-block: 32px 64px; }
}

/* ---------- Galeria: fotos e vídeos sem cortes (pedido do cliente) ---------- */
.g-open img { height: auto; width: auto; max-height: min(56svh, 400px); max-width: 84vw; object-fit: contain; }
.gallery.is-pinned .gallery-pin { grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery.is-pinned .g-open { background: transparent; }
.gallery.is-pinned .g-open img { max-height: none; }
@supports (container-type: size) {
  .gallery.is-pinned .gallery-viewport { container-type: size; }
  .gallery.is-pinned .g-item:nth-child(odd) img { height: min(50vh, 580px, calc(100cqh - 40px)); }
  .gallery.is-pinned .g-item:nth-child(even) img { height: min(40vh, 460px, calc(82cqh - 40px)); }
}

/* ---------- Serviços v4: um exemplo (vídeo ou foto) por serviço ---------- */
.svc-v2 .svc-group-head { border-bottom: 2px solid var(--verde); padding-bottom: 18px; }
.svc-cards { list-style: none; margin: clamp(36px, 4.5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(24px, 3.4vw, 56px); }
.svc-card { display: grid; gap: 24px; align-content: start; scroll-margin-top: calc(var(--logo) + 24px); }
.svc-cards > .svc-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.svc-cards > .svc-card:nth-child(even) { --d2: 1; }

.svc-media2 { min-width: 0; }
.svc-media2 .stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--verde-escuro); isolation: isolate; }
.svc-media2 .stage::before { content: ""; position: absolute; inset: -48px; z-index: -1; background: var(--bg) center / cover no-repeat; filter: blur(30px) saturate(1.2) brightness(.78); transform: scale(1.15); }
.svc-media2 .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease-out), visibility 0s linear .55s; }
.svc-media2 .slide.is-on { opacity: 1; visibility: visible; transition: opacity .55s var(--ease-out), visibility 0s; }
.svc-media2 .slide img, .svc-media2 .slide video { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease-out); }
.svc-media2 .kind { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 10px 5px; background: var(--amarelo); color: var(--verde-escuro); font: 600 .8rem/1 var(--f-rotulo); letter-spacing: .14em; text-transform: uppercase; }
.vid-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; background: rgba(9, 45, 36, .72); color: var(--marfim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s ease, transform .2s var(--ease-out); }
.vid-toggle::before { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 16px; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.vid-toggle[aria-pressed="true"]::before { width: 0; height: 0; background: none; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; transform: translateX(2px); }
@media (hover: hover) and (pointer: fine) { .vid-toggle:hover { background: var(--amarelo); color: var(--verde-escuro); } }
.vid-toggle:active { transform: scale(.94); }
.thumbs { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 8px; padding: 6px; background: rgba(9, 45, 36, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.thumb { position: relative; width: 48px; height: 48px; padding: 0; border: 2px solid transparent; background: var(--verde) center / cover no-repeat; cursor: pointer; opacity: .55; transition: opacity .2s ease, border-color .2s ease, transform .2s var(--ease-out); }
.thumb.is-on { opacity: 1; border-color: var(--amarelo); }
@media (hover: hover) and (pointer: fine) { .thumb:hover { opacity: 1; } }
.thumb:active { transform: scale(.95); }
.thumb i { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

.svc-media2.is-empty .stage { display: grid; place-items: center; background: var(--verde) repeating-linear-gradient(115deg, transparent 0 22px, rgba(244, 242, 233, .05) 22px 23px); }
.svc-media2.is-empty .stage::before { display: none; }
.empty-art { display: grid; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.empty-art svg { width: min(46%, 150px); fill: none; stroke: var(--amarelo); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-art p { font: 900 clamp(1.6rem, 2.6vw, 2.4rem)/.95 var(--f-display); text-transform: uppercase; color: var(--marfim); max-width: 12ch; }

.svc-body { display: grid; gap: 14px; align-content: start; }
.svc-n { display: flex; align-items: center; gap: 14px; font: 600 1rem/1 var(--f-rotulo); letter-spacing: .16em; color: var(--ocre); }
.svc-n::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .5; transform-origin: left; transition: transform 1s var(--ease-out) .25s; }
.svc-v2 .svc-card h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1; color: var(--tinta); }
.svc-desc { color: var(--cinza-verde); max-width: 46ch; font-size: 1.05rem; }
.svc-v2 .svc-actions { margin-top: 6px; }

@media (hover: hover) and (pointer: fine) { .svc-card:hover .slide.is-on img { transform: scale(1.03); } }
@media (max-width: 760px) {
  .svc-cards { grid-template-columns: minmax(0, 1fr); }
  .svc-cards > .svc-card:last-child:nth-child(odd) { grid-template-columns: minmax(0, 1fr); }
  .svc-media2 .stage { aspect-ratio: 4 / 5; }
}

/* Movimento das fichas de serviço (só com movimento ativo) */
.motion .svc-card.rv:not(.in) { opacity: 1; transform: none; }
.motion .svc-card .stage { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out) calc(var(--d2, 0) * 110ms); }
.motion .svc-card:not(.in) .stage { clip-path: inset(100% 0 0 0); }
.motion .svc-card:not(.in) .slide img, .motion .svc-card:not(.in) .slide video { transform: scale(1.08); }
.motion .svc-card .svc-body > * { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--d2, 0) * 110ms + 260ms + var(--s, 0) * 70ms); }
.motion .svc-card .svc-body > :nth-child(2) { --s: 1; } .motion .svc-card .svc-body > :nth-child(3) { --s: 2; } .motion .svc-card .svc-body > :nth-child(4) { --s: 3; }
.motion .svc-card:not(.in) .svc-body > * { opacity: 0; transform: translateY(26px); }
.motion .svc-card:not(.in) .svc-n::after { transform: scaleX(0); }

/* ---------- 28 anos (Sobre nós) ---------- */
.years { padding-block: clamp(72px, 9vw, 132px); overflow: hidden; }
.years-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.years-num { margin: 0; font: 900 clamp(11rem, 30vw, 26rem)/.78 var(--f-display); letter-spacing: -.03em; color: var(--verde-escuro); font-variant-numeric: tabular-nums; position: relative; }
.years-num::after { content: ""; position: absolute; left: .04em; right: 0; bottom: -.06em; height: clamp(6px, .9vw, 12px); background: var(--verde-escuro); transform-origin: left; transition: transform 1.3s var(--ease-out) .2s; }
.years-txt { display: grid; gap: 18px; }
.years h2 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); color: var(--verde-escuro); }
.years-claim { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--f-rotulo); letter-spacing: .02em; color: var(--verde); max-width: 24ch; }
.years-p { max-width: 46ch; font-size: 1.1rem; color: var(--verde-escuro); }
.motion .years:not(.counted) .years-num::after { transform: scaleX(0); }
.motion .years .years-txt > .rv:nth-child(2) { transition-delay: .12s; }
.motion .years .years-txt > .rv:nth-child(3) { transition-delay: .24s; }
@media (max-width: 760px) { .years-in { grid-template-columns: minmax(0, 1fr); } .years-num { font-size: clamp(9rem, 48vw, 14rem); } }
