/* EC Fitness Academia — versão 2 */

:root {
  --preto: #0d0b0a;
  --grafite: #1d1a18;
  --amarelo: #fbcd04;
  --amarelo-claro: #ffdc3d;
  --laranja: #fa8306;
  --creme: #fbf6e9;
  --suave-no-escuro: #c4bdb1;

  --fonte: "Archivo", "Segoe UI", Roboto, Arial, sans-serif;

  --margem: clamp(1rem, 4.5vw, 4rem);
  --respiro: clamp(4rem, 9vw, 7.5rem);
  --corte: clamp(22px, 4.5vw, 68px);
  --topo: 84px;
  --raio: 26px;        /* painéis, quadros e fotos */
  --raio-menor: 14px;  /* caixas pequenas */

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--preto);
  color: var(--creme);
  font: 400 1.0625rem/1.6 var(--fonte);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
button, .botao, .menu a {-webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
em { font-style: normal; }

h1, h2, h3 { font-weight: 900; font-stretch: 122%; text-transform: uppercase; line-height: .98; letter-spacing: -.005em; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 4px; }
.abertura :focus-visible,
.secao--clara :focus-visible,
.secao--amarela :focus-visible,
.painel--amarelo :focus-visible,
.painel--claro :focus-visible { outline-color: var(--preto); }

.caixa {
  width: min(100% - 2 * max(var(--margem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), 1200px);
  margin-inline: auto;
}

.so-leitor {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.pular {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: var(--creme); color: var(--preto); padding: .7rem 1.1rem; font-weight: 700; border-radius: var(--raio-menor);
}
.pular:focus { top: 1rem; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.topo__barra {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1232px; min-height: 62px; margin-inline: auto; padding: 8px 10px 8px 20px;
  background: var(--preto); color: var(--creme); border-radius: 99px;
  box-shadow: 0 0 0 1px rgba(251, 246, 233, .14), 0 10px 30px rgba(0, 0, 0, .22);
}
.marca { display: block; flex: none; padding-block: 4px; border-radius: 6px; }
.marca img { width: 118px; }
.menu ul { display: flex; gap: .25rem; }
.menu a {
  display: block; padding: .65rem 1.1rem; border-radius: 99px;
  text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.menu a:active { transform: scale(.97); }
.menu-botao { display: none; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: .9rem 1.9rem; border-radius: 99px;
  font-weight: 800; font-stretch: 112%; font-size: 1rem; line-height: 1.1; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease;
}
.botao:active { transform: scale(.97); }
.botao--amarelo { background: var(--amarelo); color: var(--preto); }
.botao--preto { background: var(--preto); color: var(--creme); }
.botao--linha { box-shadow: inset 0 0 0 2px rgba(251, 246, 233, .5); }

/* ---------- Abertura ---------- */
.abertura {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 600px; min-height: min(100svh, 940px);
  padding-block: calc(var(--topo) + 1rem) calc(var(--corte) + 2.5rem);
  background: var(--amarelo); color: var(--preto);
}
.abertura__texto { position: relative; z-index: 1; }
.abertura__status { min-height: 44px; margin-bottom: 1.4rem; }
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .55rem 1.15rem; border-radius: 99px;
  background: var(--preto); color: var(--creme); font-weight: 600; font-size: .92rem; line-height: 1.3;
}
.status::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #a39c91; }
.status.aberto::before { background: #46dc79; }

.gigante { font-size: clamp(2.7rem, min(6.9vw, 13vh), 6.6rem); line-height: .96; font-stretch: 125%; }
/* A folga vertical evita que a máscara corte acentos e a cedilha */
.gigante .linha { display: block; overflow: hidden; padding-block: .14em .1em; margin-block: -.1em -.08em; white-space: nowrap; }
.gigante .linha > span { display: block; }
.gigante em { display: inline-block; padding: .06em .22em .08em; border-radius: .22em; background: var(--preto); color: var(--amarelo); }

.abertura__arte {
  position: absolute; top: 50%; right: -1vw; translate: 0 -50%;
  width: min(44vw, 82vh, 680px); pointer-events: none;
}
.abertura__arte img { width: 100%; }

.js .gigante .linha > span { animation: subir .75s var(--ease-out) both; }
.js .gigante .linha:nth-child(2) > span { animation-delay: 80ms; }
.js .gigante .linha:nth-child(3) > span { animation-delay: 150ms; }
.js .gigante .linha:nth-child(4) > span { animation-delay: 205ms; }
.js .abertura__status { animation: aparecer .4s ease 260ms both; }
.js .abertura__arte { animation: chegar 1s var(--ease-out) both; }

/* ---------- Seções ---------- */
.secao { position: relative; padding-block: var(--respiro) calc(var(--respiro) + var(--corte) * .5); scroll-margin-top: calc(var(--topo) - var(--respiro) + 8px); }
.secao--preta { background: var(--preto); color: var(--creme); }
.secao--clara { background: var(--creme); color: var(--preto); }
.secao--amarela { background: var(--amarelo); color: var(--preto); }

/* Corte diagonal que avança sobre a seção de cima */
.corte::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--corte);
  background: inherit; clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.corte--inverso::before { clip-path: polygon(0 0, 100% 100%, 0 100%); }

.titulo-secao { font-size: clamp(2.25rem, 6.2vw, 4.75rem); margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.titulo-secao em { display: block; }
.secao--preta .titulo-secao em { color: var(--amarelo); }

/* ---------- Modalidades ---------- */
.paineis { display: grid; gap: .9rem; }
.painel { border-radius: var(--raio); }
.painel--amarelo { background: var(--amarelo); color: var(--preto); }
.painel--claro { background: var(--creme); color: var(--preto); }
.painel--grafite { background: var(--grafite); color: var(--creme); }

.painel__cabeca {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 96px; padding: 1.1rem clamp(1.1rem, 3.5vw, 2.8rem);
  background: none; border: 0; border-radius: var(--raio); cursor: pointer; text-align: left; text-transform: uppercase;
}
.painel__nome { font-weight: 900; font-stretch: 125%; font-size: clamp(1.4rem, 7vw, 5rem); line-height: 1.05; transition: transform .16s var(--ease-out); transform-origin: left; }
.painel__cabeca:active .painel__nome { transform: scale(.97); }
.painel__sinal { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--preto); transition: transform .3s var(--ease-out); }
.painel__sinal::before, .painel__sinal::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; border-radius: 2px; background: var(--creme); translate: -50% -50%; }
.painel__sinal::after { rotate: 90deg; }
.painel--grafite .painel__sinal { background: var(--amarelo); }
.painel--grafite .painel__sinal::before, .painel--grafite .painel__sinal::after { background: var(--preto); }
.painel--grafite .painel__nome { color: var(--amarelo); }
.js .painel.aberto .painel__sinal { transform: rotate(45deg); }
html:not(.js) .painel__sinal { display: none; }
html:not(.js) .painel__cabeca { cursor: default; }

.painel__corpo { display: grid; grid-template-rows: 1fr; }
.painel__recorte { min-height: 0; overflow: hidden; }
.js .painel__corpo { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s var(--ease-out), visibility 0s linear .3s; }
.js .painel__recorte { opacity: 0; transition: opacity .2s ease; }
.js .painel.aberto .painel__corpo { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s var(--ease-out), visibility 0s; }
.js .painel.aberto .painel__recorte { opacity: 1; }

.painel__conteudo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: .2rem clamp(1.1rem, 3.5vw, 2.8rem) clamp(1.4rem, 3.5vw, 2.8rem);
}
.painel__conteudo--fotos { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: end; }
.painel__texto { max-width: 32rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.painel--grafite .painel__texto { margin-bottom: 1.6rem; }
.painel__desenho { justify-self: center; width: min(100%, 320px); }

.areas { display: grid; gap: .7rem; margin-top: 1.6rem; }
.areas li { padding: 1rem 1.2rem; border-radius: var(--raio-menor); background: var(--preto); color: var(--creme); }
.areas strong { display: block; color: var(--amarelo); font-weight: 900; font-stretch: 120%; font-size: 1.2rem; line-height: 1.2; text-transform: uppercase; }
.areas span { display: block; font-size: .95rem; }

/* Fotos pequenas: as originais têm baixa resolução. O corte esconde os textos das capas */
/* Colunas proporcionais para as três fotos terem a mesma altura */
.fotos { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.245fr); gap: .7rem; align-items: start; width: 100%; max-width: 640px; justify-self: end; }
.foto { overflow: hidden; border-radius: var(--raio-menor); background: var(--preto); aspect-ratio: 4 / 5; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--sala img { object-position: center bottom; }
.foto--agua { margin-top: clamp(1rem, 3vw, 2.5rem); }
.foto--agua img { object-position: center 5%; }
/* Só a parte de cima da capa, sem o cartaz */
.foto--professor { margin-top: clamp(2rem, 6vw, 5rem); aspect-ratio: 361 / 290; }
.foto--professor img { object-position: center top; }

/* ---------- Horários ---------- */
.semana { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.legenda { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.ponto { width: 11px; height: 11px; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 0 2px var(--preto); }
.observacao { margin-top: .5rem; font-size: .95rem; color: #57514a; }

.dias { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 6px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 2px var(--preto); }
.dias__marcador {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 7);
  border-radius: 16px; background: var(--preto);
  transition: transform .25s var(--ease-in-out);
}
.dias button { position: relative; min-width: 0; min-height: 60px; padding: 0 0 8px; background: none; border: 0; border-radius: 16px; cursor: pointer; font-weight: 800; font-size: clamp(.8rem, 3.4vw, 1rem); text-transform: uppercase; transition: color .2s ease; }
.dias button[aria-selected="true"] { color: var(--amarelo); }
.dias button[data-danca]::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); translate: -50% 0; }
.dias button:active { color: var(--laranja); }
html:not(.js) .dias, html:not(.js) .legenda { display: none; }

.quadros { display: grid; gap: .8rem; margin-top: .9rem; }
.quadro { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.4rem, 3.5vw, 2.5rem); border-radius: var(--raio); background: var(--preto); color: var(--creme); }
.js .quadros { margin-top: .9rem; }
.js .quadro { grid-area: 1 / 1; visibility: hidden; }
.js .quadro.ativo { visibility: visible; }
.js .quadro.trocando { animation: trocar .22s var(--ease-out); }
.quadro h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-size: 1.15rem; line-height: 1.2; }
.hoje { padding: .15rem .65rem; border-radius: 99px; background: var(--amarelo); color: var(--preto); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.quadro__horas { margin-block: 1rem .4rem; color: var(--amarelo); font-weight: 900; font-stretch: 125%; font-size: clamp(2.5rem, 7.4vw, 5.4rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.quadro__horas small { color: var(--creme); font-size: .32em; vertical-align: .55em; }
#dia-0 .quadro__horas { font-size: clamp(2.2rem, 6.6vw, 4.8rem); }
.aula { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; align-self: stretch; margin-top: 1.5rem; min-height: 68px; padding: .9rem 1.2rem; border-radius: var(--raio-menor); background: var(--amarelo); color: var(--preto); font-weight: 700; }
.aula strong { font-weight: 900; font-stretch: 122%; font-size: 1.7rem; line-height: 1; }
.aula--sem { background: var(--grafite); color: var(--suave-no-escuro); font-weight: 500; }

/* ---------- Planos ---------- */
.planos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
/* Formato de bilhete: dois recortes redondos nas laterais */
.plano {
  display: grid; grid-template-rows: 1fr 1fr; min-height: 340px; border-radius: var(--raio); background: var(--preto); color: var(--creme); text-align: center;
  -webkit-mask: radial-gradient(circle 17px at left center, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 17px at right center, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 17px at left center, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 17px at right center, transparent 97%, #000) right / 51% 100% no-repeat;
}
.plano__numero { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--amarelo); font-weight: 900; font-stretch: 125%; font-size: clamp(4.4rem, 9vw, 7.5rem); line-height: .9; }
.plano__numero small { color: var(--creme); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; }
.plano__nome { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: .5rem; margin-inline: 28px; padding-block: 1.8rem 1.4rem; border-top: 2px dashed rgba(251, 246, 233, .35); }
.plano h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.planos__fim { display: flex; align-items: center; gap: 1.2rem 2.5rem; margin-top: 2rem; }
.planos__fim .botao { flex: none; }
.planos__fim p { max-width: 32rem; font-size: 1rem; line-height: 1.5; }

/* ---------- Local ---------- */
.rotulo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; font-weight: 700; }
.rotulo::before { content: ""; width: 54px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(115deg, var(--amarelo) 0 8px, transparent 8px 13px); }
.local__rua { font-size: clamp(2.5rem, 9vw, 7.2rem); }
.local__rua em { color: var(--amarelo); white-space: nowrap; }
address { margin-top: 1.2rem; font-style: normal; color: var(--suave-no-escuro); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ---------- Rodapé ---------- */
.rodape { padding-block: 1.8rem calc(1.8rem + env(safe-area-inset-bottom, 0px));border-top: 1px solid rgba(251, 246, 233, .14); color: var(--suave-no-escuro); }
.rodape__linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.nota { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; min-height: 44px; border-radius: 6px; text-decoration: none; font-size: .85rem; }
.nota__estrelas { color: var(--amarelo); letter-spacing: .1em; }

/* ---------- Entradas na rolagem (só com JavaScript) ---------- */
.js [data-entra] { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--atraso, 0ms); }
.js [data-entra].visivel { opacity: 1; transform: none; }

/* Ações pelo teclado acontecem sem animação */
.js .sem-movimento, .js .sem-movimento * { transition: none !important; animation: none !important; }

@keyframes subir { from { transform: translateY(112%); } to { transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes chegar { from { opacity: 0; transform: translateX(18%) rotate(24deg); } to { opacity: 1; transform: none; } }
@keyframes trocar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Efeitos de passar o mouse: só onde há mouse */
@media (hover: hover) and (pointer: fine) {
  .menu a:hover { background: var(--amarelo); color: var(--preto); }
  .botao:hover { transform: translateY(-2px); }
  .botao:active { transform: scale(.97); }
  .botao--amarelo:hover { background: var(--amarelo-claro); }
  .botao--preto:hover { background: var(--grafite); color: var(--amarelo); }
  .botao--linha:hover { background: var(--creme); color: var(--preto); }
  .painel__cabeca:hover .painel__sinal { scale: 1.08; }
  .dias button:not([aria-selected="true"]):hover { color: #8a4a00; }
  .nota:hover .nota__texto { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Telas médias e pequenas ---------- */
@media (max-width: 860px) {
  /* Menu recolhido */
  .js .menu-botao { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; background: var(--amarelo); color: var(--preto); border: 0; border-radius: 50%; cursor: pointer; transition: transform .16s var(--ease-out); }
  .js .menu-botao:active { transform: scale(.94); }
  .menu-botao__traco { position: relative; }
  .menu-botao__traco, .menu-botao__traco::before, .menu-botao__traco::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s var(--ease-out), background-color .15s ease; }
  .menu-botao__traco::before, .menu-botao__traco::after { content: ""; position: absolute; left: 0; }
  .menu-botao__traco::before { transform: translateY(-6.5px); }
  .menu-botao__traco::after { transform: translateY(6.5px); }
  .menu-botao[aria-expanded="true"] .menu-botao__traco { background: transparent; }
  .menu-botao[aria-expanded="true"] .menu-botao__traco::before { transform: rotate(45deg); }
  .menu-botao[aria-expanded="true"] .menu-botao__traco::after { transform: rotate(-45deg); }

  .js .menu {
    position: absolute; top: calc(100% + 8px); right: 0; width: min(100%, 320px);
    max-height: calc(100vh - var(--topo) - 1rem); max-height: calc(100dvh - var(--topo) - 1rem); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px; border-radius: var(--raio); background: var(--preto);
    box-shadow: 0 0 0 1px rgba(251, 246, 233, .16), 0 20px 40px rgba(0, 0, 0, .4);
    opacity: 0; transform: scale(.95); transform-origin: top right; visibility: hidden;
    transition: opacity .14s var(--ease-out), transform .14s var(--ease-out), visibility 0s linear .14s;
  }
  .js .menu.aberto { opacity: 1; transform: none; visibility: visible; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s; }
  .js .menu ul { display: grid; }
  .js .menu a { padding: .9rem 1.1rem; font-weight: 800; font-stretch: 118%; font-size: 1.15rem; text-transform: uppercase; }

  /* Sem JavaScript os links ficam à vista e o topo não fica preso */
  html:not(.js) .topo { position: absolute; }
  html:not(.js) .topo__barra { flex-wrap: wrap; border-radius: var(--raio); }
  html:not(.js) .menu ul { flex-wrap: wrap; }
  html:not(.js) .menu a { padding: .4rem .7rem; }
  html:not(.js) .abertura { padding-top: 13rem; }

  /* Halter em cima, título embaixo */
  .abertura { align-items: flex-end; }
  /* O halter ocupa só o espaço que sobra acima do título */
  .abertura__arte { top: calc(var(--topo) + .5rem + env(safe-area-inset-top, 0px)); right: -3vw; translate: none; width: min(94vw, max(150px, 100vh - 264px - 42vw)); width: min(94vw, max(150px, 100svh - 264px - 42vw)); }
  .gigante { font-size: clamp(2.2rem, min(11.2vw, 10.5vh), 6rem); font-stretch: 122%; }

  .painel__conteudo, .painel__conteudo--fotos, .semana { grid-template-columns: minmax(0, 1fr); }
  .painel__desenho { width: min(100%, 250px); }
  .fotos { justify-self: center; }
  .semana .titulo-secao { margin-bottom: 1.4rem; }

  .planos { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .plano { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); grid-template-rows: none; min-height: 150px; text-align: left; }
  .plano__numero { text-align: center; font-size: clamp(3.1rem, 15vw, 5rem); padding-left: 12px; }
  .plano__numero small { font-size: .82rem; }
  .plano__nome { justify-content: center; align-items: flex-start; margin: 20px 0; padding: 0 24px 0 1.1rem; border-top: 0; border-left: 2px dashed rgba(251, 246, 233, .35); }
  .plano h3 { font-size: clamp(1.05rem, 5.2vw, 1.7rem); font-stretch: 112%; }
  .plano__nome p { font-size: .95rem; line-height: 1.45; }
  .planos__fim { flex-direction: column; align-items: stretch; max-width: 520px; }
}

/* Tablet em pé */
@media (min-width: 481px) and (max-width: 860px) and (orientation: portrait) {
  .abertura__arte { right: -1vw; width: min(60vw, max(200px, min(100vh, 940px) - 570px)); width: min(60vw, max(200px, min(100svh, 940px) - 570px)); }
  .gigante { font-size: min(10.4vw, 8vh, 5.4rem); }
}

@media (max-width: 560px) {
  .fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
  .foto--agua { margin-top: 1.5rem; }
  .foto--professor { grid-column: 1 / -1; margin-top: 0; width: 100%; max-width: 361px; justify-self: center; }
  .painel__cabeca { min-height: 84px; }
  .painel__sinal { width: 38px; height: 38px; }
  .acoes .botao { flex: 1 1 100%; }
}

/* Telas estreitas demais para o nome inteiro na largura expandida */
@media (max-width: 380px) {
  .painel__nome { font-stretch: 108%; }
  .dias { padding: 4px; }
  .dias__marcador { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 7); }
}

/* Celular deitado: halter à direita */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 560px) {
  .abertura { align-items: center; min-height: 100vh; min-height: 100svh; }
  .abertura__arte { top: 55%; right: 0; translate: 0 -50%; width: min(44vw, 80vh); }
  .gigante { font-size: clamp(2rem, min(6.4vw, 11.5vh), 4rem); }
  .abertura__status { margin-bottom: .6rem; }
}

/* ---------- Movimento reduzido: sem deslocamentos, só transições de opacidade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .gigante .linha > span, .js .abertura__arte, .js .abertura__status { animation: aparecer .3s ease both; }
  .js .quadro.trocando { animation: aparecer .2s ease; }
  .js [data-entra] { transform: none; transition: opacity .3s ease; transition-delay: 0ms; }
  .js .painel__corpo, .js .painel.aberto .painel__corpo, .painel__sinal, .painel__nome, .dias__marcador { transition: none; }
  .js .menu { transform: none; }
  .botao, .botao:hover, .botao:active, .menu a:active,
  .painel__cabeca:active .painel__nome, .js .menu-botao:active { transform: none; }
}
