/* ==========================================================================
   Página de Notícia — leitura + carrossel
   ========================================================================== */

.container--narrow {
    width: min(760px, calc(100% - 2 * var(--space-3)));
    margin: 0 auto;
}

.noticia { padding-bottom: var(--space-12); }

.noticia__header {
    padding-top: var(--space-12);
    padding-bottom: var(--space-3);
}
.noticia__back {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}
.noticia__back:hover { opacity: 1; text-decoration: underline; }
.noticia__date {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    opacity: 0.65;
    margin: 0 0 0.6rem;
}
.noticia__title {
    font-family: Manrope, Inter, sans-serif;
    font-weight: 800;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    line-height: 1.15;
    color: var(--primary);
    margin: 0 0 0.8rem;
}
.noticia__apoio {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    line-height: 1.5;
    color: var(--on-surface);
    opacity: 0.82;
    margin: 0;
    font-weight: 500;
}

.noticia__figure {
    margin: var(--space-3) auto var(--space-10);
}
.noticia__img {
    width: 100%;
    border-radius: var(--radius-xl);
    display: block;
}
.noticia__caption {
    font-size: 0.85rem;
    color: var(--on-surface);
    opacity: 0.6;
    margin: 0.6rem 0 0;
    text-align: center;
    font-style: italic;
}

/* ---- Corpo (HTML do editor) --------------------------------------------- */
.noticia__body {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--on-surface);
}
.noticia__body > *:first-child { margin-top: 0; }
.noticia__body p { margin: 0 0 1.35rem; }
.noticia__body h2 {
    font-family: Manrope, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 2.2rem 0 0.9rem;
}
.noticia__body h3 {
    font-family: Manrope, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    margin: 1.8rem 0 0.7rem;
}
.noticia__body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.noticia__body a:hover { opacity: 0.75; }
.noticia__body ul,
.noticia__body ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.noticia__body li { margin-bottom: 0.5rem; }
.noticia__body blockquote {
    margin: 1.6rem 0;
    padding: 0.4rem 0 0.4rem 1.3rem;
    border-left: 4px solid var(--primary-container);
    color: var(--on-surface);
    opacity: 0.85;
    font-style: italic;
}
.noticia__body strong { font-weight: 700; }

/* ---- Carrossel da galeria ----------------------------------------------- */
.noticia-gallery { padding-top: var(--space-10); }
.noticia-gallery__title {
    font-family: Manrope, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 1.4rem;
    text-align: center;
}

.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-xl); }
.carousel__track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease;
}
.carousel__slide {
    min-width: 100%;
    box-sizing: border-box;
}
.carousel__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: var(--surface-container);
}
.carousel__caption {
    text-align: center;
    font-size: 0.88rem;
    color: var(--on-surface);
    opacity: 0.7;
    margin: 0.7rem 0 0;
    font-style: italic;
}

.carousel__btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 19, 42, 0.72);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s;
}
.carousel__btn:hover { background: var(--primary); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.carousel__btn--prev { left: 0.6rem; }
.carousel__btn--next { right: 0.6rem; }

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--outline-variant);
    cursor: pointer;
    padding: 0;
}
.carousel__dot.is-active { background: var(--primary); }

.noticia-404 { padding-top: var(--space-12); text-align: center; }
.noticia-404 .btn { margin-top: 1rem; }
