/**
 * Instituto Tecendo Infâncias - Widgets Personalizados
 * Widget: Linha do Tempo
 */

.iti-timeline {
	--iti-line-color: #ffb13b;
	--iti-inactive-color: #ffb13b;
	--iti-marker-background: #ffffff;
	--iti-active-color: #ffb13b;
	--iti-year-color: #ffb13b;
	--iti-heading-color: #102f49;
	--iti-text-color: #0a3352;
	--iti-marker-size: 20px;
	--iti-line-width: 2px;
	--iti-panels-gap: 42px;
	--iti-content-gap: 52px;
	--iti-image-ratio: 3 / 2;
	--iti-image-radius: 28px;
	--iti-points: 6;

	width: 100%;
	max-width: 100%;
	background: transparent;
	box-sizing: border-box;
}

.iti-timeline *,
.iti-timeline *::before,
.iti-timeline *::after {
	box-sizing: border-box;
}

.iti-timeline__section-heading {
	margin: 0 0 54px;
}

.iti-timeline__section-title {
	margin: 0;
	color: #003b60;
	font: inherit;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

.iti-timeline__section-accent {
	display: block;
	width: 50px;
	height: 4px;
	margin-top: 10px;
	background: #4a90d6;
}

.iti-timeline__nav-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.iti-timeline__nav {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--iti-points), minmax(48px, 1fr));
	align-items: start;
	width: 100%;
	min-width: max(100%, calc(var(--iti-points) * 48px));
	margin: 0;
	padding: 0;
	isolation: isolate;
}

/*
 * A linha começa e termina exatamente no centro da primeira e
 * da última coluna do grid.
 */
.iti-timeline__nav::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: calc((var(--iti-marker-size) - var(--iti-line-width)) / 2);
	left: calc(50% / var(--iti-points));
	right: calc(50% / var(--iti-points));
	height: var(--iti-line-width);
	background: var(--iti-line-color);
	pointer-events: none;
}

.iti-timeline__tab {
	position: relative;
	z-index: 1;
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-align: center;
	cursor: pointer;
}

.iti-timeline__tab:hover,
.iti-timeline__tab:focus,
.iti-timeline__tab:active {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

.iti-timeline__tab:focus-visible .iti-timeline__marker {
	outline: 3px solid color-mix(in srgb, var(--iti-active-color) 30%, transparent);
	outline-offset: 4px;
}

.iti-timeline__marker {
	display: block;
	flex: 0 0 auto;
	width: var(--iti-marker-size);
	height: var(--iti-marker-size);
	border: 2px solid var(--iti-inactive-color);
	border-radius: 50%;
	background: var(--iti-marker-background);
	box-shadow: 0 0 0 3px transparent;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.iti-timeline__tab:hover .iti-timeline__marker {
	transform: scale(1.05);
}

.iti-timeline__tab.is-active .iti-timeline__marker,
.iti-timeline__tab[aria-selected="true"] .iti-timeline__marker {
	border-color: var(--iti-active-color);
	background: var(--iti-active-color);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.iti-timeline__year {
	display: block;
	margin-top: 8px;
	color: var(--iti-year-color);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.iti-timeline__panels {
	margin-top: var(--iti-panels-gap);
}

.iti-timeline__panel[hidden] {
	display: none !important;
}

.iti-timeline__panel.is-active {
	animation: itiTimelineFade 180ms ease-out both;
}

@keyframes itiTimelineFade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.iti-timeline__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--iti-content-gap);
	width: 100%;
}

.iti-timeline__copy {
	min-width: 0;
}

.iti-timeline__content-title {
	margin: 0 0 16px;
	color: var(--iti-heading-color);
	font: inherit;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
}

.iti-timeline__text {
	color: var(--iti-text-color);
	font: inherit;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.9;
}

.iti-timeline__text > :first-child {
	margin-top: 0;
}

.iti-timeline__text > :last-child {
	margin-bottom: 0;
}

.iti-timeline__text p {
	margin-top: 0;
	margin-bottom: 0.9em;
}

.iti-timeline__text strong,
.iti-timeline__text b {
	font-weight: 700;
}

.iti-timeline__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: var(--iti-image-ratio);
	overflow: hidden;
	border-radius: var(--iti-image-radius);
	background: transparent;
}

.iti-timeline__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
}

.iti-timeline__image-wrap.is-fit-contain .iti-timeline__image {
	object-fit: contain;
}

.iti-timeline__image-wrap[data-position="top"] .iti-timeline__image {
	object-position: center top;
}

.iti-timeline__image-wrap[data-position="bottom"] .iti-timeline__image {
	object-position: center bottom;
}

.iti-timeline__image-wrap[data-position="left"] .iti-timeline__image {
	object-position: left center;
}

.iti-timeline__image-wrap[data-position="right"] .iti-timeline__image {
	object-position: right center;
}

.iti-timeline__image-placeholder {
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.04);
}

.iti-timeline__empty {
	padding: 18px;
	border: 1px dashed #b8c0c8;
	border-radius: 8px;
	background: transparent;
	color: #555;
}

@media (max-width: 1024px) {
	.iti-timeline {
		--iti-content-gap: 34px;
	}

	.iti-timeline__content-title {
		font-size: 25px;
	}

	.iti-timeline__text {
		font-size: 16px;
		line-height: 1.75;
	}
}

@media (max-width: 767px) {
	.iti-timeline {
		--iti-panels-gap: 30px;
		--iti-content-gap: 24px;
		--iti-image-radius: 22px;
	}

	.iti-timeline__section-heading {
		margin-bottom: 40px;
	}

	.iti-timeline__section-title {
		font-size: 28px;
	}

	.iti-timeline__nav {
		grid-template-columns: repeat(var(--iti-points), minmax(46px, 1fr));
		min-width: max(100%, calc(var(--iti-points) * 46px));
	}

	.iti-timeline__year {
		margin-top: 7px;
		font-size: 13px;
	}

	.iti-timeline__content {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.iti-timeline__content-title {
		margin-bottom: 12px;
		font-size: 24px;
	}

	.iti-timeline__text {
		font-size: 16px;
		line-height: 1.7;
	}

	.iti-timeline__image-wrap {
		width: 100%;
	}

	.iti-timeline__nav-wrap::-webkit-scrollbar {
		height: 5px;
	}
}

@media (max-width: 380px) {
	.iti-timeline__nav {
		grid-template-columns: repeat(var(--iti-points), minmax(44px, 1fr));
		min-width: max(100%, calc(var(--iti-points) * 44px));
	}

	.iti-timeline__year {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iti-timeline__panel.is-active {
		animation: none;
	}

	.iti-timeline__marker {
		transition: none;
	}
}
