/*
Theme Name: Back and Forth
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.10
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: backandforth
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root {
	--bft-ink: var(--wp--preset--color--ink);
	--bft-cream: var(--wp--preset--color--cream);
	--bft-sand: var(--wp--preset--color--sand);
	--bft-primary: var(--wp--preset--color--primary);
	--bft-copper: var(--wp--preset--color--copper);
	--bft-muted: var(--wp--preset--color--muted);
	--bft-rule: color-mix(in srgb, var(--wp--preset--color--ink) 20%, transparent);
	--bft-rule-light: color-mix(in srgb, var(--wp--preset--color--cream) 22%, transparent);
	--bft-serif: var(--wp--preset--font-family--cormorant-garamond);
	--bft-band: clamp(4.5rem, 9vw, 8rem);
	--bft-photo: sepia(0.08) contrast(1.02);
}

/* === typography === */
body {
	/* the root gutter is defined on body, so read it here rather than on :root */
	--bft-gutter: var(--wp--style--root--padding-left, 1.25rem);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.eyebrow,
.hero-meta,
.bft-card__meta,
.band-link,
.bft-card__more,
.bft-tags,
.wp-block-post-terms.eyebrow,
.site-footer .eyebrow,
.eyebrow-title,
.bft-scheda dt,
.bft-stato__label,
.bft-recensioni figcaption,
.wpcf7 label {
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
}
.eyebrow { margin: 0 0 1.25rem; }
.lead { font-size: 1.1875rem; color: var(--bft-muted); }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img { filter: var(--bft-photo); }
.site-header img,
.site-footer img { filter: none; }

/* === header === */
.site-header-wrap {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.admin-bar .site-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
/* below 600px the admin bar scrolls away, so the header sits at the very top */
@media (max-width: 600px) {
	.admin-bar .site-header-wrap { top: 0; }
}
/* once the page scrolls (assets/js/header.js) the bar turns solid copper */
.site-header-wrap.is-scrolled {
	background-color: rgb(184, 114, 46);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12);
}
.site-header {
	padding-block: 1.5rem;
	color: var(--bft-cream);
	transition: padding-block 0.35s ease;
}
.is-scrolled .site-header { padding-block: 0.75rem; }
.site-header__bar { gap: 2rem; align-items: center; }
.site-header__logo img { width: 150px; height: auto; transition: width 0.35s ease; }
.is-scrolled .site-header__logo img { width: 64px; }
.site-header__nav { gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-nav .wp-block-navigation-item__content,
.site-header .wp-block-navigation__responsive-container-open {
	color: var(--bft-cream);
}
.site-nav .wp-block-navigation__container { gap: clamp(1rem, 2vw, 2rem); }
.site-nav .wp-block-navigation-item__content {
	padding-block: 0.4rem;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.35s ease;
}
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .current-menu-item > .wp-block-navigation-item__content {
	background-size: 100% 1px;
}
.site-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem var(--bft-gutter);
}
.site-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--bft-serif);
	font-size: 2rem;
	letter-spacing: 0;
	text-transform: none;
}
.bft-lingue {
	display: flex;
	gap: 0.15rem;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.18em;
	border-left: 1px solid var(--bft-rule-light);
	padding-left: clamp(1rem, 2vw, 1.75rem);
}
.bft-lingue a {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--bft-rule-light);
	border-radius: 2px;
	color: inherit;
	text-decoration: none;
	letter-spacing: 0.18em;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.bft-lingue a:hover,
.bft-lingue a:focus-visible { background: var(--bft-cream); color: var(--bft-ink); }

/* === hero === */
.bft-hero.wp-block-cover,
.bft-hero--plain {
	min-height: 52vh;
	min-height: 52svh;
	padding: clamp(8rem, 16vh, 11rem) var(--bft-gutter) clamp(3.5rem, 8vh, 6rem);
	background-color: var(--bft-ink);
	color: var(--bft-cream);
	align-items: flex-end;
}
.bft-hero--plain {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.bft-hero--plain > .bft-hero__text { width: 100%; }
.bft-hero--home.wp-block-cover {
	min-height: 94vh;
	min-height: 94svh;
	align-items: center;
}
.bft-hero .wp-block-cover__image-background { filter: var(--bft-photo); }
.bft-hero.wp-block-cover .wp-block-cover__background {
	background: linear-gradient(180deg, rgb(26 25 23 / 0.55) 0%, rgb(26 25 23 / 0.05) 35%, rgb(26 25 23 / 0.2) 60%, rgb(26 25 23 / 0.72) 100%) !important;
	opacity: 1 !important;
}
.bft-hero--home.wp-block-cover .wp-block-cover__background {
	background: linear-gradient(90deg, rgb(26 25 23 / 0.62) 0%, rgb(26 25 23 / 0.2) 55%, rgb(26 25 23 / 0) 100%), linear-gradient(180deg, rgb(26 25 23 / 0.5) 0%, transparent 30%) !important;
}
/* the cover itself carries the gutter; the inner container must not add a second one.
   core sets width:auto here with a doubled class, so match its weight plus one */
.wp-block-cover.bft-hero.bft-hero .wp-block-cover__inner-container,
.wp-block-cover.bft-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
	padding-inline: 0;
}
.bft-hero__text { max-width: var(--wp--style--global--wide-size, 1240px); }
.hero-title {
	font-family: var(--bft-serif);
	font-weight: 400;
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	line-height: 1.05;
	max-width: 18ch;
	margin: 0;
	color: var(--bft-cream);
	text-wrap: balance;
}
.hero-title--display { font-size: clamp(3rem, 8vw, 6.5rem); max-width: 14ch; }
.bft-hero .eyebrow,
.bft-hero .wp-block-post-terms a { color: var(--bft-cream); text-decoration: none; }
.bft-hero .eyebrow::before {
	content: "";
	display: inline-block;
	width: 2.5rem;
	height: 1px;
	margin-right: 0.9rem;
	vertical-align: middle;
	background: var(--bft-copper);
}
.hero-meta { margin-top: 1.5rem; opacity: 0.8; }
.bft-hero .wp-block-buttons { margin-top: 2.5rem; }

/* === sections === */
/* bands sit edge to edge: drop the flow/constrained block gap between them */
.is-flush > *,
.is-flush > .wp-block-post-content > * { margin-block-start: 0; }
.band { padding-block: var(--bft-band); }
.band--page,
.band--article { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band--dark { color: var(--bft-cream); }
.band--cta { padding-block: clamp(3rem, 6vw, 4.5rem); }
.band-head {
	gap: 1rem 2rem;
	padding-bottom: 1.25rem;
	margin-bottom: clamp(2rem, 4vw, 3rem) !important;
	border-bottom: 1px solid var(--bft-rule);
}
.band-title {
	font-family: var(--bft-serif);
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	letter-spacing: 0.06em;
	margin: 0;
}
.band-title--serif {
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	letter-spacing: 0;
	line-height: 1.08;
	margin-bottom: 2rem;
	text-wrap: balance;
}
.band-link { margin: 0; }
.band-link a { color: var(--bft-primary); text-decoration: none; }
.band-link a::after { content: " \2192"; }
.band-link a:hover { text-decoration: underline; }

/* cards */
.bft-cards .wp-block-post-template { gap: clamp(2rem, 3.5vw, 3rem); }
.bft-cards .wp-block-post { display: flex; flex-direction: column; }
.bft-card__img { margin: 0 0 1.25rem; overflow: hidden; }
.bft-card__img img { transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.bft-cards .wp-block-post:hover .bft-card__img img { transform: scale(1.035); }
.bft-card__meta { color: var(--bft-muted); margin: 0 0 0.5rem; }
.bft-card__title {
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}
.bft-card__title a { color: inherit; text-decoration: none; }
.bft-card__title a:hover { color: var(--bft-primary); }
.bft-card__excerpt { color: var(--bft-muted); margin: 0 0 1rem; }
.bft-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.bft-card__more { margin-top: auto; color: var(--bft-primary); text-decoration: none; align-self: flex-start; }
.bft-card__more::after { content: " \2192"; }
.bft-cards--feature .wp-block-post {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-rows: auto auto 1fr auto;
	column-gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.bft-cards--feature .bft-card__img { grid-row: 1 / span 5; margin: 0; max-width: 420px; }
.bft-cards--feature .bft-card__title { font-size: clamp(2rem, 3.5vw, 3rem); }
.bft-cards--feature .bft-card__meta { align-self: end; }
.wp-block-query-pagination { margin-top: 3.5rem; gap: 1rem; font-size: var(--wp--preset--font-size--label); letter-spacing: 0.18em; text-transform: uppercase; }
.wp-block-query-pagination a { color: var(--bft-ink); }

/* split sections */
.bft-split { gap: clamp(2.5rem, 6vw, 6rem); }
.bft-split--top { align-items: flex-start !important; }
.bft-split--top > .wp-block-column { align-self: flex-start; }
.bft-split__img,
.bft-immagine { margin: 0; }
.bft-split__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 78% 50%; display: block; }
.bft-map img { width: 100%; height: auto; display: block; margin-top: 2rem; }
.bft-prose-field p { margin: 0 0 1.25rem; }
.eyebrow-title { color: var(--bft-primary); margin: 0 0 1rem; font-family: var(--wp--preset--font-family--jost); }
.contact-line { font-family: var(--bft-serif); font-size: 1.625rem; line-height: 1.3; margin: 0 0 0.75rem; }

/* services */
.bft-servizi { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bft-rule); }
.bft-servizi__item { padding: 1.5rem 0; border-bottom: 1px solid var(--bft-rule); }
.bft-servizi__q { font-family: var(--bft-serif); font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.35rem; }
.bft-servizi__a { margin: 0; color: var(--bft-muted); }

/* reviews */
/* reviews carousel: a scroll-snap track; plugin bft-lingue's recensioni.js adds arrows and dots */
.bft-recensioni { --bft-rec-gap: clamp(2rem, 4vw, 4rem); }
.bft-recensioni__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--bft-rec-gap)) / 2);
	gap: var(--bft-rec-gap);
	align-items: start;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.bft-recensioni__track::-webkit-scrollbar { display: none; }
.bft-recensioni__track:focus-visible { outline: 1px solid var(--bft-copper); outline-offset: 6px; }
.bft-recensioni__item { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--bft-rule); scroll-snap-align: start; }
.bft-recensioni__stars { color: var(--bft-copper); letter-spacing: 0.2em; font-size: 0.875rem; }
.bft-recensioni blockquote { margin: 1rem 0 1.25rem; font-size: 1rem; line-height: 1.7; }
.bft-recensioni blockquote p { margin: 0 0 0.9rem; }
.bft-recensioni blockquote p:last-child { margin-bottom: 0; }
.is-carousel .bft-recensioni__text { max-height: calc(1.7em * 9); overflow: hidden; }
.is-carousel .is-long:not(.is-open) .bft-recensioni__text {
	-webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
	mask-image: linear-gradient(180deg, #000 65%, transparent);
}
.is-carousel .is-open .bft-recensioni__text { max-height: none; }
.bft-recensioni__more {
	margin: -0.25rem 0 1.25rem;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	color: var(--bft-ink);
	font: 500 var(--wp--preset--font-size--label) / 1.3 var(--wp--preset--font-family--jost);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
}
.bft-recensioni__more:hover,
.bft-recensioni__more:focus-visible { color: var(--bft-copper); }
.bft-recensioni__more[hidden],
.bft-recensioni__nav[hidden] { display: none; }
.bft-recensioni figcaption { color: var(--bft-primary); }
.bft-recensioni__name::before { content: "\2014\00a0"; }
.bft-recensioni__trip { display: block; margin-top: 0.4rem; color: var(--bft-muted); text-decoration: none; }
.bft-recensioni__trip:hover { color: var(--bft-copper); }
.bft-recensioni__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}
.bft-recensioni__dots { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bft-recensioni__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bft-ink) 25%, transparent);
	cursor: pointer;
	transition: width 0.35s ease, background-color 0.35s ease;
}
.bft-recensioni__dot[aria-current="true"] { width: 28px; background: var(--bft-copper); }
.bft-recensioni__arrows { display: flex; gap: 0.75rem; }
.bft-recensioni__arrow {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--bft-ink) 35%, transparent);
	border-radius: 0;
	background: transparent;
	color: var(--bft-ink);
	font: 400 1.125rem / 1 var(--wp--preset--font-family--jost);
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.bft-recensioni__arrow:hover:not(:disabled),
.bft-recensioni__arrow:focus-visible { background: var(--bft-ink); border-color: var(--bft-ink); color: var(--bft-cream); }
.bft-recensioni__arrow:disabled { opacity: 0.3; cursor: default; }
@media (prefers-reduced-motion: reduce) {
	.bft-recensioni__dot,
	.bft-recensioni__arrow { transition: none; }
}

/* forms (Contact Form 7) */
.wpcf7 form { display: grid; gap: 1.5rem; }
.wpcf7 form > p { margin: 0; }
.wpcf7 label { display: block; color: var(--bft-muted); }
.band--dark .wpcf7 label { color: color-mix(in srgb, var(--bft-cream) 70%, transparent); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 0.6rem;
	padding: 0.65rem 0;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.0625rem;
	letter-spacing: 0;
	text-transform: none;
}
.wpcf7 textarea { height: 10rem; min-height: 6rem; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: none; border-bottom-color: currentColor; }
.wpcf7 input[type="submit"] {
	justify-self: start;
	padding: 16px 34px;
	border: 0;
	border-radius: 2px;
	background: var(--bft-ink);
	color: var(--bft-cream);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--bft-primary); }
.band--dark .wpcf7 input[type="submit"] { background: var(--bft-cream); color: var(--bft-ink); }
.band--dark .wpcf7 input[type="submit"]:hover { background: var(--bft-copper); color: var(--bft-ink); }
.wpcf7-spinner { margin: 0 0 0 1rem; }
.wpcf7-not-valid-tip { font-size: 0.875rem; margin-top: 0.4rem; color: #b3261e; }
.band--dark .wpcf7-not-valid-tip { color: #f2b8b5; }
/* privacy consent: plain sentence, not an uppercase field label */
.wpcf7 .wpcf7-acceptance label {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
}
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance input { margin-top: 0.2rem; accent-color: var(--bft-copper); flex: none; }
.wpcf7 .wpcf7-acceptance a { color: inherit; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 0.9rem 1rem; border-width: 1px; font-size: 0.9375rem; }
.bft-newsletter .wpcf7 form { grid-template-columns: 1fr 1fr; align-items: end; }
.bft-newsletter .wpcf7 form > p:has(input[type="submit"]),
.bft-newsletter .wpcf7 .wpcf7-response-output { grid-column: 1 / -1; }

/* buttons */
.wp-block-button.is-style-light .wp-element-button { background: var(--bft-cream); color: var(--bft-ink); }
.wp-block-button.is-style-light .wp-element-button:hover { background: var(--bft-copper); color: var(--bft-ink); }

/* trip sheet */
.bft-scheda { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.bft-scheda__title {
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	letter-spacing: 0.06em;
	padding-bottom: 1.25rem;
	margin: 0 0 2.5rem;
	border-bottom: 1px solid var(--bft-rule);
}
.bft-stato__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 2rem;
}
.bft-stato__item { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.bft-stato__ring {
	--deg: calc(var(--bft-p) * 3.6deg);
	width: 7.5rem;
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background:
		radial-gradient(closest-side, var(--bft-sand) calc(100% - 3px), transparent calc(100% - 2px)),
		conic-gradient(var(--bft-primary) var(--deg), var(--bft-rule) 0);
}
.bft-stato__value { font-family: var(--bft-serif); font-size: 1.875rem; }
.bft-dettagli dl { margin: 0; }
.bft-dettagli__row {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 1rem 3rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--bft-rule);
}
.bft-dettagli dt { color: var(--bft-primary); padding-top: 0.3rem; }
.bft-dettagli dd { margin: 0; }

/* article prose */
.bft-prose > * { margin-block: 0 1.4rem; }
.bft-prose h2,
.bft-prose h3,
.bft-prose h4 { margin-top: 3rem; margin-bottom: 1rem; }
.bft-prose h4 { font-size: 1.625rem; }
.bft-prose .wp-block-image,
.bft-prose .wp-block-columns { margin-block: 2.5rem; }
.bft-prose .wp-block-image img { width: 100%; height: auto; }
.bft-galleria-articolo { margin-top: 3rem; }
.bft-tags { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--bft-rule); color: var(--bft-muted); }
.bft-tags a { color: var(--bft-muted); text-decoration: none; }
.bft-tags a:hover { color: var(--bft-primary); }
/* Galleries (Galleria page, trips, articles): masonry columns, every photo whole. */
.bft-gallery.wp-block-gallery { display: block; columns: 3; column-gap: 1rem; }
.bft-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.bft-gallery.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) { display: block; width: 100%; height: auto; margin: 0 0 1rem; break-inside: avoid; }
.bft-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img,
.bft-gallery.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { flex: none; width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; contain: none; }
@media (max-width: 600px) { .bft-gallery.wp-block-gallery { columns: 2; } }

/* === footer === */
.site-footer { padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.site-footer a { color: var(--bft-ink); text-decoration: none; }
.site-footer a:hover { color: var(--bft-primary); }
.site-footer .eyebrow { color: var(--bft-muted); margin-bottom: 1.25rem; }
.site-footer__tagline { font-family: var(--bft-serif); font-size: 1.75rem; line-height: 1.2; max-width: 16ch; margin-top: 1.5rem; }
.site-footer__nav { gap: 0.6rem; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.site-footer__cols { gap: clamp(2rem, 5vw, 5rem); }
.site-footer__social { margin-top: 1.25rem; }
.site-footer__social .wp-social-link { color: var(--bft-ink); }
.site-footer__social .wp-social-link:hover { color: var(--bft-primary); }
.site-footer__social .wp-social-link svg { width: 1.5rem; height: 1.5rem; }
.site-footer__bottom {
	margin-top: clamp(3rem, 6vw, 5rem) !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bft-rule);
	font-size: 0.8125rem;
	color: var(--bft-muted);
	gap: 0.5rem 2rem;
}
.site-footer__bottom p { margin: 0; }

/* === motion === */
.bft-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.bft-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.bft-reveal { opacity: 1; transform: none; }
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

/* === responsive === */
@media (max-width: 1100px) {
	.site-header__nav { gap: 0.75rem; }
}
@media (max-width: 781px) {
	.site-header { padding-block: 1rem; }
	.is-scrolled .site-header { padding-block: 0.6rem; }
	.bft-lingue { border-left: 0; padding-left: 0; }
	.bft-recensioni__track { grid-auto-columns: 86%; }
	.bft-cards--feature .wp-block-post { display: flex; }
	.bft-cards--feature .bft-card__img { max-width: none; margin-bottom: 1.25rem; }
	.bft-dettagli__row { grid-template-columns: 1fr; gap: 0.4rem; }
	.bft-newsletter .wpcf7 form { grid-template-columns: 1fr; }
	.bft-hero--home.wp-block-cover { align-items: flex-end; }
	.bft-split__img img { aspect-ratio: 4 / 3; }
}

/* === compact pages (Chi sono) === */
.bft-topbar { min-height: clamp(96px, 11vw, 132px); }
.band--about { padding-block: clamp(4rem, 8vw, 7rem); }
.bft-about-row { gap: clamp(2.5rem, 6vw, 5.5rem); }
.bft-about-row + .bft-about-row { margin-top: clamp(3.5rem, 7vw, 6rem) !important; }
.about-name {
	font-family: var(--bft-serif);
	font-weight: 400;
	font-size: clamp(2.5rem, 4.5vw, 3.75rem);
	line-height: 1.05;
	margin: 0 0 1.75rem;
}
.bft-about-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.band--about .bft-prose-field { font-size: 1.0625rem; }
@media (max-width: 781px) {
	/* keep photo-then-text order on the second row too */
	.bft-about-row--2 { flex-direction: column-reverse; }
}

/* === MailPoet sign-up (newsletter band) === */
.bft-modulo--newsletter .mailpoet_form { padding: 0 !important; }
.bft-modulo--newsletter form.mailpoet_form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: end;
}
.bft-modulo--newsletter .mailpoet_paragraph { margin: 0 !important; }
.bft-modulo--newsletter .mailpoet_paragraph:has(.mailpoet_submit),
.bft-modulo--newsletter .mailpoet_message { grid-column: 1 / -1; }
.bft-modulo--newsletter .mailpoet_text_label {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bft-cream) 70%, transparent);
}
.bft-modulo--newsletter .mailpoet_required { color: var(--bft-copper); }
.bft-modulo--newsletter .mailpoet_paragraph:has(.mailpoet_checkbox) { grid-column: 1 / -1; }
.bft-modulo--newsletter fieldset { margin: 0; padding: 0; border: 0; }
/* the label mixes text and a link, so the box is positioned, not flexed */
.bft-modulo--newsletter .mailpoet_checkbox_label {
	display: block !important;
	position: relative;
	padding-left: 1.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--bft-cream) 80%, transparent);
}
.bft-modulo--newsletter .mailpoet_checkbox { position: absolute; left: 0; top: 0.2rem; margin: 0; accent-color: var(--bft-copper); }
.bft-modulo--newsletter .mailpoet_checkbox_label a { color: inherit; }
.bft-modulo--newsletter input.mailpoet_text {
	margin-top: 0.6rem;
	padding: 0.65rem 0;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--bft-cream) 35%, transparent);
	border-radius: 0;
	background: transparent;
	color: var(--bft-cream);
	font: inherit;
}
.bft-modulo--newsletter input.mailpoet_text:focus { outline: none; border-bottom-color: var(--bft-cream); }
.bft-modulo--newsletter input.mailpoet_submit {
	width: auto !important;
	padding: 16px 34px;
	border: 0;
	border-radius: 2px;
	background: var(--bft-cream);
	color: var(--bft-ink);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.bft-modulo--newsletter input.mailpoet_submit:hover { background: var(--bft-copper); }
.bft-modulo--newsletter .mailpoet_validate_success { color: var(--bft-cream) !important; padding: 0 !important; }
.bft-modulo--newsletter .mailpoet_validate_error,
.bft-modulo--newsletter .parsley-errors-list { color: #f2b8b5 !important; font-size: 0.875rem; }
@media (max-width: 781px) {
	.bft-modulo--newsletter form.mailpoet_form { grid-template-columns: 1fr; }
}

/* === contact page (layout of the original site) === */
.contact-intro { padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; border-bottom: 1px solid var(--bft-rule); }
.contact-intro .band-title--serif { margin-bottom: 0.75rem; }
.contact-intro .lead { margin: 0; max-width: 46ch; }
.contact-cols { gap: clamp(2.5rem, 6vw, 6rem); }
.contact-office-title { font-family: var(--bft-serif); font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 1.75rem; }
.contact-office .contact-line {
	position: relative;
	padding-left: 2.25rem;
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 1rem;
	line-height: 1.5;
}
.contact-office .contact-line::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05rem;
	width: 1.35rem;
	height: 1.35rem;
	background: var(--bft-primary);
	-webkit-mask: var(--bft-icon) center / contain no-repeat;
	mask: var(--bft-icon) center / contain no-repeat;
}
.contact-line--address { --bft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z'/%3E%3C/svg%3E"); }
.contact-line--email { --bft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75'/%3E%3C/svg%3E"); }
.contact-line--web { --bft-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 15.75c-2.676 0-5.216-.584-7.499-1.632m0 0A8.959 8.959 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418'/%3E%3C/svg%3E"); }
.contact-office .contact-line a { color: var(--bft-ink); text-decoration: none; }
.contact-office .contact-line a:hover { color: var(--bft-primary); text-decoration: underline; }
/* boxed fields and a full-width button, as on the original form */
.contact-form .wpcf7 input[type="text"],
.contact-form .wpcf7 input[type="email"],
.contact-form .wpcf7 textarea {
	padding: 0.85rem 1rem;
	border: 1px solid color-mix(in srgb, var(--bft-ink) 25%, transparent);
	border-radius: 2px;
	background: color-mix(in srgb, #fff 55%, var(--bft-cream));
}
.contact-form .wpcf7 input:focus,
.contact-form .wpcf7 textarea:focus { border-color: var(--bft-ink); }
.contact-form .wpcf7 textarea { height: 12rem; }
.contact-form .wpcf7 input[type="submit"] { justify-self: stretch; width: 100%; box-sizing: border-box; background: var(--bft-copper); color: var(--bft-ink); }
.contact-form .wpcf7 input[type="submit"]:hover { background: var(--bft-ink); color: var(--bft-cream); }
.contact-form .wpcf7 form > p:has(input[type="submit"]) { position: relative; }
.contact-form .wpcf7 .wpcf7-spinner { position: absolute; right: 1rem; top: 50%; margin: -12px 0 0; }
