/* Blog LEB — foglio di stile. Colori e font ripresi da www.leb.pt e dal logo. */

/* ---------- Font (ospitati in locale, nessuna chiamata a terzi) ---------- */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/montserrat-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/montserrat-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Variabili ---------- */
:root {
  --verde: #354a35;          /* titoli e pulsanti (leb.pt) */
  --verde-fundo: #0e4301;    /* fasce scure (leb.pt) */
  --verde-logo: #336600;     /* logo: verde scuro */
  --verde-medio: #76923c;    /* logo: verde medio */
  --verde-claro: #c2d69b;    /* logo: verde chiaro */
  --texto: #3c3c3c;
  --cinza: #6a706a;
  --linha: #e2e7dd;
  --suave: #f4f6f0;
  --branco: #fff;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
  --largura: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.75; color: var(--texto);
  background: var(--branco); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-logo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--verde-medio); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--verde); line-height: 1.2; margin: 0; }
.contentor { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 28px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--verde-medio); outline-offset: 3px; }

.sobretitulo { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #5d7630; margin: 0 0 10px; }

.botao { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 13px 26px; border-radius: 6px; background: var(--verde); color: var(--branco); border: 1px solid var(--verde);
  transition: background .2s, color .2s, border-color .2s; }
.botao:hover { background: var(--verde-logo); border-color: var(--verde-logo); color: var(--branco); }
.botao--claro { background: var(--branco); color: var(--verde); border-color: var(--branco); }
.botao--claro:hover { background: var(--verde-claro); border-color: var(--verde-claro); color: var(--verde-fundo); }

/* ---------- Cabeçalho ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--linha); }
.topo .contentor { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.topo__logo img { height: 50px; width: auto; }
.menu { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.menu a { font-size: 13px; font-weight: 600; color: var(--texto); text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--verde-logo); }
.menu a[aria-current="page"] { color: var(--verde-logo); border-bottom-color: var(--verde-medio); }
.menu-botao { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-botao span { display: block; width: 24px; height: 2px; background: var(--verde); margin: 5px 0; }

/* ---------- Faixa de abertura (índice) ---------- */
.abertura { background: var(--verde-fundo); color: var(--branco); padding: 76px 0 70px; position: relative; overflow: hidden; }
.abertura .sobretitulo { color: var(--verde-claro); }
.abertura h1 { color: var(--branco); font-size: clamp(34px, 4.6vw, 54px); max-width: 720px; }
.abertura p { font-weight: 300; font-size: 17px; max-width: 640px; margin: 20px 0 0; color: rgba(255, 255, 255, .88); }
.abertura__marca { position: absolute; right: max(28px, calc((100vw - var(--largura)) / 2 + 28px)); bottom: -6px;
  width: 250px; opacity: .22; pointer-events: none; }

/* ---------- Filtros ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; padding: 34px 0 6px; }
.filtro { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--verde); background: var(--branco);
  border: 1px solid #cfd8c6; border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: all .2s; }
.filtro:hover { border-color: var(--verde-medio); }
.filtro[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--branco); }

/* ---------- Cartões ---------- */
.lista { padding: 34px 0 96px; }
.destaque { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.destaque__img, .cartao__img { display: block; overflow: hidden; background: var(--suave); }
.destaque__img img, .cartao__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.destaque__img { aspect-ratio: 16 / 10; }
.cartao__img { aspect-ratio: 16 / 10; }
.destaque:hover .destaque__img img, .cartao:hover .cartao__img img { transform: scale(1.04); }
.destaque h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.destaque h2 a, .cartao h3 a { color: inherit; text-decoration: none; }
.destaque h2 a:hover, .cartao h3 a:hover { color: var(--verde-logo); }
.destaque p { margin: 0 0 18px; }

.grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 56px 40px; }
.cartao { display: flex; flex-direction: column; }
.cartao__corpo { padding-top: 22px; display: flex; flex-direction: column; flex: 1; }
.cartao h3 { font-size: 24px; margin-bottom: 12px; }
.cartao p { font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden; }
.local { font-size: 12.5px; color: var(--cinza); margin: 0 0 14px; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; }
.etiquetas li { font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--verde); background: #e9f0dc;
  border-radius: 3px; padding: 3px 9px; line-height: 1.6; }
.ler { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--verde); margin-top: auto; }
.ler::after { content: " \2192"; transition: margin .2s; }
.ler:hover::after { margin-left: 5px; }
.oculto { display: none !important; }
.vazio { padding: 40px 0; color: var(--cinza); }

/* ---------- Artigo: capa ---------- */
.capa { position: relative; height: clamp(380px, 64vh, 660px); background: var(--verde-fundo); color: var(--branco); overflow: hidden; }
.capa > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capa::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 3, .28) 0%, rgba(6, 22, 3, .18) 35%, rgba(6, 22, 3, .86) 100%); }
.capa .contentor { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
.migalhas { font-size: 12.5px; font-weight: 500; margin: 0 0 22px; color: rgba(255, 255, 255, .8); }
.migalhas a { color: inherit; text-decoration: none; }
.migalhas a:hover { color: var(--branco); text-decoration: underline; }
.capa .sobretitulo { color: var(--verde-claro); }
.capa h1 { color: var(--branco); font-size: clamp(30px, 4.3vw, 54px); max-width: 920px; text-wrap: balance; }
.capa__fotos { position: absolute; z-index: 3; right: 28px; top: 24px; font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--branco); background: rgba(6, 22, 3, .55); border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  padding: 7px 15px; text-decoration: none; }
.capa__fotos:hover { background: rgba(6, 22, 3, .8); color: var(--branco); }

/* ---------- Artigo: corpo ---------- */
.artigo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding: 64px 28px 88px; align-items: start; }
.resumo { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--verde);
  border-left: 3px solid var(--verde-medio); padding-left: 24px; margin: 0 0 40px; }
.texto h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 56px 0 18px; display: flex; align-items: baseline; gap: 14px; }
.texto h2::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 2px; background: var(--verde-medio); transform: translateY(-3px); }
.texto h3 { font-size: 21px; margin: 34px 0 10px; }
.texto p { margin: 0 0 20px; }
.texto strong { font-weight: 600; color: #2a2a2a; }
.texto ul, .texto ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.texto li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.texto ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 1.5px; background: var(--verde-medio); }
.texto ol { counter-reset: n; }
.texto ol > li { counter-increment: n; padding-left: 32px; }
.texto ol > li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 600; color: var(--verde-medio); }
.texto li > ul, .texto li > ol { margin: 9px 0 0; }
.texto code { font-family: Consolas, "Courier New", monospace; font-size: .9em; background: var(--suave); padding: 1px 6px; border-radius: 3px; }
.tabela { overflow-x: auto; margin: 0 0 26px; }
.texto table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.texto th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cinza); border-bottom: 2px solid var(--verde-medio); padding: 10px 14px 10px 0; }
.texto td { border-bottom: 1px solid var(--linha); padding: 11px 14px 11px 0; vertical-align: top; }

/* ---------- Figuras ---------- */
.figs { display: flex; gap: 18px; margin: 44px 0; align-items: flex-start; }
.figs figure { margin: 0; min-width: 0; }
.figs a { display: block; overflow: hidden; background: var(--suave); cursor: zoom-in; }
.figs img { width: 100%; transition: transform .6s ease, opacity .3s; }
.figs a:hover img { transform: scale(1.025); }
.figs--uma a { display: flex; justify-content: center; }
.figs--uma img { width: auto; max-height: 640px; }
.figs--uma figure { flex: 1 1 0%; }
figcaption { font-size: 12.5px; line-height: 1.55; color: var(--cinza); margin-top: 10px; }
figcaption em { font-style: italic; }

/* ---------- Ficha técnica ---------- */
.ficha { position: sticky; top: 106px; background: var(--suave); border-top: 4px solid var(--verde-medio); padding: 30px 30px 14px; }
.ficha h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--verde); margin-bottom: 18px; }
.ficha dl { margin: 0; }
.ficha dt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cinza); }
.ficha dd { margin: 3px 0 16px; padding-bottom: 16px; font-size: 14.5px; line-height: 1.55; border-bottom: 1px solid #dfe5d7; }
.ficha dd:last-child { border-bottom: 0; }
.ficha .etiquetas { margin: 6px 0 16px; }

/* ---------- Chamada + outras obras ---------- */
.chamada { background: var(--verde-fundo); color: var(--branco); padding: 70px 0; }
.chamada .contentor { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.chamada h2 { color: var(--branco); font-size: clamp(26px, 3vw, 36px); }
.chamada p { margin: 12px 0 0; font-weight: 300; color: rgba(255, 255, 255, .88); max-width: 620px; }
.outras { padding: 80px 0 96px; }
.outras__topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.outras__topo h2 { font-size: clamp(26px, 3vw, 34px); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--suave); border-top: 1px solid var(--linha); padding: 60px 0 28px; font-size: 14px; }
.rodape__grelha { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.rodape img { height: 56px; width: auto; margin-bottom: 18px; }
.rodape h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.rodape p { margin: 0 0 6px; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: 6px; }
.rodape a { color: var(--texto); text-decoration: none; }
.rodape a:hover { color: var(--verde-logo); text-decoration: underline; }
.rodape__lema { font-family: var(--serif); font-size: 18px; color: var(--verde); line-height: 1.45; max-width: 300px; }
.rodape__fim { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--linha); font-size: 12.5px; color: var(--cinza); }

/* ---------- Página 404 ---------- */
.erro { padding: 110px 0 130px; text-align: center; }
.erro h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.erro p { margin: 0 0 30px; }

/* ---------- Visualizador de imagens ---------- */
.visor { position: fixed; inset: 0; z-index: 100; background: rgba(5, 14, 3, .96); display: none; flex-direction: column;
  align-items: center; justify-content: center; padding: 56px 72px 28px; }
.visor.aberto { display: flex; }
.visor img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); }
.visor__legenda { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.6; text-align: center; max-width: 860px; margin: 20px 0 0; min-height: 3.2em; }
.visor__conta { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--verde-claro); margin-bottom: 4px; }
.visor button { position: absolute; background: none; border: 0; color: var(--branco); cursor: pointer; font-family: var(--sans);
  width: 54px; height: 54px; font-size: 34px; line-height: 1; border-radius: 50%; transition: background .2s; }
.visor button:hover { background: rgba(255, 255, 255, .14); }
.visor__fechar { top: 10px; right: 14px; }
.visor__ant { left: 10px; top: 50%; transform: translateY(-50%); }
.visor__seg { right: 10px; top: 50%; transform: translateY(-50%); }
body.sem-rolar { overflow: hidden; }

/* ---------- Ecrãs pequenos ---------- */
@media (max-width: 1020px) {
  .artigo { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; }
  .ficha { position: static; grid-row: 1; }
  .destaque { grid-template-columns: 1fr; gap: 26px; }
  .rodape__grelha { grid-template-columns: 1fr 1fr; }
  .rodape__grelha > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .contentor { padding: 0 20px; }
  .artigo { padding: 36px 20px 64px; }
  .menu-botao { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--branco); border-bottom: 1px solid var(--linha); padding: 8px 20px 18px; }
  .menu.aberto { display: flex; }
  .menu a { display: block; padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--linha); }
  .topo .contentor { min-height: 66px; position: relative; }
  .topo__logo img { height: 42px; }
  .abertura { padding: 54px 0 50px; }
  .abertura__marca { display: none; }
  .grelha { grid-template-columns: 1fr; gap: 48px; }
  .figs { flex-direction: column; gap: 26px; margin: 34px 0; }
  .figs figure { flex: none !important; width: 100%; }
  .capa .contentor { padding-bottom: 32px; }
  .capa__fotos { right: 20px; top: 16px; }
  .rodape__grelha { grid-template-columns: 1fr; gap: 32px; }
  .visor { padding: 56px 12px 20px; }
  .visor__ant, .visor__seg { top: auto; bottom: 8px; transform: none; }
  .visor__legenda { margin-bottom: 56px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topo, .chamada, .outras, .rodape, .capa__fotos, .visor { display: none !important; }
  .capa { height: auto; color: #000; background: none; }
  .capa > img, .capa::after { display: none; }
  .capa h1, .capa .sobretitulo, .migalhas { color: #000; }
  .artigo { display: block; }
  .ficha { position: static; margin-bottom: 24px; }
}
