/* Minimum. Cores do manual de marca (brand-source/MINNIMUM.pdf). */
@font-face { font-family: "Funnel Display"; src: url("/fonts/FunnelDisplay.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("/fonts/FunnelSans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --ameixa: #271520;
  --ameixa-fundo: #1d0f18;
  --ameixa-cartao: #352430;
  --ameixa-80: #4c3a45;
  --ameixa-60: #6b5a64;
  --ameixa-20: #c9c3c7;
  --laranja: #f15a31;
  --laranja-texto: #b93a16; /* #f15a31 sobre claro não chega a 4.5:1 em texto pequeno */
  --laranja-20: #fcd7cc;
  --verde: #d1e6b7;
  --laranja-hover: #f4744f;
  --laranja-60: #f79a7f;
  --ameixa-10: #e8e2e6;
  /* Cada cor com um papel: laranja é acção, verde é dinheiro e progresso */
  --sucesso: #2f6b3a;
  --erro: #b42318;
  --erro-fundo: #fde8e6;
  --aviso: #7a4b00;
  --aviso-fundo: #fdf0d5;
  --borda-campo: #8a7a84; /* 3:1 contra branco e papel-2 */
  --papel: #fff;
  --papel-2: #f5f3f4; /* neutro, tirado do ameixa */
  --linha: #e6e2e4;
  --branco: #fff;
  --raio-g: 32px;
  --raio-m: 22px;
  --raio-p: 12px;
  --fonte: "Funnel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --titulo: "Funnel Display", var(--fonte);
  --mono: var(--fonte); /* Geist Mono só no admin, ver admin.css */
  --suave: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--fonte); font-size: 17px; line-height: 1.55; color: var(--ameixa); background: var(--papel); overflow-x: clip; }
body:not(.is-home) main { padding-top: 96px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.04; letter-spacing: -.035em; margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--laranja-texto); outline-offset: 2px; border-radius: 6px; }
.section--dark :focus-visible { outline-color: var(--verde); }
main:focus { outline: none; }
.skip { position: fixed; z-index: 50; top: 8px; left: 8px; padding: 10px 16px; border-radius: var(--raio-p); background: var(--ameixa); color: var(--branco); transform: translateY(-200%); }
.skip:focus { transform: none; }
[hidden] { display: none !important; }

.display { font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.title { font-size: clamp(2.2rem, 4.9vw, 4.1rem); line-height: .98; letter-spacing: -.045em; }
.mono { font-family: var(--mono); font-size: .82rem; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.small { font-size: .92rem; }
/* Títulos de página e de secção, em vez de font-size inline */
.h-page { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.h-section { font-size: 1.5rem; }
.h-card { font-size: 1.3rem; }
.muted { color: var(--ameixa-60); }
.on-dark { color: var(--ameixa-20); }
.accent { color: var(--verde); }
.link { color: var(--laranja-texto); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--paper2 { background: var(--papel-2); }
.section--dark { background: var(--ameixa); color: var(--branco); }
.section--verde { background: var(--verde); }
.stack > * + * { margin-top: 16px; }
.stack-l > * + * { margin-top: 36px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

/* Bloco de cor atrás da palavra; desliza quando entra no ecrã */
.hl { display: inline-block; line-height: .94; color: inherit; padding: .02em .1em .07em; margin: 0 -.03em; border-radius: .14em; background: linear-gradient(var(--laranja), var(--laranja)) left / 100% 100% no-repeat; }
.js .hl { background-size: 0 100%; transition: background-size .8s var(--suave) .15s; }
.js .hl.is-in, .js .is-in .hl { background-size: 100% 100%; }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 10px; border-radius: 999px; background: var(--papel-2); font-size: .82rem; }
.section--paper2 .tag { background: var(--papel); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--suave), transform .7s var(--suave); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Cabeçalho */
/* Cabeçalho em três zonas: acções, logótipo ao centro, conta */
.header { position: fixed; z-index: 30; inset: 0 0 auto; height: 80px; padding-inline: clamp(16px, 8vw, 132px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; background: var(--papel); transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 1px 0 var(--linha); }
.header__side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.header__side--end { justify-content: flex-end; }
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__nav form { margin: 0; }
.header__logo { display: block; }
.header__logo img { height: 46px; width: auto; }
.header__link, .hdd summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--raio-p); background: none; font: inherit; color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s; }
.header__link:hover, .hdd summary:hover, .hdd[open] summary { background: var(--papel-2); }
.header__link svg { width: 20px; height: 20px; flex: none; }
.hdd { position: relative; }
.hdd summary { list-style: none; }
.hdd summary::-webkit-details-marker { display: none; }
.hdd summary::after { content: ""; border: 4.5px solid transparent; border-top-color: currentColor; border-bottom-width: 0; transition: transform .2s; }
.hdd[open] summary::after { transform: rotate(180deg); }
.hdd__menu { position: absolute; top: calc(100% + 8px); left: 0; width: 270px; padding: 8px; display: grid; background: var(--papel); border: 1px solid var(--linha); border-radius: 16px; box-shadow: 0 18px 40px rgba(39, 21, 32, .16); }
.hdd__menu--end { left: auto; right: 0; }
.hdd__menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--raio-p); text-decoration: none; }
.hdd__menu a:hover { background: var(--papel-2); }
.header__cta { margin-left: 8px; white-space: nowrap; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--raio-p); }
.menu summary svg { width: 26px; height: 26px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background: var(--papel); border: 1px solid var(--linha); border-radius: 24px; padding: 10px 20px; display: grid; box-shadow: 0 18px 40px rgba(39, 21, 32, .18); }
.menu__panel > a, .menu__panel .nav__plain { display: flex; align-items: center; min-height: 48px; text-decoration: none; font: inherit; font-size: 1.15rem; text-align: left; width: 100%; color: inherit; background: none; border: 0; cursor: pointer; }
.menu__panel form { margin: 0; }

/* Botões: texto ameixa sobre laranja, porque o branco fica em 3.4:1 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 8px 26px; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--laranja); color: var(--ameixa); transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--laranja-hover); }
.btn--outline { background: transparent; border-color: var(--ameixa); }
.btn--outline:hover { background: var(--ameixa); color: var(--branco); }
.btn--dark { background: var(--ameixa); color: var(--branco); }
.btn--dark:hover { background: var(--ameixa-80); }
.btn--small { min-height: 44px; padding: 6px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Hero centrado, com um leque de fotos curvas por baixo */
.hero { padding: 128px 0 clamp(36px, 5vw, 72px); text-align: center; overflow: hidden; }
.hero__text { display: grid; justify-items: center; gap: 20px; width: min(980px, 100% - 32px); margin-inline: auto; }
.hero__badge { padding: 3px 10px; border-radius: 6px; background: var(--verde); font-size: .95rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.7rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.hero__lead { max-width: 32em; font-size: clamp(1.08rem, 1.7vw, 1.4rem); line-height: 1.4; }
.btn--hero { min-height: 56px; padding-inline: 32px; background: var(--ameixa); color: var(--verde); font-weight: 700; }
.btn--hero:hover { background: var(--ameixa-80); }
.nowrap { white-space: nowrap; }
.fan__defs { position: absolute; }
/* As fotos andam para a esquerda: data-pos 0 esquerda, 1 centro, 2 direita; as outras esperam fora do ecrã */
.fan { position: relative; width: 116%; aspect-ratio: 100 / 38; margin: clamp(36px, 4vw, 52px) 0 0 -8%; }
.fan__card { position: absolute; top: 0; left: 29%; width: 42%; aspect-ratio: 5 / 4; clip-path: url(#fan-forma); transition: transform .9s var(--suave); }
.fan__card img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.fan__card[data-pos="0"] { transform: translate(-85%, 8%) rotate(-7deg) scale(.69); }
.fan__card[data-pos="1"] { z-index: 1; transform: none; }
.fan__card[data-pos="2"] { transform: translate(85%, 8%) rotate(7deg) scale(.69); }
.fan__card[data-pos="3"], .fan__card[data-pos="4"] { transform: translate(175%, 14%) rotate(12deg) scale(.6); }
.fan__card[data-pos="4"] { transition: none; }
.fan__card[data-pos="5"] { transform: translate(-175%, 14%) rotate(-12deg) scale(.6); }
.fan__pause { display: block; width: 44px; height: 44px; margin: 12px auto 0; padding: 0; border: 1.5px solid var(--borda-campo); border-radius: 50%; cursor: pointer; background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23271520'%3E%3Cpath d='M7 5h3.5v14H7zM13.5 5H17v14h-3.5z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.fan__pause[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23271520'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.fan__pause:hover { background-color: var(--papel-2); }

/* Últimas doações */

.recent { background: var(--verde); padding-block: 22px 26px; overflow: hidden; }
.recent__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-bottom: 14px; }
.recent__pause { margin: 0 0 0 auto; }
.recent__roll { overflow-x: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.recent__track { display: flex; width: max-content; animation: roll var(--roll, 60s) linear infinite; }
.recent__track:hover, .recent__track.is-paused { animation-play-state: paused; }
/* Com teclado, a faixa pára e passa a deslocar-se até ao cartão focado */
.recent__roll:focus-within { overflow-x: auto; }
.recent__roll:focus-within .recent__track { animation: none; }
@keyframes roll { to { transform: translateX(-50%); } }
.recent__list { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; }
.gift { display: flex; align-items: center; gap: 12px; width: min(310px, 80vw); height: 100%; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--papel); text-decoration: none; transition: box-shadow .2s; }
.gift:hover { box-shadow: 0 0 0 2px var(--ameixa); }
.gift__who { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ameixa); color: var(--verde); font-family: var(--titulo); font-weight: 700; }
.gift__text { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; line-height: 1.3; }
.gift__line { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gift__line--sub { color: var(--ameixa-60); font-size: .88rem; }
.gift__top { display: flex; gap: .3em; white-space: nowrap; }
.gift__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gift__amount { flex: none; color: var(--sucesso); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head__side { max-width: 520px; }
.home-cards { align-items: start; }

/* Moldura do manual: foto com base laranja a espreitar */
.frame { display: block; background: var(--verde); border-radius: var(--raio-g); padding: 14px; color: var(--ameixa); text-decoration: none; }
.frame__media { background: var(--laranja); border-radius: var(--raio-m); padding-bottom: 14px; }
.frame__media > * { border-radius: var(--raio-m); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.frame--wide .frame__media > * { aspect-ratio: 16 / 10; object-position: center 22%; }
.grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

/* Capa para campanhas sem foto (só dados de exemplo): os pontos e o anel do hero */
.art { --fundo: var(--ameixa-fundo); --ponto: rgba(209, 230, 183, .34); --anel: var(--laranja); display: block; background-color: var(--fundo); background-image: radial-gradient(circle at 70% 58%, transparent 0 24%, var(--anel) 24.4% 31%, transparent 31.4%), radial-gradient(var(--ponto) 1.3px, transparent 1.8px); background-size: 100% 100%, 15px 15px; }
.art--1 { --fundo: var(--verde); --ponto: rgba(39, 21, 32, .3); --anel: var(--ameixa); background-image: radial-gradient(circle at 62% 60%, transparent 0 20%, var(--anel) 20.4% 25%, transparent 25.4%), radial-gradient(var(--ponto) 1.3px, transparent 1.8px); }
.art--2 { --fundo: var(--laranja); --ponto: rgba(39, 21, 32, .32); --anel: var(--verde); background-image: radial-gradient(circle at 38% 64%, transparent 0 22%, var(--anel) 22.4% 27%, transparent 27.4%), radial-gradient(var(--ponto) 1.3px, transparent 1.8px); }

/* Etiquetas sobre a imagem dos cartões */
.spot__top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.spot__pill { padding: 5px 11px; border-radius: 999px; background: rgba(29, 15, 24, .72); color: var(--branco); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.spot__pill--orange { background: var(--laranja-20); color: var(--ameixa); }

/* Cartão da lista de campanhas: sem caixa, a imagem manda */
.ccard { display: grid; gap: 12px; color: inherit; text-decoration: none; align-content: start; }
.ccard__media { position: relative; display: block; border-radius: var(--raio-m); overflow: hidden; }
.ccard__media > img, .ccard__media > .art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--suave); }
.ccard:hover .ccard__media > img, .ccard:hover .ccard__media > .art { transform: scale(1.04); }
.ccard__media .spot__top { position: absolute; top: 12px; left: 12px; right: 12px; }
.ccard h3 { font-size: 1.4rem; letter-spacing: -.03em; }
.ccard .progress { height: 6px; }
.ccard .spot__pill { font-size: .85rem; }
.ccard .money { color: var(--sucesso); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--papel-2); color: var(--ameixa); vertical-align: middle; letter-spacing: 0; }
.badge.mono { font-size: .82rem; }
.badge--orange { background: var(--laranja-20); }
.badge--dark { background: var(--ameixa); color: var(--branco); }
.progress { height: 8px; border-radius: 999px; background: var(--linha); overflow: hidden; }
.progress__bar { height: 100%; background: var(--sucesso); border-radius: 999px; }
.panel .progress__bar { background: var(--verde); }
.money { font-weight: 700; }

/* Calculadora em pirâmide: do mínimo ao máximo */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; min-width: 64px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--laranja); border-color: var(--laranja); color: var(--ameixa); }
.pyramid { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pyramid li { --top: calc(40% - var(--i) * 13.4%); --bot: calc(34% - var(--i) * 11.3%); display: grid; place-items: center; align-content: center; gap: 2px; min-height: 112px; padding: 10px 0; text-align: center; color: var(--ameixa); clip-path: polygon(var(--top) 0, calc(100% - var(--top)) 0, calc(100% - var(--bot)) 100%, var(--bot) 100%); }
.pyramid li:nth-child(1) { background: var(--branco); }
.pyramid li:nth-child(2) { background: var(--verde); }
.pyramid li:nth-child(3) { background: var(--laranja-60); }
.pyramid li:nth-child(4) { background: var(--laranja); }
.pyramid strong { font-family: var(--titulo); font-size: clamp(1.3rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pyramid li:first-child strong { font-size: clamp(1rem, 2vw, 1.4rem); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__sticky { position: sticky; top: 110px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: 20px; padding-block: 24px; border-bottom: 1px solid rgba(39, 21, 32, .22); }
.rows li:first-child { padding-top: 6px; }
.rows__n { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ameixa); color: var(--branco); font-weight: 600; }
.rows h3 { font-size: 1.5rem; margin-bottom: 6px; }

/* Formas de doar */
.ways { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.way { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--raio-m); background: var(--papel); }

.faq details { border-bottom: 1px solid var(--ameixa-20); }
.faq summary { display: flex; align-items: center; gap: 16px; padding-block: 20px; list-style: none; cursor: pointer; font-family: var(--titulo); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary b { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ameixa-20); position: relative; transition: transform .25s, background-color .25s; }
.faq summary b::before, .faq summary b::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15.5px; height: 1.5px; background: currentColor; }
.faq summary b::after { transform: rotate(90deg); }
.faq details[open] summary b { background: var(--laranja); border-color: var(--laranja); transform: rotate(45deg); }
.faq details p { padding: 0 50px 22px 0; }

.page-hero { margin-top: -96px; padding: 120px 0 64px; background: var(--verde); }
.page-hero .frame { background: var(--papel); }

/* Fotos ilustrativas soltas nas secções */
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--raio-m); }
.split__sticky .photo { margin-top: 12px; }
.photo--tall { aspect-ratio: 1; max-width: 520px; object-position: center 62%; }

/* Página da campanha */
.campaign { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px 48px; align-items: start; padding-block: 24px 72px; }
.campaign__head, .campaign__gallery, .campaign__body { min-width: 0; }
.campaign__side { display: grid; gap: 16px; min-width: 0; }
/* Computador: coluna lateral fixa. Telemóvel: valor e meta logo depois da foto, doadores no fim. */
@media (min-width: 901px) {
  .campaign { grid-template-rows: auto auto 1fr; }
  .campaign__head, .campaign__gallery, .campaign__body { grid-column: 1; }
  .campaign__side { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 92px; }
}
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trust__seal { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 4px 14px 4px 8px; border-radius: 999px; background: var(--verde); font-weight: 600; font-size: .92rem; }
.trust__seal svg { width: 20px; height: 20px; flex: none; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--laranja-texto); text-decoration: underline; cursor: pointer; }
.back { display: inline-flex; align-items: center; min-height: 44px; }
.report { margin-top: 14px; max-width: 460px; }
.panel :focus-visible, .mobile-cta :focus-visible, .lightbox :focus-visible, .dd__menu :focus-visible { outline-color: var(--verde); }
.panel .money { color: var(--verde); }
.panel { background: var(--ameixa); color: var(--branco); border-radius: var(--raio-g); padding: 26px; display: grid; gap: 16px; }
.panel__raised { font-family: var(--titulo); font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; color: var(--verde); }
.panel .progress { background: var(--ameixa-80); }
.panel .notice { color: var(--ameixa); }
.panel .muted { color: var(--ameixa-20); }
.panel .divider { border: 0; border-top: 1px solid var(--ameixa-80); margin: 2px 0; width: 100%; }
.panel .list > li { border-color: var(--ameixa-80); padding-block: 9px; }
.gallery__stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--raio-m); overflow: hidden; background: var(--ameixa); }
.frame__media > .gallery__stage { aspect-ratio: 16 / 10; }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__slide > .art { width: 100%; height: 100%; }
.gallery__slide button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.gallery__nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(29, 15, 24, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / 20px no-repeat; transition: background-color .2s; }
.gallery__nav:hover { background-color: var(--ameixa); }
.gallery__nav--prev { left: 12px; transform: scaleX(-1); }
.gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(29, 15, 24, .78); color: var(--branco); font-size: .85rem; pointer-events: none; }
.gallery__count:empty { display: none; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { padding: 0; border: 3px solid transparent; border-radius: var(--raio-p); overflow: hidden; background: none; cursor: pointer; flex: none; width: 92px; height: 68px; opacity: .72; transition: opacity .2s; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { border-color: var(--laranja); opacity: 1; }
.thumbs img, .thumbs .art { width: 100%; height: 100%; object-fit: cover; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(29, 15, 24, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: var(--ameixa-fundo); }
.lightbox img { max-width: 100%; max-height: 100dvh; object-fit: contain; padding: 56px 16px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--ameixa-cartao) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 20px no-repeat; }
.lightbox .gallery__count { right: auto; left: 50%; transform: translateX(-50%); bottom: 16px; }
.previews { display: flex; flex-wrap: wrap; gap: 10px; }
.previews:empty { display: none; }
.preview { position: relative; width: 104px; height: 84px; }
.preview img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--raio-p); }
.preview form { margin: 0; }
.preview__remove { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; padding: 0; border: 2px solid var(--branco); border-radius: 50%; cursor: pointer; background: var(--ameixa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / 13px no-repeat; }
.preview__remove::after { content: ""; position: absolute; inset: -9px; }
.preview__tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ameixa); color: var(--branco); font-size: .82rem; }

/* Filtro */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 22px; background: var(--branco); border: 1.5px solid var(--borda-campo); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ameixa); box-shadow: 0 0 0 3px var(--verde); }
.search svg { flex: none; width: 22px; height: 22px; color: var(--ameixa-60); }
.search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; font: inherit; font-size: 1.1rem; color: inherit; }
.search input::placeholder { color: var(--ameixa-60); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; color: var(--ameixa-60); font-size: 1.2rem; line-height: 1; }
.search__clear:hover { background: var(--papel-2); }
.cats { position: relative; display: flex; gap: 8px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 16px; border-radius: 999px; background: var(--papel-2); color: var(--ameixa); text-decoration: none; font-weight: 500; transition: background-color .2s, color .2s; }
.cat b { min-width: 28px; padding: 1px 7px; border-radius: 999px; background: var(--papel); font-size: .85rem; font-weight: 600; text-align: center; }
.cat:hover { background: var(--verde); }
.cat.is-on { background: var(--ameixa); color: var(--branco); }
.cat.is-on b { background: var(--verde); color: var(--ameixa); }
/* Sem campanhas: contorno e contagem 0, não parece desactivada; a página explica o vazio */
.cat--empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linha); }
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ameixa-20); }
.filters__left, .filters__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-on { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px 4px 14px; border-radius: 999px; background: var(--verde); color: var(--ameixa); text-decoration: none; font-size: .9rem; font-weight: 500; }
.filters__left .link { display: inline-flex; align-items: center; min-height: 44px; }
.filter-on span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.filter-on:hover span { background: var(--ameixa); color: var(--branco); }
.dd { position: relative; }
.dd summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 16px; border: 1.5px solid var(--borda-campo); border-radius: 999px; background: var(--branco); list-style: none; cursor: pointer; font-weight: 500; white-space: nowrap; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ""; width: 8px; height: 8px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.dd[open] summary { border-color: var(--ameixa); }
.dd[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.dd__menu { position: absolute; z-index: 15; top: calc(100% + 6px); right: 0; width: 270px; max-height: 340px; overflow-y: auto; padding: 8px; background: var(--ameixa); color: var(--branco); border-radius: 20px; box-shadow: 0 18px 40px rgba(39, 21, 32, .28); }
.dd__menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.dd__menu a:hover { background: var(--ameixa-cartao); }
.dd__menu a.is-on { background: var(--verde); color: var(--ameixa); font-weight: 600; }
.dd__menu a span { font-size: .85rem; }
.story { white-space: pre-line; overflow-wrap: anywhere; }
.story--clamped { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding-block: 13px; border-bottom: 1px solid var(--linha); }
.list > li:last-child { border-bottom: 0; }
.donor { display: flex; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 18px; }
.tabs button { min-height: 44px; background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 600; cursor: pointer; color: inherit; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--verde); }
.notice { border-radius: var(--raio-p); padding: 12px 16px; background: var(--papel-2); }
.notice--warn { background: var(--aviso-fundo); }
.notice--error { background: var(--erro-fundo); color: var(--erro); }
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ameixa); }
details.plain summary { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
details.plain summary::before { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
details.plain[open] summary::before { transform: rotate(45deg); }
details.plain summary::-webkit-details-marker { display: none; }

/* Formulários */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 52px; padding: 11px 15px; font: inherit; color: inherit; background: var(--branco); border: 1.5px solid var(--borda-campo); border-radius: var(--raio-p); }
.input[aria-invalid="true"] { border-color: var(--erro); }
textarea.input { min-height: 180px; resize: vertical; }
input[type="file"].input { padding: 7px; min-height: 0; color: var(--ameixa-60); font-size: .92rem; cursor: pointer; }
input[type="file"].input::file-selector-button { min-height: 44px; margin-right: 12px; padding: 6px 18px; border: 0; border-radius: 999px; background: var(--ameixa); color: var(--branco); font: inherit; font-weight: 600; cursor: pointer; }
.input:focus { border-color: var(--ameixa); outline: none; box-shadow: 0 0 0 3px var(--verde); }
.input--amount { font-family: var(--titulo); font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; }
.error { color: var(--erro); font-size: .92rem; font-weight: 500; }
.hint { color: var(--ameixa-60); font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; padding-block: 10px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--laranja-texto); flex: none; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--borda-campo); border-radius: var(--raio-p); cursor: pointer; background: var(--branco); }
.option input { width: 20px; height: 20px; accent-color: var(--laranja-texto); margin: 0; flex: none; }
.option:has(input:checked) { border-color: var(--ameixa); background: var(--papel-2); }
.option strong { display: block; }
.form-card { background: var(--papel-2); border-radius: var(--raio-g); padding: clamp(20px, 4vw, 36px); }
.form-card .chip { color: var(--ameixa); }
.form-card .chip[aria-pressed="true"] { background: var(--ameixa); border-color: var(--ameixa); color: var(--branco); }
.form-card--ok { background: var(--verde); }
.chips--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips--grid .chip { min-width: 0; padding-inline: 6px; }
legend.legend-small { font-family: inherit; font-size: 1rem; letter-spacing: 0; margin-bottom: 10px; }
textarea.input--short { min-height: 100px; }
[data-donate] .check { min-height: 44px; align-items: center; }
.hint.center { text-align: center; }
.section--top { padding-top: 40px; }
.narrow--form { max-width: 460px; }
/* Passos numerados da transferência */
.steps { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 30px; }
.steps > li { counter-increment: passo; display: grid; gap: 12px; min-width: 0; }
.steps > li > h2 { display: flex; align-items: center; gap: 10px; }
.steps > li > h2::before { content: counter(passo); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ameixa); color: var(--branco); font-size: 1rem; letter-spacing: 0; }
.wizard__bar { display: flex; gap: 6px; }
.wizard__bar span { flex: 1; height: 6px; border-radius: 999px; background: var(--ameixa-20); }
.wizard__bar span.on { background: var(--sucesso); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-family: var(--titulo); font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 18px; }

.alert { position: fixed; z-index: 40; top: 86px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 11px 20px; border-radius: 18px; font-weight: 500; box-shadow: 0 10px 30px rgba(39, 21, 32, .2); }
.alert--ok { background: var(--verde); }
.alert--err { background: var(--erro-fundo); color: var(--erro); }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.table th { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; color: var(--ameixa-60); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--papel-2); border-radius: var(--raio-m); padding: 18px; }
.stat strong { display: block; font-family: var(--titulo); font-size: 1.8rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.admin-item { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio-m); padding: 18px; display: grid; gap: 12px; }
a.admin-item { color: inherit; text-decoration: none; }

/* Organizador: conta, assistente e painel */
.section--tight { padding-top: 40px; }
.narrow--form { max-width: 460px; }
.grid--start { align-items: start; }
.link--tap { display: inline-flex; align-items: center; min-height: 44px; }
button.link--tap { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.link--inherit { color: inherit; font-weight: 600; }
textarea.input--short { min-height: 130px; }
.btn--self { justify-self: start; width: max-content; }
.btn--danger { background: var(--branco); border-color: var(--erro); color: var(--erro); }
.btn--danger:hover { background: var(--erro); color: var(--branco); }
.badge--state { padding: 4px 12px; font-size: .85rem; }
.badge--ok { background: var(--verde); }
.badge--wait { background: var(--aviso-fundo); color: var(--aviso); }
.badge--bad { background: var(--erro-fundo); color: var(--erro); }
.wizard__head { display: grid; gap: 8px; }
.wizard__status { font-weight: 600; }
.wizard__go { margin-left: auto; }
legend:focus { outline: none; }
.review { padding: 14px 16px; border-radius: var(--raio-p); background: var(--branco); }
.review dl { display: grid; gap: 8px; margin: 8px 0 0; }
.review dt { color: var(--ameixa-60); font-size: .9rem; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.stat--money strong { color: var(--sucesso); }
.next-step { display: grid; gap: 10px; justify-items: start; padding: clamp(18px, 3vw, 26px); border: 1.5px solid var(--ameixa); border-radius: var(--raio-m); background: var(--branco); }
.next-step--bad { border-color: var(--erro); }
.next-step__label { color: var(--ameixa-60); font-size: .9rem; font-weight: 600; }
.sum { margin: 0; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; }
.sum dd { margin: 0; white-space: nowrap; }
.sum__total { border-top: 1px solid var(--borda-campo); font-weight: 700; }
.sum__total dd { color: var(--sucesso); }
.danger summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--erro); font-weight: 600; cursor: pointer; }
.danger[open] { padding: 8px 18px 18px; border: 1.5px solid var(--erro); border-radius: var(--raio-m); }
@media (max-width: 640px) {
  .hero { padding-top: 96px; }
  .fan { width: 168%; margin-left: -34%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 1.4rem; }
  .stat--money { grid-column: 1 / -1; }
  .stat--money strong { font-size: 1.8rem; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; }
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table--cards tr { padding-block: 10px; border-bottom: 1px solid var(--linha); }
  .table--cards td { position: relative; min-height: 32px; padding: 4px 0 4px 104px; border: 0; }
  .table--cards td::before { content: attr(data-label); position: absolute; left: 0; color: var(--ameixa-60); }
}
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.inline-form .input { flex: 1 1 200px; min-height: 42px; padding-block: 6px; width: auto; }

.spinner { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--verde); border-top-color: var(--sucesso); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.copy-box { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--linha); }
.copy-box strong { overflow-wrap: anywhere; }
.pagination { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }


.footer { background: var(--papel); border-top: 1px solid var(--linha); padding-top: clamp(40px, 5vw, 64px); }
.footer__grid { display: grid; gap: 32px 24px; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: clamp(28px, 4vw, 48px); }
.footer__brand { display: grid; gap: 12px; align-content: start; max-width: 300px; }
.footer__logo { height: 56px; width: auto; }
.footer__head { font-weight: 700; margin-bottom: 4px; }
.footer__grid nav a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; line-height: 1.3; text-decoration: none; }
.footer__grid nav a:hover { text-decoration: underline; }
.footer__contact { padding-block: 10px; }
.footer__line { border-top: 1px solid var(--linha); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; font-size: .92rem; color: var(--ameixa-60); }
.footer__pay { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.footer__pay b { padding: 2px 10px; border-radius: 6px; background: var(--papel-2); color: var(--ameixa); font-weight: 600; }
.footer--minimal { padding-top: 0; }
.footer__help { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer__help a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ameixa); }

@media (max-width: 1040px) {
  .header { height: 64px; padding-inline: 16px; }
  .header__logo img { height: 40px; }
  .header__wide { display: none; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
  .calc, .campaign, .split, .ways { grid-template-columns: minmax(0, 1fr); }
  .home-cards > :nth-child(n + 4) { display: none; }
  .pyramid li { min-height: 88px; }
  .split__sticky { position: static; }
  .campaign__side { display: contents; }
  .campaign__body { order: 1; }
  .search { padding-left: 16px; }
  .search .btn { padding-inline: 16px; }
  .campaign__donors { order: 2; }
  .panel { padding: 22px; }
  .panel__cta { display: none; } /* a barra fixa já tem o botão */
  .share__main { flex-basis: 100%; }
  .mobile-cta { display: block; }
  .has-mobile-cta { padding-bottom: 76px; }
  .campaign { gap: 20px; }
  .thumbs { display: none; } /* desliza-se com o dedo; poupa ecrã e dados */
  .gallery__nav { width: 44px; height: 44px; margin-top: -22px; }
  .dd__menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-height: 60vh; }
  .faq details p { padding: 0 8px 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .spinner { animation: none; }
  .recent__track { animation: none; }
  .recent__roll { overflow-x: auto; }
  .recent__list[aria-hidden] { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hl { background-size: 100% 100%; }
}
