/* ============================================================
   i9 LAW — demonstração · o fazedor de sites e o blog
   ------------------------------------------------------------
   Carrega depois de app.css. Duas famílias de classe:

     .fs-*  o FAZEDOR (a ferramenta): modelos, blocos, painel.
            Segue a base Vitral, com as variáveis de vitral.css.
     .sx-*  o SITE do escritório dentro da prévia. É outro
            produto, com a cara de cada modelo — por isso tem as
            suas próprias variáveis (--sx-*) e não usa vidro,
            a não ser no modelo Vitral.

   Em cada modelo muda a ESTRUTURA: o menu (.sx-nav-*), a
   abertura (.sx-ab-*) e a arrumação das seções. A prévia usa
   consulta de contêiner: ela se ajusta à largura que tem, e não
   à da janela.
   ============================================================ */

/* ---------- o fazedor ---------- */

.fs-grade { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: 16px; align-items: start; }
.fs-previa-caixa { position: sticky; top: 92px; min-width: 0; display: grid; gap: 10px; }
.fs-legenda { font-size: .82rem; padding: 0 6px; }
.fs-barra .cab { margin-bottom: 12px; }
.fs-barra h2 { font-size: 1.05rem; word-break: break-word; }

.fs-modelos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fs-modelos button { border: 0; cursor: pointer; text-align: left; padding: 8px; border-radius: var(--r-int); background: rgba(255,255,255,.7); display: grid; gap: 6px; align-content: start; transition: transform .4s var(--mola-2), box-shadow .2s; }
.fs-modelos button:hover { transform: translateY(-3px); }
.fs-modelos button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--violeta), var(--sombra-1); background: #fff; }
.fs-modelos b { font-size: .88rem; font-weight: 600; padding: 0 4px; }
.fs-modelos small { font-size: .74rem; line-height: 1.35; color: var(--tinta-2); padding: 0 4px 3px; }
.fs-modelos .fechado .fs-mini { filter: saturate(.4); opacity: .65; }

/* a miniatura é um esquema da estrutura: a = menu, b = texto, c = destaque, d = seções */
.fs-mini { position: relative; display: block; height: 78px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--fio); overflow: hidden; }
.fs-mini i { position: absolute; display: block; border-radius: 3px; background: rgba(42,35,64,.2); }
.fs-m-classico .a { left: 7px; right: 7px; top: 7px; height: 5px; }
.fs-m-classico .b { left: 7px; top: 20px; width: 46%; height: 24px; background: linear-gradient(#2a2340 0 6px, transparent 6px 10px, rgba(42,35,64,.25) 10px 13px, transparent 13px 16px, rgba(42,35,64,.25) 16px 19px, transparent 19px); }
.fs-m-classico .c { right: 12px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--violeta-c); }
.fs-m-classico .d { left: 7px; right: 7px; bottom: 7px; height: 16px; background: linear-gradient(90deg, rgba(42,35,64,.14) 0 31%, transparent 31% 34.5%, rgba(42,35,64,.14) 34.5% 65.5%, transparent 65.5% 69%, rgba(42,35,64,.14) 69%); }
.fs-m-direto .a { right: 7px; top: 7px; width: 22px; height: 7px; border-radius: 4px; background: #7a55bd; }
.fs-m-direto .b { left: 26%; right: 26%; top: 22px; height: 7px; background: #2a2340; }
.fs-m-direto .c { left: 20%; right: 20%; top: 34px; height: 4px; }
.fs-m-direto .d { left: 30%; right: 30%; top: 48px; height: 13px; border-radius: 7px; background: #7a55bd; }
.fs-m-sereno .a { left: 30%; right: 30%; top: 6px; height: 5px; background: linear-gradient(90deg, rgba(42,35,64,.25) 0 28%, transparent 28% 36%, rgba(42,35,64,.25) 36% 64%, transparent 64% 72%, rgba(42,35,64,.25) 72%); }
.fs-m-sereno .b { left: 0; right: 0; top: 16px; height: 28px; border-radius: 0 0 14px 14px; background: linear-gradient(120deg, #1e8f73, #46b79a); }
.fs-m-sereno .c { left: 30%; right: 30%; top: 27px; height: 5px; background: rgba(255,255,255,.9); }
.fs-m-sereno .d { left: 7px; right: 7px; bottom: 7px; height: 19px; background: linear-gradient(90deg, rgba(42,35,64,.25) 0 24%, transparent 24% 30%, rgba(42,35,64,.12) 30%); }
.fs-m-vitral { background: linear-gradient(120deg, #e3d9f7, #d3ecf0 60%, #d2f1e6); box-shadow: none; }
.fs-m-vitral .a { left: 14px; right: 14px; top: 6px; height: 8px; border-radius: 5px; background: rgba(255,255,255,.85); }
.fs-m-vitral .b { left: 10px; right: 30%; top: 20px; height: 34px; border-radius: 7px; background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 #fff; }
.fs-m-vitral .c { left: 16px; top: 27px; width: 40%; height: 6px; background: linear-gradient(100deg, #8060c2, #30bb93); }
.fs-m-vitral .d { left: 10px; right: 10px; bottom: 6px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.75) 0 47%, transparent 47% 53%, rgba(255,255,255,.75) 53%); }
.fs-m-editorial .a { left: 0; top: 0; bottom: 0; width: 24%; border-radius: 0; background: linear-gradient(#f1eee9, #f1eee9); box-shadow: inset -1px 0 0 rgba(42,35,64,.14); }
.fs-m-editorial .b { left: 30%; right: 10%; top: 12px; height: 22px; background: linear-gradient(#17131f 0 9px, transparent 9px 13px, #17131f 13px 22px); }
.fs-m-editorial .c { left: 30%; right: 7px; top: 40px; height: 1px; background: #17131f; }
.fs-m-editorial .d { left: 30%; right: 7px; bottom: 8px; height: 20px; background: linear-gradient(rgba(42,35,64,.25) 0 3px, transparent 3px 8px, rgba(42,35,64,.25) 8px 11px, transparent 11px 16px, rgba(42,35,64,.25) 16px 19px, transparent 19px); }
.fs-m-noturno { background: #1c1730; box-shadow: none; }
.fs-m-noturno i { background: rgba(243,239,250,.3); }
.fs-m-noturno .a { left: 7px; right: 7px; top: 7px; height: 5px; }
.fs-m-noturno .b { left: 7px; top: 19px; width: 44%; height: 24px; background: linear-gradient(#f3effa 0 6px, transparent 6px 10px, rgba(243,239,250,.35) 10px 13px, transparent 13px 16px, rgba(243,239,250,.35) 16px 19px, transparent 19px); }
.fs-m-noturno .c { right: 7px; top: 17px; width: 36%; height: 28px; border-radius: 6px; background: rgba(143,115,214,.55); }
.fs-m-noturno .d { left: 7px; right: 7px; bottom: 7px; height: 16px; background: linear-gradient(90deg, rgba(243,239,250,.2) 0 48%, transparent 48% 52%, rgba(243,239,250,.2) 52%); }

.fs-cores { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fs-cores .rotulo { margin-right: 4px; }
.fs-cores button { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: conic-gradient(#8060c2, #30bb93, #c7b3ee, #8060c2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); transition: transform .3s var(--mola-2); }
.fs-cores button:hover { transform: scale(1.12); }
.fs-cores button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--violeta); }

.fs-lista { display: grid; gap: 6px; }
.fs-lista li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; border-radius: var(--r-min); background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px var(--fio); transition: box-shadow .2s, background .2s, opacity .2s; }
.fs-lista li.sel { background: #fff; box-shadow: inset 0 0 0 2px var(--violeta); }
.fs-lista li.fora { opacity: .6; }
.fs-lista li.fs-arrastando { opacity: .35; }
.fs-lista li.fs-antes { box-shadow: inset 0 3px 0 var(--teal), inset 0 0 0 1px var(--fio); }
.fs-lista li.fs-depois { box-shadow: inset 0 -3px 0 var(--teal), inset 0 0 0 1px var(--fio); }
.fs-pega { flex: none; width: 18px; height: 26px; cursor: grab; border-radius: 6px; background: radial-gradient(circle, rgba(42,35,64,.38) 1.4px, transparent 1.6px) 0 0 / 7px 7px; background-position: 2px 3px; }
.fs-nome { flex: 1; min-width: 0; border: 0; background: none; cursor: pointer; text-align: left; padding: 4px 0; }
.fs-nome b { display: block; font-weight: 600; font-size: .9rem; }
.fs-nome small { display: block; color: var(--tinta-2); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-mov { display: flex; gap: 2px; flex: none; }
.fs-mov button { width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer; background: none; color: var(--tinta-2); font-size: .95rem; line-height: 1; }
.fs-mov button:hover:not([disabled]) { background: var(--violeta-c); color: var(--violeta-f); }
.fs-mov button[disabled] { opacity: .25; cursor: default; }
.fs-paleta { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-paleta button { border: 0; cursor: pointer; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .8rem; background: var(--violeta-c); color: var(--violeta-f); transition: transform .3s var(--mola-2); }
.fs-paleta button:hover { transform: translateY(-2px); }
.fs-paleta button.fechado { background: rgba(23,19,31,.06); color: var(--tinta-2); }
.fs-faq { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-min); background: var(--miolo); }
.fs-faq .botao { justify-self: start; }

/* blog e glossário */
.fs-enderecos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fs-enderecos span { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-int); background: var(--miolo); min-width: 0; }
.fs-enderecos b { font-weight: 600; font-size: .92rem; word-break: break-word; }
.fs-enderecos small { color: var(--tinta-2); font-size: .8rem; }
.fs-conteudo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.fs-posts button.linha { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: -6px -10px; border-radius: var(--r-min); transition: background .2s; }
.fs-posts button.linha:hover { background: rgba(255,255,255,.8); }
.fs-posts button.linha.sel { background: #fff; box-shadow: var(--sombra-1); }
.fs-posts li { padding-inline: 10px; }

@media (max-width: 1100px) {
  .fs-grade, .fs-conteudo { grid-template-columns: minmax(0, 1fr); }
  .fs-previa-caixa { position: static; }
}
@media (max-width: 640px) {
  .fs-enderecos { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   O SITE NA PRÉVIA
   ============================================================ */

.sx {
  --sx-cor: #7a55bd; --sx-tinta: #1d1830; --sx-suave: #5d5670; --sx-fundo: #fff; --sx-faixa: #f6f3fb; --sx-fio: rgba(29,24,48,.1);
  --sx-pad: clamp(16px, 5cqw, 36px); --sx-titulo: var(--disp);
  container-type: inline-size; position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  max-height: min(76vh, 780px); overflow-y: auto; overflow-x: hidden;
  background: var(--sx-fundo); color: var(--sx-tinta); font-size: .93rem; line-height: 1.5;
}
.sx h2 { font: 600 clamp(1.45rem, 5.4cqw, 2.3rem)/1.1 var(--sx-titulo); letter-spacing: -.03em; }
.sx h3 { font: 600 1.18rem/1.2 var(--sx-titulo); letter-spacing: -.02em; }
.sx h4 { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.sx p { color: var(--sx-suave); }
.sx p b { color: var(--sx-tinta); }
.sx small { color: var(--sx-suave); font-size: .78rem; }
.sx button, .sx a { font: inherit; cursor: pointer; }
.sx-ir { border: 0; background: none; padding: 0; color: var(--sx-cor); font-weight: 600; font-size: .86rem; text-align: left; justify-self: start; }
.sx-ir:hover { text-decoration: underline; }
.sx-botao { display: inline-block; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--sx-cor); color: #fff; font-weight: 600; font-size: .9rem; justify-self: start; }
.sx-botao.sx-grande { padding: 14px 26px; font-size: 1rem; }
.sx-acoes { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sx-rotulo, .sx-sobrelinha { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sx-suave); }

/* menu */
.sx-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px var(--sx-pad); border-bottom: 1px solid var(--sx-fio); background: var(--sx-fundo); position: sticky; top: 0; z-index: 3; }
.sx-marca { border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.sx-marca b { display: block; font: 600 1rem var(--sx-titulo); letter-spacing: -.02em; }
.sx-marca small { display: block; font-size: .7rem; }
.sx-nav nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.sx-nav nav button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--sx-suave); }
.sx-nav nav button:hover { color: var(--sx-tinta); }
.sx-nav nav button[aria-current] { background: var(--sx-faixa); color: var(--sx-tinta); font-weight: 600; }
.sx-nav .sx-botao { padding: 8px 14px; font-size: .82rem; }

/* corpo e seções */
.sx-corpo { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
.sx-sec { padding: calc(var(--sx-pad) * .85) var(--sx-pad); display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; align-content: start; border-top: 1px solid var(--sx-fio); cursor: default; }
.sx-sec:first-child { border-top: 0; }
.sx-sel { box-shadow: inset 0 0 0 2px var(--violeta); }
.sx-pag { gap: 16px; min-height: 300px; }
.sx-itens { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-itens article, .sx-posts article { padding: 16px; border-radius: 14px; background: var(--sx-faixa); display: grid; gap: 6px; align-content: start; }
.sx-posts { display: grid; gap: 12px; }
.sx-assina { font-weight: 600; color: var(--sx-tinta) !important; font-size: .86rem; }
.sx-guias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sx-guias button { border: 0; text-align: left; padding: 12px; border-radius: 12px; font-weight: 600; font-size: .86rem; background: var(--sx-faixa); color: var(--sx-tinta); }
.sx-guias button[aria-pressed="true"] { background: var(--sx-cor); color: #fff; }
.sx-guia-texto { padding: 15px; border-radius: 12px; background: var(--sx-faixa); color: var(--sx-suave); }
.sx-guia-texto b { color: var(--sx-tinta); }
.sx-contato { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sx-contato > div:first-child { display: grid; gap: 8px; }
.sx-mapa { position: relative; min-height: 130px; border-radius: 14px; overflow: hidden; background: linear-gradient(0deg, transparent 47%, rgba(255,255,255,.9) 47% 53%, transparent 53%), linear-gradient(90deg, transparent 31%, rgba(255,255,255,.9) 31% 35%, transparent 35% 68%, rgba(255,255,255,.9) 68% 71%, transparent 71%), linear-gradient(135deg, #e6e2ee, #dcebe6); }
.sx-mapa i { position: absolute; left: 52%; top: 40%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sx-cor); box-shadow: 0 0 0 4px rgba(255,255,255,.7); }
.sx-verbetes { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-verbete { border: 1px solid var(--sx-fio); background: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .84rem; color: var(--sx-tinta); }
.sx-verbete:hover { border-color: var(--sx-cor); color: var(--sx-cor); }
.sx-faq { display: grid; gap: 6px; }
.sx-faq details { border-radius: 12px; background: var(--sx-faixa); padding: 12px 15px; }
.sx-faq summary { cursor: pointer; font-weight: 600; }
.sx-faq details p { margin-top: 8px; }
.sx-imagem { display: grid; gap: 6px; }
.sx-imagem div { min-height: 150px; border-radius: 14px; display: grid; place-items: center; text-align: center; padding: 14px; font-size: .82rem; color: var(--sx-suave); background: repeating-linear-gradient(135deg, var(--sx-faixa) 0 12px, transparent 12px 24px); box-shadow: inset 0 0 0 1px var(--sx-fio); }
.sx-imagem.cheia div { background: linear-gradient(140deg, #cfc3e6, #b9d7dc 55%, #c5e4d6); color: #2a2340; font-weight: 600; box-shadow: none; }
.sx-imagem figcaption { font-size: .8rem; color: var(--sx-suave); }
.sx-video { min-height: 150px; border-radius: 14px; background: #1c1730; display: grid; place-items: center; align-content: center; gap: 10px; padding: 14px; text-align: center; }
.sx-video span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); position: relative; }
.sx-video span::after { content: ""; position: absolute; left: 19px; top: 14px; border: 9px solid transparent; border-left: 14px solid #fff; }
.sx-video small { color: rgba(255,255,255,.75); }
.sx-horas { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-horas button { border: 1px solid var(--sx-fio); background: var(--sx-fundo); color: var(--sx-tinta); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: .84rem; }
.sx-horas button:hover { border-color: var(--sx-cor); color: var(--sx-cor); }
.sx-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sx-cor); color: #fff; font-weight: 600; }
.sx-avatar.sx-grande { width: 72px; height: 72px; font-size: 1.3rem; }
.sx-artigo { max-width: 42rem; }
.sx-artigo p { color: var(--sx-tinta); }
.sx-entrada { max-width: 24rem; }
.sx-entrada input { width: 100%; border: 1px solid var(--sx-fio); border-radius: 10px; padding: 11px 14px; font: inherit; background: var(--sx-fundo); color: var(--sx-tinta); }
.sx-rodape { padding: 18px var(--sx-pad) 22px; border-top: 1px solid var(--sx-fio); display: grid; gap: 8px; font-size: .78rem; color: var(--sx-suave); }
.sx-rodape-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sx-rodape-links .sx-ir { font-size: .78rem; }

/* abertura: a base */
.sx-b-abertura { gap: 16px; padding-block: calc(var(--sx-pad) * 1.3); }
.sx-ab-texto { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sx-texto { max-width: 52ch; }

/* ---------- Clássico: barra no alto, retrato ao lado, três cartões ---------- */
.sx-classico { --sx-titulo: Georgia, 'Times New Roman', serif; --sx-cor: #5b3fa0; }
.sx-classico h2 { font-weight: 500; letter-spacing: -.015em; }
.sx-classico .sx-b-abertura { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.sx-retrato { display: grid; justify-items: center; gap: 10px; padding: 22px 14px; border-radius: 16px; background: var(--sx-faixa); text-align: center; }
.sx-retrato span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 500 1.7rem Georgia, serif; color: #fff; background: var(--sx-cor); }
.sx-retrato figcaption b { display: block; font-weight: 600; }
.sx-classico .sx-itens article { background: var(--sx-fundo); box-shadow: inset 0 0 0 1px var(--sx-fio); border-radius: 6px; }
.sx-classico .sx-botao, .sx-classico .sx-guias button, .sx-classico .sx-guia-texto { border-radius: 6px; }

/* ---------- Direto: sem menu, uma coluna estreita, um botão ---------- */
.sx-direto { --sx-cor: #6a47ad; --sx-pad: clamp(16px, 5cqw, 30px); }
.sx-direto .sx-nav { justify-content: space-between; border-bottom: 0; }
.sx-direto .sx-corpo { justify-items: center; }
.sx-direto .sx-sec { width: min(100%, 34rem); border-top: 0; }
.sx-direto .sx-b-abertura { text-align: center; justify-items: center; padding-block: calc(var(--sx-pad) * 1.6) var(--sx-pad); }
.sx-direto .sx-b-abertura h2 { font-size: clamp(1.6rem, 6.4cqw, 2.5rem); }
.sx-direto .sx-botao { justify-self: center; }
.sx-direto .sx-itens, .sx-direto .sx-guias, .sx-direto .sx-contato { grid-template-columns: minmax(0, 1fr); }
.sx-direto .sx-itens article { background: none; border-radius: 0; padding: 12px 0; border-bottom: 1px solid var(--sx-fio); }
.sx-direto .sx-guias button { text-align: center; padding: 14px; border-radius: 999px; }
.sx-direto .sx-acoes { justify-content: center; }
.sx-direto .sx-rodape { text-align: center; justify-items: center; width: 100%; }

/* ---------- Sereno: menu ao centro, faixa cheia, seções em duas colunas ---------- */
.sx-sereno { --sx-cor: #1e8f73; --sx-faixa: #e9f6f1; --sx-tinta: #17362e; --sx-suave: #4e6b63; }
.sx-sereno .sx-nav { flex-direction: column; gap: 6px; text-align: center; border-bottom: 0; }
.sx-sereno .sx-marca { text-align: center; }
.sx-sereno .sx-nav nav { margin: 0; justify-content: center; }
.sx-sereno .sx-b-abertura { text-align: center; justify-items: center; color: #fff; background: linear-gradient(125deg, #1b7f67, #2fa487 60%, #58c2a6); border-radius: 0 0 34px 34px; padding-block: calc(var(--sx-pad) * 1.5); }
.sx-sereno .sx-b-abertura h2, .sx-sereno .sx-b-abertura p, .sx-sereno .sx-b-abertura .sx-sobrelinha { color: #fff; }
.sx-sereno .sx-b-abertura .sx-botao { background: #fff; color: #17604d; justify-self: center; }
.sx-sereno .sx-sec:not(.sx-b-abertura):not(.sx-pag) { grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); column-gap: 20px; border-top: 0; }
.sx-sereno .sx-sec:not(.sx-b-abertura):not(.sx-pag) > h3 { grid-row: 1 / span 6; }
.sx-sereno .sx-sec:not(.sx-b-abertura):not(.sx-pag) > :not(h3) { grid-column: 2; }
.sx-sereno .sx-itens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-sereno .sx-itens article, .sx-sereno .sx-guia-texto { border-radius: 20px; }
.sx-sereno .sx-guias button { border-radius: 999px; text-align: center; }

/* ---------- Vitral: menu flutuante, abertura em vidro, seções em cartões soltos ---------- */
.sx-vitral { --sx-fundo: transparent; --sx-faixa: rgba(255,255,255,.62); background: linear-gradient(125deg, #ebe3fa, #dceef4 55%, #d9f3ea); }
.sx-vitral .sx-nav { margin: 12px var(--sx-pad) 0; padding: 8px 10px 8px 18px; border: 0; border-radius: 999px; top: 10px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(60,40,110,.12); }
.sx-vitral .sx-corpo { gap: 14px; padding: 14px var(--sx-pad) 0; }
.sx-vitral .sx-sec { border: 0; border-radius: 22px; padding: calc(var(--sx-pad) * .8); background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(60,40,110,.07); }
.sx-vitral .sx-b-abertura { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 6px 0; }
.sx-vidro { display: grid; gap: 14px; padding: calc(var(--sx-pad) * 1.1); border-radius: 26px; background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 #fff, 0 20px 50px rgba(60,40,110,.14); }
.sx-vidro h2 { background: linear-gradient(100deg, #6a47ad, #5f86c0 55%, #1e8f73); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sx-vitral .sx-botao { background: linear-gradient(100deg, #8060c2, #5f86c0 52%, #30bb93); }
.sx-vitral .sx-rodape { border: 0; padding-inline: 4px; }

/* ---------- Editorial: índice na lateral, capa de revista, seções numeradas ---------- */
.sx-editorial { --sx-titulo: Georgia, 'Times New Roman', serif; --sx-cor: #17131f; --sx-faixa: #f3f0ea; --sx-fundo: #fbfaf7; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); counter-reset: secao; }
.sx-editorial .sx-nav { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 16px; border-bottom: 0; border-right: 1px solid var(--sx-tinta); align-self: start; min-height: 100%; }
.sx-editorial .sx-nav nav { flex-direction: column; margin: 0; gap: 0; width: 100%; }
.sx-editorial .sx-nav nav button { text-align: left; border-radius: 0; padding: 7px 0; border-bottom: 1px solid var(--sx-fio); font-size: .84rem; }
.sx-editorial .sx-nav nav button[aria-current] { background: none; font-style: italic; }
.sx-editorial .sx-nav .sx-botao { border-radius: 0; }
.sx-editorial .sx-b-abertura { padding-block: calc(var(--sx-pad) * 1.2); }
.sx-editorial .sx-b-abertura h2 { font-weight: 400; font-style: italic; font-size: clamp(1.9rem, 8cqw, 3.4rem); line-height: 1.02; padding-bottom: 18px; border-bottom: 3px solid var(--sx-tinta); }
.sx-colunas-texto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sx-editorial .sx-sec:not(.sx-b-abertura):not(.sx-pag) { counter-increment: secao; grid-template-columns: minmax(0, 3.4rem) minmax(0, 1fr); column-gap: 10px; border-top: 1px solid var(--sx-tinta); }
.sx-editorial .sx-sec:not(.sx-b-abertura):not(.sx-pag)::before { content: counter(secao, decimal-leading-zero); grid-row: 1 / span 8; font: 400 1.9rem/1 Georgia, serif; color: var(--sx-suave); }
.sx-editorial .sx-sec:not(.sx-b-abertura):not(.sx-pag) > * { grid-column: 2; }
.sx-editorial .sx-itens, .sx-editorial .sx-guias { grid-template-columns: minmax(0, 1fr); gap: 0; }
.sx-editorial .sx-itens article { background: none; border-radius: 0; padding: 12px 0; border-bottom: 1px solid var(--sx-fio); }
.sx-editorial .sx-itens h4 { font: 400 1.12rem Georgia, serif; }
.sx-editorial .sx-guias button { background: none; border-radius: 0; border-bottom: 1px solid var(--sx-fio); padding: 10px 0; }
.sx-editorial .sx-guias button[aria-pressed="true"] { background: none; color: var(--sx-tinta); font-style: italic; border-bottom: 2px solid var(--sx-tinta); }
.sx-editorial .sx-botao, .sx-editorial .sx-guia-texto, .sx-editorial .sx-faq details, .sx-editorial .sx-posts article { border-radius: 0; }
.sx-editorial .sx-verbete { border-radius: 0; font-style: italic; }

/* ---------- Noturno: fundo escuro, abertura dividida, seções densas ---------- */
.sx-noturno { --sx-fundo: #171327; --sx-tinta: #f3effa; --sx-suave: rgba(243,239,250,.7); --sx-faixa: rgba(255,255,255,.07); --sx-fio: rgba(243,239,250,.14); --sx-cor: #8f73d6; --sx-pad: clamp(14px, 4cqw, 28px); font-size: .9rem; }
.sx-noturno .sx-nav { border-bottom: 1px solid var(--sx-fio); }
.sx-noturno .sx-nav nav button[aria-current] { background: none; border-radius: 0; box-shadow: inset 0 -2px 0 var(--sx-cor); }
.sx-noturno .sx-b-abertura { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 20px; }
.sx-cartao-ab { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: rgba(143,115,214,.2); box-shadow: inset 0 0 0 1px rgba(143,115,214,.45); }
.sx-noturno .sx-sec { gap: 10px; padding-block: calc(var(--sx-pad) * .7); }
.sx-noturno .sx-itens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-noturno .sx-itens article { padding: 12px; border-radius: 10px; }
.sx-noturno .sx-horas button { background: rgba(255,255,255,.06); }
.sx-noturno .sx-mapa { filter: invert(.88) hue-rotate(180deg); }
.sx-noturno .sx-imagem.cheia div { color: #2a2340; }
.sx-noturno .sx-entrada input { background: rgba(255,255,255,.06); }

/* ---------- a prévia estreita: tudo em uma coluna ---------- */
@container (max-width: 620px) {
  .sx-itens, .sx-guias, .sx-contato, .sx-colunas-texto { grid-template-columns: minmax(0, 1fr) !important; }
  .sx-classico .sx-b-abertura, .sx-noturno .sx-b-abertura { grid-template-columns: minmax(0, 1fr); }
  .sx-sereno .sx-sec:not(.sx-b-abertura):not(.sx-pag) { grid-template-columns: minmax(0, 1fr); }
  .sx-sereno .sx-sec:not(.sx-b-abertura):not(.sx-pag) > * { grid-column: 1; grid-row: auto; }
  .sx-nav nav { margin-left: 0; }
}
@container (max-width: 520px) {
  .sx-editorial .sx-nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--sx-tinta); min-height: 0; padding: 12px var(--sx-pad); gap: 8px; }
  .sx-editorial .sx-nav nav { flex-direction: row; width: auto; gap: 10px; }
  .sx-editorial .sx-nav nav button { border-bottom: 0; padding: 4px 0; }
  .sx-editorial .sx-corpo { grid-column: 1 / -1; }
}
