/* Repique do Tambor — tokens do Guia de Identidade Visual */
@font-face {
  font-family: "Mango Grotesque";
  src: url("../fonts/MangoGrotesque-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --azul: #0D70FF;
  --laranja: #FF4908;
  --amarelo: #F2B707;
  --rosa: #E980D7;
  --verde: #0A9542;
  --verde-escuro: #07662D; /* só para fundos com texto pequeno (contraste 5:1 com o bege) */
  --roxo: #B094FF;
  --bege: #EBDBBB;
  --preto: #000;

  --display: "Mango Grotesque", "Anton", "Impact", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;

  /* pattern do guia, como SVG inline (nítido em qualquer escala) */
  --p-triangulos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='%23E980D7'/%3E%3Cpath d='M0 0L60 60L0 120Z M60 -60L120 0L60 60Z M60 60L120 120L60 180Z' fill='%23FF4908'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--verde);
  color: var(--bege);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 72px; }

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
  font-synthesis: none;
}
.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--preto); color: var(--bege); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- pills e botões ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: .55rem 1.1rem; border-radius: 16px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .95;
  text-decoration: none;
}
.pill--azul { background: var(--azul); color: var(--bege); }
.pill--amarelo { background: var(--amarelo); color: var(--preto); }
.pill--verde { background: var(--verde); color: var(--bege); }
.pill--bege { background: var(--bege); color: var(--preto); }
.pill--lg { padding: .9rem 1.5rem; font-size: clamp(1.4rem, 2.4vw, 2rem); border-radius: 22px; }
.pill .bar { width: 2px; align-self: stretch; background: currentColor; opacity: .85; }
.pill small { font-size: .7em; font-weight: 600; }
.pill .sm { font-size: .8em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 900 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; text-decoration: none;
  background: var(--preto); color: var(--bege);
  border: 3px solid var(--preto); border-radius: 16px; padding: .55rem 1.2rem .5rem;
  cursor: pointer; transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .2s, color .2s;
}
.btn:hover { background: var(--bege); color: var(--preto); transform: translateY(-2px) rotate(-1deg); }
.btn--bege { background: var(--bege); color: var(--preto); border-color: var(--bege); }
.btn--bege:hover { background: var(--amarelo); border-color: var(--amarelo); }
.btn--lg { font-size: 1.7rem; padding: .7rem 1.5rem .62rem; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--verde-escuro) 94%, transparent);
  backdrop-filter: blur(8px);
}
.logo { display: block; color: var(--bege); width: 50px; aspect-ratio: 132 / 152; background: currentColor;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat; mask: url("../img/logo.svg") center / contain no-repeat; }
.logo--lg { width: 64px; }
.brand .logo { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .logo { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em;
  padding: .3rem 0; background: linear-gradient(var(--amarelo), var(--amarelo)) 0 100% / 0 3px no-repeat;
  transition: background-size .25s;
}
.nav a:hover { background-size: 100% 3px; }
.topbar__date { font-size: 1.4rem; padding: .45rem .9rem; }
@media (max-width: 620px) { .topbar__date { display: none; } .nav { gap: 1.1rem; } .nav a { font-size: .8rem; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding-top: 80px;
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 2.4vw, 1.8rem);
  padding: clamp(24px, 4vw, 56px) var(--gutter);
}
.hero__lede { font-weight: 600; text-transform: uppercase; font-size: clamp(.85rem, 1.2vw, 1.05rem); max-width: 34ch; color: var(--preto); }
.hero__title { font-size: clamp(3.4rem, 7vw, 7rem); }
.hero__title .line { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.12em; white-space: nowrap; }
.hero__title .line > span { display: block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.9,.2,1) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__info { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__stage {
  position: relative; overflow: hidden; min-height: 520px;
  isolation: isolate;
}
.hero__stage::after { /* pattern em movimento (transform = sem repintura) */
  content: ""; position: absolute; inset: 0 0 0 -120px; z-index: -2;
  background: var(--p-triangulos) 0 0 / 120px 120px;
  animation: drift 14s linear infinite;
}
.hero__stage::before { /* triângulo azul como no key visual */
  content: ""; position: absolute; inset: 0; background: var(--azul); z-index: -1;
  clip-path: polygon(100% 22%, 100% 100%, 64% 100%); opacity: .95;
}
.layer { position: absolute; inset: 0; transform: translate(calc(var(--mx, 0) * var(--d, 0) * 1px), calc(var(--my, 0) * var(--d, 0) * 1px)); transition: transform .25s ease-out; pointer-events: none; }
.layer img { position: absolute; }
.hero__man { height: 78%; left: 50%; top: 14%; translate: -52% 0; }
.inst--djembe { height: 50%; right: 1%; top: 22%; rotate: 4deg; }
.inst--sax { height: 36%; left: 4%; bottom: 6%; rotate: -4deg; }
.inst--pandeiro { width: 30%; left: 6%; top: 9%; rotate: -8deg; }
.inst--caixa { width: 26%; right: 6%; bottom: 5%; rotate: 8deg; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { min-height: 120vw; }
  .hero__title { font-size: clamp(3rem, 15vw, 6rem); }
}

/* ---------- flutuação / entrada ---------- */
@keyframes rise { to { transform: none; } }
@keyframes drift { to { transform: translateX(120px); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.6deg); } }
@keyframes beat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.045); } 24% { transform: scale(1); } 36% { transform: scale(1.03); } 48% { transform: scale(1); } }
.float { animation: float 5.2s ease-in-out infinite; }
.f1 { animation-duration: 4.6s; animation-delay: -1s; }
.f2 { animation: beat 2s ease-in-out infinite; transform-origin: 50% 80%; }
.f3 { animation-duration: 5.8s; animation-delay: -2.2s; }
.f4 { animation-duration: 6.4s; animation-delay: -.6s; }
.f5 { animation-duration: 5s; animation-delay: -3s; }

.js .reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- ticker ---------- */
.ticker { background: var(--laranja); color: var(--preto); overflow: hidden; padding: .7rem 0; border-block: 4px solid var(--preto); }
.ticker__track { display: flex; width: max-content; gap: 1.6rem; align-items: center; animation: marquee 28s linear infinite; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; }
.ticker__track i { width: 16px; height: 16px; background: var(--amarelo); clip-path: polygon(0 0, 100% 50%, 0 100%); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.4rem, 3vw, 2.6rem); }
.section-title { font-size: clamp(3.4rem, 9vw, 7.5rem); }
.section-note { font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35; text-align: right; }
@media (max-width: 700px) { .section-note { text-align: left; } }
.prog .section-head { align-items: center; }
.prog .pill { font-size: clamp(1.4rem, 2.6vw, 2rem); padding: .6rem 1.2rem; transform: rotate(-3deg); }

.shows { background: var(--azul); padding: clamp(48px, 8vw, 110px) 0; }
.shows .section-note { color: var(--preto); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: clamp(14px, 2vw, 24px); }

.show { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--c); color: var(--preto); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.show:hover { transform: translateY(-6px) rotate(-.6deg); }
.show--amarelo { --c: var(--amarelo); }
.show--azul    { --c: var(--bege); } /* card azul sobre fundo azul: usa o bege para separar do fundo */
.show--verde   { --c: var(--verde); }
.show--rosa    { --c: var(--rosa); }
.show__photo { width: 100%; height: auto; aspect-ratio: 900 / 550; object-fit: cover; }
.show__body { position: relative; padding: 1.1rem 1.3rem 1.4rem; display: grid; gap: .35rem; justify-items: start; flex: 1; }
.show__date { position: absolute; right: 1.1rem; top: -2.1rem; background: var(--preto); color: var(--bege); border-radius: 14px; padding: .5rem .8rem .35rem; font-size: 1.1rem; }
.show__date span { font-size: 2.6rem; margin-right: .1em; }
.show__name { font-size: clamp(2.2rem, 4vw, 3.2rem); padding-right: 6rem; }
.show__guest { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; min-height: 1.6em; }
.show__meta { font-size: 1.05rem; margin-bottom: .6rem; }
.show .btn { margin-top: auto; }

.band { height: 56px; background: var(--azul); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0 0 0 -112px; background: var(--p-triangulos) 0 0 / 112px 112px; animation: drift 20s linear infinite; }

.prog { background: var(--verde); padding: clamp(48px, 8vw, 110px) 0; }
.oficinas { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.6vw, 16px); }
.oficina { display: grid; grid-template-columns: clamp(110px, 18vw, 230px) 1fr auto; align-items: stretch; border-radius: var(--radius); overflow: hidden; color: var(--preto); background: var(--c); }
.oficina--laranja { --c: var(--laranja); }
.oficina--rosa    { --c: var(--rosa); }
.oficina--amarelo { --c: var(--amarelo); }
.oficina--azul    { --c: var(--azul); }
.oficina img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.oficina__body { padding: 1rem 1.3rem; display: grid; gap: .2rem; align-content: center; }
.oficina h3 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); margin-bottom: .35rem; }
.oficina p { text-transform: uppercase; font-size: .95rem; letter-spacing: .02em; }
.oficina .btn { align-self: center; margin-right: 1.2rem; }
.prog__note { margin-top: 1.4rem; font-weight: 600; color: var(--preto); }
@media (max-width: 700px) {
  .oficina { grid-template-columns: 96px 1fr; }
  .oficina .btn { grid-column: 1 / -1; margin: 0 1rem 1rem; }
  .oficina__body { padding: .8rem 1rem; }
}

.local { background: var(--amarelo); color: var(--preto); padding: clamp(48px, 8vw, 110px) 0 0; overflow: hidden; }
.local__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 2rem; }
.local__big { padding-bottom: clamp(40px, 6vw, 90px); display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.local__big h2 { font-size: clamp(3.8rem, 11vw, 9.5rem); }
.facts { margin: .6rem 0 0; display: grid; gap: .7rem; }
.facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.facts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.local__art img { width: min(420px, 80%); margin-inline: auto; }
@media (max-width: 760px) { .local__inner { grid-template-columns: 1fr; } .local__art img { width: 60%; } }

/* ---------- rodapé ---------- */
.foot { background: var(--bege); color: var(--preto); padding: 1.6rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.foot .logo { color: var(--verde); }
.foot__cols { display: flex; gap: 2.4rem; flex-wrap: wrap; font-weight: 700; }
.foot__cols span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.foot__cols a { text-underline-offset: 3px; }

/* ---------- modais e formulários ---------- */
dialog { border: 0; padding: 0; background: var(--bege); color: var(--preto); border-radius: 26px; width: min(520px, calc(100% - 24px)); max-height: calc(100svh - 24px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.dlg__close-wrap { position: absolute; right: 12px; top: 10px; margin: 0; }
.dlg__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--preto); }
.dlg__close:hover { background: rgba(0,0,0,.08); }
.form, .done { padding: 1.6rem 1.5rem 1.5rem; display: grid; gap: 1rem; }
.form h2, .done h2 { font-size: 3rem; padding-right: 3rem; }
.dlg__sub { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: -.4rem; }
.dlg__lead { font-size: .98rem; }
.field { display: grid; gap: .3rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding: 0; }
.field small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input:not([type=checkbox]) { font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 2px solid var(--preto); border-radius: 12px; background: #fff; color: var(--preto); width: 100%; }
.field input[aria-invalid="true"] { border-color: #B3261E; background: #FFF1EF; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; cursor: pointer; padding: .2rem 0; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--verde-escuro); flex: none; }
fieldset.field { gap: .15rem; }
.form__legal { font-size: .8rem; opacity: .85; }
.form__error { color: #8C1D18; font-weight: 700; font-size: .95rem; }
.form__actions { display: grid; gap: .7rem; justify-items: center; }
.form__actions .btn { width: 100%; }
.link { background: none; border: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--preto); padding: .4rem; }
.done { text-align: left; justify-items: start; }
.done .btn { width: 100%; }

/* ---------- política de privacidade ---------- */
.doc { background: var(--bege); color: var(--preto); min-height: 100svh; padding: 100px 0 60px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 1rem; }
.doc h2 { font: 800 1.25rem/1.3 var(--body); margin: 2rem 0 .5rem; }
.doc p, .doc li { margin-bottom: .6rem; }
.doc .draft { background: var(--amarelo); border-radius: 12px; padding: .8rem 1rem; font-weight: 600; margin-bottom: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__title .line > span, .js .reveal { transform: none; opacity: 1; }
}
