/* ============================================================
   Cultura de Paz — Diálogos e interações artísticas
   Folha de estilo principal
   ============================================================ */

:root{
  /* --- paleta institucional (não alterar sem aprovação) --- */
  --navy:#202a4d;
  --navy-deep:#161d38;
  --cream:#f6efe2;
  --cream-2:#efe4d0;
  --ink:#1c1c1c;
  --red:#e0483f;
  --green:#1f9d63;
  --marigold:#f2a53b;
  --blue:#2c86c9;

  /* --- cores semânticas: correspondência FIXA por frente de ação ---
     vermelho = música · verde = exposição · azul = oficinas
     Use sempre estas variáveis (nunca --red/--green/--blue direto)
     em tags, badges, bullets e ícones ligados a uma atividade.      */
  --c-musica:var(--red);
  --c-exposicao:var(--green);
  --c-oficina:var(--blue);

  --muted:#5b6382;
  --body:#42496a;
  --line:rgba(32,42,77,0.16);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  background:var(--cream);
  color:var(--navy);
  font-family:'Work Sans', system-ui, -apple-system, sans-serif;
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ font-family:'Fraunces', Georgia, serif; font-weight:700; letter-spacing:-0.01em; color:var(--navy); }
.mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; letter-spacing:0.03em; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }

.wrap{ max-width:1160px; margin:0 auto; padding:0 32px; }
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* foco visível consistente em toda a UI (acessibilidade) */
:focus-visible{ outline:3px solid var(--marigold); outline-offset:3px; border-radius:4px; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--navy); color:var(--cream);
  padding:12px 20px; border-radius:0 0 10px 0; font-weight:600;
}
.skip-link:focus{ left:0; }

/* ---------- HEADER / NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,239,226,0.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav.wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; gap:16px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:34px; height:34px; object-fit:contain; }

/* REGRA OBRIGATÓRIA: "CULTURA DE PAZ" e "Diálogos e interações artísticas"
   compartilham exatamente a mesma margem esquerda. O <small> é display:block
   dentro do mesmo bloco de texto — não envolver em wrapper com padding/indent. */
.brand-word{ font-family:'Fraunces', Georgia, serif; font-weight:700; font-size:1.05rem; line-height:1.1; }
.brand-word small{
  display:block; font-family:'Work Sans', sans-serif; font-weight:500;
  font-size:0.62rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted);
}

.nav-links{ list-style:none; display:flex; gap:34px; }
.nav-links a{ font-size:0.92rem; font-weight:500; position:relative; padding:6px 0; display:inline-block; }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--red); transition:width .25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after{ width:100%; }

.nav-cta{
  background:var(--navy); color:var(--cream); padding:11px 22px; border-radius:100px;
  font-size:0.88rem; font-weight:600; white-space:nowrap;
}
.nav-cta:hover{ background:var(--navy-deep); }

.nav-toggle{
  display:none; width:44px; height:44px; border:1px solid var(--navy); border-radius:12px;
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--navy); transition:transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero{ position:relative; padding:96px 0 40px; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.76rem;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--navy);
  background:var(--cream-2); border:1px solid var(--line);
  padding:7px 14px; border-radius:100px; margin-bottom:26px;
}
.eyebrow .dots{ display:flex; gap:4px; }
.eyebrow .dots span{ width:6px; height:6px; border-radius:50%; }

.hero h1{ font-size:clamp(2.4rem, 5vw, 3.6rem); line-height:1.03; }
.hero h1 em{ font-style:normal; background:linear-gradient(180deg, transparent 62%, rgba(224,72,63,0.28) 62%); }
.hero p.lead{ margin-top:22px; max-width:46ch; font-size:1.08rem; color:var(--body); }
.hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

.btn{ padding:14px 26px; border-radius:100px; font-weight:600; font-size:0.94rem; display:inline-flex; align-items:center; gap:8px; }
.btn-primary{ background:var(--navy); color:var(--cream); }
.btn-primary:hover{ background:var(--navy-deep); }
.btn-ghost{ border:1.5px solid var(--navy); color:var(--navy); }
.btn-ghost:hover{ background:var(--navy); color:var(--cream); }

.hero-badges{ display:flex; gap:10px; margin-top:30px; flex-wrap:wrap; }
.badge{
  font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.72rem;
  letter-spacing:0.05em; text-transform:uppercase; padding:6px 12px;
  border-radius:100px; border:1px dashed var(--navy); color:var(--navy);
}

.hero-bird{ position:relative; min-height:420px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding-bottom:8px; }
.hero-bird img.bird-img{
  width:100%; max-width:380px; height:auto; opacity:0;
  transform:scale(.92) translateY(10px);
  animation:birdIn .8s cubic-bezier(.2,.8,.2,1) .2s forwards;
}
/* régua de apoio no hero — presença obrigatória, não remover */
.hero-support{ width:100%; max-width:380px; margin-top:18px; opacity:0; animation:birdIn .8s cubic-bezier(.2,.8,.2,1) .5s forwards; }
.hero-support img{ width:100%; height:auto; }
@keyframes birdIn{ from{ opacity:0; transform:scale(.92) translateY(10px);} to{ opacity:1; transform:scale(1) translateY(0);} }

/* ---------- STATS ---------- */
.stats{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--cream-2); }
.stats .wrap{ display:grid; grid-template-columns:repeat(4,1fr); }
.stat{ padding:28px 20px; border-left:1px solid var(--line); text-align:left; }
.stat:first-child{ border-left:none; }
.stat .num{ font-family:'Fraunces', Georgia, serif; font-size:2.1rem; font-weight:700; }
.stat .lbl{ font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin-top:4px; }

/* ---------- SEÇÕES ---------- */
section{ padding:96px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head .eyebrow{ margin-bottom:18px; }
.section-head h2{ font-size:clamp(1.9rem, 3.4vw, 2.6rem); line-height:1.1; }
.section-head p{ margin-top:16px; color:var(--body); font-size:1.02rem; }

/* ---------- SOBRE ---------- */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.about-grid p{ color:#3b415e; margin-bottom:16px; }
.about-list{ list-style:none; margin-top:22px; }
.about-list li{ display:flex; gap:14px; padding:16px 0; border-top:1px solid var(--line); }
.about-list li:last-child{ border-bottom:1px solid var(--line); }
.dot{ width:10px; height:10px; border-radius:50%; margin-top:6px; flex-shrink:0; }
.about-list b{ font-family:'Fraunces', Georgia, serif; font-weight:600; }

/* ---------- PILARES ---------- */
.pillars{ background:var(--navy); color:var(--cream); }
.pillars .section-head h2{ color:var(--cream); }
.pillars .section-head p{ color:#c7cbe0; }
.pillar-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.pillar{
  background:rgba(246,239,226,0.05); border:1px solid rgba(246,239,226,0.16);
  border-radius:18px; padding:32px 28px; transition:transform .25s ease, background .25s ease;
}
.pillar:hover{ transform:translateY(-6px); background:rgba(246,239,226,0.09); }
.pillar .tag{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', ui-monospace, monospace; font-weight:600; margin-bottom:22px; color:var(--navy-deep);
}
.pillar h3{ color:var(--cream); font-size:1.3rem; margin-bottom:10px; }
.pillar p{ color:#c7cbe0; font-size:0.94rem; }
.pillar .count{ margin-top:20px; font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.78rem; color:#9aa1c2; text-transform:uppercase; letter-spacing:0.05em; }

/* ---------- ROTA (elemento de assinatura) ---------- */
.route{ overflow:hidden; }
.route-track-wrap{ position:relative; margin-top:20px; padding:70px 0 30px; }
.route-line{ position:absolute; left:0; right:0; top:77px; height:2px; background:repeating-linear-gradient(90deg, var(--navy) 0 10px, transparent 10px 20px); }
.route-track{ display:flex; gap:64px; overflow-x:auto; padding:0 4px 20px; scrollbar-width:thin; list-style:none; }
.stop{ flex:0 0 auto; text-align:center; position:relative; width:120px; }
.stop .pin{ display:block; width:14px; height:14px; border-radius:50%; background:var(--navy); margin:0 auto 18px; position:relative; z-index:2; border:3px solid var(--cream); box-shadow:0 0 0 2px var(--navy); }
.stop .date{ display:block; font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.7rem; color:var(--muted); margin-bottom:4px; }
.stop .city{ display:block; font-family:'Fraunces', Georgia, serif; font-weight:600; font-size:0.98rem; line-height:1.3; }

.flying-bird{ position:absolute; top:32px; width:64px; height:auto; animation:flyRoute 9s linear infinite; z-index:3; }
@keyframes flyRoute{
  0%   { left:0%; transform:translateY(0) scaleX(1); }
  48%  { transform:translateY(-14px) scaleX(1); }
  50%  { left:calc(100% - 46px); transform:translateY(0) scaleX(1); }
  50.01%{ transform:translateY(0) scaleX(-1); }
  98%  { transform:translateY(-14px) scaleX(-1); }
  100% { left:0%; transform:translateY(0) scaleX(-1); }
}

/* ---------- AGENDA ---------- */
.filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.chip{
  font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.76rem;
  text-transform:uppercase; letter-spacing:0.04em; padding:9px 16px;
  border-radius:100px; border:1px solid var(--navy); background:transparent;
  transition:background .2s ease, color .2s ease;
}
.chip:hover{ background:rgba(32,42,77,0.07); }
.chip[aria-pressed="true"]{ background:var(--navy); color:var(--cream); }
.chip[aria-pressed="true"]:hover{ background:var(--navy-deep); }

.agenda-count{ font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.76rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:22px; }

.agenda{ border-top:1px solid var(--line); }
.agenda-item{
  display:grid; grid-template-columns:120px 1fr 160px; align-items:center; gap:24px;
  padding:22px 4px; border-bottom:1px solid var(--line);
}
.agenda-item .date{ font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.82rem; color:var(--muted); }
.agenda-item .date b{ display:block; color:var(--navy); font-weight:500; }
.agenda-item .info h3{ font-family:'Fraunces', Georgia, serif; font-weight:600; font-size:1.08rem; }
.agenda-item .info span{ display:block; font-size:0.86rem; color:var(--muted); }
.agenda-item .info a.cta{ display:inline-block; margin-top:8px; font-size:0.84rem; font-weight:600; border-bottom:1px solid var(--navy); }
.tagpill{
  font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.68rem;
  text-transform:uppercase; padding:5px 11px; border-radius:100px; color:#fff; justify-self:start;
}
.tagpill--musica{ background:var(--c-musica); }
.tagpill--exposicao{ background:var(--c-exposicao); }
.tagpill--oficina{ background:var(--c-oficina); }

.agenda-empty{ padding:40px 4px; color:var(--muted); border-bottom:1px solid var(--line); }
.agenda-more{ display:flex; justify-content:center; margin-top:32px; }
.btn-more{ border:1.5px solid var(--navy); border-radius:100px; padding:12px 26px; font-size:0.9rem; font-weight:600; }
.btn-more:hover{ background:var(--navy); color:var(--cream); }

/* ---------- GALERIA ---------- */
.gallery{ display:grid; grid-template-columns:repeat(6,1fr); grid-auto-rows:110px; gap:14px; }
.tile{
  grid-row:span 2; border-radius:14px; position:relative; overflow:hidden;
  display:flex; align-items:flex-end; padding:14px; color:#fff;
  font-family:'IBM Plex Mono', ui-monospace, monospace; font-size:0.74rem; letter-spacing:0.04em;
}
.tile--w3{ grid-column:span 3; }
.tile--w2{ grid-column:span 2; }
.tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tile figcaption{ position:relative; z-index:2; background:rgba(0,0,0,0.42); padding:4px 9px; border-radius:6px; backdrop-filter:blur(2px); }
.tile--placeholder figcaption{ background:rgba(0,0,0,0.28); }

/* ---------- FAIXA CTA ---------- */
.cta-band{ background:var(--red); color:#fff; text-align:center; padding:90px 0; }
.cta-band h2{ color:#fff; font-size:clamp(1.9rem,4vw,2.8rem); max-width:680px; margin:0 auto 26px; }
.cta-band .btn-primary{ background:var(--navy); }

/* ---------- RODAPÉ ---------- */
footer{ background:var(--navy-deep); color:#c7cbe0; padding:64px 0 30px; }
.foot-top{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(246,239,226,0.14); }
.foot-logo img{ height:46px; width:auto; margin-bottom:14px; }
.foot-logo p{ max-width:32ch; font-size:0.88rem; }
.foot-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.foot-col h2{ font-family:'IBM Plex Mono', ui-monospace, monospace; text-transform:uppercase; font-size:0.72rem; letter-spacing:0.08em; color:#8b92b5; margin-bottom:16px; font-weight:500; }
.foot-col a{ display:block; font-size:0.9rem; padding:6px 0; color:#dfe2ef; }
.foot-col a:hover{ color:#fff; }

/* régua de apoio no rodapé — presença obrigatória, não remover */
.support-panel{ background:var(--cream); border-radius:18px; padding:30px 40px; margin-top:36px; display:flex; align-items:center; justify-content:center; }
.support-panel img{ width:100%; max-width:560px; height:auto; }
.foot-bottom{ margin-top:36px; font-size:0.78rem; color:#8b92b5; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- RESPONSIVO ---------- */
@media (max-width:880px){
  .wrap{ padding:0 20px; }
  section{ padding:72px 0; }

  .nav-toggle{ display:flex; }
  .nav-links{
    position:absolute; left:0; right:0; top:76px;
    flex-direction:column; gap:0; padding:8px 20px 20px;
    background:var(--cream); border-bottom:1px solid var(--line);
    box-shadow:0 12px 24px rgba(22,29,56,0.10);
  }
  .nav-links[hidden]{ display:none; }
  .nav-links a{ display:block; padding:14px 0; border-top:1px solid var(--line); font-size:1rem; }
  .nav-links li:first-child a{ border-top:none; }
  .nav-cta{ display:none; }

  .hero{ padding:56px 0 32px; }
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-bird{ min-height:auto; order:-1; padding-top:20px; }
  .hero-bird img.bird-img{ max-width:260px; }
  .hero-support{ max-width:300px; }

  .stats .wrap{ grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(3){ border-left:none; }

  .about-grid{ grid-template-columns:1fr; gap:32px; }
  .pillar-grid{ grid-template-columns:1fr; }

  .agenda-item{ grid-template-columns:1fr; gap:8px; }

  .gallery{ grid-template-columns:repeat(2,1fr); grid-auto-rows:170px; }
  .tile{ grid-column:span 2 !important; grid-row:span 1; }

  .support-panel{ padding:22px 20px; }
  .foot-top{ flex-direction:column; }
  .foot-cols{ gap:36px; }
}

/* ---------- MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .hero-bird img.bird-img, .hero-support{ opacity:1 !important; transform:none !important; }
  .flying-bird{ animation:none; left:0; }
}
