/*
Theme Name: Studio Latella Mobile Sticky Header
Theme URI: https://www.studiolatella.it/
Author: Studio Latella
Description: Minimal child theme that preserves Consulting and keeps the mobile logo and menu header available while scrolling.
Version: 1.0.2
Template: consulting
Text Domain: studio-latella-mobile-sticky
*/

@media screen and (max-width: 767px) {
	body.header_style_2 #header .header-box.studio-latella-mobile-is-sticky {
		position: fixed !important;
		top: 0;
		right: 0;
		left: 0;
		width: 100%;
		z-index: 100000;
	}

	body.header_style_2 #header .studio-latella-mobile-header-spacer {
		flex: 0 0 auto;
		width: 100%;
		height: 0;
		min-height: 0;
	}

	body.admin-bar.header_style_2 #header .header-box.studio-latella-mobile-is-sticky {
		top: 32px;
	}

	body.header_transparent.header_style_2 #header .header-box.studio-latella-mobile-is-sticky {
		background: #fff !important;
	}

	body.header_transparent.header_style_2 #header .header-box.studio-latella-mobile-is-sticky::before {
		background: transparent !important;
	}
}

body.header_transparent.header_style_2 #header .header-box.affix {
	background-color: #fff !important;
}

body.header_transparent.header_style_2 #header .header-box.affix::before {
	background: transparent !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar.header_style_2 #header .header-box.studio-latella-mobile-is-sticky {
		top: 46px;
	}
}

/* Keep the Studio Digitale login callout balanced on desktop and mobile. */
body.page-id-8208 section.vc_cta3-container > .vc_cta3.vc_custom_1766400635216 {
	box-sizing: border-box;
	padding: 28px 0 28px 32px !important;
	border-radius: 16px !important;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(0, 43, 91, 0.1);
}

body.page-id-8208 .vc_custom_1766400635216 .vc_cta3_content-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	text-align: left !important;
}

body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content-header,
body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content-header .vc_custom_heading {
	text-align: left !important;
}

body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content-header h2 {
	margin: 0 !important;
	color: #002b5b !important;
	font-size: 22px !important;
	line-height: 1.3 !important;
	text-align: left !important;
}

body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-actions {
	flex: 0 0 200px;
	width: 200px;
	margin: 0 !important;
	box-sizing: border-box;
}

body.page-id-8208 .vc_custom_1766400635216 .vc_btn3-container {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	margin: 0 !important;
	padding-right: 24px;
	box-sizing: border-box;
}

body.page-id-8208 .vc_custom_1766400635216 a.vc_btn3.vc_btn3-block {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	position: relative;
width: 135px !important;
max-width: 135px;
height: 53px;
min-height: 53px;
	margin: 0 !important;
	padding: 14px 20px 14px 37px !important;
	border: 0 !important;
	border-radius: 3px !important;
	background-color: #002e5b !important;
	color: #ffffff !important;
font-size: 14px;
line-height: 23px;
}

body.page-id-8208 .vc_custom_1766400635216 a.vc_btn3-icon-right:not(.vc_btn3-o-empty) {
	padding-left: 37px !important;
	padding-right: 20px !important;
}

body.page-id-8208 .vc_custom_1766400635216 a.vc_btn3-icon-right .vc_btn3-icon {
	position: absolute !important;
	top: 50% !important;
	right: auto !important;
	left: 15px !important;
	width: auto !important;
	height: 14px;
	margin: 0 !important;
	transform: translateY(-50%) !important;
	color: #fde428 !important;
	font-size: 14px !important;
	line-height: 14px !important;
}

@media screen and (max-width: 767px) {
	body.page-id-8208 section.vc_cta3-container > .vc_cta3.vc_custom_1766400635216 {
		padding: 22px 18px !important;
		border-radius: 14px !important;
	}

	body.page-id-8208 .vc_custom_1766400635216 .vc_cta3_content-container {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}

	body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content,
	body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-actions {
		width: 100%;
		flex: 0 1 auto;
	}

	body.page-id-8208 .vc_custom_1766400635216 .vc_btn3-container {
		justify-content: center;
		padding-right: 0;
	}

	body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content-header,
	body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content-header .vc_custom_heading,
	body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content-header h2 {
		text-align: center !important;
	}

	body.page-id-8208 .vc_custom_1766400635216 .vc_cta3-content-header h2 {
		font-size: 20px !important;
		line-height: 1.3 !important;
	}

	body.page-id-8208 .vc_custom_1766400635216 a.vc_btn3.vc_btn3-block {
		display: flex !important;
width: 135px !important;
max-width: 135px;
height: 53px;
min-height: 53px;
		margin: 0 auto !important;
	}
}

/* Keep the same title offset on every news post below the sticky mobile header. */
@media screen and (max-width: 767px) {
	body.single-post .content-area h1.page_title_2 {
		margin-top: 24px !important;
	}
}

/* Show the Chi siamo testimonials only where its desktop sidebar is hidden. */
body.page-id-7636 .sl-about-mobile-testimonials {
	display: none !important;
}

@media screen and (max-width: 991px) {
	body.page-id-7636 .vc_custom_1662191510282 {
		margin-bottom: 24px !important;
	}

	body.page-id-7636 .sl-about-mobile-testimonials {
		display: block !important;
	}
}

/* Keep Footer 4 contact details readable on the dark footer background. */
#footer #custom_html-5 .custom-html-widget {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

#footer #custom_html-5 .custom-html-widget p {
	color: #dbe8f5 !important;
}

#footer #custom_html-5 .custom-html-widget a {
	color: #ffffff !important;
text-decoration: none !important;
}

#footer #custom_html-5 .custom-html-widget a:hover,
#footer #custom_html-5 .custom-html-widget a:focus {
	color: #ffea00 !important;
text-decoration: none !important;
}

#footer #custom_html-5 .sl-footer-mobile-icon {
display: inline-block;
width: 8px;
height: 13px;
margin-right: 4px;
border: 1.5px solid currentColor;
border-radius: 2px;
position: relative;
vertical-align: -2px;
box-sizing: border-box;
}

#footer #custom_html-5 .sl-footer-mobile-icon::after {
content: "";
position: absolute;
width: 2px;
height: 2px;
left: 50%;
bottom: 1px;
border-radius: 50%;
background: currentColor;
transform: translateX(-50%);
}

@media screen and (max-width: 767px) {
body.page-id-7868 .vc_custom_1663450374051 {
margin-top: 12px !important;
margin-bottom: 24px !important;
}

body.page-id-7868 .vc_custom_1663450374051 > .vc_col-lg-9 {
width: 100% !important;
}

body.page-id-7868 .vc_custom_1660828489797 {
margin: 0 0 8px !important;
}

body.page-id-7868 .vc_custom_1660828489797 h2 {
margin: 0 !important;
font-size: 30px !important;
line-height: 1.2 !important;
}

body.page-id-7868 .vc_custom_1694420890764 {
margin: 0 0 22px !important;
}

body.page-id-7868 .sl-contact-mobile-intro {
margin: 0 0 14px !important;
font-size: 16px;
line-height: 1.5;
}

body.page-id-7868 .sl-contact-mobile-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
margin: 0 0 14px;
}

body.page-id-7868 .sl-contact-mobile-action {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-height: 48px;
padding: 10px 12px;
border: 1px solid #002b5b;
border-radius: 8px;
background: #ffffff;
color: #002b5b !important;
font-size: 15px;
font-weight: 700;
line-height: 1.25;
text-align: center;
text-decoration: none !important;
}

body.page-id-7868 .sl-contact-mobile-action--primary {
background: #002b5b;
color: #ffffff !important;
}

body.page-id-7868 .sl-contact-mobile-action:focus,
body.page-id-7868 .sl-contact-mobile-action:hover {
border-color: #fde428;
background-color: #fde428;
color: #002b5b !important;
}

body.page-id-7868 .sl-contact-mobile-more {
padding: 12px 14px;
border: 1px solid #d9e0e8;
border-radius: 8px;
background: #f6f8fb;
}

body.page-id-7868 .sl-contact-mobile-more summary {
color: #002b5b;
cursor: pointer;
font-weight: 700;
}

body.page-id-7868 .sl-contact-mobile-more[open] summary {
margin-bottom: 10px;
}

body.page-id-7868 .sl-contact-mobile-more p:last-child {
margin-bottom: 0;
}

body.page-id-7868 .vc_custom_1660828602997 {
margin: 0 0 12px !important;
}

body.page-id-7868 .vc_custom_1660828602997 h3,
body.page-id-7868 .sl-contact-mobile-form h3,
body.page-id-7868 .sl-contact-mobile-departments h3 {
margin: 0 0 14px !important;
font-size: 21px !important;
line-height: 1.3 !important;
}

body.page-id-7868 .vc_custom_1660832339386 {
margin-right: 0 !important;
margin-left: 0 !important;
}

body.page-id-7868 .vc_custom_1660832339386 > .vc_column_container {
width: 100% !important;
padding-right: 0 !important;
padding-left: 0 !important;
}

body.page-id-7868 .vc_custom_1660832339386 .stm_contacts_widget.style_4 {
box-sizing: border-box;
margin: 0 0 12px !important;
padding: 16px;
border: 1px solid #dce3eb;
border-radius: 10px;
background: #f6f8fb;
}

body.page-id-7868 .vc_custom_1660832339386 .wpb_gmaps_widget {
margin-top: 4px;
}

body.page-id-7868 .vc_custom_1660832339386 .wpb_gmaps_widget iframe {
width: 100% !important;
height: 220px !important;
min-height: 220px !important;
border: 0;
border-radius: 10px;
}

body.page-id-7868 .sl-contact-mobile-departments {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 18px 0 22px !important;
}

body.page-id-7868 .sl-contact-mobile-departments > .vc_column_container {
box-sizing: border-box;
width: 100% !important;
margin: 0 !important;
	padding: 16px !important;
	border: 1px solid #dce3eb !important;
	border-top: 3px solid #fde428 !important;
	border-radius: 12px !important;
	background: #f6f8fb !important;
	box-shadow: 0 4px 16px rgba(0, 43, 91, 0.07);
}

body.page-id-7868 .sl-contact-mobile-departments > .vc_column_container > .vc_column-inner {
	padding: 0 !important;
}

body.page-id-7868 .sl-contact-mobile-department-card .vc_custom_heading {
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: 0 !important;
}

body.page-id-7868 .sl-contact-mobile-department-card .vc_custom_heading h3 {
	margin: 0 !important;
	padding: 0 !important;
	color: #002e5b !important;
	font-size: 19px !important;
	line-height: 1.3 !important;
}

body.page-id-7868 .sl-contact-mobile-department-card .stm_contact_info h5 {
	margin: 0 0 3px !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
}

body.page-id-7868 .sl-contact-mobile-department-card .stm_contact_job {
	margin: 0 0 12px !important;
	font-size: 14px;
}

body.page-id-7868 .sl-contact-mobile-department-card .stm_contact_row {
	margin-top: 8px;
	line-height: 1.5;
}

body.page-id-7868 .sl-contact-mobile-departments h3 {
	margin-bottom: 0 !important;
}

body.page-id-7868 .sl-contact-mobile-form {
margin: 20px 0 28px;
padding: 18px;
border: 1px solid #dce3eb;
border-top: 3px solid #fde428;
border-radius: 10px;
background: #f6f8fb;
}

body.page-id-7868 .sl-contact-mobile-form .wpcf7-form-control-wrap,
body.page-id-7868 .sl-contact-mobile-form input[type="text"],
body.page-id-7868 .sl-contact-mobile-form input[type="email"],
body.page-id-7868 .sl-contact-mobile-form textarea {
box-sizing: border-box;
width: 100% !important;
}

body.page-id-7868 .sl-contact-mobile-form input[type="text"],
body.page-id-7868 .sl-contact-mobile-form input[type="email"],
body.page-id-7868 .sl-contact-mobile-form textarea {
min-height: 48px;
padding: 12px;
border: 1px solid #cbd5e1 !important;
border-radius: 6px;
background: #ffffff !important;
font-size: 16px;
}

body.page-id-7868 .sl-contact-mobile-form textarea {
min-height: 120px;
}

body.page-id-7868 .sl-contact-mobile-form input[type="submit"] {
width: 100%;
min-height: 48px;
border: 0;
border-radius: 8px;
background: #002b5b !important;
color: #ffffff !important;
font-size: 16px;
font-weight: 700;
}
}

/* Keep homepage and single-news intro text aligned and limited to three lines. */
body.home .stm_news .news_list li .stm_the_excerpt,
body.single-post .sl-single-post-news .stm_news .news_list li .stm_the_excerpt,
body.page-id-7912 .stm_news .news_list li .stm_the_excerpt {
	display: block !important;
	box-sizing: border-box;
	min-height: 66px;
	max-height: 66px !important;
	overflow: hidden;
}

body.home .stm_news .news_list li .stm_the_excerpt p,
body.single-post .sl-single-post-news .stm_news .news_list li .stm_the_excerpt p,
body.page-id-7912 .stm_news .news_list li .stm_the_excerpt p {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	max-height: 66px;
	margin: 0 !important;
	overflow: hidden;
	line-height: 22px !important;
}

body.home .stm_news .news_list li h5 a,
body.single-post .sl-single-post-news .stm_news .news_list li h5 a,
body.page-id-7912 .stm_news .news_list li h5 a {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
line-clamp: 3;
min-height: 0;
max-height: 4.05em;
overflow: hidden;
line-height: 1.35;
}

body.home .stm_news .news_list li h5,
body.single-post .sl-single-post-news .stm_news .news_list li h5,
body.page-id-7912 .stm_news .news_list li h5 {
	margin: 0 0 14px !important;
}

body.home .stm_news .news_list li .sl-news-card-meta,
body.single-post .sl-single-post-news .stm_news .news_list li .sl-news-card-meta,
body.page-id-7912 .stm_news .news_list li .sl-news-card-meta {
display: flex;
flex-direction: column;
gap: 2px;
margin-top: 0;
margin-bottom: 12px;
color: #30344d;
font-size: 13px;
line-height: 18px;
}

body.home .stm_news .news_list li .sl-news-card-meta-item,
body.single-post .sl-single-post-news .stm_news .news_list li .sl-news-card-meta-item,
body.page-id-7912 .stm_news .news_list li .sl-news-card-meta-item {
display: grid;
grid-template-columns: 15px minmax(0, 1fr);
column-gap: 6px;
align-items: start;
min-height: 18px;
line-height: 18px;
}

body.home .stm_news .news_list li .sl-news-card-meta-item i,
body.single-post .sl-single-post-news .stm_news .news_list li .sl-news-card-meta-item i,
body.page-id-7912 .stm_news .news_list li .sl-news-card-meta-item i {
position: static;
width: 15px;
color: #ffea00 !important;
font-size: 14px;
line-height: 18px;
text-align: center;
}

body.home .stm_news .news_list li .date,
body.single-post .sl-single-post-news .stm_news .news_list li .date,
body.page-id-7912 .stm_news .news_list li .date {
display: grid;
grid-template-columns: 15px minmax(0, 1fr);
column-gap: 6px;
align-items: start;
margin-left: 0 !important;
margin-bottom: 0 !important;
padding: 0 !important;
text-indent: 0 !important;
line-height: 18px !important;
}

body.home .stm_news .news_list li .date:before,
body.single-post .sl-single-post-news .stm_news .news_list li .date:before,
body.page-id-7912 .stm_news .news_list li .date:before {
display: none !important;
}

body.home .stm_news .news_list li .sl-news-card-date-icon,
body.single-post .sl-single-post-news .stm_news .news_list li .sl-news-card-date-icon,
body.page-id-7912 .stm_news .news_list li .sl-news-card-date-icon {
display: block;
width: 15px;
color: #ffea00 !important;
font-size: 14px;
line-height: 18px;
text-align: center;
}

body.home .stm_news .news_list li .date .the_date,
body.single-post .sl-single-post-news .stm_news .news_list li .date .the_date,
body.page-id-7912 .stm_news .news_list li .date .the_date {
line-height: 18px !important;
}

body.home .stm_news .news_list li .sl-news-card-date-text,
body.single-post .sl-single-post-news .stm_news .news_list li .sl-news-card-date-text,
body.page-id-7912 .stm_news .news_list li .sl-news-card-date-text {
grid-column: 2;
line-height: 18px;
}

body.single-post .stm_post_details ul {
display: flex;
flex-direction: column;
gap: 2px;
margin-left: 0 !important;
padding-left: 0 !important;
}

body.single-post .stm_post_details ul li.post_date,
body.single-post .stm_post_details ul li.post_by,
body.single-post .stm_post_details ul li.post_cat {
display: grid;
grid-template-columns: 15px minmax(0, 1fr);
column-gap: 6px;
align-items: start;
margin: 0 !important;
padding: 0 !important;
text-indent: 0 !important;
line-height: 18px !important;
}

body.single-post .stm_post_details ul li.post_date > i,
body.single-post .stm_post_details ul li.post_by > i,
body.single-post .stm_post_details ul li.post_cat > i {
display: block;
width: 15px;
color: #ffea00 !important;
font-size: 14px;
line-height: 18px;
text-align: center;
}

body.single-post .stm_post_details ul li.post_date:before,
body.single-post .stm_post_details ul li.post_by:before,
body.single-post .stm_post_details ul li.post_cat:before {
display: none !important;
}

/* Render navigation breadcrumbs independently of the disabled title box. */
.sl-site-breadcrumbs {
	margin: 0 0 18px;
	padding: 11px 0;
	border-bottom: 1px solid #e5e8ed;
	color: #687887;
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.sl-site-breadcrumbs .breadcrumbs {
	margin: 0;
	padding: 0;
	color: inherit;
}

.sl-site-breadcrumbs a {
	color: #0b355f;
}

.sl-site-breadcrumbs a:hover,
.sl-site-breadcrumbs a:focus-visible {
	color: #0b355f;
	text-decoration: underline;
}

@media only screen and (max-width: 767px) {
	.sl-site-breadcrumbs {
		margin-bottom: 15px;
		padding: 9px 0;
		font-size: 12px;
		line-height: 1.55;
	}
}

body.single-post .stm_post_details ul li.post_by > span,
body.single-post .stm_post_details ul li.post_date > span,
body.single-post .stm_post_details ul li.post_cat > span {
line-height: 18px;
}

.sl-news-pagination {
margin: 32px 0 20px;
text-align: center;
}

.sl-news-pagination ul.page-numbers {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}

.sl-news-pagination ul.page-numbers li {
margin: 0;
padding: 0;
}

.sl-news-pagination .page-numbers a,
.sl-news-pagination .page-numbers span {
display: inline-flex;
min-width: 40px;
min-height: 40px;
align-items: center;
justify-content: center;
padding: 7px 11px;
border: 1px solid #d7dee6;
border-radius: 3px;
color: #0b355f;
line-height: 1.2;
text-decoration: none;
}

.sl-news-pagination .page-numbers a:hover,
.sl-news-pagination .page-numbers a:focus-visible,
.sl-news-pagination .page-numbers .current {
border-color: #002e5b;
background: #002e5b;
color: #fff;
}

.sl-news-pagination .page-numbers .dots {
border-color: transparent;
}

/* Match archive metadata text to the inherited color used by the date. */
body.page-id-7912 .stm_news .news_list li .sl-news-card-meta {
	color: inherit !important;
}

/* Desktop sidebar menus for the Chi siamo and Servizi sections. */
@media only screen and (min-width: 992px) {
	.stm_sidebar #menu-menu-sidebar-pagine-settore-home > li,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li {
		background-color: #002e5b !important;
		color: #fff !important;
	}

	.stm_sidebar #menu-menu-sidebar-pagine-settore-home > li > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li > a {
		background-color: #002e5b !important;
		color: #fff !important;
	}

	.stm_sidebar #menu-menu-sidebar-pagine-settore-home > li.current-menu-item > a,
	.stm_sidebar #menu-menu-sidebar-pagine-settore-home > li.current_page_item > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current-menu-item > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current_page_item > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current-menu-ancestor > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current-menu-parent > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current-page-ancestor > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current-page-parent > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current_page_ancestor > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li.current_page_parent > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li:hover > a,
	.stm_sidebar #menu-sidebar-menu-pagine-servizi > li > a:focus-visible {
		border-left-color: #fde428 !important;
	}

	.stm_sidebar #menu-menu-sidebar-pagine-settore-home > li:not(.current-menu-item):not(.current_page_item):hover > a {
		border-left-color: transparent !important;
	}

	.stm_sidebar #menu-menu-sidebar-pagine-settore-home > li > a:focus-visible {
		outline: 2px solid #fde428 !important;
		outline-offset: -2px;
	}
}

/* Separate the single-news title from section headings without changing heading semantics. */
body.single-post .content-area h1.page_title_2 {
	font-size: 40px !important;
	line-height: 1.15 !important;
	padding: 0 !important;
	margin-bottom: 24px !important;
}

body.single-post .content-area .without_vc .wpb_text_column h2:not(#sl-single-post-news-title) {
	font-size: 26px !important;
	line-height: 1.3 !important;
	padding: 0 !important;
	margin-top: 28px !important;
	margin-bottom: 14px !important;
}

@media screen and (max-width: 767px) {
	body.single-post .content-area h1.page_title_2 {
		font-size: 30px !important;
		line-height: 1.2 !important;
		margin-bottom: 20px !important;
	}

	body.single-post .content-area .without_vc .wpb_text_column h2:not(#sl-single-post-news-title) {
		font-size: 21px !important;
		line-height: 1.35 !important;
		margin-top: 24px !important;
		margin-bottom: 12px !important;
	}
}
