/* Villa Panorama – site chrome and homepage effects */
:root {
	--vp-vine: #16201A;
	--vp-vine-deep: #0F1712;
	--vp-champagne: #CDB68A;
	--vp-paper: #FAF9F6;
	--vp-ease: cubic-bezier(.2, .7, .1, 1);
	--vp-header-h: 76px;
}

body {
	background: var(--vp-paper);
	font-family: "Hanken Grotesk", system-ui, sans-serif;
}

:focus-visible { outline: 2px solid var(--vp-champagne); outline-offset: 4px; }

/* ---------- header ---------- */
.vp-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	color: #fff;
	background: var(--vp-vine);
	transition: background-color .4s var(--vp-ease), box-shadow .4s;
}
.vp-overlay .vp-site-header { position: fixed; left: 0; right: 0; background: transparent; }
.vp-overlay .vp-site-header.is-solid,
.vp-overlay .vp-site-header.is-open { background: rgba(22, 32, 26, .96); backdrop-filter: blur(8px); }
.admin-bar .vp-site-header { top: 32px; }

.vp-site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--vp-header-h);
	width: min(1200px, 100% - 32px);
	margin: 0 auto;
}
.vp-site-header__logo { display: block; margin-right: auto; line-height: 0; }
.vp-site-header__logo svg { height: 46px; width: auto; }

.vp-site-nav .vp-menu { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; align-items: center; }
.vp-menu li { position: relative; }
.vp-site-header .vp-menu a {
	display: block;
	color: #fff;
	font-size: .9375rem;
	text-decoration: none;
	opacity: .85;
	padding: 8px 0;
}
.vp-menu a:hover, .vp-menu .current-menu-item > a { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.vp-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 200px;
	margin: 0;
	padding: 10px 18px;
	list-style: none;
	background: rgba(22, 32, 26, .97);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.vp-menu li:hover > .sub-menu,
.vp-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.vp-menu .lang-item img { width: 18px; height: auto; }

.vp-site-header a.vp-site-header__cta {
	font-size: .9375rem;
	font-weight: 500;
	letter-spacing: .02em;
	padding: 14px 22px;
	color: var(--vp-vine);
	background: var(--vp-champagne);
	border: 1px solid var(--vp-champagne);
	text-decoration: none;
	transition: background-color .3s, color .3s;
}
.vp-site-header a.vp-site-header__cta:hover { background: transparent; color: var(--vp-champagne); }

.vp-menu-toggle {
	display: none;
	background: none;
	border: 1px solid currentColor;
	color: inherit;
	font: 500 .875rem "Hanken Grotesk", sans-serif;
	padding: 9px 14px;
	cursor: pointer;
}

/* Hello's reset paints hovered and focused buttons pink (#c36) */
.vp-site-header .vp-menu-toggle:hover,
.vp-site-header .vp-menu-toggle:focus,
.vp-site-header.is-open .vp-menu-toggle { background: rgba(255, 255, 255, .12); color: #fff; }
.vp-lightbox button:focus { background: rgba(255, 255, 255, .12); color: #fff; }
body .skip-link.screen-reader-text:focus { background: var(--vp-champagne); color: var(--vp-vine); }

@media (max-width: 1024px) {
	.vp-menu-toggle { display: block; }
	.vp-site-header a.vp-site-header__cta { padding: 11px 14px; font-size: .875rem; }
	.vp-site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(22, 32, 26, .98);
		padding: 8px 16px 24px;
		display: none;
	}
	.vp-site-header.is-open .vp-site-nav { display: block; }
	.vp-site-nav .vp-menu { flex-direction: column; align-items: flex-start; gap: 0; }
	.vp-site-header .vp-menu a { padding: 12px 0; font-size: 1.0625rem; }
	.vp-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; padding: 0 0 0 16px; }
}
@media (max-width: 520px) {
	.vp-site-header__logo svg { height: 36px; }
	.vp-site-header__inner { gap: 10px; }
	.vp-site-header a.vp-site-header__cta { display: none; }
}

/* ---------- footer ---------- */
.vp-site-footer { background: var(--vp-vine-deep); color: #B9BDB6; padding: 56px 0; font-size: .9375rem; line-height: 1.7; }
.vp-site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; width: min(1200px, 100% - 32px); margin: 0 auto; }
.vp-site-footer .vp-site-footer__title { font: 400 1.25rem/1.2 "Bodoni Moda", Georgia, serif; color: #fff; margin: 0 0 10px; }
.vp-site-footer .vp-site-footer__inner p { margin: 0; color: #B9BDB6; font-size: .9375rem; line-height: 1.7; }
.vp-site-footer .vp-site-footer__inner a { color: #fff; }
@media (max-width: 760px) { .vp-site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- homepage effects (progressive: page works without JS) ---------- */
.vp-hero-img { transform-origin: 50% 60%; }
.vp-js .vp-hero-img { transform: scale(1.12); animation: vp-settle 9s var(--vp-ease) forwards; }
.vp-js .vp-h1:not(.is-split) { visibility: hidden; }
.vp-js .vp-h1 .vp-line { display: block; overflow: hidden; }
.vp-js .vp-h1 .vp-line > span { display: block; transform: translateY(105%); animation: vp-rise 1.4s var(--vp-ease) forwards; }
.vp-js .vp-h1 .vp-line + .vp-line > span { animation-delay: .15s; padding-left: .6em; }
.vp-js .vp-horizon { transform: scaleX(0); animation: vp-draw 2.2s .4s var(--vp-ease) forwards; }
@keyframes vp-settle { to { transform: scale(1); } }
@keyframes vp-rise { to { transform: none; } }
@keyframes vp-draw { to { transform: scaleX(1); } }

.vp-js .vp-mark { opacity: .25; transform: translateY(12px); }
.vp-js .vp-mark.is-on { opacity: 1; transform: none; }
/* hero: keep the lead text and button well clear of the bottom edge */
/* (Elementor's local `padding: 0` on each box beats the global class, hence the doubled class) */
.elementor .vp-hero.vp-hero { padding: 0 0 clamp(80px, 13vh, 136px); }

/* panorama: a shorter pan keeps the 1920 px aerial photo sharp */
.elementor .vp-pano .vp-pano-track { width: max(140vw, 1200px); }
.elementor .vp-pano .vp-mark,
.elementor .vp-mark-static.vp-mark-static { padding: 4px 18px 4px 26px; }
.elementor .vp-spec.vp-spec { padding: 24px 0; }
@media (max-width: 767px) {
	.elementor .vp-spec.vp-spec > .vp-body { margin-bottom: 14px; }
	.elementor .vp-spec.vp-spec > .vp-body:last-child { margin-bottom: 0; }
}
.vp-pano .vp-mark p { text-shadow: 0 1px 14px rgba(14, 20, 16, .55); }
/* the distances sit on bright vineyards: darken everything behind them */
.vp-pano-stick > .e-div-block-base {
	background-image: linear-gradient(180deg, rgba(22,32,26,.78) 0%, rgba(22,32,26,0) 30%, rgba(22,32,26,0) 40%, rgba(22,32,26,.82) 75%, rgba(22,32,26,.92) 100%) !important;
}
@media (max-width: 767px) {
	.vp-pano-stick > .e-div-block-base {
		background-image: linear-gradient(180deg, rgba(22,32,26,.8) 0%, rgba(22,32,26,.1) 22%, rgba(22,32,26,.75) 45%, rgba(22,32,26,.92) 100%) !important;
	}
}

/* closing booking band: calmer photo, dark wash behind the text */
.vp-id-kontakt > .vp-hero-img { opacity: .5; }
.vp-id-kontakt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,32,26,.9) 0%, rgba(22,32,26,.65) 50%, rgba(22,32,26,.25) 100%); }
.vp-id-kontakt > .vp-wrap { z-index: 1; }

.vp-pano-track { will-change: transform; }
.vp-pano-track img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; }

.vp-js .vp-reveal { clip-path: inset(12% 0 0 0); opacity: .001; transition: clip-path 1.3s var(--vp-ease), opacity 1s var(--vp-ease); }
.vp-js .vp-reveal.is-in { clip-path: inset(0); opacity: 1; }

.vp-thumb.is-active { opacity: 1; }

[class*="vp-id-"] { scroll-margin-top: var(--vp-header-h); }

/* without JS or with reduced motion the panorama is a plain full-height photo */
html:not(.vp-js) .vp-pano { height: auto; }
html:not(.vp-js) .vp-pano-stick { position: relative; }
html:not(.vp-js) .vp-pano-track { width: 100%; }
@media (prefers-reduced-motion: reduce) {
	.vp-pano { height: auto; }
	.vp-pano-stick { position: relative; }
	.vp-pano-track { width: 100%; }
}

/* short viewports (landscape phones, small laptops): keep the distances readable */
@media (max-height: 720px) {
	.vp-pano-stick h2 { font-size: 1.75rem !important; }
	.vp-mark p:first-child { font-size: 1.5rem !important; }
}
@media (max-height: 560px) {
	.vp-pano-stick h2 { display: none !important; }
}

/* ---------- gallery lightbox ---------- */
.vp-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(15, 23, 18, .94); padding: 56px 72px; }
.vp-lightbox[hidden] { display: none; }
.vp-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.vp-lightbox__caption { color: #E9E6DF; font-size: .9375rem; margin: 14px 0 0; text-align: center; }
.vp-lightbox button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; width: 48px; height: 48px; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.vp-lightbox button:hover { background: rgba(255,255,255,.12); }
.vp-lightbox__close { top: 16px; right: 16px; }
.vp-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.vp-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.vp-lightbox { padding: 64px 12px; }
	.vp-lightbox__prev, .vp-lightbox__next { top: auto; bottom: 16px; transform: none; }
}

/* links inside Elementor V4 text (the old kit colours links orange) */
.elementor .vp-body a, .elementor .vp-lead a { color: #6E1A2A; text-decoration: underline; text-underline-offset: 3px; }
.elementor .vp-body a:hover, .elementor .vp-lead a:hover { color: #16201A; }

/* ---------- PHP page templates (availability) ---------- */
.vp-tpl-wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.vp-tpl-hero { position: relative; min-height: min(60svh, 560px); display: flex; align-items: flex-end; overflow: hidden; background: var(--vp-vine); color: #fff; padding-bottom: 56px; }
.vp-tpl-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-tpl-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,16,.6) 0%, rgba(14,20,16,.1) 40%, rgba(14,20,16,.8) 100%); }
.vp-tpl-hero__content { position: relative; }
.vp-tpl .vp-tpl-title { font: 400 clamp(2.75rem, 7vw, 6rem)/.95 "Bodoni Moda", Georgia, serif; letter-spacing: -.02em; color: #fff; margin: 0 0 18px; }
.vp-tpl .vp-tpl-sub { font-size: 1.1875rem; max-width: 46ch; margin: 0; color: #fff; }
.vp-tpl-section { padding: 110px 0; background: var(--vp-paper); }
.vp-tpl-section--stone { background: #EEEBE4; padding: 80px 0 110px; }
.vp-tpl-split { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; }
.vp-tpl .vp-tpl-h2 { font: 400 clamp(2.25rem, 4vw, 3.5rem)/1.08 "Bodoni Moda", Georgia, serif; color: #1F2420; margin: 0; }
.vp-tpl-text { max-width: 64ch; font-size: 1.0625rem; line-height: 1.75; color: #2F3631; }
.vp-tpl .vp-tpl-text p { margin: 0 0 1.1em; }
.vp-tpl .vp-tpl-lead { font: 400 1.375rem/1.55 "Bodoni Moda", Georgia, serif; color: #1F2420; }
.vp-tpl .vp-tpl-text a { color: #6E1A2A; }
@media (max-width: 900px) { .vp-tpl-split { grid-template-columns: 1fr; gap: 32px; } .vp-tpl-section { padding: 72px 0; } }

/* Booking Package calendar in the brand palette */
.vp-booking { font-family: "Hanken Grotesk", system-ui, sans-serif; color: #1F2420; }
.vp-booking #booking-package, .vp-booking #booking_package_calendarPage { background: #fff; }
.vp-booking button, .vp-booking input[type="button"], .vp-booking input[type="submit"], .vp-booking .button {
	background: #16201A !important; color: #fff !important; border: 1px solid #16201A !important; border-radius: 0 !important;
	font-family: "Hanken Grotesk", sans-serif !important; letter-spacing: .02em;
}
.vp-booking button:hover, .vp-booking input[type="button"]:hover, .vp-booking .button:hover { background: #CDB68A !important; color: #16201A !important; border-color: #CDB68A !important; }
.vp-booking a { color: #6E1A2A; }

/* the old Elementor kit sets body text to weight 100 – far too thin for body copy */
body[class] { font-weight: 400; }

/* ---------- day to evening band ---------- */
.vp-js .vp-dusk-night { opacity: 0; }
html:not(.vp-js) .vp-dusk { height: auto; }
html:not(.vp-js) .vp-dusk-stick { position: relative; }
@media (prefers-reduced-motion: reduce) {
	.vp-dusk { height: auto; }
	.vp-dusk-stick { position: relative; }
}
