/*
 Theme Name:   Onum Child
 Theme URI:    https://vita-digital.tn/
 Description:  VITA Digital
 Template:     onum
 Version:      1.3.0
*/

#royal_preloader, .royal_preloader { display: none !important; }
.site-logo img { height: 52px; width: auto; max-width: 168px; }

.mc4wp-form,
.mc4wp-alert,
.mc4wp-error,
.mc4wp-response,
form[id^="mc4wp"],
.elementor-widget-mc4wp_form { display: none !important; }

#site-header.header__transparent .main-navigation > ul > li > a,
#site-header.is-fixed .main-navigation > ul > li > a,
#site-header .main-navigation > ul > li > a {
	color: #1a1b1e !important;
	-webkit-text-fill-color: #1a1b1e !important;
	opacity: 1 !important;
	visibility: visible !important;
}
#site-header .main-navigation > ul > li.current-menu-item > a,
#site-header .main-navigation > ul > li.current-menu-ancestor > a,
#site-header .main-navigation > ul > li.current_page_item > a {
	color: #d5a332 !important;
	-webkit-text-fill-color: #d5a332 !important;
}
#site-header.is-fixed,
#site-header.header__transparent.is-fixed,
#site-header.cd-header.is-fixed {
	background: #ffffff !important;
	background-color: #ffffff !important;
	box-shadow: 0 10px 30px rgba(20, 21, 45, 0.08);
}
#site-header .main-navigation ul ul.sub-menu {
	background: #ffffff !important;
	min-width: 340px;
	box-shadow: 0 16px 40px rgba(20, 21, 45, 0.12);
}
#site-header .main-navigation ul ul.sub-menu a {
	color: #1a1b1e !important;
	-webkit-text-fill-color: #1a1b1e !important;
	white-space: nowrap;
	line-height: 1.35;
}
#site-header.is-fixed .site__logo img.logo-static,
#site-header.is-fixed #site-logo img.logo-static {
	display: block !important;
}
#site-header.is-fixed .site__logo img.logo-scroll,
#site-header.is-fixed #site-logo img.logo-scroll {
	display: none !important;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea { width: 100%; }
.elementor-widget-itestimonials2 img { display: none !important; }
footer .elementor-widget-social-icons, .elementor-3910 .elementor-widget-social-icons { display: none !important; }

#primary-sidebar { display: none !important; }
.wpcf7-form input[type=submit], .wpcf7-submit {
  background: #1e1f43 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 30px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.vita-tones > .elementor-container > .elementor-column:nth-child(1) .icon-box.s3 .icon-main {
	background-color: #2BDCCE;
	background-image: linear-gradient(145deg, #2BDCCE, #14998C);
	box-shadow: 8px 8px 24px rgba(43, 220, 206, .35);
}
.vita-tones > .elementor-container > .elementor-column:nth-child(2) .icon-box.s3 .icon-main {
	background-color: #F0C050;
	background-image: linear-gradient(145deg, #F0C050, #D5A332);
	box-shadow: 8px 8px 24px rgba(213, 163, 50, .35);
}
.vita-tones > .elementor-container > .elementor-column:nth-child(3) .icon-box.s3 .icon-main {
	background-color: #FE4C1C;
	background-image: linear-gradient(145deg, #FE4C1C, #FF8A5B);
	box-shadow: 8px 8px 24px rgba(254, 76, 28, .3);
}
.vita-steps > .elementor-container > .elementor-column:nth-child(1) .icon-box.s3 .icon-main {
	background-color: #2BDCCE;
	background-image: linear-gradient(145deg, #5B6CFF, #2BDCCE);
	box-shadow: 8px 8px 24px rgba(91, 108, 255, .3);
}
.vita-steps > .elementor-container > .elementor-column:nth-child(2) .icon-box.s3 .icon-main {
	background-color: #F0C050;
	background-image: linear-gradient(145deg, #F0C050, #1E1F43);
	box-shadow: 8px 8px 24px rgba(30, 31, 67, .2);
}
.vita-steps > .elementor-container > .elementor-column:nth-child(3) .icon-box.s3 .icon-main {
	background-color: #FE4C1C;
	background-image: linear-gradient(145deg, #FE4C1C, #6B2D5B);
	box-shadow: 8px 8px 24px rgba(107, 45, 91, .3);
}
.vita-steps > .elementor-container > .elementor-column:nth-child(4) .icon-box.s3 .icon-main {
	background-color: #3A1868;
	background-image: linear-gradient(145deg, #3A1868, #2BDCCE);
	box-shadow: 8px 8px 24px rgba(58, 24, 104, .3);
}
.vita-tones .icon-box.s3,
.vita-steps .icon-box.s3 {
	background: #ffffff;
	height: 100%;
}

/* Inner pages were locked in the theme column, so the content sat to the side and the cards ran off the screen. */
body.page:not(.home) .entry-content:has(.elementor) {
	overflow-x: clip;
}
body.page:not(.home) .entry-content:has(.elementor) > .container {
	width: 100% !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.page:not(.home) .entry-content:has(.elementor) > .container > .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
}
body.page:not(.home) .entry-content:has(.elementor) #primary.content-area {
	width: 100% !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	float: none !important;
}
body.page:not(.home) .elementor-widget-iservice_slider .container {
	width: min(1140px, calc(100% - 48px)) !important;
	max-width: 1140px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.page:not(.home) .service_carousel-wrap {
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.page:not(.home) .ot-service-slider,
body.page:not(.home) .ot-service-slider .slick-list {
	width: 100% !important;
	max-width: 100% !important;
}


.vita-folio-hero {
	background: linear-gradient(125deg, #1e1f43 0%, #3a1868 58%, #8a6a1a 100%);
	color: #ffffff;
	padding: 78px 0 64px;
}
.vita-folio-wrap {
	width: min(1140px, calc(100% - 48px));
	margin: 0 auto;
}
.vita-folio-kicker {
	margin: 0 0 8px;
	color: #f0c050;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 13px;
}
.vita-folio-hero h1 {
	margin: 0 0 12px;
	color: #ffffff !important;
	font-size: 46px;
	line-height: 1.15;
}
.vita-folio-hero p {
	max-width: 640px;
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
}
.vita-folio-body {
	background: #f6f7fb;
	padding: 36px 0 72px;
}
.vita-folio-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 28px;
}
.vita-folio-filters button {
	border: 0;
	background: #ffffff;
	color: #1e1f43;
	border-radius: 999px;
	padding: 11px 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(20, 21, 45, 0.06);
}
.vita-folio-filters button.is-on {
	background: #1e1f43;
	color: #f0c050;
}
.vita-folio-empty {
	text-align: center;
	color: #62647d;
	margin: 12px 0 0;
}
.vita-folio-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
.vita-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 22px 22px 18px;
	box-shadow: 0 12px 30px rgba(20, 21, 45, 0.06);
}
.vita-card[hidden] {
	display: none !important;
}
.vita-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 18px;
	color: #ffffff;
	font-weight: 800;
	letter-spacing: 0.04em;
}
.vita-card h2 {
	margin: 14px 0 4px !important;
	color: #1e1f43 !important;
	font-size: 22px !important;
	line-height: 1.25 !important;
}
.vita-sector {
	margin: 0 0 8px;
	color: #d5a332;
	font-weight: 700;
	font-size: 14px;
}
.vita-card p {
	margin: 0;
	color: #62647d;
}
.vita-url {
	margin-top: 10px !important;
}
.vita-url a {
	color: #1e1f43;
	font-weight: 700;
}
.vita-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.vita-pills li {
	background: #fbf3de;
	color: #1e1f43;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
}
@media (max-width: 980px) {
	.vita-folio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vita-folio-hero h1 { font-size: 36px; }
}
@media (max-width: 680px) {
	.vita-folio-grid { grid-template-columns: 1fr; }
	.vita-folio-hero { padding: 56px 0 42px; }
	.vita-folio-filters { justify-content: flex-start; }
}


/* Playful accents and softer motion, in the same spirit as the homepage. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body.page:not(.home) .elementor > .elementor-top-section:first-child,
.vita-folio-hero {
	position: relative;
	overflow: hidden;
}
body.page:not(.home) .elementor > .elementor-top-section:first-child > .elementor-container,
.vita-folio-hero .vita-folio-wrap {
	position: relative;
	z-index: 1;
}

body.page:not(.home) .elementor > .elementor-top-section:first-child::before,
.vita-folio-hero::before {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	right: -30px;
	top: -70px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23F0C050' fill-opacity='.45' d='M48 18c34-22 96-8 118 36 24 48-2 104-52 122-46 16-98-8-112-52C-8 74 14 40 48 18z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.page:not(.home) .elementor > .elementor-top-section:first-child::after,
.vita-folio-hero::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 7%;
	bottom: 28px;
	border: 3px solid #2bdcc8;
	border-radius: 3px;
	transform: rotate(45deg);
	pointer-events: none;
}
.vita-folio-hero::before { right: 6%; top: -40px; opacity: .9; }
.page-id-109 .elementor > .elementor-top-section:first-child::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%232BDCC8' fill-opacity='.35' d='M48 18c34-22 96-8 118 36 24 48-2 104-52 122-46 16-98-8-112-52C-8 74 14 40 48 18z'/%3E%3C/svg%3E");
}

.vita-tones,
.vita-steps {
	position: relative;
}
.vita-tones::before,
.vita-steps::before {
	content: "+";
	position: absolute;
	right: 28px;
	top: 18px;
	color: #2bdcc8;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
	z-index: 2;
}
.vita-steps::after {
	content: "";
	position: absolute;
	left: 36px;
	bottom: 22px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 3px solid #f0c050;
	pointer-events: none;
}

.icon-box.s3,
.service-slide-inner,
.vita-card,
.elementor-button,
.vita-folio-filters button,
.wpcf7-submit {
	transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, color .28s ease;
}
.icon-box.s3:hover,
.service-slide-inner:hover,
.vita-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 40px rgba(20, 21, 45, .12);
}
.icon-box.s3:hover .icon-main {
	transform: rotate(-8deg) scale(1.06);
}
.icon-box.s3 .icon-main {
	transition: transform .28s ease;
}
.elementor-button:hover,
.wpcf7-submit:hover,
.vita-folio-filters button:hover {
	transform: translateY(-2px);
}
.vita-card:hover .vita-mark {
	transform: rotate(-8deg) scale(1.05);
}
.vita-mark {
	transition: transform .28s ease;
}

@media (prefers-reduced-motion: no-preference) {
	body.page:not(.home) .elementor > .elementor-top-section:first-child::before,
	.vita-folio-hero::before,
	.vita-tones::before,
	.vita-steps::before {
		animation: vita-float 7s ease-in-out infinite;
	}
	body.page:not(.home) .elementor > .elementor-top-section:first-child::after,
	.vita-folio-hero::after,
	.vita-steps::after {
		animation: vita-bob 5.5s ease-in-out infinite;
	}
	.vita-card {
		animation: vita-rise .55s ease both;
	}
	.vita-card:nth-child(2) { animation-delay: .04s; }
	.vita-card:nth-child(3) { animation-delay: .08s; }
	.vita-card:nth-child(4) { animation-delay: .12s; }
	.vita-card:nth-child(5) { animation-delay: .16s; }
	.vita-card:nth-child(6) { animation-delay: .2s; }
	.vita-card:nth-child(7) { animation-delay: .24s; }
	.vita-card:nth-child(8) { animation-delay: .28s; }
	.vita-card:nth-child(9) { animation-delay: .32s; }
	.vita-card:nth-child(10) { animation-delay: .36s; }
	.vita-card:nth-child(11) { animation-delay: .4s; }
	.vita-card:nth-child(12) { animation-delay: .44s; }
	.vita-card:nth-child(13) { animation-delay: .48s; }
	.vita-card:nth-child(14) { animation-delay: .52s; }
	.icon-box.s3 {
		animation: vita-rise .55s ease both;
	}
}

@keyframes vita-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}
@keyframes vita-bob {
	0%, 100% { transform: translateY(0) rotate(45deg); }
	50% { transform: translateY(-8px) rotate(45deg); }
}
@keyframes vita-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.icon-box.s3:hover,
	.service-slide-inner:hover,
	.vita-card:hover,
	.elementor-button:hover,
	.wpcf7-submit:hover,
	.vita-folio-filters button:hover {
		transform: none;
	}
}
