/* Zap Pádua Anúncios — visual do anúncio (front-end) */

.zpa-ad {
	--zpa-accent: #14507a;
	--zpa-on: #fff;
	--zpa-wa: #1fa855;
	--zpa-wa-dark: #17863f;
	--zpa-ink: #1c2430;
	--zpa-muted: #5d6b7c;
	--zpa-line: #e3e8ee;
	--zpa-card: #fff;
	--zpa-bg: #f3f6f9;
	--zpa-radius: 18px;
	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.55;
	color: var(--zpa-ink);
	text-align: left;
}

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

.zpa-ad img {
	max-width: 100%;
	height: auto;
}

.zpa-ad a {
	color: inherit;
}

.zpa-ad .zpa-i {
	flex: none;
	vertical-align: -0.2em;
}

/* Tela cheia (Premium) */
body.zpa-fullscreen {
	margin: 0;
	background: #f3f6f9;
}

.zpa-ad.zpa-full {
	max-width: none;
	min-height: 100vh;
	background: var(--zpa-bg);
	padding-bottom: env(safe-area-inset-bottom);
}

.zpa-full .zpa-hero__inner,
.zpa-full .zpa-body,
.zpa-full .zpa-foot {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* Esconde o título repetido do tema (Astra, Twenty*, etc.) */
body.zpa-sem-titulo-tema .entry-header,
body.zpa-sem-titulo-tema .wp-block-post-title,
body.zpa-sem-titulo-tema .wp-block-post-featured-image,
body.zpa-sem-titulo-tema .wp-block-post-author,
body.zpa-sem-titulo-tema .wp-block-post-terms,
body.zpa-sem-titulo-tema .post-thumb,
body.zpa-sem-titulo-tema .post-thumbnail,
body.zpa-sem-titulo-tema .ast-single-post-featured-section {
	display: none;
}

/* Faixa de rolagem */
.zpa-ticker {
	overflow: hidden;
	background: #0d2f47;
	background: color-mix(in srgb, var(--zpa-accent) 55%, #000);
	color: var(--zpa-on);
	font-size: 0.97rem;
	font-weight: 600;
	white-space: nowrap;
}

.zpa-ticker__track {
	display: flex;
	width: max-content;
	padding: 8px 0;
	animation: zpa-scroll 32s linear infinite;
}

.zpa-ticker__track span {
	padding: 0 2.2rem;
	min-width: 60vw;
	text-align: center;
}

.zpa-ticker__track span::after {
	content: "\2022";
	margin-left: 2.2rem;
	opacity: 0.6;
}

@keyframes zpa-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-25%); }
}

/* Topo sem foto redonda (fundo ou oculta): mais respiro em cima */
.zpa-sem-avatar .zpa-hero {
	padding-top: 44px;
	padding-bottom: 40px;
}

.zpa-sem-avatar.zpa-has-hero .zpa-hero {
	padding-top: 64px;
	padding-bottom: 48px;
}

/* Topo */
.zpa-hero {
	position: relative;
	background: var(--zpa-accent);
	background: linear-gradient(165deg, var(--zpa-accent), color-mix(in srgb, var(--zpa-accent) 62%, #000));
	background-size: cover;
	background-position: center;
	color: var(--zpa-on);
	text-align: center;
	padding: 28px 18px 34px;
	border-radius: 0 0 28px 28px;
}

.zpa-has-hero .zpa-hero {
	padding-top: 56px;
}

.zpa-has-hero .zpa-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.62));
}

.zpa-hero__inner {
	position: relative;
}

.zpa-avatar {
	width: 116px;
	height: 116px;
	margin: 0 auto 14px;
	border-radius: 50%;
	border: 4px solid #fff;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zpa-avatar .zpa-avatar__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
}

.zpa-avatar__initial {
	font-size: 2.6rem;
	font-weight: 800;
	color: var(--zpa-accent);
}

.zpa-ad .zpa-title {
	margin: 0 0 4px;
	padding: 0;
	font-size: clamp(1.45rem, 5.4vw, 2.1rem);
	font-weight: 800;
	line-height: 1.15;
	color: inherit;
	letter-spacing: -0.01em;
	text-transform: none;
}

.zpa-sub {
	margin: 0;
	font-size: 1.12rem;
	font-style: italic;
	opacity: 0.92;
}

.zpa-open {
	display: inline-block;
	margin: 12px 0 0;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.zpa-open[hidden] {
	display: none;
}

.zpa-open::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 7px;
	border-radius: 50%;
	background: #ff6b6b;
}

.zpa-open.is-open::before {
	background: #46e07c;
}

/* Botões */
.zpa-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.zpa-ad .zpa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	padding: 0 26px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.zpa-ad .zpa-btn:hover {
	transform: translateY(-1px);
}

.zpa-ad .zpa-btn:focus-visible,
.zpa-ad a:focus-visible,
.zpa-ad button:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

.zpa-ad .zpa-btn--wa {
	background: var(--zpa-wa);
	color: #fff;
	box-shadow: 0 6px 16px rgba(31, 168, 85, 0.35);
}

.zpa-ad .zpa-btn--wa:hover {
	background: var(--zpa-wa-dark);
}

.zpa-hero .zpa-btn--ghost {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--zpa-on);
}

.zpa-hero .zpa-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.26);
}

.zpa-body .zpa-btn--ghost {
	background: #fff;
	border-color: var(--zpa-line);
	color: var(--zpa-ink);
}

.zpa-body .zpa-btn--ghost:hover {
	border-color: var(--zpa-accent);
}

.zpa-ad .zpa-btn--solid {
	background: var(--zpa-accent);
	color: var(--zpa-on);
}

/* Redes no topo */
.zpa-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.zpa-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: var(--zpa-on);
	text-decoration: none;
	transition: background 0.15s ease;
}

.zpa-socials a:hover {
	background: rgba(255, 255, 255, 0.28);
}

/* Compartilhar */
.zpa-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 1.00rem;
}

.zpa-share__label {
	font-weight: 700;
	opacity: 0.9;
}

.zpa-ad .zpa-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.97rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: inherit;
}

.zpa-body .zpa-share {
	color: var(--zpa-ink);
	margin: 6px 0 18px;
}

.zpa-body .zpa-chip {
	border-color: var(--zpa-line);
	background: #fff;
}

/* Conteúdo */
.zpa-body {
	padding: 18px 14px 6px;
}

.zpa-card {
	background: var(--zpa-card);
	border: 1px solid var(--zpa-line);
	border-radius: var(--zpa-radius);
	padding: 20px;
	margin: 0 0 14px;
	box-shadow: 0 1px 2px rgba(20, 40, 60, 0.04);
}

.zpa-ad .zpa-h2 {
	margin: 0 0 12px;
	padding: 0;
	font-size: 1.08rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--zpa-accent);
	line-height: 1.2;
}

.zpa-card p {
	margin: 0 0 0.7em;
}

.zpa-card p:last-child {
	margin-bottom: 0;
}

.zpa-list,
.zpa-tags,
.zpa-hours,
.zpa-items,
.zpa-gallery {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zpa-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--zpa-line);
}

.zpa-list li:last-child {
	border-bottom: 0;
}

.zpa-list .zpa-i,
.zpa-address .zpa-i {
	color: var(--zpa-accent);
	margin-top: 0.15em;
}

.zpa-address {
	display: flex;
	gap: 10px;
	margin: 0 0 14px;
}

.zpa-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.zpa-tags li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border-radius: 999px;
	background: #eef3f8;
	background: color-mix(in srgb, var(--zpa-accent) 9%, #fff);
	font-size: 1.03rem;
	font-weight: 600;
}

.zpa-tags .zpa-i {
	color: var(--zpa-accent);
}

.zpa-note {
	color: var(--zpa-muted);
	font-size: 1.03rem;
}

.zpa-hours li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--zpa-line);
}

.zpa-hours li:last-child {
	border-bottom: 0;
}

.zpa-hours .is-closed {
	color: var(--zpa-muted);
}

.zpa-items li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--zpa-line);
}

.zpa-items li:last-child {
	border-bottom: 0;
}

.zpa-item__name {
	font-weight: 700;
}

.zpa-item__detail {
	color: var(--zpa-muted);
}

/* Galeria */
.zpa-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.zpa-gallery li {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #e9eef3;
}

.zpa-gallery a {
	display: block;
	width: 100%;
	height: 100%;
}

.zpa-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.zpa-gallery a:hover img {
	transform: scale(1.05);
}

/* Cupom */
.zpa-ticket {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 14px;
	border: 2px dashed var(--zpa-accent);
	border-radius: 14px;
	background: #f6fafe;
	background: color-mix(in srgb, var(--zpa-accent) 6%, #fff);
}

.zpa-ticket__img {
	flex: 0 0 120px;
	max-width: 100%;
}

.zpa-ticket__img img {
	width: 100%;
	border-radius: 10px;
	display: block;
}

.zpa-ticket__body {
	flex: 1 1 200px;
	min-width: 0;
}

.zpa-ticket__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 1.21rem;
	color: var(--zpa-accent);
}

.zpa-ticket__code {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.zpa-ticket__code code {
	padding: 6px 12px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--zpa-line);
	font-size: 1.16rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.zpa-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid var(--zpa-accent);
	background: transparent;
	color: var(--zpa-accent);
	font: inherit;
	font-size: 0.97rem;
	font-weight: 700;
	cursor: pointer;
}

.zpa-copy.is-done {
	background: var(--zpa-accent);
	color: var(--zpa-on);
}

.zpa-link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
}

/* Frase */
.zpa-quote {
	margin: 0 0 14px;
	padding: 18px 20px;
	text-align: center;
	color: var(--zpa-muted);
}

.zpa-quote__icon {
	color: var(--zpa-accent);
	opacity: 0.5;
}

.zpa-quote blockquote {
	margin: 6px 0 4px;
	padding: 0;
	border: 0;
	font-size: 1.21rem;
	font-style: italic;
	color: var(--zpa-ink);
	quotes: none;
}

.zpa-quote figcaption {
	font-size: 0.97rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Rodapé */
.zpa-foot {
	padding: 6px 16px 28px;
	text-align: center;
	font-size: 1.00rem;
	color: var(--zpa-muted);
}

.zpa-foot p {
	margin: 0 0 10px;
}

.zpa-foot__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
}

.zpa-foot a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.zpa-foot__links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.zpa-foot__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 16px 0 12px;
}

.zpa-foot__logo {
	text-decoration: none !important;
	font-weight: 800;
	font-size: 1.21rem;
	color: var(--zpa-ink);
}

.zpa-foot__logo img {
	max-height: 48px;
	width: auto;
}

.zpa-foot__cta {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--zpa-accent);
	color: var(--zpa-on) !important;
	font-weight: 700;
	text-decoration: none !important;
}

/* Botões flutuantes */
.zpa-wa-float {
	position: fixed;
	right: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom));
	z-index: 9990;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--zpa-wa);
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
	text-decoration: none;
	transition: transform 0.15s ease;
}

.zpa-wa-float:hover {
	transform: scale(1.06);
}

.zpa-totop {
	position: fixed;
	right: 25px;
	bottom: calc(88px + env(safe-area-inset-bottom));
	z-index: 9990;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1px solid var(--zpa-line);
	background: #fff;
	color: var(--zpa-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.zpa-totop[hidden] {
	display: none;
}

/* Visualizador de imagens */
dialog.zpa-lb {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 100vw;
	max-height: 100vh;
	overflow: visible;
}

dialog.zpa-lb::backdrop {
	background: rgba(0, 0, 0, 0.88);
}

.zpa-lb img {
	display: block;
	max-width: 96vw;
	max-height: 88vh;
	border-radius: 10px;
}

.zpa-lb button {
	position: absolute;
	top: -44px;
	right: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #111;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

@media (min-width: 640px) {
	.zpa-hero {
		padding: 36px 28px 42px;
	}

	.zpa-body {
		padding: 22px 0 6px;
	}

	.zpa-ad:not(.zpa-full) .zpa-hero {
		border-radius: 28px;
	}

	.zpa-card {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	/* Sem movimento: o texto fica parado, inteiro e centralizado. */
	.zpa-ticker__track {
		animation: none;
		display: block;
		width: auto;
		padding: 8px 14px;
		text-align: center;
		white-space: normal;
	}

	.zpa-ticker__track span {
		min-width: 0;
		padding: 0;
	}

	.zpa-ticker__track span:not(:first-child),
	.zpa-ticker__track span::after {
		display: none;
	}

	.zpa-ad .zpa-btn,
	.zpa-gallery img,
	.zpa-wa-float {
		transition: none;
	}
}
