/* ============================================================
   CBDnosus.org — folha de estilo única do site público
   Mobile-first.
   ============================================================ */

:root {
    --verde-escuro: #1f4d2b;
    --verde:        #2d6a3e;
    --verde-claro:  #4a8f5c;
    --verde-suave:  #e6efe8;
    --verde-footer: #0f2a17;    /* tom mais profundo só pra o rodapé */
    --bg:           #fafbf8;
    --bg-card:      #ffffff;
    --texto:        #1f2a24;
    --texto-suave:  #5b6660;
    --neutro:       #d8ddd6;
    --whatsapp:     #25d366;
    --radius:       12px;
    --shadow-sm:    0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md:    0 6px 20px rgba(0, 0, 0, .08);
    --maxw:         1280px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

/* Em telas > 1280, mostra um "fundo de página" azul-escuro nas laterais do layout boxed */
html { background: #001551; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--texto);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    max-width: var(--maxw);     /* boxed em desktop (1280); mobile fica 100% */
    margin: 0 auto;
    box-shadow: 0 0 32px rgba(0, 0, 0, .35);   /* contorno sutil do box em telas largas */
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--verde);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--verde-escuro); text-decoration: underline; }

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--verde-escuro);
    margin: 0 0 .6em;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HERO — background full-bleed do topo
   Imagem nativa: 1658 x 701 (proporção ~2.365:1).
   Usamos aspect-ratio casado com a imagem + background-size 100% 100%
   pra a imagem aparecer SEMPRE inteira, sem corte, em qualquer largura.
   ============================================================ */
.site-hero {
    position: relative;
    width: 100%;
    max-width: var(--maxw);     /* boxed em desktop (até 1280) */
    margin: 0 auto;
    aspect-ratio: 1658 / 701;
    background-image: url('/topo.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
    padding: 0;
    border: 0;
}

/* ============================================================
   NAV — absolute sobre o hero, itens à direita
   ============================================================ */
.site-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 14px 20px;
    gap: 12px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.nav-links a {
    display: inline-block;
    color: #ffffff;
    font-weight: 500;
    font-size: .95rem;
    padding: 8px 14px;
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    transition: background .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, .18);
    text-decoration: none;
}

/* hambúrguer — escondido em desktop */
.nav-toggle {
    display: none;
    background: rgba(0, 0, 0, .35);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

/* ============================================================
   Mobile — hambúrguer à direita, painel deslizante
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(78vw, 320px);
        background: rgba(31, 77, 43, .98);
        backdrop-filter: blur(6px);
        flex-direction: column;
        align-items: stretch;
        padding: 76px 22px 22px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform .28s ease;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .25);
    }
    .nav-links.open { transform: translateX(0); }

    .nav-links a {
        font-size: 1.05rem;
        padding: 12px 14px;
        text-shadow: none;
    }
    .nav-links a.active { background: rgba(255, 255, 255, .14); }

    /* anima hambúrguer pra X quando aberto */
    .nav-toggle[aria-expanded="true"] { position: fixed; top: 14px; right: 20px; z-index: 5; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   MAIN
   ============================================================ */
.site-main {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 20px 48px;   /* topo curto pra colar o título no hero; rodapé mantém respiro */
}

/* ============================================================
   HOME — fundo branco; só a faixa da galeria fica azul (#000c2e).
   Site-main vira full-bleed na home pra a faixa azul ir de borda a borda.
   ============================================================ */
body.page-home {
    background: #ffffff;
}
body.page-home .site-main {
    max-width: var(--maxw);    /* boxed em desktop (1280) */
    margin: 0 auto;
    padding: 0 0 40px;         /* sem padding no topo: a galeria define a margem */
    color: #000c2e;            /* texto azul sobre branco */
}
body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4 {
    color: #000c2e;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #075e54;                /* WhatsApp dark teal */
    color: #d6e6da;
    padding: 28px 0;
    margin-top: 40px;
    font-size: .92rem;
}
.site-footer a { color: #ffffff; }
.site-footer p { margin: 4px 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr auto;  /* info à esquerda, menu coluna à direita */
        gap: 40px;
    }
    .footer-menu { text-align: right; }
    .footer-menu ul { align-items: flex-end; }
}
.footer-menu h4 {
    color: #ffffff;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .08em;
    margin: 0 0 10px;
}
.footer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-menu a {
    color: #d6e6da;
    font-size: .92rem;
}
.footer-menu a:hover { color: #ffffff; text-decoration: underline; }

/* ============================================================
   WhatsApp flutuante
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    left: 22px;                /* movido pra esquerda */
    width: 72px;
    height: 72px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 50;
    transition: transform .15s ease, filter .15s ease;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28));
}
.whatsapp-float img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .32)); }

/* Balão flutuante de mensagem (acima do botão, lado esquerdo) */
.whatsapp-balao {
    position: fixed;
    bottom: 92px;
    left: 22px;
    width: min(320px, calc(100vw - 44px));
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
    padding: 14px 14px 12px;
    z-index: 51;
    animation: wa-balao-in .18s ease;
}
.whatsapp-balao[hidden] { display: none; }
@keyframes wa-balao-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.whatsapp-balao::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, .08);
}
.whatsapp-balao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--texto);
}
.whatsapp-balao-close {
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--texto-suave);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}
.whatsapp-balao-close:hover { background: var(--verde-suave); color: var(--verde-escuro); }
.whatsapp-balao-intro {
    font-size: .85rem;
    color: var(--texto-suave);
    margin: 0 0 8px;
}
.whatsapp-balao textarea {
    width: 100%;
    border: 1px solid var(--neutro);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-size: .95rem;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}
.whatsapp-balao textarea:focus {
    outline: 0;
    border-color: var(--whatsapp);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .18);
}
.whatsapp-balao-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.whatsapp-balao-actions .btn-primary {
    background: var(--whatsapp);
    color: #fff;
}
.whatsapp-balao-actions .btn-primary:hover { background: #1ebe5a; }

/* Frase de fechamento da home (acima do rodapé) */
.home-fecho {
    text-align: center;
    padding: 24px 20px 10px;   /* bottom curto pra colar no rodapé */
    color: #000c2e;
}
.home-fecho p {
    margin: 0;
    font-size: clamp(1.45rem, 3.4vw, 1.95rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.3px;
    line-height: 1.25;
}
/* Na home, reduz o gap entre a frase de fechamento e o rodapé. */
body.page-home .site-footer { margin-top: 0; }

/* No mobile, espelha o botão flutuante e o balão pro lado direito. */
@media (max-width: 768px) {
    .whatsapp-float { left: auto; right: 22px; }
    .whatsapp-balao { left: auto; right: 22px; }
    .whatsapp-balao::after { left: auto; right: 24px; }
}

/* ============================================================
   Botões
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 22px;
    background: #25d366;          /* WhatsApp green */
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #1ebe5a; color: #fff; text-decoration: none; transform: translateY(-1px); }   /* WhatsApp green hover */
.btn-primary { background: #25d366; }
.btn-primary:hover { background: #1ebe5a; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* CTA em duas linhas (home, evento gratuito): "Inscreva-se" em cima,
   "grátis" centralizado embaixo, menor e em peso normal. */
.btn-multiline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    padding-top: 10px;
    padding-bottom: 10px;
}
.btn-line { display: block; }
.btn-line-sub {
    font-weight: 400;
    font-size: 0.82em;
    margin-top: 3px;
    opacity: 0.95;
}

/* ============================================================
   Cabeçalhos genéricos / page-header
   ============================================================ */
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.page-header p  { color: var(--texto-suave); max-width: 720px; }

.empty-state {
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-align: center;
    color: var(--texto-suave);
}

/* ============================================================
   Home — intro + próximo evento
   ============================================================ */
.home-intro { text-align: center; padding: 12px 0 28px; }
.home-intro h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 12px; }
.lead { font-size: 1.1rem; color: var(--texto-suave); max-width: 760px; margin: 0 auto; }

.home-proximo { margin: 40px 0; }
.home-proximo h2 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--verde);
    margin-bottom: 18px;
}

.evento-destaque {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}
.evento-destaque-img { display: block; }
.evento-destaque-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.evento-destaque-info { padding: 24px 26px; }
.evento-destaque-info h3 { font-size: 1.4rem; margin-bottom: 8px; }
@media (min-width: 768px) {
    .evento-destaque { grid-template-columns: 1.2fr 1fr; }
    .evento-destaque-img img { aspect-ratio: auto; min-height: 280px; }
}

.home-copy {
    margin: 40px 0;
    padding: 28px;
    background: var(--verde-suave);
    border-radius: var(--radius);
    color: var(--texto);
    text-align: center;
}

/* ============================================================
   Eventos — listagem (cards agrupados por mês)
   ============================================================ */
.eventos-grupo { margin-bottom: 48px; }
.grupo-titulo {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--verde);
    border-bottom: 2px solid var(--verde-suave);
    padding-bottom: 6px;
    margin-bottom: 20px;
}

.evento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 640px)  { .evento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .evento-grid { grid-template-columns: repeat(3, 1fr); } }

.evento-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.evento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.evento-card-link { display: block; color: var(--texto); text-decoration: none; }
.evento-card-link:hover { text-decoration: none; color: var(--texto); }

.evento-card-img {
    width: 100%;
    background: var(--verde-suave);
    /* Sem aspect-ratio fixo: cada imagem mantém a proporção original */
}
.evento-card-img img {
    width: 100%;
    height: auto;
    display: block;
    /* Sem object-fit: cover — não corta a imagem */
}
.evento-card-img-placeholder {
    aspect-ratio: 16/9;     /* só o placeholder vazio mantém proporção */
    background: linear-gradient(135deg, var(--verde-suave), var(--neutro));
}

.evento-card-body { padding: 18px 18px 20px; }
.evento-card-data { font-size: .85rem; color: var(--verde); font-weight: 600; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.evento-card-titulo { font-size: 1.15rem; margin: 0 0 8px; color: var(--verde-escuro); }
.evento-card-local { font-size: .9rem; color: var(--texto-suave); margin: 0 0 8px; }
.evento-card-desc { font-size: .92rem; color: var(--texto-suave); margin: 0 0 12px; }
.evento-card-cta { font-size: .9rem; color: var(--verde); font-weight: 600; }

/* ============================================================
   Evento — detalhe
   ============================================================ */
.evento-detalhe { max-width: 880px; margin: 0 auto; }
.evento-detalhe-header { margin-bottom: 32px; }
.evento-video-top { position: relative; margin: 0 0 20px; }
.evento-detalhe-header h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 12px; }
.evento-meta { color: var(--texto-suave); font-size: .98rem; margin: 4px 0 12px; }
.evento-resumo { font-size: 1.08rem; color: var(--texto); margin: 12px 0 18px; }
.evento-valor {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    background: var(--verde-suave);
    color: var(--verde-escuro);
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
}
.evento-valor-gratis { background: #e8f5ec; color: var(--verde); }

.evento-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 28px 0;
}
@media (min-width: 640px) { .evento-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .evento-gallery { grid-template-columns: repeat(3, 1fr); } }
.evento-gallery-item { margin: 0; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.evento-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .25s ease;
    /* Sem aspect-ratio nem object-fit: a imagem aparece na proporção original */
}
.evento-gallery-item a:hover img { transform: scale(1.03); }
.evento-gallery-item figcaption { padding: 8px 12px; font-size: .85rem; color: var(--texto-suave); }

.evento-texto, .evento-copy { margin: 24px 0; line-height: 1.7; }
.evento-copy { padding: 20px; background: var(--bg-card); border-left: 4px solid var(--verde); border-radius: 6px; }
.evento-video { margin: 28px 0; }
.evento-cta-final { margin: 40px 0 0; text-align: center; padding: 32px 0; border-top: 1px solid var(--neutro); }

/* ============================================================
   Inscrição
   ============================================================ */
.inscricao-evento { margin-bottom: 28px; }
.inscricao-titulo-evento { color: var(--verde); font-size: 1.3rem; margin: 4px 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 8px; }
.breadcrumb a { color: var(--texto-suave); }

.form-inscricao { max-width: 560px; margin: 0 auto; background: var(--bg-card); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--texto); font-size: .92rem; }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--neutro);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus { outline: 0; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(45, 106, 62, .15); }
.form-row small { display: block; margin-top: 4px; color: var(--texto-suave); font-size: .82rem; }

.form-row-inline { display: flex; gap: 12px; }
.form-col { flex: 1; }
.form-col-uf { max-width: 90px; }

.form-actions { margin-top: 24px; text-align: center; }

/* ============================================================
   Alerts
   ============================================================ */
.alert { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 22px; }
.alert ul { margin: 8px 0 0 18px; }
.alert-success { background: #e8f5ec; border-left: 4px solid var(--verde); color: var(--verde-escuro); }
.alert-error   { background: #fdecea; border-left: 4px solid #c0392b; color: #8e1f12; }

/* Confirmação grande de inscrição — destaque centralizado */
.inscricao-confirmada {
    text-align: center;
    padding: 36px 24px;
    border-left: 0;
    border-top: 4px solid var(--verde);
    border-bottom: 4px solid var(--verde);
}
.inscricao-confirmada h3 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 5vw, 2.6rem);   /* ~3x maior */
    line-height: 1.15;
    color: var(--verde-escuro);
}
.inscricao-confirmada p {
    font-size: 1.1rem;
    margin: 8px 0;
}
.inscricao-confirmada .btn {
    margin-top: 14px;
    padding: 12px 28px;
    font-size: 1rem;
}

/* ============================================================
   Legislações
   ============================================================ */
.legislacao-categoria { margin-bottom: 36px; }
.legislacao-categoria h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--verde);
    border-bottom: 1px solid var(--neutro);
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.legislacao-list { display: flex; flex-direction: column; gap: 10px; }
.legislacao-item {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.legislacao-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--verde-escuro);
    list-style: none;
    position: relative;
}
.legislacao-item summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    font-size: 1.3rem;
    color: var(--verde);
    transition: transform .2s ease;
}
.legislacao-item[open] summary::after { content: '–'; }
.legislacao-texto { padding: 8px 18px 18px; color: var(--texto); line-height: 1.7; }

.legislacao-meta-total {
    margin-top: 8px;
    color: var(--texto-suave, #666);
    font-size: .95rem;
}

.legislacao-indice {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.legislacao-indice strong { display: block; margin-bottom: 10px; color: var(--verde-escuro); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.legislacao-indice ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px 18px; }
@media (min-width: 640px) { .legislacao-indice ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .legislacao-indice ul { grid-template-columns: repeat(3, 1fr); } }
.legislacao-indice a { color: var(--verde); text-decoration: none; font-size: .92rem; }
.legislacao-indice a:hover { text-decoration: underline; }
.legislacao-indice .legislacao-count { color: var(--texto-suave, #888); font-size: .85em; }

.legislacao-meta {
    margin: 0 0 12px;
    padding: 12px 18px 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    font-size: .9rem;
}
.legislacao-meta dt {
    font-weight: 600;
    color: var(--verde-escuro);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .8rem;
}
.legislacao-meta dd { margin: 0; color: var(--texto); word-break: break-word; }
.legislacao-meta a { color: var(--verde); word-break: break-all; }
.legislacao-meta a:hover { text-decoration: underline; }

/* Em destaque — bloco do marco regulatório de Barretos */
.legislacao-destaque {
    margin: 0 0 40px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(34,139,34,.07) 0%, rgba(34,139,34,.02) 100%);
    border: 2px solid var(--verde);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    position: relative;
}
.legislacao-destaque-header { margin-bottom: 18px; }
.legislacao-destaque-badge {
    display: inline-block;
    background: var(--verde);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.legislacao-destaque-header h2 {
    margin: 0 0 6px;
    color: var(--verde-escuro);
    font-size: 1.4rem;
    border: none;
    padding: 0;
}
.legislacao-destaque-header p { margin: 0; color: var(--texto); font-size: .98rem; line-height: 1.55; }
.legislacao-list--destaque { gap: 14px; }
.legislacao-item--destaque {
    border: 1px solid rgba(34,139,34,.35);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.legislacao-item--destaque summary {
    background: rgba(34,139,34,.06);
    font-weight: 600;
    color: var(--verde-escuro);
}
.legislacao-item--em-construcao {
    border-color: #f5b400;
    border-left-width: 6px;
    background: #fffdf3;
}
.legislacao-item--em-construcao summary {
    background: rgba(245,180,0,.12);
    color: #8a6300;
}
.legislacao-item--em-construcao summary::before {
    content: '';
    display: inline-block;
    width: 8px;
}
@media (max-width: 640px) {
    .legislacao-destaque { padding: 20px; }
    .legislacao-destaque-header h2 { font-size: 1.15rem; }
}

/* ============================================================
   Contato
   ============================================================ */
.contato-info { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 720px; }
@media (min-width: 640px) { .contato-info { grid-template-columns: repeat(2, 1fr); } }
.contato-card { background: var(--bg-card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contato-card h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--verde); margin-bottom: 8px; }

/* ============================================================
   .btn-ghost (variante usada também no site público)
   ============================================================ */
.btn-ghost {
    background: transparent;
    color: var(--verde);
    border: 1px solid var(--neutro);
}
.btn-ghost:hover { background: var(--verde-suave); color: var(--verde-escuro); text-decoration: none; }

/* ============================================================
   HOME — galeria do próximo evento (logo abaixo do hero)
   Faixa AZUL #000c2e indo de borda a borda; padding 15px nas bordas.
   ============================================================ */
.home-video-wrap {
    width: 100%;
    margin: 0;
    padding: 15px 30px 0;      /* mesmo recuo lateral da galeria; sem bottom pra colar */
    background: #000c2e;
    position: relative;
}
.home-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    background: #000;
}
.home-video-sound {
    position: absolute;
    right: 42px;
    bottom: 18px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 8px 14px;
    font: 600 14px/1 Inter, system-ui, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.home-video-sound:hover { background: rgba(0, 0, 0, .85); }

.proximo-galeria-wrap {
    width: 100%;
    margin: 0;
    padding: 15px 30px;        /* topo 15 (metade), laterais 30 (dobro), bottom 15 */
    background: #000c2e;
}
.proximo-galeria {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr; /* mobile: 1 por linha */
}
@media (min-width: 769px) {
    .proximo-galeria.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .proximo-galeria.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.proximo-galeria-item {
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    background: transparent;
    transition: transform .18s ease, box-shadow .18s ease;
}
.proximo-galeria-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
    text-decoration: none;
}
.proximo-galeria-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* ============================================================
   HOME — bloco de info do próximo evento (fundo BRANCO, texto AZUL)
   ============================================================ */
.proximo-info {
    text-align: center;
    padding: 28px 16px 8px;
    max-width: 880px;
    margin: 0 auto;
    color: #000c2e;
}
.proximo-eyebrow {
    color: #000c2e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    margin: 0 0 8px;
    opacity: .75;
}
.proximo-info h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    margin: 0 0 12px;
    color: #000c2e;
}
.proximo-info .evento-meta { color: #000c2e; opacity: .8; }
.proximo-info .evento-meta strong { color: #000c2e; opacity: 1; }
.proximo-info .evento-valor { background: rgba(0, 12, 46, .08); color: #000c2e; }
.proximo-info .evento-valor-gratis { background: #e8f5ec; color: var(--verde); }

.proximo-resumo {
    color: #000c2e;
    font-size: 1.08rem;
    margin: 14px 0 18px;
}
.proximo-texto {
    color: #000c2e;
    line-height: 1.7;
    text-align: left;
    margin: 18px auto;
    max-width: 760px;
    font-size: 1.02rem;
}
.proximo-copy {
    margin: 22px auto;
    padding: 22px 24px;
    background: #f5f7fc;
    border-left: 4px solid #000c2e;
    border-radius: 8px;
    color: #000c2e;
    text-align: left;
    max-width: 760px;
    line-height: 1.7;
}
.proximo-video {
    margin: 18px 0;
}
.proximo-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;          /* sempre lado a lado, mesmo em mobile */
    margin: 14px 0 26px;
}
.proximo-cta .btn {
    flex: 0 1 auto;
    max-width: 50%;
    text-align: center;
    white-space: normal;        /* permite quebra de linha do texto dentro do botão */
    line-height: 1.2;
    padding-left: 16px;
    padding-right: 16px;
}
.proximo-info .btn-primary {
    background: #25d366;                /* WhatsApp green */
    color: #ffffff;
}
.proximo-info .btn-primary:hover {
    background: #1ebe5a;
    color: #ffffff;
}
.proximo-info .btn-ghost {
    color: var(--verde-escuro);
    border-color: rgba(45, 106, 62, .35);
    background: transparent;
}
.proximo-info .btn-ghost:hover {
    background: var(--verde-suave);
    color: var(--verde-escuro);
}

/* ============================================================
   HOME — copies institucionais (fundo branco, texto azul)
   ============================================================ */
.home-textos {
    margin: 18px auto 0;
    display: grid;
    gap: 10px;            /* antes: 18px — distância menor entre os 2 banners */
    max-width: 880px;
    padding: 0 16px;
}
.home-textos .home-copy {
    margin: 0;            /* mata margens antigas pra o gap mandar */
    padding: 18px 22px;
    background: #f5f7fc;
    color: #000c2e;
    border-radius: 10px;
    text-align: center;
}
.home-textos .home-copy-2 {
    background: #eef1f9;
    border-left: 4px solid #000c2e;
}

/* CTA final antes do rodapé (fundo branco) */
.home-cta-final {
    text-align: center;
    margin: 28px 0 10px;
    padding: 8px 16px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;          /* sempre lado a lado */
}
.home-cta-final .btn {
    flex: 0 1 auto;
    max-width: 50%;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    padding-left: 16px;
    padding-right: 16px;
}
.home-cta-final .btn-primary {
    background: #25d366;                /* WhatsApp green */
    color: #ffffff;
}
.home-cta-final .btn-primary:hover {
    background: #1ebe5a;
    color: #ffffff;
}
.home-cta-final .btn-ghost {
    color: var(--verde-escuro);
    border: 1px solid rgba(45, 106, 62, .35);
    background: transparent;
}
.home-cta-final .btn-ghost:hover {
    background: var(--verde-suave);
    color: var(--verde-escuro);
}

/* ============================================================
   INSCRIÇÃO — formulário vem PRIMEIRO; detalhes do evento depois
   ============================================================ */
.inscricao-pagina { max-width: 880px; margin: 0 auto; }
.inscricao-evento-mini {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--neutro);
    text-align: center;
}
.inscricao-evento-mini h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0 10px; }
.inscricao-form-wrap { margin-top: 8px; }
.inscricao-form-wrap h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    text-align: center;
    color: var(--verde-escuro);
}

.inscricao-evento-detalhes {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--neutro);
}
.inscricao-evento-detalhes h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--verde-escuro);
    text-align: center;
}

/* ============================================================
   MODAL POPUP — Próximo evento
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 22, .65);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-fade .25s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body.modal-aberto { overflow: hidden; }

.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 460px;
    padding: 32px 28px 26px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: modal-slide .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modal-slide {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--texto-suave);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background .12s ease, color .12s ease;
}
.modal-close:hover { background: var(--verde-suave); color: var(--verde-escuro); }

.modal-eyebrow {
    color: var(--verde);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    margin: 0 0 6px;
}
.modal-card h3 { font-size: 1.3rem; margin: 0 0 10px; color: var(--verde-escuro); }
.modal-meta    { color: var(--texto-suave); font-size: .95rem; margin: 0 0 10px; }
.modal-resumo  { color: var(--texto); margin: 0 0 18px; }
.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.modal-actions .btn { flex: 1; min-width: 140px; text-align: center; }

/* Variante: modal exibindo banner/imagem clicável */
.modal-card--image {
    background: transparent;
    padding: 0;
    max-width: 480px;
    box-shadow: none;
    overflow: visible;
}
.modal-card--image .modal-close {
    top: -14px;
    right: -14px;
    background: #fff;
    color: #1a1a1a;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    font-size: 1.4rem;
    z-index: 2;
}
.modal-card--image .modal-close:hover { background: #f5f5f5; color: #000; }
.modal-image-link {
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.modal-image-link:hover { transform: translateY(-2px); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.modal-image-link img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   Login com Google na inscrição (.inscricao-form-wrap)
   ============================================================ */
.google-login-box { margin: 0 0 6px; }

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 10px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}
.btn-google:hover {
    background: #f7f8f8;
    color: #3c4043;
    text-decoration: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .14);
}
.btn-google-icon { width: 20px; height: 20px; flex: none; }

.google-login-hint {
    margin: 8px 0 0;
    font-size: .9rem;
    color: var(--texto-suave);
    text-align: center;
}

.ou-separador {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--texto-suave);
    font-size: .88rem;
}
.ou-separador::before,
.ou-separador::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dfe4e0;
}

.google-conectado {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--verde-suave);
    border: 1px solid #c9ddcf;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 14px;
}
.google-conectado-foto {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.google-conectado-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.google-conectado-info strong { color: var(--verde-escuro); font-size: .92rem; }
.google-conectado-info span {
    color: var(--texto-suave);
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.google-conectado-trocar {
    margin-left: auto;
    flex: none;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
.google-completar-aviso {
    margin: 0 0 18px;
    color: var(--texto);
    font-size: .96rem;
}

.input-locked {
    background: #f1f3f1 !important;
    color: var(--texto-suave) !important;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .google-conectado { flex-wrap: wrap; }
    .google-conectado-trocar { margin-left: 56px; }
}

/* ============================================================
   Validação dos campos de inscrição — não pintar de vermelho
   ao abrir a página (ex.: WhatsApp obrigatório ainda vazio).
   O erro real é mostrado pela validação do servidor (.alert-error).
   ============================================================ */
.form-inscricao input:invalid {
    box-shadow: none;
}
.form-inscricao input:invalid:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(45, 106, 62, .15);
}
