/*
 * Casa di Coraggio — base: fonts, tokens, reset, typography, layout, buttons.
 * Palette from the owners' design: warm cream, deep olive-black, muted gold.
 */

/* Fonts (self-hosted, OFL) */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/jost-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/jost-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--c-cream: #f5f1ea;
	--c-paper: #fbf9f5;
	--c-sand: #ece4d6;
	--c-sand-2: #e2d7c3;
	--c-ink: #24291f;
	--c-ink-2: #3b4035;
	--c-text: #4a4d42;
	--c-muted: #6c6a5f;
	--c-olive: #5a6530;
	--c-gold: #c29a4b;
	--c-gold-text: #83652a;
	--c-gold-light: #d6bd86;
	--c-gold-fill: #cfa850;
	--arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
	--c-line: rgba(36, 41, 31, .14);
	--c-line-light: rgba(255, 255, 255, .28);
	--c-booking: #003b95;

	--f-serif: "Cormorant Garamond", Garamond, "Palatino Linotype", Palatino, "Times New Roman", serif;
	--f-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

	--container: 1240px;
	--container-narrow: 760px;
	--gutter: clamp(20px, 5vw, 56px);
	--section-y: clamp(84px, 10vw, 148px);
	--header-h: 92px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--dur: 220ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--c-gold-text); }
button { font: inherit; color: inherit; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
::selection { background: var(--c-sand-2); color: var(--c-ink); }

h1, h2, h3, h4 {
	margin: 0;
	color: var(--c-ink);
	font-family: var(--f-serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.005em;
	text-wrap: balance;
}
h2 { font-size: clamp(2.35rem, 4.6vw, 4rem); font-weight: 400; }
h3 { font-size: clamp(1.55rem, 2.2vw, 1.95rem); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 12px; left: 12px; z-index: 1000;
	padding: 12px 18px;
	background: var(--c-ink); color: #fff;
	font-size: .875rem;
}

/* Layout */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--cream { background: var(--c-cream); }
.section--paper { background: var(--c-paper); }
.section--sand { background: var(--c-sand); }
.section--dark { background: var(--c-ink); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: #fbf7ef; }

/* Two calm sections of the same colour in a row share their spacing. */
.section--cream + .section--cream,
.section--paper + .section--paper,
.section--sand + .section--sand { padding-top: 0; }

.site-main { display: block; outline: none; }

/* Eyebrow: small letter-spaced label above titles */
.eyebrow {
	margin: 0 0 1.35rem;
	color: var(--c-gold-text);
	font-family: var(--f-sans);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .3em;
	line-height: 1.5;
	text-transform: uppercase;
}
.eyebrow--light,
.section--dark .eyebrow { color: var(--c-gold-light); }

/* Prose */
.prose > * + * { margin-top: 1.1em; }
.prose p { text-wrap: pretty; }
.prose a { color: var(--c-ink); text-decoration-color: var(--c-gold); text-decoration-thickness: 1px; transition: color 200ms, text-decoration-thickness 200ms; }
.prose a:hover { color: var(--c-gold-text); text-decoration-thickness: 2px; }
.prose strong { color: var(--c-ink-2); font-weight: 500; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: .35em; }

/* Signature: "Tanti saluti, Judith & Folkert" */
.signature { display: flex; flex-direction: column; gap: .1rem; margin-top: 2.2rem; }
.signature__greeting { color: var(--c-muted); font-family: var(--f-serif); font-size: 1.25rem; font-style: italic; }
.signature__names { color: var(--c-ink); font-family: var(--f-serif); font-size: clamp(1.6rem, 2.4vw, 2rem); font-style: italic; font-weight: 500; }
.signature--center { align-items: center; text-align: center; }
.section--dark .signature__names { color: #fbf7ef; }

/* Buttons: square and letter-spaced; on hover a gold fill (the sun in their logo) rises and the arrow moves on. */
.btn {
	--btn-bg: var(--c-ink);
	--btn-fg: #fbf7ef;
	--btn-hover-bg: var(--c-gold-fill);
	--btn-hover-fg: var(--c-ink);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 54px;
	padding: 16px 28px 16px 30px;
	border: 1px solid var(--btn-border, transparent);
	border-radius: 0;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--f-sans);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .22em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 420ms var(--ease), border-color 420ms var(--ease);
}
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--btn-hover-bg);
	transform: scaleY(0);
	transform-origin: 50% 100%;
	transition: transform 420ms var(--ease);
}
.btn::after {
	content: "";
	flex: none;
	width: 22px;
	height: 10px;
	background: currentColor;
	-webkit-mask: var(--arrow) center / contain no-repeat;
	mask: var(--arrow) center / contain no-repeat;
	transition: transform 420ms var(--ease);
}
.btn:hover,
.btn:focus-visible { color: var(--btn-hover-fg); border-color: var(--btn-hover-bg); }
.btn:hover::before,
.btn:focus-visible::before { transform: scaleY(1); }
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(5px); }

.btn--solid { --btn-bg: var(--c-ink); --btn-fg: #fbf7ef; }
.btn--light { --btn-bg: var(--c-sand); --btn-fg: var(--c-ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-border: var(--c-gold); }

/* Text links with an arrow: a thin line underneath that fills with gold on hover. */
.btn--text,
.btn--text-light,
.link-arrow {
	display: inline;
	min-height: 0;
	overflow: visible;
	padding: 0 0 .55em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	border: 0;
	background:
		linear-gradient(var(--c-gold-fill), var(--c-gold-fill)) 0 100% / 0% 2px no-repeat,
		linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .22em;
	line-height: 2.4;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 300ms var(--ease), background-size 420ms var(--ease);
}
.btn--text::after,
.btn--text-light::after,
.link-arrow::after {
	content: "";
	display: inline-block;
	margin-left: 12px;
	vertical-align: -1px;
	width: 20px;
	height: 9px;
	background: currentColor;
	-webkit-mask: var(--arrow) center / contain no-repeat;
	mask: var(--arrow) center / contain no-repeat;
	transition: transform 420ms var(--ease);
}
.btn--text::before, .btn--text-light::before { content: none; }
.btn--text:hover, .link-arrow:hover,
.btn--text:focus-visible, .link-arrow:focus-visible { color: var(--c-gold-text); background-size: 100% 2px, 100% 1px; }
.btn--text-light { color: #fff; }
.btn--text-light:hover, .btn--text-light:focus-visible { color: var(--c-gold-light); background-size: 100% 2px, 100% 1px; }
.btn--text:hover::after, .link-arrow:hover::after, .btn--text-light:hover::after { transform: translateX(5px); }
.section--dark .link-arrow, .block-cta--dark .link-arrow { color: #fbf7ef; }

/* Ornament: the sun-and-hills from their logo, above section titles. */
.ornament { display: block; width: 92px; margin: 0 auto 22px; line-height: 0; }
.ornament img { width: 100%; height: auto; }

/* Booking.com badge */
.booking-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--c-ink);
	text-decoration: none;
}
.booking-badge__score {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 6px;
	border-radius: 7px 7px 7px 0;
	background: var(--c-booking);
	color: #fff;
	font-family: var(--f-sans);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: .01em;
}
.booking-badge__text { display: flex; flex-direction: column; line-height: 1.3; }
.booking-badge__label { font-family: var(--f-serif); font-size: 1.2rem; font-weight: 500; }
.booking-badge__source { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
a.booking-badge:hover .booking-badge__label { text-decoration: underline; text-underline-offset: .2em; }
.booking-badge--hero { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.booking-badge--dark { color: #fbf7ef; }

/* Icons */
.icon { width: 1.5em; height: 1.5em; flex: none; }

/* Fluent Forms (all forms share this look) */
body .casa-form .ff-el-group { margin-bottom: 22px; }
body .casa-form .ff-el-input--label label,
body .casa-form .ff-el-input--label {
	color: var(--c-ink);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
}
body .casa-form .ff-el-input--label { margin-bottom: 6px; }
body .casa-form .ff-el-is-required.asterisk-right label::after { color: var(--c-gold-text); margin-left: 3px; }
body .casa-form .ff-el-form-control {
	width: 100%;
	min-height: 50px;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid rgba(36, 41, 31, .3);
	border-radius: 0;
	background: transparent;
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: 1.0625rem;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color var(--dur) var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
body .casa-form textarea.ff-el-form-control { min-height: 140px; resize: vertical; }
body .casa-form select.ff-el-form-control {
	padding-right: 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324291f' stroke-width='1.3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 18px;
}
body .casa-form .ff-el-form-control::placeholder { color: #8f8c80; opacity: 1; }
body .casa-form .ff-el-form-control:focus { outline: none; border-bottom-color: var(--c-ink); box-shadow: 0 1px 0 0 var(--c-ink); }
body .casa-form .ff-el-is-error .ff-el-form-control { border-bottom-color: #a1361f; }
body .casa-form .error.text-danger,
body .casa-form .ff-el-is-error .text-danger { margin-top: 6px; color: #a1361f; font-size: .85rem; }
body .casa-form .ff-t-container { display: flex; gap: 28px; }
body .casa-form .ff-t-cell { flex: 1 1 0; min-width: 0; }
body .casa-form .ff-el-help-message { margin-top: 6px; color: var(--c-muted); font-size: .85rem; font-style: normal; }
body .casa-form .ff_submit_btn_wrapper { margin-top: 10px; }
body .casa-form .ff-btn-submit,
body .casa-form button[type="submit"] {
	min-height: 54px;
	padding: 16px 34px;
	border: 0;
	border-radius: 0;
	background: var(--c-ink) !important;
	color: #fbf7ef !important;
	font-family: var(--f-sans);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease);
}
body .casa-form .ff-btn-submit:hover,
body .casa-form .ff-btn-submit:focus-visible { background: var(--c-gold-fill) !important; color: var(--c-ink) !important; }
body .casa-form .ff-message-success {
	padding: 26px 28px;
	border: 0;
	border-left: 2px solid var(--c-gold);
	background: var(--c-paper);
	box-shadow: none;
	color: var(--c-ink);
	font-family: var(--f-serif);
	font-size: 1.4rem;
	line-height: 1.4;
}
body .casa-form .ff-el-group.ff-custom_html { color: var(--c-muted); font-size: .85rem; line-height: 1.6; }
body .casa-form .ff-el-group.ff-custom_html a { color: var(--c-ink); }
body .casa-form .ff-el-form-check label { font-size: .92rem; letter-spacing: 0; text-transform: none; }
@media (max-width: 560px) {
	body .casa-form .ff-t-container { flex-direction: column; gap: 0; }
}
/* flatpickr date picker, toned to the site */
.flatpickr-calendar { border-radius: 0 !important; box-shadow: 0 18px 50px rgba(36, 41, 31, .18) !important; font-family: var(--f-sans) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--c-ink) !important; border-color: var(--c-ink) !important; }
.flatpickr-day.today { border-color: var(--c-gold) !important; }
