/* Eventos e Agenda — Figma */

.evt-page {
    background: #fff;
}

.evt-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2f6fe4;
    font-size: var(--type-pill);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.evt-pill--sm {
    font-size: var(--type-pill-sm);
}

.evt-hero {
    padding: var(--space-page-hero);
    text-align: center;
    background: linear-gradient(180deg, #f3f5fb 0%, #fff 100%);
}

.evt-hero__inner {
    max-width: 720px;
}

.evt-hero h1 {
    margin: 1rem 0 0.85rem;
    font-family: var(--font-display);
    font-size: var(--type-page-title);
    color: var(--color-navy);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.evt-hero p {
    margin: 0 auto;
    color: var(--color-muted);
    font-size: var(--type-lede);
    line-height: 1.65;
    max-width: 52ch;
}

.evt-section {
    padding: 2.5rem 0 3.25rem;
}

.evt-section--soft {
    background: #f7f9fc;
}

.evt-section__head {
    margin-bottom: 1.75rem;
}

.evt-section__head h2 {
    margin: 0;
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--color-navy);
    padding-bottom: 0.45rem;
    border-bottom: 3px solid var(--color-navy);
}

.evt-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evt-card {
    display: grid;
    grid-template-columns: 88px 136px minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
}

.evt-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: var(--color-navy);
    color: #fff;
    line-height: 1.05;
}

.evt-card__date strong {
    font-size: 1.55rem;
    font-weight: 800;
}

.evt-card__date span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.evt-card__thumb {
    width: 136px;
    height: 136px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evt-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.evt-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.evt-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.evt-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: var(--color-navy);
    line-height: 1.3;
}

.evt-card h3 a {
    color: inherit;
}

.evt-card__place {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.evt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    background: var(--color-navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.evt-btn:hover {
    background: #001a54;
    color: #fff;
}

.evt-past {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.evt-past__item {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ecf3;
    color: inherit;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
}

.evt-past__item:hover {
    color: inherit;
}

.evt-past__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    overflow: hidden;
    background: #eef2f7;
}

.evt-past__item img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.evt-past__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem 1.15rem;
}

.evt-past__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.evt-past__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--color-navy);
}

.evt-past__place {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.evt-suggest-wrap {
    padding: 0 0 3.5rem;
}

.evt-suggest {
    padding: 2.75rem 1.5rem;
    border-radius: 16px;
    background: var(--color-navy);
    color: #fff;
    text-align: center;
}

.evt-suggest h2 {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    color: #fff;
}

.evt-suggest p {
    margin: 0 auto 1.35rem;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
}

.evt-suggest__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.4rem;
    border-radius: 10px;
    background: #fff;
    color: var(--color-navy);
    font-weight: 700;
}

.evt-suggest__btn:hover {
    background: #eef3ff;
    color: var(--color-navy);
}

/* Single */
.evt-article {
    padding: 2.5rem 0 3.5rem;
}

.evt-article__inner {
    max-width: 820px;
}

/* Sem coluna de anúncios o texto fica centralizado, em vez de encostado na esquerda. */
.evt-article__inner:only-child {
    margin-inline: auto;
}

.evt-breadcrumb {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.evt-breadcrumb a {
    color: var(--color-navy);
    font-weight: 600;
}

.evt-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.evt-article h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: var(--type-article-title);
    color: var(--color-navy);
    line-height: 1.2;
}

.evt-article__place {
    margin: 0 0 1.5rem;
    color: var(--color-muted);
    font-weight: 600;
}

.evt-article__media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 2rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: #f3f5fb;
    overflow: hidden;
}

.evt-article__media img {
    width: auto;
    max-width: 100%;
    max-height: 480px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.evt-article__content {
    color: #374151;
    font-size: var(--type-lede);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.evt-gallery {
    margin: 0 0 2.5rem;
}

.evt-gallery__head {
    margin-bottom: 1.15rem;
}

.evt-gallery__head h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--color-navy);
}

.evt-gallery__head p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.evt-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .evt-article:has(.evt-gallery) .evt-article__inner {
        max-width: 920px;
    }

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

.evt-gallery__item {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f8;
    cursor: pointer;
    aspect-ratio: 1;
}

.evt-gallery__item:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

.evt-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.evt-gallery__item:hover img {
    transform: scale(1.03);
}

.evt-gallery__dialog {
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    max-width: min(960px, calc(100vw - 2rem));
    width: 100%;
    margin: auto;
}

.evt-gallery__dialog:not([open]) {
    display: none;
}

body.evt-gallery-open {
    overflow: hidden;
}

.evt-gallery__dialog::backdrop {
    background: rgba(10, 18, 36, 0.78);
}

.evt-gallery__dialog-inner {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.evt-gallery__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
}

.evt-gallery__stage img {
    display: block;
    max-width: 100%;
    max-height: min(72vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.evt-gallery__close,
.evt-gallery__nav {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--color-navy);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

.evt-gallery__close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    line-height: 1;
}

.evt-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    line-height: 1;
}

.evt-gallery__nav--prev {
    left: 0.35rem;
}

.evt-gallery__nav--next {
    right: 0.35rem;
}

.evt-gallery__counter {
    margin: 0;
    text-align: center;
    color: #e8eefc;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.evt-enroll {
    padding: 1.75rem;
    border-radius: 14px;
    background: #f3f5fb;
    border: 1px solid #e2e8f4;
}

.evt-enroll h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: var(--color-navy);
}

.evt-enroll > p {
    margin: 0 0 1.15rem;
    color: var(--color-muted);
}

.evt-enroll .akaiito-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    background: #8b95a8;
}

.evt-enroll .akaiito-btn:disabled:hover {
    background: #8b95a8;
    filter: none;
}

.evt-enroll__form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.65rem;
}

.evt-enroll__form input {
    min-height: 46px;
    padding: 0.65rem 0.95rem;
    border: 1px solid #d8dee9;
    border-radius: 10px;
    font-size: 0.95rem;
}

.evt-enroll__form button {
    min-height: 46px;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 10px;
    background: var(--color-navy);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.evt-enroll__hint {
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

@media (max-width: 900px) {
    .evt-card {
        grid-template-columns: 72px 108px minmax(0, 1fr);
    }

    .evt-card__thumb {
        width: 108px;
        height: 108px;
    }

    .evt-card__action {
        grid-column: 1 / -1;
    }

    .evt-btn {
        width: 100%;
        justify-content: center;
    }

    .evt-past {
        grid-template-columns: 1fr;
    }

    .evt-enroll__form {
        grid-template-columns: 1fr;
    }

    .evt-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .evt-gallery__nav {
        width: 36px;
        height: 36px;
    }

    .evt-gallery__dialog-inner {
        padding: 0.65rem;
    }
}

/* Vídeos do evento: miniatura do YouTube, o player só carrega no clique. */
.evt-videos {
    margin-top: 2rem;
}

.evt-videos__list {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 700px) {
    .evt-videos__list--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.evt-video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1530;
}

.evt-video img,
.evt-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.evt-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(0, 32, 104, 0.88);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.evt-video__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -11px 0 0 -7px;
    border-style: solid;
    border-width: 11px 0 11px 19px;
    border-color: transparent transparent transparent #ffffff;
}

.evt-video:hover .evt-video__play,
.evt-video:focus-visible .evt-video__play {
    transform: scale(1.08);
    background: var(--color-navy);
}

.evt-video:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}
