/* ==========================================================================
   Cabeto TEC — folha de estilos principal
   Tipografia: Sora (títulos) + Inter (texto), servidas localmente.
   ========================================================================== */

/* --- Fontes (alojadas no próprio site: nenhum pedido a terceiros) -------- */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/sora-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

/* --- Variáveis --------------------------------------------------------- */
:root {
    --dark: #343434;
    --blue: #1470B8;
    --blue-bright: #1A90ED;
    --light: #EAF3FF;
    --red: #E30613;
    --pink: #FF0741;
    --grey: #D9D9D9;
    --input-bg: #F2F2F2;
    --input-border: #8CC7F6;
    --line: #ABAFB5;
    --muted: #7E7E7E;
    --text: #343434;
    --ok: #0F7B3F;
    --container: 1040px;
    --gutter: 24px;
    --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* --- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

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

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band { background: var(--light); }
.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; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.section-title { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 40px; color: var(--blue); letter-spacing: -0.3px; }
@media (min-width: 768px) { .section-title { letter-spacing: normal; } }
.sub-title { font-family: var(--font-body); font-weight: 700; font-size: 24px; line-height: 30px; color: var(--blue); }

/* --- Botões ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 24px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 400; text-decoration: none; text-transform: uppercase; transition: background-color .2s, transform .1s; }
@media (min-width: 768px) { .btn { min-height: 49px; } }
.btn:hover { background: #105f9c; }
.btn:active { transform: translateY(1px); }
.btn--plain { text-transform: none; padding: 0 28px; }
.btn--bright { background: var(--blue-bright); font-weight: 700; border-radius: 16px; }
.btn--bright:hover { background: #127fd6; }
.btn--outline { min-height: 40px; padding: 0 32px; border: 1px solid var(--blue); border-radius: 20px; background: var(--light); color: var(--blue); text-transform: none; }
@media (min-width: 768px) { .btn--outline { min-height: 41px; } }
.btn--outline:hover { background: #d9e9ff; }
.btn--danger { background: var(--red); }
.btn--danger:hover { background: #c20510; }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 14px; border-radius: 18px; }

.read-more { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-bright); text-decoration: none; text-transform: uppercase; font-size: 16px; }
.read-more::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-top: 1px; }
.read-more:hover { text-decoration: underline; }

/* --- Cabeçalho / navegação --------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 0 var(--gutter); }
.nav { position: relative; max-width: var(--container); height: 68px; margin: 0 auto; margin-top: 15px; padding: 0 96px 0 90px; display: flex; align-items: center; justify-content: space-between; background: var(--dark); border-radius: 34px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { width: 116px; height: 24px; }
.nav__menu { display: flex; gap: 45px; margin: 0; padding: 0; list-style: none; }
.nav__menu a { display: block; padding: 8px 0; color: #EDEDED; font-size: 14px; text-decoration: none; transition: color .2s; }
.nav__menu a:hover { color: #fff; }
.nav__menu a.is-active { color: var(--red); font-weight: 600; }
@media (min-width: 768px) {
    .nav { padding: 0 41px 0 35px; }
    .nav__menu { gap: 48.5px; }
    /* A largura de cada item é a do texto normal: o item activo (a negrito) cresce para a direita sem empurrar os outros, como no mockup */
    .nav__menu a { display: flex; flex-direction: column; }
    .nav__menu a > span { width: 0; white-space: nowrap; }
    .nav__menu a::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 400; white-space: nowrap; }
}
.nav__toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.nav__toggle span { display: block; width: 32px; height: 3px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* --- Hero (topo das páginas) -------------------------------------------- */
.hero { padding: 107px 0 107px; text-align: center; }
.hero__title, .page-title { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 48px; color: var(--dark); letter-spacing: -0.4px; }
@media (min-width: 768px) { .hero__title, .page-title { letter-spacing: normal; } }
.hero__title { max-width: 500px; margin: 0 auto 17px; }
.hero__text { max-width: 330px; margin: 0 auto; }
.page-hero { padding: 108px 0 40px; text-align: center; }
@media (min-width: 768px) { .page-hero { padding: 108px 0 38px; } }
.page-hero--md { padding-bottom: 64px; }
.page-hero--lg { padding-bottom: 87px; }
.page-hero--xl { padding-bottom: 110px; }
.page-hero--xs { padding-bottom: 30px; }
.page-hero .page-title { margin-bottom: 4px; }
@media (min-width: 768px) { .page-hero .page-title { margin-bottom: 8px; } }
.page-hero__text { max-width: 540px; margin: 8px auto 0; }
@media (min-width: 768px) { .page-hero__text { margin: 14px auto 0; } }
.page-hero__text--wide { max-width: 690px; }

/* Pesquisa */
.search { display: flex; max-width: 340px; height: 44px; margin: 26px auto 0; }
@media (min-width: 768px) { .page-title + .search { margin-top: 19px; } }
.search input { flex: 1; min-width: 0; padding: 0 25px; border: 0; border-radius: 22px 0 0 22px; background: var(--grey); font-size: 14px; color: var(--dark); }
.search input::placeholder { color: #7E8DA2; }
.search button { width: 77px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 0 22px 22px 0; background: var(--red); transition: background-color .2s; }
.search button:hover { background: #c20510; }
.search button img { width: 19px; height: 19px; }

/* --- Início: Quem somos ------------------------------------------------- */
.about { padding: 82px 0 88px; }
.about__grid { display: grid; grid-template-columns: 499fr 515fr; gap: 26px; align-items: start; }
.about__img { width: 100%; border-radius: 16px; aspect-ratio: 499 / 340; object-fit: cover; }
.about__text { padding-top: 24px; }
.about__text .section-title { margin-bottom: 12px; }
.about__text p { margin-bottom: 0; text-align: justify; }
.about__text p + p { margin-top: 16px; }

/* --- Início: Serviços --------------------------------------------------- */
.services { padding: 52px 0 57px; }
@media (min-width: 768px) { .services { padding: 52px 0 77px; } }
.services .section-title { margin-bottom: 20px; }
@media (min-width: 768px) { .services .section-title { margin-bottom: 25px; } }
.lead { margin-bottom: 26px; color: #111; text-align: justify; }
.services__grid { display: grid; grid-template-columns: 354fr 354fr 308fr; grid-template-rows: auto auto; grid-auto-flow: column; gap: 17px 12px; }
.card-blue { padding: 18px 16px 20px; border-radius: 8px; background: var(--blue); color: #fff; }
@media (min-width: 768px) { .card-blue { padding: 19px 16px 18px; } }
.card-blue__icon { width: auto; height: 48px; margin-bottom: 18px; }
@media (min-width: 768px) { .card-blue__icon { width: 46px; object-fit: none; object-position: left bottom; margin-bottom: 11px; } }
.card-blue h3, .card-blue__title { margin-bottom: 12px; font-size: 20px; line-height: 28px; font-weight: 600; }
@media (min-width: 768px) { .card-blue h3, .card-blue__title { margin-bottom: 11px; } }
@media (min-width: 768px) { .careers__grid .card-blue__title { font-weight: 700; } }
.card-blue p { font-size: 15px; line-height: 23px; color: #EAF3FF; font-weight: 400; }
@media (min-width: 768px) { .card-blue p { font-weight: 300; } }
.card-blue p + p { margin-top: 16px; }
@media (min-width: 768px) { .card-blue p + p { margin-top: 12px; } }
.services__grid .card-blue { min-height: 204px; }
.services__grid .card-blue--tall { grid-row: span 2; }

/* --- Início: Blog -------------------------------------------------------- */
.home-blog { padding: 40px 0 90px; }
@media (min-width: 768px) { .home-blog { padding: 38px 0 90px; } }
.home-blog .section-title { margin-bottom: 30px; }
@media (min-width: 768px) { .home-blog .section-title { margin-bottom: 25px; } }
.home-blog__intro { margin-bottom: 18px; color: #111; }
@media (min-width: 768px) { .home-blog__intro { margin-bottom: 26px; } }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 26px; }
@media (min-width: 768px) { .mini-grid { grid-template-columns: 500fr 515fr; gap: 26px 25px; } }

/* Cartão pequeno de artigo (miniatura à esquerda) */
.mini { display: grid; grid-template-columns: 161px 1fr; gap: 16px; align-items: start; }
.mini__thumb { display: block; aspect-ratio: 161 / 143; border-radius: 8px; overflow: hidden; background: var(--dark); }
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mini:hover .mini__thumb img { transform: scale(1.04); }
.mini__body { padding-top: 14px; }
.mini__cat { margin-bottom: 12px; color: var(--blue-bright); font-weight: 600; text-transform: uppercase; }
@media (min-width: 768px) { .mini__cat { font-weight: 700; } }
.mini__title { margin-bottom: 8px; font-size: 16px; line-height: 24px; font-weight: 400; }
.mini__title a { text-decoration: none; }
.mini__title a:hover { text-decoration: underline; }

/* --- Início: Porquê nós --------------------------------------------------- */
.why { padding: 58px 0 60px; }
@media (min-width: 768px) { .why { padding: 56px 0 20px; } }
.why__grid { display: grid; grid-template-columns: 515fr 515fr; gap: 10px; align-items: start; }
.why .section-title { margin-bottom: 4px; }
@media (min-width: 768px) { .why .section-title { margin-bottom: 7px; } }
.why__text p { margin-bottom: 12px; }
.why__img { margin-top: 48px; width: 100%; aspect-ratio: 515 / 342; object-fit: cover; }

/* --- Newsletter ----------------------------------------------------------- */
.newsletter { padding: 33px var(--gutter); }
.newsletter__box { max-width: 860px; margin: 0 auto; padding: 28px 33px 22px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 40px; }
@media (min-width: 768px) { .newsletter__box { padding: 33px 33px; } }
.newsletter__title { max-width: 350px; font-size: 24px; line-height: 29px; font-weight: 700; }
.newsletter__form { display: flex; width: 370px; height: 52px; }
.newsletter__form input { flex: 1; min-width: 0; padding: 0 14px; border: 0; border-radius: 20px 0 0 20px; background: var(--input-bg); color: var(--dark); font-size: 14px; }
.newsletter__form input::placeholder { color: var(--muted); }
.newsletter__form button { flex-shrink: 0; padding: 0 14px; border: 0; border-radius: 0 20px 20px 0; background: var(--pink); color: #fff; font-size: 16px; font-weight: 700; transition: background-color .2s; }
.newsletter__form button:hover { background: #e0003a; }
.newsletter__form button[disabled] { opacity: .7; cursor: wait; }
.newsletter__note { grid-column: 2; font-size: 12px; line-height: 16px; color: #D6E7FA; }
.newsletter__note a { color: #fff; }
.newsletter__msg { grid-column: 1 / -1; padding: 10px 14px; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 14px; }
.newsletter__msg[hidden] { display: none; }
.newsletter__msg.is-error { background: rgba(255, 7, 65, .25); }

/* --- Rodapé ---------------------------------------------------------------- */
.site-footer { padding-top: 45px; background: var(--dark); color: #fff; border-bottom: 5px solid var(--red); }
@media (min-width: 768px) { .site-footer { border-bottom: 4px solid var(--red); } }
.footer__grid { display: grid; grid-template-columns: 520fr 354fr 166fr; }
.footer__logo { width: 116px; height: 24px; margin-bottom: 26px; }
.footer__brand address { margin-bottom: 12px; font-style: normal; }
@media (min-width: 768px) { .footer__brand address, .footer__brand p { font-weight: 300; } }
.footer__brand a { text-decoration: none; }
.footer__brand a:hover { text-decoration: underline; }
.footer__col h2 { margin: 12px 0 18px; font-size: 16px; line-height: 20px; font-weight: 600; }
@media (min-width: 768px) { .footer__col h2 { margin: 3px 0 15px; font-weight: 700; } }
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li { line-height: 27px; }
.footer__col a { color: #F2F2F2; text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__suporte li { line-height: 28px; }
.footer__bottom { position: relative; margin-top: 18px; padding-top: 18px; padding-bottom: 25px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
@media (min-width: 768px) { .footer__bottom { margin-top: 9px; } }
.footer__bottom::before { content: ''; position: absolute; top: 0; left: calc(var(--gutter) + 50px); right: calc(var(--gutter) + 49px); height: 2px; background: #777A7F; }
.footer__legal { display: flex; gap: 75px; margin: 0; padding: 0; list-style: none; }
.footer__legal a { color: #F2F2F2; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* --- Aviso de cookies ------------------------------------------------------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 16px 18px; display: flex; align-items: center; gap: 16px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 14px; line-height: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.cookie-notice[hidden] { display: none; }
.cookie-notice a { color: #9fd0f8; }
.cookie-notice .btn { min-height: 38px; flex-shrink: 0; font-size: 14px; }

/* --- Alertas ------------------------------------------------------------------ */
.alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 22px; }
.alert--ok { background: #E3F6EA; color: var(--ok); border: 1px solid #B6E3C6; }
.alert--error { background: #FDE7E9; color: #A3000D; border: 1px solid #F6B8BD; }
.alert--info { background: #fff; color: var(--dark); border: 1px solid var(--input-border); }
.field-error { display: block; margin-top: 6px; color: #C0000E; font-size: 14px; line-height: 20px; }

/* --- Blog: destaques (slider) -------------------------------------------------- */
.featured { padding: 82px 0 28px; overflow: hidden; }
.slider__track { display: flex; gap: 21px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2)); scroll-padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2)); }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 499px; max-width: 86vw; scroll-snap-align: start; display: block; border-radius: 16px; overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.slide__img { aspect-ratio: 499 / 225; background: #2a2a2a; }
.slide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.slide:hover .slide__img img { transform: scale(1.03); }
.slide__caption { padding: 14px 21px 20px; }
@media (min-width: 768px) { .slide__caption { padding: 8px 21px 20px; } }
.slide__cat { color: var(--blue-bright); font-size: 14px; font-weight: 600; text-transform: uppercase; }
@media (min-width: 768px) { .slide__cat { line-height: 17px; font-weight: 700; } }
.slide__title { margin: 4px 0 6px; font-size: 18px; line-height: 22px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .slide__title { margin: 6px 0 2px; font-weight: 700; } }
.slide__date { color: var(--blue-bright); font-size: 12px; }
.slider__controls { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
@media (min-width: 768px) { .slider__controls { align-items: flex-start; margin-top: 33px; } }
.slider__dots { display: flex; gap: 12px; }
.slider__dot { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 8px; background: var(--dark); transition: width .25s, background-color .25s; }
.slider__dot.is-active { width: 51px; background: var(--blue); }
.slider__arrows { display: flex; gap: 8px; }
@media (min-width: 768px) { .slider__arrows { margin-top: 8px; } }
.slider__arrow { width: 22px; height: 22px; padding: 0; border: 0; background: none; }
.slider__arrow img { width: 22px; height: 22px; }
.slider__arrow[disabled] { opacity: .35; cursor: default; }
.no-js .slider__controls { display: none; }

/* --- Blog: grelha de artigos --------------------------------------------------- */
.latest { padding: 60px 0 20px; }
@media (min-width: 768px) { .latest { padding: 51px 0 3px; } }
.latest .section-title { margin-bottom: 32px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 11px; }
@media (min-width: 768px) { .post-grid { gap: 43px 11px; } }
.post-card { display: block; }
.post-card__thumb { display: block; aspect-ratio: 340 / 231; border-radius: 8px; overflow: hidden; background: var(--dark); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__cat, .post-card__more { display: none; }
.post-card__title { margin: 12px 0 6px; font-size: 16px; line-height: 20px; font-weight: 600; }
@media (min-width: 768px) { .post-card__title { margin: 3px 0 5px; line-height: 19px; font-weight: 700; } }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__date { color: var(--blue-bright); font-size: 11px; line-height: 14px; }
@media (min-width: 768px) { .post-card__date { font-size: 10px; line-height: 13px; } }
.more-wrap { margin: 45px 0 10px; text-align: center; }
@media (min-width: 768px) { .more-wrap { margin: 47px 0 0; } }
.empty { padding: 30px 0; color: var(--muted); text-align: center; }

/* --- Todos os posts / pesquisa --------------------------------------------------- */
.results { padding: 0; }
.result { border-bottom: 2px solid var(--line); }
.result__inner { display: grid; grid-template-columns: 192px 1fr; gap: 26px; align-items: center; padding-top: 23px; padding-bottom: 28px; }
@media (min-width: 768px) { .result__inner { padding-top: 28px; } }
@media (min-width: 768px) { .results > .result:first-child .result__inner { padding-top: 23px; } }
.result__thumb { display: block; aspect-ratio: 192 / 168; border-radius: 8px; overflow: hidden; background: var(--dark); margin-left: -3px; }
@media (min-width: 768px) { .result__thumb { position: relative; left: -3px; margin-left: 0; } }
.result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.result__cat { color: var(--blue); text-transform: uppercase; }
.result__title { margin: 14px 0 14px; font-size: 24px; line-height: 30px; font-weight: 600; }
@media (min-width: 768px) { .result__title { font-weight: 700; } }
.result__title a { text-decoration: none; }
.result__title a:hover { text-decoration: underline; }
.results__foot { height: 60px; }
.pagination { display: flex; justify-content: center; gap: 120px; padding: 30px 0 10px; }
@media (min-width: 768px) { .pagination { padding: 30px 0 0; } }
.pagination a, .pagination span { display: inline-flex; align-items: center; gap: 14px; color: var(--blue); text-decoration: none; text-transform: uppercase; }
.pagination a:hover { text-decoration: underline; }
.pagination span { color: #9AA6B2; }
.pagination .prev::before, .pagination .next::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.pagination .prev::before { transform: rotate(135deg); }
.pagination .next::after { transform: rotate(-45deg); }
.results__summary { padding: 24px 0 0; color: var(--muted); }

/* --- Página de artigo ------------------------------------------------------------- */
.post__head { text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 32px; color: var(--blue-bright); font-weight: 600; text-decoration: none; }
.back-link img { width: 22px; height: 22px; }
.back-link:hover { text-decoration: underline; }
.post__head-row { text-align: left; }
.post__cat { margin-top: 40px; text-transform: uppercase; }
@media (min-width: 768px) { .post__cat { margin-top: 32px; } }
.post__title { max-width: 860px; margin: 6px auto 14px; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -0.4px; }
@media (min-width: 768px) { .post__title { margin: 13px auto 12px; letter-spacing: normal; } }
.post__meta { margin-bottom: 38px; }
@media (min-width: 768px) { .post__meta { margin-bottom: 36px; } }
.post__cover { max-width: 960px; margin: 0 auto 18px; border-radius: 12px; overflow: hidden; background: var(--dark); aspect-ratio: 960 / 420; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__band { padding: 22px 0 52px; }
@media (min-width: 768px) { .post__band { padding: 19px 0 44px; } }
.post__body { max-width: 864px; margin: 0 auto; color: #111; }
.post__body p, .post__body ul { margin: 0 0 24px; }
.post__body h2 { margin: 32px 0 12px; color: var(--blue); font-size: 20px; line-height: 28px; font-weight: 700; }
.post__body ul { padding-left: 22px; }
.post__body li { margin-bottom: 6px; }
.share { max-width: 864px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 40px; }
@media (min-width: 768px) { .share { margin: 11px auto 0; } }
.share__label { font-weight: 600; }
.share__list { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.share__list a, .share__list button { display: block; width: 30px; height: 30px; padding: 0; border: 0; background: none; border-radius: 50%; transition: transform .15s; }
.share__list a:hover, .share__list button:hover { transform: scale(1.1); }
.share__list img { width: 30px; height: 30px; }
.share__status { font-size: 14px; color: var(--ok); }

.comments { max-width: 864px; margin: 36px auto 0; }
@media (min-width: 768px) { .comments { margin: 40px auto 0; } }
.comments .sub-title { margin-bottom: 30px; }
@media (min-width: 768px) { .comments .sub-title { margin-bottom: 32px; } }
.comment-list { max-width: 690px; margin: 0 0 30px; padding: 0; list-style: none; }
.comment { margin-bottom: 14px; padding: 16px 18px; border-radius: 12px; background: #fff; }
.comment__head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.comment__name { font-weight: 600; }
.comment__date { color: var(--muted); font-size: 13px; }
.comment p { white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { max-width: 690px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form label { display: block; margin-bottom: 8px; }
.comment-form .field { margin-bottom: 14px; }
.comment-form input, .comment-form textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; background: #fff; }
@media (min-width: 768px) { .comment-form input, .comment-form textarea { display: block; } }
.comment-form textarea { height: 132px; padding: 12px 16px; resize: vertical; }
@media (min-width: 768px) { .comment-form textarea { resize: none; } }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--input-border); outline: none; box-shadow: 0 0 0 3px rgba(26, 144, 237, .2); }
.comment-form .counter { margin-top: 6px; text-align: right; color: #747575; }
@media (min-width: 768px) { .comment-form .counter { margin: 0; } }
@media (min-width: 768px) { .comment-form__foot { display: flex; align-items: center; gap: 16px; margin-top: 5px; } }
@media (min-width: 768px) { .comment-form__foot .form-help { flex: 1; margin: 0; } }
@media (min-width: 768px) { .comment-form__foot .btn { margin: 0; min-height: 40px; font-size: 14px; } }
.comment-form .btn { margin-top: 8px; }
@media (min-width: 768px) { .comment-form .btn { margin-top: 0; } }

.related { padding: 32px 0 20px; }
@media (min-width: 768px) { .related { padding: 40px 0 6px; } }
.related .sub-title { margin-bottom: 16px; }

/* --- Formulários (contactos, administração) ----------------------------------------- */
.contact { padding: 52px 0 128px; }
.form-card { max-width: 775px; margin: 0 auto; padding: 36px 48px 20px; border-radius: 16px; background: #fff; }
@media (min-width: 768px) { .form-card { padding: 26px 58px 19px 52px; } }
.form-card .sub-title { margin-bottom: 44px; }
@media (min-width: 768px) { .form-card .sub-title { margin: 0 0 42px -3px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px; }
.form-group { margin-bottom: 26px; }
@media (min-width: 768px) { .form-group { margin-bottom: 30px; } }
@media (min-width: 768px) { .form-group--tight { margin-bottom: 0; } }
.form-group--full { grid-column: 1 / -1; }
.form-label { display: block; margin: 0 2px 12px; font-weight: 700; }
@media (min-width: 768px) { .form-label { margin: 0 3px 13px; } }
.form-control { display: block; width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--input-border); border-radius: 16px; background: #fff; color: var(--dark); transition: border-color .2s, box-shadow .2s; }
@media (min-width: 768px) { .form-control { height: 49px; } }
.form-control:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(26, 144, 237, .2); }
.form-control.is-invalid { border-color: #E4576A; }
textarea.form-control { height: 208px; padding: 12px 16px; resize: vertical; line-height: 24px; }
select.form-control { appearance: none; -webkit-appearance: none; padding-right: 48px; font-weight: 300; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5l6.5 6.5 6.5-6.5' fill='none' stroke='%231A90ED' stroke-width='2.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.counter { display: block; margin-top: 6px; text-align: right; color: #999; font-weight: 300; }
.counter.is-over { color: #C0000E; }
.check { display: flex; align-items: flex-start; gap: 16px; margin: -12px 0 14px; }
@media (min-width: 768px) { .check { margin: -1px 0 11px; } }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--input-border); border-radius: 2px; background: #fff; display: grid; place-items: center; }
.check input:checked { background: var(--blue-bright); border-color: var(--blue-bright); }
.check input:checked::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.check a { color: var(--blue-bright); text-decoration: none; }
.check a:hover { text-decoration: underline; }
.form-help { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: 6px; }

/* --- Recrutamento ------------------------------------------------------------------ */
.careers { padding: 32px 0 45px; }
@media (min-width: 768px) { .careers { padding: 32px 0 25px; } }
.careers p { margin-bottom: 18px; text-align: justify; }
.careers p.careers__call { margin-top: 24px; }
@media (min-width: 768px) { .careers p.careers__call { margin-top: 20px; } }
.careers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 25px 0 40px; }
@media (min-width: 768px) { .careers__grid { margin: 25px 0 33px; } }
.careers__grid .card-blue { min-height: 276px; padding: 16px 15px 20px; }
@media (min-width: 768px) { .careers__grid .card-blue { padding: 15px 15px 20px; } }
.careers__grid .card-blue__icon { height: 52px; margin-bottom: 18px; }
@media (min-width: 768px) { .careers__grid .card-blue__icon { height: 53px; margin-bottom: 10px; } }
@media (min-width: 768px) { .careers__grid .card-blue p { margin: 0; text-align: left; font-weight: 400; } }
.careers .sub-title { margin-bottom: 20px; }
.apply-list { margin: 30px 0 30px; padding-left: 88px; list-style: none; }
.apply-list li { padding-left: 18px; }
.apply-list li:first-child { padding-left: 0; }
.careers strong a { color: inherit; text-decoration: none; }
.careers strong a:hover { text-decoration: underline; }

/* --- Páginas legais -------------------------------------------------------------------- */
.legal { padding: 32px 0 80px; }
.legal p { margin-bottom: 16px; text-align: justify; }
.legal h2 { margin: 0 0 16px; font-size: 16px; line-height: 24px; font-weight: 400; }
.legal__item { padding-left: 78px; }
.legal__item p { margin-bottom: 17px; }
.legal a { color: var(--blue); }

/* --- Erro 404 ---------------------------------------------------------------------------- */
.error-band { padding: 22px 0 22px; text-align: center; }
@media (min-width: 768px) { .error-band__art { margin-top: 12px; } }
.error-band img { max-width: 1040px; width: 100%; margin: 12px auto 0; }
@media (min-width: 768px) { .error-band img { margin: 0 auto; } }

/* --- Avisos da newsletter (confirmação de subscrição) ------------------------------------- */
.notice { padding: 120px 0 145px; text-align: center; }
.notice__title { max-width: 600px; margin: 0 auto; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 48px; color: var(--blue-bright); }
.notice__text { max-width: 370px; margin: 15px auto 0; }
.notice__btn { margin-top: 28px; }
.notice__wait { display: none; }
.notice__form.is-sending .notice__wait { display: block; }
.notice__form.is-sending .notice__manual, .notice__form.is-sending .notice__btn { display: none; }

/* --- Área de administração -------------------------------------------------------------- */
.admin-login { padding: 120px 0 80px; text-align: center; }
@media (min-width: 768px) { .admin-login { padding: 120px 0 133px; } }
.admin-title { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 48px; color: var(--blue-bright); letter-spacing: -0.4px; }
@media (min-width: 768px) { .admin-title { letter-spacing: normal; } }
.admin-login__text { max-width: 370px; margin: 8px auto 22px; }
.panel { max-width: 418px; margin: 0 auto; padding: 50px 40px 58px; border-radius: 16px; background: var(--grey); text-align: left; }
@media (min-width: 768px) { .panel { padding: 50px 40px 55px; } }
.panel .form-label { margin: 0 1px 8px; }
.panel .form-control { height: 50px; border-color: #EAF3FF; border-radius: 12px; }
.panel .form-group { margin-bottom: 36px; }
.panel .btn { width: 100%; min-height: 50px; }
.panel .alert { margin-bottom: 24px; }
.admin-login__help { max-width: 480px; margin: 36px auto 0; color: var(--muted); }
@media (min-width: 768px) { .admin-login__help { margin: 33px auto 0; } }
.admin-login__help a { color: inherit; }
@media (min-width: 768px) { .admin-login__help a { text-decoration: none; } }
@media (min-width: 768px) { .admin-login__help a:hover, .admin-login__help a:focus-visible { text-decoration: underline; } }

.admin { padding: 100px 0 40px; }
.admin__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 35px; }
@media (min-width: 768px) { .admin__head { margin-bottom: 33px; } }
.admin__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
.admin__links a { color: var(--dark); text-decoration: none; }
.admin__links a:hover { text-decoration: underline; }
.admin__links .badge-count { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.admin__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.admin__actions .btn { min-height: 51px; padding: 0 32px; border-radius: 16px; text-transform: none; }
@media (min-width: 768px) { .admin__actions .btn { padding: 0 31px; } }
.link-danger { padding: 0; border: 0; background: none; color: var(--red); font-size: 16px; font-weight: inherit; }
.link-danger:hover { text-decoration: underline; }
.link-strong { color: var(--blue); font-weight: 600; text-decoration: none; }
.link-approve { padding: 0; border: 0; background: none; color: var(--ok); font-size: 16px; font-weight: 600; }
.link-approve:hover { text-decoration: underline; }
.newsletter-admin { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.link-strong:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { padding: 18px 24px; background: var(--grey); font-weight: 600; text-align: left; white-space: nowrap; }
@media (min-width: 768px) { .table th { padding: 17px 24px; } }
.table th:first-child { border-radius: 16px 0 0 0; }
.table th:last-child { border-radius: 0 16px 0 0; }
.table td { padding: 12px 24px 12px; background: var(--light); border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 23px; }
@media (min-width: 768px) { .table td { padding: 14px 24px 14.5px; } }
.table td.actions { white-space: nowrap; text-align: right; }
.table td.actions form { display: block; }
.table .link-danger { font-weight: 600; font-size: 15px; }
@media (min-width: 768px) { .table .link-danger { font-weight: 700; } }
@media (min-width: 768px) { .table .link-strong { font-weight: 700; font-size: 15px; } }
.badge { display: inline-block; min-width: 104px; padding: 1px 14px; border-radius: 12px; background: var(--blue-bright); color: #fff; font-size: 15px; line-height: 24px; text-align: center; }
.badge--dark { background: var(--dark); }
.badge--warn { background: #F29900; }
.admin__note { max-width: 500px; margin: 45px auto 50px; color: var(--muted); font-size: 14px; line-height: 21px; text-align: center; }
@media (min-width: 768px) { .admin__note { max-width: 490px; margin: 36px auto 10px; } }
.admin__note--wide { max-width: 760px; text-align: left; }
@media (min-width: 768px) { .admin__note--wide { max-width: 760px; } }
.admin__note--wide p + p { margin-top: 8px; }
.admin__note--wide strong { color: var(--dark); font-weight: 600; }
.muted { color: var(--muted); }
@media (min-width: 768px) { .table--utilizadores td:first-child { min-width: 190px; } }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tabs a { padding: 8px 18px; border-radius: 20px; background: var(--light); color: var(--blue); text-decoration: none; }
.tabs a.is-active { background: var(--blue); color: #fff; }
.inbox { margin: 0; padding: 0; list-style: none; }
.inbox__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 12px 20px; border-radius: 12px; background: #FFF6E5; }
.inbox__item { margin-bottom: 14px; padding: 20px 24px; border-radius: 16px; background: var(--light); }
.inbox__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-bottom: 10px; }
.inbox__from { font-weight: 600; }
.inbox__from a { color: var(--blue); font-weight: 400; }
.inbox__meta { color: var(--muted); font-size: 14px; }
.inbox__subject { margin-bottom: 6px; color: var(--blue); font-weight: 600; }
.inbox__text { white-space: pre-line; overflow-wrap: anywhere; }
.inbox__actions { display: flex; gap: 20px; margin-top: 14px; }
.inbox__actions form { display: inline; }

.editor { padding: 60px 0 80px; }
.editor .form-card { max-width: 860px; }
.editor__buttons { display: flex; align-items: center; gap: 24px; margin: 10px 0 24px; }
.editor__buttons a { color: var(--dark); }
.form-control[type="file"] { height: auto; padding: 10px 16px; }

/* --- Editor de artigos (criar / editar) --------------------------------------------------- */
.artigo-editor { padding: 100px 0 47px; }
.artigo-editor__wrap { max-width: 865px; margin: 0 auto; }
.artigo-editor__title { margin-bottom: 30px; }
.artigo-editor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 79px; align-items: start; }
.artigo-editor__full { grid-column: 1 / -1; }
.artigo-editor .form-group { margin-bottom: 0; }
.artigo-editor .form-label { margin: 0 0 10px; }
.artigo-editor .form-control { height: 56px; border-radius: 16px; }
.artigo-editor select.form-control, .artigo-editor input[type="datetime-local"] { color: #6C6C6C; font-weight: 400; }
.artigo-editor .form-help { margin-top: 12px; color: #6C6C6C; font-size: 16px; line-height: 24px; }
.artigo-editor .form-help strong { font-weight: 700; }
.artigo-editor__capa .form-label { margin-top: 13px; }
.artigo-editor__capa > .form-help { margin: 17px -10px 0 0; padding-left: 9px; }
.artigo-editor__preview { display: flex; align-items: center; gap: 20px; margin-bottom: 17px; }
.artigo-editor__preview img { flex-shrink: 0; width: 188px; height: 115px; object-fit: cover; border-radius: 12px; }
.artigo-editor__preview .check { margin: 0; gap: 18px; align-items: center; }
.artigo-editor__preview .check input { margin: 0; }
.artigo-editor__preview .check label { font-weight: 700; }
.artigo-editor__preview .form-help { margin: 0; }
.artigo-editor .artigo-editor__file { padding: 8px; }
.artigo-editor__file::file-selector-button { height: 38px; margin-right: 10px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--light); color: var(--dark); font: inherit; font-weight: 500; cursor: pointer; }
.artigo-editor textarea.artigo-editor__resumo { height: 61px; padding: 16px; resize: none; }
.artigo-editor .counter { margin-top: 17px; padding-right: 5px; color: #6C6C6C; font-weight: 400; }
.artigo-editor .counter + .form-help { margin: 17px 0 13px; }
.artigo-editor textarea.artigo-editor__conteudo { height: 288px; scroll-margin-top: 140px; }
.artigo-editor .artigo-editor__conteudo + .form-help { margin-top: 17px; }
.artigo-editor__tools { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 27px; }
.artigo-editor .artigo-editor__tool { min-height: 42px; padding: 0 16px; border-radius: 20px; font-weight: 700; text-transform: none; }
.artigo-editor__panel { margin-top: 24px; padding: 24px 28px 28px; border: 1px solid var(--input-border); border-radius: 16px; background: var(--light); scroll-margin-top: 100px; }
.artigo-editor__panel-title { margin-bottom: 6px; color: var(--blue); font-size: 20px; line-height: 28px; font-weight: 700; }
.artigo-editor__panel > .form-help { margin: 0 0 18px; }
.artigo-editor__panel .form-control { background-color: #fff; }
.artigo-editor__panel-actions { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.artigo-editor__actions { display: flex; justify-content: flex-end; align-items: center; gap: 29px; margin-top: 36px; }
.artigo-editor .artigo-editor__save { min-height: 54px; padding: 0 28px; border-radius: 16px; font-weight: 700; text-transform: none; }
.artigo-editor__cancel { padding: 0; border: 0; background: none; color: #6C6C6C; font-weight: 700; text-decoration: underline; cursor: pointer; }
.artigo-editor__cancel:hover { color: var(--dark); }
.artigo-editor__aviso { max-width: 490px; margin: 50px auto 0; color: var(--muted); font-size: 14px; line-height: 21px; text-align: center; }
.artigo-editor__aviso span { color: var(--red); }

/* Links e imagens dentro do texto dos artigos */
.post__body a { color: var(--blue); }
.post__figure { margin: 8px 0 28px; }
.post__figure img { width: 100%; height: auto; border-radius: 12px; }

/* Ajustes exclusivos do desktop (fiéis aos mockups de 1280 px). O telemóvel usa a base acima. */
@media (min-width: 768px) {
    .newsletter__note, .footer__mob { display: none; }
    .footer__desk { display: list-item; }
    .page-hero__text--wide { margin-top: 9px; }
    .page-hero--xs { padding-bottom: 29px; }
    .error-band { position: relative; margin-bottom: 16px; padding-bottom: 55px; }
    .error-band::before { content: ''; position: absolute; top: 140px; left: 0; width: calc(50% - 520px); height: 2px; background: #F4FCFF; }
    .error-band .btn { padding: 0 26px; }
    .error-band__art { overflow: hidden; margin-top: 49px; }
    .error-band__art img { width: 104.5%; max-width: none; margin-left: -2.25%; }
    .footer__suporte ul { margin-bottom: -3px; }
    .admin__actions { gap: 6px; margin-top: 23px; }
    .contact { margin-bottom: 5px; }
    .legal--termos { margin-bottom: -5px; }
    .careers { margin-bottom: 6px; padding-bottom: 21px; }
    .post__band { padding-bottom: 28px; }
    .share { margin-top: 34px; }
    .comment-form__foot { margin-top: 0; align-items: flex-start; }
    .comment-form__foot .counter { margin-top: -7px; }
}
@media (min-width: 1101px) {
    .table--artigos { table-layout: fixed; }
    .table--artigos th, .table--artigos td { padding-left: 12px; padding-right: 12px; }
    .table--artigos th:first-child, .table--artigos td:first-child { padding-left: 24px; }
    .table--artigos th:nth-child(1) { width: 41.06%; }
    .table--artigos th:nth-child(2) { width: 14.13%; }
    .table--artigos th:nth-child(3) { width: 15.87%; }
    .table--artigos th:nth-child(4) { width: 20.67%; }
    .table--artigos td:nth-child(4) { padding-right: 83px; }
    .table--artigos td.actions { padding-right: 21px; text-align: left; }
}

/* ===========================================================================
   Tablet
   =========================================================================== */
@media (max-width: 1100px) {
    .nav { padding: 0 40px; }
    .nav__menu { gap: 32px; }
}

@media (max-width: 960px) {
    .services__grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; grid-template-rows: none; }
    .services__grid .card-blue--tall { grid-row: auto; grid-column: 1 / -1; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .newsletter__box { grid-template-columns: 1fr; }
    .newsletter__note { grid-column: 1; }
    .newsletter__form { width: 100%; max-width: 420px; }
}

/* ===========================================================================
   Telemóvel
   =========================================================================== */
@media (max-width: 767px) {
    :root { --gutter: 34px; }
    html { scroll-padding-top: 80px; }

    .site-header { padding: 0; }
    .nav { height: 67px; padding: 0 20px 0 23px; border-radius: 34px; }
    .nav__toggle { display: flex; }
    .nav__menu { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 0; padding: 10px 14px; border-radius: 20px; background: var(--dark); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
    .nav__menu.is-open { display: flex; }
    .nav__menu a { padding: 13px 10px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .nav__menu li:last-child a { border-bottom: 0; }

    .hero { padding: 62px 0 25px; }
    .hero__title, .page-title, .post__title, .admin-title { font-size: 30px; line-height: 34px; }
    .hero__title { max-width: 350px; margin-bottom: 8px; }
    .hero__text { max-width: 230px; font-size: 14px; line-height: 21px; }
    .page-hero { padding: 62px 0 38px; }
    .page-hero--md, .page-hero--lg, .page-hero--xl { padding-bottom: 38px; }
    .page-hero--xs { padding-bottom: 22px; }
    .page-hero__text { max-width: 300px; font-size: 14px; line-height: 21px; }
    .page-hero .page-title + .page-hero__text { margin-top: 12px; }
    .page-hero p.page-hero__sub { font-size: 14px; }
    .search { margin-top: 20px; }

    .section-title { font-size: 24px; line-height: 30px; }
    .sub-title { font-size: 24px; }

    .about { padding: 0 0 45px; background: linear-gradient(#fff 0, #fff 20px, var(--light) 20px); }
    .about__grid { grid-template-columns: 1fr; gap: 0; }
    .about__img { aspect-ratio: 376 / 256; }
    .about__text { padding-top: 22px; }
    .about__text .section-title { margin-bottom: 18px; }
    .about__text p { font-size: 14px; line-height: 21px; margin-bottom: 18px; }

    .services { padding: 30px 0 40px; }
    .services .section-title { margin-bottom: 26px; }
    .lead { font-size: 14px; line-height: 21px; margin-bottom: 20px; }
    .services__grid { grid-template-columns: 1fr; gap: 14px; }
    .services__grid .card-blue--tall { grid-column: auto; }
    .services__grid .card-blue { min-height: 0; }
    .card-blue p { font-size: 14px; line-height: 21px; }

    .home-blog { padding: 40px 0 50px; }
    .home-blog .section-title { margin-bottom: 18px; }
    .home-blog__intro { font-size: 14px; line-height: 21px; }
    .mini-grid { grid-template-columns: 1fr; gap: 17px; }
    .mini { grid-template-columns: 119px 1fr; gap: 12px; }
    .mini__thumb { aspect-ratio: 119 / 116; }
    .mini__body { padding-top: 12px; }
    .mini__cat { margin-bottom: 6px; font-size: 14px; }
    .mini__title { margin-bottom: 2px; font-size: 14px; line-height: 21px; }
    .mini .read-more { font-size: 14px; }

    .why { padding: 30px 0 25px; }
    .why__grid { grid-template-columns: 1fr; }
    .why .section-title { margin-bottom: 12px; }
    .why__text p { font-size: 14px; line-height: 21px; }
    .why__img { margin-top: 16px; aspect-ratio: 372 / 212; }

    .newsletter { padding: 27px 10px; }
    .newsletter__box { padding: 32px 20px 32px 26px; gap: 20px; }
    .newsletter__title { max-width: none; padding-left: 7px; font-size: 18px; line-height: 24px; }
    .newsletter__form { max-width: none; }
    .newsletter__form button { padding: 0 20px; font-size: 14px; }

    .site-footer { padding-top: 38px; }
    .site-footer .container { padding: 0 23px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 0 20px; }
    .footer__brand { grid-column: 1 / -1; margin-bottom: 14px; }
    .footer__brand address, .footer__brand p { font-size: 16px; }
    .footer__suporte { order: 2; padding-left: 3px; }
    .footer__menu { order: 3; }
    .footer__col h2 { margin: 12px 0 16px; }
    .footer__bottom { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 22px; padding: 26px 23px 30px 23px; }
    .footer__bottom::before { left: 23px; right: 13px; }
    .footer__legal { justify-content: space-between; gap: 20px; }

    .featured { padding: 58px 0 30px; }
    .slider__track { gap: 10px; padding: 0 23px; scroll-padding: 0 23px; }
    .slide { flex-basis: 333px; }
    .slide__caption { padding: 10px 14px 12px; }
    .slide__cat { font-size: 10px; }
    .slide__title { font-size: 14px; line-height: 17px; }
    .slide__date { font-size: 10px; }
    .featured .container { padding: 0 23px; }
    .slider__controls { margin-top: 22px; }
    .slider__arrows { display: none; }

    .latest { padding: 40px 0 10px; }
    .latest .section-title { margin-bottom: 20px; }
    .post-grid { grid-template-columns: 1fr; gap: 17px; }
    .post-card { display: grid; grid-template-columns: 119px 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; align-items: start; }
    .post-card__thumb { grid-row: 1 / span 3; aspect-ratio: 119 / 116; }
    .post-card__cat { display: block; padding-top: 12px; margin-bottom: 6px; color: var(--blue-bright); font-size: 14px; font-weight: 600; text-transform: uppercase; }
    .post-card__title { margin: 0 0 2px; font-size: 14px; line-height: 21px; font-weight: 400; }
    .post-card__date { display: none; }
    .post-card__more { display: inline-flex; font-size: 14px; }
    .more-wrap { margin-top: 30px; }

    .result { border-bottom: 0; }
    .results { padding: 18px 0 30px; }
    .result__inner { grid-template-columns: 119px 1fr; gap: 12px; padding-top: 0; padding-bottom: 17px; align-items: start; }
    .result__thumb { aspect-ratio: 119 / 116; margin-left: 0; }
    .result__body { padding-top: 12px; }
    .result__cat { margin-bottom: 6px; color: var(--blue-bright); font-size: 14px; font-weight: 600; }
    .result__title { margin: 0 0 2px; font-size: 14px; line-height: 21px; font-weight: 400; }
    .result .read-more { font-size: 14px; }
    .results__foot { height: 0; }
    .pagination { gap: 50px; }

    .back-link { margin-top: 24px; }
    .post__cat { margin-top: 26px; font-size: 14px; }
    .post__meta { margin-bottom: 24px; font-size: 14px; }
    .post__cover { border-radius: 10px; }
    .post__body { font-size: 15px; line-height: 23px; }
    .share { justify-content: space-between; gap: 16px; }
    .comment-form .form-row { grid-template-columns: 1fr; gap: 0; }

    .contact { padding: 38px 0 60px; }
    .contact .container { padding: 0 23px; }
    .form-card { padding: 30px 22px 24px; }
    .contact .form-card { padding: 30px 29px 24px 52px; }
    .contact .form-card .sub-title { margin: 0 0 44px -23px; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group { margin-bottom: 18px; }
    .form-label { font-size: 14px; margin-bottom: 8px; }
    .form-control { font-size: 14px; }
    .counter { font-size: 14px; }
    .check { font-size: 14px; line-height: 21px; }

    .careers { padding: 26px 0 30px; }
    .careers .container { padding: 0 23px; }
    .careers p { font-size: 14px; line-height: 21px; }
    .careers__grid { grid-template-columns: 1fr; gap: 20px; margin: 20px 0 30px; }
    .careers__grid .card-blue { min-height: 0; padding: 18px 18px 22px; }
    .careers .sub-title { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
    .apply-list { margin: 0 0 20px; padding-left: 0; font-size: 14px; line-height: 21px; }

    .legal { padding: 20px 0 30px; }
    .legal p, .legal h2 { font-size: 14px; line-height: 21px; }
    .legal h2 { margin: 24px 0 20px; }
    .legal__item { padding-left: 0; }

    .error-band img { width: 190%; max-width: none; margin-left: -45%; }

    .admin-login { padding: 60px 0 40px; }
    .admin-login__text { max-width: 270px; font-size: 14px; line-height: 21px; }
    .panel { padding: 36px 40px 40px; }
    .admin-login__help { max-width: 270px; font-size: 14px; line-height: 21px; }
    .admin { padding: 50px 0 30px; }
    .admin__head { flex-direction: column; }
    .admin__actions { align-items: flex-start; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { margin-bottom: 12px; border-radius: 12px; overflow: hidden; }
    .table td { border-bottom: 0; padding: 6px 18px; }
    .table td:first-child { padding-top: 16px; font-weight: 600; }
    .table td:last-child { padding-bottom: 16px; }
    .table td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-weight: 400; }
    .table td.actions { text-align: left; display: flex; gap: 20px; }
    .editor { padding: 40px 0 50px; }
    .editor .form-card { padding: 28px 22px; }
    .cookie-notice { flex-direction: column; align-items: stretch; }
}

/* Telemóvel: elementos que no desktop mudaram de sítio ou de forma */
@media (max-width: 767px) {
    .footer__desk { display: none; }
    .comment-form__foot { display: flex; flex-direction: column; align-items: flex-start; }
    .comment-form__foot .counter { order: 1; align-self: stretch; margin-top: -8px; }
    .comment-form__foot .form-help { order: 2; margin-top: 14px; }
    .comment-form__foot .btn { order: 3; }
    .latest .post-grid > :nth-child(n+10) { display: none; }
    .notice { padding: 60px 0 70px; }
    .notice__title { font-size: 30px; line-height: 34px; letter-spacing: -0.4px; }
    .notice__text { max-width: 300px; margin-top: 12px; font-size: 14px; line-height: 21px; }
    .artigo-editor { padding: 40px 0 30px; }
    .artigo-editor__grid { grid-template-columns: 1fr; gap: 16px; }
    .artigo-editor__capa .form-label { margin-top: 0; }
    .artigo-editor__capa > .form-help { margin-right: 0; padding-left: 0; }
    .artigo-editor .form-help { font-size: 14px; line-height: 21px; }
    .artigo-editor__preview img { width: 150px; height: 92px; }
    .artigo-editor textarea.artigo-editor__conteudo { height: 360px; }
    .artigo-editor__tools { gap: 12px; }
    .artigo-editor__panel { padding: 20px 18px 22px; }
    .artigo-editor__actions { justify-content: space-between; }
    .artigo-editor__aviso { margin-top: 40px; }
}
