/* WCOMTickets - Home institucional (apenas na home da plataforma).
   O catálogo original permanece na Home.aspx, em phHomeEventos. */
body.home-institucional { background: #fff; color: #101b39; }
body.home-institucional .site-header { position: relative !important; inset: auto !important; z-index: 30; background: #fff !important; border-bottom: 1px solid #eaeaf2; box-shadow: 0 1px 8px #1d1b4410; }
body.home-institucional .site-header .brand, body.home-institucional .site-header .main-nav a { color: #162341 !important; text-shadow: none !important; }
body.home-institucional .site-header .main-nav a:hover { color: #6040ed !important; }
body.home-institucional .site-header .header-actions .btn-outline-light { color: #603df4 !important; border: 1px solid #6443f5 !important; background: #fff !important; text-shadow: none; }
body.home-institucional .site-header .header-actions .btn-outline-light:hover { background: #f4efff !important; }
body.home-institucional .site-header .header-actions .btn-brand { background: #5f39ed !important; color: #fff !important; border-color: #5f39ed !important; white-space: nowrap; }
body.home-institucional .site-header .header-actions .btn-brand:hover { background: #5028da !important; }
body.home-institucional .site-header .home-cta-mobile { display: none; }
body.home-institucional .site-header .brand-mark { background: #5d35ef; }
body.home-institucional .site-header .brand-name { color: #202546; }
body.home-institucional .site-header .brand-name span { color: #202546; }
body.home-institucional .site-header .header-inner { min-height: 74px; }

.home-v2 { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #14213e; font-size: 15px; line-height: 1.6; }
.home-v2 *, .home-v2 *::before, .home-v2 *::after, .home-lead-dialog *, .home-lead-dialog *::before, .home-lead-dialog *::after { box-sizing: border-box; }
.home-v2 img { display: block; width: 100%; }
.home-v2 h1, .home-v2 h2, .home-v2 h3, .home-v2 p { margin-top: 0; }
.home-v2 .home-v2-overline { display: block; color: #6848f7; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-v2-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 21px; border-radius: 10px; font-size: 14px; font-weight: 750; text-decoration: none; line-height: 1.3; transition: transform .15s, background .15s, box-shadow .15s; }
.home-v2-button:hover { transform: translateY(-2px); }
.home-v2-button-primary { background: #6139ed; border: 1px solid #6139ed; color: #fff !important; box-shadow: 0 9px 24px #24188431; }
.home-v2-button-primary:hover { background: #502bd5; border-color: #502bd5; }
.home-v2-button-ghost { background: #ffffff13; border: 1px solid #ffffffb8; color: #fff !important; }
.home-v2-button-ghost:hover { background: #ffffff25; }

/* Faixa principal ligeiramente mais alta que a home antiga. */
.home-v2-hero { min-height: 450px; position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; background-image: linear-gradient(90deg, #0a143deb 0%, #13183fe0 36%, #14112a80 66%, #0d103c35 100%), var(--hero-image); background-size: cover; background-position: center 49%; color: #fff; }
.home-v2-hero::after { content: ""; pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(0deg,#0d0d2c5c,transparent); z-index: -1; }
.home-v2-hero-inner { width: 100%; padding-top: 55px; padding-bottom: 61px; }
.home-v2-hero-copy { max-width: 750px; }
.home-v2-hero .home-v2-overline { color: #bba7ff; margin-bottom: 19px; }
.home-v2-hero h1 { max-width: 790px; font-size: clamp(38px, 4.1vw, 61px); line-height: 1.09; letter-spacing: -.048em; font-weight: 850; margin: 0 0 19px; text-wrap: balance; }
.home-v2-hero h1 em { font-style: normal; color: #aa7cff; }
.home-v2-hero p { max-width: 690px; color: #f0f1fb; line-height: 1.65; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; margin: 0 0 27px; }
.home-v2-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.home-v2-section { padding: 67px 0 74px; }
.home-v2-section-heading { max-width: 780px; margin: 0 auto 31px; text-align: center; }
.home-v2-section-heading h2 { margin: 6px 0 7px; font-weight: 830; line-height: 1.19; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.035em; }
.home-v2-section-heading p { color: #65708b; margin-bottom: 0; font-size: 15px; }
.home-v2-segments { background: #fbfbff; }
.home-v2-segment-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.home-v2-segment-card { background: #fff; border: 1px solid #eeedf5; border-radius: 15px; overflow: hidden; box-shadow: 0 9px 30px #17275009; transition: transform .16s, box-shadow .16s; }
.home-v2-segment-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px #17275017; }
.home-v2-segment-card img { height: 167px; object-fit: cover; }
.home-v2-segment-card:nth-child(1) img { object-position: center 52%; }
.home-v2-segment-card:nth-child(2) img { object-position: center; }
.home-v2-segment-card:nth-child(3) img { object-position: center; }
.home-v2-segment-text { position: relative; padding: 36px 17px 24px; }
.home-v2-card-icon { position: absolute; left: 16px; top: -23px; width: 47px; height: 47px; border-radius: 11px; background: #faf9ff; border: 1px solid #eeebfb; box-shadow: 0 4px 15px #15104a15; display: grid; place-items: center; color: #623af2; font-size: 20px; }
.home-v2-segment-card h3 { font-size: 16px; font-weight: 820; letter-spacing: -.03em; line-height: 1.3; margin-bottom: 9px; }
.home-v2-segment-card p { font-size: 13px; color: #64718b; line-height: 1.55; margin: 0; }

.home-v2-features { padding-top: 72px; }
.home-v2-features-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.home-v2-feature-card { min-height: 400px; border-radius: 15px; padding: 23px 24px 0; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.home-v2-feature-blue { background: linear-gradient(135deg,#eaf3ff,#e1edfa); }
.home-v2-feature-lilac { background: linear-gradient(135deg,#f2eeff,#eae7ff); }
.home-v2-feature-green { background: linear-gradient(135deg,#e9faf0,#e4f3ec); }
.home-v2-feature-top { position: relative; z-index: 1; }
.home-v2-feature-symbol { font-size: 20px; display: inline-grid; place-items: center; color: #5635e9; margin-bottom: 12px; }
.home-v2-feature-card h3 { font-weight: 840; color: #284eaf; font-size: 19px; letter-spacing: -.03em; margin-bottom: 7px; }
.home-v2-feature-lilac h3 { color: #5d33e9; }
.home-v2-feature-green h3 { color: #128047; }
.home-v2-feature-card p { font-size: 13px; max-width: 295px; line-height: 1.5; color: #59647c; margin-bottom: 5px; }
.home-v2-feature-visual { flex: 1; min-height: 218px; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.home-v2-phone { width: 166px; height: 246px; background: #fff; border: 7px solid #161b2b; border-radius: 25px 25px 0 0; position: relative; transform: translateY(17px); box-shadow: 0 16px 27px #1c215644; overflow: hidden; }
.home-v2-phone-notch { position: absolute; width: 53px; height: 11px; background: #161b2b; border-radius: 0 0 9px 9px; top: -1px; left: calc(50% - 27px); z-index: 1; }
.home-v2-phone-image { height: 90px; background: url('/Images/home-eventos.jpg') center/cover; }
.home-v2-phone-body { padding: 12px 10px; display: flex; flex-direction: column; gap: 12px; }
.home-v2-phone-body span { height: 20px; border-radius: 5px; background: #f1f2f9; }
.home-v2-phone-body span.home-v2-phone-heading { width: 80%; height: 10px; background: #1b2644; }
.home-v2-phone-body strong { font-size: 10px; padding: 8px; margin-top: 4px; border-radius: 5px; background: #6136f5; color: #fff; text-align: center; }
.home-v2-dashboard { display: flex; width: 96%; height: 183px; margin-bottom: 12px; border: 7px solid #222636; border-radius: 13px; background: #fff; box-shadow: 0 16px 28px #23206139; overflow: hidden; transform: rotate(-2deg) translateY(19px); }
.home-v2-dashboard-sidebar { width: 22%; background: #22203e; padding: 16px 11px; display: flex; flex-direction: column; gap: 15px; }
.home-v2-dashboard-sidebar i { color: #fff; font-size: 17px; }
.home-v2-dashboard-sidebar span { height: 6px; border-radius: 7px; background: #817aa9; }
.home-v2-dashboard-main { flex: 1; padding: 15px; }
.home-v2-dashboard-main strong { font-size: 11px; }
.home-v2-dashboard-metrics { display: flex; gap: 8px; padding: 15px 0; }
.home-v2-dashboard-metrics span { height: 33px; background: #e5e5fb; border-radius: 6px; flex: 1; }
.home-v2-dashboard-bars { display: flex; gap: 7px; align-items: flex-end; height: 54px; border-bottom: 1px solid #e6e6f0; }
.home-v2-dashboard-bars b { display: block; flex: 1; background: #7754f2; border-radius: 4px 4px 0 0; }
.home-v2-dashboard-bars b:nth-child(1) { height: 22px; }.home-v2-dashboard-bars b:nth-child(2) { height: 31px; }.home-v2-dashboard-bars b:nth-child(3) { height: 26px; }.home-v2-dashboard-bars b:nth-child(4) { height: 44px; }.home-v2-dashboard-bars b:nth-child(5) { height: 50px; }
.home-v2-check-ticket { background: #fff; width: 174px; height: 215px; margin-bottom: -8px; border: 5px solid #1d2232; border-radius: 22px 22px 0 0; padding: 22px 18px; display: flex; align-items: center; flex-direction: column; box-shadow: 0 14px 30px #1f493c39; gap: 8px; }
.home-v2-check-ticket > i:first-child { color: #18a865; font-size: 39px; }
.home-v2-check-ticket strong { color: #20804d; font-size: 12px; }
.home-v2-check-ticket .home-v2-qr { font-size: 77px; color: #111827; margin-top: 3px; }
.home-v2-illustration-note { margin: 14px 0 0; text-align: right; font-size: 11px; color: #8790a4; }

.home-v2-steps { background: linear-gradient(135deg,#f7f6ff,#fcfbff); padding: 66px 0 70px; }
.home-v2-steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; margin: 47px 0 35px; }
.home-v2-step { display: grid; grid-template-columns: 44px 34px minmax(0,1fr); gap: 11px; align-items: start; }
.home-v2-step-number { width: 38px; height: 38px; background: #603af4; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 15px; font-weight: 800; }
.home-v2-step > i { color: #613df0; font-size: 28px; margin-top: 5px; }
.home-v2-step h3 { font-size: 13px; font-weight: 850; margin: 0 0 6px; }
.home-v2-step p { margin: 0; color: #66728a; font-size: 12px; line-height: 1.55; }
.home-v2-final-action { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.home-v2-final-action small { color: #656b82; font-size: 12px; }
.home-v2-final-action small i { color: #5f36ea; }

/* Diálogo de leads: adapta o modal real de Landing.aspx ao WebForms com master page. */
body.home-lead-open { overflow: hidden; }
.home-lead-backdrop[hidden], .home-lead-return[hidden], .home-lead-done[hidden] { display: none !important; }
.home-lead-backdrop { position: fixed; inset: 0; z-index: 1025; background: #13162a85; }
dialog.home-lead-dialog { position: fixed; z-index: 1050; width: min(510px,calc(100vw - 30px)); max-width: none; max-height: calc(100dvh - 34px); margin: auto; padding: 36px; overflow-y: auto; border: 1px solid #ebebf1; border-radius: 18px; background: #fff; color: #121b32; box-shadow: 0 27px 100px #14102e40; font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
dialog.home-lead-dialog:not([open]) { display: none; }
dialog.home-lead-dialog::backdrop { background: #13162a85; }
.home-lead-close { position: absolute; top: 13px; right: 13px; border: none; border-radius: 8px; width: 33px; height: 33px; background: transparent; color: #73788d; display: grid; place-items: center; cursor: pointer; }
.home-lead-close:hover { background: #f4f2f9; }
.home-lead-eyebrow { display: block; font-size: 11px; color: #6037ed; letter-spacing: .1em; font-weight: 800; margin-bottom: 12px; }
.home-lead-dialog h2 { font-size: 28px; max-width: 370px; line-height: 1.16; letter-spacing: -.04em; margin: 0 0 12px; font-weight: 820; }
.home-lead-dialog > p { color: #667187; font-size: 14px; line-height: 1.65; margin: 0 0 22px; }
.home-lead-field { margin-bottom: 15px; }
.home-lead-field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 12px; }
.home-lead-field label span { color: #6037ed; }
.home-lead-field input { display: block; width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #dfe2ec; border-radius: 8px; background: #fff; color: #15203c; outline: none; font-size: 15px; }
.home-lead-field input:focus { border-color: #6849f2; box-shadow: 0 0 0 3px #6745f025; }
.home-lead-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 47px; color: #fff !important; background: #5f39ef; border: none; border-radius: 9px; font-weight: 750; font-size: 14px; margin: 6px 0 0; cursor: pointer; text-decoration: none; }
.home-lead-submit:hover { background: #4f28d5; }
.home-lead-consent { text-align: center; font-size: 11px; color: #7b8190; line-height: 1.65; margin: 13px 0 0; }
.home-lead-consent a { color: #6037ed; text-decoration: underline; }
.home-lead-message { display: block; font-size: 13px; line-height: 1.55; margin: 14px 0 0; }
.home-lead-message:empty { display: none; }
.home-lead-message.erro { color: #b42318; background: #fff3f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px; }
.home-lead-message.sucesso { color: #14663f; background: #edfbf3; border: 1px solid #bce4cc; border-radius: 8px; padding: 12px; }
.home-lead-return p { margin: 12px 0 0; text-align: center; font-size: 12px; color: #667187; }
.home-lead-whatsapp { background: #198e54; }
.home-lead-whatsapp:hover { background: #157746; }
.home-lead-dialog[aria-busy="true"] .home-lead-submit { opacity: .74; cursor: wait; }
.home-lead-dialog :focus-visible { outline: 3px solid #ab91ff; outline-offset: 2px; }

@media(max-width: 1199px) { .home-v2-segment-grid { gap: 12px; } .home-v2-segment-card h3 { font-size: 15px; } .home-v2-hero h1 { max-width: 680px; } }
@media(max-width: 991px) { .home-v2-hero { min-height: 435px; } .home-v2-segment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; } .home-v2-features-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; } .home-v2-feature-card { min-height: 375px; padding: 18px 14px 0; } .home-v2-step { grid-template-columns: 36px 29px minmax(0,1fr); gap: 8px; } .home-v2-step-number { width: 33px; height: 33px; } .home-v2-step > i { font-size: 23px; } }
@media(max-width: 767px) { .home-v2-hero { min-height: 480px; background-position: 59% center; } .home-v2-hero-inner { padding-top: 68px; padding-bottom: 75px; } .home-v2-hero h1 { font-size: clamp(34px,7vw,48px); } .home-v2-section { padding: 50px 0 57px; } .home-v2-features-grid { grid-template-columns: 1fr; gap: 16px; } .home-v2-feature-card { min-height: 355px; padding: 24px 22px 0; } .home-v2-feature-card p { max-width: 500px; } .home-v2-step { grid-template-columns: 44px 36px minmax(0,1fr); gap: 13px; } .home-v2-steps-grid { grid-template-columns: 1fr; gap: 27px; margin: 30px 0; } .home-v2-step > i { font-size: 28px; } .home-v2-segment-card img { height: 158px; } body.home-institucional .site-header .header-actions { gap: 8px; } }
@media(max-width: 575px) { .home-v2-hero { min-height: 490px; background-image: linear-gradient(90deg, #111336f0, #131332a8), var(--hero-image); } .home-v2-hero .home-v2-overline { font-size: 10px; } .home-v2-hero h1 { font-size: clamp(33px,8.2vw,43px); } .home-v2-hero p { font-size: 14px; } .home-v2-hero-actions { flex-direction: column; align-items: flex-start; } .home-v2-hero-actions .home-v2-button { width: 100%; } .home-v2-section-heading h2 { font-size: 26px; } .home-v2-section-heading p { font-size: 13px; } .home-v2-segment-grid { grid-template-columns: 1fr; } .home-v2-segment-card img { height: 190px; } .home-v2-segment-card p { font-size: 13px; } .home-v2-final-action .home-v2-button { width: 100%; text-align: center; } dialog.home-lead-dialog { padding: 30px 20px 24px; } .home-lead-dialog h2 { font-size: 25px; } body.home-institucional .site-header .header-inner { min-height: 70px; } }
@media(prefers-reduced-motion: reduce) { .home-v2-button, .home-v2-segment-card { transition: none; } }

@media(max-width: 767px) { body.home-institucional .site-header .home-cta-desktop { display: none; } body.home-institucional .site-header .home-cta-mobile { display: inline; } body.home-institucional .site-header .home-cta-full { display: none; } body.home-institucional .site-header .header-actions .btn-brand { padding: 9px 12px; font-size: 12px; } body.home-institucional .site-header .header-actions .btn-outline-light { padding: 9px 10px; font-size: 12px; } }

/* =========================================================
   HOME - MODAL DE CONTATO COMPACTO PARA NOTEBOOKS
   Reduz apenas espacamentos verticais. Mantem a rolagem
   como seguranca em janelas muito baixas ou com zoom alto.
   ========================================================= */
@media screen and (min-width: 768px) and (max-height: 850px) {
    dialog.home-lead-dialog {
        padding: 23px 36px 20px;
        max-height: calc(100dvh - 24px);
    }

    .home-lead-eyebrow {
        margin-bottom: 8px;
    }

    .home-lead-dialog h2 {
        font-size: 26px;
        margin-bottom: 9px;
    }

    .home-lead-dialog > p {
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .home-lead-field {
        margin-bottom: 10px;
    }

    .home-lead-field label {
        margin-bottom: 4px;
    }

    .home-lead-field input {
        min-height: 41px;
        height: 41px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .home-lead-submit {
        min-height: 44px;
        margin-top: 4px;
    }

    .home-lead-consent {
        margin-top: 8px;
        line-height: 1.45;
    }
}
