/* =========================================================
   HOME INSTITUCIONAL
========================================================= */

.institutional-home {
    background: #fff;
}

.institutional-container {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
}

.institutional-intro {
    padding: 75px 0;
    background: #fff;
}

.institutional-intro-copy {
    max-width: 740px;
    margin-bottom: 34px;
}

.institutional-intro-copy > span,
.institutional-section-heading > div > span,
.institutional-frame-box > div:first-child > span {
    color: #0863df;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.institutional-intro-copy h1 {
    margin: 7px 0 13px;
    color: #071c3f;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.06;
    letter-spacing: -1.7px;
}

.institutional-intro-copy p {
    max-width: 650px;
    margin: 0;
    color: #64758a;
    font-size: 17px;
    line-height: 1.65;
}

.institutional-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.institutional-access-grid > a {
    min-height: 215px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe7f0;
    border-radius: 19px;
    background: #f8fafc;
    color: #071c3f;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.institutional-access-grid > a:hover {
    transform: translateY(-4px);
    border-color: #cbdced;
    box-shadow: 0 14px 34px rgba(20,45,75,.08);
}

.institutional-access-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 19px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eaf3ff;
    font-size: 22px;
}

.institutional-access-grid strong {
    font-size: 20px;
}

.institutional-access-grid span {
    margin-top: 7px;
    color: #738297;
    font-size: 14px;
    line-height: 1.5;
}

.institutional-access-grid b {
    margin-top: auto;
    padding-top: 15px;
    color: #0863df;
    font-size: 13px;
}


/* =========================================================
   MENU INSTITUCIONAL
========================================================= */

.site-institutional-nav {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid #e3e9f0;
    background: #fff;
}

.site-institutional-nav > div {
    width: min(100% - 30px, 1120px);
    min-height: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-institutional-nav > div::-webkit-scrollbar {
    display: none;
}

.site-institutional-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 9px;
    color: #30445e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-institutional-nav a:hover {
    background: #eef5ff;
    color: #0863df;
}


/* =========================================================
   EVENTOS HOME
========================================================= */

.institutional-events {
    padding: 70px 0;
    background: #fff;
}

.institutional-section-heading {
    margin-bottom: 23px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.institutional-section-heading h2 {
    margin: 5px 0 4px;
    color: #071c3f;
    font-size: clamp(30px, 4vw, 40px);
}

.institutional-section-heading p {
    margin: 0;
    color: #718094;
    font-size: 15px;
}

.institutional-section-heading > a {
    color: #0863df;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.home-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.home-event-card {
    overflow: hidden;
    border: 1px solid #dee6ee;
    border-radius: 17px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20,45,75,.08);
}

.home-event-image {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: #e9eef4;
}

.home-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-event-date,
.event-date-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    width: 52px;
    padding: 7px 4px;
    border-radius: 11px;
    background: #fff;
    color: #071c3f;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

.home-event-date strong,
.event-date-badge strong {
    display: block;
    font-size: 20px;
}

.home-event-date span,
.event-date-badge span {
    display: block;
    margin-top: 1px;
    color: #0863df;
    font-size: 9px;
    font-weight: 900;
}

.home-event-info {
    padding: 15px;
}

.home-event-info > span {
    color: #758498;
    font-size: 12px;
}

.home-event-info h3 {
    margin: 7px 0;
    color: #071c3f;
    font-size: 18px;
    line-height: 1.3;
}

.home-event-info small {
    display: block;
    margin-bottom: 13px;
    color: #718094;
    font-size: 12px;
}

.home-event-info > strong {
    color: #0863df;
    font-size: 13px;
}

.home-events-empty,
.events-empty {
    padding: 45px 20px;
    border: 1px dashed #ccd8e4;
    border-radius: 17px;
    background: #f8fafc;
    text-align: center;
}

.home-events-empty p,
.events-empty p {
    color: #78879a;
    font-size: 13px;
}


/* =========================================================
   MOLDURA NA HOME
========================================================= */

.institutional-frame-section {
    padding: 70px 0;
    background: #f4f8fd;
}

.institutional-frame-box {
    min-height: 340px;
    padding: 45px;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 35px;
    overflow: hidden;
    border-radius: 27px;
    background: #071c3f;
    color: #fff;
}

.institutional-frame-box h2 {
    margin: 7px 0 12px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.06;
}

.institutional-frame-box p {
    max-width: 570px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.6;
}

.institutional-frame-box a {
    min-height: 49px;
    margin-top: 20px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    border-radius: 11px;
    background: #0863df;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.institutional-frame-art {
    display: grid;
    place-items: center;
}

.institutional-frame-art > div {
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    border: 12px solid #0863df;
    border-radius: 50%;
    color: rgba(255,255,255,.8);
    font-size: 25px;
    font-weight: 900;
    text-align: center;
}


/* =========================================================
   PÁGINA EVENTOS
========================================================= */

.events-page,
.event-single-page {
    padding: 55px 0 80px;
    background: #f6f8fb;
}

.events-container,
.event-single-container {
    width: min(100% - 30px, 1120px);
    margin: 0 auto;
}

.events-heading > span,
.events-section-title > span,
.event-label {
    color: #0863df;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.events-heading h1 {
    margin: 6px 0;
    font-size: clamp(34px, 5vw, 48px);
    color: #071c3f;
}

.events-heading p {
    margin: 0;
    color: #6e7d91;
    font-size: 16px;
}

.events-calendar-card {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #dfe6ee;
    border-radius: 20px;
    background: #fff;
}

.events-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.events-calendar-header h2 {
    font-size: 24px;
}

.events-calendar-header a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #d5dfe9;
    border-radius: 50%;
    color: #17314f;
    text-decoration: none;
}

.events-weekdays,
.events-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.events-weekdays {
    margin-top: 17px;
}

.events-weekdays span {
    padding: 9px;
    color: #7a889a;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.events-day {
    min-height: 112px;
    padding: 8px;
    border: 1px solid #eef1f5;
    background: #fff;
}

.events-day.empty {
    background: #fafbfd;
}

.events-day > strong {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
}

.events-day.today > strong {
    background: #0863df;
    color: #fff;
}

.events-day.has-event {
    background: #f6faff;
}

.events-day-event {
    margin-top: 5px;
    padding: 4px 5px;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: #e8f2ff;
    color: #0863df;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-day small {
    display: block;
    margin-top: 4px;
    color: #788699;
    font-size: 8px;
}

.events-upcoming {
    margin-top: 45px;
}

.events-section-title h2 {
    margin: 5px 0 18px;
    font-size: 29px;
}

.events-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.event-public-card {
    overflow: hidden;
    border: 1px solid #dfe6ee;
    border-radius: 17px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.event-public-image {
    position: relative;
    height: 220px;
    background: #e9eef4;
}

.event-public-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-public-content {
    padding: 18px;
}

.event-public-content > span {
    color: #708096;
    font-size: 12px;
}

.event-public-content h3 {
    margin: 7px 0;
    font-size: 21px;
    line-height: 1.28;
}

.event-public-content small {
    color: #718094;
    font-size: 12px;
}

.event-public-content p {
    color: #66778c;
    font-size: 14px;
    line-height: 1.55;
}

.event-more {
    color: #0863df;
    font-size: 13px;
}


/* EVENTO */

.event-breadcrumb {
    margin-bottom: 18px;
    display: flex;
    gap: 7px;
    color: #748397;
    font-size: 12px;
}

.event-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.event-single {
    overflow: hidden;
    border: 1px solid #dde5ed;
    border-radius: 22px;
    background: #fff;
}

.event-single-image {
    height: 470px;
    margin: 0;
    overflow: hidden;
}

.event-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-single-content {
    max-width: 800px;
    padding: 35px;
}

.event-single-content h1 {
    margin: 7px 0 20px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
}

.event-information {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.event-information > div {
    min-width: 150px;
    padding: 12px;
    border-radius: 11px;
    background: #f5f8fb;
}

.event-information strong,
.event-information span {
    display: block;
}

.event-information strong {
    color: #778698;
    font-size: 10px;
}

.event-information span {
    margin-top: 4px;
    font-size: 14px;
}

.event-single-summary {
    margin-top: 25px;
    color: #5e7188;
    font-size: 18px;
    line-height: 1.6;
}

.event-single-body p {
    margin: 20px 0;
    color: #31455d;
    font-size: 17px;
    line-height: 1.75;
}

.event-back {
    margin-top: 25px;
    display: inline-block;
    color: #0863df;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .institutional-access-grid,
    .events-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .institutional-container,
    .events-container,
    .event-single-container {
        width: min(100% - 18px, 1120px);
    }

    .institutional-intro {
        padding: 45px 0;
    }

    .institutional-intro-copy h1 {
        font-size: 35px;
    }

    .institutional-intro-copy p {
        font-size: 15px;
    }

    .institutional-access-grid {
        grid-template-columns: 1fr;
    }

    .institutional-access-grid > a {
        min-height: 170px;
    }

    .institutional-events {
        padding: 45px 0;
    }

    .institutional-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-events-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-event-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .institutional-frame-section {
        padding: 45px 0;
    }

    .institutional-frame-box {
        min-height: 0;
        padding: 27px 20px;
        grid-template-columns: 1fr;
    }

    .institutional-frame-art {
        display: none;
    }

    .institutional-frame-box a {
        width: 100%;
        justify-content: center;
    }

    .events-page,
    .event-single-page {
        padding: 35px 0 55px;
    }

    .events-calendar-card {
        padding: 10px;
    }

    .events-weekdays span {
        padding: 6px 1px;
        font-size: 9px;
    }

    .events-day {
        min-height: 70px;
        padding: 4px;
    }

    .events-day > strong {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .events-day-event {
        width: 8px;
        height: 8px;
        margin: 5px auto 0;
        padding: 0;
        border-radius: 50%;
        overflow: hidden;
        color: transparent;
    }

    .events-list-grid {
        grid-template-columns: 1fr;
    }

    .event-single-image {
        height: 300px;
    }

    .event-single-content {
        padding: 20px 16px;
    }

    .event-single-summary {
        font-size: 16px;
    }

    .event-single-body p {
        font-size: 16px;
    }

}
