@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes dotFadein {
    to {
        opacity: 1;
    }
}

.mandracchio-svg-icon {
	display: inline-block;
    line-height: 1;
}

.mandracchio-svg-icon svg {
	width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
}

.mandracchio-video {
	--mandracchio-button-form-spacing: 20px;
}

.mandracchio-video__image {
	position: relative;
	cursor: pointer;
}

.mandracchio-video__poster {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	cursor: pointer;
}

.mandracchio-video__poster:before {
	content: '';
    width: 0;
    height: 0;
    display: block;
    padding-bottom: 100%;
}

.mandracchio-video__poster img {
	display: block;
    max-width: 100%;
    position: absolute;
    margin: 0;
    top: 0;
    inset-inline-start: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.mandracchio-video-ended .mandracchio-video__btn-wrapper {
	display: none;
}

.mandracchio-video-ended .mandracchio-video__image {
	cursor: default;
}

.mandracchio-video__btn-wrapper {
	height: 100%;
	position: absolute;
    top: 0;
    right: 0;
	left: 0;
}

.mandracchio-video__btn-play {
	width: 120px;
    height: 120px;
	border: 15px solid #fff;
	border-radius: 10px;
	position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
	cursor: pointer;
}

.mandracchio-video__btn-play:after {
	content: '';
    width: 0;
    height: 0;
	border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-inline-start: 35px solid #fff;
    display: block;
    position: absolute;
    top: 50%;
    inset-inline-start: 53%;
    transform: translate(-50%, -50%);
}

.mandracchio-video__summary {
	top: 30px;
	left: 0;
	width: 100%;
	color: #fff;
	background-color: rgba(5, 29, 75);
	padding: 35px 10px 35px 30px;
}

.mandracchio-video__title {
	font-family: "Playfair Display", Sans-serif;
    font-size: 26px;
    font-weight: 500;
    text-transform: capitalize;
    font-style: normal;
    text-decoration: none;
    line-height: 1.2em;
    color: #fff;
	margin: 0 0 5px 0;
}

.mandracchio-video__description {
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 300;
	margin-bottom: 10px;
}

.mandracchio-video__btn-link {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	transition: all 0.3s ease;
}

.mandracchio-video__btn-link:hover {
	gap: 0;
}

.mandracchio-video__btn-link:hover .button-text {
	background-color: #051D4B;
}

.mandracchio-video__btn-link:hover .mandracchio-svg-icon {
	background-color: #051D4B;
}

.mandracchio-video__btn-arrow:hover .button-text {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.mandracchio-video__btn-arrow:hover .mandracchio-svg-icon {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.mandracchio-video__btn-link .button-text {
	font-family: Montserrat, sans-serif;
	font-size: 16px;
    background-color: #D09C01;
    color: white;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
	padding: 10px 24px;
	min-height: 48px;
}

.mandracchio-video__btn-link .mandracchio-svg-icon {
    background-color: #D09C01;
    color: white;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
	padding: 13px;
    width: 48px;
    height: 48px;
}

.mandracchio-video__btn-form {
	margin-left: var(--mandracchio-button-form-spacing);
}

.mandracchio-video__form {
	padding: 30px;
	display: none;
}

.mandracchio-video__form .wpcf7-form .wpcf7-form-control {
	background-color: transparent;
    border: 1px solid #000;
    flex-grow: 1;
    max-width: 100%;
    vertical-align: middle;
    width: 100%;
	border-radius: 5px;
    font-size: 16px;
    min-height: 47px;
    padding: 6px 16px;
	outline: none;
	margin-bottom: 20px;
}

.mandracchio-video__form .wpcf7-form .wpcf7-radio {
	border: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
}

.mandracchio-video__form .wpcf7-form .wpcf7-radio > * {
	margin: 0;
}

.mandracchio-video__form .wpcf7-form p {
	margin: 0;
}

.mandracchio-video__form .wpcf7-form br,
.mandracchio-video__form .wpcf7-form .wpcf7-spinner {
	display: none;
}

.mandracchio-video__form .wpcf7-form .wpcf7-not-valid-tip {
	font-size: 16px;
}

.mandracchio-video__image-video-mobile {
	position: absolute;
	top: 0;
	left: 0;
}

/* Timeline */
.mandracchio-timeline {
	--line-top: 0px;
  	--line-height: 0px;

	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	gap: 50px;
}

.mandracchio-timeline:after {
	content: '';
	position: absolute;
	top: var(--line-top, 0);
	left: 50%;
	transform: translateX(-50%);
	height: var(--line-height, 0);
	width: 1px;
	background-color: #ddd;
	transition: height 0.8s ease, top 0.8s ease;
}

.mandracchio-timeline__item {
	width: 100%;
	z-index: 1;
}

.mandracchio-timeline__item .mandracchio-timeline__content {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mandracchio-timeline__item.is-visible .mandracchio-timeline__content {
    opacity: 1;
    animation: bounceIn 0.8s both;
}

.mandracchio-timeline__content {
	background-color: #051D4B;
	color: #fff;
	border-radius: 15px;
	padding: 25px 35px 35px 35px;
	box-shadow: -10px 32px 54px 0px rgba(148.99999999999997, 154.99999999999997, 165.99999999999997, 0.30196078431372547);
}

.mandracchio-timeline__number {
	width: 50px;
	height: 50px;
	border-radius: 5px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	color: #051D4B;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 25px;
}

.mandracchio-timeline__title {
	margin-top: 0;
	margin-bottom: 8px;
    font-family: "Montserrat", Sans-serif;
    font-size: 25px;
    font-weight: bold;
    text-transform: capitalize;
    font-style: normal;
    text-decoration: none;
    line-height: 1.1em;
}

.mandracchio-timeline__description {
	font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.5em;
}

/* Media V1 */
.mandracchio-media-v1__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
}

.mandracchio-media-v1__text {
	margin-bottom: 30px;
	text-align: center;
}

.mandracchio-media__title {
	font-family: "Playfair Display", sans-serif;
	font-size: 26px;
	margin: 0 0 20px 0;
	color: #1C244B;
}

.mandracchio-media__description {
	font-size: 16px;
	color: #1C244B;
}

.mandracchio-media-v1__brand {
	position: relative;
}

.mandracchio-media-v1__media {
	width: 100%;
}

.mandracchio-media-v1__brand-items.swiper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mandracchio-media-v1__brand-items.is-active {
	opacity: 1;
	visibility: visible;
	position: relative;
}

.mandracchio-media-v1__brand {
	margin-top: 30px;
}

.mandracchio-media-v1__brand-items .swiper-wrapper {
	align-items: center;
}

/* Media v2 */
.mandracchio-media-v2__heading {
	text-align: center;
	margin-bottom: 50px;
}

.mandracchio-media-v2__quote {
	text-align: center;
}

.mandracchio-media-v2__quote-wrapper {
	align-items: center;
}

.mandracchio-media-v2__item img {
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform: scale(0.8);
}

.mandracchio-media-v2__item.is-active img,
.mandracchio-media-v2__item.swiper-slide-active img {
	transform: scale(1);
  	z-index: 2;
}

.mandracchio-media-v2__quote {
	--swiper-navigation-size: 25px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 50px;
	position: relative;
}

.mandracchio-media-v2__quote-title
.mandracchio-media-v2__quote-description {
	max-width: 55%;
}

.mandracchio-media-v2__quote-title {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 10px;
}

.mandracchio-media-v2__quote-description {
	font-size: 18px;
}

.mandracchio-media-v2__quote .swiper-button-content {
	position: absolute;
	text-align: center;
	min-width: 200px;
}

.mandracchio-media-v2__quote .swiper-button-prev .swiper-button-content {
	left: 30px;
}

.mandracchio-media-v2__quote .swiper-button-next .swiper-button-content {
	right: 30px;
}

.swiper-button-content__title {
	font-size: 16px;
	font-weight: 600;
}

.swiper-button-content__description {
	font-size: 14px;
}

@media (min-width: 1025px) {
	.mandracchio-video {
		height: 80vh;
	}

	.mandracchio-video__image {
		height: 100%;
	}
	
	.mandracchio-video__image-video,
	.mandracchio-video__image video,
	.mandracchio-video__image iframe {
		height: 100%;
	}

	.mandracchio-video__summary {
		position: absolute;
		max-width: 50%;
		top: 50%;
		left: 80px;
		right: auto;
		transform: translateY(-50%);
		background-color: rgba(5, 29, 75, 0.06);
		box-shadow: -10px 32px 54px 0px rgba(148.99999999999997, 154.99999999999997, 165.99999999999997, 0.30196078431372547);
		border-radius: 10px;
	}

	.mandracchio-video__form {
		background-color: rgba(5, 29, 75, 0.06);
		position: absolute;
		top: 50%;
		right: 30px;
		transform: translateY(-50%);
		box-shadow: -10px 32px 54px 0px rgba(148.99999999999997, 154.99999999999997, 165.99999999999997, 0.30196078431372547);
		width: 40%;
	}

	.mandracchio-video__form .wpcf7-form label {
		color: #fff;
	}
	
	.mandracchio-video__form .wpcf7-form .wpcf7-form-control {
		border: 1px solid #fff;
		color: #fff;
	}
	
	.mandracchio-video__form .wpcf7-form .wpcf7-form-control::placeholder {
		color: #fff;
	}
}

@media (min-width: 992px) {
	.mandracchio-media-v2__quote-swiper .swiper-pagination {
		display: none;
	}
}

@media (min-width: 768px) {
	.mandracchio-video__title {
		font-size: 48px;
	}

	.mandracchio-video__description {
		font-size: 22px;
	}

	.mandracchio-video__btn-wrapper {
		left: auto;
		width: 50%;
	}

	.mandracchio-video__form .wpcf7-form .contact-form-group p {
		display: flex;
		align-items: center;
		gap: 20px;
	}

	.mandracchio-video__form .wpcf7-form .contact-form-group p > * {
		width: 50%;
	}

	.mandracchio-video__image video.video-mobile {
		display: none;
	}

	/* Timeline */
	.mandracchio-timeline {
		gap: 30px;
	}

	.mandracchio-timeline__content {
		width: 91%;
	}

	.mandracchio-timeline__item {
		--mandracchio-timeline-dots-width: 24px;
		--mandracchio-timeline-dots-height: 24px;

		width: calc(50% + (var(--mandracchio-timeline-dots-width) / 2));
		position: relative;
		display: flex;
	}

	.mandracchio-timeline__item:before {
		content: '';
		width: var(--mandracchio-timeline-dots-width);
		height: var(--mandracchio-timeline-dots-height);
		background-color: #D09C01;
		border-radius: 999px;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		border: 5px solid #fff;
		z-index: 1;
		opacity: 0;
		transition: opacity 0.3s ease;
    	transition-delay: 0.5s;
	}

	.mandracchio-timeline__item:nth-child(odd) {
		align-self: flex-start;
	}

	.mandracchio-timeline__item:nth-child(even) {
		align-self: flex-end;
		justify-content: flex-end;
	}

	.mandracchio-timeline__item:nth-child(odd):before {
		right: 0;
	}

	.mandracchio-timeline__item:nth-child(even):before {
		left: 0;
	}

	.mandracchio-timeline__item.is-visible:before {
		opacity: 1;
	}

	/* Media V1 */
	.mandracchio-media-v1__content {
		flex-direction: row;
	}

	.mandracchio-media-v1__text {
		width: 35%;
		margin-bottom: 0;
		text-align: left;
	}

	.mandracchio-media__title {
		font-size: 48px;
		margin: 0 0 33px 0;
	}

	.mandracchio-media-v1__media.swiper {
		width: 55%;
		margin: 0;
	}
}

@media (max-width: 1024px) {
	.mandracchio-video__btn-form {
		margin-left: var(--mandracchio-button-form-spacing);
	}
}

@media (max-width: 991px) {
	.mandracchio-media-v2__quote .swiper-button-prev,
	.mandracchio-media-v2__quote .swiper-button-next {
		display: none;
	}

	.mandracchio-media-v2__quote-swiper.swiper {
		padding-bottom: 40px;
	}
}

@media (max-width: 767px) {
    .mandracchio-video__image video.video-desktop,
    .mandracchio-video__image iframe.video-desktop {
		display: none;
	}

	.mandracchio-video__btn-form {
		margin-left: 0;
		margin-top: var(--mandracchio-button-form-spacing);
	}
}