/* Natal 26 | MOA

   O site anda de lado: os painéis estão em fila e a página desliza na
   horizontal, como um desfile a passar na rua. Em ecrãs estreitos e em
   telemóveis volta a empilhar na vertical, que é como se lê num telemóvel.

   Verde de pinheiro, creme e o vermelho medido no catálogo do cliente. */

:root {
  --neve: #efe9e0;
  --neve-2: #ffffff;
  --neve-3: #f1ebe1;
  --linha: rgba(31, 26, 23, 0.13);
  --tinta: #1f1a17;
  --tinta-fraca: rgba(31, 26, 23, 0.62);
  --creme: #fffdfa;
  --vermelho: #c20005;
  --vermelho-vivo: #e01b21;
  --dourado: #b0791f;
  --sombra: 0 14px 32px rgba(31, 26, 23, 0.13);
  --sombra-alta: 0 26px 48px rgba(31, 26, 23, 0.2);
  --topo: 68px;
  --lado: clamp(1.4rem, 4vw, 4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  /* Fundo de neve com tres manchas muito suaves, uma avermelhada, uma dourada e
     um claro ao centro. Ficam presas ao ecra enquanto o trilho corre por cima,
     o que da alguma profundidade sem nada a mexer. */
  background-color: var(--neve);
  background-image:
    radial-gradient(58vw 58vw at 8% -14%, rgba(194, 0, 5, 0.16), transparent 62%),
    radial-gradient(52vw 52vw at 94% 114%, rgba(176, 121, 31, 0.2), transparent 62%),
    radial-gradient(40vw 40vw at 78% 6%, rgba(122, 146, 176, 0.14), transparent 64%),
    radial-gradient(66vw 52vw at 46% 52%, rgba(255, 253, 250, 0.92), transparent 66%);
  background-attachment: fixed;
  color: var(--tinta);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* A familia dos titulos vem de tipografia.css, que muda conforme a versao. */
h1,
h2 {
  margin: 0;
}

.etiqueta {
  margin: 0 0 0.7rem;
  color: var(--dourado);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mao {
  margin: 0;
  color: var(--vermelho);
  font-family: "Caveat", cursive;
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  line-height: 1.1;
  rotate: -1.2deg;
}

/* ------------------------------------------------------------------ topo */

.topo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: var(--topo);
  padding: 0 var(--lado);
  background: linear-gradient(to bottom, rgba(239, 233, 224, 0.96), rgba(239, 233, 224, 0.74) 60%, transparent);
}

.marca img {
  width: 104px;
  height: auto;
}

.topo-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 1.8rem);
  font-size: 0.9rem;
  font-weight: 500;
}

.topo-links a {
  text-decoration: none;
}

.topo-links a:hover {
  color: var(--dourado);
}

.topo-links .tel {
  position: relative;
  padding: 0.5rem 1.05rem;
  background: var(--vermelho);
  color: var(--creme);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.topo-links .tel::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 253, 250, 0.45);
}

.topo-links .tel:hover {
  background: var(--vermelho-vivo);
  color: var(--creme);
}

/* --------------------------------------------------------------- trilho */

.trilho {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.trilho::-webkit-scrollbar {
  display: none;
}

/* O fundo corrido fica atras de tudo e tem a largura do trilho inteiro. Nasce a
   zero para nao ser ele proprio a esticar a medida da largura. */
.fundo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 100%;
}

.painel {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: calc(var(--topo) + 2rem) var(--lado) 5rem;
}

.painel-ecra {
  width: 100vw;
  max-width: 100vw;
}

.painel-texto {
  width: min(88vw, 640px);
}

/* Espaco de respiracao onde a cor do fundo vira vermelha. */
.painel-vazio {
  width: min(46vw, 620px);
  padding: 0;
}

/* ---------------------------------------------------------------- capa */

.capa {
  justify-content: flex-end;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.capa-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capa::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--neve) 0%,
    rgba(239, 233, 224, 0.94) 28%,
    rgba(239, 233, 224, 0.5) 52%,
    rgba(239, 233, 224, 0) 80%
  );
}

.capa-txt {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-bottom: clamp(1rem, 6vh, 4rem);
}

.capa .mao {
  margin: 0.9rem 0 0;
}

.capa-intro {
  max-width: 32rem;
  margin: 1rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
  color: var(--tinta-fraca);
}

.capa-accoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 1.8rem 0 0;
}

.capa-grupo {
  justify-content: flex-end;
}

/* --------------------------------------------------------------- botoes

   O botao principal e um bilhete de espectaculo: rectangulo creme, picotado
   vertical perto da direita e a seta no canhoto. Ao passar o rato a tinta
   vermelha sobe de baixo, a seta avanca e o bilhete afunda, como se fosse
   carimbado. O secundario nao e caixa nenhuma, e texto com filete dourado. */

.botao {
  position: relative;
  display: inline-block;
  padding: 1.05rem 3.6rem 1.05rem 1.9rem;
  border: 1px solid var(--vermelho);
  background-color: var(--vermelho);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 253, 250, 0.75) 0 4px,
    transparent 4px 9px
  );
  background-size: 1px 100%;
  background-position: right 2.6rem top;
  background-repeat: no-repeat;
  color: var(--creme);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sombra);
  transition: color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease,
    background-image 0.3s ease;
}

.botao::before {
  content: "→";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  z-index: 2;
  transform: translateY(-50%);
  font-size: 1.05rem;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* A tinta clara sobe de baixo e o bilhete fica em negativo. */
.botao::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--creme);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.botao:hover,
.botao:focus-visible {
  color: var(--vermelho);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(194, 0, 5, 0.5) 0 4px,
    transparent 4px 9px
  );
  transform: translateY(2px);
  box-shadow: 0 6px 16px rgba(31, 26, 23, 0.16);
}

.botao:hover::after,
.botao:focus-visible::after {
  transform: translateY(0);
}

.botao:hover::before,
.botao:focus-visible::before {
  transform: translateY(-50%) translateX(5px);
}

.botao-linha {
  padding: 1.05rem 1.9rem 1.05rem 0.2rem;
  border: 0;
  background-color: transparent;
  background-image: none;
  color: var(--tinta);
  box-shadow: inset 0 -2px 0 rgba(176, 121, 31, 0.3);
}

.botao-linha::before {
  right: 0.1rem;
  color: var(--vermelho);
}

.botao-linha::after {
  inset: auto 0 0 0;
  height: 2px;
  background: var(--vermelho);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.botao-linha:hover,
.botao-linha:focus-visible {
  color: var(--vermelho);
  background-image: none;
  transform: none;
  box-shadow: inset 0 -2px 0 rgba(176, 121, 31, 0.3);
}

.botao-linha:hover::after,
.botao-linha:focus-visible::after {
  transform: scaleX(1);
}

/* O rotulo vem em duplicado: ao passar o rato a primeira copia sai por cima e a
   segunda entra por baixo, no mesmo movimento. */
.botao-rotulo {
  position: relative;
  display: block;
  overflow: hidden;
}

.botao-rotulo span {
  display: block;
  transition: translate 0.42s cubic-bezier(0.62, 0.05, 0.2, 1);
}

.botao-rotulo span:last-child {
  position: absolute;
  inset: 0;
  translate: 0 110%;
}

.botao:hover .botao-rotulo span,
.botao:focus-visible .botao-rotulo span {
  translate: 0 -110%;
}

.botao:hover .botao-rotulo span:last-child,
.botao:focus-visible .botao-rotulo span:last-child {
  translate: 0 0;
}


/* ------------------------------------------- contactos e redes na capa */

.capa-contactos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1.4rem 0 0;
  font-weight: 600;
  font-size: 1.02rem;
}

.capa-contactos a {
  text-decoration: none;
  border-bottom: 2px solid rgba(176, 121, 31, 0.4);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.capa-contactos a:hover {
  color: var(--vermelho);
  border-bottom-color: var(--vermelho);
}

.redes {
  display: flex;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
}

.redes a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--linha);
  background: var(--creme);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.redes svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

.redes a:hover {
  background: var(--vermelho);
  border-color: var(--vermelho);
  transform: translateY(-2px);
}

.redes a:hover svg {
  stroke: var(--creme);
}

/* Os dois videos de apresentacao, pequenos ao lado do texto da capa. */

.teasers {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
}

.teasers-rotulo {
  margin-right: 0.2rem;
  color: var(--tinta-fraca);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.teaser {
  position: relative;
  width: 112px;
  padding: 0;
  border: 1px solid var(--linha);
  background: var(--creme);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teaser img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.teaser-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--vermelho);
  transform: translate(-50%, -50%);
}

.teaser-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.3rem 0 0.3rem 0.5rem;
  border-color: transparent transparent transparent var(--creme);
}

.teaser:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-alta);
}

/* Janela do video, por cima da pagina */

.lupa {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgba(20, 14, 12, 0.88);
}

.lupa[hidden] {
  display: none;
}

.lupa-caixa {
  width: min(96vw, 900px);
}

.lupa-caixa iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.lupa-fechar {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 253, 250, 0.35);
  background: transparent;
  color: var(--creme);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease;
}

.lupa-fechar:hover {
  background: var(--vermelho);
  border-color: var(--vermelho);
}

/* -------------------------------------------------------------- titulos */

.fila-titulo {
  align-self: center;
  width: min(30vw, 22rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
}

.fila-titulo .mao {
  margin-bottom: 0.3rem;
}

.fila-titulo .nota {
  margin: 1.2rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
  color: var(--tinta-fraca);
}

/* ------------------------------------------------------------- cartoes */

/* Os cartoes andam em duas filas que correm para o lado: enchem melhor o ecra
   e cortam para metade o caminho a percorrer. */
.fila {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  align-content: center;
  justify-content: start;
  gap: clamp(1.1rem, 2.2vw, 2rem);
  height: 100%;
}

.fila-titulo {
  grid-row: span 2;
}

.cartao {
  width: clamp(215px, 21vw, 320px);
  align-self: center;
  text-decoration: none;
}

.cartao-foto {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--creme);
  padding: 9px;
  border: 1px solid var(--linha);
  box-shadow: var(--sombra);
  transition: rotate 0.35s ease, translate 0.35s ease, box-shadow 0.35s ease;
}

.cartao:nth-child(odd) .cartao-foto {
  rotate: -0.9deg;
}

.cartao:nth-child(even) .cartao-foto {
  rotate: 0.8deg;
}

.cartao:hover .cartao-foto {
  rotate: 0deg;
  translate: 0 -8px;
  box-shadow: var(--sombra-alta);
}

.cartao-foto img {
  width: 100%;
  aspect-ratio: 45 / 32;
  object-fit: cover;
  transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cartao:hover .cartao-foto img {
  scale: 1.05;
}

.novo {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 0.34rem 0.7rem;
  background: var(--vermelho);
  color: var(--creme);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cartao-txt {
  display: block;
  min-height: 4.2rem;
  padding: 0.95rem 0.15rem 0;
}

.cartao-nome {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
}

.cartao-nome::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cartao:hover .cartao-nome::after {
  transform: scaleX(1);
}

.cartao-tipo {
  display: block;
  margin-top: 0.3rem;
  color: var(--dourado);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- sinopse */

.sinopse {
  padding-top: 2rem;
  border-top: 2px solid var(--dourado);
}

.sinopse p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.14rem, 1.95vw, 1.46rem);
  line-height: 1.58;
  text-align: justify;
  hyphens: auto;
}

.sinopse-accoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.2rem 0 0;
}

/* ------------------------------------------------------------- galeria */

.galeria {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  height: 100%;
}

.galeria img {
  flex: 0 0 auto;
  height: min(64vh, 540px);
  width: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--creme);
  border: 9px solid var(--creme);
  outline: 1px solid var(--linha);
  box-shadow: var(--sombra);
  transition: rotate 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
    translate 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), scale 0.5s ease,
    box-shadow 0.35s ease, opacity 0.7s ease;
}

.galeria img:nth-child(odd) {
  rotate: -0.8deg;
}

.galeria img:nth-child(even) {
  rotate: 0.7deg;
}

.galeria img:hover {
  rotate: 0deg;
  translate: 0 -8px;
  scale: 1.01;
  box-shadow: var(--sombra-alta);
}

/* -------------------------------------------------------------- videos */

.videos {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  align-content: center;
  justify-content: start;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}

.video {
  position: relative;
  width: clamp(230px, 22vw, 340px);
  padding: 0;
  border: 1px solid var(--linha);
  overflow: hidden;
  background: var(--neve-2);
  color: var(--tinta);
  cursor: pointer;
  box-shadow: var(--sombra);
  text-align: left;
  font: inherit;
}

.video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.94;
  transition: opacity 0.25s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.video:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  top: calc(50% - 1.8rem);
  left: 50%;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--vermelho);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(194, 0, 5, 0.35);
  transition: background 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.video-play::before {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border: 2px solid var(--vermelho);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.video:hover .video-play {
  background: var(--vermelho-vivo);
  transform: translate(-50%, -50%) scale(1.08);
}

.video:hover .video-play::before {
  opacity: 0.8;
  transform: scale(1);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.84rem;
  border-color: transparent transparent transparent var(--creme);
}

.video-titulo {
  display: block;
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video.aberto {
  cursor: default;
}

/* --------------------------------------------------------------- passos */

.passos {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: min(80vw, 26rem);
}

.passos a {
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--linha);
  background: var(--neve-2);
  box-shadow: var(--sombra);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  transition: background 0.25s ease, padding 0.3s ease;
}

.passos a:hover {
  padding-left: 1.9rem;
  background: var(--neve-3);
}

.passos span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--dourado);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- contacto */

/* O vermelho do painel e solido: sem JavaScript o fundo corrido nao e desenhado
   e o texto branco ficaria sobre a neve. A rampa acaba exactamente aqui. */
.contacto {
  justify-content: center;
  background: var(--vermelho);
  color: var(--creme);
}

.contacto-int {
  max-width: 44rem;
}

.contacto .mao {
  color: rgba(255, 253, 250, 0.92);
  margin-bottom: 0.4rem;
}

.contacto-links {
  margin: 1.6rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
}

.contacto-links a {
  color: var(--creme);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 253, 250, 0.45);
  transition: border-color 0.25s ease;
}

.contacto-links a:hover {
  border-bottom-color: var(--creme);
}

.contacto-links span {
  margin: 0 0.6rem;
  opacity: 0.6;
}

.contacto-nota {
  margin: 1.4rem 0 0;
  color: rgba(255, 253, 250, 0.78);
  font-size: 0.88rem;
}

.contacto-logo {
  width: 104px;
  margin-top: 2rem;
  opacity: 0.95;
}

/* ------------------------------------------------------- comandos e fio */

.progresso {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--vermelho), var(--dourado));
}

.setas {
  position: fixed;
  right: var(--lado);
  bottom: 1.6rem;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
}

.seta {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--linha);
  background: rgba(255, 253, 250, 0.94);
  color: var(--tinta);
  font-size: 1.1rem;
  box-shadow: var(--sombra);
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.seta:hover:not(:disabled) {
  background: var(--vermelho);
  border-color: var(--vermelho);
  color: var(--creme);
  transform: translateY(-2px);
}

.seta:disabled {
  opacity: 0.32;
  cursor: default;
}

/* Sugestao de leitura, com a seta a acenar devagar */
.dica {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.6rem 0 0;
  color: var(--tinta-fraca);
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
}

.dica::after {
  content: "→";
  font-family: "Archivo", sans-serif;
  font-size: 1rem;
  animation: acena 1.9s ease-in-out infinite;
}

@keyframes acena {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(7px);
  }
}


/* ------------------------------------------------------ luzes e neve

   A grinalda atravessa o trilho todo e anda com ele, como as fitas de luzes
   que atravessam as ruas em dezembro. O fio e um desenho que se repete; as
   lampadas sao elementos a serio, para poderem piscar desencontradas. */

.pisca {
  position: absolute;
  top: calc(var(--topo) - 6px);
  left: 0;
  z-index: 5;
  width: 0;
  height: 60px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60' fill='none'%3E%3Cpath d='M0 6 Q100 40 200 6' stroke='rgba(31,26,23,0.32)' stroke-width='1.6'/%3E%3C/svg%3E");
}

.lampada {
  position: absolute;
  width: 9px;
  height: 11px;
  margin-left: -4.5px;
  border-radius: 50% 50% 46% 46%;
  animation: brilha 3.4s ease-in-out infinite;
}

.lampada::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 3px;
  width: 3px;
  height: 4px;
  background: rgba(31, 26, 23, 0.45);
}

@keyframes brilha {
  0%,
  100% {
    opacity: 0.55;
    filter: saturate(0.85);
  }
  50% {
    opacity: 1;
    filter: saturate(1.25);
  }
}

/* Neve rara e lenta, em tres tamanhos, cada um com a sua velocidade. Fica presa
   ao ecra, por cima do conteudo mas por baixo do grao. */

.neve-cai {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
}

.floco {
  position: absolute;
  top: -6vh;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(104, 124, 158, 0.45);
  animation: cai linear infinite;
}

@keyframes cai {
  0% {
    transform: translate3d(0, -8vh, 0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--desvio, 24px), 108vh, 0);
    opacity: 0;
  }
}


/* ---------------------------------------------- inclinacao e brilho dos cartoes

   O cartao inclina-se ligeiramente na direccao do ponteiro e um brilho oblíquo
   atravessa a fotografia. Sao dois graus e meio no maximo: deve notar-se sem se
   perceber o que e. */

.cartao {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cartao:hover {
  transition-duration: 0.12s;
}

.cartao-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 62%
  );
  translate: -130% 0;
  transition: translate 0.75s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.cartao:hover .cartao-foto::after {
  translate: 130% 0;
}

/* ------------------------------------------- movimento ligado ao scroll

   Onde ha linhas do tempo de scroll, a fotografia de cada cartao desliza dentro
   da moldura enquanto o cartao atravessa o ecra. Da profundidade a fila sem
   nenhum script a correr. */

@supports (animation-timeline: view()) {
  .cartao-foto img,
  .galeria img {
    animation: desliza linear both;
    animation-timeline: view(inline);
    animation-range: entry 0% exit 100%;
  }

  @keyframes desliza {
    from {
      translate: -3.5% 0;
    }
    to {
      translate: 3.5% 0;
    }
  }
}

/* ------------------------------------------------------------- entradas */

.js .surge {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.75s ease, translate 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .surge.visivel {
  opacity: 1;
  translate: 0;
}

/* Os cartoes e a galeria entram de lado, na direccao da leitura, e guardam a
   inclinacao que ja tinham. */
.js .cartao.surge {
  translate: 46px 0;
}

.js .cartao.surge.visivel {
  translate: 0;
}

.js .galeria img.surge {
  translate: 46px 0;
}

.js .galeria img.surge.visivel {
  translate: 0;
}

/* A linha manuscrita e descoberta da esquerda para a direita, como quem escreve.
   Usa mascara e nao clip-path: com clip-path a area visivel fica a zero e o
   observador nunca daria o elemento por visivel. */
.js .mao.surge,
.js h2.surge {
  opacity: 1;
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 0% 100%;
  mask-size: 0% 100%;
}

.js .mao.surge {
  rotate: -1.2deg;
  transition: -webkit-mask-size 1s cubic-bezier(0.55, 0.1, 0.3, 1),
    mask-size 1s cubic-bezier(0.55, 0.1, 0.3, 1);
}

.js h2.surge {
  transform: none;
  transition: -webkit-mask-size 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    mask-size 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .mao.surge.visivel,
.js h2.surge.visivel {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@keyframes sobe {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* A fotografia da capa assenta ao carregar e depois deriva devagar, sem saltos. */
@keyframes assenta {
  0% {
    transform: scale(1.1);
  }
  8% {
    transform: scale(1.005);
  }
  100% {
    transform: scale(1.07);
  }
}

.js .capa-foto {
  animation: assenta 40s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

.js .capa-txt > * {
  animation: sobe 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.js .capa-txt > :nth-child(1) {
  animation-delay: 0.1s;
}

.js .capa-txt > :nth-child(2) {
  animation-delay: 0.2s;
}

.js .capa-txt > :nth-child(3) {
  animation-delay: 0.34s;
}

.js .capa-txt > :nth-child(4) {
  animation-delay: 0.46s;
}

.js .capa-txt > :nth-child(5) {
  animation-delay: 0.58s;
}

.js .capa-txt > :nth-child(6) {
  animation-delay: 0.7s;
}

/* O titulo da capa entra letra a letra */
.capa h1 .palavra {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  white-space: nowrap;
}

.capa h1 .letra {
  display: inline-block;
}

.js .capa h1 .letra {
  animation: levanta 0.75s cubic-bezier(0.22, 0.75, 0.3, 1) both;
}

@keyframes levanta {
  from {
    translate: 0 105%;
  }
  to {
    translate: 0 0;
  }
}

.js .capa h1 {
  animation: none;
  opacity: 1;
}

/* A linha manuscrita da capa escreve-se sozinha, sem esperar pelo scroll. */
@keyframes escreve {
  from {
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
  }
  to {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

.js .capa .mao {
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: sobe 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.36s both,
    escreve 1.1s cubic-bezier(0.55, 0.1, 0.3, 1) 0.52s both;
}

/* A fotografia do cartao cresce ate ao topo da ficha do grupo. */
@view-transition {
  navigation: auto;
}

.capa-grupo .capa-foto {
  view-transition-name: foto-grupo;
}

::view-transition-group(*) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------- ecras pequenos

   O telemovel anda de lado tambem, arrastado com o dedo. Isso funciona porque o
   trilho e um contentor com scroll de verdade e nao um truque sobre o scroll
   vertical: o arrasto e o mesmo gesto de sempre. So muda o tamanho das coisas. */

@media (max-width: 900px) {
  :root {
    --topo: 58px;
  }

  .painel {
    padding: calc(var(--topo) + 1.4rem) var(--lado) 4.5rem;
  }

  .painel-texto {
    width: 86vw;
  }

  .capa::after {
    background: linear-gradient(
      to bottom,
      rgba(239, 233, 224, 0.28) 0%,
      rgba(239, 233, 224, 0.82) 17%,
      rgba(239, 233, 224, 0.97) 30%,
      var(--neve) 44%
    );
  }

  /* Justificar em coluna estreita abre buracos entre as palavras. */
  .capa-intro,
  .sinopse p,
  .fila-titulo .nota {
    text-align: left;
  }

  .capa-intro {
    max-width: none;
    font-size: 1.06rem;
    line-height: 1.5;
    color: var(--tinta);
  }

  .capa-txt {
    padding-bottom: 0;
  }

  .capa-accoes {
    margin-top: 1.4rem;
  }

  .capa-contactos {
    margin-top: 1.1rem;
    font-size: 0.98rem;
  }

  .redes,
  .teasers {
    margin-top: 0.9rem;
  }

  .etiqueta {
    color: var(--vermelho);
  }

  .fila-titulo {
    width: 74vw;
    padding-right: 1.4rem;
  }

  /* Escondida no telemovel; fica marcada como visivel para nao ficar presa no
     estado de entrada caso o ecra volte a alargar. */
  /* Escondida no telemovel; fica marcada como visivel para nao ficar presa no
     estado de entrada caso o ecra volte a alargar. */
  .fila-titulo .nota {
    display: none;
    opacity: 1;
  }

  .capa-intro {
    font-size: 1rem;
  }

  .teaser {
    width: 92px;
  }

  .redes a {
    width: 2.2rem;
    height: 2.2rem;
  }

  .cartao {
    width: 46vw;
  }

  .cartao-txt {
    min-height: 3.6rem;
    padding-top: 0.6rem;
  }

  .cartao-nome {
    font-size: 0.82rem;
  }

  .cartao-tipo {
    font-size: 0.62rem;
  }

  .galeria img {
    height: auto;
    width: 78vw;
  }

  .video {
    width: 66vw;
  }

  .passos {
    width: 86vw;
  }
}

/* Com rato mostram-se os botoes de avancar; com dedo mostra-se o aviso de
   arrastar, que e o gesto certo nesse caso. */
.dica-dedo {
  display: none;
}

@media (pointer: coarse) {
  .setas {
    display: none;
  }

  .dica-rato {
    display: none;
  }

  .dica-dedo {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .surge,
  .js .mao.surge,
  .js h2.surge {
    opacity: 1;
    translate: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .progresso,
  .neve-cai,
  .cartao-foto::after {
    display: none;
  }

  .cartao {
    transform: none;
  }

  .lampada {
    opacity: 0.85;
  }

  @view-transition {
    navigation: none;
  }
}

@supports (height: 100svh) {
  .trilho,
  .painel {
    height: 100svh;
  }
}
