@font-face{font-family:'Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('../fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('../fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* ---------------------------------------------------------------
   Museu Virtual IHGGS
   Canvas de autoria: 1024 x 504. Tudo escala junto no desktop.
   1rem = 1px do canvas.
   --------------------------------------------------------------- */

:root{
  --cream:#FFEFCE;
  --bg:#1C1C1C;
  --bg-deep:#0F0F0F;
  --bg-light:#FFF6DE;
  --muted:#8B7E74;
  --green:#47CD08;
  --canvas-w:1024;
  --canvas-h:504;
}

html{
  /* escala: cabe pela largura, sem estourar a altura, com teto pra telas gigantes */
  font-size:min(calc(100vw / var(--canvas-w)),calc(100dvh / var(--canvas-h)),2.1px);
  -webkit-text-size-adjust:100%;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:'Inter Tight',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  background:var(--page-bg,var(--bg));
  color:var(--page-fg,var(--cream));
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  font-synthesis-weight:none;
}
body.t-deep{--page-bg:var(--bg-deep)}
body.t-light{--page-bg:var(--bg-light);--page-fg:var(--muted)}

a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

/* ---------- canvas ---------- */
.canvas{
  position:relative;
  width:calc(var(--canvas-w) * 1rem);
  height:calc(var(--canvas-h) * 1rem);
  flex:none;
}

/* ---------- nav ---------- */
.nav{
  position:absolute;top:0;left:0;right:0;height:32rem;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:0 20rem;
  font-size:16rem;line-height:32rem;
  font-variation-settings:'wght' 600;
  z-index:20;
}
.nav a{white-space:nowrap}
.nav a:hover{opacity:.6}
.nav__lado{display:flex;align-items:center;gap:12rem;min-width:0}
.nav__lado--fim{justify-content:flex-end}
.nav .rule{flex:1;height:1px;background:currentColor;opacity:.85}

/* ---------- rodapé ---------- */
.meta{
  position:absolute;left:20rem;right:20rem;bottom:14rem;
  display:flex;justify-content:space-between;gap:20rem;
  font-size:8rem;line-height:12rem;
  font-variation-settings:'wght' 300;
  z-index:20;
}

/* ---------- setas de página ---------- */
.pager{
  position:absolute;top:50%;transform:translateY(-50%);
  width:26rem;height:40rem;display:grid;place-items:center;
  opacity:.55;transition:opacity .2s;z-index:20;
}
.pager:hover{opacity:1}
.pager--prev{left:6rem}
.pager--next{right:6rem}
.pager svg{width:14rem;height:24rem;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ---------- home ---------- */
.home__logo{position:absolute;left:92rem;top:78rem;width:59rem;height:59rem}
.home__eyebrow{position:absolute;left:85rem;top:149rem;width:400rem;
  font-size:20rem;line-height:30rem;font-variation-settings:'wght' 300}
.home__title{position:absolute;left:85rem;top:191rem;width:515rem;
  font-size:56rem;line-height:64rem;font-variation-settings:'wght' 600}
.home__cta{position:absolute;left:81rem;top:335rem;min-width:216rem;height:50rem;
  display:inline-grid;place-items:center;padding:0 24rem;
  background:var(--green);color:#fff;border-radius:5rem;
  font-size:18rem;line-height:50rem;font-variation-settings:'wght' 500;
  transition:filter .2s,transform .2s}
.home__cta:hover{filter:brightness(1.12);transform:translateY(-1rem)}
.home__year{position:absolute;left:272rem;top:452rem;width:480rem;text-align:center;
  font-size:25rem;line-height:30rem;font-variation-settings:'wght' 500}
.home__media{position:absolute;left:578rem;top:35rem;width:307rem;height:428rem}
.home__media video,.home__media img{width:100%;height:100%;object-fit:cover}

/* ---------- menu ---------- */
.menu__list{position:absolute;left:16rem;top:32rem;right:20rem}
.menu__row{position:relative;display:block;height:100rem}
.menu__row + .menu__row{margin-top:1rem}
.menu__label{
  display:inline-block;
  font-size:100rem;line-height:100rem;font-variation-settings:'wght' 600;
  transition:opacity .2s,transform .25s;
}
.menu__row[href]:hover .menu__label{transform:translateX(10rem)}
.menu__row:not([href]) .menu__label{cursor:default}
.menu__desc{
  position:absolute;left:528rem;top:71rem;width:427rem;
  font-size:25rem;line-height:30rem;font-variation-settings:'wght' 500;
}
.menu__logo{position:absolute;right:93rem;top:51rem;width:109rem;height:109rem}

/* ---------- museu 360 ---------- */
.tour{position:absolute;left:10rem;right:10rem;top:23rem;bottom:10rem;background:var(--page-bg)}
.tour iframe{width:100%;height:100%;border:0;display:block}

/* ---------- acervo ---------- */
.acervo__ficha{position:absolute;left:112rem;top:229rem;width:482rem;
  font-size:16rem;line-height:20rem;font-variation-settings:'wght' 500}
.acervo__ficha dl{display:grid;grid-template-columns:80rem 1fr;row-gap:0}
.acervo__ficha dt{opacity:.75}

.gal{position:absolute;left:400rem;top:41rem;width:604rem;height:450rem;
  display:flex;flex-direction:column}
.gal__stage{position:relative;flex:1;min-height:0}
.gal__fig{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .4s ease;
  pointer-events:none}
.gal__fig.is-on{opacity:1;pointer-events:auto}
.gal__fig img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.gal__nav{position:absolute;top:50%;transform:translateY(-50%);
  width:36rem;height:36rem;border-radius:50%;
  background:rgba(139,126,116,.62);color:var(--bg-light);
  display:grid;place-items:center;transition:background .2s;z-index:5}
.gal__nav:hover{background:rgba(139,126,116,.92)}
.gal__nav svg{width:14rem;height:14rem;fill:none;stroke:currentColor;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}
.gal__nav--prev{left:8rem}
.gal__nav--next{right:8rem}
.gal__count{position:absolute;left:50%;bottom:6rem;transform:translateX(-50%);
  width:40rem;height:40rem;border-radius:50%;
  background:rgba(139,126,116,.62);color:var(--bg-light);
  display:flex;align-items:center;justify-content:center;
  font-size:12rem;line-height:1;white-space:nowrap;
  font-variation-settings:'wght' 500;z-index:5}
.gal__ficha{flex:none;padding-top:5rem;text-align:center;
  transition:opacity .25s ease}
.gal__ficha.esta-vazia{min-height:16rem}
.gal__ficha-titulo{font-size:13rem;line-height:16rem;font-variation-settings:'wght' 600}
.gal__ficha-desc{font-size:10rem;line-height:14rem;font-variation-settings:'wght' 400;
  opacity:.75;max-width:520rem;margin:1rem auto 0}
.gal__ficha-titulo:empty,.gal__ficha-desc:empty{display:none}
.gal__thumbs{flex:none;height:50rem;display:flex;gap:5rem;justify-content:flex-start;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:smooth;
  padding-top:6rem;margin-right:68rem}
.gal__thumbs::-webkit-scrollbar{display:none}
.gal__thumbs button{flex:none;width:44rem;height:44rem;border-radius:2rem;overflow:hidden;
  opacity:.45;transition:opacity .2s;outline-offset:2rem}
.gal__thumbs button:hover{opacity:.8}
.gal__thumbs button.is-on{opacity:1}
.gal__thumbs img{width:100%;height:100%;object-fit:cover}
.gal__empty{display:grid;place-items:center;height:100%;text-align:center;
  font-size:18rem;line-height:26rem;opacity:.7;padding:40rem}

/* ---------- contato ---------- */
.contato__title{position:absolute;left:20rem;top:65rem;width:984rem;
  font-size:100rem;line-height:100rem;font-variation-settings:'wght' 600}
.contato__links{position:absolute;left:20rem;top:332rem;width:984rem;
  font-size:40rem;line-height:45rem;font-variation-settings:'wght' 600}
.contato__links a{transition:opacity .2s}
.contato__links a:hover{opacity:.6}
.contato__sep{opacity:.45}

/* ================================================================
   MOBILE — layout próprio, não é o canvas encolhido
   ================================================================ */
@media (max-width:820px),(orientation:portrait) and (max-width:1024px){
  html{font-size:1px}
  body{display:block;overflow:auto;overflow-x:hidden}

  .canvas{width:100%;height:auto;min-height:100dvh;
    display:flex;flex-direction:column;
    padding:64px 20px 78px;position:relative}

  .nav{position:fixed;height:52px;padding:0 20px;font-size:14px;line-height:52px;
    background:var(--page-bg);border-bottom:1px solid currentColor}
  .nav .rule{display:none}
  .nav a{flex:1;text-align:center}
  .nav a:first-child{text-align:left}
  .nav a:last-child{text-align:right}

  .meta{position:fixed;bottom:0;left:0;right:0;padding:8px 20px;
    background:var(--page-bg);font-size:9px;line-height:14px;
    border-top:1px solid currentColor}

  .pager{display:none}

  /* home mobile */
  .home{justify-content:flex-start;gap:0}
  .home__logo,.home__eyebrow,.home__title,.home__cta,.home__year,.home__media{
    position:static;width:auto;left:auto;top:auto}
  .home__logo{width:52px;height:52px;margin:8px 0 18px;order:1}
  .home__eyebrow{font-size:16px;line-height:22px;margin-bottom:6px;order:2}
  .home__title{font-size:clamp(34px,9.5vw,52px);line-height:1.04;margin-bottom:24px;order:3}
  .home__media{width:min(100%,300px);aspect-ratio:307/428;height:auto;margin-bottom:26px;order:4}
  .home__cta{display:grid;width:100%;min-width:0;height:54px;font-size:17px;line-height:54px;
    border-radius:6px;order:5}
  .home__year{font-size:20px;line-height:1;text-align:left;margin-top:auto;padding-top:26px;order:6}

  /* menu mobile */
  .menu__list{position:static}
  .menu__row{height:auto;padding:16px 0;border-bottom:1px solid currentColor}
  .menu__row + .menu__row{margin-top:0}
  .menu__label{font-size:clamp(34px,10vw,58px);line-height:1.02;display:block}
  .menu__desc{position:static;width:auto;font-size:15px;line-height:20px;
    margin-top:4px;opacity:.75}
  .menu__logo{position:absolute;right:20px;top:74px;width:46px;height:46px}

  /* tour mobile */
  .canvas--tour{padding:52px 0 32px;min-height:100dvh}
  .tour{position:static;flex:1;min-height:calc(100dvh - 84px)}

  /* acervo mobile */
  .acervo__ficha{position:static;width:auto;font-size:13px;line-height:18px;
    order:2;margin-top:22px}
  .acervo__ficha dl{grid-template-columns:64px 1fr}
  .gal{position:static;width:100%;height:auto;order:1;display:block}
  .gal__stage{position:relative;height:58vh;min-height:300px}
  .gal__nav{width:36px;height:36px}
  .gal__nav svg{width:15px;height:15px}
  .gal__nav--prev{left:4px}
  .gal__nav--next{right:4px}
  .gal__count{width:40px;height:40px;font-size:12px;bottom:6px}
  .gal__ficha{padding-top:14px;text-align:left}
  .gal__ficha.esta-vazia{min-height:0}
  .gal__ficha-titulo{font-size:16px;line-height:21px}
  .gal__ficha-desc{font-size:13px;line-height:18px;max-width:none;margin-top:3px}
  .gal__thumbs{height:60px;padding-top:10px;justify-content:flex-start;margin-right:0}
  .gal__thumbs button{width:50px;height:50px}

  /* contato mobile */
  .contato__title,.contato__links{position:static;width:auto}
  .contato__title{font-size:clamp(38px,11vw,64px);line-height:1.02;margin:10px 0 28px}
  .contato__links{font-size:clamp(22px,6vw,34px);line-height:1.35}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}

.pula{position:absolute;left:-9999px;top:0;z-index:99;
  background:var(--cream);color:#1C1C1C;padding:10px 16px;border-radius:0 0 6px 0;
  font-size:14px;font-weight:600}
.pula:focus{left:0}

/* foco visível pra teclado */
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
