/* ===========================================================================
   Internacionalizar + Algarve
   ---------------------------------------------------------------------------
   A identidade vem do logótipo do projeto: uma barra azul com o nome, de onde
   pendem azulejos desenhados em linha — um por setor (TIC, natureza, mar,
   agroalimentar, náutica). O site usa essa gramática: azulejos de canto vivo,
   contorno em vez de sombra, uma cor por rede setorial.

   Cores     mar #0098DA · marinho #0B3A5B · ciano #33C1EC · folha #2FA84F
             sol #FFCB05 · coral #F07F5F   (neutros com um toque de azul)
   Letra     Lexend (títulos, eco do logótipo largo) · Source Sans 3 (texto)
             IBM Plex Mono (datas, códigos ISO dos mercados)
   Tema      só claro, como no alvorcarhire.
   =========================================================================== */

:root {
    color-scheme: light;

    --sea:      #0098da;
    --sea-600:  #0083bd;
    --sea-700:  #006b9c;
    --sea-50:   #e8f5fc;
    --navy:     #0b3a5b;
    --navy-900: #072a43;
    --surf:     #33c1ec;
    --leaf:     #2fa84f;
    --mint:     #22a883;
    --sun:      #ffcb05;
    --coral:    #f07f5f;
    --ochre:    #c98a2e;

    --ink:      #0f2436;
    --ink-2:    #45596a;
    --ink-3:    #6b7f8f;
    --line:     #d5e3ec;
    --line-2:   #e7eff4;
    --paper:    #f3f8fb;
    --white:    #ffffff;

    --f-display: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
    --f-body:    "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius:    3px;
    --section:   clamp(3.5rem, 7vw, 6rem);
    --header-h:  84px;

    /* Bootstrap */
    --bs-body-font-family: var(--f-body);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.6;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--white);
    --bs-link-color: var(--sea-700);
    --bs-link-color-rgb: 0, 107, 156;
    --bs-link-hover-color: var(--navy);
    --bs-link-hover-color-rgb: 11, 58, 91;
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius);
    --bs-emphasis-color: var(--ink);
}

/* Uma cor por rede. Os componentes leem --tone. */
.tone-sea   { --tone: var(--sea); }
.tone-surf  { --tone: #13a9d9; }
.tone-leaf  { --tone: var(--leaf); }
.tone-mint  { --tone: var(--mint); }
.tone-sun   { --tone: #e8b400; }
.tone-coral { --tone: var(--coral); }
.tone-ochre { --tone: var(--ochre); }
.tone-rose  { --tone: #d0567c; }

/* ------------------------------------------------------------------ Base */
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--f-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .h1, .h2, .h3 {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--navy);
    text-wrap: balance;
}
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
::selection { background: var(--sun); color: var(--navy); }

.icon     { width: 1.5rem; height: 1.5rem; flex: none; }
.icon-sm  { width: 1.05rem; height: 1.05rem; vertical-align: -.18em; }
.icon-xs  { width: .8rem; height: .8rem; vertical-align: -.08em; }
.mono     { font-family: var(--f-mono); font-size: .9em; }
.muted    { color: var(--ink-3); font-weight: 400; }

.skip-link {
    position: absolute; z-index: 2000; top: .5rem; left: .5rem;
    background: var(--navy); color: #fff; padding: .6rem 1rem;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--f-display); font-size: .78rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--sea-700);
    margin-bottom: .75rem;
}
.eyebrow::before {
    content: ""; width: .6rem; height: .6rem;
    border: 2px solid currentColor; flex: none;
}
.eyebrow-light { color: var(--surf); }

/* --------------------------------------------------------------- Botões */
.btn {
    --bs-btn-font-family: var(--f-display);
    --bs-btn-font-weight: 600;
    --bs-btn-font-size: .95rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-border-radius: var(--radius);
    --bs-btn-border-width: 2px;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    letter-spacing: .01em;
}
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1rem; }
.btn-sm { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .4rem; --bs-btn-font-size: .85rem; }

.btn-sea {
    --bs-btn-color: #fff; --bs-btn-bg: var(--sea-700); --bs-btn-border-color: var(--sea-700);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--navy-900); --bs-btn-active-border-color: var(--navy-900);
}
.btn-sun {
    --bs-btn-color: var(--navy); --bs-btn-bg: var(--sun); --bs-btn-border-color: var(--sun);
    --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #ffd83d; --bs-btn-hover-border-color: #ffd83d;
    --bs-btn-active-color: var(--navy); --bs-btn-active-bg: #f0bd00; --bs-btn-active-border-color: #f0bd00;
}
.btn-ink {
    --bs-btn-color: #fff; --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--navy-900); --bs-btn-hover-border-color: var(--navy-900);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #041c2e; --bs-btn-active-border-color: #041c2e;
}
.btn-outline-sea {
    --bs-btn-color: var(--sea-700); --bs-btn-border-color: var(--sea-700); --bs-btn-bg: transparent;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--sea-700); --bs-btn-hover-border-color: var(--sea-700);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy);
}
.btn-outline-ink {
    --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-bg: transparent;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy);
}
.btn-outline-light {
    --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.7);
    --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--f-display); font-weight: 600; font-size: .95rem;
    color: var(--sea-700); text-decoration: none; white-space: nowrap;
}
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-light { color: #fff; }
.link-light:hover { color: var(--sun); }

.chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: var(--f-display); font-size: .72rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; line-height: 1;
    color: var(--tone, var(--sea)); border: 1.5px solid currentColor;
    padding: .3rem .5rem; text-decoration: none; white-space: nowrap;
}
a.chip:hover { background: var(--tone); color: #fff; border-color: var(--tone); }

/* --------------------------------------------------- Faixa de promotores */
.funding-strip { background: var(--white); border-bottom: 1px solid var(--line-2); }
.funding-strip .container {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .5rem 2rem; padding-block: .45rem;
}
.funding-group { display: flex; align-items: center; gap: .9rem; }
.funding-group img { height: 26px; width: auto; }
.funding-label {
    font-family: var(--f-display); font-size: .66rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
}
@media (max-width: 767.98px) { .funding-strip { display: none; } }

/* ------------------------------------------------------------ Cabeçalho */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .navbar { padding-block: .7rem; min-height: var(--header-h); }

.brand { display: inline-flex; line-height: 0; }
.brand img { width: 180px; height: auto; }
@media (max-width: 400px) { .brand img { width: 150px; } }

.navbar-toggler { border: 0; padding: .6rem; box-shadow: none !important; }
.toggler-lines, .toggler-lines::before, .toggler-lines::after {
    display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: transform .2s ease;
}
.toggler-lines::before, .toggler-lines::after { content: ""; position: absolute; left: 0; }
.toggler-lines::before { top: -7px; }
.toggler-lines::after  { top: 7px; }
.navbar-toggler[aria-expanded="true"] .toggler-lines { background: transparent; }
.navbar-toggler[aria-expanded="true"] .toggler-lines::before { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-lines::after  { transform: translateY(-7px) rotate(-45deg); }

.site-header .nav-link {
    font-family: var(--f-display); font-weight: 500; font-size: .78rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
    padding: .5rem .55rem !important; position: relative; white-space: nowrap;
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-header .nav-link { font-size: .74rem; letter-spacing: .02em; padding-inline: .42rem !important; }
    .site-header .nav-link .icon-xs { display: none; }
}
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: var(--sea-700); }
.site-header .nav-link.active { color: var(--sea-700); }
.site-header .nav-link.active::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -.1rem; height: 3px; background: var(--sea);
}
.site-header .dropdown-toggle::after { border-top-width: .28em; vertical-align: .15em; margin-left: .3em; }
.site-header .dropdown-menu {
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-border-color: var(--line);
    --bs-dropdown-link-active-bg: var(--sea-700);
    --bs-dropdown-link-hover-bg: var(--sea-50);
    --bs-dropdown-font-size: .95rem;
    border-top: 3px solid var(--sea); padding-block: .4rem; margin-top: .6rem !important;
    box-shadow: 0 12px 30px -12px rgba(11,58,91,.25);
}
.dropdown-item .iso { display: inline-block; width: 1.8rem; font-family: var(--f-mono); font-size: .8rem; color: var(--sea-700); }
.nav-cta { margin-left: .5rem; }
.nav-cta .btn { --bs-btn-padding-y: .5rem; --bs-btn-font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 1199.98px) {
    .site-header .navbar-collapse { border-top: 1px solid var(--line); margin-top: .7rem; padding-block: .5rem 1rem; }
    .site-header .nav-link { font-size: .95rem; padding: .7rem .25rem !important; border-bottom: 1px solid var(--line-2); }
    .site-header .nav-link.active::after { display: none; }
    .site-header .dropdown-menu { border: 0; box-shadow: none; margin: 0 !important; padding-left: 1rem; }
    .nav-cta { margin: 1rem 0 0; }
    .nav-cta .btn { width: 100%; }
}

/* ---------------------------------------------------------------- Hero */
/* O banner oficial do projeto ocupa a largura toda; por baixo, o título e as ações. */
.hero { background: var(--white); }
.hero-banner { display: block; background: #fff; }
.hero-banner img { display: block; width: 100%; height: auto; }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: end;
    padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 3.75rem);
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.03em;
    margin-bottom: 1rem; max-width: 18ch;
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 58ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; justify-content: flex-start; }
.hero-video {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none;
}
.hero-video-icon {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
    border: 2px solid var(--navy); border-radius: 50%; transition: background .2s, color .2s;
}
.hero-video-icon .icon { width: 1rem; height: 1rem; margin-left: 2px; }
.hero-video:hover .hero-video-icon { background: var(--navy); color: #fff; }
@media (max-width: 991.98px) { .hero-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- Números */
.ledger { background: var(--white); border-bottom: 1px solid var(--line); }
.ledger-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0; padding-block: 1.75rem;
}
.ledger-grid > div {
    display: flex; flex-direction: column-reverse; gap: .2rem;
    padding-inline: 1.25rem; border-left: 1px solid var(--line);
}
.ledger-grid > div:first-child { border-left: 0; padding-left: 0; }
.ledger-grid dd {
    margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1; color: var(--sea-700); font-variant-numeric: tabular-nums;
}
.ledger-grid dt { font-weight: 400; font-size: .92rem; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 767.98px) {
    .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
    .ledger-grid > div { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------------- Secções */
.section { padding-block: var(--section); }
.section-tint { background: var(--paper); }
.section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2rem; margin-bottom: 2.25rem;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; margin-bottom: .75rem; }
.section-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; margin-bottom: 0; }
.block-title {
    font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
    color: var(--ink-2); padding-bottom: .75rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------ Barómetro */
.barometer-card {
    position: relative; border: 3px solid var(--sea); background: #fff;
    display: grid; place-items: center; padding: clamp(2rem, 5vw, 3.5rem);
}
.barometer-card img { width: min(100%, 320px); }
.barometer-dial {
    position: absolute; right: -3px; bottom: -3px;
    display: flex; align-items: center; gap: .4rem;
    background: var(--sun); color: var(--navy);
    font-family: var(--f-mono); font-size: .8rem; padding: .45rem .7rem;
}
.barometer-dial .icon { width: 1.1rem; height: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .icon { width: 1.25rem; height: 1.25rem; color: var(--leaf); margin-top: .2rem; }

/* --------------------------------------------------------- Mercados (home) */
.markets-band {
    background: var(--navy) url("../img/brand/globo.jpg") center / cover no-repeat;
    background-blend-mode: multiply; color: rgba(255,255,255,.85); position: relative;
}
.markets-band .section-title { color: #fff; }
.markets-band .section-lead { color: rgba(255,255,255,.78); }
.market-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.market-tile {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.25rem 1.3rem;
    background: rgba(7,42,67,.72); color: #fff; text-decoration: none; transition: background .2s;
}
.market-tile:hover, .market-tile:focus-visible { background: var(--sea-700); color: #fff; }
.market-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.flag { box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; width: 40px; height: 24px; }
.markets-earlier .flag, .side-markets .flag { width: 20px; height: 12px; }
.iso { font-family: var(--f-mono); font-weight: 500; letter-spacing: .06em; }
.market-tile .iso { font-size: 1.6rem; color: var(--surf); line-height: 1; }
.market-tile:hover .iso { color: var(--sun); }
.market-name { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.market-count { font-size: .9rem; color: rgba(255,255,255,.7); }
.markets-earlier { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin: 1.5rem 0 0; font-size: .95rem; }
.markets-earlier a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.markets-earlier a:hover { color: var(--sun); }
@media (max-width: 991.98px) { .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- Redes */
.network-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.network-tile {
    display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--ink);
    border: 1.5px solid var(--line); padding: 1.1rem 1rem 1.2rem; background: #fff;
    transition: border-color .2s, transform .2s;
}
.network-tile:hover { border-color: var(--tone); color: var(--ink); transform: translateY(-2px); }
.network-icon { display: block; width: 3.5rem; height: 3.5rem; margin-bottom: .75rem; flex: none; }
/* Setores sem azulejo oficial: o mesmo formato — quadrado branco com contorno azul. */
.is-drawn {
    display: grid; place-items: center; background: #fff; color: var(--tone, var(--sea));
    border: 3px solid var(--sea);
}
.is-drawn .icon { width: 62%; height: 62%; stroke-width: 1.5; }
.network-name { font-family: var(--f-display); font-weight: 600; color: var(--navy); line-height: 1.2; }
.network-count { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 1199.98px) { .network-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.network-list { display: grid; gap: 1rem; }
.network-row {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem;
    border: 1.5px solid var(--line); padding: 1.1rem 1.25rem;
}
.network-row .network-icon { margin: 0; }
.network-row h2 { font-size: 1.2rem; margin: 0; }
.network-row p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.network-row-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; justify-content: flex-end; }
@media (max-width: 767.98px) {
    .network-row { grid-template-columns: auto 1fr; }
    .network-row-links { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ----------------------------------------------------------- Atividades */
.act-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
@media (max-width: 991.98px) { .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .act-grid { grid-template-columns: 1fr; } }
.act-card { min-width: 0; }
.act-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.act-card-media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tone, var(--sea));
    border: 1px solid var(--line-2);
}
.act-card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.act-card-link:hover .act-card-media > img { transform: scale(1.03); }
.act-card-tile {
    position: absolute; inset: 0; display: grid; place-items: center;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'%3E%3Cpath d='M0 15c15-9 30-9 45 0s30 9 45 0 22-7 30-3' fill='none' stroke='%23fff' stroke-width='3' stroke-opacity='.18'/%3E%3C/svg%3E");
    background-size: 160px 40px;
}
.act-card-icon { width: 34%; max-width: 110px; height: auto; aspect-ratio: 1; background: #fff; object-fit: contain; }
/* Ações transversais: o logótipo do projeto sobre branco. */
.act-card-media.is-project { background: #fff; }
.act-card-tile.is-project { background-image: none; padding: 12%; }
.act-card-tile.is-project img { width: 100%; height: auto; }
.act-card-body { padding-top: 1rem; }
.act-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .55rem; }
.act-card-meta time { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); }
.act-card-title {
    font-size: 1rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.act-card-link:hover .act-card-title { color: var(--sea-700); }

/* Filtros */
.filters { display: grid; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.filter-row { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: start; }
.filter-label { font-family: var(--f-display); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); padding-top: .45rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fchip {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1.5px solid var(--line); color: var(--navy); background: #fff;
    font-family: var(--f-display); font-size: .85rem; font-weight: 500;
    padding: .35rem .7rem; text-decoration: none; transition: border-color .15s, background .15s;
}
.fchip:hover { border-color: var(--tone, var(--sea)); color: var(--navy); }
.fchip.active { background: var(--tone, var(--navy)); border-color: var(--tone, var(--navy)); color: #fff; }
.fchip-n { font-family: var(--f-mono); font-size: .75rem; opacity: .7; }
.result-count { color: var(--ink-3); font-size: .95rem; margin-bottom: 1.75rem; }
@media (max-width: 575.98px) { .filter-row { grid-template-columns: 1fr; gap: .5rem; } }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; }
.pager-pages { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.pager-pages a, .pager-step {
    display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: .6rem;
    border: 1.5px solid var(--line); color: var(--navy); text-decoration: none; font-family: var(--f-display); font-weight: 500;
}
.pager-step { display: inline-flex; gap: .4rem; }
.pager-pages a:hover, .pager-step:hover { border-color: var(--sea); color: var(--sea-700); }
.pager-pages a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Artigo */
.article-head { background: var(--paper); padding-block: 2rem clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.article-head .breadcrumb { margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; max-width: 30ch; margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.article-meta time { font-family: var(--f-mono); font-size: .88rem; color: var(--ink-2); }
.article-layout { padding-block: clamp(2rem, 5vw, 3.5rem); }
.article-cover { margin: 0 0 2rem; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    border-top: 1px solid var(--line); padding-block: 2rem var(--section);
}
.article-nav-link { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--navy); max-width: 40ch; }
.article-nav-link.is-next { margin-left: auto; text-align: right; align-items: flex-end; }
.article-nav-dir { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-display); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--sea-700); }
.article-nav-title { font-family: var(--f-display); font-weight: 500; font-size: .95rem; line-height: 1.35; }
.article-nav-link:hover .article-nav-title { color: var(--sea-700); }
@media (max-width: 575.98px) { .article-nav { grid-template-columns: 1fr; } .article-nav-link.is-next { margin-left: 0; text-align: left; align-items: flex-start; } }

/* Texto corrido vindo da base de dados */
.prose { max-width: 72ch; font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 {
    font-size: 1.3rem; line-height: 1.25; margin: 2.5rem 0 1rem; padding-top: 1.25rem;
    border-top: 1px solid var(--line); text-transform: none;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 2rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--sea); }
.prose img { height: auto; }
.prose a[href$=".pdf"]::after {
    content: "PDF"; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em;
    border: 1px solid currentColor; padding: .05rem .25rem; margin-left: .4rem; vertical-align: .15em; text-decoration: none; display: inline-block;
}
.prose blockquote { border-left: 3px solid var(--sea); padding-left: 1rem; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .6rem; vertical-align: top; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }
.prose .gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); }
.prose .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prose .gallery a:hover img { transform: scale(1.05); }
.updated { color: var(--ink-3); font-size: .9rem; margin-top: 2.5rem; }

.video-embed {
    position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 0 0 1.5rem;
    background: var(--navy); display: grid; place-items: center; overflow: hidden;
}
.video-embed > a { color: #fff; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    background: none; border: 0; color: #fff; font-family: var(--f-display); font-weight: 500; padding: 1rem; text-align: center;
}
.video-play-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; background: var(--sun); color: var(--navy); border-radius: 50%; transition: transform .2s; }
.video-play-icon .icon { width: 1.75rem; height: 1.75rem; margin-left: 4px; }
.video-play:hover .video-play-icon { transform: scale(1.06); }
.video-play small { color: rgba(255,255,255,.7); font-family: var(--f-body); font-weight: 400; max-width: 40ch; }

/* ------------------------------------------------------------ Recursos */
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.resource {
    display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem 1.25rem;
    border: 1.5px solid var(--line); text-decoration: none; color: var(--ink-2); background: #fff;
    transition: border-color .2s;
}
.resource strong { font-family: var(--f-display); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.resource span { font-size: .95rem; line-height: 1.45; }
.resource-icon { width: 2rem; height: 2rem; color: var(--sea); margin-bottom: .75rem; }
.resource:hover { border-color: var(--sea); color: var(--ink-2); }
@media (max-width: 991.98px) { .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .resource-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ CTA */
.cta-band { background: var(--sun); color: var(--navy); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.cta-inner p { margin: 0; max-width: 56ch; color: var(--navy); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-phone a { color: var(--navy); font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.cta-phone .call-rate { color: var(--navy); opacity: .75; display: block; }

/* --------------------------------------------------------- Página interior */
.page-head { position: relative; background: var(--sea); color: #fff; padding-block: 2rem 4.5rem; }
.page-head .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 1.75rem; }
.page-head .breadcrumb a { color: #fff; }
.page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin-bottom: .75rem; max-width: 24ch; }
.page-head .lead { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 62ch; margin: 0; }
.page-head .eyebrow { color: var(--sun); }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.page-head-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--white); }
.breadcrumb { --bs-breadcrumb-divider: "›"; }
.article-head .breadcrumb a, .breadcrumb a { text-decoration: none; }

.market-badge {
    display: grid; grid-template-columns: auto auto; align-items: center; gap: .35rem 1rem;
    background: #fff; color: var(--navy); padding: 1rem 1.25rem; border-bottom: 4px solid var(--navy);
}
.market-badge .iso { font-size: 2.2rem; line-height: 1; color: var(--sea-700); }
.market-badge .flag { width: 40px; height: 24px; }
.market-badge-count { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); }

/* Mercados (índice) */
.market-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.market-card {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.25rem;
    border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s;
}
.market-card .iso { font-size: 1.5rem; color: var(--sea-700); }
.market-card .market-name { color: var(--navy); font-size: 1.2rem; }
.market-sectors { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.market-card .market-count { margin-top: auto; padding-top: .75rem; color: var(--sea-700); font-family: var(--f-display); font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: .35rem; }
.market-card:hover { border-color: var(--sea); color: var(--ink); }
.market-cards.is-compact .market-card { padding-block: 1.1rem; }

/* Documentos */
.doc-group + .doc-group { margin-top: 2.75rem; }
.doc-group-title {
    display: flex; align-items: baseline; gap: .6rem; font-size: 1.2rem;
    padding-bottom: .75rem; margin-bottom: 0; border-bottom: 2px solid var(--navy);
}
.doc-group-count { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-row { border-bottom: 1px solid var(--line); }
.doc-link {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .5rem 1rem;
    padding: .95rem .25rem; text-decoration: none; color: var(--ink); transition: background .15s;
}
.doc-link:hover { background: var(--sea-50); color: var(--ink); }
.doc-icon { color: var(--sea); display: flex; }
.doc-icon .icon { width: 1.35rem; height: 1.35rem; }
.doc-title { font-weight: 600; line-height: 1.35; }
.doc-meta { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); white-space: nowrap; }
.doc-action { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1.5px solid var(--line); color: var(--sea-700); transition: all .15s; }
.doc-action .icon { width: 1.05rem; height: 1.05rem; }
.doc-link:hover .doc-action { background: var(--sea-700); border-color: var(--sea-700); color: #fff; }
@media (max-width: 575.98px) {
    .doc-link { grid-template-columns: auto 1fr auto; }
    .doc-meta { grid-column: 2; grid-row: 2; }
    .doc-action { grid-column: 3; grid-row: 1 / span 2; }
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.video-card { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--navy); }
.video-card-frame {
    position: relative; aspect-ratio: 16 / 9; background: var(--navy); display: grid; place-items: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'%3E%3Cpath d='M0 15c15-9 30-9 45 0s30 9 45 0 22-7 30-3' fill='none' stroke='%2333c1ec' stroke-width='3' stroke-opacity='.25'/%3E%3C/svg%3E");
    background-size: 160px 40px;
}
.video-card-play { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--sun); color: var(--navy); transition: transform .2s; }
.video-card-play .icon { width: 1.3rem; height: 1.3rem; margin-left: 3px; }
.video-card:hover .video-card-play { transform: scale(1.08); }
.video-card-title { font-family: var(--f-display); font-weight: 500; font-size: .98rem; line-height: 1.35; }
.video-card:hover .video-card-title { color: var(--sea-700); }
.small-note { color: var(--ink-3); font-size: .88rem; margin-top: 1rem; }

/* Projetos */
.edition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.edition-card { display: flex; flex-direction: column; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.edition-card img { width: 100%; aspect-ratio: 36 / 25; object-fit: cover; }
.edition-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.25rem 1.4rem; flex: 1; }
.edition-title { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); margin-bottom: .75rem; }
.edition-body .link-arrow { margin-top: auto; }
.edition-card:hover { border-color: var(--sea); color: var(--ink); }
@media (max-width: 991.98px) { .edition-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* Coluna lateral */
.side-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.side-box { background: var(--paper); padding: 1.35rem 1.4rem; }
.side-box + .side-box { margin-top: 1rem; }
.side-sticky .side-box + .side-box { margin-top: 0; }
.side-box h2 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: .85rem; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.side-links a { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; color: var(--navy); text-decoration: none; line-height: 1.35; }
.side-links a:hover { color: var(--sea-700); }
.side-links .muted { margin-left: auto; font-size: .82rem; }
.steps { padding-left: 1.2rem; margin: 0; display: grid; gap: .6rem; }
.steps li::marker { font-family: var(--f-mono); color: var(--sea-700); }
.empty-note { color: var(--ink-2); padding: 2rem; background: var(--paper); }

/* Barómetro (página) */
.bialg-links { display: grid; gap: 1rem; }
.bialg-link {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
    border: 1.5px solid var(--line); padding: 1.25rem; text-decoration: none; color: var(--ink-2);
}
.bialg-link strong { display: block; font-family: var(--f-display); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.bialg-link > .icon { color: var(--sea-700); }
.bialg-icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--sea); color: #fff; }
.bialg-link:hover { border-color: var(--sea); color: var(--ink-2); }

/* ------------------------------------------------------------ Contactos */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1199.98px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1.5px solid var(--line); padding: 1.35rem; display: flex; flex-direction: column; gap: .6rem; font-size: .98rem; }
.contact-logo { height: 70px; display: flex; align-items: center; margin-bottom: .5rem; }
.contact-logo img { max-height: 70px; width: auto; }
.contact-card h2 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.contact-role { color: var(--ink-3); font-size: .9rem; margin: 0; }
.contact-line { display: flex; gap: .55rem; align-items: flex-start; margin: 0; }
.contact-line .icon { width: 1.05rem; height: 1.05rem; color: var(--sea); margin-top: .25rem; }
.contact-person { display: flex; flex-direction: column; gap: .25rem; border-top: 1px solid var(--line-2); padding-top: .6rem; }
.contact-web { margin-top: auto; padding-top: .5rem; font-family: var(--f-display); font-size: .9rem; font-weight: 500; text-decoration: none; }
.call-rate { font-size: .78em; color: var(--ink-3); }

/* ---------------------------------------------------------- Formulários */
.form-card { background: #fff; border: 1.5px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); }
.form-label { font-family: var(--f-display); font-weight: 500; font-size: .92rem; color: var(--navy); margin-bottom: .35rem; }
.optional { font-family: var(--f-body); font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.form-control, .form-select {
    border: 1.5px solid var(--line); border-radius: var(--radius); padding: .65rem .8rem; font-size: 1rem;
}
.form-control:focus, .form-select:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(0,152,218,.18); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent-check { font-size: .95rem; color: var(--ink-2); }
.form-check-input:checked { background-color: var(--sea-700); border-color: var(--sea-700); }
.form-done { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border: 1.5px solid var(--leaf); padding: 1.75rem; }
.form-done.is-muted { border-color: var(--line); }
.form-done h2, .form-done h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.form-done p:last-child { margin: 0; }
.form-done-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--leaf); color: #fff; flex: none; }

.network-picker { border: 0; padding: 0; margin: 0; }
.network-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 767.98px) { .network-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.network-option { position: relative; cursor: pointer; }
.network-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.network-option-box {
    display: flex; align-items: center; gap: .6rem; height: 100%;
    border: 1.5px solid var(--line); padding: .7rem .8rem; font-weight: 600; line-height: 1.25; transition: all .15s;
}
.network-option-icon { width: 2.25rem; height: 2.25rem; flex: none; background: #fff; }
.network-option input:checked + .network-option-box { background: var(--tone); border-color: var(--tone); color: #fff; }
.network-option input:checked + .network-option-box .network-option-icon { outline: 2px solid #fff; }
.network-option input:focus-visible + .network-option-box { outline: 3px solid var(--sun); outline-offset: 2px; }
.network-picker.is-invalid .network-option-box { border-color: var(--bs-form-invalid-border-color); }

/* ---------------------------------------------------------------- Legal */
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1.5rem; }
.legal-table th { font-family: var(--f-display); font-weight: 600; font-size: .85rem; text-align: left; color: var(--navy); border-bottom: 2px solid var(--navy); padding: .6rem; }
.legal-table td { border-bottom: 1px solid var(--line); padding: .6rem; vertical-align: top; }

/* -------------------------------------------------------------- Rodapé */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); font-size: .98rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-brand { display: inline-block; background: #fff; padding: .75rem .9rem; margin-bottom: 1.25rem; line-height: 0; }
.footer-brand img { width: 200px; height: auto; }
.site-footer h2 { color: #fff; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .icon { width: 1.1rem; height: 1.1rem; margin-top: .25rem; color: var(--surf); }
.footer-contact .call-rate { color: rgba(255,255,255,.6); display: block; }
.footer-contact.is-dark { margin-top: 1.5rem; display: grid; gap: .6rem; list-style: none; padding: 0; }
.footer-contact.is-dark .icon { color: var(--sea); }
.footer-contact.is-dark .call-rate { color: var(--ink-3); }
.footer-funding { background: #fff; color: var(--ink-2); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer-funding .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; }
.footer-funding p { margin: 0; font-size: .88rem; max-width: 70ch; }
.funding-logos { display: flex; align-items: center; gap: 1.25rem; }
.funding-logos img { height: 30px; width: auto; }
.footer-bottom { background: var(--navy-900); font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; }
.footer-bottom span:last-child { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-funding p a { color: var(--sea-700); white-space: nowrap; }
.legal-links { list-style: none; padding: 0; margin: -.25rem 0 1.25rem; display: grid; gap: .35rem; }
.legal-links a::before { content: "→ "; color: var(--sea); }
.legal-lang { background: var(--sea-50); padding: .75rem 1rem; font-size: .95rem; }
.legal h2[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.form-privacy { font-size: .82rem; line-height: 1.45; color: var(--ink-3); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.8); }

/* -------------------------------------------------------------- Cookies */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080;
    background: #fff; border-top: 3px solid var(--sea); box-shadow: 0 -12px 30px -18px rgba(11,58,91,.4);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.cookie-inner p { margin: 0; max-width: 72ch; font-size: .95rem; color: var(--ink-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { --bs-btn-padding-y: .55rem; --bs-btn-font-size: .9rem; }

/* ---------------------------------------------------------------- Vídeo */
#videoModal .modal-content { background: #000; border: 0; border-radius: 0; }
#videoModal .btn-close { position: absolute; top: -2.5rem; right: 0; opacity: 1; }
#videoModal iframe { border: 0; }

/* =============================================================== Catálogo */
/* O catálogo fala com compradores estrangeiros: as fichas são para ler de
   relance (logótipo, setor, contactos) e os produtos aparecem como amostras
   em fundo branco, porque as fotografias são quase todas de embalagens. */

.lang-switch { display: inline-flex; border: 1.5px solid rgba(255,255,255,.55); }
.lang-switch a {
    font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: #fff; text-decoration: none;
    padding: .3rem .55rem; line-height: 1.2;
}
.lang-switch a + a { border-left: 1.5px solid rgba(255,255,255,.35); }
.lang-switch a:hover { background: rgba(255,255,255,.15); color: #fff; }
.lang-switch a.active { background: #fff; color: var(--navy); }

.co-head-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.75rem; }
.co-head-top .breadcrumb { margin: 0; }
.co-head-top .eyebrow { margin: 0; }

/* Início do catálogo */
.cat-hero {
    background: var(--navy) url("../img/brand/globo.jpg") center / cover no-repeat; background-blend-mode: multiply;
    color: rgba(255,255,255,.85); padding-block: 2rem clamp(3rem, 6vw, 4.5rem);
}
.cat-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: .5rem; }
.cat-hero-sub { font-family: var(--f-display); font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--surf); margin-bottom: 1rem; }
.cat-hero-lead { max-width: 62ch; margin-bottom: 2rem; }
.cat-search { display: flex; gap: .5rem; max-width: 640px; }
.cat-search .form-control { border: 0; border-radius: var(--radius); font-size: 1.05rem; }
.cat-hero-count { font-family: var(--f-mono); font-size: .82rem; color: rgba(255,255,255,.7); margin: 1rem 0 0; }
@media (max-width: 575.98px) { .cat-search { flex-direction: column; } }

/* Sete setores: uma linha de sete no ecrã largo; em duas colunas, o último ocupa a linha toda. */
.cat-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cat-sectors > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 768px)  { .cat-sectors { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cat-sectors > :last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1200px) { .cat-sectors { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.cat-sector {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1rem 1.2rem; text-decoration: none; color: var(--ink);
    border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, transform .2s;
}
.cat-sector:hover { border-color: var(--tone); color: var(--ink); transform: translateY(-2px); }
.cat-sector-name { font-family: var(--f-display); font-weight: 600; color: var(--navy); line-height: 1.2; }
.cat-sector-count { font-size: .85rem; color: var(--ink-3); line-height: 1.35; }

/* Diretório de empresas */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 1rem; }
.co-card {
    display: grid; grid-template-columns: 68px 1fr; gap: .85rem; align-items: center; padding: .75rem;
    border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s;
}
.co-card:hover { border-color: var(--tone, var(--sea)); color: var(--ink); }
.co-logo { width: 68px; height: 68px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); overflow: hidden; }
.co-logo img { max-width: 88%; max-height: 88%; object-fit: contain; }
.co-initials {
    display: grid; place-items: center; width: 100%; height: 100%; background: var(--tone, var(--sea)); color: #fff;
    font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: .04em;
}
.co-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.co-name { font-family: var(--f-display); font-weight: 600; color: var(--navy); line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.co-sector { font-size: .82rem; color: var(--tone, var(--sea)); font-weight: 600; }
.co-count { font-size: .82rem; color: var(--ink-3); }

/* Setor */
.cat-head { background: var(--tone, var(--sea)); color: #fff; padding-block: 2rem clamp(2.25rem, 5vw, 3.25rem); }
.cat-head .breadcrumb a, .co-head .breadcrumb a { color: #fff; }
.cat-head .breadcrumb, .co-head .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.7); --bs-breadcrumb-item-active-color: rgba(255,255,255,.9); font-size: .9rem; }
.cat-head-main { display: flex; align-items: center; gap: 1.25rem; }
.cat-head-icon { display: block; width: 4.75rem; height: 4.75rem; flex: none; background: #fff; }
.cat-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; margin: 0 0 .35rem; }
.cat-head .eyebrow { color: #fff; opacity: .85; margin-bottom: .35rem; }
.cat-head-count { font-family: var(--f-mono); font-size: .85rem; margin: 0; color: rgba(255,255,255,.85); }
.cat-subs { margin-bottom: .5rem; }
.filter-row.cat-subs { grid-template-columns: 9.5rem 1fr; }
@media (max-width: 575.98px) { .filter-row.cat-subs { grid-template-columns: 1fr; } }

/* Ficha da empresa */
.co-head { background: var(--paper); border-bottom: 4px solid var(--tone, var(--sea)); padding-block: 1.75rem clamp(2rem, 4vw, 2.75rem); }
.co-head .breadcrumb a { color: var(--sea-700); }
.co-head .breadcrumb { --bs-breadcrumb-divider-color: var(--ink-3); --bs-breadcrumb-item-active-color: var(--ink-2); }
.co-head .lang-switch { border-color: var(--line); }
.co-head .lang-switch a { color: var(--navy); }
.co-head .lang-switch a + a { border-left-color: var(--line); }
.co-head .lang-switch a:hover { background: var(--sea-50); color: var(--navy); }
.co-head .lang-switch a.active { background: var(--navy); color: #fff; }
.co-head-main { display: grid; grid-template-columns: 180px 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.co-head-logo {
    width: 180px; aspect-ratio: 1; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; padding: 1rem;
}
.co-head-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.co-head-logo .co-initials { font-size: 2.5rem; }
.co-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; margin-bottom: .35rem; }
.co-legal { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-3); margin-bottom: .75rem; }
.co-tagline { font-size: 1.12rem; color: var(--ink-2); max-width: 64ch; margin: 0; }
.co-head-sectors { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.co-head-sectors .chip { --tone: var(--sea-700); }
@media (max-width: 575.98px) {
    .co-head-main { grid-template-columns: 1fr; }
    .co-head-logo { width: 130px; }
}

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 991.98px) { .co-layout { grid-template-columns: 1fr; } .co-aside { order: -1; } }
.co-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.co-contact { background: var(--paper); padding: 1.4rem; display: grid; gap: .7rem; font-size: .98rem; }
.co-contact h2 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 0 0 .25rem; }
.co-contact a { overflow-wrap: anywhere; }
.co-social { display: flex; flex-wrap: wrap; gap: .4rem; }
.co-social a { font-family: var(--f-display); font-size: .82rem; font-weight: 500; text-decoration: none; border: 1.5px solid var(--line); padding: .3rem .55rem; background: #fff; }
.co-social a:hover { border-color: var(--sea); }
.co-actions { display: grid; gap: .5rem; margin-top: .5rem; }

/* Produtos e serviços */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.pr-grid.is-listing { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pr-card { display: flex; flex-direction: column; border: 1.5px solid var(--line); background: #fff; scroll-margin-top: calc(var(--header-h) + 1rem); }
.pr-card:target { border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun); }
.pr-media { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line-2); overflow: hidden; }
.pr-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .3s; }
a.pr-media:hover img { transform: scale(1.04); }
.pr-placeholder { width: 30%; height: 30%; color: var(--line); }
.pr-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.pr-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.pr-tag { font-family: var(--f-display); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--sea-700); background: var(--sea-50); padding: .2rem .45rem; }
.pr-name { font-size: 1.02rem; line-height: 1.3; margin: 0; }
.pr-name a { color: var(--navy); text-decoration: none; }
.pr-name a:hover { color: var(--sea-700); }
.pr-company { font-size: .88rem; color: var(--ink-3); margin: 0; }
.pr-company a { color: var(--ink-2); }
.pr-details { font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.pr-details p { margin-bottom: .5rem; }
.pr-details p:last-child { margin-bottom: 0; }
.pr-details strong { display: block; font-family: var(--f-display); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: .5rem; }
.pr-details p > strong:first-child { margin-top: 0; }

.footer-cols { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.5rem !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
