/*
Theme Name: Beauty09
Theme URI: https://beauty09.it
Author: Beauty 09
Description: Custom block theme for Beauty 09 — B2B beauty distribution site and order portal. White, clean, professional, with pink brand accents.
Version: 0.18.2
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beauty09
*/

/* All design tokens live in theme.json. Keep this file minimal. */

/* Header bar with subtle separation.
   No backdrop-filter here: an ancestor with backdrop-filter becomes the
   containing block of position:fixed descendants, so the mobile overlay menu
   was sized on the 68px header (only "Home" visible, close button off-screen,
   audit 2026-11-17 B1-01). The group has an opaque inline white background
   anyway, so the blur was never visible.
   Sticky lives on the template-part <header> (see PAGE LAYOUT below): on this
   inner group it never engaged, its parent is exactly as tall as it is.
   position:relative keeps the stacking the mobile overlay was tested with. */
.b09-header {
	position: relative;
	z-index: 100;
	border-bottom: 1px solid #f0f0f0;
	background: rgba(255, 255, 255, 0.92);
}

/* Hero: soft blush radial glows on white, image gets a warm shadow. */
.b09-hero {
	background:
		radial-gradient(60rem 32rem at 85% -10%, var(--wp--preset--color--accent-soft) 0%, rgba(253, 237, 243, 0) 65%),
		radial-gradient(40rem 26rem at -10% 70%, var(--wp--preset--color--accent-soft) 0%, rgba(253, 237, 243, 0) 60%), /* inside the band: no hard edge at the bottom (B5-19) */
		var(--wp--preset--color--base);
}
.b09-hero-image img,
.b09-presentazione-img img {
	box-shadow: 0 24px 60px rgba(224, 0, 88, 0.10);
}

/* Section cards: soft resting shadow + sober lift on hover (desktop only). */
.b09-card {
	box-shadow: 0 6px 24px rgba(80, 104, 112, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.b09-card-shop {
	background:
		radial-gradient(36rem 22rem at 100% 0%, #fbd9e6 0%, rgba(251, 217, 230, 0) 70%),
		var(--wp--preset--color--accent-soft);
}
@media (hover: hover) {
	.b09-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 16px 40px rgba(80, 104, 112, 0.14);
	}
}

/* Media cards: image flush with the rounded top edge. */
.b09-card-media {
	overflow: hidden;
}
.b09-card-media .b09-card-img a {
	display: block; /* linked image: keep the anchor full-width so the img fills the card */
	width: 100%;
}
.b09-card-media .b09-card-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1; /* wider than both 16:9 and 4:3 sources: crops only top/bottom, never the printed logo at the sides (B1-09) */
	object-fit: cover;
	object-position: center top; /* client graphics carry their titles at the top */
}

/* Whole-card click (non-technical users tap the image or the title, not the
   small text link). Home tiles: image and title are real links in the markup;
   keep the title looking like a heading. Query cards (news/products): the
   title link is stretched over the card. NOT applied to cards holding
   tel/mail links (accidental calls) or PDF buttons (explicit action). */
.b09-card-media h3 a {
	color: inherit;
	text-decoration: none;
}
.wp-block-post-template .b09-card {
	position: relative;
}
.wp-block-post-template .b09-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Scroll-reveal: elements start slightly shifted, fade in once visible.
   The JS adds .b09-pre on load and .is-in when they enter the viewport;
   without JS (or with reduced motion) everything stays fully visible. */
.b09-pre {
	opacity: 0;
	transform: translateY(16px);
}
.b09-pre.is-in {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.b09-card.b09-pre.is-in {
	transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Desktop navigation: airy spacing, accent underline on hover. */
.b09-header .wp-block-navigation a {
	text-decoration: none;
	padding: 0.35rem 0.15rem;
	transition: color 0.15s ease;
}
.b09-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}

/* Dropdown (Servizi): modern floating card instead of the default square box.
   Desktop bar only: inside the open overlay menu the sub-items stay a plain
   indented list (B1-21). min-width needs !important against the core hover
   and focus-within rules (0,5,0), or "Centri estetici chiavi in mano" wraps
   (B1-13). */
.b09-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	border: none !important;
	border-radius: 16px;
	background: var(--wp--preset--color--base) !important;
	box-shadow: 0 14px 40px rgba(80, 104, 112, 0.16);
	padding: 0.5rem !important;
	min-width: 270px !important;
	margin-top: 0.5rem;
}
.b09-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a {
	border-radius: 10px;
	padding: 0.6rem 0.85rem !important;
	transition: background 0.15s ease, color 0.15s ease;
}
.b09-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container a:hover {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent-strong); /* 5.47:1 on the tint (accent is 4.31) */
}

/* Uniform cropped photos: same height everywhere, no layout chaos. */
.b09-photo img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	border-radius: 20px;
	display: block;
}
.b09-photo-low img {
	object-position: center 75%; /* crop away dominant sky */
}
.b09-photo-tall img {
	height: 420px;
}
@media (max-width: 781px) {
	.b09-photo img {
		height: 220px;
	}
}

/* Sede cards (Contatti): photo on top, info below, one per location. */
.b09-sede-card {
	background: var(--wp--preset--color--base);
	border: 1px solid #f0f0f0;
	border-radius: 24px;
	overflow: hidden;
	height: 100%; /* equal heights when side by side */
}
.b09-sede-card .b09-photo img {
	border-radius: 0;
}

/* Staff panel: role icons + counts instead of a photo (data from client copy). */
.b09-staff-panel {
	box-sizing: border-box;
	height: 340px;
	background:
		radial-gradient(30rem 18rem at 100% 0%, #fbd9e6 0%, rgba(251, 217, 230, 0) 70%),
		var(--wp--preset--color--accent-soft);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	align-content: center;
	padding: 1.75rem;
}
.b09-staff-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
}
.b09-staff-item svg {
	width: 32px;
	height: 32px;
	color: var(--wp--preset--color--accent);
}
.b09-staff-num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.35rem;
	color: var(--wp--preset--color--accent);
	line-height: 1;
}
.b09-staff-label {
	font-size: 0.82rem;
	color: var(--wp--preset--color--slate);
	line-height: 1.3;
}
@media (max-width: 781px) {
	.b09-staff-panel {
		height: auto;
		min-height: 220px;
		padding: 1.5rem;
	}
}

/* Team cards: quiet, name first, a single pink accent. */
.b09-team-card {
	background: var(--wp--preset--color--base);
	border: 1px solid #f0f0f0;
	border-radius: 20px;
	height: 100%; /* equal heights when side by side */
}
.b09-team-card .b09-role {
	color: var(--wp--preset--color--slate);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.b09-team-card a {
	text-decoration: none;
	font-weight: 600;
}

/* Presentation videos: rounded corners + the same warm shadow as photos.
   Capped at 900px so a wide-aligned video never fills the whole desktop screen. */
figure.wp-block-video.b09-video {
	max-width: 900px !important; /* WP layout CSS for .alignwide is more specific */
	margin-left: auto;
	margin-right: auto;
}
.b09-video video {
	display: block;
	width: 100%;
	border-radius: 28px;
	box-shadow: 0 24px 60px rgba(224, 0, 88, 0.10);
}

/* Photos shown at their natural aspect ratio (no crop), just rounded. */
.b09-photo-fit img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

/* Project gallery (Centri): 2x2 grid of the 4 chosen photos on desktop;
   on mobile ALL 7 photos (.b09-extra included) crossfade automatically
   (pure CSS, no user action, no JS). 7 x 4s = 28s loop. */
.b09-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.b09-gallery figure {
	margin: 0;
}
.b09-gallery figure.b09-extra {
	display: none; /* mobile slideshow only */
}
.b09-gallery img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}
@media (max-width: 781px) {
	.b09-gallery {
		display: block;
		position: relative;
		aspect-ratio: 16 / 9;
	}
	.b09-gallery figure,
	.b09-gallery figure.b09-extra {
		display: block;
		position: absolute;
		inset: 0;
		opacity: 0;
		animation: b09-slide 28s infinite;
	}
	.b09-gallery figure:nth-child(2) { animation-delay: 4s; }
	.b09-gallery figure:nth-child(3) { animation-delay: 8s; }
	.b09-gallery figure:nth-child(4) { animation-delay: 12s; }
	.b09-gallery figure:nth-child(5) { animation-delay: 16s; }
	.b09-gallery figure:nth-child(6) { animation-delay: 20s; }
	.b09-gallery figure:nth-child(7) { animation-delay: 24s; }
}
@keyframes b09-slide {
	0% { opacity: 0; }
	3% { opacity: 1; }
	14.3% { opacity: 1; }
	17.3% { opacity: 0; }
	100% { opacity: 0; }
}
@media (max-width: 781px) and (prefers-reduced-motion: reduce) {
	.b09-gallery figure { animation: none; }
	.b09-gallery figure:first-child { opacity: 1; }
}

/* Wide-aligned standalone photos: same 900px cap as videos, centered. */
figure.wp-block-image.b09-photo-capped {
	max-width: 900px !important; /* WP layout CSS for .alignwide is more specific */
	margin-left: auto;
	margin-right: auto;
}

/* Footer link list: no bullets, airy line height. */
.b09-footer-list {
	list-style: none;
	padding-left: 0;
}
.b09-footer-list li {
	margin-bottom: 0;
}
.b09-footer-list a {
	display: inline-block;
	padding: 0.35rem 0; /* ~31px tall hit area instead of 17px, same visual rhythm */
	text-decoration: none;
	color: var(--wp--preset--color--slate);
}
.b09-footer-list a:hover {
	color: var(--wp--preset--color--accent);
}

/* WhatsApp share pill on single posts (href prefilled by share.js). */
.b09-wa-share {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #25d366;
	color: var(--wp--preset--color--contrast); /* 8.68:1; white text was 1.98:1 */
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.65rem 1.4rem;
	transition: transform 0.15s ease;
}
.b09-wa-share:hover {
	transform: scale(1.03);
	color: var(--wp--preset--color--contrast);
}

/* Single post footer row: thin divider above share + back link. */
.b09-article-footer {
	border-top: 1px solid #f0f0f0;
}
.b09-article-footer a:not(.b09-wa-share) {
	text-decoration: none;
	font-weight: 600;
}

/* Shop search bar: big rounded field, accent pill button (mobile-first).
   The field is printed by [b09_shop_search] with the core search block's own
   classes, but not by the block: WordPress therefore does not load the block's
   stylesheet, so the field and the button are laid out here. Without this the
   button drops under the field at 375px. */
.b09-shop-search {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1.5rem;
}
.b09-shop-search .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	max-width: 100%;
}
.b09-shop-search .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	min-height: 50px;
	border: 1px solid rgba(80, 104, 112, 0.7); /* slate at 70%: 3.1:1, the old #e6e6e6 was 1.25:1 */
	border-radius: 999px;
	padding: 0.7rem 1.4rem;
	font: inherit; /* Figtree: inputs do not inherit the font, it was Arial */
	font-size: 1rem; /* 16px: no iOS zoom on focus */
	line-height: 1.3;
	background: var(--wp--preset--color--base);
}
.b09-shop-search .wp-block-search__input:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--accent);
	box-shadow: none;
}
.b09-shop-search .wp-block-search__button {
	flex: none;
	min-height: 50px;
	border: none;
	border-radius: 999px;
	padding: 0 1.6rem;
	line-height: 1;
	margin-left: 0.5rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	cursor: pointer;
}
/* The label is there for screen readers only; without the core block
   stylesheet nothing would hide it. */
.b09-shop-search .wp-block-search__label.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Shop landing: six big category cards, whole card clickable. */
.b09-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.25rem;
}
@media (min-width: 782px) {
	.b09-cat-grid {
		grid-template-columns: repeat(3, 1fr); /* 3 wide cards per row on desktop */
		gap: 1.5rem;
	}
}
.b09-cat-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2.5rem;
	min-height: 150px;
	padding: 1.75rem;
	border-radius: 24px;
	background:
		radial-gradient(24rem 14rem at 100% 0%, #fbd9e6 0%, rgba(251, 217, 230, 0) 70%),
		var(--wp--preset--color--accent-soft);
	text-decoration: none;
	box-shadow: 0 6px 24px rgba(80, 104, 112, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
	.b09-cat-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 16px 40px rgba(80, 104, 112, 0.14);
	}
}
.b09-cat-card .b09-cat-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(224, 0, 88, 0.10);
}
.b09-cat-card .b09-cat-icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--wp--preset--color--accent);
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.b09-cat-card .b09-cat-bottom {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.b09-cat-card .b09-cat-name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.35rem;
	line-height: 1.25;
	color: var(--wp--preset--color--contrast);
}
.b09-cat-card .b09-cat-more {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--accent-strong); /* 5.47:1 on the tint (accent is 4.31) */
}

/* Shop landing: department heading above a group of category cards
   (rendered by [b09_shop_categories] only when more than one department
   is visible). */
.b09-cat-dept {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	margin: 2.5rem 0 1rem;
}
.b09-cat-dept:first-child {
	margin-top: 0;
}

/* Category archive: chips linking to the sub-categories
   (rendered by [b09_subcategories]). */
.b09-subcats-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	margin: 0 0 0.75rem;
	text-align: center;
}
.b09-subcat-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}
.b09-subcat-chip {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--wp--preset--color--accent-soft);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
@media (hover: hover) {
	.b09-subcat-chip:hover {
		border-color: var(--wp--preset--color--accent);
		background: var(--wp--preset--color--accent-soft);
		color: var(--wp--preset--color--accent-strong);
	}
}

/* Product cards (category and search grids): uniform image crop. */
.b09-prod-card .wp-block-post-featured-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}
.b09-prod-card a {
	text-decoration: none;
}

/* =========================================================================
   NEGOZIO A ELENCO — reparto > categoria > sottocategoria > righe prodotto.
   Markup from beauty09-core/includes/shop-list.php:
   [b09_shop_back] [b09_shop_nav] [b09_product_list].
   Nothing here styles anything outside the shop.
   ========================================================================= */

/* --- Category archive header ---------------------------------------------
   The shortcode prints eyebrow and back link together; the flex order slots
   the template's own H1 between them (eyebrow / title / back). */
.b09-shop-head {
	display: flex;
	flex-direction: column;
}
.b09-shop-head > * {
	order: 1;
}
.b09-shop-head > .b09-shop-eyebrow {
	order: 0;
}
.b09-shop-head > .b09-shop-back {
	order: 0; /* above the title, where the repeated eyebrow was (B5-12) */
}
.b09-shop-eyebrow {
	margin: 0 0 0.25rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.b09-shop-back {
	margin: 0 0 0.25rem;
	text-align: center;
	font-weight: 600;
}
.b09-shop-back a {
	display: inline-flex;
	align-items: center;
	min-height: 44px; /* thumb-sized, was a 19px text line */
	padding: 0 0.5rem;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
/* The search field closes the header block: eyebrow / title / back / search. */
.b09-shop-head > .b09-shop-search {
	order: 3;
	width: 100%; /* auto margins in a flex column would shrink it to its content */
	margin-top: 1.25rem;
}

/* --- Category cards: departments, categories, sub-categories ---------------
   Picture (or the designed brand fallback) + name + count line, whole card is
   the link. Phone: one compact card per row, thumbnail left, so seven
   sub-categories fit on a screen. Desktop: a real grid, picture on top. */
.b09-shop-nav-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 1rem;
	text-align: center;
}
.b09-shop-cards {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.75rem;
}
.b09-shop-card {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 0.9rem;
	padding: 0.75rem;
	border: 1px solid #eee;
	border-radius: 18px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.b09-shop-card-media {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--neutral);
}
.b09-shop-card-media.is-fallback {
	display: grid;
	place-items: center;
	background:
		radial-gradient(12rem 8rem at 100% 0%, #fbd9e6 0%, rgba(251, 217, 230, 0) 70%),
		var(--wp--preset--color--accent-soft);
}
/* Two classes on purpose: WooCommerce's `.woocommerce img { height: auto }`
   (0,1,1) outranks a single class and left a grey band under the phone
   thumbnails (72x48 image in a 72x72 box, audit 2026-11-17 B5-01). */
.b09-shop-card .b09-shop-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.b09-shop-card-icon svg {
	display: block;
	width: 30px;
	height: 30px;
	stroke: var(--wp--preset--color--accent);
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.b09-shop-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}
.b09-shop-card-name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.b09-shop-card-count {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--slate);
}
.b09-shop-card-go {
	justify-self: end;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-size: 1.25rem;
	line-height: 1;
}
@media (hover: hover) {
	.b09-shop-card:hover {
		transform: translateY(-3px);
		border-color: transparent;
		box-shadow: 0 14px 32px rgba(80, 104, 112, 0.14);
	}
}

@media (min-width: 782px) {
	.b09-shop-nav-title {
		font-size: 1.875rem;
		margin-bottom: 1.5rem;
	}
	.b09-shop-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
	/* One or two cards must not stretch across the whole screen. */
	.b09-shop-cards.is-count-1,
	.b09-shop-cards.is-count-2 {
		justify-content: center;
		margin-left: auto;
		margin-right: auto;
	}
	.b09-shop-cards.is-count-1 {
		grid-template-columns: minmax(0, 380px);
	}
	.b09-shop-cards.is-count-2 {
		grid-template-columns: repeat(2, minmax(0, 380px));
	}
	.b09-shop-card {
		grid-template-columns: minmax(0, 1fr);
		align-items: stretch;
		gap: 0;
		padding: 0;
		overflow: hidden;
		border-radius: 22px;
	}
	.b09-shop-card-media {
		border-radius: 0;
		aspect-ratio: 3 / 2;
	}
	.b09-shop-card-icon svg {
		width: 56px;
		height: 56px;
	}
	.b09-shop-card-body {
		padding: 1.1rem 1.25rem 1.25rem;
	}
	.b09-shop-card-name {
		font-size: 1.25rem;
	}
	/* The chevron belongs to the phone row; on desktop the card is the target. */
	.b09-shop-card-go {
		display: none;
	}
}

/* --- Shop landing: shorter hero so the cards show without scrolling -------- */
@media (min-width: 782px) {
	.b09-shop-hero {
		padding-top: 2rem !important;
		padding-bottom: 1.5rem !important;
	}
	.b09-shop-hero .b09-shop-search {
		margin-top: 1rem;
	}
	.b09-shop-cards-band {
		padding-top: 1.5rem !important;
		padding-bottom: 0 !important;
	}
}

/* --- Switching sub-category: sidebar tree (>=1024px) ----------------------- */
.b09-shop-tree {
	display: none;
}
.b09-tree-dept {
	display: block;
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.b09-tree-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.b09-tree-list .b09-tree-list {
	margin: 0.15rem 0 0.5rem 0.75rem;
	padding-left: 0.75rem;
	border-left: 1px solid #ececec;
}
.b09-tree-link {
	display: block;
	padding: 0.4rem 0.6rem;
	border-radius: 10px;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.b09-tree-link.is-current {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--contrast); /* 15.2:1; pink on the tint was 4.31 */
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--wp--preset--color--accent);
}
@media (hover: hover) {
	.b09-tree-link:hover {
		background: var(--wp--preset--color--neutral);
	}
	.b09-tree-link.is-current:hover {
		background: var(--wp--preset--color--accent-soft);
	}
}

/* --- Switching sub-category: chips (<1024px) ------------------------------- */
.b09-shop-chips {
	margin: 0 0 1.25rem;
}
.b09-chips-track {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	scrollbar-width: none;
	/* Edge-to-edge track: chips slide out under the screen edge instead of
	   stopping 20px short of it, which read as "cut" rather than "scrolls". */
	margin-inline: calc(-1 * var(--wp--style--root--padding-left));
	padding: 0.15rem var(--wp--style--root--padding-left) 0.6rem;
	scroll-padding-inline: var(--wp--style--root--padding-left);
	-webkit-overflow-scrolling: touch;
}
.b09-chips-track::-webkit-scrollbar {
	display: none;
}
.b09-shop-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 1rem;
	border: 1px solid #e9e9e9;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
}
/* Current chip: filled pink pill, white text (4.87:1); pink on the tint was 4.31. */
.b09-shop-chip.is-current {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}
@media (min-width: 1024px) {
	.b09-shop-chips {
		display: none;
	}
	.b09-shop-tree {
		display: block;
		position: sticky;
		top: 5.5rem;
	}
	/* Sidebar on the left, rows on the right. */
	.b09-plist-wrap.has-tree {
		display: grid;
		grid-template-columns: 15rem minmax(0, 1fr);
		gap: 2.5rem;
		align-items: start;
	}
	.b09-plist-wrap.has-tree .b09-plist-main {
		margin-left: 0;
		margin-right: 0;
	}
}
/* Between 1024 and 1200 the sidebar and the list share a narrow screen: the
   sidebar gives up room so the product name keeps enough of it (measured at
   1024: 101px for the name before this rule, 240px after). */
@media (min-width: 1024px) and (max-width: 1199.98px) {
	.b09-plist-wrap.has-tree {
		grid-template-columns: 12rem minmax(0, 1fr);
		gap: 2rem;
	}
	.b09-tree-link {
		padding-left: 0.4rem;
		padding-right: 0.4rem;
		font-size: 0.875rem;
	}
	/* Approved customers only: the guest list has three columns of its own and
	   must keep them, or its header would stop lining up with its rows. */
	.b09-plist-wrap.has-tree .b09-plist:not(.is-guest) .b09-plist-head,
	.b09-plist-wrap.has-tree .b09-plist:not(.is-guest) .b09-row {
		grid-template-columns: 6rem minmax(0, 1fr) minmax(5rem, 6.5rem) minmax(5rem, 6.5rem) 8rem;
		column-gap: 0.75rem;
	}
}

/* --- Product list: shared ------------------------------------------------- */
/* The rows are capped and centred on a desktop: stretched across 1440px the
   code, the name and the prices end up at opposite edges of the screen. */
@media (min-width: 782px) {
	.b09-plist-main {
		max-width: 960px;
		margin-left: auto;
		margin-right: auto;
	}
}
.b09-plist-cta {
	display: block;
	margin: 0 0 1rem;
	text-align: center;
	text-decoration: none;
}
.b09-plist-pending {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--contrast);
	font-size: 0.9375rem;
}
.b09-plist-count {
	margin: 0 0 0.6rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--slate);
}
.b09-plist-head {
	padding: 0 0.125rem 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--slate); /* was a 2px black rule, the heaviest line on the page (B5-20) */
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}
.b09-row {
	position: relative;
	padding: 0.85rem 0.125rem;
	border-bottom: 1px solid #e9e9e9;
}
/* The UA rule for [hidden] loses against .b09-row's own display. */
.b09-plist .b09-row[hidden] {
	display: none;
}
@media (hover: hover) {
	.b09-row {
		transition: background-color 0.15s ease;
	}
	.b09-row:hover {
		background-color: var(--wp--preset--color--neutral);
	}
}
.b09-row-sku {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--accent);
}
.b09-row-name {
	min-width: 0;
	overflow-wrap: anywhere; /* real names are long uppercase strings */
}
.b09-row-link {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}
/* Whole row tappable, add button excluded (it sits on a higher layer). */
.b09-row-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.b09-row-price {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.b09-row-price-label {
	font-size: 0.75rem;
	color: var(--wp--preset--color--slate);
}
.b09-row-price-value {
	font-weight: 700;
	font-size: 1rem;
	white-space: nowrap;
}
.b09-row-price.is-on-request {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}
.b09-row-action {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.b09-row-chevron {
	padding: 0 0.35rem;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--slate);
}
.b09-row-add {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
}
.b09-row-add-icon {
	display: block;
	margin-top: -2px;
}

/* --- In-row quantity: "+" becomes "− N +" once the product is in the cart -- */
.b09-row-cart {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.b09-row-cart.is-busy {
	opacity: 0.55;
	pointer-events: none;
}
.b09-row-stepper {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.15rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-soft);
}
.b09-row-stepper[hidden],
.b09-row-add[hidden] {
	display: none;
}
.b09-qty-btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: 1.375rem;
	line-height: 1;
	cursor: pointer;
}
.b09-qty-value {
	min-width: 2rem;
	text-align: center;
	font-weight: 700;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--contrast);
}
.b09-row-add:focus-visible,
.b09-qty-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}
.b09-plist-more-wrap {
	margin: 1.25rem 0 0;
	text-align: center;
}
.b09-plist-more {
	border: none;
	cursor: pointer;
}
.b09-plist-empty {
	margin: 2rem 0;
	text-align: center;
	color: var(--wp--preset--color--slate);
}
.b09-plist-empty .b09-plist-cta {
	display: inline-block;
	margin: 1rem 0 0;
}

/* --- Product list: phone layout (code / name / prices, button on the right) */
.b09-plist-head,
.b09-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 0.75rem;
	align-items: center;
}
.b09-head-code,
.b09-head-name,
.b09-head-price {
	display: none;
}
.b09-head-mobile {
	grid-column: 1;
}
.b09-head-action {
	grid-column: 2;
}
.b09-row-sku {
	grid-column: 1;
	grid-row: 1;
}
.b09-row-name {
	grid-column: 1;
	grid-row: 2;
}
.b09-row-prices {
	grid-column: 1;
	grid-row: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 1.25rem;
	margin-top: 0.35rem;
}
.b09-row-action {
	grid-column: 2;
	grid-row: 1 / span 3;
}

/* --- Product list: desktop layout (a real table: code | name | prices | +) */
@media (min-width: 782px) {
	.b09-plist-head,
	.b09-row {
		/* The price columns give way first when the sidebar takes its 15rem:
		   the product name must never be the one that gets squeezed. */
		/* 8rem in the last column: the stepper is 122px wide and must not be
		   clipped when a row already holds a quantity. */
		grid-template-columns: 7rem minmax(0, 1fr) minmax(5.5rem, 8rem) minmax(5.5rem, 8rem) 8rem;
		column-gap: 1rem;
	}
	.b09-plist.is-guest .b09-plist-head,
	.b09-plist.is-guest .b09-row {
		grid-template-columns: 7.5rem minmax(0, 1fr) 4.5rem;
	}
	.b09-head-mobile {
		display: none;
	}
	.b09-head-code {
		display: block;
		grid-column: 1;
	}
	.b09-head-name {
		display: block;
		grid-column: 2;
	}
	.b09-head-price {
		display: block;
	}
	.b09-head-price.is-base {
		grid-column: 3;
	}
	.b09-head-price.is-deferred {
		grid-column: 4;
	}
	.b09-head-action {
		grid-column: 5;
		text-align: center;
	}
	.b09-plist.is-guest .b09-head-action {
		grid-column: 3;
	}
	.b09-row-name {
		grid-column: 2;
		grid-row: 1;
	}
	/* The price wrapper steps aside so its two spans become real columns. */
	.b09-row-prices {
		display: contents;
	}
	.b09-row-price {
		grid-row: 1;
	}
	.b09-row-price.is-base {
		grid-column: 3;
	}
	.b09-row-price.is-deferred {
		grid-column: 4;
	}
	.b09-row-price.is-on-request {
		grid-column: 3 / span 2;
	}
	.b09-row-price-label {
		display: none;
	}
	.b09-row-action {
		grid-column: 5;
		grid-row: 1;
		justify-content: center;
	}
	.b09-plist.is-guest .b09-row-action {
		grid-column: 3;
	}
	/* Full width is right on a phone, a banner across a desktop table. Centred,
	   on the same axis as the title and the search above it (B5-11). */
	.b09-plist-cta {
		display: table;
		width: auto;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 1.25rem;
	}
}

/* Floating WhatsApp button, always reachable (mobile-first). */
.b09-whatsapp-fab {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease;
}
.b09-whatsapp-fab:hover {
	transform: scale(1.06);
	color: #fff;
}
/* On the product row lists of approved customers the "+" buttons run down the
   right edge: the FAB moves to the left there, so it never sits on top of an
   add-to-cart button. Guests have only decorative chevrons on the right, so
   for them the FAB stays put instead of covering codes and names on the left
   (audit 2026-11-17 B5-07). */
body:not(.single-product):has(.b09-plist:not(.is-guest)) .b09-whatsapp-fab {
	right: auto;
	left: 1.25rem;
}
/* Phone lists: on the left it still covered codes and names, so it slides out
   while the list scrolls down and back on scroll up (assets/js/fab.js). */
.b09-whatsapp-fab {
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.b09-whatsapp-fab.is-tucked {
	opacity: 0;
	transform: translateY(calc(100% + 1.5rem));
	pointer-events: none;
}
/* The open overlay menu is a modal (core adds .has-modal-open to <html>):
   the floating button must not sit on top of it (B1-06). */
html.has-modal-open .b09-whatsapp-fab {
	display: none;
}
/* Phone/tablet: room under the last footer line for the floating button, which
   otherwise covers "Privacy & Cookies" (B1-06). 56px button + 1.25rem offset. */
@media (max-width: 781px) {
	.b09-footer {
		padding-bottom: calc(2rem + 56px + 1.25rem) !important; /* inline 2rem from block attrs */
	}
}

/* --- Sticky cart bar (phone and tablet) -----------------------------------
   Built by assets/js/shop-list.js from what the Store API answers, never
   printed into the HTML: guest pages are cached, and a cart count baked into
   a cached page is one customer's cart shown to the next visitor. */
.b09-cart-bar {
	display: none;
}
.b09-cart-toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	z-index: 1002;
	transform: translate(-50%, 1rem);
	max-width: min(90vw, 26rem);
	margin: 0;
	padding: 0.75rem 1.15rem;
	border-radius: 14px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: 0.9375rem;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.b09-cart-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 1023.98px) {
	.b09-cart-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.85rem 1.15rem calc(0.85rem + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--base);
		font-weight: 600;
		text-decoration: none;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.16);
	}
	.b09-cart-bar[hidden] {
		display: none;
	}
	.b09-cart-bar-count {
		min-width: 0;
		font-size: 0.9375rem;
	}
	.b09-cart-bar-go {
		flex: none;
		padding: 0.4rem 0.9rem;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.18);
		font-size: 0.9375rem;
	}
	/* The bar must not cover the last row, nor the WhatsApp button. */
	body.b09-has-cart-bar {
		padding-bottom: 4.5rem;
	}
	body.b09-has-cart-bar .b09-whatsapp-fab {
		bottom: calc(1.25rem + 4rem);
	}
	body.b09-has-cart-bar .b09-cart-toast {
		bottom: calc(1.5rem + 4rem);
	}
}

/* --- Query pagination (search results, news): 44px pills ------------------
   Core prints bare 9x19px number links (audit 2026-11-17 B5-02). */
.wp-block-query-pagination {
	gap: 0.5rem;
	align-items: center;
}
.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}
.wp-block-query-pagination .page-numbers:not(.dots),
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: none;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 0.75rem;
	border: 1px solid #e9e9e9;
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base); /* 4.87:1 */
}
@media (hover: hover) {
	.wp-block-query-pagination a.page-numbers:hover,
	.wp-block-query-pagination-next:hover,
	.wp-block-query-pagination-previous:hover {
		border-color: var(--wp--preset--color--accent);
		background: var(--wp--preset--color--accent-soft);
	}
}

/* --- WooCommerce classic forms, mobile ergonomics (Fase C) ---------------- */
/* 16px inputs: prevents iOS auto-zoom when a field gets focus. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row textarea.input-text,
.woocommerce form .form-row select,
.woocommerce #order_comments,
.woocommerce-page table.cart td.product-quantity input.qty {
	font-size: 16px;
}
/* Comfortable tap targets on the cart (default Woo qty/remove are tiny). */
.woocommerce-page table.cart td.product-quantity input.qty {
	min-height: 44px;
	width: 4.5em;
}
.woocommerce a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
}

/* Phone (Woo's small-screen sheet, max 768px), test 1.7 of 2026-11-27. */
@media (max-width: 768px) {
	/* Order history: Woo hides every tbody <th>, and the order number is one,
	   so the list showed date/status/total with no number. Shown again as a
	   labelled line like the other cells. */
	.woocommerce table.shop_table_responsive tbody th,
	.woocommerce-page table.shop_table_responsive tbody th {
		display: block;
		padding: 0.6rem 0.75rem;
		text-align: right;
	}
	.woocommerce table.shop_table_responsive tbody th::before,
	.woocommerce-page table.shop_table_responsive tbody th::before {
		content: attr(data-title) ": ";
		float: left;
		font-weight: 700;
	}
	/* Cart: the remove button had a whole unlabelled line to itself (the
	   "empty row" on top of each product). It now sits in the top-right corner
	   of the product block, next to the name. */
	.woocommerce-page table.cart tr.cart_item {
		position: relative;
	}
	.woocommerce-page table.cart td.product-remove {
		position: absolute;
		top: 0.25rem;
		right: 0.25rem;
		z-index: 1;
		padding: 0;
		border: 0;
		background: none !important; /* Woo zebra tint on even rows */
	}
	.woocommerce-page table.cart td.product-name {
		padding-right: 3.5rem;
		text-align: left !important; /* Woo right-aligns every cell */
	}
	.woocommerce-page table.cart td.product-name::before {
		display: none; /* "Prodotto:" label is redundant above the name */
	}
}

/* =========================================================================
   DESIGN SYSTEM FOUNDATIONS (audit 2026-11-17, Fase 1)
   One rule per concern, valid on every page. Palette unchanged: the only
   addition is accent-strong, a darker shade of the same pink, used for small
   pink text on pink tints and for the button hover.
   ========================================================================= */

/* --- Small pink text on pink tints: accent #E00058 on #FDEDF3 is 4.31:1,
   AA needs 4.5. accent-strong is 5.47:1 there and 4.76:1 on #FBD9E6. ----- */
.b09-card-shop .has-accent-color,
.b09-card-shop p a:not(.wp-element-button),
.wp-block-group.has-background[style*="accent-soft"] .has-accent-color,
.wp-block-group.has-background[style*="accent-soft"] p a:not(.wp-element-button),
.has-accent-soft-background-color .has-accent-color,
.has-accent-soft-background-color p a:not(.wp-element-button) {
	color: var(--wp--preset--color--accent-strong) !important; /* beats .has-accent-color */
}

/* --- Keyboard focus: one visible ring everywhere (same as the shop "+").
   :focus-visible does not fire on mouse clicks. -------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}
/* Text fields: a quieter pink ring (4.87:1), the dark one is heavy on a field. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
/* Cards whose title link is stretched over the whole card: ring the card. */
.wp-block-post-template .b09-card:has(.wp-block-post-title a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}
.wp-block-post-template .b09-card .wp-block-post-title a:focus-visible {
	outline: none;
}

/* --- Buttons: sober hover feedback inside the palette. --------------------
   Filled: the same pink a shade deeper (white text 6.18:1).
   Outline: pink tint behind, deeper pink text and border (5.47:1). */
.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
	.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background):hover,
	.wp-element-button:not(.wp-block-button__link):not(.has-background):hover {
		background-color: var(--wp--preset--color--accent-strong);
		color: var(--wp--preset--color--base);
	}
	.wp-block-button.is-style-outline > .wp-block-button__link:hover {
		background-color: var(--wp--preset--color--accent-soft);
		border-color: var(--wp--preset--color--accent-strong);
		color: var(--wp--preset--color--accent-strong);
	}
}

/* --- Headings and paragraphs: no widows, no "Start- / Up". ---------------- */
:where(h1, h2, h3, h4) {
	text-wrap: balance;
}
:where(.wp-block-post-content) p {
	text-wrap: pretty;
}
/* Centred paragraphs on a wide column stay readable (were up to 98 chars). */
.wp-block-post-content p.has-text-align-center:not(.has-small-font-size) {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

/* --- Touch targets: 44px hit areas without moving the text. ----------------
   Vertical padding on an inline link enlarges what a finger can hit but does
   not change the line box, so the layout stays exactly the same. */
.wp-block-post-content a[href^="tel:"],
.wp-block-post-content a[href^="mailto:"],
.b09-team-card p a,
.b09-svc-card p a,
.b09-eyebrow-link a,
.b09-card-shop p a:not(.wp-element-button),
.b09-article-footer a:not(.b09-wa-share) {
	padding-block: 0.85rem; /* 14-16px text -> >=44px */
}
a[href^="tel:"] {
	white-space: nowrap; /* "071 / 9030032" must not break across lines */
}
/* Header: hamburger and close were 24x24, the "Servizi" arrow 10x10. */
.b09-header .wp-block-navigation__responsive-container-open,
.b09-header .wp-block-navigation__responsive-container-close {
	padding: 10px;
	margin: -10px;
}
.b09-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding-top: 0.6rem !important;
	padding-bottom: 0.6rem !important;
	font-size: 1.125rem;
}
/* The "Servizi" arrow keeps its core size and place (padding on the button
   pushed it below the text line); the 44px hit area is an invisible layer. */
.b09-header .wp-block-navigation-submenu__toggle {
	position: relative;
}
.b09-header .wp-block-navigation-submenu__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
}

/* --- Full-width bands sit flush: their own padding is the rhythm (the block
   gap left a 24px white strip between two coloured bands). ---------------- */
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* --- Reduced motion: no lifts or scales on hover. ------------------------- */
@media (prefers-reduced-motion: reduce) {
	.b09-card,
	.b09-cat-card,
	.b09-shop-card,
	.b09-whatsapp-fab,
	.b09-wa-share,
	.wp-element-button,
	.wp-block-button__link {
		transition: none !important;
	}
	.b09-card:hover,
	.b09-cat-card:hover,
	.b09-shop-card:hover,
	.b09-whatsapp-fab:hover,
	.b09-wa-share:hover {
		transform: none !important;
	}
}

/* --- WooCommerce parts in the site's own language. ------------------------ */
/* Account forms (login, register, lost password, profile, order request):
   soft card, quiet fields, brand pink instead of Woo's red and lilac. */
.woocommerce form.login,
.woocommerce form.register {
	border: 1px solid #eee;
	border-radius: 24px;
	padding: clamp(1.25rem, 4vw, 2rem);
	box-shadow: 0 6px 24px rgba(80, 104, 112, 0.08);
}
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
	border: 1px solid rgba(80, 104, 112, 0.7); /* 3.1:1, same as the shop search */
	border-radius: 14px;
	padding: 0.8rem 1rem;
	min-height: 50px;
	box-sizing: border-box;
	font-family: inherit;
}
.woocommerce form .form-row textarea.input-text {
	min-height: 7rem;
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--accent);
}
.woocommerce form .form-row .required {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.woocommerce-form__input-checkbox {
	width: 20px;
	height: 20px;
	accent-color: var(--wp--preset--color--accent);
	vertical-align: middle;
}
/* Bigger hit area for the "show password" eye, icon unchanged. */
.woocommerce form .show-password-input {
	top: 50%;
	right: 0.25rem;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
}
/* Info notices (empty cart): pink tint instead of Woo's blue. */
.wc-block-components-notice-banner.is-info {
	border-color: var(--wp--preset--color--accent-soft);
	border-radius: 16px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--contrast);
}
.wc-block-components-notice-banner.is-info > svg {
	background-color: var(--wp--preset--color--accent);
}
.woocommerce .return-to-shop,
.wc-block-cart__empty-cart__title + .wp-block-buttons {
	margin-top: 1.5rem;
}
/* WooCommerce's own templates have no closing spacer: same air as the theme's
   shop templates before the grey footer (was 24px). */
body.single-product main.wp-block-group,
body.woocommerce-cart main.wp-block-group,
body.woocommerce-checkout main.wp-block-group,
body.woocommerce-account main.wp-block-group {
	padding-bottom: 5rem;
}
body.woocommerce-cart main.wp-block-group {
	padding-top: 1.5rem;
}

/* =========================================================================
   PAGE LAYOUT (audit 2026-11-17, Fase 2)
   Template-level rhythm: sticky bar, page head, short pages, per-page grids.
   Spacing comes from the theme.json scale (--wp--preset--spacing--20..80).
   ========================================================================= */

/* --- Short pages (404, empty cart): no white band under the footer. The
   canvas below the body takes the footer's grey, so the footer reads as
   reaching the bottom of the screen without changing any page's layout. -- */
html {
	background-color: var(--wp--preset--color--neutral);
}

/* --- Sticky bar from 782px (decision D3). On a phone the 68px would be 8% of
   the screen, and the shop already pins its cart bar to the bottom. Sticky
   sits on the template-part <header>: the inner group never had room to move
   (B1-04). ------------------------------------------------------------------ */
@media (min-width: 782px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 100;
	}
	html {
		scroll-padding-top: 6rem; /* #assistenza and other anchors land below the bar */
	}
}

/* --- Hamburger up to 781px: between 600 and ~750px the five items did not
   fit and "Contatti" wrapped to a second line (B1-03). -------------------- */
@media (min-width: 600px) and (max-width: 781px) {
	.b09-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.b09-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* --- Page head (templates/page.html, decision D5): the home hero's glow,
   painted on the top of <main> only and fading out on its own, so it never
   ends with a hard edge whatever follows. -------------------------------- */
.b09-page {
	background:
		radial-gradient(60rem 32rem at 85% -10%, var(--wp--preset--color--accent-soft) 0%, rgba(253, 237, 243, 0) 65%) top center / 100% 36rem no-repeat,
		var(--wp--preset--color--base);
}
/* The opening of the page (everything before the first wide or full block:
   the lead, the buttons of Contatti) starts on the title's left edge, i.e.
   the edge of the wide sections below (B2-01, B3-12). Later text keeps the
   centred reading column. */
.b09-page-content > :not(.alignwide):not(.alignfull):not(:is(.alignwide, .alignfull) ~ *) {
	max-width: 45rem;
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}

/* --- Lead paragraphs (24px): the body's 1.65 line height made them look
   like loose body text (B4-07, B3-14). ------------------------------------ */
.wp-block-post-content > p.has-large-font-size {
	line-height: 1.45;
}

/* --- 404 -------------------------------------------------------------------- */
.b09-404 .b09-shop-search {
	margin-top: var(--wp--preset--spacing--50);
}

/* --- Phones: stacked buttons share one width (hero, 404, news box) (B1-19,
   B4-19). ------------------------------------------------------------------ */
@media (max-width: 599px) {
	.b09-hero .wp-block-buttons > .wp-block-button,
	.b09-news-cta .wp-block-buttons > .wp-block-button,
	.b09-invito .wp-block-buttons > .wp-block-button {
		flex-basis: 100%;
		width: 100%;
	}
	.b09-hero .wp-block-buttons > .wp-block-button > .wp-block-button__link,
	.b09-news-cta .wp-block-buttons > .wp-block-button > .wp-block-button__link,
	.b09-invito .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

/* --- News grids (home, /news/): 1-2 posts stay centred at the width of a
   full row's card instead of hugging the left edge (B1-05, B4-05). The
   17rem minimum column (in the templates) gives 3/2/1 columns (B4-04). ---- */
@media (min-width: 600px) {
	:is(.home, .blog) .wp-block-post-template.is-layout-grid:has(> li:only-child) {
		grid-template-columns: minmax(0, 24rem);
		justify-content: center;
	}
	:is(.home, .blog) .wp-block-post-template.is-layout-grid:has(> li:nth-child(2):last-child) {
		grid-template-columns: repeat(2, minmax(0, 24rem));
		justify-content: center;
	}
}

/* --- Home stats strip: number and label read as one unit; three in a row
   from 600px (B1-14). ------------------------------------------------------ */
.b09-numeri .wp-block-column > p:first-child,
.b09-stats .wp-block-column > p:first-child {
	line-height: 1.1;
}
.b09-numeri .wp-block-column > p + p,
.b09-stats .wp-block-column > p + p {
	margin-block-start: var(--wp--preset--spacing--20);
}
@media (min-width: 600px) and (max-width: 781px) {
	.b09-numeri.wp-block-columns {
		flex-wrap: nowrap !important;
	}
	.b09-numeri.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
}

/* --- Footer (B1-16): 2x2 on a tablet instead of one 1,100px column; the
   13 section links in two columns on a phone. ------------------------------ */
@media (min-width: 600px) and (max-width: 781px) {
	.b09-footer-cols.wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	}
}
@media (max-width: 599px) {
	/* Same gap between the stacked columns on every template: on the product
	   pages WooCommerce's layout left 8px instead of 24px (B1-23). */
	.b09-footer .b09-footer-cols.wp-block-columns {
		row-gap: 1.5rem;
	}
	.b09-footer-list {
		columns: 2;
		column-gap: var(--wp--preset--spacing--40);
	}
	.b09-footer-list li {
		break-inside: avoid;
	}
}

/* --- Shop (B5-17, B5-19, B5-22). ------------------------------------------- */
@media (min-width: 600px) and (max-width: 781.98px) {
	.b09-shop-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr)); /* phone rows, two per line */
	}
	.single-product .wp-block-woocommerce-product-image-gallery {
		margin-inline: auto; /* the block is capped at 512px inside a 707px column */
	}
}
.b09-shop-hero p.has-small-font-size {
	max-width: 36rem;
	margin-inline: auto;
}

/* --- Chi siamo (B2-06, B2-07, B2-18). --------------------------------------- */
/* Stats: 2x2 under 782px instead of four stacked figures (728px). */
@media (max-width: 781px) {
	.b09-stats.wp-block-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	}
}
/* Team: last row centred, no card stuck on the left. */
.b09-team-grid.is-layout-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.b09-team-grid > .b09-team-card {
	flex: 0 1 calc((100% - 3rem) / 3); /* gap is 1.5rem (block attribute) */
	height: auto;
}
@media (max-width: 1023.98px) {
	.b09-team-grid > .b09-team-card {
		flex-basis: calc((100% - 1.5rem) / 2);
	}
}
/* Phone: compact horizontal card, photo left, text in one column beside it
   (team was 3,791px, 39% of the page). Row gap 0: the empty implicit rows
   the photo spans must not add space; text rhythm comes from margins. */
@media (max-width: 599.98px) {
	.b09-team-grid > .b09-team-card {
		flex-basis: 100%;
		display: grid;
		grid-template-columns: 6.5rem minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--40);
		row-gap: 0;
		align-items: start;
	}
	.b09-team-grid .b09-team-card > * {
		grid-column: 2;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.b09-team-grid .b09-team-card > .wp-block-image {
		grid-column: 1;
		grid-row: 1 / span 8;
		margin: 0 !important;
	}
	.b09-team-grid .b09-team-card > .wp-block-image img {
		display: block;
		width: 100%;
		height: auto;
	}
	.b09-team-grid .b09-team-card > h3 {
		margin-top: 0 !important;
	}
}
/* Zebra rows with the picture on the left: on a phone the text still comes
   first, like every other row (title, text, picture). */
@media (max-width: 781px) {
	.b09-zebra-rev.wp-block-columns {
		flex-direction: column-reverse;
	}
}

/* --- Come funziona: step cards (B2-08). ------------------------------------ */
.b09-step-card {
	background: var(--wp--preset--color--base);
	border: 1px solid #f0f0f0;
	border-radius: 20px;
	height: 100%;
}
@media (min-width: 1024px) {
	.b09-steps .b09-step-card h3 {
		min-height: 2.4em; /* one- and two-line titles: the bodies start on one line */
	}
}

/* =========================================================================
   COMPONENT FAMILIES (audit 2026-11-17, Fase 3; decisions D6-D9)
   ========================================================================= */

/* --- D6: one service card for every service page (was 4 families). ------ */
.b09-svc-card {
	background: var(--wp--preset--color--base);
	border: 1px solid #f0f0f0;
	border-radius: 20px;
	padding: 2rem 1.75rem;
	height: 100%;
	text-align: left;
}
.b09-svc-card .has-small-font-size {
	font-size: 0.9375rem !important; /* beats the preset class; 15px card copy: 14px over 3-5 lines was the only small body text (B3-07) */
}
@media (max-width: 781px) {
	.b09-svc-card {
		padding: 1.5rem 1.25rem;
	}
}
/* Pink panels inside a page: less inline padding on a phone (B3-11).
   Not the home's shop band, which lives outside the post content. */
@media (max-width: 781px) {
	.wp-block-post-content .b09-card-shop {
		padding-left: 1.25rem !important; /* inline 2rem from block attrs */
		padding-right: 1.25rem !important;
	}
}
/* Two cards in a three-column row stay centred (Centri, B3-10). */
.wp-block-columns.b09-cols-center {
	justify-content: center;
}

/* --- Service index (/servizi/): no lonely last card, compact on a phone
   (B3-10, B3-16). The shop keeps .b09-cat-grid as it is. -------------- */
@media (min-width: 782px) {
	.b09-svc-grid > .b09-cat-card:last-child:nth-child(3n+1) {
		grid-column: 2;
	}
}
@media (min-width: 600px) and (max-width: 781.98px) {
	.b09-svc-grid > .b09-cat-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}
@media (max-width: 781px) {
	.b09-svc-grid .b09-cat-card {
		gap: 1rem;
		min-height: 0;
		padding: 1.25rem 1.25rem 1.5rem;
	}
}
/* Cards that reveal on scroll keep their hover transition (B3-18). */
.b09-cat-card.b09-pre.is-in,
.b09-svc-card.b09-pre.is-in {
	transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* --- Start-up: the way back is a light link, not a second heading (B3-15). */
.b09-backlink {
	font-size: var(--wp--preset--font-size--small);
}
.b09-backlink a {
	display: inline-block;
	padding-block: 0.75rem;
	text-decoration: none;
}

/* --- D7: one closing box, "Invito al contatto", on every page. ----------- */
.b09-invito {
	text-align: center;
}
.b09-invito > :first-child {
	margin-top: 0;
}
.b09-invito .wp-block-buttons {
	justify-content: center;
}

/* --- D9 + B2-05: pictures without printed frames, one treatment. ---------- */
.b09-zebra-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10; /* the four Chi siamo pictures had 4 heights */
	object-fit: cover;
	border-radius: 20px;
}
.b09-team-card .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 16px;
}

/* --- News cards: black titles like every other card, pink on hover
   (B1-17, B4-16). ---------------------------------------------------------- */
.wp-block-post-template .b09-card .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: color 0.15s ease;
}
@media (hover: hover) {
	.wp-block-post-template .b09-card:hover .wp-block-post-title a {
		color: var(--wp--preset--color--accent);
	}
}

/* --- Article: eyebrow links back to the index; share near the top (B4-13,
   B4-22). ------------------------------------------------------------------ */
.b09-eyebrow-link a {
	color: inherit;
	text-decoration: none;
}
.b09-wa-share.is-compact {
	box-sizing: border-box; /* min-height includes the padding */
	min-height: 44px;
	margin-top: 0.75rem;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
}

/* --- WhatsApp and phone buttons say what they do at a glance (B2-14);
   labels that wrap break into two even lines (B2-16). -------------------- */
.wp-block-button__link {
	text-wrap: balance;
}
.wp-block-button__link[href*="wa.me"]::before,
.wp-block-button__link[href^="tel:"]::before {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-right: 0.5em;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: var(--b09-icon) no-repeat center / contain;
	mask: var(--b09-icon) no-repeat center / contain;
}
.wp-block-button__link[href*="wa.me"] {
	--b09-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3C9.4 3 4 8.4 4 15c0 2.6.8 5 2.2 7L4 29l7.2-2.1c1.9 1 4 1.6 6.3 1.6h.5c6.6 0 12-5.4 12-12S22.6 3 16 3zm0 21.9c-2 0-3.9-.5-5.5-1.5l-.4-.2-4.1 1.2 1.2-4-.3-.4C5.7 18.4 5 16.8 5 15 5 9 9.9 4 16 4s11 4.9 11 11-4.9 9.9-11 9.9zm6-7.4c-.3-.2-1.9-1-2.2-1.1-.3-.1-.5-.2-.7.2-.2.3-.8 1.1-1 1.3-.2.2-.4.2-.7.1-.3-.2-1.4-.5-2.6-1.6-1-.9-1.6-1.9-1.8-2.2-.2-.3 0-.5.1-.7l.5-.6c.2-.2.2-.4.3-.6.1-.2 0-.4 0-.6-.1-.2-.7-1.8-1-2.4-.3-.6-.5-.5-.7-.6h-.6c-.2 0-.6.1-.9.4-.3.3-1.1 1.1-1.1 2.7s1.2 3.2 1.3 3.4c.2.2 2.3 3.5 5.5 4.9.8.3 1.4.5 1.9.7.8.2 1.5.2 2 .1.6-.1 1.9-.8 2.2-1.5.3-.7.3-1.4.2-1.5-.1-.2-.3-.2-.7-.4z'/%3E%3C/svg%3E");
}
.wp-block-button__link[href^="tel:"] {
	--b09-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}
