/*
Theme Name:   La Capacciola
Theme URI:    https://new.lacapacciola.com/
Description:  Tema figlio di Nextawards per il Podere La Capacciola e La Cap Re|Hub. Design system estratto dal sito online: Trirong + Mulish, bianco, taupe e arancio; zona Re|Hub in Helvetica nero su bianco.
Author:       Black Olive Design
Template:     nextawards
Version:      1.8.6
License:      GNU General Public License v3.0
Text Domain:  lacapacciola
*/

/* Semantic token layer (source of truth: design system tokens.css). WordPress presets feed it. */
:root {
	--color-paper:      var(--wp--preset--color--paper);
	--color-paper-2:    var(--wp--preset--color--paper-2);
	--color-ink:        var(--wp--preset--color--ink);
	--color-ink-2:      var(--wp--preset--color--ink-2);
	--color-rule:       var(--wp--preset--color--rule);
	--color-taupe:      var(--wp--preset--color--taupe);
	--color-accent:     var(--wp--preset--color--accent);
	--color-accent-ink: var(--wp--preset--color--ink);
	--color-link:       var(--wp--preset--color--link);
	--color-overlay:    var(--wp--custom--overlay);
	--color-focus:      var(--wp--preset--color--link);
	--font-display:     var(--wp--preset--font-family--trirong);
	--font-body:        var(--wp--preset--font-family--mulish);
	--ease-in-out:      var(--wp--custom--transition--ease);
	--dur-base:         var(--wp--custom--transition--duration);
}

/* Italian body copy keeps the justified voice of the current site on wide screens. */
@media (min-width: 768px) {
	.entry-content p,
	.wp-block-post-content p { text-align: justify; hyphens: auto; }
}

/* Parent paints buttons with the Customizer link colour; our primary button is taupe. */
.wp-block-button__link:not(.is-style-outline .wp-block-button__link):not(.is-style-secondary-button .wp-block-button__link),
input[type=submit].wpcf7-submit {
	background-color: var(--wp--preset--color--taupe);
	color: var(--wp--preset--color--paper);
	border: 1px solid transparent;
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking-label);
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out);
}
.wp-block-button__link:hover:not(.is-style-outline .wp-block-button__link):not(.is-style-secondary-button .wp-block-button__link),
.wp-block-button__link:focus-visible:not(.is-style-outline .wp-block-button__link):not(.is-style-secondary-button .wp-block-button__link),
input[type=submit].wpcf7-submit:hover,
input[type=submit].wpcf7-submit:focus-visible {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--taupe);
	border-color: var(--wp--preset--color--taupe);
}
.is-style-outline .wp-block-button__link {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--link);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 0;
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
.is-style-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation-duration: 0.01ms !important; }
}

/* Page ground and text: parent paints #E4E4E4 + black through --site-* variables and custom-background. */
:root {
	--site-bg: var(--wp--preset--color--paper);
	--site-text-color: var(--wp--preset--color--ink);
	--link-color: var(--wp--preset--color--link);
	--link-color-hover: var(--wp--preset--color--taupe);
}
body,
body.custom-background {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

/* Header: uppercase links, Prenota as taupe button, IT/EN switch. */
.header .menu > li > a {
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking-label);
	font-size: var(--wp--preset--font-size--small);
}
.header .menu > li.menu-booking > a {
	opacity: 1; /* the parent dims menu links to .8, which is too faint on the dark button */
	background-color: var(--wp--preset--color--taupe);
	color: var(--wp--preset--color--paper);
	border: 1px solid transparent;
	padding: 0.5rem 1rem;
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out);
}
.header .menu > li.menu-booking > a:hover,
.header .menu > li.menu-booking > a:focus-visible {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--taupe);
	border-color: var(--wp--preset--color--taupe);
}
.header .menu > li.menu-item-lang > a { font-weight: 700; }

/* Footer: see "Footer" section at the end of this file. */

/* Parent full-bleed blocks use calc(50% - 50vw); 100vw includes the scrollbar, so clip sideways overflow. */
/* `html body` (specificity of the parent's own rule) so it wins: parent sets overflow-x:hidden, which turns
   <body> into a scroll container and detaches scroll-driven animations from the page scroll. */
html, html body { overflow-x: clip; }
html body.menu-open { overflow-x: hidden; }

/* ---- Buttons: explicit states ----------------------------------------------
   The parent prints its Customizer colours later in <head> and its hover rule sets white text,
   so every variant states resting + hover colours with higher specificity. */
body .wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--link);
	border: 1px solid var(--wp--preset--color--accent);
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out);
}
body .wp-block-button.is-style-outline > .wp-block-button__link:hover,
body .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--accent);
}
/* White "callout" buttons on photo bands (preset colour classes are !important). */
body .wp-block-button__link.has-paper-background-color.has-link-color {
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
body .wp-block-button__link.has-paper-background-color.has-link-color:hover,
body .wp-block-button__link.has-paper-background-color.has-link-color:focus-visible {
	background-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--ink) !important;
}
/* Re|Hub: outlined "Apply" turns neon, the black pill turns card-grey. */
body .is-zone-rehub .wp-block-button__link.has-paper-color {
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out);
}
body .is-zone-rehub .wp-block-button__link.has-paper-color:hover,
body .is-zone-rehub .wp-block-button__link.has-paper-color:focus-visible {
	background-color: var(--wp--preset--color--rehub-signal) !important;
	border-color: var(--wp--preset--color--rehub-signal) !important;
	color: var(--wp--preset--color--rehub-ink) !important;
}
body .is-zone-rehub .wp-block-button__link.has-rehub-ink-background-color:hover,
body .is-zone-rehub .wp-block-button__link.has-rehub-ink-background-color:focus-visible {
	background-color: var(--wp--preset--color--rehub-card) !important;
	color: var(--wp--preset--color--rehub-paper) !important;
}

/* ---- Contacts page: see "Contacts page" section at the end of this file ---- */
.lc-contact__intro p { max-width: 60ch; }
.lc-contact--band a:not(.wp-block-button__link) { color: var(--wp--preset--color--link); }

/* ---- Mobile menu: no horizontal rules, larger serif items, Prenota as a button ---- */
@media (max-width: 1190px) {
	body .header .menu li {
		border: 0;
		border-bottom: 0;
	}
	body .header .menu > li {
		display: block;
	}
	body .header .menu > li > a {
		font-family: var(--wp--preset--font-family--trirong);
		font-size: 1.5rem;
		font-weight: 500;
		text-transform: none;
		letter-spacing: 0;
		padding: 0.65rem 0;
	}
	body .header .menu > li.menu-booking {
		margin-top: 1.25rem;
	}
	body .header .menu > li.menu-booking > a {
		display: block;
		text-align: center;
		font-family: var(--wp--preset--font-family--mulish);
		font-size: var(--wp--preset--font-size--small);
		font-weight: 400;
		text-transform: uppercase;
		letter-spacing: var(--wp--custom--tracking-label);
		padding: 0.9rem 1rem;
	}
	body .header .menu > li.menu-item-lang > a {
		font-family: var(--wp--preset--font-family--mulish);
		font-size: var(--wp--preset--font-size--small);
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: var(--wp--custom--tracking-label);
		color: var(--wp--preset--color--ink-2);
	}
}

/* ==== Breathing room ===========================================================
   The parent sets line-height 130% on every paragraph and list. Body copy needs more air. */
.is-align-system :where(p, li, figcaption, dd) { line-height: 1.7; }
.is-align-system :where(h3, h4, h5) { line-height: 1.25; }
.is-align-system :where(h1, h2) { line-height: 1.15; }
.is-align-system .wp-block-list li + li { margin-top: 0.5rem; }
.is-align-system .wp-block-list { margin-block: 0; }

/* Sections that mix text with wider blocks (columns, galleries): put headings, intro text and groups on the
   same left edge as the wide block instead of a centred 850px column, and keep a readable measure. */
body .is-align-system > .alignfull:not(.is-zone-rehub):has(> .wp-block-columns, > .wp-block-gallery, > .alignwide, > .wp-block-query) > :where(h1, h2, h3, h4, p, figure, .wp-block-group):not(.alignfull):not(.alignwide) {
	max-width: 73.125rem;
}
@media (min-width: 1200px) {
	body .is-align-system > .alignfull:not(.is-zone-rehub):has(> .wp-block-columns, > .wp-block-gallery, > .alignwide, > .wp-block-query) > p,
	body .is-align-system > .alignfull:not(.is-zone-rehub):has(> .wp-block-columns, > .wp-block-gallery, > .alignwide, > .wp-block-query) > .lc-contact__intro {
		padding-right: 19rem;
	}
}

/* ==== Contacts page ============================================================ */
.lc-contact .lc-contact__card > * + * { margin-block-start: 0.85rem; }
.lc-contact .lc-contact__card > h3 { font-size: 1.4rem; }
.lc-contact .lc-contact__card > .has-x-small-font-size { margin-block-start: 0.35rem; letter-spacing: 0.08em; }
.lc-contact .lc-contact__card ol, .lc-contact .lc-contact__card ul { margin-block-start: 1.1rem; }
.lc-contact .lc-contact__card li { margin: 0 0 0.85rem; padding-left: 0.4rem; line-height: 1.7; }
.lc-contact .lc-contact__intro > * + * { margin-block-start: 1.1rem; }
.lc-contact .lc-contact__intro > .wp-block-buttons { margin-block-start: 1.75rem; }

/* Info panel beside the form. */
.lc-info > * { margin-block: 0; }
.lc-info p { line-height: 1.75; }
.lc-info > .lc-info__label { margin-block: 2.1rem 0.5rem; }
.lc-info > :first-child + .lc-info__label { margin-block-start: 2.4rem; }
.lc-info a:not(.wp-block-button__link) { color: var(--wp--preset--color--link); text-decoration: none; }
.lc-info a:not(.wp-block-button__link):hover { text-decoration: underline; }

/* ==== Header: keep one row on laptops ============================================ */
@media (min-width: 1191px) and (max-width: 1399px) {
	.header .menu li a { padding: 16px 9px; }
	.header .menu > li > a { font-size: 0.78rem; letter-spacing: 0.04em; }
	.header .menu > li.menu-booking > a { padding: 0.5rem 0.8rem; }
}
.header .menu li.menu-item-extras { display: none; }

/* ==== Social icons ============================================================== */
.lc-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.lc-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid currentColor; color: var(--wp--preset--color--taupe);
	text-decoration: none; opacity: 1;
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out), transform var(--dur-base) var(--ease-in-out);
}
.lc-social svg { width: 18px; height: 18px; display: block; }
.lc-social a:hover, .lc-social a:focus-visible {
	background-color: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink); transform: translateY(-2px);
}

/* ==== Mobile menu: calm panel with staggered items, social + contacts ========== */
@media (max-width: 1190px) {
	body .header .menu {
		padding: 1rem 0 2rem;
		border-top: 1px solid var(--wp--preset--color--rule);
	}
	body .header .menu > li > a {
		position: relative;
		display: block;
		padding: 0.6rem 0 0.6rem 0;
		opacity: 1;
		color: var(--wp--preset--color--ink);
		transition: color var(--dur-base) var(--ease-in-out), padding-left var(--dur-base) var(--ease-in-out);
	}
	body .header .menu > li > a::before {
		content: ""; position: absolute; left: 0; top: 50%;
		width: 0; height: 2px; background: var(--wp--preset--color--accent);
		transform: translateY(-50%); transition: width var(--dur-base) var(--ease-in-out);
	}
	body .header .menu > li.current-menu-item > a,
	body .header .menu > li > a:hover,
	body .header .menu > li > a:focus-visible {
		color: var(--wp--preset--color--link);
		padding-left: 1.6rem;
	}
	body .header .menu > li.current-menu-item > a::before,
	body .header .menu > li > a:hover::before,
	body .header .menu > li > a:focus-visible::before { width: 1rem; }
	body .header .menu > li.menu-booking > a::before { display: none; }
	body .header .menu > li.menu-booking > a:hover,
	body .header .menu > li.menu-booking > a:focus-visible { padding-left: 1rem; }
	body .header .menu > li.menu-item-lang { margin-top: 0.75rem; }
	body .header .menu > li.menu-item-lang > a {
		display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid var(--wp--preset--color--rule);
		border-radius: 999px; color: var(--wp--preset--color--ink-2);
	}
	body .header .menu > li.menu-item-lang > a::before { display: none; }
	body .header .menu > li.menu-item-lang > a:hover { padding-left: 0.9rem; border-color: var(--wp--preset--color--accent); }

	body .header .menu > li.menu-item-extras {
		display: block;
		margin-top: 2rem; padding-top: 1.5rem;
		border-top: 1px solid var(--wp--preset--color--rule);
	}
	body .header .menu .lc-menu-label {
		margin: 0 0 0.85rem; font-size: var(--wp--preset--font-size--x-small);
		text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label); color: var(--wp--preset--color--ink-2);
	}
	body .header .menu .lc-menu-contact { margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
	body .header .menu .lc-menu-contact a {
		display: flex; align-items: center; gap: 0.7rem; padding: 0; opacity: 1; font-size: 0.95rem; font-weight: 400;
		font-family: var(--wp--preset--font-family--mulish); text-transform: none; letter-spacing: 0;
		color: var(--wp--preset--color--ink); text-decoration: none;
	}
	body .header .menu .lc-menu-contact a:hover { color: var(--wp--preset--color--link); }
	body .header .menu .lc-menu-contact svg { width: 18px; height: 18px; flex: none; color: var(--wp--preset--color--link); }
		body .header .menu > li.menu-item-extras:last-child { margin-bottom: 150px; }

	@media (prefers-reduced-motion: no-preference) {
		.menu-open .header .menu > li { animation: lc-menu-in 520ms var(--ease-in-out) both; }
		.menu-open .header .menu > li:nth-child(1) { animation-delay: 80ms; }
		.menu-open .header .menu > li:nth-child(2) { animation-delay: 120ms; }
		.menu-open .header .menu > li:nth-child(3) { animation-delay: 160ms; }
		.menu-open .header .menu > li:nth-child(4) { animation-delay: 200ms; }
		.menu-open .header .menu > li:nth-child(5) { animation-delay: 240ms; }
		.menu-open .header .menu > li:nth-child(6) { animation-delay: 280ms; }
		.menu-open .header .menu > li:nth-child(7) { animation-delay: 320ms; }
		.menu-open .header .menu > li:nth-child(8) { animation-delay: 360ms; }
		.menu-open .header .menu > li:nth-child(9) { animation-delay: 400ms; }
		.menu-open .header .menu > li:nth-child(10) { animation-delay: 440ms; }
	}
}
@keyframes lc-menu-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

/* ==== Footer ===================================================================== */
body .lc-footer { background: var(--wp--preset--color--taupe); color: rgb(255 255 255 / 0.86); padding: 0; margin: 0; font-size: 0.95rem; line-height: 1.7; }
body .lc-footer a { color: inherit; text-decoration: none; transition: color var(--dur-base) var(--ease-in-out); }
body .lc-footer a:hover, body .lc-footer a:focus-visible { color: var(--wp--preset--color--accent); }

.lc-footer__invite { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
.lc-footer__invite-inner {
	max-width: 73.125rem; margin: 0 auto; padding: 2.5rem 1.5rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
}
.lc-footer__invite-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 500; line-height: 1.2; }
.lc-footer__invite-text { margin: 0.35rem 0 0; }
body .lc-footer a.lc-footer__invite-btn {
	display: inline-block; background: var(--wp--preset--color--taupe); color: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--taupe); padding: 0.95rem 1.9rem; text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking-label); font-size: var(--wp--preset--font-size--small); white-space: nowrap;
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
body .lc-footer a.lc-footer__invite-btn:hover, body .lc-footer a.lc-footer__invite-btn:focus-visible {
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--taupe);
}

.lc-footer__main { max-width: 73.125rem; margin: 0 auto; padding: 4rem 1.5rem 2rem; }
.lc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: 3rem 3.5rem; }
.lc-footer__logo img { width: 180px; height: auto; display: block; filter: brightness(0) invert(1); opacity: 0.95; }
.lc-footer__wordmark { margin: 0; font-family: var(--font-display); font-size: 1.6rem; }
.lc-footer__tagline { margin: 1.25rem 0 1.5rem; max-width: 26rem; }
body .lc-footer .lc-social a { color: rgb(255 255 255 / 0.9); }
body .lc-footer .lc-social a:hover, body .lc-footer .lc-social a:focus-visible { color: var(--wp--preset--color--ink); }
body .lc-footer a.lc-footer__rehub {
	display: inline-block; margin-top: 1.75rem; padding-bottom: 0.2rem; font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label); border-bottom: 1px solid rgb(255 255 255 / 0.4);
}
.lc-footer h3 {
	font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: #fff;
	margin: 0 0 1.25rem; padding-bottom: 0.75rem; position: relative;
}
.lc-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2rem; height: 2px; background: var(--wp--preset--color--accent); }
.lc-footer address { font-style: normal; margin: 0; }
.lc-footer__vat { margin: 0.75rem 0 0; font-size: var(--wp--preset--font-size--x-small); opacity: 0.92; }
body .lc-footer a.lc-footer__more { font-size: var(--wp--preset--font-size--small); border-bottom: 1px solid rgb(255 255 255 / 0.4); padding-bottom: 0.1rem; }
.lc-footer__list { list-style: none; margin: 0; padding: 0; }
.lc-footer__list li { margin: 0 0 0.6rem; }
.lc-footer__list--contact li > span { display: inline-block; min-width: 3.2rem; opacity: 0.9; font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: 0.06em; }
.lc-footer__col p { margin: 1rem 0 0; }

.lc-footer__bar {
	margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.18);
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--x-small);
}
.lc-footer__bar p { margin: 0; }
.lc-footer__legal { display: flex; gap: 1.5rem; }
body .lc-footer a.lc-footer__top { display: inline-flex; align-items: center; gap: 0.6rem; text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label); }
.lc-footer__top svg { width: 34px; height: 34px; padding: 8px; border: 1px solid rgb(255 255 255 / 0.5); border-radius: 50%; transition: background-color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out); }
.lc-footer__top:hover svg, .lc-footer__top:focus-visible svg { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }

@media (max-width: 980px) {
	.lc-footer__grid { grid-template-columns: 1fr 1fr; }
	.lc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.lc-footer__main { padding-top: 3rem; }
	.lc-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.lc-footer__invite-inner { padding: 2rem 1.5rem; }
	body .lc-footer a.lc-footer__invite-btn { width: 100%; text-align: center; }
	.lc-footer__bar { flex-direction: column; align-items: flex-start; }
}

/* ==== Contact form ============================================================== */
.lc-form { background: var(--wp--preset--color--paper); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 2px solid var(--wp--preset--color--accent); }
.lc-form .lc-field { margin: 0 0 1.35rem; }
.lc-form__row { display: grid; gap: 0 1.5rem; }
.lc-form__row--2 { grid-template-columns: 1fr 1fr; }
.lc-form__row--3 { grid-template-columns: 1fr 1fr 0.6fr; }
.lc-form label { display: block; margin: 0 0 0.45rem; font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--ink-2); line-height: 1.4; }
.lc-form label small { text-transform: none; letter-spacing: 0; opacity: 0.8; }
.lc-form abbr { text-decoration: none; color: var(--wp--preset--color--link); }
.lc-form input[type=text], .lc-form input[type=email], .lc-form input[type=tel], .lc-form input[type=date], .lc-form input[type=number], .lc-form select, .lc-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--wp--preset--color--ink);
	background: #fff; border: 1px solid #cfc9c4; border-radius: 0; padding: 0.8rem 0.95rem; appearance: none; -webkit-appearance: none;
	transition: border-color var(--dur-base) var(--ease-in-out), box-shadow var(--dur-base) var(--ease-in-out);
}
.lc-form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--wp--preset--color--taupe) 50%), linear-gradient(135deg, var(--wp--preset--color--taupe) 50%, transparent 50%);
	background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; padding-right: 2.4rem;
}
.lc-form textarea { resize: vertical; min-height: 9rem; }
.lc-form input:hover, .lc-form select:hover, .lc-form textarea:hover { border-color: var(--wp--preset--color--taupe); }
.lc-form input:focus, .lc-form select:focus, .lc-form textarea:focus {
	outline: none; border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 3px rgb(251 175 63 / 0.35);
}
.lc-form .lc-field.is-invalid input, .lc-form .lc-field.is-invalid textarea { border-color: #b32d2e; }
.lc-form .lc-field.is-invalid label { color: #b32d2e; }
.lc-field--check label { display: flex; gap: 0.75rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--wp--preset--color--ink); }
.lc-field--check input { width: 1.15rem; height: 1.15rem; margin: 0.25rem 0 0; flex: none; accent-color: var(--wp--preset--color--taupe); }
.lc-field--check a { color: var(--wp--preset--color--link); }
.lc-field--check.is-invalid label { color: #b32d2e; }
.lc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lc-form__actions { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.lc-form__note { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--ink-2); }
.lc-form button.lc-form__submit {
	font: inherit; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label);
	background: var(--wp--preset--color--taupe); color: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--taupe);
	border-radius: 0; padding: 1rem 2.2rem; cursor: pointer;
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
.lc-form button.lc-form__submit:hover, .lc-form button.lc-form__submit:focus-visible { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--taupe); }
.lc-form button.lc-form__submit:disabled { opacity: 0.6; cursor: progress; }
.lc-form__status { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; border-left: 3px solid; line-height: 1.6; }
.lc-form__status.is-ok { border-color: #3b7a3b; background: #eef6ee; }
.lc-form__status.is-error { border-color: #b32d2e; background: #fbeeee; }
.lc-form.is-sent .lc-form__row, .lc-form.is-sent .lc-field, .lc-form.is-sent .lc-form__actions { display: none; }
@media (max-width: 640px) {
	.lc-form__row--2, .lc-form__row--3 { grid-template-columns: 1fr; }
}

/* More vertical air for the contacts sections (the editor preset xl = 3rem is tight on desktop). */
body .is-align-system > .alignfull.lc-contact { padding-top: clamp(3rem, 2rem + 4vw, 6rem) !important; padding-bottom: clamp(3rem, 2rem + 4vw, 6rem) !important; }

/* ==== Round 6 fixes ============================================================== */
/* Mobile menu: social circles like the footer (taupe on white), real tap targets; panel fits the screen. */
@media (max-width: 1190px) {
	body .header .menu { height: calc(100vh - 60px); height: calc(100dvh - 60px); padding-bottom: 6rem; box-sizing: border-box; }
	body .header .menu > li > a { padding-top: 0.5rem; padding-bottom: 0.5rem; font-size: 1.4rem; }
	body .header .menu .lc-social { display: flex; gap: 0.9rem; margin: 0; }
	body .header .menu .lc-social a {
		display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
		width: 48px; height: 48px; padding: 0; margin: 0; opacity: 1; font-size: 0; line-height: 0;
		border: 1.5px solid var(--wp--preset--color--taupe); border-radius: 50%; color: var(--wp--preset--color--taupe);
		background: transparent;
	}
	body .header .menu .lc-social a::before { display: none; }
	body .header .menu .lc-social a svg { width: 20px; height: 20px; }
	body .header .menu .lc-social a:hover, body .header .menu .lc-social a:focus-visible, body .header .menu .lc-social a:active {
		background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); padding: 0;
	}
	body .header .menu > li.menu-item-extras:last-child { margin-bottom: 0; }
}

/* Contacts: air between the intro, its buttons and the cards below. */
.lc-contact .lc-contact__intro > .wp-block-buttons { margin-block: 1.75rem 0; gap: 1rem; }
.lc-contact .wp-block-columns { margin-block-start: clamp(2.5rem, 2rem + 2vw, 4rem); }
.lc-contact .lc-contact__intro + .wp-block-columns { margin-block-start: clamp(3rem, 2rem + 3vw, 5rem); }
.lc-contact .wp-block-columns + .wp-block-columns { margin-block-start: clamp(2.5rem, 2rem + 2vw, 4rem); }
.lc-contact .wp-block-columns .wp-block-column + .wp-block-column { margin-top: 0; }
.lc-contact .lc-contact__card { padding-top: 1.5rem !important; }

/* ==== Interactive map ============================================================ */
body .is-align-system > .lc-map.alignfull { padding: 0; margin-block: 0; }
.lc-map { position: relative; height: clamp(360px, 52vw, 560px); background: var(--wp--preset--color--paper-2); overflow: hidden; }
.lc-map__canvas { position: absolute; inset: 0; visibility: hidden; z-index: 1; }
.lc-map.is-live .lc-map__canvas { visibility: visible; }
.lc-map__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) sepia(0.12); }
.lc-map.is-live .lc-map__poster, .lc-map.is-live .lc-map__cta { display: none; }
.lc-map__cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; background: rgb(255 255 255 / 0.35); z-index: 2; text-align: center; padding: 1rem; }
.lc-map__btn {
	font: inherit; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label);
	background: var(--wp--preset--color--taupe); color: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--taupe);
	padding: 1rem 2rem; cursor: pointer; transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
.lc-map__btn:hover, .lc-map__btn:focus-visible { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--taupe); }
.lc-map__btn:disabled { cursor: progress; opacity: 0.85; }
.lc-map__note { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--ink); background: rgb(255 255 255 / 0.8); padding: 0.2rem 0.6rem; }
.lc-map .leaflet-tile-pane { filter: saturate(0.75) sepia(0.12); }
.lc-pin { background: none; border: 0; }
.lc-pin svg { display: block; filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.3)); }
@media (prefers-reduced-motion: no-preference) {
	.lc-pin svg { animation: lc-pin-drop 700ms cubic-bezier(0.34, 1.4, 0.5, 1) both; transform-origin: 50% 100%; }
}
@keyframes lc-pin-drop { from { opacity: 0; transform: translateY(-26px) scale(0.9); } to { opacity: 1; transform: none; } }
.lc-map .leaflet-popup-content-wrapper { border-radius: 0; font-family: var(--font-body); color: var(--wp--preset--color--ink); }
.lc-map .leaflet-popup-content { margin: 0.9rem 1.1rem; line-height: 1.6; font-size: 0.9rem; }
.lc-map .leaflet-popup-content a { color: var(--wp--preset--color--link); text-decoration: none; font-weight: 700; }
.lc-map__hint { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 900; margin: 0; padding: 0.4rem 0.9rem; font-size: var(--wp--preset--font-size--x-small); background: rgb(255 255 255 / 0.92); color: var(--wp--preset--color--ink); transition: opacity 600ms; pointer-events: none; }
.lc-map__hint.is-gone { opacity: 0; }

.lc-info .lc-social a { color: var(--wp--preset--color--taupe); }
.lc-info .lc-social a:hover, .lc-info .lc-social a:focus-visible { color: var(--wp--preset--color--ink); text-decoration: none; }

/* Footer runs edge to edge: the parent wrapper adds 3% side padding. */
body .lc-footer { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: auto; }

/* ==== Availability bar on the home hero ==============================================
   A plain GET form to the contacts page. In the content it sits right AFTER the hero cover, inside a
   zero-height wrapper: on desktop/tablet it is lifted onto the bottom of the photo (translucent panel),
   on phones it simply flows below the photo so the picture stays visible. */
body .is-align-system > .lc-booking-wrap { position: relative; z-index: 2; height: 0; max-width: none; margin: 0; padding: 0; }
.lc-booking-wrap > .lc-booking { position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%); width: min(68rem, 100% - 2rem); }
/* Leave room for the bar so the quote stays centred in the free part of the photo. */
.wp-block-cover:has(+ .lc-booking-wrap) { padding-bottom: 9.5rem; }
body .lc-booking {
	box-sizing: border-box; margin: 0;
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.55fr auto; gap: 1rem; align-items: end;
	padding: 1.1rem 1.25rem 1.25rem;
	background: rgb(255 255 255 / 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	border-top: 2px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink); text-align: left;
}
.lc-booking__field { min-width: 0; margin: 0; }
body .lc-booking label {
	display: block; margin: 0 0 0.4rem; font-size: var(--wp--preset--font-size--x-small); line-height: 1.3; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--ink);
}
body .lc-booking select, body .lc-booking input {
	display: block; width: 100%; min-width: 0; height: 3rem; box-sizing: border-box; margin: 0;
	font: inherit; font-size: 1rem; line-height: 1.2; color: var(--wp--preset--color--ink);
	background-color: rgb(255 255 255 / 0.82); border: 1px solid rgb(255 255 255 / 0.9); border-radius: 0; padding: 0 0.8rem;
	appearance: none; -webkit-appearance: none;
	transition: border-color var(--dur-base) var(--ease-in-out), box-shadow var(--dur-base) var(--ease-in-out), background-color var(--dur-base) var(--ease-in-out);
}
body .lc-booking select {
	background-image: linear-gradient(45deg, transparent 50%, var(--wp--preset--color--taupe) 50%), linear-gradient(135deg, var(--wp--preset--color--taupe) 50%, transparent 50%);
	background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; padding-right: 2.2rem;
}
body .lc-booking select:hover, body .lc-booking input:hover { border-color: var(--wp--preset--color--taupe); background-color: #fff; }
body .lc-booking select:focus, body .lc-booking input:focus { outline: none; background-color: #fff; border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 3px rgb(251 175 63 / 0.45); }
body .lc-booking .lc-booking__btn {
	height: 3rem; box-sizing: border-box; margin: 0; padding: 0 1.6rem; cursor: pointer; white-space: nowrap;
	font: inherit; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label);
	background: var(--wp--preset--color--taupe); color: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--taupe); border-radius: 0;
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
body .lc-booking .lc-booking__btn:hover, body .lc-booking .lc-booking__btn:focus-visible { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--taupe); }
@media (max-width: 1100px) {
	body .lc-booking { grid-template-columns: 1.5fr 1fr 1fr 0.6fr; }
	body .lc-booking .lc-booking__btn { grid-column: 1 / -1; }
	.wp-block-cover:has(+ .lc-booking-wrap) { padding-bottom: 13.5rem; }
}
/* Phones: the bar leaves the photo and becomes a plain panel right below it. */
@media (max-width: 640px) {
	body .is-align-system > .lc-booking-wrap { height: auto; }
	.lc-booking-wrap > .lc-booking { position: static; transform: none; width: auto; }
	.wp-block-cover:has(+ .lc-booking-wrap) { padding-bottom: 1em; }
	body .lc-booking {
		grid-template-columns: 1fr 1fr; gap: 0.9rem; padding: 1.25rem 0 1.5rem;
		background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0;
		border-bottom: 1px solid var(--wp--preset--color--rule);
	}
	.lc-booking__field--stay { grid-column: 1 / -1; }
	body .lc-booking select, body .lc-booking input { background-color: #fff; border-color: #cfc9c4; }
	body .lc-booking label { font-weight: 400; color: var(--wp--preset--color--ink-2); }
	body .lc-booking .lc-booking__btn { grid-column: auto; padding: 0 0.6rem; white-space: normal; line-height: 1.15; font-size: var(--wp--preset--font-size--x-small); }
}

/* Contacts: note shown when the form arrives prefilled from the bar; anchor clears the fixed header. */
#scrivici { scroll-margin-top: 5rem; }
.lc-form__prefill { margin: 0 0 1.5rem; padding: 0.8rem 1rem; border-left: 3px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--paper-2); line-height: 1.6; font-size: 0.95rem; }
.lc-form.is-sent .lc-form__prefill { display: none; }

/* Footer site map = the header menu of the current language, without the booking button. */
.lc-footer__list--map .menu-booking { display: none; }

/* ==== News article: air between the cover photo and the text, comfortable reading rhythm ==== */
.lc-article__cover { margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 4rem); }
.lc-article .text-content :where(p, li) { line-height: 1.75; }
.lc-article .text-content > * { margin-block: 0; }
.lc-article .text-content > * + * { margin-block-start: 1.35rem; }
.lc-article .text-content > :where(h2, h3, h4) { margin-block-start: 2.75rem; line-height: 1.2; }
.lc-article .text-content > :where(h2, h3, h4) + * { margin-block-start: 1rem; }
.lc-article .text-content > :where(figure, .wp-block-image, blockquote) { margin-block: 2.25rem; }
.lc-article .text-content li + li { margin-top: 0.5rem; }

/* ==== Cookie notice ==============================================================
   A quiet panel in the bottom-left corner; it never blocks the page. Refuse and accept share one style. */
.lc-cookie {
	position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 10000; box-sizing: border-box;
	width: min(30rem, calc(100vw - 2.5rem)); max-height: calc(100vh - 2.5rem); max-height: calc(100dvh - 2.5rem); overflow: auto;
	padding: 1.5rem 1.5rem 1.35rem; background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink);
	border-top: 2px solid var(--wp--preset--color--accent); box-shadow: 0 12px 40px rgb(0 0 0 / 0.18);
	font-size: 0.92rem; line-height: 1.6;
}
@media (prefers-reduced-motion: no-preference) {
	.lc-cookie { animation: lc-cookie-in 420ms var(--ease-in-out) both; }
}
@keyframes lc-cookie-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.lc-cookie__title { margin: 0 2rem 0.6rem 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.lc-cookie__text { margin: 0; }
.lc-cookie__text a { text-decoration: underline; text-underline-offset: 0.15em; }
.lc-cookie a { color: var(--wp--preset--color--link); }
.lc-cookie__x {
	position: absolute; top: 0.6rem; right: 0.6rem; width: 2.5rem; height: 2.5rem; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; color: var(--wp--preset--color--ink-2); cursor: pointer;
}
.lc-cookie__x:hover, .lc-cookie__x:focus-visible { color: var(--wp--preset--color--ink); }
.lc-cookie__cats { display: none; margin-top: 1.1rem; border-top: 1px solid var(--wp--preset--color--rule); }
.lc-cookie.is-prefs .lc-cookie__cats { display: block; }
.lc-cookie__cat { padding: 0.9rem 0; border-bottom: 1px solid var(--wp--preset--color--rule); }
.lc-cookie__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; cursor: default; }
label.lc-cookie__cat-head { cursor: pointer; }
.lc-cookie__cat-text { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--wp--preset--color--ink-2); }
.lc-cookie__always { font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--ink-2); white-space: nowrap; }
.lc-cookie__switch {
	appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 2.75rem; height: 1.5rem; margin: 0; border-radius: 999px;
	background: #cfc9c4; cursor: pointer; transition: background-color var(--dur-base) var(--ease-in-out);
}
.lc-cookie__switch::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff;
	transition: transform var(--dur-base) var(--ease-in-out);
}
.lc-cookie__switch:checked { background: var(--wp--preset--color--taupe); }
.lc-cookie__switch:checked::after { transform: translateX(1.25rem); }
.lc-cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.lc-cookie__btn {
	flex: 1 1 auto; min-height: 2.75rem; box-sizing: border-box; padding: 0 1.1rem; cursor: pointer; border-radius: 0;
	font: inherit; font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label);
	transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out);
}
.lc-cookie__btn--solid { background: var(--wp--preset--color--taupe); color: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--taupe); }
.lc-cookie__btn--solid:hover, .lc-cookie__btn--solid:focus-visible { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--taupe); }
.lc-cookie__btn--ghost { flex-basis: 100%; background: transparent; color: var(--wp--preset--color--ink); border: 1px solid #cfc9c4; }
.lc-cookie__btn--ghost:hover, .lc-cookie__btn--ghost:focus-visible { border-color: var(--wp--preset--color--taupe); }
.lc-cookie__save, .lc-cookie.is-prefs .lc-cookie__customize { display: none; }
.lc-cookie.is-prefs .lc-cookie__save { display: block; }
@media (max-width: 640px) {
	.lc-cookie { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; max-height: calc(100dvh - 1.5rem); padding: 1.25rem 1.1rem 1.1rem; }
}
/* Footer link that reopens the preferences. */
body .lc-footer button.lc-footer__prefs { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; transition: color var(--dur-base) var(--ease-in-out); }
body .lc-footer button.lc-footer__prefs:hover, body .lc-footer button.lc-footer__prefs:focus-visible { color: var(--wp--preset--color--accent); }
.lc-footer__legal { flex-wrap: wrap; }
.lc-cookie .lc-cookie__x.lc-cookie__btn { flex: none; min-height: 0; padding: 0; }
.lc-cookie__x svg { flex: none; width: 18px; height: 18px; }

/* Round button that reopens the cookie preferences after a choice has been made. */
.lc-cookie-fab {
	position: fixed; left: 1rem; bottom: 1rem; z-index: 9990; width: 2.75rem; height: 2.75rem; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--taupe); border: 1px solid #cfc9c4;
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.14); opacity: 0.85;
	transition: opacity var(--dur-base) var(--ease-in-out), background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out), border-color var(--dur-base) var(--ease-in-out);
}
.lc-cookie-fab[hidden] { display: none; }
.lc-cookie-fab:hover, .lc-cookie-fab:focus-visible { opacity: 1; background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
@media (max-width: 640px) { .lc-cookie-fab { left: 0.75rem; bottom: 0.75rem; width: 2.5rem; height: 2.5rem; } }
@media print { .lc-cookie, .lc-cookie-fab { display: none !important; } }

/* Mobile menu: "Prenota" links to the contacts page, so WordPress marks it as the current item there.
   It must keep its button colours (white on taupe) instead of the orange "current page" text. */
@media (max-width: 1190px) {
	body .header .menu > li.menu-booking > a,
	body .header .menu > li.menu-booking.current-menu-item > a {
		color: var(--wp--preset--color--paper); padding-left: 1rem;
	}
	body .header .menu > li.menu-booking > a:hover,
	body .header .menu > li.menu-booking > a:focus-visible,
	body .header .menu > li.menu-booking.current-menu-item > a:hover,
	body .header .menu > li.menu-booking.current-menu-item > a:focus-visible {
		background-color: var(--wp--preset--color--paper); color: var(--wp--preset--color--taupe); border-color: var(--wp--preset--color--taupe); padding-left: 1rem;
	}
}

/* ==== Legal pages (privacy, cookies): a single readable column ====================== */
body .is-align-system > .alignfull.lc-legal { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.lc-legal > * { margin-block: 0; }
.lc-legal > * + * { margin-block-start: 1.15rem; }
.lc-legal > h1 { margin-block-end: 0.25rem; }
.lc-legal > h2 { margin-block-start: 3rem; font-size: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--wp--preset--color--rule); }
.lc-legal > h3 { margin-block-start: 2.1rem; font-size: 1.2rem; }
.lc-legal > :where(h2, h3) + * { margin-block-start: 0.85rem; }
.lc-legal :where(p, li) { text-align: left; hyphens: manual; }
.lc-legal a:not(.wp-block-button__link) { color: var(--wp--preset--color--link); }
.lc-legal ul { padding-left: 1.2rem; }
.lc-legal li::marker { color: var(--wp--preset--color--link); }
.lc-legal mark { background: #fff1c9; color: inherit; padding: 0.05em 0.25em; }
.lc-legal code { font-size: 0.9em; background: var(--wp--preset--color--paper-2); padding: 0.1em 0.35em; word-break: break-word; }
.lc-legal__table { overflow-x: auto; }
.lc-legal__table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.6; }
.lc-legal__table th, .lc-legal__table td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem 0.75rem 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--rule); }
.lc-legal__table th { font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 400; color: var(--wp--preset--color--ink-2); border-bottom-color: var(--wp--preset--color--accent); }
.lc-legal__table td:last-child, .lc-legal__table th:last-child { white-space: nowrap; padding-right: 0; }
.lc-legal__action { margin: 0; }
.lc-legal button.lc-legal__prefs {
	font: inherit; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: var(--wp--custom--tracking-label);
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--link); border: 1px solid var(--wp--preset--color--accent); border-radius: 0;
	padding: 0.9rem 1.6rem; cursor: pointer; transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
.lc-legal button.lc-legal__prefs:hover, .lc-legal button.lc-legal__prefs:focus-visible { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
/* Legal pages: narrower measure than the parent's 850px, and a plain table (core adds full borders). */
body .is-align-system > .alignfull.lc-legal > *:not(.alignfull):not(.alignwide) { max-width: 46rem; margin-left: auto; margin-right: auto; }
.lc-legal > .lc-legal__table { margin-block-start: 1.5rem; }
.lc-legal .lc-legal__table table { border: 0; }
.lc-legal .lc-legal__table thead { border-bottom: 0; }
.lc-legal .lc-legal__table th, .lc-legal .lc-legal__table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--rule); padding: 0.8rem 1.25rem 0.8rem 0; }
.lc-legal .lc-legal__table th { border-bottom: 2px solid var(--wp--preset--color--accent); }
.lc-legal .lc-legal__table td:last-child, .lc-legal .lc-legal__table th:last-child { white-space: nowrap; padding-right: 0; }
.lc-legal .lc-legal__table code { white-space: nowrap; word-break: normal; }
@media (max-width: 640px) {
	.lc-legal .lc-legal__table code { white-space: normal; overflow-wrap: anywhere; }
	.lc-legal .lc-legal__table th, .lc-legal .lc-legal__table td { padding-right: 0.75rem; }
}

/* ---------- Home: eventi in Valdichiana (agenda from the Valdichiana 2026 feed, see inc/events.php) ---------- */
.lc-events { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; border-bottom: 1px solid var(--color-rule); }
.lc-events > li { margin: 0; border-top: 1px solid var(--color-rule); }
.lc-events a.lc-event__link {
	display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: 0 1.5rem;
	padding: 1.35rem 0.25rem; color: var(--color-ink); text-decoration: none;
}
.lc-event__date { display: block; text-align: center; line-height: 1; }
.lc-event__wd, .lc-event__mo { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.lc-event__wd { color: var(--color-taupe); }
.lc-event__mo { color: var(--color-link); }
.lc-event__day { display: block; margin: 0.3rem 0 0.25rem; font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--color-ink); }
.lc-event__date--ongoing { padding: 0.55rem 0.2rem; border: 1px solid var(--color-rule); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-taupe); }
.lc-event__body { display: block; min-width: 0; }
.lc-event__meta { display: block; margin-bottom: 0.3rem; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-ink-2); }
.lc-event__title { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.3; transition: color var(--dur-base) var(--ease-in-out); }
.lc-event.is-local .lc-event__place { padding: 0.12rem 0.5rem; background: var(--color-accent); color: var(--color-accent-ink); }
.lc-event__arrow { color: var(--color-taupe); transition: transform var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out); }
.lc-events a.lc-event__link:hover .lc-event__title, .lc-events a.lc-event__link:focus-visible .lc-event__title { color: var(--color-link); }
.lc-events a.lc-event__link:hover .lc-event__arrow, .lc-events a.lc-event__link:focus-visible .lc-event__arrow { transform: translateX(5px); color: var(--color-link); }
.lc-events a.lc-event__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lc-events__source, .lc-events__empty { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--color-ink-2); }
.lc-events-zone .wp-block-buttons { margin-top: 2rem; }
@media (max-width: 820px) {
	.lc-events { grid-template-columns: 1fr; margin-top: 1.5rem; }
	.lc-events a.lc-event__link { grid-template-columns: 3.75rem minmax(0, 1fr) auto; gap: 0 1.1rem; padding: 1.1rem 0; }
	.lc-event__day { font-size: 2rem; }
	.lc-event__title { font-size: 1.1rem; }
}
