/* Universo MAH · Museu e Arquivo Histórico de Presidente Prudente.
   Azul do céu na abertura, marrom do chão, amarelo da madeira, rosa original, bege e preto. Arial, como na identidade.
   O elemento é o arco das janelas do prédio. */
.u-mah {
  --m-azul: #224E9A; --m-terra: #B24000; --m-ouro: #E1B431; --m-rosa: #C37685; --m-bege: #E6D8C9; --m-preto: #0d0d0d;
  --m-placa-rosa: #B87182; --m-placa-ouro: #F1B605;
  --m-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --m-ease: cubic-bezier(.16, 1, .3, 1);
  --papel: var(--m-bege); --tinta: var(--m-preto); --suave: #3c332c; --cinza: #6d625a; --linha: #cdbcaa; --ac: var(--m-terra);
  background: var(--m-bege); color: var(--m-preto);
}
.u-mah .cta-final, .u-mah .universo-pe { padding-inline: var(--mx); max-width: var(--larg); margin-inline: auto; }
.u-mah .universo-pe { padding-top: 40px; }

.mh { font-family: var(--m-sans); overflow: clip; }
.mh p { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; margin: 0 0 1em; max-width: 54ch; color: #2a2420; }
.mh h2 { font: 400 clamp(30px, 4vw, 58px)/1.04 var(--m-sans); letter-spacing: -.025em; margin: 0 0 24px; text-transform: uppercase; }
.mh h2 b { font-weight: 700; display: block; }
.mh-num { font: 700 12px/1 var(--m-sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--m-terra) !important; margin: 0 0 22px !important; display: inline-flex; align-items: center; gap: 10px; }
.mh-num::before { content: ""; width: 12px; height: 16px; background: currentColor; border-radius: 6px 6px 0 0; }
.mh-sec { padding: clamp(64px, 8vw, 120px) var(--mx); max-width: var(--larg); margin-inline: auto; }
.mh-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 100px); align-items: start; }
.mh svg { display: block; width: 100%; height: auto; overflow: visible; }
.mh img { display: block; width: 100%; height: auto; }

[data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--m-ease), transform .9s var(--m-ease); }
[data-rv].visto { opacity: 1; transform: none; }

/* ABERTURA */
.mh-abre { position: relative; min-height: 100svh; background: var(--m-azul); color: #fff; display: grid; align-content: center; gap: 36px; padding: 140px var(--mx) calc((100vw - 2 * var(--mx)) / 6.93 + 90px); overflow: hidden; }
.mh-rot { position: absolute; top: 96px; left: var(--mx); right: var(--mx); margin: 0 !important; font: 400 12px/1 var(--m-sans) !important; letter-spacing: .12em; text-transform: uppercase; color: #ffffffb3 !important; }
.mh-rot a { color: inherit; }
.mh-logo { width: min(860px, 88vw); margin: 0; color: #fff; }
.mh-logo path { opacity: 0; transform: translateY(10px); transition: opacity .8s, transform .9s var(--m-ease); transition-delay: calc(var(--i, 0) * 18ms + 200ms); }
.mh-logo.visto path { opacity: 1; transform: none; }
.mh-tres { margin: 0 0 0 auto !important; color: #fff !important; font-size: clamp(20px, 2.2vw, 34px) !important; line-height: 1.15 !important; max-width: 12ch !important; padding-left: 22px; border-left: 1px solid #fff; }
.mh-tres span, .mh-tres b { display: block; }
/* as aberturas da fachada, medidas no ícone: largura 167,45 x altura 24,17 (do topo da porta ao chão) */
.mh-fileira { --fw: calc(100vw - 2 * var(--mx)); position: absolute; left: var(--mx); bottom: 0; width: var(--fw); aspect-ratio: 167.45 / 24.17; }
.mh-fileira i { position: absolute; left: var(--x); top: 11.83%; width: 4.103%; height: 48.24%; background: var(--c, var(--m-bege)); border-radius: 999px 999px 0 0; clip-path: inset(100% 0 0 0); animation: mh-sobe 1.4s var(--m-ease) forwards; transition: background-color .5s var(--m-ease); cursor: pointer; }
.mh-fileira i.porta { top: 0; width: 7.525%; height: 100%; }
.mh-fileira i:nth-child(1) { animation-delay: .5s; } .mh-fileira i:nth-child(2) { animation-delay: .58s; } .mh-fileira i:nth-child(3) { animation-delay: .66s; }
.mh-fileira i:nth-child(4) { animation-delay: .74s; } .mh-fileira i:nth-child(5) { animation-delay: .82s; } .mh-fileira i:nth-child(6) { animation-delay: .9s; }
.mh-fileira i:nth-child(7) { animation-delay: .98s; } .mh-fileira i:nth-child(8) { animation-delay: 1.06s; } .mh-fileira i:nth-child(9) { animation-delay: 1.14s; }
.mh-fileira i:nth-child(10) { animation-delay: 1.22s; } .mh-fileira i:nth-child(11) { animation-delay: 1.3s; }
@keyframes mh-sobe { to { clip-path: inset(0 0 0 0); } }

/* 01 PRÉDIO: a foto abre como um arco */
.mh-predio h2 b { color: var(--m-terra); }
.mh-arco-foto { margin: 0; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 1 / 1; clip-path: inset(30% 18% 0 18% round 999px 999px 0 0); transition: clip-path 1.6s var(--m-ease); }
.mh-arco-foto.visto { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
.mh-arco-foto img { height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.2s var(--m-ease); }
.mh-arco-foto.visto img { transform: none; }

/* 02 FAIXA */
.mh-faixa { background: var(--m-azul); color: #fff; padding: clamp(80px, 11vw, 160px) var(--mx); }
.mh-faixa .mh-num { color: rgba(255,255,255,.7) !important; }
.mh-frase { font-size: clamp(26px, 3.6vw, 54px) !important; line-height: 1.12 !important; max-width: 24ch !important; color: #fff !important; text-transform: uppercase; letter-spacing: -.02em; margin: 0 !important; }
.mh-frase b { color: #fff; }

/* 03 ÍCONE: janelas que acendem */
.mh-icone h2 b { color: var(--m-azul); }
.mh-janelas { margin: 0; color: var(--m-preto); }
.mh-janelas figcaption { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cinza); margin-top: 18px; }
.mh-janelas .jan { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s var(--m-ease), fill .4s; transition-delay: calc(var(--i) * 90ms + 300ms); }
.mh-janelas.acesas .jan { transform: none; }
.mh-janelas .telhado { transform: translateY(-8px); opacity: 0; transition: transform 1.2s var(--m-ease), opacity .8s; }
.mh-janelas.visto .telhado { transform: none; opacity: 1; }

/* 04 CORES: arcos que sobem */
.mh-cores { transition: background .8s; }
.mh-cores h2 b { color: var(--m-rosa); }
.mh-arcos { list-style: none; padding: 0; margin: clamp(40px, 5vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.mh-arcos li { display: grid; align-content: start; gap: 6px; }
.mh-arcos li:nth-child(2) { transition-delay: .12s; } .mh-arcos li:nth-child(3) { transition-delay: .24s; } .mh-arcos li:nth-child(4) { transition-delay: .36s; }
.mh-arcos .arco { display: block; aspect-ratio: 4 / 5; background: var(--c); border-radius: 999px 999px 0 0; margin-bottom: 14px; transform-origin: bottom; transition: transform .7s var(--m-ease); }
.mh-arcos li:hover .arco { transform: scaleY(1.05); }
.mh-arcos b { font-size: 20px; text-transform: uppercase; }
.mh-arcos small { font-size: 12px; letter-spacing: .08em; color: var(--cinza); }
.mh-arcos p { font-size: 14px !important; margin-top: 6px !important; }
.mh-apoio { margin-top: 36px !important; font-size: 14px !important; color: var(--cinza) !important; }
.mh-apoio span { display: inline-block; width: 12px; height: 16px; border-radius: 6px 6px 0 0; background: var(--c); vertical-align: -2px; outline: 1px solid #0002; }

/* 05 CINQUENTA */
.mh-cinquenta { background: #fff; }
.mh-cinquenta .mh-sec { padding-bottom: 40px; }
.mh-grande { font: 400 clamp(64px, 13vw, 210px)/.86 var(--m-sans) !important; letter-spacing: -.045em; text-transform: uppercase; margin: 0 0 48px !important; max-width: none !important; color: var(--m-preto) !important; }
.mh-grande span { font-weight: 700; }
.mh-trilho { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--mx) clamp(64px, 8vw, 110px); scrollbar-width: thin; }
.mh-trilho figure { flex: 0 0 min(340px, 72vw); margin: 0; scroll-snap-align: start; box-shadow: 0 1px 0 #0001, 0 18px 40px -24px #0004; }

/* 06 SINALIZAÇÃO */
.mh-sinal h2 b { color: var(--m-placa-rosa); }
.mh-parede { margin-top: clamp(40px, 5vw, 72px); background: #f4efe9; border-radius: 4px; padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 48px; }
.mh-setores { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.mh-setores button { font: 700 13px/1 var(--m-sans); padding: 13px 22px 13px 16px; border: 2px solid var(--c); background: transparent; color: var(--m-preto); border-radius: 4px 999px 999px 4px; cursor: pointer; transition: background .3s, color .3s; }
.mh-setores button[aria-pressed="true"] { background: var(--c); color: #fff; }
.mh-placas ul { list-style: none; padding: 0; margin: 0; display: none; gap: 12px; }
.mh-placas[data-setor="memoria"] [data-g="memoria"], .mh-placas[data-setor="educacao"] [data-g="educacao"], .mh-placas[data-setor="servico"] [data-g="servico"] { display: grid; }
.mh-placas ul { --c: var(--m-placa-rosa); }
.mh-placas [data-g="educacao"] { --c: var(--m-placa-ouro); }
.mh-placas [data-g="servico"] { --c: var(--m-terra); }
.mh-placas li { justify-self: start; min-width: min(320px, 100%); background: var(--c); color: #fff; font: 700 clamp(15px, 1.4vw, 19px)/1.1 var(--m-sans); padding: 18px 64px 18px 20px; border-radius: 0 999px 999px 0; animation: mh-placa .7s var(--m-ease) both; }
.mh-placas li:nth-child(2) { animation-delay: .06s; } .mh-placas li:nth-child(3) { animation-delay: .12s; } .mh-placas li:nth-child(4) { animation-delay: .18s; } .mh-placas li:nth-child(5) { animation-delay: .24s; }
@keyframes mh-placa { from { opacity: 0; transform: translateX(-24px); } }
.mh-direcao { display: grid; gap: 16px; align-content: start; }
.mh-direcao p { margin: 0 !important; background: #fff; border: 1px solid #0002; padding: 18px 20px 18px 64px; position: relative; font-weight: 700; font-size: 14px !important; line-height: 1.5 !important; }
.mh-direcao .seta { position: absolute; left: 18px; top: 12px; font-size: 30px; font-weight: 400; }
.mh-tec { margin-top: clamp(40px, 5vw, 64px); }
.mh-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 15px; line-height: 1.5; }
.mh-lista li { padding-left: 22px; position: relative; }
.mh-lista li::before { content: ""; position: absolute; left: 0; top: .2em; width: 10px; height: 14px; background: var(--m-placa-rosa); border-radius: 5px 5px 0 0; }
.mh-credito { font-size: 13px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--cinza) !important; }
/* totens e placas: medidas tiradas das pranchas de sinalização (totem de 224 pt de largura, Arial) */
.mh-sinal .mh-leg { margin: clamp(56px, 7vw, 96px) 0 24px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--cinza); }
.mh-totens { --g: clamp(14px, 2.4vw, 36px); display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--g); align-items: start; max-width: 1040px; }
.mh-totens figure { margin: 0; }
.mh-totens figcaption { font-size: 13px; color: var(--cinza); border-top: 2px solid var(--m-preto); margin: 0 calc(var(--g) / -2); padding: 12px calc(var(--g) / 2) 0; }
.tot { container-type: inline-size; position: relative; aspect-ratio: 224 / 523; background: var(--m-placa-rosa); color: #fff; border-radius: 11.6% 11.6% 0 0 / 4.97% 4.97% 0 0; font-family: var(--m-sans); }
.tot > * { position: absolute; margin: 0 !important; padding: 0; color: #fff !important; max-width: none !important; }
.tot b { font-weight: 700; }
.tot-a .mah { left: 9.9cqw; top: 20.6cqw; font-size: 35.3cqw; line-height: 1; letter-spacing: 0; }
.tot-a .nome { left: 12.41cqw; top: 55.65cqw; width: 75.31cqw; display: block; }
.tot-a .nome svg { width: 100%; height: auto; display: block; fill: currentColor; }
.tot-a .txt { left: 10.8cqw; top: 90cqw; width: 80cqw; font-size: 4.52cqw; line-height: 1.196; }
.tot-a .txt span { display: block; text-align: justify; text-align-last: justify; white-space: nowrap; }
.tot-a .txt span:last-child { text-align-last: left; }
.tot .seta { width: 15.76cqw; height: 18.2cqw; left: 10.5cqw; top: 17.8cqw; fill: none; stroke: currentColor; stroke-width: 3.9; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tot .seta.esq { width: 18.2cqw; height: 15.76cqw; left: 9.3cqw; top: 75.2cqw; }
.tot-b p { left: 33.3cqw; font-size: 6.73cqw; line-height: 1.195; }
.tot-b .g1 { top: 16.6cqw; }
.tot-b .g2 { top: 73.7cqw; }
.tot-b .sp { display: block; height: 4cqw; }
.tot-b hr { left: 9.3cqw; width: 76.2cqw; top: 61.3cqw; border: 0; border-top: .78cqw solid #fff; }
.tot-c .seta { left: 13.3cqw; top: 17.1cqw; }
.tot-c p { left: 13.4cqw; top: 44.8cqw; font-size: 9.04cqw; line-height: 1.2; }
.tot-c p b, .tot-c p span { display: block; }
.tot-c p span { margin-top: 10.9cqw; }
.tot-c.verso p { left: 15.6cqw; top: 49.3cqw; }

/* WC e vestiário: a prancha do manual, com as cotas e as letras de cada placa */
.mh-prancha { --rosa: var(--m-placa-rosa); --cota: #9b8c80; --u: min(6.5px, calc((100vw - 2 * var(--mx) - 150px) / 55)); display: flex; flex-wrap: wrap; gap: clamp(36px, 7vw, 110px); align-items: center; justify-content: center; background: #fff; border-radius: 4px; padding: clamp(28px, 4.5vw, 64px); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.mh-prancha .tag { flex: none; display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 50%; background: var(--rosa); color: #fff; font: 700 14px/1 var(--m-sans); }
.mh-prancha em { font-style: normal; font: 12px/1 var(--m-sans); color: var(--cota); background: #fff; padding: 0 4px; white-space: nowrap; }
.cota-v { flex: none; position: relative; width: 44px; align-self: stretch; display: grid; place-items: center; }
.cota-v::before { content: ""; position: absolute; right: 8px; top: 0; bottom: 0; border-left: 1px solid var(--cota); }
.cota-v::after { content: ""; position: absolute; right: 4px; width: 9px; top: 0; bottom: 0; border-top: 1px solid var(--cota); border-bottom: 1px solid var(--cota); }
.cota-v em { position: relative; z-index: 1; transform: translateX(-6px); }
.cota-h { position: relative; display: grid; place-items: center; height: 18px; margin-top: 10px; border-left: 1px solid var(--cota); border-right: 1px solid var(--cota); }
.cota-h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--cota); }
.cota-h em { position: relative; z-index: 1; }
.pr-placas { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.pr-linha { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); }
.pr-linha .pl { width: calc(45 * var(--u)); }
.pr-linha .pl-t { width: calc(55 * var(--u)); }
.pr-cotas-in { width: calc(55 * var(--u)); display: grid; gap: 6px; }
.pr-cotas .cota-h { margin: 0; }
.pr-cotas .c45 { width: calc(45 * var(--u)); }
.pr-cotas .tag { visibility: hidden; display: grid; }
.pr-cotas .cota-v::before, .pr-cotas .cota-v::after { display: none; }
.pl { flex: none; container-type: inline-size; position: relative; aspect-ratio: 252.5 / 116.8; background: var(--rosa); color: #fff; border-radius: 0 999px 999px 0; font-family: var(--m-sans); transition: transform .5s var(--m-ease); }
.pl:hover { transform: translateX(6px); }
.pl > span { position: absolute; left: 11.2cqw; top: 51%; transform: translateY(-50%); font-size: 8.85cqw; line-height: 1; }
.pl > i { position: absolute; left: 75.4cqw; top: 41.4%; height: 29.7%; display: block; }
.pl > i svg, .pl-t > i svg { height: 100%; width: auto; display: block; fill: currentColor; }
.pl-t { aspect-ratio: 341.3 / 114.6; }
.pl-t > span { left: 8.2cqw; top: 52%; font-size: 8.6cqw; }
.pl-t > i { left: 57.6cqw; top: 29.8%; height: 36.4%; }
.pr-arco { display: grid; justify-items: start; gap: 12px; width: calc(20 * var(--u) + 44px); }
.pr-arco-linha { display: flex; width: 100%; }
.pr-arco .cota-h { width: calc(100% - 44px); margin-left: 44px; margin-top: 0; }
.pr-arco .tag { margin-left: calc(44px + (100% - 44px) / 2 - 17px); }
.pl-arco { flex: none; width: calc(20 * var(--u)); color: #fff; aspect-ratio: 116.8 / 252.5; background: var(--rosa); border-radius: 999px 999px 0 0; display: grid; place-items: start center; padding-top: 37%; }
.pl-arco i { width: 54%; display: block; }
.pl-arco i svg { width: 100%; height: auto; display: block; fill: currentColor; color: #fff; }

/* FIM */
.mh-fim { display: grid; gap: 40px; justify-items: start; }
.mh-fim-logo { width: min(240px, 50vw); color: var(--m-terra); }
.mh-fim .ficha { width: 100%; }

@media (max-width: 860px) {
  .mh-duas, .mh-parede { grid-template-columns: 1fr; }
  .mh-totens { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .mh-prancha { grid-template-columns: 1fr; padding: 24px 18px; }
  .mh-prancha { --u: min(8px, calc((100vw - 2 * var(--mx) - 140px) / 55)); }
  .mh-fileira { width: calc(var(--fw) * 1.7); left: 50%; transform: translateX(-50%); }
  .mh-abre { padding-bottom: calc((100vw - 2 * var(--mx)) * 1.7 / 6.93 + 70px) !important; }
  .mh-arcos { grid-template-columns: 1fr 1fr; }
  .mh-tres { margin-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mh *, .mh *::before { animation: none !important; transition: none !important; }
  [data-rv], .mh-logo path { opacity: 1 !important; transform: none !important; }
  .mh-fileira i { clip-path: none !important; }
  .mh-arco-foto { clip-path: none; }
  .mh-janelas .jan { transform: none; }
}
.mh-placas [data-g="educacao"] li { color: #2a2420; }
.mh-setores button[data-s="educacao"][aria-pressed="true"] { color: #2a2420; }
