/* ACUCARTE · identidade da apresentação oficial: preto + vermelho + branco,
   serifa itálica (Noto Serif) nos títulos e Montserrat no texto. */
:root {
  --preto: #121212;
  --grafite: #1e1e1e;
  --grafite-2: #2a2a2a;
  --vermelho: #ee3a4c;
  --vermelho-escuro: #c81f33;
  --vermelho-claro: #f9d5d9;
  --branco: #fff;
  --gelo: #f4f1ec;
  --cinza: #6b6b6b;
  --cinza-claro: #d8d8d8;
  --texto: #222;
  --serif: 'Noto Serif', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --raio: 10px;
  --largura: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--texto); background: var(--gelo); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--vermelho-escuro); }
a:hover { color: var(--vermelho); }
:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -9999px; top: 0; background: var(--branco); padding: 8px 12px; z-index: 10; }
.pular:focus { left: 8px; }

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

/* ---------- topo ---------- */
.topo { background: var(--preto); color: var(--branco); position: sticky; top: 0; z-index: 5; border-bottom: 3px solid var(--vermelho); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.topo .marca img { height: 26px; width: auto; }
.topo nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.topo nav a { color: var(--branco); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.topo nav a:hover, .topo nav a[aria-current="page"] { border-color: var(--vermelho); color: var(--branco); }
@media (max-width: 640px) {
  .topo { position: static; }
  .topo .wrap { padding-top: 12px; padding-bottom: 8px; }
  .topo nav { gap: 2px 14px; }
  .topo nav a { font-size: 13px; }
  section { padding: 48px 0; }
}

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-style: italic; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--vermelho-escuro); }
h3 { font-size: 1.25rem; font-weight: 600; }
.rotulo { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--vermelho-escuro); margin: 0 0 8px; }
.escura .rotulo { color: var(--vermelho); }
.fio { width: 64px; border: 0; border-top: 4px solid var(--vermelho); margin: 0 0 20px; }
.lead { font-size: 1.15rem; max-width: 46em; }
.mudo { color: var(--cinza); }

/* ---------- seções ---------- */
section { padding: 72px 0; }
[id] { scroll-margin-top: 80px; }
.escura { background: var(--preto); color: var(--branco); }
.escura h2 { color: var(--branco); }
.escura .mudo { color: rgba(255, 255, 255, .72); }
.escura a { color: var(--vermelho-claro); }
.branca { background: var(--branco); }

.hero { position: relative; background: var(--preto) url('../img/fundo-estufa.jpg') center / cover no-repeat; color: var(--branco); padding: 120px 0 100px; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,.55), rgba(12,12,12,.8)); }
.hero .wrap { position: relative; }
.hero .logo { width: min(560px, 100%); height: auto; margin-bottom: 28px; }
.hero h1 { color: var(--branco); max-width: 15em; }
.hero p { font-size: 1.15rem; max-width: 36em; color: rgba(255,255,255,.88); }

.cabeca { background: var(--preto); color: var(--branco); padding: 56px 0 48px; }
.cabeca h1 { color: var(--branco); }
.cabeca p { max-width: 46em; color: rgba(255,255,255,.85); margin: 0; }

.botoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px var(--sans); padding: 12px 20px; border-radius: 999px;
  border: 2px solid var(--vermelho); background: var(--vermelho); color: var(--branco); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--vermelho-escuro); border-color: var(--vermelho-escuro); color: var(--branco); }
.btn.contorno { background: transparent; color: inherit; }
.btn.contorno:hover { background: var(--vermelho); color: var(--branco); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.grade { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.cartao { background: var(--branco); border-radius: var(--raio); padding: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05); }
.escura .cartao { background: var(--grafite); color: var(--branco); box-shadow: none; }
.cartao.ferramenta { display: flex; flex-direction: column; border-top: 4px solid var(--vermelho); }
.cartao.ferramenta p { flex: 1; }
.exemplos-marca figure { margin: 0; }
.exemplos-marca a { display: block; border-radius: var(--raio); overflow: hidden; background: var(--gelo); }
.exemplos-marca img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .2s; }
.exemplos-marca a:hover img { transform: scale(1.03); }
.exemplos-marca figcaption { font-size: 14px; margin-top: 8px; }
@media (max-width: 560px) { .exemplos-marca { grid-template-columns: 1fr 1fr; gap: 14px; } }

.numero { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--vermelho); line-height: 1; }
.numero + p { margin-top: 8px; }

blockquote { margin: 0; padding: 0 0 0 20px; border-left: 4px solid var(--vermelho); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
blockquote footer { font-family: var(--sans); font-style: normal; font-size: 14px; margin-top: 10px; color: var(--cinza); }
.escura blockquote footer { color: rgba(255,255,255,.7); }

.lista-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.lista-tags li { background: var(--gelo); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.escura .lista-tags li { background: var(--grafite-2); }

.linha-tempo { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.linha-tempo li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.linha-tempo time { font-weight: 800; color: var(--vermelho); }
@media (max-width: 560px) { .linha-tempo li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- rodapé ---------- */
.rodape { background: var(--preto); color: rgba(255,255,255,.8); padding: 40px 0; font-size: 14px; }
.rodape a { color: var(--branco); }
.rodape .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.rodape img { height: 40px; width: auto; }

/* ---------- formulários ---------- */
label { font-weight: 600; font-size: 14px; }
input[type=text], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; font: 15px var(--sans); padding: 9px 11px; border: 1px solid var(--cinza-claro); border-radius: 8px; background: var(--branco); color: var(--texto); }
input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--cinza-claro); border-radius: 8px; background: var(--branco); cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--vermelho); }
input[type=checkbox], input[type=radio] { accent-color: var(--vermelho); }

/* ---------- guia de prompts ---------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.filtros button { font: 600 14px var(--sans); border: 1px solid var(--cinza-claro); background: var(--branco); padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--texto); }
.filtros button[aria-pressed="true"] { background: var(--preto); color: var(--branco); border-color: var(--preto); }
.prompt { display: grid; gap: 20px; }
.prompt + .prompt { margin-top: 32px; }
.prompt header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.prompt header h3 { margin: 0; }
.selo { display: inline-block; font: 800 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: var(--gelo); color: var(--cinza); }
.selo.aprovado { background: #dff3e4; color: #1d6b34; }
.selo.teste { background: #fff3d6; color: #8a5a00; }
.antes-depois { display: grid; grid-template-columns: var(--colunas, 1fr 1fr); gap: 12px; align-items: start; }
.antes-depois figure { margin: 0; min-width: 0; }
.antes-depois .vazio { aspect-ratio: 3 / 2; border: 2px dashed var(--cinza-claro); border-radius: var(--raio); display: grid; place-items: center; text-align: center; padding: 16px; color: var(--cinza); font-size: 14px; }
.antes-depois a { display: block; border-radius: var(--raio); overflow: hidden; }
.antes-depois img { width: 100%; height: auto; background: var(--gelo); transition: transform .2s; }
.antes-depois a:hover img { transform: scale(1.02); }
.antes-depois figcaption { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; color: var(--cinza); }
.codigo { position: relative; }
.codigo pre { margin: 0; background: var(--preto); color: #f1f1f1; padding: 54px 18px 18px; border-radius: var(--raio); white-space: pre-wrap; word-break: break-word;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 420px; overflow: auto; }
.codigo .copiar { position: absolute; top: 10px; right: 10px; }
.codigo pre .var { color: #ffb4bd; font-weight: 700; }
.ficha { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.ficha dt { font-weight: 700; }
.ficha dd { margin: 0; }
.passos { counter-reset: passo; list-style: none; padding: 0; display: grid; gap: 14px; }
.passos li { counter-increment: passo; position: relative; padding-left: 48px; }
.passos li::before { content: counter(passo); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--vermelho);
  color: var(--branco); font-weight: 800; display: grid; place-items: center; }
.aviso { border-left: 4px solid var(--vermelho); background: var(--branco); padding: 14px 18px; border-radius: 0 var(--raio) var(--raio) 0; }
.linha-preview { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.janela-preview { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; border: 0;
  border-radius: var(--raio); background: var(--branco); color: var(--texto); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
/* o fundo escurecido não captura o mouse: assim o botão continua "sob o cursor" e a janela não fecha sozinha */
.janela-preview::backdrop { background: rgba(18,18,18,.55); pointer-events: none; }
.janela-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.janela-topo h3 { margin: 0; }
.janela-preview .antes-depois { margin: 0 auto; }
/* no celular, três fotos numa linha ficariam minúsculas: o antes ocupa a linha de cima e os depois dividem a de baixo */
@media (max-width: 560px) {
  .antes-depois { grid-template-columns: var(--colunas-celular, 1fr 1fr); gap: 10px 8px; max-width: none !important; }
  .antes-depois figure.antes { grid-column: 1 / -1; }
  .antes-depois .vazio { padding: 8px; font-size: 12px; }
}

/* ---------- marca d'água ---------- */
.estudio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .estudio { grid-template-columns: 1fr; } }
.palco { background: repeating-conic-gradient(#e8e4dd 0 25%, #f7f5f1 0 50%) 0 0 / 20px 20px; border-radius: var(--raio); min-height: 360px;
  display: grid; place-items: center; padding: 16px; position: relative; }
.palco canvas { max-width: 100%; max-height: 72vh; height: auto; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.soltar { border: 2px dashed var(--cinza); border-radius: var(--raio); padding: 40px 20px; text-align: center; background: rgba(255,255,255,.85); cursor: pointer; width: 100%; max-width: 520px; }
.soltar.ativo, .palco.ativo { outline: 3px dashed var(--vermelho); outline-offset: -8px; }
.miniaturas { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.miniaturas button { flex: 0 0 auto; border: 2px solid transparent; padding: 0; border-radius: 6px; cursor: pointer; background: none; position: relative; }
.miniaturas button[aria-current="true"] { border-color: var(--vermelho); }
.miniaturas img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.painel { display: grid; gap: 14px; }
.painel fieldset { border: 0; margin: 0; padding: 16px; background: var(--branco); border-radius: var(--raio); display: grid; gap: 12px; }
.painel legend { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.1rem; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.painel legend + * { clear: both; }
.campo { display: grid; gap: 4px; }
.campo .valor { font-weight: 400; color: var(--cinza); float: right; font-variant-numeric: tabular-nums; }
.linha { display: flex; gap: 10px; align-items: center; }
.linha > * { flex: 1; }
.linha > input[type=color], .linha > input[type=checkbox] { flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { font-weight: 600; font-size: 13px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--cinza-claro); background: var(--branco); cursor: pointer; }
.chips input:checked + span { background: var(--preto); color: var(--branco); border-color: var(--preto); }
.chips input:focus-visible + span { outline: 3px solid var(--vermelho); outline-offset: 2px; }
.posicoes { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; }
.posicoes label { position: relative; }
.posicoes input { position: absolute; opacity: 0; }
.posicoes span { display: block; width: 40px; height: 32px; border-radius: 6px; border: 1px solid var(--cinza-claro); background: var(--branco); cursor: pointer; position: relative; }
.posicoes span::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cinza-claro); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.posicoes input:checked + span { border-color: var(--vermelho); }
.posicoes input:checked + span::after { background: var(--vermelho); }
.posicoes input:focus-visible + span { outline: 3px solid var(--vermelho); outline-offset: 2px; }
.cores { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cores button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cinza-claro); cursor: pointer; }
.acoes { position: sticky; bottom: 0; background: var(--gelo); padding: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.dica { font-size: 13px; color: var(--cinza); margin: 0; }
[hidden] { display: none !important; }

/* ---------- mapa da ExpoCannabis ---------- */
.fatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0 0; }
.fatos div { background: var(--grafite); border-left: 4px solid var(--vermelho); border-radius: 6px; padding: 12px 16px; }
.fatos dt { font: 800 11px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--vermelho); }
.fatos dd { margin: 4px 0 0; font-weight: 700; font-size: 1.05rem; color: var(--branco); }
.planta-spe { background: var(--preto); border-radius: var(--raio); padding: 12px; overflow-x: auto; margin-top: 24px; }
.planta-spe svg { display: block; width: 100%; min-width: 720px; height: auto; font-family: var(--sans); }
.planta-spe .pav { fill: #3a3a3a; stroke: var(--preto); stroke-width: 2; }
.planta-spe .pav.feira { fill: var(--vermelho); }
.planta-spe .pav.cbh { fill: var(--branco); }
.planta-spe .garagem { fill: #565656; stroke: var(--preto); stroke-width: 2; }
.planta-spe text { text-anchor: middle; }
.planta-spe .num { font: italic 700 52px var(--serif); fill: var(--branco); }
.planta-spe .cbh + .num { fill: var(--preto); }
.planta-spe .area { font-weight: 700; font-size: 18px; fill: var(--branco); }
.planta-spe .num-p { font-weight: 700; font-size: 26px; fill: #9a9a9a; }
.planta-spe .p-icone { font-weight: 800; font-size: 34px; fill: var(--branco); }
.planta-spe .rot { font-size: 17px; fill: #cfcfcf; }
.planta-spe .rot.forte { font-weight: 800; fill: var(--branco); }
.planta-spe .rot.vermelho { fill: var(--vermelho); }
.planta-spe .ponto { font-weight: 800; font-size: 15px; letter-spacing: .14em; fill: #9a9a9a; text-anchor: start; }
.planta-spe .ponto[text-anchor="end"] { text-anchor: end; }
.planta-spe + .dica { margin-top: 10px; }
.setores { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.setor-cartao { background: var(--gelo); border-radius: var(--raio); padding: 20px; border-top: 5px solid var(--preto); display: flex; flex-direction: column; gap: 6px; }
.setor-cartao.cultural { border-top-color: var(--vermelho-escuro); }
.setor-cartao.externa { border-top-color: #3d5a40; }
.setor-cartao h3 { margin: 0; font-size: 1.5rem; }
.setor-cartao p { margin: 0; }
.setor-cartao .btn { align-self: flex-start; margin-top: auto; }
.setor-cartao p:nth-last-of-type(1) { margin-bottom: 12px; }
.setor-onde { font: 800 11px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--cinza); }
.setor-numeros { font-size: 15px; }
.setor-numeros strong { font: italic 700 1.6rem var(--serif); color: var(--vermelho-escuro); }
.busca-expo { display: grid; gap: 12px; margin-bottom: 8px; }
.busca-expo .campo { max-width: 520px; }
.busca-expo .filtros { margin: 0; }
.lista-expo { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.lista-expo li { background: var(--branco); border-radius: var(--raio); padding: 12px 14px; display: grid; gap: 4px; font-size: 14px; align-content: start; }
.lista-expo .estande { font-weight: 700; }
.lista-expo a { overflow-wrap: anywhere; }
.setor-tag { justify-self: start; font: 800 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: var(--preto); color: var(--branco); }
.setor-tag.cultural { background: var(--vermelho-escuro); }
.setor-tag.externa { background: #3d5a40; }
#expositores { scroll-margin-top: 80px; }

/* ---------- autogestão e letramento digital ---------- */
.artigo { padding: 48px 0 72px; }
.artigo .wrap { max-width: 780px; }
.artigo h2 { margin-top: 48px; }
.artigo h3 { margin-top: 32px; }
.artigo h4 { font: 800 13px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--vermelho-escuro); margin: 0 0 8px; }
.artigo p, .artigo li { font-size: 1.05rem; }
.artigo li + li { margin-top: 8px; }
.artigo .cartao p { font-size: 15px; margin: 0; }
.artigo .linha-tempo li { border-color: var(--cinza-claro); }
.resumo-artigo ol { margin: 10px 0 0; padding-left: 20px; }
.glossario { font-size: 15px; gap: 10px 20px; }
.fontes { margin-top: 56px; padding: 24px; background: var(--branco); border-radius: var(--raio); }
.fontes h2 { margin-top: 0; font-size: 1.4rem; }
.fontes li { font-size: 14px !important; }
.artigo-cartao ul { padding-left: 20px; margin: 0; }
.artigo-cartao.proximo { border-top: 4px dashed var(--cinza-claro); }
@media (max-width: 560px) { .glossario { grid-template-columns: 1fr; gap: 2px; } .glossario dd { margin-bottom: 10px; } }
.artigo .linha-tempo time { color: var(--vermelho-escuro); }

/* Tabela dos artigos (rola para o lado no celular) */
.tabela-rolagem { overflow-x: auto; margin: 16px 0 20px; }
.tabela-jogos { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.tabela-jogos th, .tabela-jogos td { padding: 10px 12px; border-bottom: 1px solid rgba(18,18,18,.15); text-align: left; vertical-align: top; }
.tabela-jogos thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--preto); }
.tabela-jogos td:nth-child(2), .tabela-jogos td:nth-child(3) { white-space: nowrap; }
.tabela-jogos tr.sim { background: rgba(238,58,76,.10); }
.tabela-jogos tr.sim td:last-child { color: var(--vermelho-escuro); font-weight: 600; }
.tabela-jogos tr.parte { background: rgba(238,58,76,.04); }
