/* REDWEST – folha de estilos (versão 3 – paleta clara: branco, marfim, cinzento quente; azul-marinho só em texto)
   Tokens → fontes → base → layout → componentes → páginas → utilitários */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --red: #ab0a0a;
  --red-700: #8a0808;
  --red-50: #faf1f1;
  --navy: #0b1b33;
  --ink: #0b1b33;
  --text: #39414d;
  --muted: #555b67;
  --line: #e8e7e3;
  --line-strong: #d3d2cc;
  --bg: #ffffff;
  --bg-soft: #faf9f6;
  --ivory: #faf9f6;
  --warm: #f3f2ef;
  --ok: #17784a;
  --err: #b42318;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 12px 32px rgba(11, 27, 51, .07);
  --shadow-lg: 0 2px 6px rgba(11, 27, 51, .06), 0 28px 60px rgba(11, 27, 51, .14);
  --container: 1280px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); line-height: 1.14; }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--red); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 600; }
address { font-style: normal; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.section { padding: clamp(88px, 11vw, 152px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--warm); color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy h2, .section-navy h3, .section-navy strong { color: var(--ink); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > div { max-width: 760px; }
.section-head h2 { margin: 0; }
.section-head p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-navy .section-head p:not(.eyebrow) { color: var(--muted); }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--red); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section-navy .eyebrow, .panel-navy .eyebrow { color: var(--red); }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 680px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split-top { align-items: start; }
.split-form { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .split, .split-form { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: var(--radius-sm); font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s; }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; color: var(--red); transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-light { color: var(--navy); }
.link-light:hover { color: var(--red); }

/* ---------- Cabeçalho ---------- */
.topbar { background: var(--ivory); color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.topbar a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--red); }
.topbar .icon { width: 14px; height: 14px; color: var(--red); }
.topbar-links { display: flex; gap: 28px; }
@media (max-width: 720px) { .topbar-tagline { display: none; } .topbar-inner { justify-content: center; } .topbar-links { gap: 20px; } }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 27, 51, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--red); text-decoration: none; }
.brand .logo { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-text strong { color: var(--navy); font-size: 1.05rem; font-weight: 700; letter-spacing: .14em; }
.brand-text small { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.brand-light { color: var(--red); }
.brand-light .brand-text { border-color: var(--line-strong); }
.brand-light .brand-text strong { color: var(--navy); }
.brand-light .brand-text small { color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav-list { display: flex; align-items: stretch; gap: 4px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; color: var(--ink); font-weight: 500; font-size: .94rem; text-decoration: none; }
.nav-list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li.is-active > a::after { transform: scaleX(1); }
.has-sub > a::after { right: 28px !important; }
.sub-toggle { display: none; }
.has-sub > a { padding-right: 28px !important; }
.has-sub > a::before { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .45; }
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 300px; list-style: none; margin: 0; padding: 12px 0; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--red); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 11px 24px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.sub-menu a:hover { background: var(--bg-soft); color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 1200px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; height: auto; flex-direction: column; align-items: stretch; gap: 20px; padding: 8px var(--gutter) 40px; background: #fff; overflow-y: auto; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden; }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .topbar { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; height: auto; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; height: auto; padding: 18px 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
  .nav-list > li > a::after { display: none; }
  .nav-list > li.is-active > a { color: var(--red); }
  .has-sub > a { padding-right: 0 !important; }
  .has-sub > a::before { display: none; }
  .sub-toggle { display: inline-flex; background: none; border: 0; padding: 12px; color: var(--ink); cursor: pointer; }
  .sub-toggle .icon { transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .sub-menu { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 14px; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.sub-open .sub-menu { display: block; }
  .sub-menu a { padding: 9px 0; color: var(--muted); }
  .nav-cta { width: 100%; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 24px 0 0; margin: 0; font-size: .8rem; letter-spacing: .02em; color: var(--muted); }
.breadcrumbs li + li::before { content: "—"; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }

/* ---------- Hero (início) ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 0; background: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: 28px; }
.hero .lead { margin-bottom: 0; }
.hero-actions { margin-top: 40px; }
.hero-media { position: relative; margin: 0 24px 0 0; }
.hero-media::before { content: ""; position: absolute; right: -24px; bottom: -24px; width: 62%; height: 70%; background: var(--red); z-index: 0; }
.hero-media > img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4.6; object-fit: cover; }
.hero-badge { position: absolute; z-index: 2; left: -40px; bottom: 48px; display: flex; align-items: center; gap: 18px; padding: 22px 26px; background: #fff; box-shadow: var(--shadow-lg); max-width: 310px; }
.hero-badge strong { font-family: var(--serif); font-size: 2.8rem; font-weight: 400; line-height: 1; color: var(--navy); white-space: nowrap; }
.hero-badge span { font-size: .88rem; line-height: 1.45; color: var(--muted); }
.hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.hero-strip > div { display: flex; gap: 18px; padding: 32px 32px 40px 0; }
.hero-strip > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.hero-strip .icon { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.hero-strip strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.hero-strip p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media > img { aspect-ratio: 4 / 3; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -36px 0 0 20px; padding: 16px 20px; gap: 14px; max-width: 290px; }
  .hero-badge strong { font-size: 2rem; }
  .hero-badge span { font-size: .82rem; }
  .hero-strip { grid-template-columns: 1fr; margin-top: 72px; }
  .hero-strip > div, .hero-strip > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero (páginas interiores) ---------- */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); background: #fff; }
.page-hero h1 { max-width: 20ch; margin-bottom: 28px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 40px; }
.page-hero-article h1 { max-width: 24ch; font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.page-hero-article .eyebrow { gap: 16px; }
.page-hero-article .eyebrow::before { display: none; }
.page-hero-article time { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.hero-band { margin-top: 0; margin-bottom: 0; }
.hero-band img { width: 100%; height: clamp(260px, 38vw, 520px); object-fit: cover; }

/* ---------- Imagens ---------- */
.media { position: relative; margin: 0; }
.media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-tall img { aspect-ratio: 4 / 5; }
.media-accent { margin: 20px 0 0 20px; }
.media-accent::after { content: ""; position: absolute; left: -20px; top: -20px; width: 120px; height: 120px; border-left: 2px solid var(--red); border-top: 2px solid var(--red); pointer-events: none; }

/* ---------- Lista de serviços (editorial) ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service-list li { border-bottom: 1px solid var(--line-strong); }
.service-row { position: relative; display: grid; grid-template-columns: 1fr 1.5fr 48px; gap: 48px; align-items: center; padding: 36px 0; color: inherit; text-decoration: none; }
.service-row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service-row:hover { color: inherit; }
.service-row:hover::before { transform: scaleX(1); }
.service-row h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; transition: color .2s; }
.service-row p { margin: 0; color: var(--muted); }
.service-tag { display: block; margin-top: 8px; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.service-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.service-arrow .icon { width: 18px; height: 18px; }
.service-row:hover h3 { color: var(--red); }
.service-row:hover .service-arrow { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr 40px; gap: 8px 16px; padding: 28px 0; } .service-row p { grid-column: 1 / 2; } .service-arrow { grid-row: 1; grid-column: 2; width: 40px; height: 40px; } }

/* ---------- Blocos de serviço com imagem ---------- */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.feature-block + .feature-block { margin-top: clamp(72px, 9vw, 128px); }
.feature-block:nth-child(even) .media { order: 2; }
.feature-block h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.feature-block .product-tag { margin-bottom: 20px; }
@media (max-width: 960px) { .feature-block { grid-template-columns: 1fr; } .feature-block:nth-child(even) .media { order: 0; } }

/* ---------- Cartões ---------- */
.card { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.section-soft .card { border-color: transparent; }
.card h3 { margin-bottom: .55em; }
.card p { color: var(--muted); font-size: 1rem; }
.card > :last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; overflow: hidden; }
.card-link::before { content: ""; position: absolute; left: 0; top: 0; z-index: 2; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card-link:hover { box-shadow: var(--shadow); color: inherit; transform: translateY(-3px); }
.card-link:hover::before { transform: scaleX(1); }
.card-link .link-arrow { margin-top: auto; padding-top: 20px; }
.card-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--red); background: #fff; }
.card-ico .icon { width: 24px; height: 24px; }
.card-navy { background: var(--ivory); border-color: var(--line); }
.card-navy p { color: var(--muted); }
.card-img { overflow: hidden; margin: calc(-1 * clamp(28px, 3vw, 40px)) calc(-1 * clamp(28px, 3vw, 40px)) 28px; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.card-link:hover .card-img img { transform: scale(1.04); }

/* ---------- Listas ---------- */
.feature-list { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: 0; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-list li:first-child { border-top: 1px solid var(--line); }
.feature-list li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23ab0a0a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.feature-list-2 { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.feature-list-2 li:nth-child(2) { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .feature-list-2 { grid-template-columns: 1fr; } .feature-list-2 li:nth-child(2) { border-top: 0; } }
.section-navy .feature-list li, .panel-navy .feature-list li { border-color: var(--line-strong); }

/* ---------- Números / enquadramento legal ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.fact { padding: 40px 40px 8px 0; }
.fact + .fact { padding-left: 40px; border-left: 1px solid var(--line-strong); }
.fact strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 20px; }
.fact strong small { display: block; margin-top: 14px; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.fact p { margin: 0; color: var(--text); }
.fact .ref { display: block; margin-top: 16px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } .fact, .fact + .fact { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); } }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.steps h3 { font-size: 1.15rem; margin-bottom: .4em; }
.steps li::before { content: ""; display: block; width: 28px; height: 2px; background: var(--red); margin: -29px 0 26px; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.steps-stack { grid-template-columns: 1fr; gap: 28px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps-stack { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Painéis ---------- */
.panel { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--bg-soft); }
.panel > h3, .panel > h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 20px; }
.panel-navy { background: #fff; color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.panel-navy h2, .panel-navy h3, .panel-navy strong { color: var(--ink); }
.product-tag { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.product-tag .dot { width: 8px; height: 8px; background: var(--red); }
.product-tag + h3 { margin-top: 14px; }
.dl-grid { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; background: #fff; padding: 8px clamp(24px, 4vw, 40px); }
.dl-grid dt, .dl-grid dd { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dl-grid dt { padding-right: 32px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.dl-grid dt strong { font-weight: 600; color: var(--muted); }
.dl-grid dt:last-of-type, .dl-grid dd:last-of-type { border-bottom: 0; }
@media (max-width: 480px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dt { padding-bottom: 0; border: 0; } }

/* ---------- Destaque ---------- */
.statement { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; color: var(--ink); font-weight: 400; letter-spacing: -0.01em; max-width: 26ch; margin: 0; }
.statement em { color: var(--red); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px 64px; padding: clamp(40px, 6vw, 80px); background: var(--ivory); color: var(--text); border: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--red); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ink); margin-bottom: .35em; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-band p { margin: 0; max-width: 560px; font-size: 1.08rem; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.cta-inline h2 { font-size: 1.6rem; margin-bottom: .25em; }
.cta-inline p { margin: 0; color: var(--muted); }

/* ---------- Notícias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); }
.news-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid, .news-grid-2 { grid-template-columns: 1fr; } }
.news-card { border-top: 1px solid var(--line-strong); }
.news-card-link { display: flex; flex-direction: column; height: 100%; padding: 28px 0 40px; color: inherit; text-decoration: none; }
.news-card-link:hover { color: inherit; }
.news-card h3 { margin: 18px 0 14px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; transition: color .2s; }
.news-card-link:hover h3 { color: var(--red); }
.news-card p { color: var(--muted); font-size: .98rem; }
.news-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; }
.read-more .icon { width: 16px; height: 16px; color: var(--red); transition: transform .2s var(--ease); }
.news-card-link:hover .read-more .icon { transform: translateX(4px); }
.tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }

/* ---------- Artigo / prosa ---------- */
.article-body { padding-top: clamp(16px, 3vw, 32px); padding-bottom: 32px; }
.prose { font-size: 1.1rem; line-height: 1.8; }
.prose > .lead:first-child { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.5; color: var(--ink); max-width: none; margin-bottom: 1.4em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--red); font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.4rem; line-height: 1.45; }
.prose .note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }
.article-cta { padding-bottom: clamp(56px, 7vw, 96px); }

/* ---------- Catálogo ---------- */
.cat-toolbar { position: sticky; top: var(--header-h); z-index: 5; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 20px; align-items: end; padding: 20px 0; margin-bottom: 40px; background: #fff; border-bottom: 1px solid var(--line-strong); }
.cat-summary { margin: 0 0 14px; font-size: .92rem; color: var(--muted); white-space: nowrap; }
.cat-summary strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
@media (max-width: 800px) { .cat-toolbar { grid-template-columns: 1fr; position: static; } .cat-summary { white-space: normal; } }
.cat-area { margin-bottom: 56px; }
.cat-area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.cat-area-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 0; }
.cat-count { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--navy); }
.cat-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.cat-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-strong); }
.cat-table td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.cat-table tr:hover td { background: var(--bg-soft); }
.cat-table .num { text-align: right; white-space: nowrap; padding-right: 0; }
.cat-table .mono { font-family: var(--mono); font-size: .82rem; color: var(--muted); white-space: nowrap; width: 110px; }
.cat-empty { padding: 40px; text-align: center; background: var(--bg-soft); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.field { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--ink); }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; 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='%230b1b33' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center/16px no-repeat; }
input::placeholder, textarea::placeholder { color: #9aa0aa; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 27, 51, .1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--ink); margin-bottom: 12px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: .95rem; color: var(--ink); transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--navy); }
.choice input { margin: 3px 0 0; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--red); background: var(--red-50); }
.consent { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent > span { flex: 1; }
.consent input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.consent .field-error { flex-basis: 100%; padding-left: 30px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 18px 20px; border-left: 3px solid; font-weight: 500; }
.form-status.is-ok { display: block; background: #edf7f1; color: var(--ok); }
.form-status.is-error { display: block; background: #fdf0ee; color: var(--err); }
.form-card { padding: clamp(28px, 4vw, 56px); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.h-sm { font-size: 1.8rem; margin-bottom: 28px; }

/* ---------- Contactos ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.contact-item { display: flex; gap: 20px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.contact-item .card-ico { margin: 0; width: 48px; height: 48px; }
.contact-item .card-ico .icon { width: 20px; height: 20px; }
.contact-item strong { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 6px; }
.contact-item a { color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.contact-item a:hover { color: var(--red); }
.contact-item .link-sm { font-size: .9rem; color: var(--red); margin-top: 6px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--warm); color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: end; padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 72px); padding-left: var(--gutter); padding-right: var(--gutter); background: linear-gradient(var(--line-strong), var(--line-strong)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer-cta h2 { color: var(--ink); font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 0; max-width: 16ch; }
.footer-cta h2 em { color: var(--red); }
@media (max-width: 800px) { .footer-cta { grid-template-columns: 1fr; align-items: start; } }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
.footer-brand p { margin-top: 24px; max-width: 360px; line-height: 1.65; }
.footer-title { color: var(--ink); font-family: var(--sans); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a:not(.btn):not(.brand) { color: var(--text); text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--red); }
.footer-contact { display: grid; gap: 12px; color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 28px var(--gutter); background: linear-gradient(var(--line-strong), var(--line-strong)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 / obrigado ---------- */
.center-page { text-align: center; padding: clamp(96px, 14vw, 180px) 0; }
.center-page h1 { margin-inline: auto; max-width: 18ch; }
.center-page .lead { margin-inline: auto; }
.center-page .btn-row { justify-content: center; margin-top: 40px; }
.big-code { font-family: var(--serif); font-size: clamp(4.5rem, 12vw, 9rem); font-weight: 300; color: var(--red); line-height: 1; margin-bottom: 24px; }

/* ---------- Animação de entrada (ativada por JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilitários ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* Modo de revisão (?rever): destaca a informação por validar */
.rever [data-validar]:not([data-validar=""]) { outline: 2px dashed #e5a100; outline-offset: 3px; background-color: rgba(255, 213, 79, .18); position: relative; }
.rever [data-validar]:not([data-validar=""]):hover::after { content: "VALIDAR: " attr(data-validar); position: absolute; left: 0; top: 100%; z-index: 60; margin-top: 6px; max-width: 320px; padding: 8px 10px; background: #3b2f00; color: #fff3c4; font: 600 12px/1.4 var(--sans); white-space: normal; text-transform: none; letter-spacing: 0; }
.rever-banner { position: fixed; left: 16px; bottom: 16px; z-index: 80; padding: 10px 14px; background: #3b2f00; color: #fff3c4; font-size: .85rem; box-shadow: var(--shadow-lg); }

/* O CTA do rodapé só aparece em páginas que não terminam já com uma faixa de CTA */
main:has(.cta-band) + .site-footer .footer-cta { display: none; }
main:has(.cta-band) + .site-footer .footer-grid { padding-top: clamp(64px, 8vw, 96px); }
.nowrap { white-space: nowrap; }

/* Cabeçalho editorial das páginas interiores: título à esquerda, introdução à direita */
@media (min-width: 961px) {
  .page-hero > .container:not(.narrow) { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: clamp(48px, 7vw, 112px); align-items: end; }
  .page-hero > .container:not(.narrow) > * { grid-column: 1; }
  .page-hero > .container:not(.narrow) > .eyebrow { grid-row: 1; justify-self: start; }
  .page-hero > .container:not(.narrow) > h1 { grid-row: 2; margin-bottom: 0; }
  .page-hero > .container:not(.narrow) > .lead { grid-column: 2; grid-row: 2; align-self: end; padding-bottom: 10px; }
  .page-hero > .container:not(.narrow) > .btn-row { grid-column: 2; grid-row: 3; }
}
.page-hero + .hero-band { padding-bottom: 0; }
.page-hero + .section, .page-hero + .section-sm { padding-top: clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); }
.page-hero.page-hero-article { padding-bottom: 8px; }
.page-hero-article + .article-body { padding-top: 32px; }

/* Nomes de marca nunca em maiúsculas forçadas (grafia oficial: e-Academy, SafeFood, ARHO) */
.service-tag, .product-tag { text-transform: none; letter-spacing: .04em; font-size: .82rem; }
.nt { text-transform: none; letter-spacing: .02em; }

/* ---------- Hero (início) v3: texto + fotografia + selo DGERT ---------- */
.hero-grid { grid-template-columns: 1.05fr .95fr; grid-template-areas: "a media" "b media"; row-gap: 0; }
.hero-a { grid-area: a; align-self: end; }
.hero-b { grid-area: b; align-self: start; }
.hero-media { grid-area: media; }
.hero h1 { margin-bottom: 28px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "a" "media" "b"; row-gap: 32px; }
  .hero h1 { margin-bottom: 0; }
}

/* ---------- Selo de certificação DGERT ---------- */
.cert-seal { display: flex; align-items: center; gap: 24px; background: #fff; }
.cert-symbol { flex: none; display: grid; place-items: center; width: 132px; }
.cert-symbol .dgert-img { width: 100%; height: auto; }
.cert-text { display: flex; flex-direction: column; gap: 6px; }
.cert-brand { font-size: .95rem; font-weight: 700; letter-spacing: .16em; color: var(--navy); }
.cert-label { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.cert-text .link-arrow { margin-top: 6px; font-size: .88rem; }
.dgert-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; padding: 10px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.4; background: var(--ivory); }
.dgert-placeholder small { font-weight: 500; letter-spacing: .02em; text-transform: none; }
.hero-cert { position: absolute; z-index: 2; left: -56px; bottom: 40px; max-width: 440px; padding: 24px 28px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--red); }
@media (max-width: 960px) {
  .hero-cert { position: relative; left: auto; bottom: auto; margin: -48px 0 0 16px; max-width: none; padding: 20px; gap: 18px; }
  .hero-cert .cert-symbol { width: 96px; }
  .hero-cert .cert-label { font-size: 1.1rem; }
}

/* Faixa de certificação (páginas de formação) */
.cert-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 48px; padding: 36px 40px; background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.cert-strip .cert-symbol { width: 120px; background: #fff; padding: 8px; }
.cert-strip p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
@media (max-width: 800px) { .cert-strip { grid-template-columns: 1fr; padding: 28px; } }

/* Secção institucional DGERT (Sobre nós) */
.cert-feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.cert-feature .cert-symbol { width: 100%; padding: 28px; background: #fff; border: 1px solid var(--line); }
@media (max-width: 800px) { .cert-feature { grid-template-columns: 1fr; } .cert-feature .cert-symbol { width: 220px; } }

/* ---------- Marcas ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.brand-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 48px 40px; color: inherit; text-decoration: none; transition: background .25s; }
.brand-card + .brand-card { border-left: 1px solid var(--line-strong); }
.brand-card:hover { background: var(--ivory); color: inherit; }
.brand-card::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.brand-card:hover::after { transform: scaleX(1); }
.brand-logo { display: flex; align-items: center; height: 96px; }
.brand-logo img { max-height: 56px; width: auto; }
.brand-logo-sq img { max-height: 96px; }
.brand-desc { color: var(--muted); font-size: 1rem; flex: 1; }
@media (max-width: 800px) { .brand-grid { grid-template-columns: 1fr; } .brand-card + .brand-card { border-left: 0; border-top: 1px solid var(--line-strong); } .brand-card { padding: 36px 0; } }
.brand-hero-logo { display: flex; align-items: center; height: 120px; margin-bottom: 32px; }
.brand-hero-logo img { max-height: 72px; width: auto; }
.brand-hero-logo.brand-logo-sq img { max-height: 120px; }
.brand-inline { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.brand-inline img { height: 64px; width: auto; }
.brand-inline.brand-logo-sq img { height: 88px; }

/* Rodapé: selo DGERT discreto */
.footer-cert { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.footer-cert .cert-symbol { width: 84px; background: #fff; padding: 6px; }
.footer-cert span { font-size: .82rem; line-height: 1.45; color: var(--text); max-width: 180px; }
.cert-strip h2.cert-label { margin: 4px 0 0; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.cert-section { padding-bottom: 0; }
.hero-band + .cert-section { padding-top: clamp(40px, 5vw, 64px); }
.section-head .brand-inline { display: flex; margin-bottom: 28px; }
a.brand-inline { transition: opacity .2s; }
a.brand-inline:hover { opacity: .8; }

@media (min-width: 961px) {
  .hero-cert { max-width: 500px; padding: 28px 32px; gap: 28px; }
  .hero-cert .cert-symbol { width: 156px; }
  .hero-cert .cert-label { font-size: 1.5rem; }
}
@media (max-width: 960px) {
  .hero-cert { width: calc(100% - 16px); }
  .cert-text { min-width: 0; }
}
@media (max-width: 480px) {
  .hero-cert .cert-symbol { width: 84px; }
  .hero-cert .cert-label { font-size: 1.05rem; }
  .eyebrow { flex-wrap: wrap; }
}
.footer-cert .cert-symbol { width: 96px; }
.footer-cert .dgert-placeholder { font-size: .58rem; letter-spacing: .06em; }
/* O SVG original da SafeFood tem uma margem interna grande: compensar só na apresentação */
img[src$="/safefood.svg"] { transform: scale(1.7); transform-origin: left center; }
.footer-cert:hover span { color: var(--red); }

/* ---------- Notícias e oportunidades ---------- */
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; border: 1px solid transparent; }
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado-aberto { color: #136c41; background: #eaf6ef; border-color: #bfe3cf; }
.estado-previsto { color: #1f4f8a; background: #edf3fb; border-color: #c9dbf1; }
.estado-em_verificacao { color: #8a5a00; background: #fff6e3; border-color: #f1dca7; }
.estado-suspenso { color: #8a1f1f; background: #fbeeee; border-color: #efcaca; }
.estado-encerrado { color: #5b6170; background: var(--warm); border-color: var(--line-strong); }
.estado-nao_aplicavel { color: var(--muted); background: #fff; border-color: var(--line); }
.estado-editorial { display: inline-block; padding: 3px 10px; font-size: .72rem; font-weight: 700; color: #fff; background: #b45309; border-radius: 2px; }
.news-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.news-card.is-open { border-top: 2px solid #1f8a55; }
.news-card.is-open .news-card-link { padding-top: 26px; }
.news-card.is-closed h3, .news-card.is-closed p { color: var(--muted); }
.news-deadline { display: block; margin: -4px 0 12px; font-size: .86rem; font-weight: 600; color: #136c41; }
.news-source { display: block; font-size: .8rem; color: var(--text); margin-bottom: 2px; }
.news-meta { align-items: flex-end; gap: 12px; }
.news-toolbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr .9fr; gap: 16px; align-items: end; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
@media (max-width: 960px) { .news-toolbar { grid-template-columns: 1fr 1fr; } .news-search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .news-toolbar { grid-template-columns: 1fr; } }
.news-summary { margin: 18px 0 32px; font-size: .92rem; color: var(--muted); }
.news-summary strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #136c41; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.news-list { row-gap: 8px; }
.news-legend { margin-top: 56px; padding: 28px 32px; background: var(--ivory); border: 1px solid var(--line); font-size: .9rem; }
.news-legend p { margin: 0 0 8px; line-height: 2.1; }
.news-legend .estado { margin: 0 4px; }
.news-empty { padding: 64px 32px; text-align: center; background: var(--ivory); border: 1px solid var(--line); }
.news-empty h2 { font-size: 2rem; }
.news-empty-inline { grid-column: 1 / -1; padding: 32px; background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* Página da notícia */
.page-hero-article .eyebrow { flex-wrap: wrap; gap: 10px 16px; }
.article-lead { font-family: var(--serif); color: var(--text); margin-top: 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 88px); align-items: start; padding-top: 24px; }
.article-layout .article-body { padding-top: 0; max-width: 720px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .ficha { order: -1; } }
.ficha { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: var(--ivory); border: 1px solid var(--line); border-top: 3px solid var(--red); font-size: .92rem; }
.ficha-title { font-size: 1.35rem; margin-bottom: 16px; }
.ficha dl { margin: 0; }
.ficha dt { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.ficha dd { margin: 4px 0 0; color: var(--ink); line-height: 1.5; }
.ficha-fontes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.ficha-fontes h3 { font-size: .95rem; margin-bottom: 8px; }
.ficha-fontes ul { padding-left: 1.1em; margin: 0; }
.ficha-fontes li { margin-bottom: 8px; line-height: 1.45; }
.fonte-oficial { display: inline-block; padding: 0 6px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #136c41; border: 1px solid #bfe3cf; background: #eaf6ef; }
@media (max-width: 960px) { .ficha { position: static; } }
.aviso { margin: 8px 0 16px; padding: 16px 20px; border-left: 3px solid; font-size: .95rem; }
.aviso-previa { background: #fff4e5; border-color: #b45309; color: #6b3500; }
.aviso-encerrado { background: var(--warm); border-color: var(--line-strong); color: var(--text); }
.aviso-previsto { background: #edf3fb; border-color: #3b6fb0; color: #1f3f6b; }
.aviso-verificacao { background: #fff6e3; border-color: #d39c1c; color: #6b4600; }
.article-cta .btn-row { gap: 10px; }
.article-disclaimer { margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* ---------- Cabeçalho vermelho institucional (v3.1) ---------- */
.site-header { background: var(--red); border-bottom: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(80, 4, 4, .25); }
.brand-header { color: #fff; }
.brand-header .logo { width: 50px; height: 50px; }
.brand-header .brand-text { border-left-color: rgba(255, 255, 255, .35); }
.brand-header .brand-text strong { color: #fff; }
.brand-header .brand-text small { color: rgba(255, 255, 255, .82); }
.site-header .nav-list > li > a { color: #fff; }
.site-header .nav-list > li > a:hover { color: #fff; }
.site-header .nav-list > li > a::after { background: #fff; }
.site-header .nav-list > li.is-active > a { color: #fff; }
.site-header .has-sub > a::before { opacity: .8; }
.site-header .sub-menu { border-top-color: var(--navy); }
.site-header .nav-cta { background: #fff; color: var(--red); border-color: #fff; }
.site-header .nav-cta:hover { background: var(--ivory); color: var(--red-700); }
.site-header :focus-visible { outline-color: #fff; }
.nav-toggle { color: #fff; }
@media (max-width: 1200px) {
  /* menu móvel: painel branco por baixo do cabeçalho vermelho */
  .site-header .nav-list > li > a { color: var(--ink); }
  .site-header .nav-list > li.is-active > a { color: var(--red); }
  .site-header .sub-toggle { color: var(--ink); }
  .site-header .nav-cta { background: var(--red); color: #fff; border-color: var(--red); }
  .site-header .nav-cta:hover { background: var(--red-700); color: #fff; }
  .site-header .main-nav :focus-visible { outline-color: var(--red); }
}

/* Símbolo oficial DGERT (ficheiros de 2000 px): proporções originais, nunca recortado nem deformado */
.dgert-img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.cert-symbol:has(.dgert-img) { background: #fff; }
.hero-cert .cert-symbol:has(.dgert-compacto) { width: 230px; padding: 0; }
.hero-cert:has(.dgert-img) { gap: 24px; }
.cert-strip .cert-symbol:has(.dgert-horizontal) { width: 300px; padding: 14px 18px; }
.cert-feature .cert-symbol:has(.dgert-vertical) { width: 100%; max-width: 300px; padding: 32px; }
.footer-cert .cert-symbol:has(.dgert-horizontal) { width: 240px; padding: 10px 14px; }
.footer-cert span:last-child { max-width: 160px; }
@media (min-width: 961px) { .hero-cert:has(.dgert-img) { max-width: 560px; padding: 24px 28px; } }
@media (max-width: 960px) { .hero-cert .cert-symbol:has(.dgert-compacto) { width: 190px; } }
@media (max-width: 480px) { .hero-cert { flex-direction: column; align-items: flex-start; } .hero-cert .cert-symbol:has(.dgert-compacto) { width: 220px; } .cert-strip .cert-symbol:has(.dgert-horizontal) { width: 100%; max-width: 300px; } }
/* Símbolo SafeFood (152 px): nunca acima do tamanho original */
img[src$="/safefood-simbolo.png"] { max-height: 88px; width: auto; }
.brand-pair { gap: 20px; }
.brand-pair img[src$="/safefood.svg"] { height: 120px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.aviso-teste { padding: 8px 16px; background: #fff3c4; color: #3b2f00; font-size: .85rem; text-align: center; border-bottom: 1px solid #e5c760; }

/* ---------- Loja de cursos ---------- */
.btn-block { width: 100%; }
.shop-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.shop-steps li { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 20px 0; border-right: 1px solid var(--line); }
.shop-steps li + li { padding-left: 24px; }
.shop-steps li:last-child { border-right: 0; }
.shop-steps strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.shop-steps span { color: var(--muted); font-size: .95rem; }
.shop-note { margin: 0; padding: 16px 20px; background: var(--bg-soft); border-left: 3px solid var(--red); font-size: .95rem; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.shop-items { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.shop-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.shop-item-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-item-name { color: var(--ink); }
.shop-item-meta { font-size: .85rem; color: var(--muted); }
.shop-item-meta .mono { font-family: var(--mono); font-size: .8rem; }
.shop-price { font-weight: 600; color: var(--navy); white-space: nowrap; text-align: right; }
.shop-price.is-consulta { font-weight: 400; font-size: .85rem; color: var(--muted); }
.shop-add { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--navy); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; color: var(--navy); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.shop-add input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.shop-add:hover { background: var(--navy); color: #fff; }
.shop-add:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.shop-add-off { display: none; }
.shop-add:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.shop-add:has(input:checked) .shop-add-on { display: none; }
.shop-add:has(input:checked) .shop-add-off { display: inline; }
.shop-item:has(input:checked) { background: var(--red-50); }
.shop-cart { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); }
.shop-cart-count { color: var(--muted); font-family: var(--sans); font-size: .9rem; }
.shop-cart-empty { color: var(--muted); font-size: .95rem; }
.shop-cart-list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 46vh; overflow-y: auto; }
.shop-cart-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.shop-cart-list .cart-nome { grid-column: 1 / -1; color: var(--ink); }
.shop-cart-list .cart-qtd { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.shop-cart-list .cart-qtd input { width: 72px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--ink); }
.shop-cart-list .cart-remover { justify-self: end; align-self: center; background: none; border: 0; padding: 8px 0; color: var(--red); font: 600 .85rem var(--sans); cursor: pointer; text-decoration: underline; }
.shop-cart-total { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 16px; }
.shop-cart-total dt { color: var(--muted); font-size: .9rem; }
.shop-cart-total dd { margin: 0; text-align: right; font-weight: 600; color: var(--navy); }
.shop-cart-nota { font-size: .85rem; color: var(--muted); }
.shop-resumo { margin-bottom: 28px; padding: 16px 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.shop-resumo ul { margin: 0; padding-left: 18px; }
.shop-resumo li { margin: 4px 0; }
.shop-resumo.has-error { border-color: var(--red); }
.shop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 20px rgba(11, 27, 51, .08); }
@media (min-width: 961px) { .shop-bar { display: none; } }
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-cart { position: static; }
  .shop-cart-list { max-height: none; }
  .shop-checkout { padding-bottom: 120px; }
}
@media (max-width: 640px) {
  .shop-steps { grid-template-columns: 1fr; }
  .shop-steps li, .shop-steps li + li { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .shop-item { grid-template-columns: minmax(0, 1fr) auto; }
  .shop-price { grid-column: 1; grid-row: 2; text-align: left; }
  .shop-add { grid-column: 2; grid-row: 1 / span 2; min-width: 112px; }
}
/* Menu com 8 entradas (inclui Loja): sem quebras de linha nos ecrãs intermédios */
.nav-list > li > a, .header-cta, .main-nav .btn { white-space: nowrap; }
@media (min-width: 1201px) and (max-width: 1440px) {
  .main-nav { gap: 16px; }
  .nav-list { gap: 0; }
  .nav-list > li > a { padding: 0 10px; font-size: .9rem; }
  .nav-list > li > a::after { left: 10px; right: 10px; }
}
.shop-cliente { margin-bottom: 24px; }
.pt-0 { padding-top: 0; }
/* Livro de Reclamações Eletrónico: acesso visível e destacado no rodapé (DL 156/2005, na redação do DL 74/2017) */
.footer-lre { display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-strong); border-left: 3px solid var(--red); border-radius: var(--radius-sm); color: var(--navy); text-decoration: none; transition: border-color .15s; }
.footer-lre:hover { border-color: var(--navy); border-left-color: var(--red); }
.footer-lre .icon { width: 22px; height: 22px; color: var(--red); flex: none; }
.footer-lre span { display: flex; flex-direction: column; line-height: 1.3; }
.footer-lre strong { font-size: .88rem; font-weight: 600; }
.footer-lre small { font-size: .78rem; color: var(--muted); }
/* Início (v3.2): fotografia da e-Academy e selo DGERT discreto */
.hero-media > img[src*="estudo-secretaria"] { object-position: 68% 60%; }
.hero-cert.hero-cert-sm { left: -32px; bottom: 32px; max-width: none; padding: 12px 14px; border-top: 2px solid var(--red); background: #fff; }
.hero-cert-sm a { display: block; }
.hero-cert.hero-cert-sm .cert-symbol, .hero-cert.hero-cert-sm .cert-symbol:has(.dgert-compacto) { display: block; width: 140px; padding: 0; }
@media (max-width: 960px) {
  .hero-cert.hero-cert-sm { position: relative; left: auto; bottom: auto; width: fit-content; margin: 36px 0 0; padding: 8px 10px; display: block; box-shadow: none; border: 1px solid var(--line); border-top: 2px solid var(--red); }
  .hero-cert.hero-cert-sm .cert-symbol, .hero-cert.hero-cert-sm .cert-symbol:has(.dgert-compacto) { width: 112px; }
  .hero-media:has(.hero-cert-sm)::before { bottom: auto; top: 48px; height: calc(100% - 140px); }
}
/* Redes sociais (só aparecem quando os endereços estão em src/site.json) */
.redes { display: flex; gap: 10px; list-style: none; margin: 20px 0 0; padding: 0; }
.redes a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--navy); transition: border-color .15s, color .15s; }
.redes a:hover { border-color: var(--red); color: var(--red); }
.redes .icon { width: 22px; height: 22px; }
