/* Correções consolidadas: biblioteca, modal e responsividade geral.
   O layout aprovado de eventos permanece isolado em venturi-v2.css. */
.library-card-v2__button {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    min-height: 48px; padding: .8rem 1.25rem; border-radius: 999px;
    background: var(--venturi-purple, #683572); color: #fff !important;
    font-weight: 700; text-align: center;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.library-card-v2__button:hover, .library-card-v2__button:focus-visible {
    background: #4f2857; box-shadow: 0 10px 24px rgba(104,53,114,.25); transform: translateY(-2px);
}

/* Biblioteca: contraste do aviso de privacidade e selects com seta própria. */
#popup-download form > p {
    color: #fff !important;
    opacity: .9;
}
.library-tools select.library-field {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 3.35rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='14' fill='%23f3edf5'/%3E%3Cpath d='m10.5 12.5 4.5 4.7 4.5-4.7' fill='none' stroke='%23683572' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 30px 30px;
    cursor: pointer;
}
.library-tools select.library-field:hover {
    border-color: rgba(104,53,114,.45);
}
.publication-detail__image { align-self: flex-start; max-width: 100%; max-height: 760px; object-fit: contain; }
.event-content-card img, .event-program img, #conteudo img { max-width: 100%; height: auto !important; object-fit: contain; }
.event-content-card iframe, .event-program iframe, .event-content-card video, .event-program video,
#conteudo iframe, #conteudo video { max-width: 100%; }
.site-notice { position: fixed; inset: 0; z-index: 99999; display: none; place-items: center; padding: 1.25rem; background: rgba(24,15,27,.76); backdrop-filter: blur(7px); }
.site-notice.is-open { display: grid; }
.site-notice__dialog { position: relative; width: min(100%, 570px); overflow: hidden; border-radius: 1.75rem; background: #fff; box-shadow: 0 32px 100px rgba(0,0,0,.35); }
.site-notice__accent { height: 9px; background: linear-gradient(90deg, #683572, #77ab39); }
.site-notice__body { padding: clamp(1.5rem, 5vw, 2.8rem); }
.site-notice__type { color: #527829; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; }
.site-notice h2 { margin: .55rem 2.5rem .8rem 0; color: #683572; }
.site-notice__close { position: absolute; top: 1.25rem; right: 1.25rem; width: 42px; height: 42px; border: 0; border-radius: 999px; background: #f3edf5; color: #683572; font-size: 1.45rem; cursor: pointer; }
.site-notice__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.site-notice__button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.1rem; border-radius: 999px; background: #683572; color: #fff !important; font-weight: 700; }
.site-notice__later { border: 0; background: transparent; color: #6d6670; cursor: pointer; padding: .75rem; }
body.notice-lock { overflow: hidden; }
body.menu-mobile-open { overflow: hidden; }

/* Cabeçalho desktop: menu amplo e idiomas em etiqueta flutuante. */
.venturi-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
.venturi-header-actions #redes_sociais {
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
.venturi-header-actions #redes_sociais { gap: .32rem; }
.venturi-header-actions #redes_sociais img { width: 1.72rem; height: 1.72rem; }
.venturi-desktop-languages {
    position: absolute;
    top: 0;
    right: max(1.5rem, calc((100vw - 1500px) / 2));
    z-index: 2;
    display: inline-flex;
    gap: .18rem;
    padding: .28rem .34rem .36rem;
    border: 1px solid rgba(255,255,255,.24);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(53,23,61,.72);
    box-shadow: 0 8px 22px rgba(31,14,36,.2), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    cursor: default;
}
.venturi-desktop-languages .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .24rem;
    min-width: 44px;
    min-height: 28px;
    padding: .28rem .4rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: rgba(255,255,255,.76);
    font-size: .68rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.venturi-desktop-languages .lang-btn:hover,
.venturi-desktop-languages .lang-btn:focus-visible { background: rgba(255,255,255,.11); color: #fff; }
.venturi-desktop-languages .lang-btn.active { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.2); color: #fff; }
.venturi-desktop-languages .lang-btn img,
.venturi-desktop-languages .lang-btn img:hover {
    width: 17px;
    height: 12px;
    border-radius: 3px;
    object-fit: cover;
    opacity: 1;
    transform: none;
}

@media (min-width: 1440px) {
    #menuPrincipal .container { width: min(94vw, 1500px); max-width: none; gap: 1.25rem; }
    #menuPrincipal #logotipo { width: auto; max-width: 230px; height: auto; }
    #menuPrincipal #guias { gap: 1.3rem; }
    #menuPrincipal #guias a { font-size: 1rem; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    #menuPrincipal .container { width: 96vw; max-width: none; gap: .72rem; }
    #menuPrincipal #logotipo { width: auto; max-width: 200px; height: auto; }
    #menuPrincipal #guias { gap: .9rem; }
    #menuPrincipal #guias a { font-size: .93rem; }
    .venturi-header-actions #redes_sociais { gap: .24rem; }
    .venturi-header-actions #redes_sociais img { width: 1.48rem; height: 1.48rem; }
    .venturi-desktop-languages { right: 1.25rem; }
    .venturi-desktop-languages .lang-btn { min-width: 41px; min-height: 26px; padding-inline: .32rem; font-size: .64rem; }
}

/* Menu mobile Venturi: painel editorial inspirado no padrão visual NODE/CFB. */
.venturi-mobile-trigger {
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 15px;
    background: rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.venturi-mobile-trigger:hover,
.venturi-mobile-trigger:focus-visible { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.venturi-mobile-trigger__lines { display: grid; width: 22px; gap: 5px; }
.venturi-mobile-trigger__lines span { display: block; height: 2px; border-radius: 999px; background: currentColor; }
.venturi-mobile-trigger__lines span:nth-child(2) { width: 15px; justify-self: end; }

.venturi-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    color: #fff;
    background:
        radial-gradient(circle at 90% 8%, rgba(119,171,57,.28), transparent 27%),
        radial-gradient(circle at 4% 92%, rgba(255,255,255,.09), transparent 28%),
        linear-gradient(145deg, #35173d 0%, #683572 56%, #51245b 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .24s ease, visibility .42s;
}
.venturi-mobile-menu::before,
.venturi-mobile-menu::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    pointer-events: none;
}
.venturi-mobile-menu::before { width: 280px; height: 280px; top: -170px; right: -105px; }
.venturi-mobile-menu::after { width: 220px; height: 220px; bottom: -135px; left: -100px; }
.venturi-mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.venturi-mobile-menu__scroll {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    gap: clamp(.42rem, 1.15vh, .72rem);
    width: min(100%, 620px);
    height: 100dvh;
    min-height: 0;
    margin-left: auto;
    padding: max(.8rem, env(safe-area-inset-top)) clamp(.9rem, 4vw, 1.7rem) max(.8rem, env(safe-area-inset-bottom));
    overflow: hidden;
}
.venturi-mobile-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.venturi-mobile-menu__brand { display: inline-flex; opacity: 1 !important; }
.venturi-mobile-menu__brand img { display: block; width: min(60vw, 225px); max-height: 46px; object-fit: contain; object-position: left center; }
.venturi-mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 15px;
    background: rgba(255,255,255,.1);
    cursor: pointer;
}
.venturi-mobile-menu__close img { width: 16px; height: 16px; }
.venturi-mobile-menu__intro { margin: 0; align-self: center; }
.venturi-mobile-menu__intro > span { color: #b8dd7f; font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.venturi-mobile-menu__intro p { margin: .2rem 0 0; color: rgba(255,255,255,.72); font-size: clamp(.82rem, 3.2vw, .98rem); }
.venturi-mobile-menu__nav { display: grid; grid-template-rows: repeat(7, minmax(40px, 50px)); gap: clamp(.28rem, .7vh, .48rem); min-height: 0; }
.venturi-mobile-menu__link {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    min-height: 0;
    padding: clamp(.38rem, .9vh, .62rem) .85rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.075);
    color: #fff !important;
    opacity: 1 !important;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.venturi-mobile-menu__link:hover,
.venturi-mobile-menu__link:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); transform: translateX(3px); }
.venturi-mobile-menu__link.is-active { border-color: rgba(184,221,127,.7); background: #77ab39; box-shadow: 0 12px 28px rgba(29,18,33,.2); }
.venturi-mobile-menu__label { font-size: clamp(.92rem, 3.5vw, 1.08rem); font-weight: 700; letter-spacing: -.015em; }
.venturi-mobile-menu__arrow { font-size: 1.02rem; opacity: .72; }
.venturi-mobile-menu__utility { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .55rem; margin: 0; }
.venturi-mobile-menu__languages { display: inline-flex; gap: .12rem; padding: .2rem; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.075); }
.venturi-mobile-menu__languages .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 42px;
    padding: .38rem .3rem;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: rgba(255,255,255,.76);
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
}
.venturi-mobile-menu__languages .lang-btn.active { background: rgba(255,255,255,.16); color: #fff; }
.venturi-mobile-menu__languages img { width: 17px; height: 12px; border-radius: 2px; object-fit: cover; }
.venturi-mobile-menu__contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: .55rem .85rem;
    border-radius: 13px;
    background: #fff;
    color: #683572 !important;
    font-size: clamp(.72rem, 2.8vw, .82rem);
    font-weight: 800;
    opacity: 1 !important;
}
.venturi-mobile-menu__social { display: flex; align-self: end; justify-content: center; width: 100%; gap: .55rem; margin: 0; padding-top: .55rem; border-top: 1px solid rgba(255,255,255,.14); }
.venturi-mobile-menu__social a { display: inline-flex; opacity: .86 !important; transition: opacity .2s ease, transform .2s ease; }
.venturi-mobile-menu__social a:hover,
.venturi-mobile-menu__social a:focus-visible { opacity: 1 !important; transform: translateY(-2px); }
.venturi-mobile-menu__social img { width: 27px; height: 27px; }

@media (min-width: 1280px) {
    .venturi-mobile-menu { display: none; }
}
@media (max-width: 1279px) {
    #menuPrincipal .container { padding-top: 1rem; padding-bottom: 1rem; }
    #menuPrincipal #logotipo { width: auto; max-width: min(68vw, 260px); height: auto; max-height: 52px; }
    .venturi-desktop-languages { display: none !important; }
    .venturi-mobile-trigger { display: flex !important; }
}
@media (max-width: 430px) {
    .venturi-mobile-menu__languages { justify-content: center; }
    .venturi-mobile-menu__languages .lang-btn { justify-content: center; min-width: 38px; }
    .venturi-mobile-menu__contact { padding-inline: .65rem; }
}
@media (max-height: 680px) {
    .venturi-mobile-menu__scroll { gap: .3rem; padding-top: max(.5rem, env(safe-area-inset-top)); padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
    .venturi-mobile-menu__brand img { max-height: 40px; }
    .venturi-mobile-menu__close { width: 40px; height: 40px; }
    .venturi-mobile-menu__intro p { display: none; }
    .venturi-mobile-menu__intro > span { font-size: .65rem; }
    .venturi-mobile-menu__nav { grid-template-rows: repeat(7, 40px); gap: .25rem; }
    .venturi-mobile-menu__link { border-radius: 11px; padding-block: .28rem; }
    .venturi-mobile-menu__label { font-size: .9rem; }
    .venturi-mobile-menu__social { padding-top: .35rem; }
    .venturi-mobile-menu__social img { width: 24px; height: 24px; }
}
@media (max-width: 760px) {
    #menuPrincipal #logotipo { max-width: min(68vw, 245px); max-height: 48px; }
    #banner .h1 { font-size: clamp(2rem, 11vw, 3rem) !important; line-height: 1.05 !important; overflow-wrap: anywhere; }
    .publication-detail__image { width: 100%; height: auto !important; max-height: 72vh; border-radius: 1.25rem; }
    .responsive-media { height: auto !important; min-height: 0; aspect-ratio: 4 / 3; background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; }
    .service-visual, .service-page__image, .thank-you__image { width: min(100%, 360px); height: auto !important; max-height: none !important; margin: 0 auto !important; object-fit: contain; }
    #nossaHistoria > div:first-child > img { width: 100%; height: auto; object-fit: contain; }
    main img, section img { max-width: 100%; }
    main h1, main h2, main h3, section h1, section h2, section h3 { overflow-wrap: anywhere; }
    main table, section table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    main iframe, section iframe, main video, section video { max-width: 100%; }
    main .container, section .container, main .swiper, section .swiper { min-width: 0; }
    .site-notice { padding: .75rem; }
    .site-notice__dialog { max-height: calc(100dvh - 1.5rem); overflow-y: auto; border-radius: 1.2rem; }
    .site-notice__actions { flex-direction: column; }
    .site-notice__button, .site-notice__later { width: 100%; }
}

@media (max-width: 1024px) {
    .home-hero-full #banner {
        width: 100%;
        height: min(calc(100svh - 80px), 135.74vw);
        min-height: 0;
        overflow: hidden;
        background: #fff !important;
    }
    .home-hero-full .banners__swiper,
    .home-hero-full .banners__swiper .swiper-wrapper,
    .home-hero-full .banners__swiper .swiper-slide,
    .home-hero-full .banners__swiper .swiper-slide > a,
    .home-hero-full .banners__swiper picture {
        display: block;
        width: 100%;
        height: 100%;
    }
    .home-hero-full .banners__swiper .swiper-wrapper { display: flex; }
    .home-hero-full .banners__swiper .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Home: menu + banner + indicadores fecham a primeira tela no desktop. */
.home-hero-full { width: 100%; padding: 0 !important; }
@media (min-width: 1280px) {
    .home-hero-full {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        width: 100%;
        height: 100vh;
        min-height: 720px;
        overflow: hidden;
        background: #fff;
    }
    .home-hero-full #banner {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        background: #fff !important;
    }
    .home-hero-full .banners__swiper,
    .home-hero-full .banners__swiper .swiper-slide,
    .home-hero-full .banners__swiper .swiper-slide > a {
        display: block;
        width: 100%;
        height: 100%;
    }
    .home-hero-full .banners__swiper .swiper-wrapper {
        display: flex;
        width: 100%;
        height: 100%;
    }
    .home-hero-full .banners__swiper .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .home-hero-full #contagem {
        position: relative;
        z-index: 2;
        width: 100%;
    }
}

.area-banners { padding: clamp(1.25rem, 3vw, 2.5rem) 0 0; background: #fff; }
.area-banners__list { display: grid; gap: 1.25rem; }
.area-banner { position: relative; overflow: hidden; border-radius: 1.5rem; background: #29152d; box-shadow: 0 16px 40px rgba(49,29,55,.12); }
.area-banner__link { display: block; color: inherit; opacity: 1 !important; }
.area-banner picture, .area-banner picture img { display: block; width: 100%; }
.area-banner picture img { height: auto; max-height: 520px; object-fit: cover; }
.area-banner__content { position: absolute; inset: auto auto clamp(1.2rem,4vw,3rem) clamp(1.2rem,4vw,3rem); z-index: 2; max-width: min(560px,75%); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.area-banner__content span { display: block; margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 800; }
.area-banner__content h2 { margin: 0 0 1rem; color: #fff; font-size: clamp(1.6rem,4vw,3rem); line-height: 1.05; }
.area-banner__content b { display: inline-flex; padding: .7rem 1rem; border-radius: 999px; background: #fff; color: #683572; text-shadow: none; }
@media (max-width: 760px) {
    .area-banners { padding-top: 1rem; }
    .area-banner { border-radius: 1.1rem; }
    .area-banner picture img { max-height: none; object-fit: contain; }
    .area-banner__content { max-width: calc(100% - 2rem); }
}

