/* ==========================================================
   Faculdade Malta (sede) — página inicial
   Linguagem editorial premium: serifa Fraunces nos títulos,
   corte diagonal "/" entre o vermelho e a fotografia e fotos
   reais da Malta. Depende dos tokens de base/redesign.css.
   ========================================================== */

.section {
    padding-block: clamp(4rem, 9vw, 7rem);
}

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

.section.is-tint {
    background: var(--tint);
}

.s-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.s-title {
    max-width: 40rem;
    margin: 0;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.s-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--red);
}

.s-sub {
    max-width: 36rem;
    margin: .9rem 0 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ===================== HERO: vermelho / foto ===================== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--red);
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: clamp(34rem, calc(100vh - 7.5rem), 46rem);
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(3rem, 6vw, 5rem);
    padding-right: clamp(1.5rem, 4vw, 3.5rem);
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

/* faixas diagonais no pé do painel vermelho */
.hero-copy::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 45%;
    background: repeating-linear-gradient(-68deg, transparent 0 1.6rem, rgba(255, 255, 255, .07) 1.6rem 2.6rem);
    -webkit-mask-image: linear-gradient(to top, #000, transparent);
    mask-image: linear-gradient(to top, #000, transparent);
    pointer-events: none;
}

.site-sede .hero h1 {
    max-width: 12ch;
    margin: 0 0 1.4rem;
    font-size: clamp(2.9rem, 6vw, 5.6rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.035em;
    color: var(--white);
}

.hero h1 em {
    display: block;
    font-style: italic;
    font-weight: 500;
    color: var(--tint-2);
}

.hero-lede {
    max-width: 32rem;
    margin: 0 0 2rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
}

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

.hero-modes {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.hero-modes > span {
    width: 100%;
    margin-bottom: .2rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.hero-modes a {
    padding: .5rem .95rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.hero-modes a:hover,
.hero-modes a:focus-visible {
    background: var(--white);
    color: var(--red);
}

/* foto com o corte diagonal da marca */
.hero-media {
    position: relative;
    min-height: 22rem;
    background: var(--red-deep);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 25%;
}

.hero-badge {
    position: absolute;
    top: clamp(1rem, 3vw, 2.25rem);
    right: clamp(1rem, 3vw, 2.25rem);
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .95rem 1.2rem;
    border-radius: var(--r-lg);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.hero-badge i {
    font-size: 1.8rem;
    color: var(--red);
}

.hero-badge strong {
    display: block;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.05;
}

.hero-badge span {
    font-size: .85rem;
    color: var(--ink-soft);
}

.hero-ead {
    position: absolute;
    right: clamp(1rem, 3vw, 2.25rem);
    bottom: clamp(1rem, 3vw, 2.25rem);
    left: 24%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem 1rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--r-lg);
    background: rgba(46, 7, 9, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--white);
    text-decoration: none;
    transition: background .25s ease;
}

.hero-ead small {
    display: block;
    font-size: .85rem;
    opacity: .82;
}

.hero-ead strong {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-ead i {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--red);
    transition: transform .25s var(--ease);
}

.hero-ead:hover {
    background: rgba(46, 7, 9, .88);
    color: var(--white);
}

.hero-ead:hover i {
    transform: translate(.15rem, -.15rem);
}

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

    .hero-copy {
        padding-inline: var(--gutter);
    }

    .site-sede .hero h1 {
        max-width: 14ch;
    }

    .hero-media {
        min-height: 26rem;
        clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%);
    }

    .hero-ead {
        left: clamp(1rem, 3vw, 2.25rem);
    }
}

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

    .hero-media {
        min-height: 24rem;
    }

    .hero-badge {
        top: auto;
        bottom: 6.5rem;
        right: 1rem;
        padding: .7rem .9rem;
    }

    .hero-badge i {
        font-size: 1.4rem;
    }

    .hero-badge strong {
        font-size: 1.1rem;
    }
}

/* ===================== CAMPANHAS (banners) ===================== */
.campaign {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.campaign-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.campaign-head .slash {
    margin: 0;
}

.campaign-head a {
    font-weight: 700;
    white-space: nowrap;
    color: var(--red);
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .campaign-head a {
        display: none;
    }
}

.banner-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--tint-2);
    box-shadow: var(--shadow-sm);
}

.banner-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* O home.css antigo fixa a altura do carrossel em telas grandes (43rem a partir de 1920px),
   o que deixava uma faixa vazia abaixo do banner. Aqui a altura acompanha a imagem. */
.banner-frame .carousel-inner,
.banner-frame .carousel-item {
    height: auto;
}

.banner-frame .carousel-control-prev,
.banner-frame .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--red);
    font-size: 1.2rem;
    opacity: 1;
    transform: translateY(-50%);
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, color .2s ease;
}

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

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

.banner-frame .carousel-control-prev:hover,
.banner-frame .carousel-control-next:hover {
    background: var(--red);
    color: var(--white);
}

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

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

.banner-frame .carousel-indicators .active {
    width: 1.6rem;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .banner-frame .carousel-control-prev,
    .banner-frame .carousel-control-next {
        top: auto;
        bottom: .6rem;
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1rem;
        transform: none;
    }

    .banner-frame .carousel-control-prev {
        left: .6rem;
    }

    .banner-frame .carousel-control-next {
        right: .6rem;
    }

    .banner-frame .carousel-indicators {
        bottom: 1.3rem;
    }
}

/* ===================== MODALIDADES (mosaico) ===================== */
.modes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "g g e e"
        "g g p t"
        "j j j j";
    gap: 1rem;
}

.mode {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 15.5rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--red-deep);
    color: var(--white);
    text-decoration: none;
}

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

.mode::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(92, 7, 10, 0) 25%, rgba(92, 7, 10, .92) 100%);
}

.mode.is-g {
    grid-area: g;
}

.mode.is-e {
    grid-area: e;
}

.mode.is-p {
    grid-area: p;
}

.mode.is-t {
    grid-area: t;
}

.mode.is-j {
    grid-area: j;
    min-height: 13rem;
}

.mode-tag {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-sede .mode h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    line-height: 1.05;
    color: var(--white);
}

.site-sede .mode.is-g h3 {
    font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.mode h3 em {
    font-style: italic;
    font-weight: 500;
}

.mode p {
    max-width: 28rem;
    margin: .45rem 0 0;
    font-size: .98rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
}

.mode-go {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: var(--white);
    transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}

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

.mode:hover .mode-go,
.mode:focus-visible .mode-go {
    background: var(--white);
    color: var(--red);
    transform: translate(.15rem, -.15rem);
}

@media (max-width: 991.98px) {
    .modes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "g g"
            "e p"
            "t j";
    }

    .mode.is-g {
        min-height: 20rem;
    }

    .mode.is-j {
        min-height: 15.5rem;
    }
}

@media (max-width: 575.98px) {
    .modes {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "g" "e" "p" "t" "j";
    }

    .mode,
    .mode.is-j {
        min-height: 14rem;
    }

    .mode.is-g {
        min-height: 18rem;
    }
}

/* ===================== CURSOS ===================== */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.chip {
    padding: .55rem 1.05rem;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    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(3, minmax(0, 1fr));
    gap: 1rem;
}

.course {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 16rem;
    padding: 1.6rem 1.5rem 1.4rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}

.course:hover,
.course:focus-visible {
    transform: translateY(-.3rem);
    border-color: var(--red);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.course-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.course-num {
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: .9;
    color: var(--tint-2);
    -webkit-text-stroke: 1.5px var(--red);
}

.mod-pill {
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: .76rem;
    font-weight: 700;
}

.mod-pill.is-ead,
.mod-pill.is-semipresencial {
    background: var(--white);
    color: var(--red);
    box-shadow: inset 0 0 0 2px var(--red);
}

.site-sede .course h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.12;
}

.course-level {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .92rem;
    color: var(--ink-soft);
}

.course-level i {
    color: var(--red);
}

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

.course-meta li {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .6rem;
    border-radius: .5rem;
    background: var(--tint);
    font-size: .8rem;
    font-weight: 600;
}

.course-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    font-weight: 700;
    color: var(--red);
}

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

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

.course.is-all {
    justify-content: flex-end;
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.course.is-all::before {
    content: "";
    position: absolute;
    inset: 0 0 0 45%;
    background: repeating-linear-gradient(-68deg, transparent 0 1.2rem, rgba(255, 255, 255, .08) 1.2rem 2rem);
}

.site-sede .course.is-all h3,
.course.is-all .course-more {
    position: relative;
    color: var(--white);
}

.course.is-all p {
    position: relative;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, .88);
}

.course.is-all:hover {
    background: var(--red-deep);
    color: var(--white);
}

.courses-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: var(--r-lg);
    background: var(--tint);
}

.courses-empty p {
    margin: 0;
    font-family: var(--display);
    font-size: 1.4rem;
}

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

/* no celular vira prateleira com rolagem lateral */
@media (max-width: 575.98px) {
    .course-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        scrollbar-width: thin;
        scrollbar-color: var(--red) var(--tint-2);
    }

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

/* ===================== NÚMEROS ===================== */
.figures {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--red);
    color: var(--white);
}

.figures::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 60%;
    background: repeating-linear-gradient(-68deg, transparent 0 1.8rem, rgba(255, 255, 255, .06) 1.8rem 3rem);
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.figures-grid > div {
    padding: clamp(1.9rem, 4vw, 2.9rem) clamp(1rem, 2.5vw, 1.75rem);
    border-left: 1px solid rgba(255, 255, 255, .2);
}

.figures-grid > div:first-child {
    border-left: 0;
    padding-left: 0;
}

.figures-grid strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
}

.figures-grid strong em {
    font-style: italic;
    font-weight: 500;
}

.figures-grid span {
    display: block;
    margin-top: .55rem;
    color: rgba(255, 255, 255, .85);
}

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

    .figures-grid > div:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .figures-grid > div:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, .2);
    }
}

/* ===================== INGRESSO (lista editorial) ===================== */
.entry-wrap {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.entry-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.entry-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.75rem;
}

.entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.entry-list a {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.6rem .25rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: padding .3s var(--ease), background .3s ease;
}

.entry-list a:hover,
.entry-list a:focus-visible {
    padding-inline: 1rem;
    background: var(--white);
    color: var(--ink);
}

.entry-n {
    font-family: var(--display);
    font-size: 3rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    color: var(--red);
}

.site-sede .entry-list h3 {
    margin: 0 0 .3rem;
    font-size: 1.45rem;
    line-height: 1.15;
}

.entry-list p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.entry-doc {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--red);
}

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

    .entry-intro {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .entry-list a {
        grid-template-columns: 3rem minmax(0, 1fr);
        gap: .5rem 1rem;
    }

    .entry-n {
        font-size: 2.2rem;
    }

    .entry-doc {
        grid-column: 2;
    }

    .entry-btns .btn-s {
        flex: 1 1 100%;
    }
}

/* ===================== POR QUE A MALTA ===================== */
.why {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.why-media {
    position: relative;
    padding: 0 0 2.5rem 2.5rem;
}

.why-media::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 75%;
    height: 80%;
    border-radius: var(--r-lg);
    background: var(--red);
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.why-media img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: var(--r-lg);
}

.why-quote {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 19rem;
    margin: 0;
    padding: 1.2rem 1.35rem;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    font-family: var(--display);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.3;
    color: var(--ink);
}

.why-quote::before {
    content: "\201C";
    display: block;
    height: 1.6rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--red);
}

.why-copy .s-title {
    margin-bottom: 1.1rem;
}

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

.why-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.why-points li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
}

.why-points li::before {
    content: "";
    flex: 0 0 auto;
    width: .35rem;
    height: .9rem;
    background: var(--red);
    transform: skewX(-22deg);
}

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

    .why-media {
        max-width: 36rem;
    }
}

@media (max-width: 479.98px) {
    .why-media {
        padding: 0 0 3.5rem 1.25rem;
    }

    .why-points {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===================== POLOS ===================== */
.polos-band {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 1.5rem 3rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--white);
}

.polos-band::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 55%;
    background: repeating-linear-gradient(-68deg, transparent 0 1.6rem, rgba(186, 16, 22, .35) 1.6rem 2.6rem);
}

.site-sede .polos-band h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.05;
    color: var(--white);
}

.polos-band h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--tint-2);
}

.polos-band p {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .85);
}

.polos-search {
    display: flex;
    gap: .5rem;
    padding: .45rem;
    border-radius: calc(var(--r) + .25rem);
    background: var(--white);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .25);
}

.polos-search i {
    align-self: center;
    margin-left: .6rem;
    color: var(--red);
}

.polos-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
}

.polos-search input::placeholder {
    color: var(--ink-soft);
}

.polos-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: .8rem;
    font-size: .9rem;
}

.polos-links a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: .2em;
}

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

@media (max-width: 419.98px) {
    .polos-search {
        flex-wrap: wrap;
    }

    .polos-search input {
        flex-basis: calc(100% - 2.5rem);
        padding: .5rem 0;
    }

    .polos-search .btn-s {
        width: 100%;
    }
}

/* ===================== ÁREA DO ALUNO ===================== */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
}

.portal {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .25s var(--ease);
}

.portal i {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: .65rem;
    background: var(--tint-2);
    color: var(--red);
    font-size: 1.1rem;
}

.portal:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}

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

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

    .portal {
        padding: .85rem;
        font-size: .92rem;
    }
}

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

.teacher {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.teacher-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--tint-2);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.teacher-photo::after {
    content: "Currículo Lattes";
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(.4rem);
    transition: opacity .25s ease, transform .25s var(--ease);
}

.teacher:hover .teacher-photo img {
    transform: scale(1.05);
}

.teacher:hover .teacher-photo::after {
    opacity: 1;
    transform: none;
}

.teacher strong {
    display: block;
    margin-top: .9rem;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.15;
}

.teacher small {
    display: block;
    margin-top: .15rem;
    color: var(--ink-soft);
}

@media (hover: none) {
    .teacher-photo::after {
        opacity: 1;
        transform: none;
    }
}

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

/* ===================== NOTÍCIAS ===================== */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(16rem, 22rem);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .25rem .25rem 1rem;
    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: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    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: .45rem;
    flex: 1;
    padding: 1.15rem;
}

.news-date {
    font-size: .8rem;
    font-weight: 700;
    color: var(--red);
}

.site-sede .news-body h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

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

.news-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--red);
}

/* ===================== RECADOS ===================== */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
}

.quote.is-feature {
    grid-row: span 2;
    justify-content: space-between;
    border-color: var(--red);
    background: var(--red);
}

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

.quote.is-feature blockquote {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    color: var(--white);
}

.quote.is-feature blockquote::before {
    content: "\201C";
    display: block;
    height: 2.5rem;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--tint-2);
}

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

.quote-avatar {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--tint-2);
}

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

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

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

.quote.is-feature figcaption strong,
.quote.is-feature figcaption small {
    color: var(--white);
}

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

    .quote.is-feature {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

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

/* ===================== REVISTA + SELO ===================== */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem;
}

.journal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(1.4rem, 3vw, 2.25rem);
    border-radius: var(--r-lg);
    background: var(--tint);
}

.journal-covers {
    display: flex;
}

.journal-covers img {
    width: clamp(4.5rem, 9vw, 7rem);
    height: auto;
    border: 3px solid var(--white);
    border-radius: .6rem;
    box-shadow: var(--shadow-sm);
}

.journal-covers img + img {
    margin-left: -2.25rem;
}

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

.site-sede .journal h2 {
    margin: 0 0 .4rem;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.journal p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.seal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    border: 2px solid var(--red);
    border-radius: var(--r-lg);
    background: var(--white);
}

.seal i {
    font-size: 2rem;
    color: var(--red);
}

.seal strong {
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.15;
}

.seal span {
    color: var(--ink-soft);
}

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

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