/*
Theme Name: Vicolocorto New
Theme URI: https://www.vicolocorto.com/
Description: Tema child di Estatik Project per Vicolo Corto Immobiliare.
Author: Vicolo Corto
Template: est-project
Version: 1.2.0
Text Domain: vicolocorto-new
*/

:root {
	--vci-blue: #071b35;
	--vci-green: #8dbb16;
	--vci-green-dark: #54720d;
	--vci-cream: #f7f8f5;
	--vci-ink: #172b3d;
	--vci-muted: #5f6d75;
	--vci-line: #e2e7e4;
	--vci-max: 1240px;
	--vci-shadow: 0 10px 32px rgb(7 27 53 / 8%);
	--vc-navy: var(--vci-blue);
	--vc-navy-soft: #122b51;
	--vci-navy-soft: var(--vc-navy-soft);
	--vc-lime: var(--vci-green);
	--vc-ink: var(--vci-ink);
	--vc-muted: var(--vci-muted);
	--vc-line: var(--vci-line);
	--vc-radius: 6px;
}
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body.vci-body {
	margin: 0;
	background: #fff;
	color: var(--vci-ink);
	font: 16px/1.65 "Segoe UI", Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.vci-body *, .vci-body *::before, .vci-body *::after { box-sizing: border-box; }
.vci-body :where(a) { color: var(--vci-blue); }
.vci-body :where(a:hover) { color: var(--vci-green-dark); }
.vci-body :is(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--vci-green-dark);
	outline-offset: 4px;
}
.vci-body [hidden] { display: none !important; }
.vci-body button { font-family: inherit; }
.vci-body :is(h1, h2, h3, h4, p, a, button, input, select, textarea, .es-wrap) { font-family: inherit; }
.vci-body .vci-profile-no-image .es-profile__info-wrap { width: 100%; flex: 1 0 100%; padding-left: 0; }
.vci-profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.vci-profile-logout {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	min-width: 64px; height: 46px; padding: 12px 19px; border: 1px solid var(--vci-blue);
	border-radius: 4px; background: var(--vci-blue); color: #fff !important;
	font-size: 14px; line-height: 22px; text-decoration: none;
}
.vci-reset-password-form .vci-password-field { position: relative; margin-bottom: 10px; }
.vci-reset-password-form .vci-password-field input { width: 100%; padding-right: 42px; }
.vci-reset-password-form .vci-password-toggle {
	position: absolute; top: 0; right: 0; display: grid; place-items: center;
	width: 40px; height: 100%; padding: 0; border: 0; background: transparent;
	color: var(--vci-muted); cursor: pointer;
}
.vci-reset-password-form .vci-password-toggle:hover,
.vci-reset-password-form .vci-password-toggle:focus-visible { background: transparent; color: var(--vci-blue); }
.vci-reset-password-form .vci-password-match-error { margin: 0 0 10px; color: #9b2c2c; font-size: 13px; }
.vci-container, .vci-header-inner, .vci-page-shell, .vci-body .vc-page-container {
	width: min(var(--vci-max), calc(100% - 64px));
	margin-inline: auto;
}
.vci-skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 100001;
	padding: 12px 20px; background: #fff; color: var(--vci-blue);
	transform: translateY(-180%);
}
.vci-skip-link:focus { transform: none; }
.vci-main { width: 100%; min-width: 0; margin: 0; padding: 0; }

/* One header for the homepage, archives, forms and property details. */
.vci-site-header {
	position: sticky; top: 0; z-index: 10000; isolation: isolate;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(16, 38, 74, .12);
}
.admin-bar .vci-site-header { top: 32px; }
.vci-home-body .vci-site-header {
	position: absolute; right: 0; left: 0;
	background: rgb(255 255 255 / 66%);
	border-bottom-color: rgb(255 255 255 / 55%);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.vci-header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.vci-brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.vci-brand .vci-logo { display: block; width: 210px; max-width: 100%; height: auto; }
.vci-main-nav { margin-left: auto; }
.vci-main-menu, .vci-main-menu ul { margin: 0; padding: 0; list-style: none; }
.vci-main-menu { display: flex; align-items: center; gap: 2px; }
.vci-main-menu li { position: relative; }
.vci-main-menu a {
	display: block; padding: 16px 10px; color: var(--vci-blue);
	font-size: 13px; font-weight: 600; line-height: 1.4;
	text-decoration: none; white-space: nowrap;
}
.vci-main-menu > li > a::after {
	position: absolute; right: 10px; bottom: 8px; left: 10px;
	height: 2px; background: var(--vci-green); content: '';
	transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.vci-main-menu > li:is(:hover, :focus-within, .current-menu-item, .current-menu-ancestor) > a::after { transform: scaleX(1); }
.vci-main-menu .sub-menu {
	position: absolute; top: calc(100% - 1px); left: 0; z-index: 1;
	visibility: hidden; min-width: 230px; padding: 8px;
	background: #fff; border-top: 2px solid var(--vci-green);
	box-shadow: var(--vci-shadow); opacity: 0; pointer-events: none;
	transition: opacity .12s ease, visibility 0s linear .12s;
}
.vci-main-menu > li:last-child .sub-menu { right: 0; left: auto; }
.vci-main-menu li:is(:hover, :focus-within, .is-expanded) > .sub-menu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0s;
}
.vci-main-menu li.is-dismissed > .sub-menu { visibility: hidden; opacity: 0; }
.vci-main-menu .sub-menu a { padding: 12px; white-space: normal; }
.vci-main-menu .sub-menu a:hover { background: var(--vci-cream); }
.vci-phone {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	flex: 0 0 auto; min-height: 44px; padding: 10px 14px;
	border: 1px solid var(--vci-line); border-radius: 3px;
	font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.vci-body .vci-phone:hover { border-color: var(--vci-green); color: var(--vci-blue); }
.vci-menu-toggle, .vci-submenu-toggle { display: none; }

/* The hero image participates in loading prioritisation and reserves its space. */
.vci-hero { position: relative; display: grid; place-items: center; min-height: 620px; min-height: clamp(540px, 72svh, 740px); background: var(--vci-blue); }
.vci-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.vci-hero::before {
	position: absolute; inset: 0; z-index: 1; content: '';
	background: linear-gradient(180deg, rgb(7 27 53 / 24%), rgb(7 27 53 / 53%) 50%, rgb(7 27 53 / 42%));
}
.vci-hero-content { position: relative; z-index: 2; padding-block: 108px 64px; text-align: center; color: #fff; }
.vci-eyebrow, .vci-kicker {
	margin: 0 0 14px; color: var(--vci-green-dark);
	font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase;
}
.vci-hero .vci-eyebrow { color: #fff; letter-spacing: .24em; }
.vci-hero h1 { margin: 0; color: #fff; font-size: clamp(40px, 4.6vw, 68px); font-weight: 350; letter-spacing: -.035em; line-height: 1.12; }
.vci-hero h1 span { color: #d4ed95; }
.vci-hero-lead { margin: 24px auto 0; color: #fff; font-size: 18px; line-height: 1.7; }
.vci-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.vci-body .vci-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 20px;
	min-height: 50px; padding: 13px 24px; border: 1px solid var(--vci-green); border-radius: 3px;
	background: var(--vci-green); color: var(--vci-blue);
	font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.vci-body .vci-button:hover { border-color: #527a0b; background: #527a0b; color: #fff; }
.vci-body .vci-button--outline { border-color: rgb(255 255 255 / 75%); background: rgb(7 27 53 / 20%); color: #fff; }
.vci-body .vci-button--outline:hover { border-color: #fff; background: #fff; color: var(--vci-blue); }
.vci-hero :is(a, button):focus-visible { outline-color: #fff; }
.vci-body .vci-scroll-link {
	position: absolute; bottom: 24px; left: calc(50% - 22px); z-index: 2;
	display: grid; place-items: center; width: 44px; height: 44px;
	border: 1px solid rgb(255 255 255 / 50%); border-radius: 50%;
	color: #fff; font-size: 22px; text-decoration: none;
}

/* Estatik renders its fields directly inside form, not an es-search__fields wrapper. */
.vci-search-section { padding-block: 32px; background: var(--vci-cream); border-bottom: 1px solid var(--vci-line); scroll-margin-top: 16px; }
.vci-search-card.vc-search-card { padding: 26px 28px; border: 1px solid var(--vci-line); border-radius: 6px; background: #fff; box-shadow: none; }
.vci-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.vci-search-heading h2 { margin: 0; color: var(--vci-blue); font-size: 22px; font-weight: 500; line-height: 1.3; }
.vci-search-card.vc-search-card .es-search__wrapper form { display: grid !important; grid-template-columns: .9fr 1.15fr 1fr 1fr 1.4fr auto; gap: 14px; align-items: end; }
.vci-body :is(.vci-search-card, .vc-internal-search, .vc-advanced-search-page .vc-content-card) form .es-field__label {
	margin-bottom: 8px;
	padding: 0;
	color: var(--vci-muted) !important;
}
.vci-body :is(.vci-search-card, .vc-internal-search, .vc-advanced-search-page .vc-content-card) form .es-field__label label {
	color: var(--vci-muted) !important;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}
.vci-search-card form .es-search__field { width: auto !important; }
.vci-search-card form .es-field__wrap > input,
.vci-search-card form .es-field__wrap > select,
.vci-search-card form .es-field__range input { border-radius: 3px !important; font-size: 14px !important; }
.vci-search-card form .select2-container :is(.select2-selection--single, .select2-selection--multiple) { border-radius: 3px !important; }
.vci-search-card form .es-search__buttons { width: auto; min-width: 90px; }
.vci-search-card form .es-search__buttons .es-button { min-height: 46px; border-radius: 3px; }
.vci-body .vci-search-card form .es-search__buttons .es-button-orange-corner { width: 100%; padding-inline: 18px; background: var(--vci-blue) !important; color: #fff !important; font-family: inherit; font-size: 14px; }
.vci-body .vci-search-card form .es-search__buttons .es-button-orange-corner:hover,
.vci-body .vci-search-card form .es-search__buttons .es-button-orange-corner:focus-visible { background: var(--vci-navy-soft) !important; color: #fff !important; }
.vci-body :is(.vc-internal-search form, .vci-search-card form, .vc-advanced-search-page .vc-content-card form) .es-button { border-radius: 3px !important; }
.vci-body :is(.vci-search-card, .vc-internal-search, .vc-advanced-search-page .vc-content-card) form .es-field__wrap > :is(input, select),
.vci-body :is(.vci-search-card, .vc-internal-search, .vc-advanced-search-page .vc-content-card) form .es-field__range input,
.vci-body :is(.vci-search-card, .vc-internal-search, .vc-advanced-search-page .vc-content-card) form .select2-container :is(.select2-selection--single, .select2-selection--multiple),
.vci-body :is(.vci-search-card, .vc-internal-search, .vc-advanced-search-page .vc-content-card) form .es-search__buttons .es-button {
	box-sizing: border-box;
	height: 46px !important;
	min-height: 46px !important;
}
.vci-search-card form .es-search__messages:empty { display: none; }
.vci-location-validation-message { display: none; margin: 6px 0 0; color: #9b2c2c; font-size: 11px; line-height: 1.3; }
/* Estatik already includes the WordPress admin-bar offset in Select2's
 * calculated position on this theme, so its extra margin shifts the list down. */
.vci-body.admin-bar .es-select2__dropdown--positioning { margin-top: 0; }
.vci-text-link { font-size: 13px; font-weight: 650; text-decoration: none; }
.vci-text-link span { margin-left: 10px; color: var(--vci-green-dark); }
.vci-section { padding-block: 80px; }
.vci-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.vci-section h2, .vci-page-shell h1 { margin: 0; color: var(--vci-blue); font-size: clamp(30px, 3.1vw, 44px); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
.vci-section-head--center { display: block; text-align: center; margin-bottom: 48px; }
.vci-property-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.vci-property-links > a { padding-block: 10px; font-size: 14px; text-decoration: none; }
.vci-property-links > a:not(.vci-text-link) { border-bottom: 2px solid var(--vci-green); }

/* Shared property data and controls; stable image ratios and compact spacing. */
.vci-featured-listings .es-listing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.vci-featured-listings .es-listing > article.properties { border: 1px solid var(--vci-line); border-radius: 4px; box-shadow: none; }
.vci-featured-listings article.properties .es-property-thumbnail { flex: 0 0 auto; height: auto; aspect-ratio: 4 / 3; }
.vci-featured-listings article.properties .es-thumbnail { position: relative; }
.vci-featured-listings article.properties .es-property-description { padding: 20px !important; }
.vci-featured-listings article.properties .es-property-description h2 { font-family: inherit; font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.vci-featured-listings article.properties .es-property-description h2 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vci-featured-listings article.properties .es-price { margin-top: 12px; font-size: 20px; font-weight: 650; }
.vci-featured-listings article.properties .es-bottom-info { padding: 14px 0 0 !important; margin: 0 !important; }
.vci-property-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vci-body :is(.vc-featured-listings, .vc-property-results) .es-thumbnail > a:not(.js-es-wishlist-button) { display: block; width: 100%; height: 100%; }
.vci-body :is(.vc-featured-listings, .vc-property-results) .es-thumbnail > a:not(.js-es-wishlist-button),
.vci-body :is(.vc-featured-listings, .vc-property-results) .es-thumbnail > a:not(.js-es-wishlist-button) img { cursor: pointer; }
.vci-body :is(.vc-featured-listings, .vc-property-results) article.properties .es-thumbnail img.vci-property-image { width: 100%; height: 100%; object-fit: cover; }
.vci-body :is(.vc-featured-listings, .vc-property-results) article.properties h2 a { word-break: normal; overflow-wrap: anywhere; }
article.properties:hover .vci-property-image { transform: scale(1.035); }
.vci-featured-listings .es-pagination { display: none; }

.vci-agency { background: var(--vci-cream); }
.vci-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.vci-intro-label { padding: clamp(28px, 4vw, 56px); border-radius: 4px; background: var(--vci-blue); color: #fff; }
.vci-intro-label .vci-kicker { color: #c4df82; }
.vci-intro-statement { margin: 24px 0; font-size: clamp(28px, 3vw, 42px); font-weight: 350; letter-spacing: -.025em; line-height: 1.35; }
.vci-intro-statement span { color: #c4df82; }
.vci-intro-line { display: block; width: 56px; height: 2px; margin: 30px 0; background: var(--vci-green); }
.vci-intro-label > p:last-child { margin: 0; color: #d1dbe4; font-size: 14px; }
.vci-intro-copy > p:not(.vci-kicker) { margin: 22px 0; color: var(--vci-muted); }
.vci-intro-copy .vci-text-link { display: inline-block; margin-top: 4px; }
.vci-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 44px; }
.vci-service { text-align: center; }
.vci-service > img { display: block; width: 76px; height: 76px; object-fit: contain; margin: 0 auto 22px; }
.vci-service h3 { max-width: 290px; margin: 0 auto 14px; font-size: 20px; font-weight: 550; line-height: 1.35; }
.vci-service h3 a { text-decoration: none; }
.vci-service p { margin: 0; color: var(--vci-muted); font-size: 15px; line-height: 1.8; }
.vci-method-section { background: var(--vci-cream); }
.vci-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.vci-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; font-size: 14px; font-weight: 550; line-height: 1.5; }
.vci-step-number { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--vci-green); border-radius: 50%; background: var(--vci-cream); color: var(--vci-green-dark); font-size: 20px; }
.vci-step:not(:last-child)::after { position: absolute; top: 28px; left: calc(50% + 36px); width: calc(100% - 48px); height: 1px; background: #cedbb3; content: ''; }
.vci-valuation { background: var(--vci-blue); }
.vci-valuation-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.vci-valuation .vci-kicker { color: #c4df82; }
.vci-valuation h2 { color: #fff; }
.vci-valuation p:not(.vci-kicker) { max-width: 550px; margin: 20px 0 0; color: #d1dbe4; }
.vci-valuation .vci-button { flex-shrink: 0; }
.vci-valuation .vci-button:hover { background: #527a0b; color: #fff; border-color: #527a0b; }
.vci-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.vci-post-card { padding: 24px; border: 1px solid var(--vci-line); border-radius: 4px; }
.vci-post-card img { max-width: 100%; height: auto; }
.vci-post-card time { display: block; margin-block: 16px 12px; color: var(--vci-muted); font-size: 12px; }
.vci-post-card :is(h2, h3) { margin: 0 0 16px; font-size: 23px; line-height: 1.35; }
.vci-post-card :is(h2, h3) a { text-decoration: none; }
.vci-post-card p { margin: 0; color: var(--vci-muted); font-size: 15px; }

/* Preserve the existing form, map and property layouts within the same design system. */
.vci-body .vc-page-container { padding-block: 36px 80px; }
.vci-body .vc-breadcrumb { flex-wrap: wrap; overflow-wrap: anywhere; }
.vci-body .vc-page-heading h1 { font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
.vci-body .vc-eyebrow { color: var(--vci-green-dark); }
.vci-body .vc-detail-summary .vc-detail-title { font-size: 27px; font-weight: 550; line-height: 1.35; }
.vci-body .vc-detail-contact-actions a.vc-detail-contact-button-dark { color: #fff !important; }
.vci-body .vc-property-single-page .vc-detail-content .post__tabs {
	display: flex !important; flex-wrap: wrap; justify-content: flex-start;
	width: 100%; min-width: 0; gap: 4px; margin: 0 !important; padding: 0 !important;
}
.vci-body .vc-property-single-page .vc-detail-content .post__tabs li {
	flex: 0 0 auto; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0;
}
.vci-body .vc-property-single-page .vc-detail-content .post__tabs a {
	min-height: 46px; padding: 12px 18px; color: var(--vci-blue) !important;
	font-size: 14px; font-weight: 600; line-height: 1.5;
}
.vci-body .vc-property-single-page .vc-detail-content .post__tabs a:is(:hover, :focus-visible, .active) { border-bottom-color: var(--vci-green); }
.vci-body .vc-detail-request .es-request-widget-wrap { padding: 20px; background: #fff; }
.vci-body .vc-detail-request .es-privacy-check { display: block !important; text-align: left; font-size: 12px; line-height: 1.6; }
.vci-body .vc-detail-request .es-privacy-check input { display: inline-block; width: auto; margin-right: 8px; vertical-align: middle; }
.vci-body .vc-detail-request .es-privacy-check a { display: inline; }
.vci-body .vc-single-sidebar :is(input[type="submit"], button.vc-mortgage-submit, button.vc-mortgage-schedule-toggle) { background: var(--vci-blue) !important; color: #fff !important; }
.vci-body .vc-content-card { box-shadow: none; }
.vci-body .es-agent-register__wrap .es-register-optional {
	color: var(--vci-muted);
	font-size: .88em;
	font-weight: 400;
}

/* Keep green controls green on hover, with enough contrast for their text. */
.vci-body :is(.es-btn-orange, .es-btn-green) {
	border-color: var(--vci-green) !important;
	background: var(--vci-green) !important;
	color: #fff !important;
	font-weight: 400 !important;
}
.vci-body :is(.es-btn-orange, .es-btn-green):is(:hover, :focus-visible) {
	border-color: #527a0b !important;
	background: #527a0b !important;
	color: #fff !important;
}
.vci-body :is(input[type="submit"], button, a).es-btn:is(.es-btn-orange, .es-btn-green):is(:hover, :focus-visible) {
	border-color: #527a0b !important;
	background: #527a0b !important;
	color: #fff !important;
}
.vci-body :is(.es-btn-orange-bordered, .es-btn-green-bordered) {
	border-color: var(--vci-green) !important;
	background: transparent !important;
	color: var(--vci-green-dark) !important;
	font-weight: 400 !important;
}
.vci-body :is(.es-btn-orange-bordered, .es-btn-green-bordered):is(:hover, :focus-visible) {
	border-color: #527a0b !important;
	background: #527a0b !important;
	color: #fff !important;
}
.vci-body .vci-profile-logout {
	border-color: var(--vci-blue) !important;
	background: var(--vci-blue) !important;
	color: #fff !important;
	border-radius: 4px !important;
}
.vci-body .vci-profile-logout:is(:hover, :focus-visible) {
	border-color: var(--vci-navy-soft) !important;
	background: var(--vci-navy-soft) !important;
	color: #fff !important;
}

/* Blue controls use the same darker blue on hover instead of switching hue. */
.vci-body :is(.es-btn-blue, .es-button-green-corner):is(:hover, :focus-visible) {
	border-color: var(--vci-navy-soft) !important;
	background: var(--vci-navy-soft) !important;
	color: #fff !important;
}
.vci-body :is(input[type="submit"], button, a).es-btn:is(.es-btn-blue, .es-btn-blue-bordered):is(:hover, :focus-visible) {
	border-color: var(--vci-navy-soft) !important;
	background: var(--vci-navy-soft) !important;
	color: #fff !important;
}
.vci-body .vc-single-sidebar :is(input[type="submit"], button.vc-mortgage-submit, button.vc-mortgage-schedule-toggle):is(:hover, :focus-visible) {
	border-color: var(--vci-navy-soft) !important;
	background: var(--vci-navy-soft) !important;
	color: #fff !important;
}

/* Keep operational controls readable without the heavy weight from the
 * legacy stylesheet: search/save, contact and calculation actions. */
.vci-body :is(
	.vci-button,
	.vci-phone,
	.vci-search-card form .es-button,
	.vc-internal-search form .es-button,
	.vc-advanced-search-page .vc-content-card .es-button,
	.vc-detail-contact-button,
	.vc-detail-favorite,
	.vc-detail-favorite-label,
	.vc-detail-request .es-request-widget-wrap input[type="submit"],
	.vc-mortgage-submit,
	.vc-mortgage-schedule-toggle,
	.vc-single-sidebar input[type="submit"],
	.vc-single-sidebar button,
	.vc-single-sidebar .theme-button,
	.vc-property-results .modifica-ricerca,
	.vc-services-page .vc-content-card .compila-modulo
) {
	font-weight: 400 !important;
}

.vci-body .vc-internal-search .es-search__wrapper form { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vci-body .vc-internal-search form .es-search__field { width: auto !important; }
.vci-body .vc-internal-search form .es-search__buttons { justify-content: stretch; }
.vci-body .es-property-label-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.vci-body .es-property-label-wrap .es-property-label { margin: 0; }
.vci-body .vc-property-results .es-property-label-venduto,
.vci-body .vc-property-results .es-property-label-locato { background: #c40808 !important; color: #fff !important; }
.vci-body .vc-content-card :is(h2, h3) { font-weight: 500; line-height: 1.35; }
.vci-body .vc-detail-gallery, .vci-body [id^="vc-detail-"] { scroll-margin-top: 112px; }

.vci-body .vc-detail-gallery .post__gallery-image-pager .slick-slide,
.vci-body .vc-detail-gallery .post__gallery-image-pager .slick-slide > div,
.vci-body .vc-detail-gallery .post__gallery-image-pager .slick-slide[style] {
	cursor: pointer;
}
.vci-page-shell { padding-block: 56px 80px; }
.vci-page-content { max-width: 860px; }
.vci-page-content img { max-width: 100%; height: auto; }
.vci-page-shell h1 { margin-bottom: 30px; }
.vci-page-content > article + article { margin-top: 24px; }

/* Original logo and configured contact details stay legible on every page. */
.vci-footer { padding: 64px 0 24px; border-top: 1px solid var(--vci-line); background: #fff; color: var(--vci-muted); }
.vci-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; padding-bottom: 44px; }
.vci-footer-brand p { margin: 22px 0; font-size: 15px; }
.vci-footer h2 { margin: 0 0 20px; color: var(--vci-blue); font-size: 17px; font-weight: 600; line-height: 1.4; }
.vci-footer-links, .vci-footer-legal { margin: 0; padding: 0; list-style: none; }
.vci-footer-links li + li { margin-top: 9px; }
.vci-footer a { font-size: 14px; text-decoration: none; }
.vci-footer-contact { display: flex; flex-direction: column; align-items: start; gap: 12px; font-style: normal; }
.vci-footer-contact a { overflow-wrap: anywhere; }
.vci-footer-contact a:first-child { font-size: 19px; font-weight: 600; }
.vci-footer-bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--vci-line); font-size: 12px; }
.vci-footer-bottom a { font-size: 12px; }
.vci-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 1199px) {
	.vci-header-inner { gap: 16px; }
	.vci-brand .vci-logo { width: 180px; }
	.vci-main-menu a { padding-inline: 8px; font-size: 12px; }
	.vci-phone { padding-inline: 10px; font-size: 12px; }
	.vci-search-card.vc-search-card .es-search__wrapper form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vci-search-card form .es-search__buttons { justify-content: stretch; }
}
@media (max-width: 1023px) {
	.vci-header-inner { min-height: 80px; flex-wrap: wrap; }
	.vci-phone { margin-left: auto; }
	.vci-main-nav { flex-basis: 100%; order: 4; margin: 0; }
	.vci-main-menu { flex-wrap: wrap; padding-bottom: 12px; }
	.vci-nav-ready .vci-menu-toggle { display: block; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
	.vci-menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--vci-blue); transition: transform .15s ease; }
	.vci-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
	.vci-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.vci-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
	.vci-nav-ready .vci-main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100dvh - 112px); overflow-y: auto; padding: 12px 24px 24px; border-top: 1px solid var(--vci-line); border-bottom: 1px solid var(--vci-line); background: #fff; box-shadow: var(--vci-shadow); }
	.vci-nav-ready .vci-main-nav.is-open { display: block; }
	.vci-nav-ready .vci-main-menu { display: block; max-width: 640px; margin: auto; padding: 0; }
	.vci-main-menu a { min-height: 46px; padding: 13px 12px; font-size: 15px; white-space: normal; }
	.vci-main-menu > li > a::after { display: none; }
	.vci-main-menu .sub-menu { position: static; visibility: visible; opacity: 1; min-width: 0; padding: 0 0 8px 14px; border: 0; box-shadow: none; }
	.vci-nav-ready .vci-main-menu .sub-menu { display: none; }
	.vci-nav-ready .vci-main-menu li.is-expanded > .sub-menu { display: block; }
	.vci-nav-ready .menu-item-has-children > a { padding-right: 56px; }
	.vci-nav-ready .vci-submenu-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; color: var(--vci-blue); font-size: 20px; cursor: pointer; }
	.vci-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
	.vci-featured-listings .es-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.vci-intro { gap: 36px; }
	.vci-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
	.vci-step:nth-child(3)::after { display: none; }
	.vci-footer-grid { gap: 32px; }
}
@media (max-width: 767px) {
	html { scroll-padding-top: 88px; }
	.vci-container, .vci-header-inner, .vci-page-shell, .vci-body .vc-page-container { width: calc(100% - 40px); }
	.vci-header-inner { min-height: 76px; gap: 12px; }
	.vci-brand .vci-logo { width: 176px; }
	.admin-bar .vci-site-header { top: 46px; }
	.vci-phone { min-width: 42px; width: 42px; padding: 10px; }
	.vci-phone span { display: none; }
	.vci-hero { min-height: 540px; }
	.vci-hero-content { padding-block: 84px 62px; }
	.vci-hero h1 { font-size: clamp(36px, 7vw, 50px); }
	.vci-hero-lead { font-size: 16px; }
	.vci-hero-actions { gap: 12px; }
	.vci-search-section { padding-block: 24px; }
	.vci-search-card.vc-search-card { padding: 22px; }
	.vci-search-heading { align-items: start; flex-direction: column; gap: 12px; }
	.vci-search-card.vc-search-card .es-search__wrapper form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vci-section { padding-block: 56px; }
	.vci-section-head { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
	.vci-section-head--center { display: block; margin-bottom: 36px; }
	.vci-property-links { gap: 16px; }
	.vci-intro { grid-template-columns: 1fr; gap: 32px; }
	.vci-intro-label { padding: 32px; }
	.vci-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
	.vci-service h3 { font-size: 18px; }
	.vci-service p { font-size: 14px; }
	.vci-valuation-inner { flex-direction: column; align-items: start; gap: 28px; }
	.vci-post-grid { grid-template-columns: 1fr; }
	.vci-footer { padding-top: 44px; }
	.vci-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
	.vci-footer-brand { grid-column: 1 / -1; }
	.vci-footer-bottom { align-items: start; flex-direction: column; }
	.vci-body .vc-page-container { padding-block: 24px 56px; }
	.vci-body .vc-content-card { padding: 22px; }
	.vci-body .vc-detail-accessible-title {
		position: static; width: auto; height: auto; margin: 0 0 22px; padding: 0;
		overflow: visible; clip: auto; white-space: normal; font-size: 28px; font-weight: 500; line-height: 1.3;
	}
	.vci-body .vc-detail-summary .vc-detail-title { display: none; }
	.vci-body .vc-internal-search .es-search__wrapper form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
	.vci-hero-actions { flex-direction: column; align-items: stretch; padding-inline: 8px; }
	.vci-hero-actions .vci-button { font-size: 13px; padding-inline: 14px; }
	.vci-hero .vci-eyebrow { font-size: 11px; letter-spacing: .16em; }
	.vci-search-card.vc-search-card { padding: 20px 16px; }
	.vci-search-card.vc-search-card .es-search__wrapper form { grid-template-columns: 1fr; }
	.vci-search-card form .es-search__buttons { grid-column: 1 / -1; }
	.vci-search-card form .es-field__wrap > input, .vci-search-card form .es-field__range input { font-size: 16px !important; }
	.vci-featured-listings .es-listing { grid-template-columns: 1fr; }
	.vci-service-grid { grid-template-columns: 1fr; gap: 36px; }
	.vci-service { max-width: 330px; margin-inline: auto; }
	.vci-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.vci-step::after { display: none; }
	.vci-footer-grid { grid-template-columns: 1fr; }
	.vci-body .vc-internal-search .es-search__wrapper form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .admin-bar .vci-site-header { top: 0; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.vci-body *, .vci-body *::before, .vci-body *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Profile actions use one shared size/typography, with semantic button colors. */
.vci-body .vci-profile-actions :is(.es-save-profile, .vci-profile-logout) {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
	height: 46px; min-height: 46px; padding: 12px 19px !important;
	border: 1px solid transparent !important; border-radius: 4px !important;
	font-size: 14px !important; font-weight: 400 !important; line-height: 22px !important;
	text-decoration: none;
}
.vci-body .vci-profile-actions .es-save-profile {
	border-color: var(--vci-green) !important;
	background: var(--vci-green) !important;
	color: #fff !important;
}
.vci-body .vci-profile-actions .es-save-profile:is(:hover, :focus-visible) {
	border-color: #527a0b !important;
	background: #527a0b !important;
	color: #fff !important;
}
.vci-body .vci-profile-actions .vci-profile-logout {
	border-color: var(--vci-blue) !important;
	background: var(--vci-blue) !important;
	color: #fff !important;
}
.vci-body .vci-profile-actions .vci-profile-logout:is(:hover, :focus-visible) {
	border-color: var(--vci-navy-soft) !important;
	background: var(--vci-navy-soft) !important;
	color: #fff !important;
}
.vci-body a.vci-profile-logout:hover,
.vci-body a.vci-profile-logout:focus,
.vci-body a.vci-profile-logout:active {
	border-color: #122b51 !important;
	background: #122b51 !important;
	background-color: #122b51 !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff !important;
}
.vci-body .vci-profile-actions .es-save-profile { cursor: pointer !important; }
