/* La Maison della Bellezza — foglio di stile principale.
   Palette: bianco/nero con accento oro tenue (richiama il logo). */

:root {
	--ink: #141414;
	--paper: #ffffff;
	--soft: #f7f5f1;
	--line: #e6e2da;
	--muted: #6d6a63;
	--accent: #a8863c;
	--font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 .5em;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Variante larga: usata dalle sezioni prodotti e dai listini. */
.container.is-wide { max-width: 1280px; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Bottoni ---------- */

.button,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.entry-content .wp-block-button__link {
	display: inline-block;
	background: var(--ink);
	color: #fff;
	border: 1px solid var(--ink);
	border-radius: 0;
	padding: 12px 28px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.button-light {
	background: #fff;
	color: var(--ink);
	border-color: #fff;
}

/* ---------- Barra promo + topbar ---------- */

.promobar {
	background: var(--accent);
	color: #fff;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 10px 16px;
}

.promobar p { margin: 0; }

.topbar {
	background: #f3f2ef;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	letter-spacing: .04em;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
	flex-wrap: wrap;
	padding-top: 4px;
	padding-bottom: 4px;
}

.topbar a { color: var(--ink); }
.topbar a:hover { color: var(--accent); }
.topbar p { margin: 0; }
.topbar-contacts { display: flex; gap: 18px; }
.topbar-links { display: flex; gap: 18px; font-weight: 600; }

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

.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site-branding {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.custom-logo,
.custom-logo-link img {
	display: block;
	max-height: 92px;
	width: auto;
}

.site-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
}

.site-title a:hover { color: var(--ink); }

.site-tagline {
	margin: 0;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Barra di ricerca prodotti (centro header) */

.header-search {
	position: relative;
	flex: 1;
	max-width: 620px;
	margin: 0 auto;
}

.product-search-form {
	display: flex;
	align-items: center;
	gap: 4px;
	background: #ecebe7;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 4px 20px 4px 8px;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.product-search-form:focus-within {
	border-color: var(--accent);
	background: #fff;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

.product-search-submit {
	border: 0;
	background: transparent;
	color: var(--muted);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex: 0 0 auto;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color .2s ease;
}

.product-search-submit:hover { color: var(--ink); }

.product-search-field {
	flex: 1;
	border: 0;
	padding: 10px 4px 10px 0;
	font-family: var(--font-body);
	font-size: 15px;
	background: transparent;
	min-width: 0;
}

.product-search-field:focus { outline: none; }

.product-search-field::placeholder { color: var(--muted); }

.lmdb-search-results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
	z-index: 120;
	max-height: 420px;
	overflow-y: auto;
}

.lmdb-search-results[hidden] { display: none; }

.lmdb-search-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
}

.lmdb-search-item:last-child { border-bottom: 0; }
.lmdb-search-item:hover { background: var(--soft); }

.lmdb-search-item img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border: 1px solid var(--line);
	flex: 0 0 auto;
}

.lmdb-search-item .item-title { font-weight: 500; font-size: 15px; }
.lmdb-search-item .item-price {
	margin-left: auto;
	color: var(--accent);
	font-weight: 600;
	white-space: nowrap;
	font-size: 14px;
}

.lmdb-search-empty {
	margin: 0;
	padding: 14px 16px;
	color: var(--muted);
	font-size: 15px;
}

.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.header-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink);
}

.header-cart { position: relative; }

.lmdb-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	position: absolute;
	top: -8px;
	right: -10px;
}

/* Navigazione */

.site-nav {
	background: var(--soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.site-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
}

.site-nav .menu > li > a {
	display: block;
	padding: 12px 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.site-nav .menu li { position: relative; }

.site-nav .menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .2s ease;
	z-index: 50;
}

.site-nav .menu li:hover > .sub-menu,
.site-nav .menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav .sub-menu a {
	display: block;
	padding: 8px 18px;
	font-size: 13px;
	letter-spacing: .06em;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--ink);
	margin: 5px 0;
	transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero slider ---------- */

.hero-slider {
	position: relative;
	min-height: 520px;
	overflow: hidden;
	background: var(--ink);
}

.hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0;
	transition: opacity .8s ease;
	padding: 60px 20px;
}

.hero-slide.is-active { opacity: 1; z-index: 2; }

.hero-slide-1 {
	background:
		linear-gradient(rgba(12, 11, 9, .62), rgba(12, 11, 9, .62)),
		url('../img/hero-prodotti.jpg') center / cover no-repeat #17130c;
}

.hero-slide-2 {
	background:
		linear-gradient(rgba(12, 11, 9, .58), rgba(12, 11, 9, .58)),
		url('../img/hero-parrucchiere.jpg') center / cover no-repeat #101210;
}

.hero-slide-3 {
	background:
		linear-gradient(rgba(12, 11, 9, .6), rgba(12, 11, 9, .6)),
		url('../img/hero-estetica.jpg') center / cover no-repeat #151013;
}

.hero-content { max-width: 720px; color: #fff; }

.hero-kicker {
	font-size: 13px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
	margin: 0 0 14px;
}

.hero-content h1,
.hero-content h2 {
	color: #fff;
	font-size: clamp(30px, 5vw, 52px);
	margin-bottom: 16px;
}

.hero-text {
	color: rgba(255, 255, 255, .85);
	margin: 0 0 28px;
	font-size: 18px;
}

.hero-dots {
	position: absolute;
	bottom: 22px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 5;
}

.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.hero-dot.is-active { background: #fff; }

/* ---------- Barra brand ---------- */

.brand-bar {
	background: var(--soft);
	border-bottom: 1px solid var(--line);
}

.brand-bar-inner {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 48px;
	padding-top: 18px;
	padding-bottom: 18px;
	font-family: var(--font-display);
	font-size: 17px;
	letter-spacing: .04em;
}

/* ---------- Sezioni home ---------- */

.home-section { padding: 64px 20px; }
section.home-section.container { padding-left: 20px; padding-right: 20px; }

.section-title {
	text-align: center;
	font-size: clamp(26px, 3.4vw, 36px);
	margin-bottom: 10px;
}

.section-title::after {
	content: '';
	display: block;
	width: 54px;
	height: 2px;
	background: var(--accent);
	margin: 14px auto 0;
}

.section-title.is-left { text-align: left; }
.section-title.is-left::after { margin-left: 0; }

.section-subtitle {
	text-align: center;
	color: var(--muted);
	margin: 0 auto 36px;
	max-width: 560px;
}

/* Schede categorie (homepage) */

.lmdb-tab-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--line);
	margin-bottom: 40px;
}

.lmdb-tab {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: 14px 28px;
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--muted);
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
}

.lmdb-tab:hover { color: var(--ink); }

.lmdb-tab.is-active {
	color: var(--ink);
	font-weight: 600;
	border-bottom-color: var(--accent);
}

.lmdb-tab-panel { display: none; }
.lmdb-tab-panel.is-active { display: block; }

.lmdb-tab-more { text-align: center; margin-top: 34px; }

/* Fascia bestseller */

.home-strip {
	background: var(--soft);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

/* Card categorie */

.home-categories { background: var(--soft); }

.category-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 36px;
}

.category-card {
	background: var(--paper);
	border: 1px solid var(--line);
	padding: 0 30px 34px;
	text-align: center;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.category-card-media {
	display: block;
	height: 210px;
	margin: 0 -30px 26px;
	background-size: cover;
	background-position: center;
	transition: transform .4s ease;
}

.category-card:hover .category-card-media { transform: scale(1.04); }

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.category-card h3 { font-size: 24px; }
.category-card p { color: var(--muted); min-height: 3em; }

.card-cta {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Fascia salone */

.home-salon { background: var(--ink); color: #fff; }

.salon-inner {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
}

.home-salon .section-title { color: #fff; }
.home-salon p { color: rgba(255, 255, 255, .85); margin-bottom: 26px; }

.home-salon .button {
	background: transparent;
	border-color: #fff;
}

.home-salon .button:hover { background: #fff; color: var(--ink); }

.salon-media {
	min-height: 320px;
	background: url('../img/salone.jpg') center / cover no-repeat #2a2419;
	border: 1px solid rgba(255, 255, 255, .15);
}

/* Contatti */

.home-contact { background: var(--soft); }

.contact-inner {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 48px;
	align-items: start;
}

.contact-list { list-style: none; margin: 20px 0; padding: 0; }
.contact-list li { padding: 6px 0; border-bottom: 1px dotted var(--line); }

/* Form */

.lmdb-contact-form label { display: block; margin-bottom: 16px; }
.lmdb-contact-form label span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.lmdb-contact-form .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.lmdb-contact-form input,
.lmdb-contact-form textarea,
.search-form .search-field {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff;
	font-family: var(--font-body);
	font-size: 16px;
}

.lmdb-contact-form input:focus,
.lmdb-contact-form textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.lmdb-form-notice {
	padding: 14px 18px;
	border: 1px solid var(--line);
	background: var(--soft);
}

.lmdb-form-notice.is-success { border-color: #3d7a44; background: #eef6ef; }
.lmdb-form-notice.is-error { border-color: #a2453c; background: #faeeec; }

/* ---------- Pagine interne ---------- */

.page-hero {
	background-color: var(--ink);
	background-image: linear-gradient(rgba(12, 11, 9, .66), rgba(12, 11, 9, .66)), var(--hero, none);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 84px 20px;
}

.page-hero h1 {
	color: #fff;
	font-size: clamp(32px, 4.5vw, 48px);
	margin-bottom: 6px;
}

.page-hero p {
	margin: 0;
	color: var(--accent);
	letter-spacing: .2em;
	text-transform: uppercase;
	font-size: 13px;
}

.page-content { padding-top: 48px; padding-bottom: 72px; }

.page-title { font-size: clamp(28px, 4vw, 40px); margin: 24px 0; }

/* Chi siamo / Centro estetico */

.story p { max-width: 760px; }

.story-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
	margin-bottom: 30px;
}

.story-media { margin: 0; }

.story-media img {
	display: block;
	width: 100%;
	height: 340px;
	object-fit: cover;
	border: 1px solid var(--line);
}

.milestones {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 44px 0 56px;
}

.milestone {
	border: 1px solid var(--line);
	padding: 28px;
	text-align: center;
}

.milestone-year {
	display: block;
	font-family: var(--font-display);
	font-size: 34px;
	color: var(--accent);
	margin-bottom: 8px;
}

.partner-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 30px 0 50px;
}

.partner-card {
	background: var(--soft);
	border: 1px solid var(--line);
	padding: 28px;
}

.partner-card h3 { font-size: 20px; }
.partner-card p { color: var(--muted); margin: 0; }

/* Listini */

.listino .section-title { margin-top: 48px; }

.listino .listino-divider {
	margin-top: 84px;
	padding-top: 44px;
	border-top: 1px solid var(--line);
	font-size: clamp(28px, 3.6vw, 40px);
}

.lmdb-price-table {
	width: 100%;
	border-collapse: collapse;
	margin: 26px auto 10px;
	max-width: 820px;
}

.container.is-wide .lmdb-price-table { max-width: 1080px; }

.lmdb-price-table td {
	padding: 11px 8px;
	border-bottom: 1px dotted var(--line);
	vertical-align: top;
}

.lmdb-price-table .price {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
	color: var(--accent);
	width: 120px;
}

.listino-note {
	text-align: center;
	color: var(--muted);
	font-style: italic;
	margin-top: 34px;
}

.listino-cta { text-align: center; margin-top: 30px; }

/* Contatti */

.contact-page .contact-inner { margin-bottom: 48px; }

.contact-promo {
	color: var(--accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 14px;
	margin-top: 24px;
}

.contact-note { color: var(--muted); font-size: 15px; }

.contact-photo { margin: 26px 0 0; }

.contact-photo img {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
	border: 1px solid var(--line);
}

.contact-map iframe {
	width: 100%;
	height: 400px;
	border: 1px solid var(--line);
	display: block;
}

/* Blog / fallback */

.post-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding: 48px 0;
}

.post-card { border: 1px solid var(--line); padding-bottom: 18px; }
.post-card-title { font-size: 20px; padding: 0 18px; }
.post-card-excerpt { padding: 0 18px; color: var(--muted); font-size: 15px; }

.search-form { display: flex; gap: 10px; max-width: 420px; margin: 20px 0; }

/* ---------- WooCommerce ---------- */

.woo-container { padding-top: 40px; padding-bottom: 72px; max-width: 1240px; }

.woocommerce-products-header__title.page-title {
	text-align: left;
	font-family: var(--font-display);
}

.woocommerce-result-count,
.woocommerce-ordering { font-size: 14px; color: var(--muted); }

/* Catalogo con sidebar filtri */

.woo-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 44px;
	align-items: start;
}

.shop-sidebar { position: sticky; top: 20px; }

.shop-widget {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 20px;
	background: var(--paper);
}

.shop-widget-title {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.shop-filter-search { display: flex; flex-direction: column; gap: 10px; }

.shop-filter-search input[type="search"],
.shop-filter-price input[type="number"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--font-body);
	font-size: 14px;
	background: #fff;
}

.shop-filter-search input:focus,
.shop-filter-price input:focus { outline: none; border-color: var(--accent); }

.shop-filter-search .button,
.shop-filter-price .button { padding: 10px 18px; font-size: 12px; }

.shop-cats { list-style: none; margin: 0; padding: 0; }

.shop-cats li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px dotted var(--line);
	font-size: 15px;
}

.shop-cats li:last-child { border-bottom: 0; }
.shop-cats li.is-current > a { color: var(--accent); font-weight: 600; }

.shop-cat-count {
	font-size: 12px;
	color: var(--muted);
	background: var(--soft);
	border-radius: 999px;
	padding: 1px 9px;
}

.shop-filter-price { display: flex; flex-direction: column; gap: 12px; }
.price-fields { display: flex; align-items: center; gap: 8px; color: var(--muted); }

/* Griglia prodotti uniforme: stesse dimensioni per tutte le card,
   in ogni sezione del sito (home, shop, categorie, correlati). */

.woocommerce ul.products,
ul.products {
	display: grid !important;
	gap: 22px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	width: 100%;
}

/* Il clearfix di WooCommerce (::before/::after) diventerebbe una cella
   della griglia e lascerebbe vuoto il primo posto: va disattivato. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
	content: none !important;
	display: none !important;
}

ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }

.woocommerce ul.products li.product,
ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}

@media (max-width: 1100px) {
	ul.products.columns-4, ul.products.columns-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
	ul.products.columns-3, ul.products.columns-4, ul.products.columns-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	ul.products.columns-2, ul.products.columns-3, ul.products.columns-4, ul.products.columns-5 { grid-template-columns: 1fr; }
}

/* Card prodotto in griglia (design moderno: foto contenuta, tagline,
   prezzo grande, badge sconto a pillola, sollevamento all'hover) */

.woocommerce ul.products li.product,
li.product.lmdb-card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	padding: 24px 20px 22px;
	text-align: center;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.woocommerce ul.products li.product:hover,
li.product.lmdb-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 48px rgba(0, 0, 0, .11);
}

.lmdb-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
}

.lmdb-card-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	margin-bottom: 18px;
}

.lmdb-card-media img,
.woocommerce ul.products li.product a img {
	max-height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin: 0;
	transition: transform .3s ease;
}

li.product.lmdb-card:hover .lmdb-card-media img { transform: scale(1.06); }

.lmdb-card-sale {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	border-radius: 999px;
	padding: 4px 12px;
}

.lmdb-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.lmdb-card-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

.lmdb-card-tagline {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.45;
}

/* Prezzo ancorato in basso: card tutte della stessa altezza,
   con prezzi e bottoni allineati tra loro. */
.lmdb-card-pricing {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
}

.lmdb-card-price,
.lmdb-card-price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price {
	color: var(--accent);
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.lmdb-card-price del,
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 15px; opacity: .8; }

.lmdb-card-offer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	background: var(--soft);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 13px;
}

.lmdb-card-offer del,
.lmdb-card-offer-text { white-space: nowrap; }

.lmdb-card-offer del { color: var(--muted); }
.lmdb-card-offer del .woocommerce-Price-amount { color: var(--muted); font-weight: 400; font-size: 13px; }
.lmdb-card-offer-text { color: var(--accent); font-weight: 600; }

.lmdb-card-actions { margin-top: 16px; text-align: center; }

.lmdb-card-actions .button,
.woocommerce ul.products li.product .button {
	margin: 0;
	border-radius: 999px;
	padding: 11px 26px;
	font-size: 12px;
}

.woocommerce ul.products li.product .added_to_cart {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--accent);
	font-weight: 600;
}

.woocommerce span.onsale {
	background: var(--accent);
	border-radius: 0;
	line-height: 2.2;
	min-height: auto;
	min-width: auto;
	padding: 2px 12px;
}

/* Pagina prodotto */

.single-product .woo-container { padding-top: 64px; }

.lmdb-single-product { max-width: 1040px; margin: 0 auto; }

.lmdb-product-top {
	display: grid;
	grid-template-columns: 400px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.lmdb-product-gallery .woocommerce-product-gallery { width: 100% !important; float: none; }

.lmdb-product-gallery img {
	border-radius: 16px;
	border: 1px solid var(--line);
	max-height: 520px;
	width: 100%;
	object-fit: cover;
	object-position: center;
}

.lmdb-product-summary {
	float: none !important;
	width: 100% !important;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 34px 36px 30px;
}

.lmdb-product-category { margin: 0 0 14px; }

.lmdb-product-category a {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 6px 16px;
}

.lmdb-product-category a:hover { background: var(--ink); color: #fff; }

.lmdb-product-summary .product_title {
	font-size: clamp(26px, 3.4vw, 38px);
	margin-bottom: 12px;
}

.lmdb-product-summary .price {
	font-size: 30px;
	color: var(--accent) !important;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
	display: block;
}

.lmdb-product-summary .woocommerce-product-details__short-description {
	color: var(--muted);
	margin-bottom: 22px;
}

/* Descrizione completa: card bianca con filetto oro, sotto il prezzo */
.lmdb-product-summary .lmdb-product-description {
	margin: 0 0 26px;
	padding: 18px 22px;
	background: #fff;
	border: 0;
	border-left: 3px solid var(--accent);
	border-radius: 12px;
	max-width: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.lmdb-product-summary .lmdb-product-description h2 {
	font-size: 19px;
	margin-bottom: 8px;
}

.lmdb-product-summary .lmdb-product-description p {
	color: var(--muted);
	font-size: 16px;
	margin: 0 0 12px;
}

.lmdb-product-summary .lmdb-product-description p:last-child { margin-bottom: 0; }

.lmdb-product-summary form.cart {
	margin-bottom: 26px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.lmdb-product-summary .quantity .qty {
	padding: 12px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	text-align: center;
}

.lmdb-product-summary .single_add_to_cart_button,
.lmdb-product-summary form.cart .button {
	background: var(--accent);
	border-color: var(--accent);
	border-radius: 999px;
	padding: 14px 34px;
}

.lmdb-product-summary .single_add_to_cart_button:hover,
.lmdb-product-summary form.cart .button:hover {
	background: var(--ink);
	border-color: var(--ink);
}

.lmdb-product-summary .product_meta {
	border-top: 1px solid var(--line);
	padding-top: 18px;
	font-size: 13px;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lmdb-product-summary .product_meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 5px 14px;
}

.lmdb-product-description {
	margin-top: 56px;
	border-top: 1px solid var(--line);
	padding-top: 34px;
	max-width: 860px;
}

.lmdb-product-description h2 { font-size: 26px; }

/* Fascia correlati: esce dal contenitore della scheda (1040px)
   e si allarga fino a 1400px, centrata sulla pagina. */
.related.products, .up-sells.products {
	margin-top: 64px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 44px 48px 40px;
	width: calc(100vw - 40px);
	max-width: 1400px;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.related.products > h2, .up-sells.products > h2 {
	font-family: var(--font-display);
	text-align: center;
	font-size: 30px;
	margin-bottom: 12px;
}

.related.products > h2::after, .up-sells.products > h2::after {
	content: '';
	display: block;
	width: 54px;
	height: 2px;
	background: var(--accent);
	margin: 14px auto 28px;
}

.related.products ul.products li.product,
.up-sells.products ul.products li.product { background: #fff; }

/* Messaggi Woo */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--accent);
}

.woocommerce-message::before,
.woocommerce-info::before { color: var(--accent); }

/* ---------- Avviso manutenzione (solo admin loggati) ---------- */

.lmdb-maintenance-notice {
	background: #7a1f1f;
	color: #fff;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	padding: 9px 16px;
}

/* ---------- Mini carrello laterale ---------- */

.lmdb-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(12, 11, 9, .55);
	z-index: 300;
}

.lmdb-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 400px;
	max-width: 92vw;
	background: var(--paper);
	z-index: 310;
	display: flex;
	flex-direction: column;
	box-shadow: -18px 0 44px rgba(0, 0, 0, .16);
	transform: translateX(105%);
	transition: transform .3s ease;
}

.lmdb-cart-drawer.is-open { transform: translateX(0); }

.lmdb-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 26px 28px 14px;
}

.lmdb-drawer-head h3 { margin: 0; font-size: 22px; }

.lmdb-drawer-close {
	background: none;
	border: 0;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: var(--muted);
	padding: 0 4px;
	transition: color .2s ease;
}

.lmdb-drawer-close:hover { color: var(--ink); }

.lmdb-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px 28px 26px;
	display: flex;
	flex-direction: column;
}

/* Il div interno viene sostituito dai cart fragments di WooCommerce:
   il padding sta sul contenitore esterno, qui solo il layout. */
.lmdb-drawer-body .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

/* Lista prodotti del mini cart (markup nativo WooCommerce).
   NOTA sulla specificità: sulle pagine con body.woocommerce si attivano
   le regole native di Woo per i widget (es. `.woocommerce ul.cart_list li`,
   `.woocommerce ul.cart_list li img { float:right; width:32px }`) che
   batterebbero selettori troppo deboli: da qui i selettori lunghi e gli
   !important mirati sulle proprietà di layout. */

.lmdb-cart-drawer ul.woocommerce-mini-cart,
.woocommerce .lmdb-cart-drawer ul.woocommerce-mini-cart {
	list-style: none !important;
	margin: 0 0 18px !important;
	padding: 0 !important;
	flex: 1;
}

.lmdb-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
	position: relative;
	display: block;
	min-height: 96px;
	padding: 16px 44px 16px 96px !important;
	margin: 0 0 12px !important;
	background: var(--soft);
	border: 0 !important;
	border-radius: 16px;
	font-size: 15px;
}

.lmdb-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img {
	position: absolute !important;
	left: 16px !important;
	right: auto !important;
	top: 16px;
	width: 64px !important;
	height: 64px !important;
	max-width: none;
	object-fit: cover;
	border-radius: 12px;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none;
	background: #fff;
}

.lmdb-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a:not(.remove) {
	font-weight: 500;
	display: block;
	line-height: 1.35;
	padding-top: 4px;
	color: var(--ink);
}

.lmdb-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity {
	display: block;
	color: var(--muted);
	font-size: 14px;
	margin-top: 2px;
}

.lmdb-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount { color: var(--accent); font-weight: 600; }

.lmdb-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove {
	position: absolute !important;
	top: 50% !important;
	right: 14px !important;
	left: auto !important;
	transform: translateY(-50%);
	width: 26px !important;
	height: 26px !important;
	line-height: 24px !important;
	text-align: center;
	border-radius: 50%;
	color: var(--muted) !important;
	background: #fff !important;
	font-size: 16px !important;
	font-weight: 400;
	transition: all .2s ease;
}

.lmdb-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove:hover {
	background: #a2453c !important;
	border-color: #a2453c;
	color: #fff !important;
}

.lmdb-cart-drawer .woocommerce-mini-cart__total,
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--soft);
	border: 0 !important;
	border-radius: 999px;
	padding: 13px 22px !important;
	margin: 6px 0 16px !important;
	font-size: 17px;
}

.lmdb-cart-drawer .woocommerce-mini-cart__total .woocommerce-Price-amount { color: var(--accent); font-weight: 700; }

/* Bottoni: Visualizza carrello + Procedi al pagamento */

.lmdb-cart-drawer .woocommerce-mini-cart__buttons,
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 !important;
}

.lmdb-cart-drawer .woocommerce-mini-cart__buttons .button,
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__buttons a.button {
	display: block;
	width: 100%;
	text-align: center;
	border-radius: 999px;
	padding: 14px 20px;
	margin: 0;
}

.lmdb-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout),
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--ink);
}

.lmdb-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout):hover,
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
	background: var(--ink);
	color: #fff;
}

.lmdb-cart-drawer .woocommerce-mini-cart__buttons .button.checkout,
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--accent);
	border: 1px solid var(--accent);
	color: #fff;
}

.lmdb-cart-drawer .woocommerce-mini-cart__buttons .button.checkout:hover,
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__buttons a.button.checkout:hover {
	background: var(--ink);
	border-color: var(--ink);
}

.lmdb-cart-drawer .woocommerce-mini-cart__empty-message,
.woocommerce .lmdb-cart-drawer .woocommerce-mini-cart__empty-message {
	margin: auto;
	text-align: center;
	color: var(--muted);
}

body.lmdb-drawer-locked { overflow: hidden; }

@media (max-width: 560px) {
	.lmdb-cart-drawer { width: 100vw; max-width: 100vw; }
}

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

.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, .82);
	margin-top: 0;
}

.footer-columns {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 44px;
}

.footer-brand .custom-logo,
.footer-brand img {
	max-height: 84px;
	width: auto;
	margin-bottom: 14px;
	filter: invert(1); /* logo nero trasparente → bianco sul footer scuro */
}

.footer-title {
	color: #fff;
	font-size: 17px;
	letter-spacing: .08em;
	margin-bottom: 16px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--accent); }

.footer-note { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 16px; }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 16px 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
	text-align: center;
}

.footer-bottom p {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: center;
	justify-content: center;
}

.footer-credit { color: rgba(255, 255, 255, .55); }
.footer-credit a { color: var(--accent); }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Pagine legali / informative ---------- */

.page-legal h2.section-title { margin-top: 40px; }
.page-legal h2.section-title:first-of-type { margin-top: 0; }
.page-legal p { max-width: 820px; }
.page-legal .contact-list { margin: 8px 0 8px; }

.legal-highlight {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 44px;
}

.legal-highlight-item {
	border: 1px solid var(--line);
	background: var(--soft);
	padding: 26px 24px;
	text-align: center;
}

.legal-highlight-item.is-free { border-color: var(--accent); }

.legal-highlight-value {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 34px;
	color: var(--ink);
	margin-bottom: 6px;
}

.legal-highlight-item.is-free .legal-highlight-value { color: var(--accent); }

.legal-highlight-label {
	display: block;
	font-size: 14px;
	color: var(--muted);
}

/* Recesso: passi e modulo */

.recesso-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 32px 0 8px;
}

.recesso-step {
	border: 1px solid var(--line);
	padding: 22px 20px;
	background: #fff;
}

.recesso-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	margin-bottom: 12px;
}

.recesso-step p { margin: 0; font-size: 15px; }
.recesso-note { font-size: 14px; color: var(--muted); }

.recesso-form-wrap {
	margin-top: 44px;
	border: 1px solid var(--line);
	background: var(--soft);
	padding: 32px;
}

.lmdb-form-consent { margin: 8px 0 20px; }

.lmdb-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--muted);
}

.lmdb-checkbox input { width: auto; margin-top: 3px; }

/* ---------- Home: nessuna offerta ---------- */

.lmdb-empty-sale {
	text-align: center;
	border: 1px dashed var(--line);
	background: var(--soft);
	padding: 48px 24px;
	max-width: 640px;
	margin: 0 auto;
}

.lmdb-empty-sale-icon { color: var(--accent); display: inline-block; margin-bottom: 8px; }

.lmdb-empty-sale h3 {
	font-family: 'Playfair Display', serif;
	font-size: 24px;
	margin: 4px 0 10px;
	color: var(--ink);
}

.lmdb-empty-sale p {
	color: var(--muted);
	max-width: 460px;
	margin: 0 auto 22px;
}

@media (max-width: 860px) {
	.legal-highlight, .recesso-steps { grid-template-columns: 1fr; }
	.recesso-form-wrap { padding: 24px 20px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.footer-columns { grid-template-columns: 1fr 1fr; }
	.category-cards, .partner-cards, .milestones, .post-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.topbar-links { display: none; }

	.nav-toggle { display: block; }

	.lmdb-tab { padding: 12px 16px; font-size: 15px; }

	.custom-logo, .custom-logo-link img { max-height: 64px; }

	.header-inner { flex-wrap: wrap; }

	.header-search {
		order: 4;
		flex-basis: 100%;
		max-width: none;
		margin: 6px 0 4px;
	}

	.site-nav {
		display: none;
		border-top: 1px solid var(--line);
	}

	.site-nav.is-open { display: block; }

	.nav-inner { flex-direction: column; gap: 0; }

	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu > li > a { padding: 13px 4px; border-bottom: 1px solid var(--line); }

	.story-grid { grid-template-columns: 1fr; gap: 24px; }

	.woo-layout { grid-template-columns: 1fr; gap: 24px; }
	.shop-sidebar { position: static; }

	.lmdb-product-top { grid-template-columns: 1fr; gap: 30px; }

	.site-nav .menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding-left: 16px;
	}

	.hero-slider { min-height: 440px; }

	.salon-inner, .contact-inner { grid-template-columns: 1fr; }
	.lmdb-product-top { grid-template-columns: 1fr; gap: 30px; }
	.lmdb-contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.category-cards, .partner-cards, .milestones, .post-list { grid-template-columns: 1fr; }
	.footer-columns { grid-template-columns: 1fr; }
	.topbar-inner { justify-content: center; }
}
