/* =====================================================================
   FOTOS DOS ADESIVAÇOS · complemento do style.css
   Usa os tokens do design system. Nada aqui redefine estilo da home.
   ===================================================================== */

/* ---------- TOPO ---------- */
.fot-topo {
  background: var(--navy); color: var(--branco);
  padding: calc(74px + clamp(38px, 7vw, 78px)) 0 0;
  position: relative; overflow: hidden;
}
.fot-topo::before {
  content: ""; position: absolute; top: -40%; right: -14%;
  width: 46%; height: 180%; background: var(--navy-inst);
  transform: skewX(var(--skew)); z-index: 0;
}
.fot-topo-in { position: relative; z-index: 1; padding-bottom: clamp(34px, 6vw, 62px); }
.fot-topo .d1 { margin: 14px 0 18px; }
.fot-topo .lead { max-width: 30ch; color: rgba(255,255,255,.86); margin-bottom: 20px; }
.fot-total { margin: 0; font-size: .95rem; color: rgba(255,255,255,.62); }
.fot-total b { color: var(--amarelo); font-weight: 800; }

/* ---------- BARRA DE CIDADES ---------- */
.fot-barra {
  position: sticky; top: 74px; z-index: 40;
  background: var(--branco); border-bottom: 1px solid var(--cinza);
  padding: 14px 0 12px;
}
.fot-cidades {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
  /* A mascara avisa que a lista continua para o lado, sem ocupar espaco. */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
}
.fot-cidades::-webkit-scrollbar { display: none; }
.fot-cid {
  flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--cinza); color: var(--navy); border: 0; border-radius: 999px;
  padding: 10px 17px; font-weight: 700; font-size: .93rem; cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.fot-cid:hover { background: #D8DDE4; }
.fot-cid b { font-weight: 800; font-size: .78rem; opacity: .55; }
.fot-cid[aria-pressed="true"] { background: var(--navy); color: var(--branco); }
.fot-cid[aria-pressed="true"] b { color: var(--amarelo); opacity: 1; }

.fot-status { margin-top: 11px; }
.fot-cont { margin: 0; font-size: .88rem; color: var(--cinza-txt); font-weight: 600; }
.fot-cont b { color: var(--navy); font-weight: 800; }

/* ---------- GRADE ---------- */
.fot-sec { padding-top: clamp(22px, 3.4vw, 34px); }

.fot-grid {
  display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.fot-item {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  background: var(--cinza); border-radius: var(--r); overflow: hidden;
  aspect-ratio: 2 / 3; line-height: 0;
}
.fot-item img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s ease, transform .35s ease;
}
.fot-item img.pronta { opacity: 1; }
.fot-item:hover img { transform: scale(1.045); }
.fot-item::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--amarelo); transition: box-shadow .14s ease;
}
.fot-item:hover::after, .fot-item:focus-visible::after { box-shadow: inset 0 0 0 3px var(--amarelo); }
.fot-item:focus-visible { outline: none; }

.fot-mais { display: flex; justify-content: center; margin-top: 26px; }
.fot-mais[hidden] { display: none; }
.fot-vazio { text-align: center; color: var(--cinza-txt); padding: 40px 0; }

.fot-nota {
  margin: 34px auto 0; max-width: 62ch; text-align: center;
  font-size: .85rem; line-height: 1.6; color: var(--cinza-txt);
}
.fot-nota a { color: var(--navy); font-weight: 700; }

/* Fallback sem JavaScript: existe para leitura de buscadores e IAs. */
.fot-noscript { max-width: 60ch; margin: 0 auto; text-align: center; }
.fot-noscript h2 { font-size: 1.15rem; margin-bottom: 14px; }
.fot-noscript ul { list-style: none; padding: 0; margin: 0 0 18px; }
.fot-noscript li { padding: 7px 0; border-bottom: 1px solid var(--cinza); }

/* ---------- VISOR ---------- */
.lbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 12, 24, .985);
  display: grid; grid-template-columns: 64px 1fr 64px;
  grid-template-rows: 58px 1fr auto; align-items: center;
  animation: lboxEntra .18s ease;
}
.lbox[hidden] { display: none; }
@keyframes lboxEntra { from { opacity: 0 } to { opacity: 1 } }

.lbox-topo {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 20px;
}
.lbox-pos {
  font-family: var(--display); font-size: .95rem; letter-spacing: .04em;
  color: rgba(255,255,255,.66);
}
.lbox-x, .lbox-seta {
  background: rgba(255,255,255,.08); border: 0; border-radius: 50%;
  width: 42px; height: 42px; display: grid; place-items: center;
  cursor: pointer; transition: background .14s ease;
}
.lbox-x svg, .lbox-seta svg { width: 24px; height: 24px; fill: var(--branco); }
.lbox-x:hover, .lbox-seta:hover { background: var(--amarelo); }
.lbox-x:hover svg, .lbox-seta:hover svg { fill: var(--navy); }
.lbox-seta[disabled] { opacity: .22; cursor: default; }
.lbox-seta[disabled]:hover { background: rgba(255,255,255,.08); }
.lbox-seta[disabled]:hover svg { fill: var(--branco); }

.lbox-ant { grid-column: 1; grid-row: 2; justify-self: center; }
.lbox-prox { grid-column: 3; grid-row: 2; justify-self: center; }

.lbox-palco {
  grid-column: 2; grid-row: 2; margin: 0;
  display: grid; place-items: center; position: relative;
  width: 100%; height: 100%; min-height: 0;
}
.lbox-palco img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: var(--r); box-shadow: 0 24px 60px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .22s ease;
}
.lbox-palco img.pronta { opacity: 1; }
.lbox-carregando {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--amarelo);
  animation: lboxGira .8s linear infinite;
}
.lbox-carregando[hidden] { display: none; }
@keyframes lboxGira { to { transform: rotate(360deg) } }

.lbox-base {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; padding: 16px 20px 20px;
}
.lbox-local {
  font-weight: 700; font-size: .92rem; color: rgba(255,255,255,.76);
}
.lbox-acoes { display: flex; gap: 9px; }
.lbox-acoes .btn { text-decoration: none; }

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .fot-barra { top: 68px; }
  .fot-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 7px; }

  .lbox { grid-template-columns: 1fr; grid-template-rows: 54px 1fr auto; }
  .lbox-ant, .lbox-prox {
    position: fixed; top: 50%; transform: translateY(-50%);
    grid-column: auto; grid-row: auto; z-index: 2;
  }
  .lbox-ant { left: 8px; }
  .lbox-prox { right: 8px; }
  .lbox-palco { grid-column: 1; padding: 0 6px; }
  .lbox-base { flex-direction: column; align-items: stretch; text-align: center; }
  .lbox-acoes { justify-content: center; }
  .lbox-acoes .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fot-item img, .lbox, .lbox-palco img { transition: none; animation: none; }
  .fot-item:hover img { transform: none; }
  .lbox-carregando { animation-duration: 2s; }
}
