/* Versão 7: parede de vitrines + cartaz de oferta no herói; mapa de linhas de ônibus na seção do bairro. Fonte única: Overpass. */
:root { --coral-papel: #D9302B; --linha-c: #172A3A; --linha-e: #7D8E9E; --papel: #FFFDF6; }
:root[data-theme="dark"] { --linha-c: #F5F8FA; --linha-e: #93A7B8; }
.fiacao { display: none; }

/* herói */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "vitrines cartaz" "lado cartaz"; align-items: center; row-gap: 40px; }
.hero-vitrines { grid-area: vitrines; min-width: 0; }
.hero-cartaz { grid-area: cartaz; min-width: 0; justify-self: center; align-self: center; width: min(100%, 620px); }
.hero-lado { grid-area: lado; align-self: start; gap: 26px; }
.hero-lado .hero-sub { max-width: 62ch; }

.cartaz { position: relative; padding: 40px 38px 34px; background: var(--papel); color: #0B1725; border: 4px solid #FF534D; transform: rotate(-1.6deg); box-shadow: 0 22px 34px -18px rgba(var(--sombra), .55); }
.cartaz p { margin: 0; }
.c-topo { display: inline-block; background: #FF534D; color: #0B1725; padding: 6px 12px 4px; font-size: clamp(15px, 1.2vw, 19px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
.c-titulo { margin-top: 18px; font-size: clamp(34px, 3.6vw, 64px); font-weight: 800; line-height: .98; text-transform: uppercase; letter-spacing: -0.01em; }
.c-titulo span { display: block; color: var(--coral-papel); }
.c-item { margin-top: 18px !important; font-size: clamp(18px, 1.4vw, 23px); font-weight: 700; }
.c-preco { margin-top: 6px !important; font-weight: 800; line-height: .85; color: var(--coral-papel); font-size: clamp(96px, 10vw, 170px); letter-spacing: -0.04em; display: flex; align-items: flex-start; }
.c-preco small { font-size: .26em; color: #0B1725; margin: .3em .2em 0 0; letter-spacing: 0; }
.c-preco sup { font-size: .42em; margin-top: .12em; letter-spacing: -0.02em; }
.c-mes { font-size: clamp(15px, 1.15vw, 19px); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #3C5266; }
.fita { position: absolute; top: -14px; width: 96px; height: 28px; background: rgba(236, 222, 186, .9); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.f1 { left: 22px; transform: rotate(-7deg); } .f2 { right: 22px; transform: rotate(6deg); }

/* vitrines: o giro fica num elemento interno; o botão (o alvo do mouse) não se move, então não existe giro infinito */
.vitrines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; perspective: 1200px; }
.peca { position: relative; aspect-ratio: 9 / 16; border: 0; padding: 0; background: none; cursor: pointer; font-family: var(--fonte); border-radius: 14px; }
.peca:nth-child(even) { margin-top: 36px; }
.giro { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.16, 1, .3, 1); border-radius: 14px; }
@media (hover: hover) { .peca:hover .giro { transform: rotateY(180deg); } }
.peca:focus-visible .giro, .peca.virada .giro { transform: rotateY(180deg); }
.frente, .verso { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; padding: 16px 14px; box-shadow: 0 18px 30px -18px rgba(var(--sombra), .6); }
.frente { justify-content: space-between; align-items: flex-start; color: #F5F8FA; }
.frente .ic { width: 70%; height: auto; stroke-width: 1.4; }
.frente b { font-size: clamp(15px, 1.3vw, 21px); font-weight: 800; text-transform: uppercase; line-height: 1.02; text-align: left; }
.frente i, .verso i { font-style: normal; font-size: 13px; font-weight: 700; opacity: .85; }
.p1 .frente { background: #10263A; } .p2 .frente { background: #FF534D; color: #0B1725; } .p3 .frente { background: #172A3A; } .p4 .frente { background: #11C5D8; color: #0B1725; }
.verso { transform: rotateY(180deg); background: #F5F8FA; color: #172A3A; justify-content: center; gap: 10px; text-align: left; }
.verso b { font-size: 17px; font-weight: 800; line-height: 1.1; }
.verso .zap { background: #25D366; color: #06210F; border-radius: 999px; padding: 9px 8px 7px; font-size: 12px; font-weight: 800; text-align: center; }
.verso small { font-size: 11px; color: #097A87; overflow-wrap: anywhere; }
.vitrines-nota { margin-top: 18px; font-size: 14px; color: var(--tinta-3); }

/* mapa de linhas */
.mapa-bairros { min-width: 0; }
.mapa { width: 100%; max-width: 640px; height: auto; overflow: visible; font-family: var(--fonte); }
.linha { fill: none; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.onibus { fill: none; stroke: #FFFFFF; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 4 196; stroke-dashoffset: 4; animation: onibus 5s linear infinite; animation-delay: var(--d); }
@keyframes onibus { to { stroke-dashoffset: -100; } }
.parada { fill: var(--chao); stroke-width: 6; }
.nome-parada { fill: var(--tinta); font-size: 21px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.terminal { fill: var(--placa); stroke: #FF534D; stroke-width: 6; }
.nome-terminal, .nome-terminal2 { fill: #F5F8FA; font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.nome-terminal2 { font-size: 20px; fill: #11C5D8; }
.surto .onibus { animation-duration: 1.6s; }
.cidades { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cidades li { border: 2px solid var(--placa); background: var(--superficie); color: var(--tinta); border-radius: 7px; padding: 7px 12px 5px; font-size: 15px; font-weight: 700; }
:root[data-theme="dark"] .cidades li { border-color: var(--linha-forte); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "cartaz" "vitrines" "lado"; }
}
@media (max-width: 700px) {
  .vitrines { grid-template-columns: repeat(4, 44vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .peca { scroll-snap-align: start; aspect-ratio: 3 / 4; } .peca:nth-child(even) { margin-top: 0; }
  .cartaz { padding: 34px 24px 26px; }
}
@media (prefers-reduced-motion: reduce) { .giro { transition: none; } .onibus { display: none; } }
/* vitrines com clientes reais: a peça é um link */
a.peca { display: block; text-decoration: none; color: inherit; }
.verso .ir { background: #172A3A; color: #F5F8FA; border-radius: 999px; padding: 9px 8px 7px; font-size: 12px; font-weight: 800; text-align: center; }
