/* ==========================================================================
   Schwemmerhof — base styles, header, hamburger overlay, footer, buttons
   ========================================================================== */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg-default);
	color: var(--text-primary-dark);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

.h1, h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: var(--lh-h1); }
.h2, h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.h3, h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.h4, h4 { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h4); line-height: var(--lh-h4); }

.body-l { font-size: var(--fs-body-l); line-height: var(--lh-body); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-body); }

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: var(--fs-cta);
	line-height: 1.2;
	border-radius: var(--radius-pill);
	padding: 16px 48px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}

.btn svg, .btn img { width: 16px; height: 16px; }

.btn-primary { background: var(--oliva-500); color: var(--text-primary-light); }
.btn-secondary { background: var(--bg-default); color: var(--text-primary-dark); }
.btn-outline-dark { background: transparent; border-color: var(--oliva-600); color: var(--oliva-600); }
.btn-outline-light { background: transparent; border-color: var(--text-secondary-light); color: var(--text-secondary-light); }
.btn-ghost { background: transparent; padding: 8px 0; color: var(--oliva-300); font-weight: 700; }
.btn-ghost.dark { color: var(--oliva-600); }

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 32px 24px;
}

.site-header .lingua {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	font-size: var(--fs-cta);
	color: var(--text-secondary-dark);
}

.site-header .lingua .divider { width: 1px; height: 16px; background: currentColor; opacity: .4; }
.site-header .lingua button {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: none; cursor: pointer;
	font-family: var(--font-body); font-weight: 700; font-size: var(--fs-cta); color: inherit;
	padding: 0;
}
.site-header .lingua img { width: 8px; height: 4px; }

.site-header .logo { width: 270px; }
.site-header .logo img { width: 100%; height: auto; }

.site-header .header-actions { display: flex; justify-content: flex-end; width: 253px; }

.hamburger-btn {
	width: 48px; height: 48px;
	border-radius: 999px;
	background: var(--bg-color);
	border: none;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.hamburger-btn img { width: 20px; height: 15px; }

/* ---------- Full-screen nav overlay ---------- */

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: var(--bg-dark);
	display: none;
	flex-direction: column;
	gap: 48px;
	padding-bottom: 48px;
	overflow-y: auto;
}
.nav-overlay.is-open { display: flex; }

.nav-overlay .site-header .lingua,
.nav-overlay .site-header .lingua button { color: var(--text-secondary-light); }
.nav-overlay .site-header .lingua .divider { background: var(--text-secondary-light); }
.nav-overlay .hamburger-btn { background: var(--bg-color); }
.nav-overlay .hamburger-btn img { width: 15px; height: 15px; }

.nav-overlay-body {
	flex: 1 0 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	padding: 0 24px;
	gap: 24px;
}

.nav-overlay-links {
	display: flex;
	flex-direction: column;
	height: 100%;
	align-items: center;
	justify-content: space-between;
	flex: 1 0 0;
}

.nav-overlay-links .menu-link,
.nav-overlay-links .menu-link-expandable > button {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 52px;
	line-height: 1.2;
	color: var(--text-primary-light);
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.nav-overlay-links .menu-link-expandable { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nav-overlay-links .menu-link-expandable img { width: 24px; height: 12px; transition: transform .2s; }
.nav-overlay-links .menu-link-expandable.is-open img { transform: rotate(180deg); }

.nav-overlay-submenu {
	display: none;
	gap: 32px;
	font-size: 20px;
	font-family: var(--font-body);
	color: var(--text-secondary-light);
}
.nav-overlay-links .menu-link-expandable.is-open .nav-overlay-submenu { display: flex; }

.nav-overlay-side {
	display: flex;
	flex-direction: column;
	gap: 32px;
	align-items: flex-start;
	color: var(--text-primary-light);
	font-family: var(--font-body);
	width: 231px;
	flex-shrink: 0;
}
.nav-overlay-side.align-end { align-items: flex-end; text-align: right; width: auto; min-width: 231px; }
.nav-overlay-side .label { font-size: 18px; }
.nav-overlay-side .value { font-size: 20px; }

/* ---------- Booking bar (placeholder — non collegata a un motore reale) ---------- */

.booking-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
	justify-content: center;
}
.booking-bar .field { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.booking-bar .field .label { font-size: var(--fs-caption); color: var(--text-secondary-dark); }
.booking-bar .field .value { font-family: var(--font-display); font-weight: 300; font-size: 52px; line-height: 1.2; color: var(--text-primary-dark); }
.booking-bar.compact .field .value { font-size: 40px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-color); padding: 48px 48px 64px; }
.site-footer .footer-top { display: flex; gap: 40px; }
.site-footer .footer-contact { flex: 1 0 0; display: flex; flex-direction: column; gap: 16px; color: var(--text-primary-light); }
.site-footer .footer-contact .label { font-size: var(--fs-body); color: var(--text-secondary-light); }
.site-footer .footer-contact .line { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h3); line-height: 1.2; }
.site-footer .footer-partners { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.site-footer .footer-partners .label { font-size: var(--fs-body); color: var(--text-secondary-light); }
.site-footer .footer-partners .logos { display: flex; flex-direction: column; gap: 32px; }
.site-footer .footer-partners .logos img { background: #fff; border-radius: 8px; width: 160px; height: 50px; object-fit: contain; padding: 4px; }
.site-footer .footer-legal {
	border-top: 1px solid var(--bg-light);
	margin-top: 48px;
	padding-top: 48px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: var(--fs-caption);
	color: var(--text-secondary-light);
}
.site-footer .footer-legal .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .footer-legal .row.top { color: var(--text-secondary-light); }
.site-footer .footer-legal .row .meta { display: flex; gap: 24px; }
.site-footer .footer-legal .row .links { display: flex; gap: 24px; }

/* ---------- Chatbot placeholder ---------- */

.chatbot-btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: var(--oliva-500);
	color: var(--text-primary-light);
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	z-index: 60;
	font-size: 22px;
}

@media (max-width: 960px) {
	.nav-overlay-body { flex-direction: column; align-items: center; gap: 40px; }
	.nav-overlay-side { align-items: center !important; text-align: center !important; }
	:root { --fs-h1: 56px; --fs-h2: 36px; --fs-h3: 30px; }
	.site-footer .footer-top { flex-direction: column; gap: 32px; }
}
