/**
 * Linhas slider — home section (isolated styles).
 *
 * @package Skeleton
 */

.linhas-slider__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.linhas-slider {
	/* Desktop: slide row (content | images). ≤720px: column (content above images, DOM order). */
	/* Bullets strip: show 7 thumbnails without clipping sides (6×inactive + 1×active + gaps + horizontal padding). */
	--linhas-bullet-size: 108px;
	--linhas-bullet-active-size: 140px;
	--linhas-nav-size: 88px;
	--linhas-bullets-gap: 51px;
	--linhas-bullets-pad-x: 12px;
	--linhas-controls-gap-max: 62px;
	--linhas-controls-pad-x-max: 44px;
	--linhas-bullets-visible: 7;
	--linhas-bullets-strip-width: calc(
		var(--linhas-bullets-visible) * var(--linhas-bullet-size) +
			(var(--linhas-bullets-visible) - 1) * var(--linhas-bullets-gap) +
			(var(--linhas-bullet-active-size) - var(--linhas-bullet-size)) +
			2 * var(--linhas-bullets-pad-x)
	);
	--linhas-controls-max-w: calc(
		var(--linhas-bullets-strip-width) + 2 * var(--linhas-nav-size) + 2 * var(--linhas-controls-gap-max) + 2 * var(--linhas-controls-pad-x-max)
	);
	--linhas-scale: 1;
	/* Extra scale for images column only (1 = full; 0.8 = −20% at ≤1500px). */
	--linhas-images-extra-scale: 1;
	/* Extra scale for decorative line + title + description (1 = full; 0.8 = −20% at ≤1440px). */
	--linhas-text-extra-scale: 1;
	--linhas-secondary-max-w: calc(700px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	--linhas-secondary-right: calc(322px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	--linhas-content-max-w: 702px;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	background: #ffffff;
}

.linhas-slider *,
.linhas-slider *::before,
.linhas-slider *::after {
	box-sizing: border-box;
}

.linhas-slider__wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1920px;
	min-height: inherit;
	height: 100%;
	margin: 0 auto;
	background: none;
}

/* --- Controls --- */
.linhas-slider__controls-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 358px;
	height: 100%;
	flex-shrink: 0;
	overflow-x: visible;
	overflow-y: visible;
}

.linhas-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 16px;
	overflow-x: visible;
	overflow-y: visible;
}

.linhas-slider__controls-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	gap: clamp(20px, 3vw, 62px);
}

/* Desktop: prev | bullets | next — actions use display:contents so buttons share one flex row. */
.linhas-slider__controls-actions {
	display: contents;
}

.linhas-slider__controls-actions-divider {
	display: none;
}

.linhas-slider__nav--prev {
	order: 1;
}

.linhas-slider__controls-bullets {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.linhas-slider__nav--next {
	order: 3;
}

/* Desktop: cap controls width, keep prev | bullets | next grouped toward the center (bullets strip does not flex-grow to viewport edges). */
@media screen and (min-width: 721px) {
	.linhas-slider__controls {
		/* Extra breathing room when showing 7 bullets: avoids side clipping near nav buttons. */
		padding-left: clamp(20px, 3vw, 44px);
		padding-right: clamp(20px, 3vw, 44px);
		max-width: var(--linhas-controls-max-w);
		margin-left: auto;
		margin-right: auto;
	}

	.linhas-slider__controls-bullets {
		/* Allow this middle column to shrink with viewport; strip itself scrolls inside viewport. */
		flex: 1 1 auto;
		width: auto;
		max-width: var(--linhas-bullets-strip-width);
	}
}

/* Desktop: standard arrows only; mobile assets hidden until max-width: 720px. */
.linhas-slider__nav-img--mobile {
	display: none;
}

.linhas-slider__nav-img--desktop {
	display: block;
	width: auto;
	height: auto;
	max-width: 48px;
	max-height: 48px;
}

.linhas-slider__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 90px;
	padding: 0;
	border: none;
	border-radius: 24px;
	background: rgba(52, 162, 252, 1);
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.linhas-slider__nav:hover {
	opacity: 0.92;
}

.linhas-slider__nav:focus {
	outline: 2px solid rgba(10, 60, 112, 1);
	outline-offset: 3px;
}

.linhas-slider__nav:focus:not(:focus-visible) {
	outline: none;
}

.linhas-slider__nav:focus-visible {
	outline: 2px solid rgba(10, 60, 112, 1);
	outline-offset: 3px;
}

.linhas-slider__bullets-viewport {
	flex: 0 0 auto;
	min-width: 0;
	width: min(100%, var(--linhas-bullets-strip-width));
	max-width: min(100%, var(--linhas-bullets-strip-width));
	padding-left: 6px;
	padding-right: 6px;
	overflow-x: auto;
	/* Allow active bullet box-shadow to extend above/below (not clipped). */
	overflow-y: visible;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.linhas-slider__bullets-viewport::-webkit-scrollbar {
	display: none;
}

.linhas-slider__bullets {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 51px;
	width: max-content;
	min-height: 140px;
	margin: 0 auto;
	/* Vertical room so active bullet box-shadow is not clipped by the horizontal scroll viewport. */
	padding: 16px 12px;
}

.linhas-slider__bullet {
	position: relative;
	flex-shrink: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 21.6px;
	overflow: hidden;
	transition: width 0.25s ease, height 0.25s ease, box-shadow 0.25s ease, border-radius 0.25s ease;
	width: 108px;
	height: 108px;
}

.linhas-slider__bullet-bg {
	display: block;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	background-color: #fff;
}

.linhas-slider__bullet.is-active {
	width: 140px;
	height: 140px;
	border-radius: 24px;
	border: 2px solid rgba(10, 60, 112, 1);
	box-shadow: 0 0 25px 0 rgba(10, 60, 112, 0.25);
}

.linhas-slider__bullet.is-active .linhas-slider__bullet-bg {
	border-radius: 22px;
}

.linhas-slider__bullet:not(.is-active) .linhas-slider__bullet-bg {
	border-radius: 21.6px;
}

.linhas-slider__bullet:focus-visible {
	outline: 2px solid rgba(10, 60, 112, 1);
	outline-offset: 4px;
}

/* --- Slides --- */
.linhas-slider__slides {
	width: 100%;
	height: 100%;
	max-height: calc(872px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
}

.linhas-slider__slide {
	display: none;
	width: 100%;
	height: 100%;
	min-height: 520px;
}

.linhas-slider__slide.is-active {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	width: 100%;
	min-width: 0;
}

.linhas-slider__slide-inner {
	display: contents;
}

.linhas-slider__content {
	position: relative;
	z-index: 1;
	flex: 0 1 auto;
	min-width: 0;
	max-width: min(var(--linhas-content-max-w), 100%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-left: 67px;
	padding-right: 0;
}

/* Home linhas-slider only (line page uses .carrossel-linha-slider in carrossel-linha-slider.css). */
.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__content-image-wrap {
	display: block;
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	height: 184px;
	margin-bottom: 41px;
	overflow: hidden;
}

.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__content-image {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 184px;
	height: 100%;
	object-fit: contain;
	object-position: left center;
	vertical-align: top;
}

.linhas-slider__line {
	width: calc(642px * var(--linhas-text-extra-scale));
	max-width: 100%;
	height: calc(4px * var(--linhas-text-extra-scale));
	margin: 0 0 calc(20px * var(--linhas-text-extra-scale));
	background: rgba(72, 138, 206, 1);
	border: none;
}

.linhas-slider__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	width: 100%;
	max-width: calc(702px * var(--linhas-text-extra-scale));
	margin: 0 0 calc(23px * var(--linhas-text-extra-scale));
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(
		calc(32px * var(--linhas-scale) * var(--linhas-text-extra-scale)),
		calc(4vw * var(--linhas-scale) * var(--linhas-text-extra-scale)),
		calc(64px * var(--linhas-scale) * var(--linhas-text-extra-scale))
	);
	line-height: 1.05;
	letter-spacing: 0;
	color: rgba(70, 70, 70, 1);
	overflow-wrap: break-word;
}

.linhas-slider__description {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
	width: 100%;
	max-width: 493px;
	margin: 0 0 calc(29px * var(--linhas-text-extra-scale));
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: calc(20px * var(--linhas-scale) * var(--linhas-text-extra-scale));
	line-height: 140%;
	letter-spacing: 0;
	color: rgba(70, 70, 70, 1);
	overflow-wrap: break-word;
}

.linhas-slider__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 250px;
	min-height: 48px;
	padding: 12px 16px;
	border: none;
	border-radius: 15px;
	background: rgba(52, 162, 252, 1);
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.linhas-slider__cta:hover {
	opacity: 0.92;
	color: #ffffff;
}

.linhas-slider__cta:focus-visible {
	outline: 2px solid rgba(10, 60, 112, 1);
	outline-offset: 3px;
}

.linhas-slider__cta-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* --- Images column --- */
.linhas-slider__images {
	position: relative;
	z-index: 0;
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	height: 100%;
	min-height: calc(872px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	align-self: stretch;
}

/* Inner image slider (base + secondary pairs; dots are not main carousel bullets). */
.linhas-images-slider {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

/*
 * Same geometry as the base panel: dots are positioned inside this host so they stay
 * aligned with the base image in all breakpoints (not the taller .linhas-images-slider box).
 */
.linhas-images-slider__panel-host {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: min(100%, calc(856px * var(--linhas-scale) * var(--linhas-images-extra-scale)));
	height: calc(872px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	max-height: 100%;
	z-index: 0;
}

.linhas-images-slider__slides {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.linhas-images-slider__slide {
	position: absolute;
	inset: 0;
}

.linhas-images-slider__dots {
	position: absolute;
	left: 57px;
	bottom: 30px;
	z-index: 3;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	pointer-events: auto;
}

.linhas-images-slider__dot {
	width: 16px;
	height: 16px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: #ffffff;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.linhas-images-slider__dot.is-active {
	background: rgba(255, 204, 0, 1);
}

.linhas-images-slider__dot:focus {
	outline: none;
}

.linhas-images-slider__dot:focus-visible {
	outline: 2px solid rgba(10, 60, 112, 1);
	outline-offset: 3px;
}

.linhas-slider__panel-base {
	/* Fills .linhas-images-slider__panel-host; geometry lives on the host. */
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	max-width: none;
	border-top-left-radius: calc(50px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	border-bottom-left-radius: calc(50px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	background: rgba(72, 138, 206, 1);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	z-index: 0;
	overflow: visible;
}

.linhas-slider__panel-base.has-image::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	border-top-left-radius: calc(50px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	border-bottom-left-radius: calc(50px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	background: rgba(72, 138, 206, 0.75);
	pointer-events: none;
}

.linhas-slider__panel-secondary {
	position: absolute;
	top: 50%;
	right: var(--linhas-secondary-right);
	width: 100%;
	max-width: var(--linhas-secondary-max-w);
	height: 100%;
	max-height: var(--linhas-secondary-max-w);
	object-fit: cover;
	object-position: center center;
	border: calc(8px * var(--linhas-scale) * var(--linhas-images-extra-scale)) solid rgba(7, 66, 128, 1);
	border-radius: calc(25px * var(--linhas-scale) * var(--linhas-images-extra-scale));
	box-shadow: calc(25px * var(--linhas-scale) * var(--linhas-images-extra-scale)) calc(25px * var(--linhas-scale) * var(--linhas-images-extra-scale)) calc(50px * var(--linhas-scale) * var(--linhas-images-extra-scale)) 0 rgba(0, 0, 0, 0.25);
	transform: translateY(-50%);
	z-index: 1;
}

/* Below this width: −20% on images column, inner visuals, title and description (see doc). */
@media screen and (max-width: 1725px) {
	.linhas-slider {
		--linhas-scale: 0.8;
	}
}

/* Images column: additional −20% vs current (multiplies with 1725 scale). */
@media screen and (max-width: 1500px) {
	.linhas-slider {
		--linhas-images-extra-scale: 0.8;
	}
}

/* Decorative line, title, description: additional −20% (multiplies with --linhas-scale from 1725). */
@media screen and (max-width: 1440px) {
	.linhas-slider {
		--linhas-text-extra-scale: 0.8;
	}
}

/* Content column: fixed line / title / description sizes (see doc). */
@media screen and (max-width: 1280px) {
	.linhas-slider__line {
		width: 300px;
		max-width: 100%;
		height: 2px;
	}

	.linhas-slider__title {
		max-width: 258px;
		font-size: 36px;
		line-height: 1;
		letter-spacing: 0;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.linhas-slider__description {
		max-width: 296px;
		font-size: 14px;
		line-height: 1.2;
		letter-spacing: 0;
		-webkit-line-clamp: 6;
		line-clamp: 6;
	}
}

/* Home line carousel: right image column gets an extra −20% from 996px down. */
@media screen and (max-width: 996px) {
	.linhas-slider:not(.carrossel-linha-slider) {
		--linhas-images-extra-scale: 0.64;
	}
}

/* Home line carousel: stack slide layout from 864px down. */
@media screen and (max-width: 864px) {
	.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__slide.is-active {
		flex-direction: column;
		gap: 16px;
	}
}

/* Stack slide: content block on top, images block below (same DOM order; no flex order hacks). */
@media screen and (max-width: 720px) {
	/* Section height follows content (no fixed min/max scroll shell). */
	.linhas-slider {
		height: auto;
		max-height: none;
		padding-top: 40px;
		overflow-x: hidden;
		overflow-y: visible;
	}

	.linhas-slider__wrapper {
		min-height: 0;
		height: auto;
	}

	.linhas-slider__controls-wrap {
		min-height: 0;
		height: auto;
	}

	/* Controls: full-width bullet strip; nav row below with divider (see doc). */
	.linhas-slider__controls {
		padding: 0;
		height: auto;
	}

	.linhas-slider__controls-row {
		flex-direction: column;
		align-items: stretch;
		gap: 35px;
		height: 245px;
		min-height: 245px;
		max-height: 245px;
		overflow: visible;
	}

	.linhas-slider__controls-bullets {
		order: 0;
		flex: 0 0 auto;
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}

	.linhas-slider__controls-actions {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		align-self: center;
		gap: 0;
		padding-bottom: 22px;
	}

	.linhas-slider__controls-actions-divider {
		display: block;
		width: 120px;
		flex-shrink: 0;
		height: 0;
		border: none;
		border-top: 2px solid rgba(52, 162, 252, 1);
		margin: 0 12px;
		padding: 0;
		align-self: center;
	}

	/* Nav buttons: spec from design (same box as arrow-mobile tap target). */
	.linhas-slider__nav--prev,
	.linhas-slider__nav--next {
		order: unset;
		width: 46.933334350586115px;
		height: 48.000000000000185px;
		min-width: 46.933334350586115px;
		min-height: 48.000000000000185px;
		max-width: 46.933334350586115px;
		max-height: 48.000000000000185px;
		padding: 0;
		box-sizing: border-box;
		border-radius: 12px;
		overflow: hidden;
	}

	.linhas-slider__nav-img--desktop {
		display: none;
	}

	/* Arrow glyph size inside the tap target (see doc). */
	.linhas-slider__nav-img--mobile {
		display: block;
		width: 9.955519676208496px;
		height: 9.955519676208496px;
		max-width: 9.955519676208496px;
		max-height: 9.955519676208496px;
		flex-shrink: 0;
		object-fit: contain;
		object-position: center;
	}

	.linhas-slider__bullets-viewport {
		max-width: none;
		width: 100%;
		flex: 1 1 auto;
	}

	.linhas-slider__bullets {
		min-height: 0;
		padding: 0;
		margin: 0;
	}

	.linhas-slider__content {
		/* Keep 24px entry to match line carousel spacing on /marcas/[marca]. */
		padding-left: 24px;
		padding-right: 0;
	}

	.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__content-image-wrap {
		height: 100px;
		margin-bottom: 27px;
	}

	.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__content-image {
		max-height: 100px;
		height: 100%;
	}

	.linhas-slider__line {
		margin: 0 0 27px;
	}

	.linhas-slider__title {
		margin-bottom: 14px;
	}

	.linhas-slider__cta {
		display: none;
	}

	.linhas-slider__slides {
		height: auto;
		min-height: 0;
		max-height: none;
		flex: 0 0 auto;
	}

	.linhas-slider__slide {
		height: auto;
		min-height: 0;
	}

	.linhas-slider__slide.is-active {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 16px;
		height: auto;
		min-height: 0;
	}

	.linhas-slider__images {
		flex: 0 0 auto;
		width: 100%;
		height: auto;
		min-height: 400px;
		align-self: auto;
	}

	.linhas-images-slider {
		height: auto;
		min-height: 400px;
	}

	/* Base panel host: same box as stacked panel; dots align to this rectangle. */
	.linhas-images-slider__panel-host {
		top: 0;
		left: -79px;
		right: auto;
		width: 330px;
		height: 400px;
		max-width: none;
		max-height: none;
	}

	.linhas-images-slider__dots {
		left: 166px;
	}

	/* Base panel: fixed box, rounded on the right (stacked layout). */
	.linhas-slider__panel-base {
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
		border-top-right-radius: 50px;
		border-bottom-right-radius: 50px;
	}

	.linhas-slider__panel-base.has-image::after {
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
		border-top-right-radius: 50px;
		border-bottom-right-radius: 50px;
	}

	/* Secondary image: spec dimensions, offset from left (stacked layout). */
	.linhas-slider__panel-secondary {
		left: 104px;
		right: auto;
		top: 50%;
		width: 303px;
		height: auto;
		aspect-ratio: 303 / 271;
		max-height: 271px;
		transform: translateY(-50%);
		opacity: 1;
		border-radius: 25px;
		border-width: 8px;
		border-style: solid;
		border-color: rgba(7, 66, 128, 1);
		box-shadow: 12px 12px 28px 0 rgba(0, 0, 0, 0.22);
	}
}

/* 721px–1100px: tighten to the same 24px left entry and no right inset. */
@media screen and (min-width: 721px) and (max-width: 1100px) {
	.linhas-slider__content {
		padding-left: 24px;
		padding-right: 0;
	}
}

/* Home line carousel: from 864px down, avoid fixed heights and let content define vertical size. */
@media screen and (max-width: 864px) {
	.linhas-slider:not(.carrossel-linha-slider),
	.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__wrapper,
	.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__slides,
	.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__slide,
	.linhas-slider:not(.carrossel-linha-slider) .linhas-slider__slide.is-active {
		height: auto;
		min-height: 0;
		max-height: none;
	}
}
