/* ÀMARGEM — site
   Layout: gradiente vivo no topo que se dissolve no rosa; o resto do site herda as cores vivas. */

/* ---------- fontes (alojadas no servidor) ----------
   Para trocar pela Area Normal: substituir os ficheiros e o nome em --f. */
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 300; src: url(../fonts/albert-sans-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/albert-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/albert-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/albert-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/albert-sans-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 300; src: url(../fonts/albert-sans-latin-ext-300-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/albert-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/albert-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/albert-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/albert-sans-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --rosa: #F6DAEA;
  --creme: #FCE6CE;
  --vermelho: #F22029;
  --laranja: #FB3B03;
  --amarelo: #FAEF17;
  --preto: #121012;
  --live1: #F22029; --live2: #FB3B03; --live3: #FCE6CE; /* reescritos pelo gradiente */
  --f: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(16px, 3vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rosa); color: var(--preto); font-family: var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; }
::selection { background: var(--amarelo); color: var(--preto); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.label { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.logo { display: block; width: 100%; height: auto; fill: currentColor; }
.grain { position: absolute; inset: -50%; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: overlay;
  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='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- topo ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh; padding: var(--gut);
  padding-top: calc(var(--gut) + env(safe-area-inset-top, 0px));
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px; background: var(--creme); }
.hero > :where(:not(canvas, .grain, .fade)) { position: relative; z-index: 3; }
.hero canvas { position: absolute; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); z-index: 0; filter: blur(28px); }
.hero .fade { position: absolute; inset: auto 0 0 0; height: 22%; z-index: 2; background: linear-gradient(to bottom, rgba(246, 218, 234, 0), var(--rosa)); }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav a, .lang a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; gap: 2px; }
.lang a { padding: 4px 6px; opacity: .5; }
.lang a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hero .body { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(18px, 3vw, 36px); padding-bottom: clamp(28px, 5vw, 72px); }
.h1-logo { margin: 0; font-size: inherit; }
.statement { margin: 0; font-weight: 300; font-size: clamp(22px, 3.3vw, 50px); letter-spacing: .035em; line-height: 1.12; text-wrap: balance; max-width: 22ch; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- secções ---------- */
.sec { padding: clamp(56px, 9vw, 128px) var(--gut); display: grid; gap: clamp(32px, 5vw, 64px); }
.corner { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--preto); padding-top: 10px; }
.big { margin: 0; font-weight: 300; font-size: clamp(32px, 6vw, 90px); line-height: 1.04; letter-spacing: .015em; text-wrap: balance; max-width: 18ch; }
mark { background: var(--amarelo); color: inherit; padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; max-width: 54ch; }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

/* pilares */
.pilares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 40px); max-width: 1100px; }
.pilar-item > p { display: none; }
.pilar { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 50%; border: 2px solid var(--laranja); overflow: hidden; isolation: isolate;
  display: grid; place-items: center; text-align: center; padding: 13%; outline-offset: 6px; }
.pilar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s;
  background: radial-gradient(80% 80% at 30% 85%, var(--live1), transparent 70%), radial-gradient(70% 70% at 80% 20%, var(--live3), transparent 70%), var(--live2); }
.pilar span { grid-area: 1 / 1; transition: opacity .3s; }
.pilar .nome { font-size: clamp(18px, 2.6vw, 38px); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.pilar .desc { opacity: 0; font-size: clamp(14px, 1.45vw, 20px); line-height: 1.3; }
.pilar:hover, .pilar:focus-visible { border-color: transparent; }
.pilar:hover::before, .pilar:focus-visible::before { opacity: 1; }
.pilar:hover .nome, .pilar:focus-visible .nome { opacity: 0; }
.pilar:hover .desc, .pilar:focus-visible .desc { opacity: 1; }

/* filtros por edição */
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.filtros button { border: 1.5px solid var(--preto); background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--preto); color: var(--rosa); }

/* arquivo */
.grid-arq { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.grid-arq figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.grid-arq .ph { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--creme); cursor: zoom-in; }
.grid-arq img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.grid-arq figure::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .45s; mix-blend-mode: multiply; pointer-events: none;
  background: radial-gradient(90% 90% at 20% 100%, var(--live1), transparent 70%), var(--live3); }
.grid-arq figure:hover::after { opacity: .55; }
.grid-arq figure:hover img { transform: scale(1.03); }
.grid-arq figcaption { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: var(--rosa); padding: 3px 7px; pointer-events: none; }

/* lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(18, 16, 18, .94); color: var(--rosa); }
.lightbox::backdrop { background: rgba(18, 16, 18, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 2 * var(--gut) - 96px); max-height: calc(100vh - 140px); object-fit: contain; }
.lb-cap { position: absolute; left: var(--gut); bottom: var(--gut); margin: 0; max-width: 70ch; }
.lb-close { position: absolute; top: var(--gut); right: var(--gut); background: var(--amarelo); color: var(--preto); border: 0; padding: 10px 14px; cursor: pointer; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: 1.5px solid var(--rosa); color: var(--rosa);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.lb-prev { left: var(--gut); } .lb-next { right: var(--gut); }
.lb-prev:hover, .lb-next:hover { background: var(--rosa); color: var(--preto); }

/* parceiros */
.cats { display: grid; gap: clamp(28px, 4vw, 48px); }
.cat { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--preto); padding-top: 14px; }
.cat h3 { margin: 0; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); align-items: center; }
.logos li { display: flex; align-items: center; min-height: 64px; }
.logos a { display: flex; align-items: center; text-decoration: none; }
.logos img { display: block; height: 48px; width: auto; max-width: 180px; object-fit: contain; }
.nome-p { font-weight: 700; font-size: 17px; letter-spacing: .01em; }

/* rodapé */
.site-foot { background: var(--preto); color: var(--rosa); padding: 0 var(--gut) calc(var(--gut) + env(safe-area-inset-bottom, 0px)); display: grid; gap: clamp(40px, 6vw, 72px); }
.site-foot .strip { height: 8px; margin-inline: calc(-1 * var(--gut)); background: linear-gradient(90deg, var(--live1), var(--live2), var(--live3), var(--live1)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(210px, 1fr)); gap: 32px; align-items: start; }
.foot-grid .logo { width: min(280px, 100%); color: var(--rosa); }
.fcol { display: grid; gap: 8px; font-size: 15px; line-height: 1.5; min-width: 0; }
.fcol .mail { white-space: nowrap; }
.fcol .label { opacity: .55; margin-bottom: 4px; }
.fcol a { text-decoration: none; }
.fcol a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(246, 218, 234, .2); padding-top: 14px; opacity: .7; }

@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid .logo, .fcol.contacto { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .two, .cat { grid-template-columns: 1fr; }
  .pilares { grid-template-columns: 1fr; max-width: none; gap: 18px; }
  .pilar-item { display: grid; grid-template-columns: 44vw minmax(0, 1fr); gap: 16px; align-items: center; }
  .pilar-item > p { display: block; margin: 0; font-size: 16px; line-height: 1.4; }
  .pilar .nome { font-size: 16px; }
  .pilar .desc { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: var(--gut); transform: none; }
  .lb-prev { left: auto; right: calc(var(--gut) + 56px); }
  .lb-cap { bottom: calc(var(--gut) + 64px); }
  .lightbox img { max-width: calc(100vw - 2 * var(--gut)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .grid-arq img, .pilar::before, .pilar span { transition: none; }
}
