/* =========================================================
   Fundação S. João de Deus · Componentes · v6
   Regras visuais:
   1. Papel claro e calmo; o bege vive nos cartões, não no fundo.
   2. Tudo arredondado: cartões, fotos, botões. Sem filetes a toda a largura.
   3. Imagem em primeiro plano: fotos grandes em cartões, retratos, pessoas.
   4. Cor por superfície: cada cartão escolhe uma cor da marca (Areia, Terra, Romã, Nocturno, Água só no Instituto).
   5. Pedra é acento raro: canto do hero e cartão de fecho. Nada mais.
   6. Títulos de livro em tinta, uma expressão em itálico Romã, traço de pincel curto por baixo.
   7. Ícones próprios de traço fino com semente Romã.
   8. Movimento com intenção: gráfico que se desenha, retratos com desfoque de velocidade, números que contam.
   9. Sem vidro, sem gradientes, sem chips.
   ========================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .28; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--heading); letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--c-roma); }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible, .hero__card :focus-visible, .closing :focus-visible, .tile--noct :focus-visible { outline-color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; z-index: var(--z-skip); background: var(--c-tinta); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 16px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .container { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: var(--section-y); }
.section--flush { padding-top: 0; }
.section--soft { background: var(--bg-alt); border-radius: var(--r-xl); margin-inline: max(8px, env(safe-area-inset-left, 0px)); }
.photo { filter: var(--photo-filter); }

/* ---------- Títulos ---------- */
.h2 { font-size: var(--fs-h2); line-height: 1.04; max-width: 16ch; }
.h2--wide { max-width: 22ch; margin-bottom: clamp(32px, 4vw, 56px); }
.muted { color: var(--text-muted); }
.lead { margin-top: 20px; font-size: var(--fs-body-l); line-height: 1.6; color: var(--text-soft); max-width: 46ch; }
.title-block { display: grid; justify-items: start; margin-bottom: clamp(36px, 4.4vw, 64px); }
.title-block--center { justify-items: center; text-align: center; }
.title-block--center .lead { margin-inline: auto; }
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.title-row .title-block { margin: 0; }
/* traço de pincel curto (em vez de uma linha reta) */
.stroke { display: block; width: 56px; height: 12px; margin-top: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 12'%3E%3Cpath d='M2 8 C 14 3, 26 10, 38 6 C 44 4, 50 4, 54 5' fill='none' stroke='%231C1A17' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.footnote { margin-top: 14px; font-size: var(--fs-caption); color: var(--text-muted); }

/* ---------- Botões e links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: 600 var(--fs-small)/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--action); color: #fff; }
.btn--primary:hover { background: var(--action-hover); }
.btn--dark { background: var(--c-tinta); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--c-tinta); color: var(--c-tinta); background: transparent; }
.btn--outline:hover { background: var(--c-tinta); color: #fff; }
.btn--light { background: #fff; color: var(--c-tinta); }
.btn--light:hover { background: var(--c-areia-100); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--c-tinta); }
.btn--sm { min-height: 42px; padding: 0 18px; }
.btn--block { width: 100%; }
.icon-btn { width: 48px; height: 48px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--heading); cursor: pointer; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--c-tinta); border-color: var(--c-tinta); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: var(--fs-small); color: var(--heading); text-decoration: none; }
.link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size var(--dur-base) var(--ease-out); }
.link:hover span { background-size: 0 1.5px; background-position: 100% 100%; }
.link svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Ícones próprios ---------- */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; --seed: var(--c-roma); }
.ico--lg { width: 40px; height: 40px; stroke-width: 1.2; }
.ico--xl { width: 56px; height: 56px; stroke-width: 1.1; }
.ico--agua { --seed: var(--c-agua); }
.ico-badge { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-areia-100); color: var(--c-tinta); }
.ico-badge--agua { background: var(--c-agua-50); }
.ico-badge--sm .ico { width: 20px; height: 20px; }

/* ---------- Pedras e traço ---------- */
.stone { display: block; width: 100%; height: auto; aspect-ratio: 1; overflow: visible; fill: var(--c-terra-300); }
.stone--roma { fill: var(--c-roma); }
.stone--sand { fill: var(--c-areia-100); }
.stone--noct { fill: var(--c-noct); }
.draw { overflow: visible; }
.draw path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.js .draw.will-draw path { stroke-dashoffset: 1; }
.js .draw.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease-in-out); }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(8px, -12px) rotate(5deg); } }
[data-float] { animation: drift 13s ease-in-out infinite; }

/* ---------- Header + menu em cartões ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: var(--z-header); padding-top: env(safe-area-inset-top, 0px); background: rgba(250, 248, 245, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); }
.header__row { display: flex; align-items: center; gap: 24px; height: 80px; }
.header__logo { flex: none; display: block; }
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 0; background: transparent; font-weight: 500; font-size: var(--fs-small); text-decoration: none; cursor: pointer; color: inherit; transition: background var(--dur-fast); }
.nav__link svg { width: 14px; height: 14px; transition: transform var(--dur-base); }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link.is-current { background: var(--c-areia-100); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 12px); left: 50%; width: min(740px, 90vw); transform: translate(-50%, 10px); background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 12px; display: grid; grid-template-columns: 1fr 250px; gap: 12px; opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base); }
/* ponte invisivel sobre o espaco entre o botao e o painel: o rato passa sem o fechar */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.mega__list a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-md); text-decoration: none; transition: background var(--dur-fast); }
.mega__list a:hover { background: var(--bg-alt); }
.mega__list strong { display: block; font-weight: 600; color: var(--heading); font-size: var(--fs-small); }
.mega__list span span { display: block; font-size: var(--fs-caption); color: var(--text-muted); }
.mega__feature { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 230px; text-decoration: none; color: #fff; display: flex; align-items: flex-end; padding: 18px; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(20,14,10,.7)); }
.mega__feature span { position: relative; z-index: 1; font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.help-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: transparent; font-weight: 600; font-size: var(--fs-small); cursor: pointer; color: var(--c-roma-700); }
.help-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-roma); }
.help-btn:hover { background: var(--c-roma-50); }
.help-short { display: none; }
.burger { display: none; }
.mmenu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg); padding: calc(env(safe-area-inset-top, 0px) + 96px) 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transition: opacity var(--dur-base), visibility 0s linear var(--dur-base); }
.mmenu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mmenu__group { border-radius: var(--r-md); background: var(--bg-alt); padding: 0 20px; }
.mmenu__toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; background: none; border: 0; font-family: var(--font-display); font-size: 26px; color: var(--heading); cursor: pointer; text-align: left; text-decoration: none; }
.mmenu__toggle svg { width: 20px; height: 20px; transition: transform var(--dur-base); }
.mmenu__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.mmenu__sub { list-style: none; margin: 0; padding: 0 0 16px; display: grid; gap: 4px; }
.mmenu__sub a { display: block; padding: 8px 0; color: var(--text-soft); text-decoration: none; }
.mmenu__cta { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; }
.header.menu-open { background: var(--bg); }
@media (max-width: 1100px) { .nav { display: none; } .burger { display: inline-grid; } .header__actions { margin-left: auto; } }
@media (max-width: 600px) { .header__row { height: 72px; gap: 8px; } .header__logo img { height: 36px; } .help-btn { padding: 0 12px; } .help-long { display: none; } .help-short { display: inline; } .header .btn--primary { display: none; } }

/* ---------- Drawer de ajuda ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(28,26,23,.4); opacity: 0; transition: opacity var(--dur-base); border: 0; padding: 0; width: 100%; cursor: pointer; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 8px; right: 8px; bottom: 8px; width: min(460px, calc(100% - 16px)); background: var(--bg); border-radius: var(--r-lg); padding: calc(env(safe-area-inset-top, 0px) + 28px) 28px 28px; display: flex; flex-direction: column; gap: 12px; transform: translateX(110%); transition: transform var(--dur-slow) var(--ease-out); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.drawer__title { font-size: var(--fs-h3); }
.drawer__intro { color: var(--text-soft); font-size: var(--fs-small); }
.help-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-md); background: #fff; }
.help-card h3 { font-family: var(--font-text); font-weight: 600; font-size: var(--fs-body); letter-spacing: 0; }
.help-card p { font-size: var(--fs-small); color: var(--text-soft); }
.help-card .help-card__num { font-family: var(--font-display); font-size: 32px; line-height: 1.15; color: var(--heading); user-select: all; }
.help-card--urgent { background: var(--c-roma-50); }
.help-card--urgent h3, .help-card--urgent .help-card__num { color: var(--c-roma-700); }
.help-card--isjd { background: var(--c-agua-50); }

/* ---------- Hero: cartão de fotografia ---------- */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 88px); }
.hero__card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); min-height: clamp(560px, 80vh, 820px); display: flex; align-items: flex-end; background: var(--c-terra-800); color: #fff; }
.hero__slide { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.2s var(--ease-in-out); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide video, .hero__slide iframe { width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
.hero__slide iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); }
/* setas do hero: so ao passar o rato ou com o teclado */
.hero__seta { position: absolute; top: 50%; margin-top: -24px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: rgba(20,14,10,.25); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; opacity: 0; transition: opacity var(--dur-base) var(--ease-out), background-color var(--dur-fast); }
.hero__seta svg { width: 22px; height: 22px; }
/* uma de cada lado, a meia altura */
.hero__seta--ant { left: 16px; }
.hero__seta--seg { right: 16px; }
.hero__card:hover .hero__seta, .hero__seta:focus-visible { opacity: 1; }
.hero__seta:hover { background: rgba(20,14,10,.5); }
.hero__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,14,10,.62) 0%, rgba(20,14,10,.25) 45%, rgba(20,14,10,0) 70%), linear-gradient(0deg, rgba(20,14,10,.35), transparent 50%); }
.hero__content { max-width: 640px; padding: clamp(28px, 5vw, 72px); }
.hero__title { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; color: #fff; font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.75rem); line-height: 1; letter-spacing: -.03em; max-width: 13ch; }
.hero__title em { font-style: italic; color: #fff; }
.hero__lead { margin: 22px 0 32px; font-size: var(--fs-body-l); color: #fff; max-width: 42ch; }
.hero__corner { position: absolute; right: -36px; bottom: -44px; width: clamp(180px, 18vw, 250px); aspect-ratio: 1; display: grid; place-items: center; padding: 0 18px 22px 0; }
.hero__corner .stone { position: absolute; inset: 0; }
.hero__corner[hidden] { display: none; }
.hero-pause { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hero-pause svg { width: 18px; height: 18px; }
.hero-pause:hover { background: #fff; color: var(--c-roma); }
.hero-pause[hidden] { display: none; }
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: var(--grid-gap); }
.entry { display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-radius: var(--r-lg); background: var(--bg-alt); text-decoration: none; color: inherit; transition: background var(--dur-base), transform var(--dur-base) var(--ease-out); }
.entry:hover { background: var(--c-areia-100); transform: translateY(-2px); }
.entry__img { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.entry__img img { width: 100%; height: 100%; object-fit: cover; }
.entry__img--icon { background: var(--c-agua-50); }
.entry__img--icon .ico { width: 28px; height: 28px; }
.entry strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--heading); }
.entry span span { display: block; font-size: var(--fs-small); color: var(--text-soft); }
@media (max-width: 900px) {
  .hero__card { min-height: 600px; }
  .hero__card::after { background: linear-gradient(0deg, rgba(20,14,10,.7) 0%, rgba(20,14,10,.2) 60%, transparent); }
  .hero__corner { width: 150px; right: -30px; bottom: auto; top: -30px; padding: 26px 22px 0 0; }
  .entries { grid-template-columns: 1fr; }
}

/* ---------- Frase com fotos dentro do texto ---------- */
.statement { max-width: 1120px; font-family: var(--font-display); font-size: var(--fs-lead); line-height: 1.24; letter-spacing: -.02em; color: var(--heading); }
.statement .w { transition: color var(--dur-base); }
.statement .w.is-dim { color: var(--c-areia-200); }
.cap { display: inline-block; width: 1.9em; height: .9em; border-radius: var(--r-pill); overflow: hidden; vertical-align: -.1em; margin: 0 .06em; background: var(--c-areia-100); }
.cap img { width: 100%; height: 100%; object-fit: cover; }
.cap--icon { width: 1.25em; display: inline-grid; place-items: center; background: var(--c-roma-100); color: var(--c-tinta); }
.cap--icon .ico { width: .62em; height: .62em; stroke-width: 1.8; }

/* ---------- Bento: foto + cor sólida ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: var(--grid-gap); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; text-decoration: none; color: var(--text); background: var(--c-areia-100); }
.tile h3 { font-size: var(--fs-h3); line-height: 1.08; max-width: 15ch; }
.tile p { font-size: var(--fs-small); color: var(--text-soft); max-width: 36ch; }
.tile--photo { color: #fff; background: var(--c-terra-800); }
.tile--photo > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--dur-slow) var(--ease-out); }
.tile--photo::after { content: ""; position: absolute; inset: 30% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(20,14,10,.72)); }
.tile--photo h3, .tile--photo p { color: #fff; }
a.tile--photo:hover > img.photo { transform: scale(1.05); }
.tile--sand { background: var(--c-areia-100); }
.tile--noct { background: var(--c-noct); color: #fff; }
.tile--noct p { color: #fff; }
.tile--agua { background: var(--c-agua-50); justify-content: flex-start; }
.tile--agua .ico { margin-bottom: auto; }
.tile--agua .link { margin-top: 6px; }
.tile__brush { position: absolute; top: clamp(24px, 2.6vw, 34px); left: clamp(24px, 2.6vw, 34px); width: 64px; height: 64px; object-fit: contain; transition: transform var(--dur-slow) var(--ease-out); }
.tile__brush--light { filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
a.tile:hover .tile__brush { transform: rotate(-10deg) scale(1.08); }
.tile--sand .tile__brush { width: 88px; height: 88px; left: auto; right: clamp(24px, 2.6vw, 34px); }
.five { display: flex; gap: 10px; margin-bottom: auto; }
.five .ico { width: 52px; height: 52px; stroke: rgba(255,255,255,.55); stroke-width: 1.3; --seed: rgba(255,255,255,.2); transition: transform .8s var(--ease-spring); }
.five .ico.is-on { stroke: #fff; --seed: var(--c-roma); }
.tile.is-revealed .five .ico.is-on { transform: translateY(-8px) scale(1.1); transition-delay: .5s; }
.tile .tile__big { font-family: var(--font-display); font-size: clamp(52px, 5.4vw, 80px); line-height: .95; letter-spacing: -.03em; color: #fff; max-width: none; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.row-2 { grid-row: span 2; }
@media (max-width: 1000px) { .span-5, .span-7 { grid-column: span 6; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(260px, auto); } .span-5, .span-6, .span-7 { grid-column: auto; } .row-2 { grid-row: auto; min-height: 420px; } }

/* ---------- Impacto: gráfico no papel + métricas com ícone ---------- */
.impact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.impact .title-block { margin: 0; }
.chart-wrap { margin: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: var(--line-strong); stroke-dasharray: 2 7; stroke-linecap: round; }
.chart__x text { font: 500 13px var(--font-text); fill: var(--text-muted); }
.chart__area { fill: url(#chart-fill); }
.chart__line { fill: none; stroke: var(--c-roma); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart__plot { clip-path: inset(0 0 0 0); }
.js .chart.will-chart .chart__plot { clip-path: inset(0 100% 0 0); }
.js .chart.is-charted .chart__plot { clip-path: inset(0 0 0 0); transition: clip-path 2s var(--ease-in-out); }
.chart__dot { fill: var(--bg); stroke: var(--c-roma); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.chart__dot--big { fill: var(--c-roma); stroke: var(--bg); stroke-width: 5; }
.js .chart.will-chart .chart__dot { opacity: 0; transform: scale(.3); }
.js .chart.is-charted .chart__dot { opacity: 1; transform: none; transition: opacity .4s, transform .6s var(--ease-spring); transition-delay: calc(var(--i, 0) * 300ms + 700ms); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: clamp(40px, 5vw, 72px); padding: 8px; border-radius: var(--r-xl); background: var(--bg-alt); }
.metric { display: grid; gap: 6px; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--bg); }
.metric .ico { color: var(--c-tinta); margin-bottom: 14px; }
.metric__v { font-family: var(--font-display); font-size: clamp(40px, 4.2vw, 62px); line-height: 1; letter-spacing: -.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.metric p:last-child { font-size: var(--fs-small); color: var(--text-soft); max-width: 22ch; }
@media (max-width: 900px) { .impact { grid-template-columns: 1fr; } .metrics { grid-template-columns: 1fr 1fr; } }

/* ---------- Pessoas: faixa ligada ao scroll, desfoque com a velocidade ---------- */
.people { overflow: hidden; padding-block: 8px; }
.people__track { display: flex; gap: var(--grid-gap); width: max-content; padding-inline: max(16px, calc((100vw - var(--container)) / 2)); transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.person { flex: none; width: clamp(210px, 21vw, 300px); aspect-ratio: 3 / 4; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--c-areia-100); }
.person:nth-child(3n+2) { margin-top: 48px; }
.person img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); transform: scale(1.03); }

/* ---------- Projetos: lista numerada + fotografia ---------- */
.switch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--grid-gap); }
.switch__panel img { width: 100%; height: 100%; object-fit: cover; }
@keyframes reveal { from { clip-path: inset(0 0 0 100% round var(--r-xl)); } to { clip-path: inset(0 0 0 0 round var(--r-xl)); } }
/* ---------- Vozes: foto + citação + número ---------- */
.voices { display: grid; gap: var(--grid-gap); }
.voice { display: grid; grid-template-columns: 220px minmax(0, 1fr) 240px; gap: 8px; margin: 0; padding: 8px; border-radius: var(--r-xl); background: var(--bg); }
.voice__img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--r-lg); }
.voice__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.6vw, 36px); }
.voice blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(21px, 1.9vw, 28px); line-height: 1.3; color: var(--heading); max-width: 34ch; }
.voice figcaption { font-size: var(--fs-caption); color: var(--text-muted); }
.voice figcaption strong { color: var(--heading); font-weight: 600; }
.voice__stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--bg-alt); font-size: var(--fs-small); color: var(--text-soft); }
.voice__stat span { font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; color: var(--c-roma); }
@media (max-width: 900px) { .voice { grid-template-columns: 120px minmax(0, 1fr); } .voice__img { min-height: 160px; } .voice__stat { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 12px; } .voice__stat span { font-size: 40px; } }
@media (max-width: 520px) { .voice { grid-template-columns: 1fr; } .voice__img { aspect-ratio: 4 / 3; height: auto; } }

/* ---------- Faça parte: cartões tingidos com mini-interfaces ---------- */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.way { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-xl); background: var(--c-areia-100); }
.way .ico { color: var(--c-tinta); }
.way h3 { font-size: 26px; margin-top: 10px; }
.way > p { font-size: var(--fs-small); color: var(--text-soft); }
.way--roma { background: var(--c-roma-100); }
.way--terra { background: var(--c-terra-200); }
.way--white { background: #fff; box-shadow: var(--sh-1); }
.way__ui { margin-top: auto; padding-top: 12px; display: grid; gap: 12px; }
.freq { display: inline-flex; justify-self: start; padding: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.6); }
.freq button { min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: transparent; font-weight: 600; font-size: var(--fs-small); color: var(--text-soft); cursor: pointer; }
.freq button[aria-pressed="true"] { background: #fff; color: var(--heading); box-shadow: var(--sh-1); }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amount { min-height: 46px; border-radius: var(--r-pill); border: 1.5px solid rgba(28,26,23,.18); background: rgba(255,255,255,.6); font-weight: 600; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-spring); }
.amount:hover { border-color: var(--c-tinta); }
.amount[aria-pressed="true"] { background: var(--c-tinta); border-color: var(--c-tinta); color: #fff; transform: translateY(-1px); }
.give__effect { font-size: var(--fs-caption); color: var(--text-soft); min-height: 2.8em; }
.nif { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.7); font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; color: var(--heading); }
.nif small { font-family: var(--font-text); font-size: var(--fs-caption); letter-spacing: 0; color: var(--text-muted); }
.input { width: 100%; min-height: 50px; padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid rgba(28,26,23,.14); background: #fff; font: 500 var(--fs-body) var(--font-text); color: var(--text); }
.input:focus-visible { outline: none; border-color: var(--c-tinta); box-shadow: 0 0 0 3px rgba(28,26,23,.12); }
.select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231C1A17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.event { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); background: var(--bg-alt); }
.event__date { flex: none; display: grid; place-items: center; width: 48px; height: 52px; border-radius: 16px; background: #fff; font-family: var(--font-display); font-size: 20px; line-height: 1; color: var(--heading); }
.event__date small { display: block; font-family: var(--font-text); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-roma-700); margin-top: 3px; }
.event strong { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--heading); line-height: 1.3; }
.event span span { display: block; font-size: var(--fs-caption); color: var(--text-muted); }
@media (max-width: 1100px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ways { grid-template-columns: 1fr; } }

/* ---------- Perguntas frequentes ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-md); background: var(--bg); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 24px; font-family: var(--font-display); font-size: 21px; color: var(--heading); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background-color: var(--bg-alt); background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 12px 1.6px, 1.6px 12px; background-position: center; background-repeat: no-repeat; transition: background-color var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { background-color: var(--c-roma-100); transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--text-soft); max-width: 64ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Notícias ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.card__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--c-areia-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card time { font-size: var(--fs-caption); color: var(--text-muted); }
.card h3 { font-size: var(--fs-h4); line-height: 1.22; transition: color var(--dur-fast); }
.card:hover h3 { color: var(--c-roma-700); }
@media (max-width: 900px) { .cards { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } .card { scroll-snap-align: start; } }

/* ---------- Fecho: cartão Romã com textura ---------- */
.closing { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: 460px; padding: clamp(40px, 6vw, 96px); border-radius: var(--r-xl); background: var(--c-roma); color: #fff; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -7 2.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.closing__text { position: relative; z-index: 1; max-width: 560px; }
.closing h2 { color: #fff; font-size: var(--fs-h2); line-height: 1.04; }
.closing p { margin-top: 16px; font-size: var(--fs-body-l); color: #fff; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.closing__a { position: absolute; z-index: -1; width: clamp(200px, 26vw, 360px); right: 10%; top: -14%; }
.closing__b { position: absolute; z-index: -1; width: clamp(110px, 12vw, 170px); right: 4%; bottom: -12%; animation-delay: -5s; }
.closing__line { position: absolute; z-index: 0; right: 0; bottom: 0; width: min(600px, 60%); height: auto; color: #fff; }
@media (max-width: 700px) { .closing { align-items: flex-end; min-height: 560px; } .closing__a { right: -20%; top: -8%; width: 70vw; } .closing__b { right: 6%; top: 30%; bottom: auto; } }

/* ---------- Rodapé ---------- */
.footer { padding-block: clamp(64px, 8vw, 112px) 28px; }
.footer__sign-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 32px; padding-bottom: clamp(40px, 5vw, 64px); }
.footer__sign { font-family: var(--font-display); font-size: clamp(64px, 10vw, 156px); line-height: .9; letter-spacing: -.035em; color: var(--heading); }
.footer__line { width: min(520px, 100%); height: auto; color: var(--c-roma); }
.footer__line path { stroke-width: 2; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; padding: clamp(28px, 3vw, 40px); border-radius: var(--r-xl); background: var(--bg-alt); }
.footer h2 { font-family: var(--font-text); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; color: var(--text-soft); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-small); }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer address { font-style: normal; font-size: var(--fs-small); line-height: 1.75; color: var(--text-soft); margin-top: 16px; }
.footer__logo { height: 46px; width: auto; }
.footer__small { margin-top: 10px; font-size: var(--fs-caption); color: var(--text-soft); }
.newsletter__row { display: flex; gap: 6px; padding: 5px; border-radius: var(--r-pill); background: #fff; }
.newsletter .input { flex: 1; min-width: 0; min-height: 42px; border: 0; padding: 0 14px; }
.newsletter .input:focus-visible { box-shadow: none; }
.newsletter__row:focus-within { box-shadow: 0 0 0 2px var(--c-tinta); }
.field__msg { margin-top: 8px; font-size: var(--fs-caption); color: var(--text-muted); min-height: 1.2em; }
.field__msg.is-error { color: var(--c-roma-700); }
.field__msg.is-ok { color: var(--heading); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 8px 0; font-size: var(--fs-caption); color: var(--text-soft); }
.footer__bottom nav { display: flex; gap: 0 20px; flex-wrap: wrap; }
.footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1000px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } }

/* =========================================================
   HOME v7 · textos reais e nova narrativa
   ========================================================= */

/* Hero: a foto fica limpa; o texto vive num cartão de papel (sem película) */
.hero__card::after { display: none; }
.hero__card { align-items: flex-end; }
.hero__paper { position: relative; z-index: 1; margin: clamp(16px, 2.4vw, 32px); max-width: 560px; padding: clamp(28px, 3.6vw, 52px); border-radius: var(--r-lg); background: var(--bg); color: var(--text); }
.hero__paper .hero__title { color: var(--heading); font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem); max-width: 12ch; }
.hero__paper .hero__title em { color: var(--c-roma); }
.hero__paper .hero__lead { color: var(--text-soft); margin: 18px 0 28px; }
button.entry { border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.entry__img--icon { background: var(--c-roma-50); color: var(--c-roma-700); }
.entry--help strong { color: var(--c-roma-700); }
@media (max-width: 900px) { .hero__card { min-height: 640px; } .hero__paper { margin: 12px; } }

/* Quem somos */
.who { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.who__title { font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem); line-height: 1.05; max-width: 15ch; }
.who__text { display: grid; gap: 16px; justify-items: start; color: var(--text-soft); }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: clamp(48px, 6vw, 80px) 0 0; padding: 8px; border-radius: var(--r-xl); background: var(--bg-alt); }
.trust li > *, .trust li { min-width: 0; }
.trust li, .trust a { display: grid; gap: 4px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--bg); text-decoration: none; color: inherit; }
.trust li:has(a) { padding: 0; background: none; }
.trust a { height: 100%; background: var(--c-agua-50); transition: transform var(--dur-base) var(--ease-out); }
.trust a:hover { transform: translateY(-2px); }
.trust .ico { color: var(--c-tinta); margin-bottom: 12px; }
.trust strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--heading); }
.trust span { font-size: var(--fs-small); color: var(--text-soft); }
@media (max-width: 900px) { .who { grid-template-columns: 1fr; } .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Aquilo em que acreditamos */
.beliefs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); margin: 0; padding: 0; }
.belief { display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-xl); background: var(--bg); }
.belief .ico { color: var(--c-tinta); margin-bottom: 40px; transition: transform var(--dur-slow) var(--ease-spring); }
.belief:hover .ico { transform: rotate(-8deg) scale(1.08); }
.belief h3 { font-size: 26px; line-height: 1.12; }
.belief p { font-size: var(--fs-small); color: var(--text-soft); }
@media (max-width: 1000px) { .beliefs { grid-template-columns: 1fr 1fr; } .belief { min-height: 280px; } }
@media (max-width: 560px) { .beliefs { grid-template-columns: 1fr; } .belief { min-height: 0; } }

/* Em que áreas atuamos: três grandes blocos */
.areas3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.area { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 28px; border-radius: var(--r-xl); background: var(--c-areia-100); text-decoration: none; color: inherit; transition: transform var(--dur-base) var(--ease-out); }
.area:nth-child(2) { background: var(--c-roma-100); }
.area:nth-child(3) { background: var(--c-terra-200); }
.area:hover { transform: translateY(-4px); }
.area__img { display: block; aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); overflow: hidden; }
.area__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.area:hover .area__img img { transform: scale(1.05); }
.area__brush { width: 76px; height: 76px; object-fit: contain; margin: -48px 0 0 18px; padding: 10px; border-radius: 50%; background: inherit; box-sizing: content-box; position: relative; transition: transform var(--dur-slow) var(--ease-out); }
.area:nth-child(1) .area__brush { background: var(--c-areia-100); }
.area:nth-child(2) .area__brush { background: var(--c-roma-100); }
.area:nth-child(3) .area__brush { background: var(--c-terra-200); }
.area:hover .area__brush { transform: rotate(-12deg); }
.area h3, .area p, .area .link { margin-inline: 18px; }
.area h3 { font-size: var(--fs-h3); line-height: 1.1; }
.area p { font-size: var(--fs-small); color: var(--text-soft); }
.area .link { margin-top: auto; }
@media (max-width: 900px) { .areas3 { grid-template-columns: 1fr; } }

/* Como geramos impacto: ciclo que se desenha */
.cycle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.cycle__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; }
.cycle__ring { width: 100%; height: 100%; overflow: visible; }
.cycle__track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.cycle__path { fill: none; stroke: var(--c-roma); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: center; }
.cycle__arrow { fill: none; stroke: var(--c-roma); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cycle__node { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); box-shadow: var(--sh-1); font-family: var(--font-display); font-size: 22px; color: var(--heading); }
.cycle__node[style*="--a:0"] { left: 50%; top: 12.5%; } .cycle__node[style*="--a:1"] { left: 87.5%; top: 50%; } .cycle__node[style*="--a:2"] { left: 50%; top: 87.5%; } .cycle__node[style*="--a:3"] { left: 12.5%; top: 50%; }
.cycle__node b { font-weight: 400; }
.cycle__center { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; color: var(--c-tinta); stroke-width: 1.1; }
.cycle__steps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.cycle__steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--bg); }
.cycle__steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-roma-100); font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--heading); }
.cycle__steps h3 { font-family: var(--font-text); font-weight: 600; font-size: var(--fs-body); letter-spacing: 0; }
.cycle__steps p { font-size: var(--fs-small); color: var(--text-soft); margin-top: 2px; }
.js [data-cycle].will-reveal { opacity: 1; transform: none; }
.js [data-cycle].will-reveal .cycle__path { stroke-dashoffset: 1; }
.js [data-cycle].will-reveal .cycle__node, .js [data-cycle].will-reveal .cycle__steps li, .js [data-cycle].will-reveal .cycle__arrow { opacity: 0; }
.js [data-cycle].is-revealed .cycle__path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-in-out); }
.js [data-cycle].is-revealed .cycle__node { opacity: 1; transition: opacity .5s; transition-delay: calc(var(--a) * .55s + .2s); }
.js [data-cycle].is-revealed .cycle__steps li { opacity: 1; transition: opacity .6s; transition-delay: calc(var(--a) * .55s + .3s); }
.js [data-cycle].is-revealed .cycle__arrow { opacity: 1; transition: opacity .4s 2.3s; }
@media (max-width: 900px) { .cycle { grid-template-columns: 1fr; } .cycle__art { max-width: 320px; justify-self: center; } }

/* Rede: legenda por baixo dos retratos + parceiros */
.person { display: flex; flex-direction: column; aspect-ratio: auto; background: none; overflow: visible; border-radius: 0; }
.person img { aspect-ratio: 3 / 4; height: auto; border-radius: var(--r-lg); }
.person figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--text-soft); }
.partners { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--bg-alt); }
.partners__k { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 16px; }
.partners ul { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.partners li { display: grid; place-items: center; min-height: 88px; padding: 12px; border-radius: var(--r-md); background: var(--bg); text-align: center; }
.partners strong { font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1.2; color: var(--heading); }
.partners span { font-size: var(--fs-caption); color: var(--c-terra-400); }
@media (max-width: 900px) { .partners ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .partners ul { grid-template-columns: 1fr 1fr; } }

/* Envolva-se: um único botão principal; o resto são links */
a.way { text-decoration: none; color: inherit; transition: transform var(--dur-base) var(--ease-out); }
a.way:hover { transform: translateY(-4px); }
.way__link { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-small); color: var(--heading); }
.way__link svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
a.way:hover .way__link svg { transform: translateX(4px); }

.title-block .h2--wide { margin-bottom: 0; }

/* Fecho com a frase do manifesto */
.closing h2 { max-width: 16ch; }

/* =========================================================
   v8 · ajustes de revisão
   ========================================================= */

/* Hero: texto direto na foto, sobre uma película lisa (sem gradiente) */
.hero__card::after { display: block; content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 14, 10, .34); }
.hero__card .hero__content { position: relative; z-index: 1; }
.hero__card .hero__title { color: #fff; }
.hero__card .hero__title em { color: #fff; }
.entries { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .entries { grid-template-columns: 1fr; } }

/* Quem somos: título largo, duas colunas alinhadas ao topo, credenciais numa linha sem caixas */
.who { display: block; }
.who__title { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 5rem); line-height: 1.02; max-width: 18ch; }
.who__cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.who__lead { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.35; color: var(--heading); max-width: 30ch; }
.who__more { display: grid; gap: 18px; justify-items: start; color: var(--text-soft); max-width: 44ch; padding-top: 6px; }
/* =========================================================
   v9 · ajustes da home (sessão home-ajustes)
   ========================================================= */

/* Credenciais: quatro colunas iguais, mesmo peso, o Instituto como link de texto discreto */
.who__more p + p { margin-top: -4px; }
.creds { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap) clamp(20px, 3vw, 48px); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; }
.creds li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; font-size: var(--fs-small); line-height: 1.5; color: var(--text-soft); }
.creds .ico { width: 26px; height: 26px; color: var(--c-tinta); margin-top: -2px; }
.creds__link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--c-terra-400); transition: text-decoration-color var(--dur-fast), color var(--dur-fast); }
.creds__link:hover { color: var(--heading); text-decoration-color: currentColor; }
@media (max-width: 900px) { .who__cols { grid-template-columns: 1fr; } .creds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .creds { grid-template-columns: 1fr; } }

/* Traço de pincel (contorno com espessura variável) revelado por uma máscara que se desenha */
.draw--brush .draw__ribbon { fill: currentColor; stroke: none; stroke-dasharray: none; vector-effect: none; }
.draw--brush .draw__reveal { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: none; }
.js .draw--brush.will-draw .draw__reveal { stroke-dashoffset: 1; }
.js .draw--brush.is-drawn .draw__reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-in-out); }

/* Como geramos impacto: pincel feito à mão entre pedras com textura */
.loop { position: relative; padding-top: 12px; }
.js .loop.will-reveal { opacity: 1; transform: none; }
.loop__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 260px; overflow: visible; pointer-events: none; }
.loop__brush { fill: var(--c-roma); }
.loop__reveal { fill: none; stroke: #fff; stroke-width: 26; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.loop__steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); margin: 0; padding: 0; }
.loop__steps li { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 0 8px 0 0; }
.loop__steps li:nth-child(odd) { padding-top: 6px; }
.loop__steps li:nth-child(even) { padding-top: 64px; }
.loop__node { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 14px; color: var(--c-tinta); }
.loop__node > * { grid-area: 1 / 1; }
.loop__stone { width: 104px; height: 104px; fill: var(--c-terra-300); transition: transform var(--dur-slow) var(--ease-spring); }
.loop__steps li:nth-child(even) .loop__stone { fill: var(--c-roma-100); }
.loop__steps li:nth-child(2) .loop__stone { transform: rotate(-14deg); }
.loop__steps li:nth-child(3) .loop__stone { transform: rotate(22deg); }
.loop__steps li:nth-child(4) .loop__stone { transform: rotate(-30deg); }
.loop__node .ico { position: relative; }
.loop__steps li:hover .loop__stone { transform: rotate(8deg) scale(1.04); }
.loop__steps b { font-family: var(--font-display); font-weight: 400; font-size: 15px; color: var(--c-roma-700); letter-spacing: .04em; }
.loop__steps h3 { font-size: 24px; line-height: 1.15; max-width: 14ch; }
.loop__steps p { font-size: var(--fs-small); color: var(--text-soft); max-width: 26ch; }
.loop__note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(48px, 5vw, 72px); text-align: center; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--text-soft); }
.loop__note svg { width: 22px; height: 22px; color: var(--c-roma); flex: none; }
.js .loop.will-reveal .loop__reveal { stroke-dashoffset: 1; }
.js .loop.will-reveal .loop__note { opacity: 0; }
.js .loop.will-reveal .loop__steps li { opacity: 0; transform: translateY(16px); }
.js .loop.is-revealed .loop__reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-in-out); }
.js .loop.is-revealed .loop__steps li { opacity: 1; transform: none; transition: opacity .6s, transform .6s var(--ease-out); transition-delay: calc(var(--i) * .5s + .15s); }
.js .loop.is-revealed .loop__note { opacity: 1; transition: opacity .8s 2.3s; }
@media (max-width: 900px) {
  .loop__line { display: none; }
  .loop__steps { grid-template-columns: 1fr; gap: 0; margin-left: 46px; background: no-repeat 0 0 / 6px 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 100' preserveAspectRatio='none'%3E%3Cpath d='M3 0 C 4.4 20, 1.8 45, 3.2 70 C 3.8 85, 2.6 95, 3 100' fill='none' stroke='%23C04C36' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  .loop__steps li, .loop__steps li:nth-child(even), .loop__steps li:nth-child(odd) { grid-template-columns: auto; padding: 0 0 36px 64px; position: relative; }
  .loop__node { position: absolute; left: -47px; top: 0; }
  .loop__steps li > b { margin-top: 6px; }
}

/* Projetos: lista que abre; o CTA vive na caixa do projeto ativo */
.switch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: center; }
.switch__item { position: relative; display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg-alt); transition: background var(--dur-base); }
.switch__item:hover { background: var(--c-areia-100); }
.switch__h { margin: 0; font: inherit; }
.switch__tab { width: 100%; display: flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--heading); }
.switch__tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.switch__tab:focus-visible { outline: none; }
.switch__item:has(.switch__tab:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; font-family: var(--font-text); font-size: var(--fs-caption); font-weight: 700; color: var(--heading); transition: background var(--dur-base), color var(--dur-base); }
.switch__t { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.2; }
.switch__d { padding-left: 50px; font-size: var(--fs-small); color: var(--text-muted); transition: color var(--dur-base); }
.switch__item.is-open { background: var(--c-tinta); }
.switch__item.is-open .switch__tab, .switch__item.is-open .switch__d { color: #fff; }
.switch__item.is-open .switch__n { background: var(--c-roma); color: #fff; }
.switch__more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); }
.switch__more > div { min-height: 0; overflow: hidden; padding-left: 50px; }
.switch__item.is-open .switch__more { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.switch__cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; font-weight: 600; font-size: var(--fs-small); color: #fff; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.5); opacity: 0; transform: translateY(8px); transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-out), text-decoration-color var(--dur-fast); }
.switch__item.is-open .switch__cta { opacity: 1; transform: none; transition-delay: .12s; }
.switch__cta:hover { text-decoration-color: #fff; }
.switch__cta svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.switch__cta:hover svg { transform: translateX(4px); }
.switch__item.is-open .switch__cta:focus-visible { outline-color: #fff; }
.switch__panels { position: relative; min-height: 560px; border-radius: var(--r-xl); overflow: hidden; background: var(--c-terra-800); }
.switch__panel { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.switch__panel img { transform: scale(1.04); transition: transform 1.2s var(--ease-out); }
.switch__panel.is-active { opacity: 1; }
.switch__panel.is-active img { transform: none; }
@media (max-width: 900px) {
  .switch { grid-template-columns: 1fr; }
  .switch__panels { order: -1; min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
}

/* Números e voz */
.metrics { list-style: none; margin: 0; }
.metric p:last-child { max-width: 24ch; }
.voice--home { margin-top: var(--grid-gap); background: var(--bg-alt); }
.voice--home .voice__stat { background: var(--bg); }
.voice--home .voice__stat span { font-size: clamp(36px, 3.4vw, 52px); }
.voice blockquote p { margin: 0; }

/* Com quem trabalhamos: logótipos monocromáticos, altura uniforme, sem caixas */
.logos { margin-top: clamp(56px, 7vw, 96px); }
.logos__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }
.logos__k { font-family: var(--font-text); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.logos__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4.4vw, 64px) clamp(32px, 5vw, 96px); align-items: center; margin: 0; padding: 0; }
.logos__grid li { display: flex; align-items: center; min-width: 0; }
.plogo { display: block; height: 56px; width: auto; max-width: 100%; color: var(--c-terra-600); opacity: .8; transition: opacity var(--dur-base), color var(--dur-base); }
.plogo:hover { opacity: 1; color: var(--c-tinta); }
.plogo__mark { fill: currentColor; opacity: .5; transform: scale(1.2); transform-origin: 0 8px; }
.plogo text { font-family: var(--font-display); font-size: 19px; fill: currentColor; letter-spacing: -.01em; }
.plogo text + text { font-family: var(--font-text); font-size: 14px; font-weight: 500; letter-spacing: 0; }
@media (max-width: 700px) { .logos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plogo { height: 48px; } }

/* Voz sem fotografia (a citação não é de uma pessoa retratada) */
.voice--home { grid-template-columns: minmax(0, 1fr) 260px; }
@media (max-width: 900px) { .voice--home { grid-template-columns: 1fr; } }

/* Donativo: frequência em texto, valores pequenos em outline, CTA dominante */
.way--main .way__ui { gap: 16px; }
.give__freq { display: flex; align-items: center; gap: 4px; justify-self: start; }
.give__freq button { position: relative; min-height: 32px; padding: 0 8px; border: 0; background: none; font-size: var(--fs-small); font-weight: 500; color: var(--text-soft); cursor: pointer; }
.give__freq button:first-child { padding-left: 0; }
.give__freq button + button::before { content: ""; position: absolute; left: -3px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--c-terra-400); }
.give__freq button[aria-pressed="true"] { color: var(--heading); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--c-roma); }
.give__freq button:hover { color: var(--heading); }
.give__amounts { display: flex; flex-wrap: wrap; gap: 6px; }
.give__amount { min-width: 60px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid rgba(28,26,23,.16); background: transparent; font-size: var(--fs-caption); font-weight: 600; color: var(--text-soft); cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast); }
.give__amount:hover { border-color: rgba(28,26,23,.45); color: var(--heading); }
/* selecionado em outline: só o botão Doar é cheio (pedido do utilizador) */
.give__amount[aria-pressed="true"] { border-color: var(--c-tinta); background: transparent; color: var(--heading); }
.give__cta { min-height: 52px; margin-top: 4px; font-size: var(--fs-body); }

/* Notícias: slider com scroll-snap e botões redondos */
.news__ctrl { display: flex; align-items: center; gap: 8px; }
.news__ctrl .link { margin-right: 12px; }
.news__btn[disabled] { opacity: .35; cursor: default; background: transparent; color: var(--heading); border-color: var(--line-strong); }
.news { margin-inline: calc(-1 * var(--news-bleed, 0px)); }
.news__track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--grid-gap)) / 3); gap: var(--grid-gap); margin: 0; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--r-lg); }
.news__track::-webkit-scrollbar { display: none; }
.news__track:focus-visible { outline-offset: 6px; }
.news__item { scroll-snap-align: start; min-width: 0; }
.news__item .card h3 { font-size: var(--fs-h4); }
@media (max-width: 900px) { .news__track { grid-auto-columns: 78%; } .news__ctrl .link { margin-right: 4px; } }

/* Revisão 1: drawer com números ligáveis, nota da newsletter, controlos do slider escondidos sem excesso */
a.help-card__num { display: inline-block; text-decoration: none; min-height: 44px; }
a.help-card__num:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.newsletter__note { margin-top: 2px; font-size: var(--fs-caption); color: var(--text-soft); }
.newsletter__note a { text-decoration: underline; text-underline-offset: 3px; }
.news__btn[hidden] { display: none !important; }
/* com só duas notícias, os cartões dividem a largura em dois */
@media (min-width: 901px) { .news__track:not(:has(.news__item:nth-child(3))) { grid-auto-columns: calc((100% - var(--grid-gap)) / 2); } }

/* =========================================================
   v10 · novo ciclo, pedras em contorno, NIF
   ========================================================= */

/* Novo ciclo estratégico: dois cartões à mesma altura (retrato | Romã liso com a citação) */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--grid-gap); }
.plan__portrait { position: relative; margin: 0; min-height: 600px; border-radius: var(--r-xl); overflow: hidden; background: var(--c-terra-800); }
.plan__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.plan__portrait figcaption { position: absolute; left: clamp(24px, 3vw, 44px); right: clamp(24px, 3vw, 44px); bottom: clamp(22px, 2.8vw, 40px); display: grid; gap: 6px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.45); }
.plan__name { font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.plan__role { font-size: var(--fs-small); font-weight: 500; }
.plan__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 600px; padding: clamp(32px, 4vw, 60px); border-radius: var(--r-xl); background: var(--c-roma); color: #fff; }
.plan__quote { margin: 0; max-width: 17ch; font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 2.1vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.plan__quote p { margin: 0; }
.plan__foot { display: grid; gap: 20px; justify-items: start; }
.plan__by { max-width: 34ch; font-size: var(--fs-small); color: #fff; }
.plan__panel .btn--light:focus-visible { outline-color: #fff; }
@media (max-width: 900px) {
  .plan { grid-template-columns: 1fr; }
  .plan__portrait, .plan__panel { min-height: 0; }
  .plan__portrait { aspect-ratio: 4 / 3; }
}

/* Fecho: os três «Com» em itálico, a branco sobre Romã */
.closing h2 em { color: #fff; }

/* Percurso de impacto: pedras em contorno tinta (traço à mão, sem preenchimento visível) */
.loop__stone, .loop__steps li:nth-child(even) .loop__stone { fill: var(--bg-alt); stroke: var(--c-tinta); stroke-width: 1.5; stroke-linejoin: round; }

/* Lead com ligação */
.lead a { color: var(--heading); text-underline-offset: 3px; }

/* Cartão do IRS: NIF em destaque e botão discreto para copiar */
.way--irs > .way__link { margin-top: auto; align-self: start; min-height: 44px; text-decoration: none; }
.way--irs > .way__link:hover svg { transform: translateX(4px); }
/* NIF numa linha própria e o botão por baixo: em cartões estreitos (4 colunas) o número não cabe ao lado do botão */
.nifbox { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; margin-top: 8px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); }
.nifbox__v { display: grid; gap: 2px; min-width: 0; max-width: 100%; }
.nifbox__k { font-size: var(--fs-caption); color: var(--text-soft); }
.nifbox__n { font-family: var(--font-display); font-size: clamp(24px, 1.2rem + .7vw, 30px); line-height: 1.1; letter-spacing: .02em; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; user-select: all; }
.nifbox__btn { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid rgba(28,26,23,.2); background: transparent; font-size: var(--fs-caption); font-weight: 600; color: var(--heading); cursor: pointer; white-space: nowrap; transition: border-color var(--dur-fast); }
.nifbox__btn:hover { border-color: var(--c-tinta); }
.nifbox__msg { min-height: 1.2em; margin-top: -4px; font-size: var(--fs-caption); color: var(--text-soft); }
.nifbox__msg:empty { min-height: 0; }
@media (max-width: 768px) { .nifbox__btn { min-height: 44px; } }

/* ---------- Revelação ao scroll ---------- */
.js .will-reveal { opacity: 0; transform: translateY(28px); }
.js .will-reveal.is-revealed { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .people { overflow-x: auto; }
  .people__track { transform: none !important; }
  .person img { filter: var(--photo-filter) !important; }
  .hero__slide img { transform: none !important; }
}

/* ---------- Transição entre páginas (View Transitions entre documentos; sem suporte, muda normalmente) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 160ms ease-in both; }
::view-transition-new(root) { animation: vt-in 260ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* FSJD: entradas a mais para a largura do cabeçalho -> menu hambúrguer (o site.js mede e põe .is-cheio) */
.nav__link { white-space: nowrap; }
.header.is-cheio .nav { display: none; }
.header.is-cheio .burger { display: inline-grid; }
.header.is-cheio .header__actions { margin-left: auto; }
.ways--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ways--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ways--3 { grid-template-columns: 1fr; } }

/* hero: um texto por fotografia (t4_banners.asp); os blocos ficam empilhados e so o do slide visivel aparece */
.hero__textos { position: relative; z-index: 1; display: grid; width: 100%; }
.hero__textos > .hero__content { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease-in-out), visibility .8s; }
.hero__textos > .hero__content.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .hero__textos > .hero__content { transition: none; } }

/* listas (select) com o estilo do site: botao com o aspeto do campo e lista propria (site.js) */
.lista { position: relative; }
.lista__nativo { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lista__bt { display: flex; align-items: center; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista.is-aberta .lista__bt { border-color: var(--c-tinta); }
.lista__bt[aria-invalid="true"] { border-color: var(--c-roma); }
.lista__op { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1.5px solid rgba(28,26,23,.12); border-radius: var(--r-md); background: #fff; box-shadow: 0 16px 40px rgba(28,26,23,.14); }
.lista__op[hidden] { display: none; }
.lista__op li { position: relative; padding: 11px 40px 11px 16px; border-radius: var(--r-sm); font: 500 var(--fs-body) var(--font-text); color: var(--text); cursor: pointer; }
.lista__op li.is-ativo { background: var(--c-areia-50); }
.lista__op li[aria-selected="true"] { font-weight: 600; color: var(--c-tinta); }
.lista__op li[aria-selected="true"]::after { content: ""; position: absolute; right: 16px; top: 50%; width: 12px; height: 6px; margin-top: -5px; border: solid var(--c-roma); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.lista__op li[aria-disabled="true"] { opacity: .45; cursor: default; }

/* aviso da confirmacao/remocao da newsletter (operations_handler.asp, link do email) */
.aviso-nl { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 16px; width: min(560px, calc(100% - 32px)); padding: 20px 20px 20px 24px; border-left: 6px solid var(--c-roma); border-radius: var(--r-md); background: #fff; box-shadow: 0 16px 40px rgba(28,26,23,.18); color: var(--text); font: 500 var(--fs-body)/1.5 var(--font-text); }
.aviso-nl.is-aviso { border-left-color: #EC961F; }
.aviso-nl p { flex: 1; margin: 0; }
.aviso-nl__fechar { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--c-areia-50); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
