/* ========================================
   HOME — PORTAL LCC-UFMG
   Layout alinhado à referência visual
   ======================================== */

.portal-home {
    --home-blue: #1351b4;
    --home-blue-dark: #071d49;
    --home-blue-deep: #041633;
    --home-blue-soft: #edf4ff;
    --home-text: #1f2937;
    --home-muted: #5f6b7a;
    --home-border: #dce4ef;
    --home-surface: #ffffff;
    --home-background: #f7f9fc;

    background: var(--home-background);
    color: var(--home-text);
    overflow: visible;
}

.portal-home,
.portal-home *,
.portal-home *::before,
.portal-home *::after {
    box-sizing: border-box;
}


/* ========================================
   LARGURA DO CONTEÚDO — REFERÊNCIA VISUAL
   Limita apenas o conteúdo da home.
   Não altera cabeçalho, rodapé ou outras páginas.
   ======================================== */

.portal-home .container-lg {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1170px;
    margin-inline: auto;
    padding-inline: 0;
}


/* ========================================
   HERO
   ======================================== */

.lcc-hero {
    padding: 1rem 0 0;
}

.lcc-hero-card {
    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(33, 102, 217, 0.24),
            transparent 34%
        ),
        linear-gradient(
            118deg,
            #06183b 0%,
            #082455 51%,
            #041229 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(7, 29, 73, 0.18);
    color: #ffffff;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);

    min-height: 390px;
    overflow: hidden;
    position: relative;
}

.lcc-hero-content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(2rem, 3.2vw, 3rem);

    position: relative;
    z-index: 3;
}

.lcc-hero-kicker {
    color: #d9e5ff;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    margin-bottom: 0.7rem;
}

.lcc-hero h1 {
    color: #ffffff;
    font-family: "Raleway", "Rawline", sans-serif;
    font-size: clamp(2rem, 2.45vw, 2.5rem);
    font-weight: 700;

    hyphens: none;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0;

    max-width: 680px;
    overflow-wrap: normal;
    word-break: normal;
}

.lcc-hero-accent {
    background: #ffcd07;
    border-radius: 999px;
    display: block;
    height: 3px;
    margin-top: 1rem;
    width: 2.35rem;
}

.lcc-hero p {
    color: #e6eefc;
    font-size: 1rem;
    line-height: 1.5;
    margin: 1.05rem 0 0;
    max-width: 590px;
}

.lcc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.lcc-hero-actions .br-button {
    gap: 0.55rem;
    justify-content: center;
    min-height: 46px;
    min-width: 180px;
    text-decoration: none !important;
}

.lcc-hero-actions .br-button.primary {
    background: #0d63d8;
    color: #ffffff;
}

.lcc-hero-actions .br-button.primary:hover,
.lcc-hero-actions .br-button.primary:focus-visible {
    background: #2476e7;
    color: #ffffff;
}

.lcc-hero-actions .br-button.secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
}

.lcc-hero-actions .br-button.secondary:hover,
.lcc-hero-actions .br-button.secondary:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}


/* ========================================
   IMAGEM DO HERO
   ======================================== */

.lcc-hero-visual {
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.lcc-hero-visual::before {
    background:
        linear-gradient(
            90deg,
            #082455 0%,
            rgba(8, 36, 85, 0.74) 12%,
            rgba(8, 36, 85, 0.14) 40%,
            transparent 66%
        ),
        linear-gradient(
            0deg,
            rgba(3, 12, 30, 0.36) 0%,
            transparent 34%
        );

    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.lcc-hero-visual img {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}


/* ========================================
   FAIXA INSTITUCIONAL
   ======================================== */

.lcc-home-highlights {
    padding-top: 1.2rem;
}

.lcc-highlights-strip {
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(7, 29, 73, 0.055);

    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));

    overflow: hidden;
}

.lcc-highlight-item {
    align-items: center;
    color: inherit;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 46px minmax(0, 1fr);

    min-height: 112px;
    padding: 1rem 1.1rem;

    position: relative;
    text-decoration: none;
}

a.lcc-highlight-item {
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

a.lcc-highlight-item:hover,
a.lcc-highlight-item:focus-visible {
    background: #f8fbff;
    color: inherit;
    text-decoration: none;
}

a.lcc-highlight-item:focus-visible {
    outline: 3px solid #ffcd07;
    outline-offset: -3px;
    z-index: 2;
}

.lcc-highlight-item + .lcc-highlight-item::before {
    background: var(--home-border);
    bottom: 1.15rem;
    content: "";
    left: 0;
    position: absolute;
    top: 1.15rem;
    width: 1px;
}

.lcc-highlight-icon {
    align-items: center;
    background: var(--home-blue-soft);
    border: 1px solid #cfe0f8;
    border-radius: 10px;
    color: var(--home-blue);

    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;

    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.lcc-highlight-icon i {
    font-size: 1.5rem;
    line-height: 1;
}

.lcc-highlight-copy {
    min-width: 0;
}

.lcc-highlight-copy h2,
.lcc-highlight-copy h3 {
    color: var(--home-blue-dark);
    font-family: "Raleway", "Rawline", sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;

    transition: color 180ms ease;
}

.lcc-highlight-copy p {
    color: var(--home-muted);
    font-size: 0.76rem;
    line-height: 1.45;
    margin: 0.3rem 0 0;
}

a.lcc-highlight-item:hover .lcc-highlight-copy h2,
a.lcc-highlight-item:hover .lcc-highlight-copy h3,
a.lcc-highlight-item:focus-visible .lcc-highlight-copy h2,
a.lcc-highlight-item:focus-visible .lcc-highlight-copy h3 {
    color: var(--home-blue);
}

a.lcc-highlight-item:hover .lcc-highlight-icon,
a.lcc-highlight-item:focus-visible .lcc-highlight-icon {
    background: #e3efff;
    border-color: #aac7ee;
}


/* ========================================
   TÍTULO DAS SEÇÕES
   ======================================== */

.lcc-home-section {
    padding-top: clamp(2.4rem, 4vw, 3.5rem);
}

.lcc-news-section {
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.lcc-home-heading {
    margin-bottom: 1rem;
}

.lcc-home-heading h2 {
    color: var(--home-blue-dark);
    font-family: "Raleway", "Rawline", sans-serif;
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0;
}

.lcc-heading-accent {
    background: var(--home-blue);
    border-radius: 999px;
    display: block;
    height: 3px;
    margin-top: 0.5rem;
    width: 2.2rem;
}


/* ========================================
   NOTÍCIAS
   ======================================== */

.lcc-news-layout {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
}

.lcc-news-featured-column,
.lcc-news-secondary-column {
    min-width: 0;
}

.lcc-news-featured {
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(7, 29, 73, 0.05);

    display: flex;
    flex-direction: column;

    height: 100%;
    overflow: hidden;
}

.lcc-news-featured-visual {
    aspect-ratio: 16 / 9;

    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(19, 81, 180, 0.13),
            transparent 35%
        ),
        linear-gradient(145deg, #e8f1ff, #f8fbff);

    min-height: 285px;
    overflow: hidden;
    position: relative;
}

.lcc-news-badge {
    background: var(--home-blue);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    left: 1rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.7rem;
    position: absolute;
    text-transform: uppercase;
    top: 1rem;
    z-index: 2;
}

.lcc-news-featured-placeholder {
    align-items: center;
    color: var(--home-blue);
    display: flex;
    height: 100%;
    justify-content: center;
    opacity: 0.2;
    width: 100%;
}

.lcc-news-featured-placeholder i {
    font-size: clamp(4rem, 10vw, 7rem);
}

.lcc-news-featured-content {
    padding: 1.15rem 1.35rem 1.25rem;
}

.lcc-news-meta {
    align-items: center;
    color: #6b7d95;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.35rem 0.65rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.lcc-news-featured h3,
.lcc-news-secondary h3 {
    color: var(--home-blue-dark);
    font-family: "Raleway", "Rawline", sans-serif;
    margin: 0;
}

.lcc-news-featured h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.25;
    margin-top: 0.5rem;
}

.lcc-news-featured h3 a,
.lcc-news-secondary h3 a {
    color: inherit;
    text-decoration: none;
}

.lcc-news-featured h3 a:hover,
.lcc-news-featured h3 a:focus-visible,
.lcc-news-secondary h3 a:hover,
.lcc-news-secondary h3 a:focus-visible {
    color: var(--home-blue);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.lcc-news-featured-content > p {
    color: var(--home-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.6rem 0 0;
}

.lcc-news-read-more {
    align-items: center;
    color: var(--home-blue);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 0.55rem;
    margin-top: 0.9rem;
    text-decoration: none;
}

.lcc-news-read-more:hover,
.lcc-news-read-more:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}


/* ========================================
   NOTÍCIAS SECUNDÁRIAS
   ======================================== */

.lcc-news-secondary-column {
    display: grid;
    gap: 0.7rem;
    grid-template-rows: repeat(4, minmax(0, 1fr));
}

.lcc-news-secondary {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    box-shadow: 0 3px 11px rgba(7, 29, 73, 0.035);

    display: grid;
    grid-template-columns: 136px minmax(0, 1fr) 44px;

    min-height: 106px;
    overflow: hidden;
}

.lcc-news-secondary-visual {
    align-items: center;

    background: linear-gradient(
        145deg,
        #0b2f66,
        #1351b4
    );

    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100%;
}

.lcc-news-secondary-visual i {
    font-size: 1.9rem;
    opacity: 0.92;
}

.lcc-news-secondary-content {
    align-self: center;
    min-width: 0;
    padding: 0.8rem 0.95rem;
}

.lcc-news-secondary h3 {
    font-size: 0.96rem;
    line-height: 1.28;
    margin-top: 0.25rem;
}

.lcc-news-secondary-action {
    align-items: center;
    color: var(--home-blue);
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.lcc-news-secondary-action:hover,
.lcc-news-secondary-action:focus-visible {
    background: var(--home-blue-soft);
    color: var(--home-blue);
}


/* ========================================
   BOTÃO TODAS AS NOTÍCIAS
   ======================================== */

.lcc-news-all {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.lcc-news-all .br-button {
    min-width: 210px;
    text-decoration: none !important;
}


/* ========================================
   ESTADO SEM NOTÍCIAS
   ======================================== */

.lcc-empty-state {
    align-items: center;
    background: #ffffff;
    border: 1px dashed #b9c7d9;
    border-radius: 10px;
    color: var(--home-muted);

    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;

    min-height: 180px;
    padding: 2rem;
    text-align: center;
}

.lcc-empty-state i {
    color: var(--home-blue);
    font-size: 2rem;
}

.lcc-empty-state p {
    margin: 0;
}


/* ========================================
   RESPONSIVIDADE — NOTEBOOK/TABLET
   ======================================== */

@media (max-width: 1100px) {

    .lcc-hero-card {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    }

    .lcc-hero h1 {
        font-size: clamp(1.8rem, 3vw, 2rem);
    }

    .lcc-highlights-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lcc-highlight-item:nth-child(3)::before {
        display: none;
    }

    .lcc-highlight-item:nth-child(n + 3) {
        border-top: 1px solid var(--home-border);
    }

    .lcc-news-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .lcc-news-secondary-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
}


/* ========================================
   RESPONSIVIDADE — TABLET PEQUENO
   ======================================== */

@media (max-width: 850px) {

    .lcc-hero-card {
        grid-template-columns: 1fr;
    }

    .lcc-hero-content {
        min-height: 360px;
    }

    .lcc-hero-visual {
        min-height: 280px;
    }

    .lcc-hero-visual::before {
        background: linear-gradient(
            180deg,
            #082455 0%,
            rgba(8, 36, 85, 0.25) 30%,
            rgba(3, 12, 30, 0.48) 100%
        );
    }

    .lcc-news-secondary {
        grid-template-columns: 110px minmax(0, 1fr) 42px;
    }
}


/* ========================================
   RESPONSIVIDADE — CELULAR
   ======================================== */

@media (max-width: 650px) {

    .lcc-hero {
        padding-top: 0.85rem;
    }

    .lcc-hero-card {
        border-radius: 10px;
        min-height: 0;
    }

    .lcc-hero-content {
        min-height: 0;
        padding: 1.75rem 1.2rem;
    }

    .lcc-hero h1 {
        font-size: clamp(1.4rem, 6.4vw, 1.8rem);
        line-height: 1.15;
    }

    .lcc-hero-actions,
    .lcc-hero-actions .br-button {
        width: 100%;
    }

    .lcc-hero-visual {
        min-height: 220px;
    }

    .lcc-highlights-strip {
        grid-template-columns: 1fr;
    }

    .lcc-highlight-item {
        min-height: 0;
        padding: 1rem;
    }

    .lcc-highlight-item + .lcc-highlight-item::before {
        display: none;
    }

    .lcc-highlight-item:nth-child(n + 2) {
        border-top: 1px solid var(--home-border);
    }

    .lcc-home-section {
        padding-top: 2.4rem;
    }

    .lcc-news-secondary-column {
        grid-template-columns: 1fr;
    }

    .lcc-news-secondary {
        grid-template-columns: 88px minmax(0, 1fr) 38px;
        min-height: 100px;
    }

    .lcc-news-secondary-content {
        padding: 0.75rem;
    }

    .lcc-news-featured-visual {
        min-height: 220px;
    }
}

@media (max-width: 420px) {

    .lcc-news-secondary {
        grid-template-columns: 70px minmax(0, 1fr) 34px;
    }

    .lcc-news-secondary h3 {
        font-size: 0.9rem;
    }
}


/* ========================================
   REDUÇÃO DE MOVIMENTO
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .portal-home * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* ========================================
   CORES FORÇADAS
   ======================================== */

@media (forced-colors: active) {

    .lcc-hero-card,
    .lcc-highlights-strip,
    .lcc-news-featured,
    .lcc-news-secondary,
    .lcc-empty-state {
        border: 1px solid CanvasText;
    }

    .lcc-hero-visual::before {
        display: none;
    }
}


/* ========================================
   ALTO CONTRASTE
   ======================================== */

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) :where(
    .portal-home,
    .lcc-highlights-strip,
    .lcc-highlight-item,
    .lcc-news-featured,
    .lcc-news-secondary,
    .lcc-empty-state
),
body.lcc-high-contrast :where(
    .portal-home,
    .lcc-highlights-strip,
    .lcc-highlight-item,
    .lcc-news-featured,
    .lcc-news-secondary,
    .lcc-empty-state
) {
    background: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) :where(
    .lcc-highlight-copy h2,
    .lcc-highlight-copy h3,
    .lcc-news-featured h3,
    .lcc-news-secondary h3,
    .lcc-home-heading h2
),
body.lcc-high-contrast :where(
    .lcc-highlight-copy h2,
    .lcc-highlight-copy h3,
    .lcc-news-featured h3,
    .lcc-news-secondary h3,
    .lcc-home-heading h2
) {
    color: #ffffff !important;
}

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) :where(
    .lcc-highlight-copy p,
    .lcc-news-featured-content > p,
    .lcc-news-meta
),
body.lcc-high-contrast :where(
    .lcc-highlight-copy p,
    .lcc-news-featured-content > p,
    .lcc-news-meta
) {
    color: #ffffff !important;
}

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) :where(
    .lcc-highlight-icon,
    .lcc-news-secondary-visual
),
body.lcc-high-contrast :where(
    .lcc-highlight-icon,
    .lcc-news-secondary-visual
) {
    background: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) a.lcc-highlight-item,
body.lcc-high-contrast a.lcc-highlight-item {
    color: #ffffff !important;
    text-decoration: none !important;
}

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) a.lcc-highlight-item:hover,
:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) a.lcc-highlight-item:focus-visible,
body.lcc-high-contrast a.lcc-highlight-item:hover,
body.lcc-high-contrast a.lcc-highlight-item:focus-visible {
    background: #111111 !important;
}


/* ========================================
   AVISO — DEFESO ELEITORAL
   ======================================== */

.lcc-defeso-notice {
    background: #eaf2ff;
    border: 1px solid #adcdff;
    border-left: 4px solid #1351b4;
    border-radius: 4px;
    color: #071d41;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
}

.lcc-news-section[hidden] {
    display: none !important;
}

.lcc-defeso-notice__content {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.lcc-defeso-notice__icon {
    align-items: center;
    border-radius: 50%;
    color: #1351b4;
    cursor: help;

    display: inline-flex;
    flex: 0 0 auto;

    font-size: 1.35rem;
    justify-content: center;
    position: relative;
}

.lcc-defeso-notice__icon:focus-visible {
    outline: 3px solid #ffcd07;
    outline-offset: 3px;
}

.lcc-defeso-notice__icon::before {
    border-bottom: 7px solid #071d41;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    content: "";
    left: 0.25rem;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0.15rem);

    transform: translateY(-0.25rem);
    transition: opacity 0.15s ease, transform 0.15s ease;

    visibility: hidden;
    z-index: 21;
}

.lcc-defeso-notice__icon::after {
    background: #071d41;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 25%);
    color: #ffffff;

    content: attr(data-tooltip);

    font-size: 0.75rem;
    font-weight: 400;

    left: 0;
    line-height: 1.35;
    max-width: 16rem;
    opacity: 0;

    padding: 0.5rem 0.625rem;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0.55rem);

    transform: translateY(-0.25rem);
    transition: opacity 0.15s ease, transform 0.15s ease;

    visibility: hidden;
    white-space: normal;
    width: max-content;
    z-index: 20;
}

.lcc-defeso-notice__icon:hover::before,
.lcc-defeso-notice__icon:hover::after,
.lcc-defeso-notice__icon:focus-visible::before,
.lcc-defeso-notice__icon:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.lcc-defeso-notice__title {
    color: #071d41;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.25rem;
}

.lcc-defeso-notice__text {
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 575.98px) {

    .lcc-defeso-notice {
        margin: 1rem 0;
        padding: 0.875rem 1rem;
    }

    .lcc-defeso-notice__icon::after {
        max-width: min(13rem, calc(100vw - 4rem));
    }
}

@media (prefers-reduced-motion: reduce) {

    .lcc-defeso-notice__icon::before,
    .lcc-defeso-notice__icon::after {
        transition: none;
    }
}

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) .lcc-defeso-notice,
body.lcc-high-contrast .lcc-defeso-notice {
    background: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffffff !important;
}

:is(
    html.lcc-high-contrast,
    html[data-lcc-contrast="true"]
) :where(
    .lcc-defeso-notice__icon,
    .lcc-defeso-notice__title,
    .lcc-defeso-notice__text
),
body.lcc-high-contrast :where(
    .lcc-defeso-notice__icon,
    .lcc-defeso-notice__title,
    .lcc-defeso-notice__text
) {
    color: #ffffff !important;
}