/* Estilo do I Congresso de Jornalismo Sonoro.
   Paleta da identidade: laranja #ee763e + verde-petróleo #064c52. */

:root {
    --acento:    #ee763e;   /* laranja: destaques, traços, botão */
    --verde:     #064c52;   /* verde-petróleo: navbar, títulos, rodapé */
    --verde-900: #06383d;   /* verde mais escuro */
    --ink:       #0b2f33;   /* títulos e texto sobre laranja */
    --body:      #223133;   /* texto corrente */
    --muted:     #5f7173;   /* texto secundário */
    --soft:      #eef4f4;   /* fundo suave */
    --line:      #d7e3e3;   /* linhas de tabela */
    --wrap:      1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--body);
    background: #fff;
    line-height: 1.7;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
}

.wrap, .nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--verde);
    padding: 14px 0;
    transition: padding .28s ease, box-shadow .28s ease;
}
.navbar.solid {
    padding: 10px 0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}
.nav-inner { display: flex; align-items: center; justify-content: center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a {
    display: block; color: #fff; text-decoration: none;
    font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
    padding: 8px 13px; border-radius: 8px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); }
.nav-links a.active { color: #fff; background: rgba(238,118,62,0.22); box-shadow: inset 0 -2px 0 var(--acento); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Banner (imagem) */
.banner { background: var(--verde); }
.banner img { display: block; width: 100%; height: auto; }

/* Secções */
.section { padding: 66px 0; scroll-margin-top: 64px; }
.section--soft { background: var(--soft); }

/* Prosa (largura uniforme, igual à do programa) */
.prosa p { margin: 0 0 18px; text-align: justify; }
.prosa p:last-child { margin-bottom: 0; }

.doc-titulo, .section-titulo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700; color: var(--verde); line-height: 1.2;
}
.doc-titulo::after, .section-titulo::after {
    content: ""; display: block; width: 60px; height: 4px;
    background: var(--acento); border-radius: 2px; margin: 18px 0 26px;
}
.doc-titulo { font-size: clamp(23px, 3vw, 32px); margin-bottom: 10px; }
.section-titulo { font-size: clamp(21px, 2.6vw, 28px); }

.eixos-intro { font-weight: 600; color: var(--ink); }

/* Tabelas (calendário e programa) */
.table-scroll { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; min-width: 560px; }
.tabela th {
    text-align: left; font-family: 'Space Grotesk', sans-serif;
    font-size: 13px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--verde); padding: 0 16px 11px 0; border-bottom: 2px solid var(--acento);
}
.tabela td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .15s ease; }
.tabela tbody tr:hover { background: var(--soft); }
.section--soft .tabela tbody tr:hover { background: #fff; }
.col-hora {
    font-family: 'Space Grotesk', sans-serif; color: var(--verde);
    white-space: nowrap; width: 74px; font-variant-numeric: tabular-nums;
}
.col-momento { font-weight: 600; color: var(--ink); width: 232px; }

.dia {
    font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px; color: var(--ink);
    margin: 40px 0 14px;
}
.dia:first-of-type { margin-top: 0; }

/* Eixos (lista numerada) */
.eixos { list-style: none; counter-reset: eixo; margin: 22px 0 26px; }
.eixos li {
    counter-increment: eixo; position: relative;
    padding-left: 52px; margin-bottom: 22px; text-align: justify;
}
.eixos li:last-child { margin-bottom: 0; }
.eixos li::before {
    content: counter(eixo);
    position: absolute; left: 0; top: 2px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--acento); color: var(--ink);
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.eixos li strong { color: var(--verde); }

/* Submissão de Resumos */
.submissao-lista { list-style: none; margin-top: 6px; }
.submissao-lista li { margin-bottom: 12px; line-height: 1.6; }
.submissao-lista li:last-child { margin-bottom: 0; }
.submissao-lista strong { color: var(--verde); font-weight: 600; }
.submissao-lista a { color: var(--verde); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.submissao-lista a:hover { text-decoration-color: var(--acento); }
.submissao-contacto { margin-top: 44px; font-size: 15px; color: var(--muted); }
.submissao-contacto a { color: var(--verde); text-decoration: underline; text-underline-offset: 3px; }
.submissao-contacto a:hover { text-decoration-color: var(--acento); }

/* Rodapé: logótipos institucionais */
.rodape { background: var(--verde); color: #fff; padding: 40px 0 42px; }
.rodape-logos {
    list-style: none; display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center; gap: 22px 40px;
}
.rodape-logos a { display: inline-flex; opacity: .95; transition: transform .2s ease, opacity .2s ease; }
.rodape-logos a:hover { opacity: 1; transform: translateY(-2px); }
.rodape-logos img { height: 40px; width: auto; display: block; }

/* Responsivo */
@media (max-width: 860px) {
    .navbar { padding: 10px 0; }
    .nav-inner { position: relative; justify-content: flex-end; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--verde-900); border-radius: 12px; padding: 8px;
    }
    .navbar.open .nav-links { display: flex; }
    .nav-links a { padding: 12px 14px; }

    .section { padding: 48px 0; }
    .prosa p, .eixos li { text-align: left; }
}
