/* ==========================================================
   Faculdade Malta Barão — página inicial
   Depende dos tokens de base/redesign.css.
   ========================================================== */

.section {
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-tight {
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

/* Cabeçalho de seção */
.s-head {
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.s-head.is-left {
    margin-left: 0;
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 1rem;
    padding: .4rem .95rem;
    border-radius: var(--pill);
    background: var(--tint-2);
    color: var(--red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.s-title {
    margin: 0 0 .85rem;
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--ink);
}

.s-title em {
    font-style: normal;
    color: var(--red);
    background: linear-gradient(transparent 64%, var(--tint-2) 64%);
}

.s-sub {
    margin: 0;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ===================== HERO VERMELHO ===================== */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(8.5rem, 14vw, 10.5rem);
    background: radial-gradient(120% 90% at 85% 5%, var(--red-hot) 0%, var(--red) 42%, var(--red-deep) 100%);
    color: var(--white);
}

.hero-dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(60% 60% at 15% 25%, #000, transparent);
    mask-image: radial-gradient(60% 60% at 15% 25%, #000, transparent);
}

.hero-rings {
    position: absolute;
    z-index: -1;
    top: -6rem;
    right: -9rem;
    width: min(56rem, 95vw);
    height: auto;
    opacity: .14;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(2.25rem, 5vw, 4.5rem);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1.5rem;
    padding: .35rem .95rem .35rem .35rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .12);
    font-size: .88rem;
    font-weight: 600;
}

.hero-pill b {
    padding: .3rem .7rem;
    border-radius: var(--pill);
    background: var(--white);
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.site-barao .hero-title {
    margin: 0 0 1.35rem;
    font-size: clamp(2.5rem, 5.8vw, 4.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
    color: var(--white);
}

/* z-index negativo: o fundo branco fica atrás da linha de cima */
.hero-title mark {
    position: relative;
    z-index: -1;
    padding: 0 .16em;
    border-radius: .22em;
    background: var(--white);
    color: var(--red);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-lead {
    max-width: 34rem;
    margin: 0 0 2rem;
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2rem 0 0;
    padding: 0;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    border-radius: var(--pill);
    background: rgba(90, 6, 10, .3);
    font-size: .86rem;
    font-weight: 600;
}

/* Buscador de cursos */
.finder {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--white);
    color: var(--ink);
    border-radius: var(--r-lg);
    box-shadow: 0 2rem 4rem rgba(60, 4, 7, .38);
}

.finder-badge {
    position: absolute;
    top: -1.1rem;
    right: 1.5rem;
    padding: .45rem .95rem;
    border: 3px solid var(--white);
    border-radius: var(--pill);
    background: var(--red);
    color: var(--white);
    font-size: .8rem;
    font-weight: 800;
    transform: rotate(3deg);
    box-shadow: var(--shadow-sm);
}

.finder-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .5rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
}

.site-barao .finder-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.finder-select {
    position: relative;
    margin-bottom: .75rem;
}

.finder-select select {
    width: 100%;
    height: 3.5rem;
    padding: 0 3rem 0 1.25rem;
    border: 2px solid var(--line);
    border-radius: var(--pill);
    background: var(--tint);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease;
}

.finder-select select:focus {
    border-color: var(--red);
    outline: none;
}

.finder-select i {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    color: var(--red);
    pointer-events: none;
}

.finder .btn-b {
    width: 100%;
}

.finder-quick {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 1.25rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px dashed var(--line);
}

.finder-quick a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border-radius: var(--pill);
    background: var(--tint);
    color: var(--ink);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.finder-quick a i {
    color: var(--red);
    transition: color .2s ease;
}

.finder-quick a:hover {
    background: var(--red);
    color: var(--white);
}

.finder-quick a:hover i {
    color: var(--white);
}

.finder-wa {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.1rem;
    font-size: .92rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.finder-wa i {
    font-size: 1.35rem;
    color: var(--red);
}

.finder-wa strong {
    color: var(--red);
}

.finder-wa:hover strong {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    z-index: -1;
    width: 100%;
    height: clamp(3rem, 7vw, 6rem);
}

@media (max-width: 991.98px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .finder {
        max-width: 34rem;
    }
}

@media (max-width: 575.98px) {
    .hero-actions .btn-b {
        flex: 1 1 100%;
    }
}

/* ===================== NÚMEROS (sobrepostos ao hero) ===================== */
.stats-band {
    position: relative;
    z-index: 2;
    margin-top: clamp(-6.5rem, -9vw, -4.5rem);
}

.stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(.75rem, 2vw, 1.25rem);
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.stats li {
    padding: .5rem clamp(.75rem, 2vw, 1.5rem);
    border-left: 1px solid var(--line);
}

.stats li:first-child {
    border-left: 0;
}

.stats strong {
    display: block;
    margin-bottom: .25rem;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    color: var(--red);
}

.stats span {
    display: block;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

@media (max-width: 767.98px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .stats li:nth-child(3) {
        border-left: 0;
    }
}

/* ===================== CURSOS ===================== */
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 0 0 2rem;
}

.chip {
    padding: .6rem 1.2rem;
    border: 2px solid var(--line);
    border-radius: var(--pill);
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.chip:hover {
    border-color: var(--red);
    color: var(--red);
}

.chip.is-active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(.9rem, 2vw, 1.25rem);
}

.course-link {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--tint);
    color: var(--ink);
    text-decoration: none;
    transition: background .3s ease, color .3s ease, transform .35s var(--ease), box-shadow .3s ease;
}

.course-link::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -2.75rem;
    bottom: -2.75rem;
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 50%;
    border: 1.4rem solid rgba(186, 16, 22, .06);
    transition: border-color .3s ease, transform .5s var(--ease);
}

.course-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: var(--white);
    color: var(--red);
    font-size: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.site-barao .course-name {
    margin: 0 0 .3rem;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
    color: inherit;
}

.course-meta {
    margin: 0 0 1rem;
    font-size: .86rem;
    color: var(--ink-soft);
    transition: color .3s ease;
}

.course-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 1.5rem;
    padding: 0;
}

.course-tags li {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .62rem;
    border-radius: var(--pill);
    background: var(--white);
    font-size: .76rem;
    font-weight: 700;
    color: var(--ink);
    transition: background .3s ease, color .3s ease;
}

.course-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    font-size: .92rem;
    font-weight: 800;
    color: var(--red);
    transition: color .3s ease;
}

.course-more i {
    transition: transform .25s var(--ease);
}

.course-link:hover,
.course-link:focus-visible {
    background: var(--red);
    color: var(--white);
    transform: translateY(-.35rem);
    box-shadow: var(--shadow);
}

.course-link:hover .course-meta,
.course-link:focus-visible .course-meta {
    color: rgba(255, 255, 255, .82);
}

.course-link:hover .course-tags li,
.course-link:focus-visible .course-tags li {
    background: rgba(255, 255, 255, .16);
    color: var(--white);
}

.course-link:hover .course-more,
.course-link:focus-visible .course-more {
    color: var(--white);
}

.course-link:hover .course-more i {
    transform: translateX(.25rem);
}

.course-link:hover::after {
    border-color: rgba(255, 255, 255, .1);
    transform: scale(1.25);
}

.course-help {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    height: 100%;
    padding: 1.5rem;
    border: 2px dashed var(--red);
    border-radius: var(--r);
    background: var(--white);
}

.site-barao .course-help h3 {
    margin: 0 0 .4rem;
    font-size: 1.28rem;
    font-weight: 800;
}

.course-help p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.courses-empty {
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: var(--r-lg);
    background: var(--tint);
    text-align: center;
}

.courses-empty p {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 519.98px) {
    .course-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===================== DIFERENCIAIS ===================== */
.split {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.split-media {
    position: relative;
    isolation: isolate;
    margin-right: 1rem;
}

.split-media::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -1rem;
    bottom: -1rem;
    width: 62%;
    height: 62%;
    border-radius: var(--r-lg);
    background: var(--red);
}

.split-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: var(--r-lg) 7rem var(--r-lg) var(--r-lg);
}

.media-badge {
    position: absolute;
    left: -1rem;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.2rem;
    border-radius: var(--r);
    background: var(--white);
    box-shadow: var(--shadow);
}

.media-badge strong {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--red);
}

.media-badge span {
    max-width: 8.5rem;
    font-size: .8rem;
    line-height: 1.3;
    color: var(--ink-soft);
}

.split-copy .s-sub {
    margin-bottom: 1.5rem;
}

.perks {
    list-style: none;
    display: grid;
    gap: .5rem;
    margin: 0 0 2rem;
    padding: 0;
}

.perks li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--r);
    transition: background .25s ease;
}

.perks li:hover {
    background: var(--tint);
}

.perk-icon {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: .95rem;
    background: var(--red);
    color: var(--white);
    font-size: 1.25rem;
}

.perks strong {
    display: block;
    margin-bottom: .2rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.perks p {
    margin: 0;
    font-size: .94rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

@media (max-width: 991.98px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .split-media {
        max-width: 28rem;
        margin: 0 auto;
    }
}

/* ===================== COMO INGRESSAR ===================== */
.journey {
    padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
    border-radius: var(--r-lg);
    background: var(--tint);
}

.journey-steps {
    position: relative;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 0 2.5rem;
    padding: 0;
}

.journey-steps::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 16%;
    right: 16%;
    border-top: 2px dashed rgba(186, 16, 22, .35);
}

.journey-steps li {
    position: relative;
    text-align: center;
}

.step-num {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 0 0 .5rem var(--tint), var(--shadow-sm);
}

.journey-steps strong {
    display: block;
    margin-bottom: .4rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.journey-steps p {
    max-width: 18rem;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.step-badge {
    display: inline-block;
    margin-top: .75rem;
    padding: .32rem .75rem;
    border-radius: var(--pill);
    background: var(--red);
    color: var(--white);
    font-size: .76rem;
    font-weight: 800;
}

.journey-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

@media (max-width: 767.98px) {
    .journey-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .journey-steps::before {
        top: 1rem;
        bottom: 1rem;
        left: 1.75rem;
        right: auto;
        border-top: 0;
        border-left: 2px dashed rgba(186, 16, 22, .35);
    }

    .journey-steps li {
        display: grid;
        grid-template-columns: 3.5rem 1fr;
        column-gap: 1rem;
        text-align: left;
    }

    .step-num {
        grid-row: 1 / span 3;
        margin: 0;
    }

    .journey-steps p {
        margin: 0;
    }

    .step-badge {
        justify-self: start;
    }

    .journey-cta .btn-b {
        flex: 1 1 100%;
    }
}

/* ===================== CAMPANHAS ===================== */
.promo {
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.promo img {
    display: block;
    width: 100%;
    height: auto;
}

.promo .carousel-control-prev,
.promo .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--red);
    font-size: 1.2rem;
    opacity: .95;
    transform: translateY(-50%);
    box-shadow: var(--shadow-sm);
}

.promo .carousel-control-prev {
    left: 1rem;
}

.promo .carousel-control-next {
    right: 1rem;
}

.promo .carousel-control-prev:hover,
.promo .carousel-control-next:hover {
    opacity: 1;
    background: var(--red);
    color: var(--white);
}

.promo .carousel-indicators {
    position: absolute;
    bottom: .75rem;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    gap: .35rem;
}

.promo .carousel-indicators [data-bs-target] {
    width: .6rem;
    height: .6rem;
    margin: 0;
    border: 0;
    border-radius: var(--pill);
    background: var(--white);
    opacity: .6;
    transition: width .3s var(--ease), opacity .3s;
}

.promo .carousel-indicators .active {
    width: 1.75rem;
    opacity: 1;
}

@media (max-width: 575.98px) {
    /* no celular as setas descem para não cobrir a arte do banner */
    .promo .carousel-control-prev,
    .promo .carousel-control-next {
        top: auto;
        bottom: .7rem;
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1rem;
        transform: none;
    }

    .promo .carousel-control-prev {
        left: .7rem;
    }

    .promo .carousel-control-next {
        right: .7rem;
    }

    .promo .carousel-indicators {
        bottom: 1.45rem;
    }
}

/* ===================== PROFESSORES ===================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(.9rem, 2vw, 1.25rem);
}

.member {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--r-lg);
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.member img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.member::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(186, 16, 22, 0) 42%, rgba(138, 11, 16, .94) 100%);
}

.member-info {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
}

.member-info strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.member-info small {
    color: rgba(255, 255, 255, .88);
}

.member-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .65rem;
    padding: .35rem .8rem;
    border-radius: var(--pill);
    background: var(--white);
    color: var(--red);
    font-size: .78rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .3s ease, transform .3s var(--ease);
}

.member:hover img,
.member:focus-visible img {
    transform: scale(1.06);
}

.member:hover .member-link,
.member:focus-visible .member-link {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .member-link {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================== ÁREA DO ALUNO ===================== */
.portal-band {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 2fr);
    align-items: center;
    gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--r-lg);
    background: radial-gradient(100% 140% at 0% 0%, var(--red-hot), var(--red) 55%, var(--red-deep));
    color: var(--white);
}

.site-barao .portal-title {
    margin: 0 0 .35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
}

.portal-band p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.portal {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.1rem;
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}

.portal i {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: .8rem;
    background: var(--tint-2);
    color: var(--red);
    font-size: 1.2rem;
}

.portal strong {
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.25;
}

.portal:hover {
    transform: translateY(-.3rem);
    box-shadow: 0 1rem 2rem rgba(60, 4, 7, .3);
    color: var(--red);
}

@media (max-width: 991.98px) {
    .portal-band {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===================== NOTÍCIAS / RECADOS (rolagem lateral) ===================== */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(17rem, 23rem);
    gap: clamp(1rem, 2vw, 1.25rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .5rem .25rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--tint-2);
}

.rail > * {
    scroll-snap-align: start;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s ease;
}

.news-card:hover {
    transform: translateY(-.3rem);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.news-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
    padding: 1.25rem;
}

.news-date {
    align-self: flex-start;
    padding: .25rem .6rem;
    border-radius: var(--pill);
    background: var(--tint-2);
    color: var(--red);
    font-size: .75rem;
    font-weight: 800;
}

.site-barao .news-body h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
}

.news-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.news-more {
    margin-top: auto;
    font-size: .88rem;
    font-weight: 800;
    color: var(--red);
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 1.9rem);
    border-radius: var(--r-lg);
    background: var(--tint);
}

.quote blockquote {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ink);
}

.quote blockquote::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.6 6C6.5 7.3 4.5 10.2 4.5 13.6V18h6v-6h-3c0-2 1.2-3.8 3-4.6L9.6 6zm9 0c-3.1 1.3-5.1 4.2-5.1 7.6V18h6v-6h-3c0-2 1.2-3.8 3-4.6L18.6 6z'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
}

.quote figcaption {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: auto;
}

.quote-avatar {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote figcaption strong {
    display: block;
    font-weight: 800;
}

.quote figcaption small {
    color: var(--ink-soft);
}

/* ===================== REVISTA ===================== */
.journal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
}

.journal-covers {
    display: flex;
    justify-content: center;
    gap: .75rem;
}

.journal-covers img {
    width: clamp(6.5rem, 14vw, 10rem);
    height: auto;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease);
}

.journal-covers img:nth-child(2) {
    transform: translateY(-1rem);
}

.journal-covers img:hover {
    transform: translateY(-1.5rem);
}

.journal-text p {
    line-height: 1.7;
    color: var(--ink-soft);
}

.journal-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
}

.journal-tags li {
    padding: .4rem .8rem;
    border-radius: var(--pill);
    background: var(--tint);
    font-size: .85rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .journal {
        grid-template-columns: minmax(0, 1fr);
    }
}
