/* Tarja preta transparente na seção Modalidades */
.section-modalidades {
	position: relative !important;
}
/* Overlay por pseudo-elemento para garantir que escureça */
.section-modalidades::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.92) !important;
	z-index: 1;
	pointer-events: none;
}
.modalidades-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.92) !important;
	z-index: 1;
	pointer-events: none;
}
.section-modalidades > *:not(.modalidades-overlay) {
	position: relative;
	z-index: 2;
}
.section-modalidades,
.section-modalidades .custom-list-item,
.section-modalidades .custom-list-item .custom-icon,
.section-modalidades .btn {
	color: #fff !important;
}
/* Ícones das modalidades (Font Awesome) */
.section-modalidades .custom-list-style-1 .custom-list-item .custom-icon {
	margin-right: 15px;
	font-size: 1.25em;
	width: 1.5em;
	display: inline-block;
	text-align: center;
	vertical-align: middle;
}
/* Ícones da seção Vantagens */
.vantagens-list .custom-list-item .custom-icon {
	margin-right: 15px;
	font-size: 1.25em;
	width: 1.5em;
	display: inline-block;
	text-align: center;
	vertical-align: middle;
}
/* Ícones dos cards Instrutores / Seja um Membro / Aulas em Grupo */
.section-feature-icon {
	display: block;
	font-size: 3rem;
	color: var(--quaternary, #c94e23);
}

/* Cards de planos: permitir altura automática para não cortar rodapés */
.pricing-cards-row > .col-lg-4 .thumb-info.custom-thumb-info-2,
.pricing-cards-row > .col-lg-4 .thumb-info-caption {
	min-height: 0 !important;
	height: auto !important;
	box-sizing: border-box;
}
.pricing-plans-section .thumb-info.custom-thumb-info-2 {
	display: block;
	width: 100%;
}
.pricing-plans-section .thumb-info-caption {
	display: block !important;
	position: relative;
	padding-bottom: 1.5rem;
	overflow: visible;
}
.pricing-plans-section .thumb-info.custom-thumb-info-2 {
	overflow: visible;
}
.pricing-plans-section .thumb-info-caption a.btn {
	position: static !important;
	display: table;
	margin: 0.75rem auto 0 !important;
	left: auto !important;
	transform: none !important;
}
.pricing-plans-section .thumb-info-caption .pricing-plan-notes {
	margin-top: 0.75rem !important;
}
.pricing-plans-section .thumb-info-caption .pricing-plan-notes p {
	color: var(--dark) !important;
	margin: 0 !important;
	padding: 2px 0 !important;
	line-height: 1.35 !important;
}
.pricing-cards-row > .col-lg-4:nth-child(3) .thumb-info-caption h4.custom-font-style-1 {
	margin-top: 0.8rem;
}

/* Por que nós? – cada item em linha única (contato e quem somos) */
.porque-nos-list li,
.porque-nos-list .list-icons li {
	white-space: nowrap !important;
	font-size: 0.9em;
}

/* Endereço nas páginas de unidade: texto um pouco maior e em uma linha */
.unidade-endereco {
	font-size: 1.1rem !important;
	white-space: nowrap;
}

/* Modalidades: todos os cards do mesmo tamanho (4 fileiras de 3) */
.section-modalidades-cards .row {
	row-gap: 2rem;
}
.section-modalidades-cards .row:not(:last-child) {
	margin-bottom: 2.5rem !important;
}
.section-modalidades-cards .row > [class*="col-"] {
	display: flex;
	margin-bottom: 0;
}
.section-modalidades-cards .thumb-info.custom-thumb-info-2 {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}
.section-modalidades-cards .thumb-info.custom-thumb-info-2 .thumb-info-wrapper {
	flex: 0 0 auto;
	height: 220px;
	overflow: hidden;
}
.section-modalidades-cards .thumb-info.custom-thumb-info-2 .thumb-info-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.section-modalidades-cards .thumb-info.custom-thumb-info-2 .thumb-info-caption {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 220px;
	padding-bottom: 2.5rem;
}
.section-modalidades-cards .thumb-info.custom-thumb-info-2 .thumb-info-caption p {
	flex: 1 1 auto;
	margin-bottom: 1rem;
}

/* Páginas de modalidade e unidades: só os parágrafos com tamanho maior (títulos ficam no padrão do tema) */
.section-modalidade-detail .col-md-7.col-lg-9 > p,
.section-modalidade-detail .col-md-7.col-lg-9 > p.text-1,
.section-modalidade-detail .col-12 > p,
.section-modalidade-detail .col-12 > p.text-1 {
	font-size: 0.95rem !important;
	line-height: 1.6 !important;
	margin-bottom: 0.85rem !important;
}
@media (min-width: 992px) {
	.section-modalidade-detail .col-md-7.col-lg-9 > p,
	.section-modalidade-detail .col-md-7.col-lg-9 > p.text-1,
	.section-modalidade-detail .col-12 > p,
	.section-modalidade-detail .col-12 > p.text-1 {
		font-size: 1.05rem !important;
		line-height: 1.65 !important;
		margin-bottom: 1rem !important;
	}
}

/* Secção de baixo (páginas de modalidade e de unidades): só o parágrafo com fonte maior */
.section-modalidade-bottom .col-lg-10 > p {
	font-size: 1.2rem;
	line-height: 1.7;
}
@media (min-width: 992px) {
	.section-modalidade-bottom .col-lg-10 > p {
		font-size: 1.35rem;
		line-height: 1.75;
	}
}

/* Secção CTA App (páginas de modalidade): fundo único + texto + botões Google Play / App Store */
.section-cta-app {
	background-image: url(../attachments/img-fundo-cta.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 420px;
	display: flex;
	align-items: center;
}
.section-cta-app .cta-app-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
}
.section-cta-app .container {
	position: relative;
	z-index: 2;
}
.cta-app-label {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	font-weight: 600;
}
.cta-app-title {
	font-size: 1.75rem;
	line-height: 1.2;
}
@media (min-width: 992px) {
	.cta-app-title {
		font-size: 2.25rem;
	}
}
.cta-app-desc {
	font-size: 1rem;
	line-height: 1.5;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}
.btn-cta-store {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	background: linear-gradient(180deg, #4a4a4a 0%, #2d2d2d 100%);
	border: 1px solid rgba(255, 255, 255, 0.9);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.2s;
}
.btn-cta-store:hover {
	color: #fff;
	opacity: 0.95;
	transform: translateY(-1px);
}
.btn-cta-store i {
	font-size: 1.5rem;
	margin-right: 0.5rem;
}
.section-cta-app .d-flex.flex-wrap.justify-content-center {
	gap: 1rem;
}

/* "Por que a MaxForma?" em colunas: fixa o círculo numérico em cada card */
.custom-resources-style {
	position: relative;
}

/* Home/contato: a seção antes do mapa precisa crescer com o conteúdo no mobile */
.resources.custom-wide-section {
	position: relative;
	height: auto !important;
	min-height: 290px;
	overflow: visible;
}

/* Páginas internas: manter o header fixo com o mesmo respiro lateral da home */
html:not(.boxed) #header.header-floating-bar-static-sticky .header-body {
	left: 0;
	right: 0;
	width: calc(100% - 30px) !important;
	max-width: 1140px !important;
	margin: 0 auto !important;
}

@media (min-width: 1200px) {
	html:not(.boxed) #header.header-floating-bar-static-sticky .header-container {
		padding-right: 0;
		padding-left: 30px;
	}
}

@media (max-width: 991px) {
	html:not(.boxed) #header.header-floating-bar-static-sticky .header-body {
		width: calc(100% - 20px) !important;
		margin-top: 10px !important;
	}

	html:not(.boxed) #header.header-floating-bar-static-sticky .header-nav-main:before {
		display: none;
	}
}

/* Contato: manter o pin das unidades pequeno e alinhado ao título */
.custom-location {
	padding-left: 30px;
}

.custom-location > img {
	top: 0.35rem;
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
}

/* Home: slider leve sem plugin para evitar travamentos no touch */
.home-hero-slider {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 160px 0 110px;
	overflow: hidden;
	background: #111113;
}

.home-hero-slider__slides,
.home-hero-slider__slide {
	position: absolute;
	inset: 0;
}

.home-hero-slider__slides {
	pointer-events: none;
}

.home-hero-slider__slide {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transform: scale(1.02);
	animation: homeHeroSliderFade 12s ease-in-out infinite;
}

.home-hero-slider__slide--1 {
	background-image: linear-gradient(rgba(17, 17, 19, 0.35), rgba(17, 17, 19, 0.55)), url('../attachments/2top-home-maxforma.png');
	animation-delay: 0s;
}

.home-hero-slider__slide--2 {
	background-image: linear-gradient(rgba(17, 17, 19, 0.35), rgba(17, 17, 19, 0.55)), url('../attachments/top-home-maxforma.png');
	animation-delay: -6s;
}

.home-hero-slider .container {
	z-index: 1;
}

.home-hero-slider__title {
	font-size: 56px;
	line-height: 1.1;
	margin-bottom: 1rem;
}

.home-hero-slider__subtitle {
	font-size: 22px;
	line-height: 1.5;
	margin-bottom: 2rem;
}

.home-hero-slider__cta {
	padding: 15px 25px;
}

@keyframes homeHeroSliderFade {
	0%, 45% {
		opacity: 1;
	}

	50%, 95% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@media (max-width: 991px) {
	.home-hero-slider {
		padding: 120px 0 90px;
		min-height: 100svh;
	}

	.home-hero-slider__title {
		font-size: 2.3rem;
	}

	.home-hero-slider__subtitle {
		font-size: 1.1rem;
		margin-bottom: 1.5rem;
	}
}

/* Home mobile: priorizar scroll vertical ao tocar no hero e no mapa */
@media (max-width: 991px) {
	.home-map-scroll-safe iframe {
		pointer-events: none;
		touch-action: pan-y !important;
	}
}

/* Mobile: o header não deve entrar em estado sticky/fixed */
@media (max-width: 991px) {
	html #header.header-floating-bar,
	html #header.header-floating-bar-static-sticky {
		top: 0 !important;
	}

	html #header.header-floating-bar {
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		z-index: 1002 !important;
	}

	html #header.header-floating-bar-static-sticky {
		position: relative !important;
	}

	html #header.header-floating-bar .header-body,
	html #header.header-floating-bar-static-sticky .header-body,
	html.sticky-header-active #header .header-body,
	html.sticky-header-reveal.sticky-header-active #header .header-body {
		position: relative !important;
		top: 0 !important;
		left: auto !important;
		right: auto !important;
		width: auto !important;
		max-width: none !important;
		margin: 10px !important;
		animation: none !important;
	}

	html #header.header-floating-bar .header-body {
		background: rgba(17, 17, 19, 0.82) !important;
		backdrop-filter: blur(6px);
	}

	html #header .header-container,
	html #header.header-floating-bar-static-sticky .header-container {
		padding-left: 15px !important;
		padding-right: 15px !important;
		height: auto !important;
		min-height: 0 !important;
	}

	html .main.has-sticky-header-transform {
		transform: none !important;
		transition: none !important;
	}
}
