/*
Theme Name: Ville Virbo 14
Theme URI: http://ville-virbo-14.local
Description: Tema su misura per il progetto Ville Virbo 14 — estetica premium mediterraneo contemporaneo. Child theme di Twenty Twenty-Five.
Author: Selicato Francesco Impresa di Costruzioni / BRUSCHI ESPOSITO
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Template: twentytwentyfive
Text Domain: ville-virbo-14
*/

/* ============================================================
   VILLE VIRBO 14 — DESIGN TOKENS
   ============================================================ */
:root {
	--vv-bg: #F6F1EA;
	--vv-surface: #FBF8F4;
	--vv-surface-2: #EFE7DE;
	--vv-text: #26231F;
	--vv-text-2: #6F6A63;
	--vv-border: #DDD3C8;
	--vv-accent: #5E6F5A;
	--vv-accent-hover: #495743;
	--vv-terracotta: #A56D4F;

	--vv-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--vv-sans: "Satoshi", "Work Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--vv-container: 1200px;
	--vv-gutter: clamp(1.25rem, 4vw, 4rem);
	--vv-radius: 4px;
}

/* ============================================================
   BASE
   ============================================================ */
body.vv-page {
	background: var(--vv-bg);
	color: var(--vv-text);
	font-family: var(--vv-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	margin: 0;
}

.vv-page h1, .vv-page h2, .vv-page h3, .vv-page h4 {
	font-family: var(--vv-serif);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--vv-text);
	margin: 0 0 0.5em;
}

.vv-page p { margin: 0 0 1.1em; }
.vv-page p:last-child { margin-bottom: 0; }
.vv-page a { color: var(--vv-accent); text-decoration: none; }
.vv-page a:hover { color: var(--vv-accent-hover); }
.vv-page img { max-width: 100%; height: auto; display: block; }

.vv-container {
	max-width: var(--vv-container);
	margin-inline: auto;
	padding-inline: var(--vv-gutter);
}

.vv-eyebrow {
	font-family: var(--vv-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--vv-accent);
	margin: 0 0 1.1rem;
}

.vv-lead {
	font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.45rem);
	line-height: 1.55;
	color: var(--vv-text);
}

.vv-muted { color: var(--vv-text-2); }

/* ============================================================
   BUTTONS
   ============================================================ */
.vv-btn,
.vv-page .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--vv-sans);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	padding: 0.85rem 1.6rem;
	border-radius: var(--vv-radius);
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	cursor: pointer;
	line-height: 1;
}
.vv-btn-primary,
.vv-page .is-style-fill .wp-block-button__link {
	background: var(--vv-accent);
	color: var(--vv-surface);
	border: 1px solid var(--vv-accent);
}
.vv-btn-primary:hover,
.vv-page .is-style-fill .wp-block-button__link:hover {
	background: var(--vv-accent-hover);
	border-color: var(--vv-accent-hover);
	color: var(--vv-surface);
}
.vv-btn-ghost,
.vv-page .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--vv-text);
	border: 1px solid var(--vv-border);
}
.vv-btn-ghost:hover,
.vv-page .is-style-outline .wp-block-button__link:hover {
	border-color: var(--vv-accent);
	color: var(--vv-accent);
	background: transparent;
}

/* ============================================================
   HEADER
   ============================================================ */
.vv-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--vv-bg) 88%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--vv-border);
}
.vv-site-header .vv-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}
.vv-logo {
	font-family: var(--vv-serif);
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	color: var(--vv-text);
	white-space: nowrap;
}
.vv-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.vv-nav a.vv-nav-link {
	font-size: 0.92rem;
	color: var(--vv-text);
	letter-spacing: 0.01em;
}
.vv-nav a.vv-nav-link:hover { color: var(--vv-accent); }
.vv-header-actions { display: flex; align-items: center; gap: 1.1rem; }
.vv-lang { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--vv-text-2); }
.vv-lang a { color: var(--vv-text-2); }
.vv-lang a.vv-lang-active, .vv-lang a:hover { color: var(--vv-text); font-weight: 500; }
.vv-lang .sep { opacity: 0.5; }

.vv-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.vv-burger span { display: block; width: 24px; height: 2px; background: var(--vv-text); margin: 5px 0; transition: .2s; }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.vv-section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.vv-section.is-surface { background: var(--vv-surface); }
.vv-section.is-surface-2 { background: var(--vv-surface-2); }
.vv-section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.vv-section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem); }

.vv-divider { height: 1px; background: var(--vv-border); border: 0; margin: 0; }

/* ============================================================
   HERO
   ============================================================ */
.vv-hero { position: relative; background: var(--vv-surface-2); overflow: hidden; }
.vv-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: stretch;
	gap: 0;
	min-height: min(82vh, 760px);
}
.vv-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.5rem, 5vw, 5.5rem) var(--vv-gutter);
}
.vv-hero h1 {
	font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.25rem);
	line-height: 1.02;
	margin: 0.2em 0 0.35em;
}
.vv-hero-text {
	font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.35rem);
	color: var(--vv-text);
	max-width: 30ch;
	margin-bottom: 2rem;
}
.vv-hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.25rem; }
.vv-hero-bullets { display: flex; flex-direction: column; gap: 0.65rem; padding: 0; margin: 0; list-style: none; }
.vv-hero-bullets li {
	position: relative;
	padding-left: 1.6rem;
	font-size: 0.98rem;
	color: var(--vv-text-2);
}
.vv-hero-bullets li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.55em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--vv-accent);
}
.vv-hero-media {
	background: linear-gradient(120deg, #d9cdbd, #c8b9a6);
	position: relative;
}
.vv-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   INTRO EDITORIALE
   ============================================================ */
.vv-intro .vv-container { max-width: 920px; }
.vv-intro p {
	font-family: var(--vv-serif);
	font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem);
	line-height: 1.32;
	letter-spacing: -0.01em;
	color: var(--vv-text);
}

/* ============================================================
   TWO-COLUMN TEXT/IMAGE
   ============================================================ */
.vv-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vv-split.is-reverse .vv-split-media { order: -1; }
.vv-split-copy h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); margin-bottom: 1rem; }
.vv-split-copy h3 { font-size: 1.4rem; margin-top: 1.5rem; }
.vv-split-copy .vv-subtitle {
	font-family: var(--vv-sans);
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vv-accent);
	margin: 1.75rem 0 0.75rem;
}

/* feature list */
.vv-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.vv-list li {
	position: relative;
	padding-left: 1.75rem;
	color: var(--vv-text);
	font-size: 1rem;
}
.vv-list li::before {
	content: "";
	position: absolute; left: 0; top: 0.45em;
	width: 9px; height: 9px;
	border: 1.5px solid var(--vv-accent);
	border-radius: 2px;
	transform: rotate(45deg);
}

/* image placeholder for renders */
.vv-render {
	position: relative;
	border-radius: var(--vv-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background:
		repeating-linear-gradient(135deg, rgba(94,111,90,.05) 0 12px, transparent 12px 24px),
		var(--vv-surface-2);
	border: 1px solid var(--vv-border);
	display: flex;
	align-items: center;
	justify-content: center;
}
.vv-render::after {
	content: attr(data-label);
	font-family: var(--vv-sans);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vv-text-2);
}
.vv-render img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vv-render.is-tall { aspect-ratio: 3 / 4; }
.vv-render.is-wide { aspect-ratio: 16 / 9; }

/* ============================================================
   PIANTA TIPO
   ============================================================ */
.vv-plan-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.vv-plan-data { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--vv-border); }
.vv-plan-data .row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--vv-border);
	font-size: 1rem;
}
.vv-plan-data .row .label { color: var(--vv-text); }
.vv-plan-data .row .val { color: var(--vv-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================================================
   IMPIANTI E DOTAZIONI
   ============================================================ */
.vv-systems-intro { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.vv-systems-grid { columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
.vv-systems-grid ul { list-style: none; margin: 0; padding: 0; }
.vv-systems-grid li {
	break-inside: avoid;
	position: relative;
	padding: 0.9rem 0 0.9rem 1.75rem;
	border-bottom: 1px solid var(--vv-border);
	font-size: 0.98rem;
	color: var(--vv-text);
}
.vv-systems-grid li::before {
	content: "";
	position: absolute; left: 0; top: 1.25em;
	width: 10px; height: 2px;
	background: var(--vv-accent);
}

/* ============================================================
   CONTATTI
   ============================================================ */
.vv-contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.vv-contact-copy h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); }
.vv-form { display: grid; gap: 1.1rem; }
.vv-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.vv-field { display: flex; flex-direction: column; gap: 0.4rem; }
.vv-field label { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--vv-text-2); }
.vv-field input, .vv-field textarea {
	font-family: var(--vv-sans);
	font-size: 1rem;
	color: var(--vv-text);
	background: var(--vv-surface);
	border: 1px solid var(--vv-border);
	border-radius: var(--vv-radius);
	padding: 0.8rem 0.9rem;
	width: 100%;
	box-sizing: border-box;
	transition: border-color .2s ease;
}
.vv-field input:focus, .vv-field textarea:focus { outline: none; border-color: var(--vv-accent); }
.vv-field textarea { min-height: 130px; resize: vertical; }
.vv-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--vv-text-2); }
.vv-consent input { margin-top: 0.25rem; accent-color: var(--vv-accent); }
.vv-form-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.vv-site-footer {
	background: var(--vv-text);
	color: #cfc9c0;
	padding-block: clamp(2.5rem, 4vw, 4rem);
	font-size: 0.92rem;
}
.vv-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.vv-site-footer .vv-logo { color: var(--vv-surface); display: block; margin-bottom: 0.6rem; }
.vv-site-footer a { color: #cfc9c0; }
.vv-site-footer a:hover { color: var(--vv-surface); }
.vv-footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.vv-footer-col { display: grid; gap: 0.5rem; }
.vv-footer-col .h { color: var(--vv-surface); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.35rem; }
.vv-footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.82rem; color: #9c968d; }

/* WhatsApp floating */
.vv-wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 60;
	display: inline-flex; align-items: center; justify-content: center;
	width: 54px; height: 54px; border-radius: 50%;
	background: var(--vv-accent); color: #fff;
	box-shadow: 0 8px 24px rgba(38,35,31,.22);
}
.vv-wa-float:hover { background: var(--vv-accent-hover); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
	.vv-hero-grid { grid-template-columns: 1fr; }
	.vv-hero-media { min-height: 320px; order: -1; }
	.vv-split, .vv-plan-grid, .vv-contact-grid { grid-template-columns: 1fr; }
	.vv-split.is-reverse .vv-split-media { order: 0; }
	.vv-systems-grid { columns: 1; }
}
@media (max-width: 760px) {
	.vv-nav { display: none; }
	.vv-burger { display: block; }
	.vv-nav.is-open {
		display: flex; flex-direction: column; align-items: flex-start;
		position: absolute; top: 76px; left: 0; right: 0;
		background: var(--vv-bg); border-bottom: 1px solid var(--vv-border);
		padding: 1.25rem var(--vv-gutter); gap: 1rem;
	}
	.vv-form .row-2 { grid-template-columns: 1fr; }
	.vv-hero h1 { font-size: clamp(2.4rem, 8vw, 3rem); }
}

/* ============================================================
   IMAGES IN PLACE OF PLACEHOLDERS
   ============================================================ */
.vv-hero-media { position: relative; }
.vv-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* plan: show full portrait drawing on a surface */
.vv-plan-figure {
	background: var(--vv-surface);
	border: 1px solid var(--vv-border);
	border-radius: var(--vv-radius);
	padding: clamp(1rem, 3vw, 2rem);
	display: flex; align-items: center; justify-content: center;
}
.vv-plan-figure img { max-width: 100%; max-height: 620px; width: auto; height: auto; }

/* ============================================================
   GALLERY — GLI INTERNI
   ============================================================ */
.vv-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.vv-gallery-grid figure {
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: var(--vv-radius);
	aspect-ratio: 4 / 3;
	background: var(--vv-surface-2);
}
.vv-gallery-grid figure.is-tall { aspect-ratio: 3 / 4; }
.vv-gallery-grid img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s ease;
}
.vv-gallery-grid figure:hover img { transform: scale(1.04); }
.vv-gallery-grid figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 1.4rem 1rem 0.85rem;
	font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: #fff;
	background: linear-gradient(to top, rgba(38,35,31,.55), transparent);
}
@media (max-width: 760px) {
	.vv-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.vv-gallery-grid figure.is-tall { aspect-ratio: 4 / 3; }
}

/* ============================================================
   vv-fixes — override global link color on buttons (specificity)
   ============================================================ */
.vv-page a.vv-btn-primary,
.vv-page .is-style-fill .wp-block-button__link { color: var(--vv-surface) !important; }
.vv-page a.vv-btn-primary:hover { color: var(--vv-surface) !important; }
.vv-page a.vv-btn-ghost { color: var(--vv-text) !important; }
.vv-page a.vv-btn-ghost:hover { color: var(--vv-accent) !important; }
.vv-page a.vv-logo { color: var(--vv-text); }
.vv-page .vv-wa-float { color: #fff !important; }

/* map + cantiere */
.vv-map{border-radius:var(--vv-radius);overflow:hidden;border:1px solid var(--vv-border);box-shadow:0 10px 30px rgba(38,35,31,.06)}
.vv-map iframe{display:block;width:100%;height:clamp(320px,42vw,520px);border:0}
.vv-gallery-grid.vv-works figure{aspect-ratio:3/4}
@media (max-width:760px){.vv-gallery-grid.vv-works{grid-template-columns:repeat(2,1fr)}}

/* nei dintorni */
.vv-dist-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--vv-border);border:1px solid var(--vv-border);border-radius:var(--vv-radius);overflow:hidden}
.vv-dist{background:var(--vv-surface);display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:1.1rem 1.25rem}
.vv-dist .place{font-family:var(--vv-serif);font-size:1.25rem;color:var(--vv-text)}
.vv-dist .km{font-size:.92rem;color:var(--vv-text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.vv-amen{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem}
.vv-tag{font-size:.9rem;color:var(--vv-accent);border:1px solid var(--vv-border);border-radius:100px;padding:.5rem .95rem;background:var(--vv-surface)}
@media(max-width:640px){.vv-dist-grid{grid-template-columns:1fr}}
