/* ====================================================
   EVENTOS — CRSulVet
   Aplicado em: homepage (home-eventos), portfólio
   (page-eventos.php) e single (single-evento.php)
   Depende de style-home.css (.container, .hero-interno)
   ==================================================== */

/* --- Elementos compartilhados --- */
.section-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .16em;
	color: var(--ast-global-color-0);
}
.btn-secundario {
	display: inline-block;
	padding: 12px 28px;
	border: 2px solid var(--ast-global-color-0);
	border-radius: 6px;
	color: var(--ast-global-color-0);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.btn-secundario:hover {
	background: var(--ast-global-color-0);
	color: #fff;
}

/* --- Bloco Homepage --- */
.home-eventos {
	padding: 100px 0;
	background: #F7F4EF;
}
.home-eventos__header {
	text-align: center;
	margin-bottom: 56px;
}
.home-eventos__header h2 {
	font-size: clamp(28px, 3.5vw, 42px);
	color: var(--ast-global-color-2);
	line-height: 1.15;
	margin: 12px 0 0;
}
.home-eventos__sub {
	font-size: 17px;
	color: #555;
	margin: 14px auto 0;
	max-width: 540px;
}

/* --- Grid de cards --- */
.home-eventos__grid,
.eventos-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* --- Card --- */
.evento-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0,0,0,.07);
	transition: transform .25s, box-shadow .25s;
}
.evento-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.evento-card__img-wrap {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
	background: #e9e5dd;
}
.evento-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s;
}
.evento-card:hover .evento-card__img-wrap img {
	transform: scale(1.04);
}
.evento-card__meta {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px 14px;
	background: linear-gradient(transparent, rgba(0,0,0,.6));
	display: flex;
	gap: 12px;
	align-items: center;
}
.evento-card__data,
.evento-card__local {
	font-size: 12px;
	color: #fff;
	font-weight: 500;
	letter-spacing: .04em;
}
.evento-card__body {
	padding: 20px 22px 24px;
}
.evento-card__subtitulo {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--ast-global-color-0);
	font-weight: 600;
	margin-bottom: 8px;
}
.evento-card__titulo {
	font-size: 17px;
	line-height: 1.4;
	color: var(--ast-global-color-2);
	margin: 0;
}
.evento-card__titulo a {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}
.evento-card__titulo a:hover {
	color: var(--ast-global-color-0);
}

/* --- CTA homepage --- */
.home-eventos__cta {
	text-align: center;
	margin-top: 48px;
}

/* --- Portfólio --- */
.eventos-portfolio {
	padding: 80px 0 100px;
}
.eventos-portfolio__pagination {
	text-align: center;
	margin-top: 56px;
}
.eventos-portfolio__pagination .page-numbers {
	display: inline-block;
	margin: 0 4px;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ast-global-color-0);
	border: 1px solid var(--ast-global-color-0);
	text-decoration: none;
	transition: background .2s, color .2s;
}
.eventos-portfolio__pagination .page-numbers.current,
.eventos-portfolio__pagination a.page-numbers:hover {
	background: var(--ast-global-color-0);
	color: #fff;
}
.eventos-portfolio__vazio {
	text-align: center;
	color: #888;
	font-size: 16px;
	padding: 40px 0;
}

/* --- Single --- */
.evento-single {
	padding: 72px 0 100px;
}
.evento-single__breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: #888;
	margin-bottom: 40px;
}
.evento-single__breadcrumb a {
	color: var(--ast-global-color-0);
	text-decoration: none;
}
.evento-single__breadcrumb a:hover {
	text-decoration: underline;
}
.evento-single__header {
	margin-bottom: 40px;
}
.evento-single__titulo {
	font-size: clamp(28px, 4vw, 44px);
	color: var(--ast-global-color-2);
	line-height: 1.15;
	margin: 12px 0 20px;
}
.evento-single__info {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.evento-single__data,
.evento-single__local {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #555;
	font-weight: 500;
}
.evento-single__data svg,
.evento-single__local svg {
	color: var(--ast-global-color-0);
	flex-shrink: 0;
}
.evento-single__texto {
	font-size: 16px;
	line-height: 1.75;
	color: #444;
	max-width: 760px;
	margin-bottom: 48px;
}
.evento-single__video {
	margin-bottom: 56px;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16/9;
}
.evento-single__video iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}
.evento-single__galeria {
	margin-bottom: 56px;
}
.evento-single__galeria-titulo {
	font-size: 22px;
	color: var(--ast-global-color-2);
	margin-bottom: 28px;
}
.evento-galeria__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.evento-galeria__item {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1;
}
.evento-galeria__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s;
}
.evento-galeria__item:hover img {
	transform: scale(1.06);
}
.evento-single__nav {
	margin-top: 48px;
}

/* --- Responsivo --- */
@media (max-width: 900px) {
	.home-eventos__grid,
	.eventos-portfolio__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.evento-galeria__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 600px) {
	.home-eventos__grid,
	.eventos-portfolio__grid {
		grid-template-columns: 1fr;
	}
	.evento-galeria__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.home-eventos {
		padding: 72px 0;
	}
}

/* HERO — mesmo padrão das páginas Sobre e Contato: largura total, conteúdo no topo (portfólio e single) */
.page-template-page-eventos .hero-interno,
.single-evento .hero-interno {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	height: auto;
	min-height: 580px;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}
.page-template-page-eventos .hero-interno-content,
.single-evento .hero-interno-content {
	justify-content: flex-start;
	padding: 120px max(20px, calc((100% - 1160px) / 2)) 0;
}
@media (max-width: 768px) {
	.page-template-page-eventos .hero-interno,
	.single-evento .hero-interno { min-height: 340px; }
	.page-template-page-eventos .hero-interno-content,
	.single-evento .hero-interno-content { padding: 100px 20px 0; }
}
