/* Página inicial do site. */

/* ── 1. Destaque: carrossel dos banners do backoffice ─────────────────── */
.hero { position: relative; background: var(--navy) 70% center / cover no-repeat; color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10, 31, 57, .97) 0%, rgba(13, 43, 78, .9) 38%, rgba(13, 43, 78, .35) 68%, rgba(13, 43, 78, 0) 100%); }
.hero .slide { display: none; }
.hero .slide.on { display: block; }
.hero .container { position: relative; padding-top: 96px; padding-bottom: 40px; }
.hero .slide .container > div { max-width: 640px; }
.hero .chip.hl { background: var(--grad-edulog); color: #fff; }
.hero h1 { font-size: 50px; line-height: 1.08; font-weight: 700; margin: 22px 0 0; }
.hero .lead { font-size: 18px; color: #d5e2f1; }
.hero .bar { width: 64px; height: 3px; background: #8cc6f5; border-radius: 3px; margin: 24px 0; }
.hero .acts { margin-top: 30px; }
.hero .slider { position: relative; display: flex; justify-content: space-between; align-items: center; padding-top: 34px; padding-bottom: 40px; }
.hero .dots { display: flex; gap: 8px; }
.hero .dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .4); border: 0; padding: 0; cursor: pointer; }
.hero .dots button[aria-current="true"] { width: 34px; background: #fff; }
.hero .arrows { display: flex; gap: 10px; }
.hero .arrows button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); font-size: 22px; color: #fff; background: transparent; border: 0; cursor: pointer; }

/* ── Pesquisa, números e mosaicos das secções ─────────────────────────── */
.intro { background: var(--bg) radial-gradient(circle at 92% 0%, #dcebfb 0, transparent 42%); color: var(--ink); }
.intro .container { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; padding-top: 72px; padding-bottom: 40px; align-items: center; }
.intro h2 { font-size: 44px; line-height: 1.1; font-weight: 700; margin: 16px 0 14px; color: var(--navy); }
.intro h2 em { font-style: normal; background: var(--grad-edulog); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro .lead { font-size: 17px; color: var(--muted); max-width: 600px; }
.search { margin-top: 28px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.search .inner { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px 4px 4px 20px; gap: 12px; }
.search .inner svg { width: 20px; height: 20px; stroke: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; }
.search input::placeholder { color: #93a1b3; font-style: italic; }
.search .btn { padding: 13px 26px; font-size: 15px; border: 0; cursor: pointer; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags .tag { background: var(--blue-soft); box-shadow: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats .s { background: #fff; border-radius: 18px; padding: 22px 22px 18px; box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.stats .n, .stats .l { display: block; }
.card > a { display: flex; flex-direction: column; height: 100%; }
.card > a:hover h3 { color: var(--blue); }
.card .body { flex: 1; }
/* Cartão sem imagem (ex.: notícia na imprensa): uma faixa de cor por cima e o ícone, em vez da caixa vazia. */
.card.sem-imagem { border-top: 4px solid var(--c); }
.sem-imagem__ic { display: grid; place-items: center; width: 44px; height: 44px; margin: 22px 22px 0; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); }
.sem-imagem__ic svg { width: 22px; height: 22px; stroke: var(--c); stroke-width: 1.8; }
.card.sem-imagem .body { padding-top: 14px; }
.book { display: block; }
.stats .n { font-family: 'Rubik'; font-weight: 700; font-size: 38px; line-height: 1; color: var(--c); }
.stats .l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 8px; }
.intro-wrap { background: var(--bg); }
.tiles { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding-bottom: 72px; }
.tile { border-radius: 14px; color: #fff; padding: 22px 18px 18px; height: 168px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile svg.ic { width: 38px; height: 38px; stroke: #fff; stroke-width: 1.8; }
.tile .t { display: flex; justify-content: space-between; align-items: flex-end; font-family: 'Rubik'; font-weight: 700; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.tile .t svg { width: 18px; height: 18px; stroke: #fff; flex: none; }

/* ── Investigar · Divulgar · Recomendar ──────────────────────────────── */
.pillars { background: #fff; border-bottom: 1px solid var(--line); }
.pillars .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.pillar { display: flex; gap: 20px; align-items: flex-start; }
.pillar .pi { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.pillar .pi svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 1.8; }
.pillar h3 { font-size: 22px; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.pillar p { color: var(--muted); margin-top: 6px; font-size: 15px; }

section.block { padding: 84px 0; }
section.soft { background: var(--bg); }

/* ── Em foco ─────────────────────────────────────────────────────────── */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.foco .media { aspect-ratio: 16 / 9; }
.foco .chip { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--foco); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.foco .body { display: flex; flex-direction: column; gap: 14px; min-height: 150px; }
.foco h3 { font-size: 17px; }
.foco .meta { margin-top: auto; }

/* ── Investigação ────────────────────────────────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj .media { aspect-ratio: 16 / 8.5; }
.proj .status { position: absolute; top: 14px; left: 14px; color: #fff; }
.proj .status.on { background: var(--inv); }
.proj .status.done { background: var(--rec); }
.proj .body { display: grid; gap: 12px; }
.proj .inst { font-size: 13px; font-weight: 600; color: var(--inv); text-transform: uppercase; letter-spacing: .06em; }
.proj .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.proj .code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.proj .foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }

/* ── Momentos EDULOG (vídeos) ────────────────────────────────────────── */
.momentos { background: var(--navy); color: #fff; }
.momentos .section-head h2 { color: #fff; }
.momentos .section-head .all { color: #8cc6f5; }
.momentos .eyebrow { color: #8cc6f5; }
.mom { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; }
.mom .big, .mom .sm .v { border-radius: 18px; background: #1d4c80 center / cover; position: relative; display: block; }
.mom .big { aspect-ratio: 16 / 9; }
.mom .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.mom .play svg { width: 28px; height: 28px; fill: var(--navy); margin-left: 4px; }
.mom .big .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 28px 24px; border-radius: 0 0 18px 18px; background: linear-gradient(transparent, rgba(10, 31, 57, .92)); font-family: 'Rubik'; font-weight: 600; font-size: 22px; line-height: 1.3; }
.mom .list { display: grid; gap: 16px; align-content: start; }
.mom .sm { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center; }
.mom .sm .v { aspect-ratio: 16 / 9; }
.mom .sm .v .play { width: 38px; height: 38px; }
.mom .sm .v .play svg { width: 15px; height: 15px; margin-left: 2px; }
.mom .sm b { font-family: 'Rubik'; font-weight: 600; font-size: 15px; line-height: 1.35; display: block; }
.mom .sm small { color: #a9bdd6; font-size: 12.5px; }

/* ── Em debate + podcasts ────────────────────────────────────────────── */
.split2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deb .media { aspect-ratio: 16 / 10; }
.deb .chip { position: absolute; top: 14px; left: 14px; background: var(--debate); color: #fff; }
.deb .body { display: grid; gap: 10px; }
.pods { background: var(--pod); color: #fff; border-radius: 22px; padding: 30px; }
.pods .eyebrow { color: #9fb3c9; }
.pods h3 { font-size: 26px; margin: 8px 0 18px; }
.ep { display: grid; grid-template-columns: 64px 1fr 40px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.ep .cv { width: 64px; height: 64px; border-radius: 12px; background: #4a5768 center / cover; }
.ep b { font-family: 'Rubik'; font-weight: 600; font-size: 14.5px; line-height: 1.3; display: block; }
.ep small { color: #9fb3c9; font-size: 12px; }
.ep .play { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ep .play svg { width: 16px; height: 16px; fill: var(--pod); stroke: none; margin-left: 2px; }

/* ── Recomendações + publicações ─────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rec { background: linear-gradient(150deg, #46a35a, #2f8a4a); color: #fff; border-radius: 22px; padding: 38px 40px; box-shadow: var(--shadow-lg); }
.rec .eyebrow { color: #d6f0d9; }
.rec h2 { font-size: 30px; margin: 10px 0 8px; }
.rec p { color: #e2f4e5; font-size: 15px; }
.rec ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.rec li a { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .13); border-radius: 12px; padding: 13px 16px; font-family: 'Rubik'; font-weight: 600; }
.rec li a:hover { background: rgba(255, 255, 255, .22); }
.rec li b { background: #fff; color: #2f8a4a; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.pubs { background: #fff; border-radius: 22px; padding: 38px 40px; box-shadow: var(--shadow); }
.pubs .eyebrow { color: var(--pub); }
.pubs h2 { font-size: 30px; margin: 10px 0 22px; color: var(--navy); }
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.book .cv { background: #eef1f6 center / contain no-repeat; aspect-ratio: 3 / 3.6; border-radius: 12px; }
.book h4 { font-size: 14px; color: var(--navy); margin-top: 12px; line-height: 1.35; font-weight: 600; }
.book .meta { font-size: 12px; margin-top: 6px; }


/* ── Ecrãs mais pequenos ─────────────────────────────────────────────── */
/* Numa grelha, um filho não encolhe abaixo do seu conteúdo: sem isto, a pesquisa alargava a coluna no telemóvel. */
.intro .container > *, .split > *, .split2 > *, .mom > *, .grid4 > *, .grid3 > *, .grid2 > * { min-width: 0; }
@media (max-width: 1100px) {
    .grid4 { grid-template-columns: repeat(2, 1fr); }
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .intro .container, .split, .split2, .mom { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .hero h1 { font-size: 34px; }
    .hero .container { padding-top: 56px; }
    .intro h2 { font-size: 32px; }
    .grid4, .grid3, .grid2, .books, .pillars .container { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .tile { height: 132px; }
    section.block { padding: 56px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-head h2 { font-size: 26px; }
    .rec, .pubs { padding: 28px 22px; }
    .mom .sm { grid-template-columns: 120px 1fr; }
}
