/* =========================================================
   Bloco Superbacana – estilos do site (sem Mobirise)
   ========================================================= */

:root {
    --amarelo: #fbf24f;
    --amarelo-contato: #fdc945;
    --azul: #1891cd;
    --verde: #6cea53;
    --vermelho: #ff494c;
    --vinho: #92132f;
    --vermelho-poster: #9e1508; /* cor de fundo da arte do Carnaval 2026 */
    --rosa: #cc2952;
    --escuro: #2e2e2e;
    --texto: #1b1b1b;
    --branco: #fff;

    --fonte: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --largura: 1140px;
    --topo-altura: 84px;
    --raio: 14px;
    --sombra: 0 10px 30px rgba(0, 0, 0, .12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--fonte);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--texto);
    background: var(--branco);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

section[id], #historia { scroll-margin-top: var(--topo-altura); }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--escuro); color: var(--branco);
    padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

/* ---------- Topo / menu ---------- */

.topo {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: var(--amarelo);
    transition: box-shadow .3s;
}
.topo.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }

/* No topo da página o menu fica transparente sobre a capa (como no site antigo);
   ao rolar ou abrir o menu no celular, volta o fundo amarelo. */
.js .topo { transition: box-shadow .3s, background-color .3s; }
.js .topo:not(.is-scrolled):not(.is-menu-open) { background: transparent; }
.js .topo:not(.is-scrolled):not(.is-menu-open) .topo__links a:not(:hover) { color: var(--branco); }
.js .topo:not(.is-scrolled):not(.is-menu-open) .topo__redes a { color: var(--branco); }
.js .topo:not(.is-scrolled):not(.is-menu-open) .topo__toggle span { background: var(--branco); }

.topo__nav {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 20px;
    min-height: var(--topo-altura);
}

.topo__logo img {
    height: 72px; width: auto;
    transition: height .3s;
}
.topo.is-scrolled .topo__logo img { height: 56px; }

.topo__menu { display: flex; align-items: center; gap: 28px; }

.topo__links, .topo__redes {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 4px;
}

.topo__links a {
    display: block;
    padding: 8px 12px;
    font-weight: 700; font-size: .95rem;
    text-decoration: none; text-transform: uppercase; letter-spacing: .03em;
    border-radius: 999px;
    transition: background-color .2s, color .2s;
}
.topo__links a:hover, .topo__links a.is-active { background: var(--escuro); color: var(--amarelo); }

.topo__redes a {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    color: var(--rosa); font-size: 1.15rem;
    border-radius: 50%;
    transition: transform .2s, background-color .2s;
}
.topo__redes a:hover { transform: translateY(-2px); background: rgba(0, 0, 0, .08); }

.topo__toggle {
    display: none;
    width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
    position: relative;
}
.topo__toggle span {
    position: absolute; left: 10px; right: 10px; height: 3px;
    background: var(--escuro); border-radius: 3px;
    transition: transform .3s, opacity .3s, top .3s;
}
.topo__toggle span:nth-child(1) { top: 13px; }
.topo__toggle span:nth-child(2) { top: 21px; }
.topo__toggle span:nth-child(3) { top: 29px; }
.topo__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.topo__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topo__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 991px) {
    .topo__toggle { display: block; }
    .topo__menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 8px;
        background: var(--amarelo);
        padding: 8px 20px 20px;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .12);
        visibility: hidden; opacity: 0; transform: translateY(-10px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .topo__menu.is-open { visibility: visible; opacity: 1; transform: none; }
    .topo__links { flex-direction: column; align-items: stretch; }
    .topo__links a { padding: 12px 16px; font-size: 1.05rem; }
    .topo__redes { justify-content: center; }
    .topo__logo img { height: 60px; }
}

/* ---------- Capa e foto destaque ---------- */

/* Altura útil da tela abaixo do menu fixo (svh evita o "pulo" da barra do navegador no celular) */
:root { --tela: 100vh; }
@supports (height: 100svh) { :root { --tela: 100svh; } }

/* Capa em tela cheia: o menu fica transparente por cima. O fundo tem a mesma cor
   do pôster, então as laterais se fundem com a imagem em qualquer formato de tela. */
.capa {
    height: var(--tela); min-height: 420px;
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--topo-altura) + 12px) 16px 28px;
    background: var(--vermelho-poster);
}
.capa img { width: 100%; height: 100%; object-fit: contain; }

/* Foto e Quem Somos ocupam a tela inteira abaixo do menu */
.foto-destaque { height: calc(var(--tela) - var(--topo-altura)); min-height: 320px; background: var(--vermelho-poster); }
.foto-destaque img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Seções ---------- */

/* Cada seção ocupa no mínimo a tela inteira abaixo do menu; o título fica colado no topo */
.secao {
    min-height: calc(var(--tela) - var(--topo-altura));
    padding: clamp(20px, 2.5vw, 32px) 0 clamp(56px, 8vw, 96px);
}
.secao__titulo:first-child { margin-top: 0; }

.secao__titulo {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: .25em;
}
.secao__subtitulo { font-size: 1.2rem; font-weight: 400; margin-bottom: 2em; }

.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: 12px 26px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    text-decoration: none; border-radius: 999px;
    transition: background-color .2s, color .2s, transform .2s;
}
.btn--outline { border: 2px solid currentColor; }
.btn--outline:hover { background: var(--branco); color: var(--azul); transform: translateY(-2px); }

/* Quem somos */
.quem-somos {
    color: var(--branco);
    background: linear-gradient(45deg, var(--azul), var(--verde));
}
.quem-somos__grid {
    display: grid; gap: 48px; align-items: start;
    grid-template-columns: 1fr 1.2fr;
}
@media (max-width: 860px) { .quem-somos__grid { grid-template-columns: 1fr; } }

.video {
    position: relative; aspect-ratio: 16 / 9;
    border-radius: var(--raio); overflow: hidden;
    box-shadow: var(--sombra); background: #000;
}
.video iframe, .video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { padding: 0; cursor: pointer; background: #000; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video__play:hover img { opacity: 1; }
.video__icone {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 76px; height: 54px; border-radius: 14px;
    display: grid; place-items: center;
    background: #f00; color: #fff; font-size: 28px;
    transition: transform .2s;
}
.video__play:hover .video__icone { transform: translate(-50%, -50%) scale(1.08); }

/* Nossa história (dentro do Quem Somos): três cartões translúcidos sobre o degradê */
.historia__titulo {
    font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 900;
    margin: clamp(48px, 6vw, 72px) 0 24px;
}
.historia__lista {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.historia__card {
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--raio);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}
.historia__card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.historia__card p { margin: 0; padding: 20px 22px 24px; line-height: 1.6; }
.js .historia__card:nth-child(2) { transition-delay: .1s; }
.js .historia__card:nth-child(3) { transition-delay: .2s; }

/* Agenda */
.agenda { background: var(--vermelho); color: var(--branco); }
.agenda__grupo { font-size: 1.5rem; margin: 0 0 1em; }
.agenda__aviso {
    background: rgba(255, 255, 255, .15);
    padding: 18px 22px; border-radius: var(--raio);
    font-size: 1.15rem;
}
.agenda__aviso a { font-weight: 700; }
.agenda__lista { display: grid; gap: 16px; }

.evento {
    display: grid; grid-template-columns: 96px 1fr; gap: 20px;
    background: var(--branco); color: var(--texto);
    padding: 20px; border-radius: var(--raio);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.evento__data {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--amarelo); border-radius: 10px;
    padding: 10px 6px; line-height: 1.05; text-align: center;
}
.evento__dia { font-size: 2rem; font-weight: 900; }
.evento__mes { font-weight: 700; letter-spacing: .08em; }
.evento__ano { font-size: .85rem; opacity: .75; }
.evento__titulo { font-size: 1.25rem; margin-bottom: .2em; }
.evento__quando { color: #555; margin-bottom: .4em; }
.evento__onde { display: flex; gap: .4em; align-items: baseline; margin-bottom: .4em; }
.evento__onde .icon { color: var(--vermelho); align-self: center; }
.evento__onde a { color: var(--azul); }
.evento__link {
    display: inline-flex; align-items: center; gap: .3em;
    font-weight: 700; color: var(--vinho); text-decoration: none;
}
.evento__link:hover { text-decoration: underline; }
@media (max-width: 520px) {
    .evento { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; }
    .evento__dia { font-size: 1.6rem; }
}

.agenda__passados { margin-top: 40px; }
.agenda__passados summary {
    cursor: pointer; list-style: none;
    display: inline-flex; align-items: center; gap: .5em;
    font-size: 1.25rem; font-weight: 700;
    padding: 10px 20px; border: 2px solid var(--branco); border-radius: 999px;
}
.agenda__passados summary::-webkit-details-marker { display: none; }
.agenda__passados summary::after { content: '+'; font-size: 1.4rem; line-height: 1; }
.agenda__passados[open] summary::after { content: '–'; }
.agenda__passados summary span { font-weight: 400; opacity: .85; }
.agenda__lista--passados { margin-top: 20px; }
.agenda__lista--passados .evento { opacity: .92; }
.agenda__lista--passados .evento__data { background: #eee; }

/* Galeria */
.grade-fotos {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grade-fotos a {
    position: relative; display: block; overflow: hidden;
    border-radius: 10px; aspect-ratio: 4 / 3;
}
.grade-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grade-fotos__zoom {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 2.2rem; color: var(--branco);
    background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s;
}
.grade-fotos a:hover img, .grade-fotos a:focus-visible img { transform: scale(1.06); }
.grade-fotos a:hover .grade-fotos__zoom, .grade-fotos a:focus-visible .grade-fotos__zoom { opacity: 1; }

/* Imprensa */
.imprensa { background: #f6f6f6; }
.imprensa__video { max-width: 860px; margin-inline: auto; }

/* Clipping 2026: o fundo de cada seção é a cor de fundo da própria arte */
.clipping {
    min-height: calc(var(--tela) - var(--topo-altura));
    display: flex; align-items: center;
}
.clipping--amarelo  { background: #f0e301; }
.clipping--azul     { background: #168eca; }
.clipping--vermelho { background: #fe0000; }
.clipping--verde    { background: #008359; color: var(--branco); }
.clipping__conteudo {
    display: flex; flex-direction: column; align-items: center; gap: 28px;
    padding-top: 0; padding-bottom: 0;
}
.clipping__arte { display: block; width: 100%; max-width: 800px; cursor: zoom-in; }
.clipping__arte img { width: 100%; height: auto; }
.clipping__arte:focus-visible { outline: 4px solid var(--escuro); outline-offset: 4px; }
.clipping__acoes {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    padding-bottom: 56px;
}
.btn--claro { background: var(--branco); color: var(--escuro); }
.btn--claro:hover { background: var(--amarelo); color: var(--escuro); transform: translateY(-2px); }
.clipping .btn--outline:hover { color: #008359; }
.clipping .btn { white-space: nowrap; }
.btn__info { font-size: .8em; font-weight: 500; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Contato */
.contato { background: var(--amarelo-contato); }
.contato__grid {
    display: grid; gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contato__bloco h3 { font-size: 1.25rem; margin-top: .5em; }
.contato__bloco a {
    display: inline-flex; align-items: center; gap: .4em;
    font-weight: 500; text-decoration: none; word-break: break-word;
}
.contato__bloco a:hover { text-decoration: underline; }
.contato__bloco .btn--escuro {
    background: var(--escuro); color: var(--amarelo-contato);
    font-size: .9rem; padding: 12px 22px;
}
.contato__bloco .btn--escuro:hover { background: var(--rosa); color: var(--branco); text-decoration: none; transform: translateY(-2px); }

.redes {
    list-style: none; margin: 48px 0 0; padding: 0;
    display: flex; justify-content: center; gap: 14px;
}
.redes a {
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--escuro); color: var(--amarelo-contato); font-size: 1.35rem;
    transition: transform .2s, background-color .2s;
}
.redes a:hover { transform: translateY(-3px); background: var(--rosa); color: var(--branco); }

/* Rodapé */
.rodape {
    background: var(--escuro); color: var(--branco);
    text-align: center; padding: 28px 20px; font-size: .95rem;
}
.rodape p { margin: 0; }
.rodape a { color: var(--amarelo); }

/* ---------- Animação ao rolar (substitui viewportchecker + animate.css) ---------- */

.js .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Seções focadas pela navegação não ganham contorno */
section[tabindex="-1"]:focus { outline: none; }

/* "Reduzir movimento": a rolagem suave entre seções continua (como no site antigo)
   e as entradas viram só um esmaecimento, sem deslocamento.
   Não mexe no GLightbox: ele depende do fim da animação para fechar. */
@media (prefers-reduced-motion: reduce) {
    .js .reveal { transform: none; transition: opacity .5s ease; }
}
