/* Ajustes visuais do Carnanews. Edite aqui: este arquivo carrega depois do CSS do tema. */

/* Estilos de texto oferecidos no editor */
.cn-callout { background: #FFF1C7; border-left: 5px solid #FFC21A; padding: 12px 16px; border-radius: 6px; font-weight: 500; }
.cn-aviso { background: #FDE3EA; border-left: 5px solid #D6124F; padding: 12px 16px; border-radius: 6px; }
.cn-credito { font-size: 13px; color: var(--muted); margin-top: -4px; }
.cn-fontes { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }
.cn-marca { background: var(--amarelo); padding: 0 3px; border-radius: 3px; }
blockquote.cn-citacao { font-family: var(--h); font-size: 22px; font-style: normal; border-left: 4px solid var(--rosa); margin: 20px 0; padding: 4px 0 4px 16px; }

/* Autoria, compartilhar e newsletter da matéria */
.cn-byline { margin: 0 0 22px; }
.cn-byline__who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cn-byline__av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--rosa); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cn-byline__img { width: 56px; height: 56px; object-fit: cover; }
.cn-byline__ini { color: #fff; font: 700 18px var(--h); letter-spacing: .5px; }
.cn-byline__name { font-size: 17px; color: var(--ink); }
.cn-byline__date { font-size: 14px; color: var(--muted); margin-top: 2px; }
.cn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.cn-content + .cn-share { margin-top: 28px; }
.cn-share__label { font: 600 17px var(--h); color: var(--rosa-d); letter-spacing: .3px; }
.cn-share__btns { display: flex; gap: 10px; }
.cn-share__btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: transform .15s; }
.cn-share__btn:hover { transform: translateY(-2px); }
.cn-share__btn--facebook { background: #3B5998; }
.cn-share__btn--x { background: #000; }
.cn-share__btn--whatsapp { background: #25D366; }
.cn-share__news { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--rosa-d); color: var(--rosa-d); padding: 9px 14px; font-size: 14px; letter-spacing: .3px; text-decoration: none; border-radius: 4px; }
.cn-share__news:hover { background: var(--rosa-d); color: #fff; }
@media (max-width: 600px) { .cn-share__news { margin-left: 0; width: 100%; justify-content: center; } }
.cn-news { margin: 28px 0 8px; background: var(--ink); color: #fff; border-radius: 14px; padding: 22px; display: grid; gap: 14px; }
.cn-news h2 { margin: 0 0 4px; font: 700 22px var(--h); color: var(--amarelo); }
.cn-news p { margin: 0; color: #E9DDF7; font-size: 15px; }
.cn-news__row { display: flex; gap: 8px; }
.cn-news__row input[type=email] { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 10px; border: 0; font-size: 16px; }
.cn-news__row button { background: var(--amarelo); color: var(--ink); border: 0; border-radius: 10px; padding: 0 22px; font: 700 16px var(--h); cursor: pointer; }
.cn-news__row button:hover { background: #fff; }
.cn-news__iscas { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cn-news__lgpd { font-size: 12px !important; margin-top: 8px !important; opacity: .8; }
.cn-news__msg { margin-top: 10px !important; font-weight: 600; }
.cn-news__msg--ok { color: #8CE8C3 !important; }
.cn-news__msg--erro { color: #FFB3C7 !important; }
@media (min-width: 760px) { .cn-news { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Matéria em duas colunas e caixa lateral */
.cn-side:empty { display: none; }
.cn-side { display: grid; gap: 16px; align-content: start; padding: 0 16px 8px; }
.cn-fbox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.cn-fbox__img { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--lilas); }
.cn-fbox__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-fbox__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 700 64px var(--h); color: var(--lilas-d); }
.cn-fbox__body { padding-top: 12px; display: grid; gap: 8px; }
.cn-fbox__tipo { font: 600 12px var(--b); letter-spacing: .08em; color: var(--muted); }
.cn-fbox h3 { margin: 0; font: 700 26px var(--h); line-height: 1.1; }
.cn-fbox h3 a { color: var(--ink); text-decoration: none; }
.cn-fbox h4 { margin: 6px 0 0; font: 600 13px var(--b); text-transform: uppercase; letter-spacing: .06em; color: var(--rosa); }
.cn-fbox__news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cn-fbox__news li { border-top: 1px solid var(--line); padding-top: 10px; }
.cn-fbox__news a { display: block; color: var(--ink); text-decoration: none; font: 600 15px/1.3 var(--b); }
.cn-fbox__news a:hover { color: var(--rosa); }
.cn-fbox__news time { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.cn-fbox__all { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 14px; border: 1px solid var(--rosa); color: var(--rosa); border-radius: 12px; font: 600 15px var(--b); text-decoration: none; margin-top: 4px; }
.cn-fbox__all:hover { background: var(--rosa); color: #fff; }
.cn-fban { display: grid; gap: 10px; padding: 22px 20px; border-radius: 18px; text-decoration: none; background: linear-gradient(135deg, var(--rosa), var(--rosa-d)); color: #fff; }
.cn-fban__t { font: 700 22px/1.2 var(--h); }
.cn-fban__b { justify-self: start; background: var(--amarelo); color: var(--ink); font: 700 15px var(--b); padding: 10px 18px; border-radius: 999px; }
.cn-fban:hover .cn-fban__b { background: #fff; }
@media (min-width: 1000px) {
	.cn-single { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
	.cn-single .cn-article { max-width: none; margin: 0; }
	.cn-single .cn-side { padding: 0; position: sticky; top: 90px; }
	.cn-single ~ .cn-sec { max-width: 1200px; margin: 0 auto; padding-left: 0; padding-right: 0; }
}

.cn-article__fig { margin: 0 0 20px; }
.cn-article__fig img { display: block; width: 100%; height: auto; aspect-ratio: 716 / 400; object-fit: cover; border-radius: 16px; background: var(--lilas); }
.cn-article__fig figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Ao clicar em "Assine nossa newsletter" a caixa para abaixo do menu fixo e ganha destaque */
html { scroll-behavior: smooth; }
.cn-news { scroll-margin-top: 150px; }
.cn-news:target { animation: cn-news-pulse 1.6s ease-out 1; }
@keyframes cn-news-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 26, .9); } 100% { box-shadow: 0 0 0 18px rgba(255, 194, 26, 0); } }

/* Home: destaque rotativo e "Mais lidas" ao lado do banner */
.cn-slides { display: grid; }
.cn-slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.cn-slide.is-active { opacity: 1; visibility: visible; }
.cn-slide .cn-hero__img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 358 / 200; background: var(--lilas); }
.cn-slide .cn-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.cn-slide__t { margin: 0; font: 700 26px/1.1 var(--h); }
.cn-slide__t a { color: var(--ink); text-decoration: none; }
.cn-slide p { margin: 0; color: var(--muted); font-size: 14px; }
.cn-rot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.cn-dots { display: flex; gap: 8px; }
.cn-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.cn-dots button[aria-current] { background: var(--rosa); width: 26px; border-radius: 6px; }
.cn-rot__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cn-rot__nav:hover { background: var(--rosa); color: #fff; border-color: var(--rosa); }
@media (prefers-reduced-motion: reduce) { .cn-slide { transition: none; } }
@media (min-width: 1024px) {
	.cn-home { grid-template-areas: "hero lidas" "ultimas lidas" "ad ad" "fichas fichas" "hubs hubs" "serv serv" "wa wa"; }
	.cn-home--sorteio { grid-template-areas: "hero lidas" "ultimas lidas" "sorteio sorteio" "ad ad" "fichas fichas" "hubs hubs" "serv serv" "wa wa"; }
	.cn-home--adtopo { grid-template-areas: "adtopo adtopo" "hero lidas" "ultimas lidas" "ad ad" "fichas fichas" "hubs hubs" "serv serv" "wa wa"; }
	.cn-home--adtopo.cn-home--sorteio { grid-template-areas: "adtopo adtopo" "hero lidas" "ultimas lidas" "sorteio sorteio" "ad ad" "fichas fichas" "hubs hubs" "serv serv" "wa wa"; }
	.cn-slide__t { font-size: 40px; }
	.cn-slide p { font-size: 17px; }
	.cn-slide { gap: 14px; }
}

/* Lista de notícias: título alinhado ao topo da foto, logo abaixo do nome da categoria */
.cn-row__txt { justify-content: flex-start; gap: 6px; }
.cn-row h3 { margin: 0; }
.cn-row__txt .cn-cat { display: block; line-height: 1.2; }

/* Rolagem infinita */
html.cn-js-scroll nav.pagination { display: none; }
.cn-scroll-sentinel { min-height: 24px; text-align: center; color: var(--muted); font-size: 14px; padding: 12px 0; }

/* Listagem de notícias em colunas: 3 no computador, 2 no tablet, lista no celular */
@media (min-width: 640px) {
	.cn-page .cn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
	.cn-page .cn-list .cn-row { flex-direction: column; gap: 12px; padding: 0; }
	.cn-page .cn-list .cn-row__img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; }
	.cn-page .cn-list .cn-row h3 { font-size: 19px; }
}
@media (min-width: 1024px) {
	.cn-page .cn-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
}
@media (min-width: 1024px) {
	.cn-page .cn-content:has(> .cn-list) { max-width: none; }
}

/* Menu hambúrguer (celular e tablet) */
@media (max-width: 1023px) {
	.cn-topnav { display: none; }
	.cn-header { padding-bottom: 8px; }
	.cn-burger { margin-left: -10px; }
	.cn-header__in { gap: 4px; }
	.cn-header__in .cn-logo { margin-right: auto; }
}
@media (min-width: 1024px) {
	.cn-burger, .cn-drawer, .cn-drawer__bg { display: none !important; }
}
.cn-drawer__bg { position: fixed; inset: 0; z-index: 90; background: rgba(27, 16, 48, .55); }
.cn-drawer__bg[hidden] { display: none; }
.cn-drawer {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(86vw, 340px);
	background: var(--ink); color: var(--bg); display: flex; flex-direction: column;
	transform: translateX(-102%); transition: transform .22s ease; visibility: hidden; overflow-y: auto;
	box-shadow: 8px 0 32px rgba(27, 16, 48, .4);
}
.cn-drawer.is-open { transform: none; visibility: visible; }
.cn-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; min-height: 64px; border-bottom: 1px solid rgba(255, 248, 236, .14); }
.cn-drawer__list { list-style: none; margin: 0; padding: 8px 0 24px; }
.cn-drawer__list a { display: flex; align-items: center; min-height: 52px; padding: 0 20px; color: var(--bg); text-decoration: none; font: 600 17px var(--b); }
.cn-drawer__list a.is-on { color: var(--amarelo); }
.cn-drawer__row { display: flex; align-items: center; }
.cn-drawer__row a { flex: 1; }
.cn-drawer__more { width: 52px; height: 52px; border: 0; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cn-drawer__more svg { transition: transform .18s ease; }
.cn-drawer__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.cn-drawer__sub { list-style: none; margin: 0 0 6px; padding: 0 0 0 12px; background: rgba(255, 248, 236, .06); }
.cn-drawer__sub[hidden] { display: none; }
.cn-drawer__sub a { font-size: 15px; min-height: 46px; font-weight: 500; }
html.cn-drawer-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cn-drawer, .cn-drawer__more svg { transition: none; } }
body.admin-bar .cn-drawer { top: 46px; }
@media (min-width: 783px) { body.admin-bar .cn-drawer { top: 32px; } }

/* Home: artistas, blocos e camarotes em boxes separados */
.cn-fichas-grupo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.cn-fichas-grupo > .cn-sec { min-width: 0; }
@media (min-width: 1024px) { .cn-fichas-grupo { gap: 40px; } }

/* Fichas (artistas, blocos, camarotes) na mesma listagem das notícias: foto quadrada sem cortar o rosto */
.cn-row--ficha .cn-row__img img { object-position: center 25%; }

/* Anúncios (AdSense): retângulos deitados */
.cn-a-adtopo { grid-area: adtopo; }
.cn-lidas-col { display: flex; flex-direction: column; gap: 4px; }
.cn-adslot { margin: 0 16px 20px; text-align: center; }
.cn-adslot__tag { display: block; font: 600 10px/1 var(--b); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cn-adslot__in { min-height: 90px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cn-adslot__in ins { max-width: 100%; }
.cn-adslot--home_topo .cn-adslot__in { max-width: 970px; margin: 0 auto; }
.cn-adslot:has(ins[data-ad-status="unfilled"]) { display: none; }
.cn-adslot--vazio { min-height: 90px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); font: 600 13px/1.4 var(--b); padding: 12px; }
@media (min-width: 1024px) {
	.cn-home .cn-adslot { margin: 0 0 20px; }
}
