/* LegnoPellet Italia — design system (direzione "épuré & rassurant") */

* {
	box-sizing: border-box;
}

:root {
	--lp-accent: #2f6b4b;
	--lp-flame: oklch(58% 0.19 35);
	--lp-flame-2: oklch(68% 0.17 55);
	--lp-bg: oklch(98% 0.006 85);
	--lp-bg-soft: oklch(95.5% 0.01 85);
	--lp-text: oklch(22% 0.015 85);
	--lp-text-muted: oklch(48% 0.015 85);
	--lp-border: oklch(90% 0.008 85);
	--lp-white: oklch(100% 0 0);
	--lp-ink: oklch(19% 0.014 85);
	--lp-ink-muted: oklch(68% 0.012 85);
	--lp-accent-hover: color-mix(in oklch, var(--lp-accent) 85%, black);
	--lp-accent-soft: color-mix(in oklch, var(--lp-accent) 10%, white);
	--lp-accent-soft-border: color-mix(in oklch, var(--lp-accent) 28%, white);
	--lp-flame-hover: color-mix(in oklch, var(--lp-flame) 85%, black);
	--lp-flame-soft: color-mix(in oklch, var(--lp-flame) 12%, white);
	--lp-flame-soft-border: color-mix(in oklch, var(--lp-flame) 30%, white);
	--lp-font-heading: 'Manrope', system-ui, sans-serif;
	--lp-font-body: 'Work Sans', system-ui, sans-serif;
}

html {
	background: var(--lp-bg);
}

body {
	margin: 0;
	font-family: var(--lp-font-body);
	color: var(--lp-text);
	background: var(--lp-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--lp-font-heading);
	margin: 0;
	text-wrap: pretty;
	color: var(--lp-text);
}

p { margin: 0; }

a { color: var(--lp-accent); text-decoration: none; }
a:hover { color: var(--lp-accent-hover); }

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

.lp-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
}

.lp-eyebrow {
	font-family: var(--lp-font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lp-accent);
}

.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--lp-font-heading);
	font-weight: 700;
	font-size: 15px;
	padding: 14px 26px;
	border-radius: 8px;
	border: 1.5px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}
.lp-btn--primary { background: var(--lp-flame); color: var(--lp-white); }
.lp-btn--primary:hover { background: var(--lp-flame-hover); color: var(--lp-white); }
.lp-btn--accent { background: var(--lp-accent); color: var(--lp-white); }
.lp-btn--accent:hover { background: var(--lp-accent-hover); color: var(--lp-white); }
.lp-btn--outline { background: transparent; color: var(--lp-text); border-color: var(--lp-border); }
.lp-btn--outline:hover { border-color: var(--lp-accent); color: var(--lp-accent); }

.lp-icon { width: 22px; height: 22px; flex-shrink: 0; }

.lp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.lp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

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

.site-header {
	border-bottom: 1px solid var(--lp-border);
	background: var(--lp-white);
}
.site-header__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 88px;
	gap: 32px;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--lp-font-heading);
	font-weight: 800;
	font-size: 20px;
	color: var(--lp-text);
}
.site-branding__accent { color: var(--lp-accent); }
.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--lp-font-heading);
	font-weight: 600;
	font-size: 15px;
}
.primary-nav a { color: var(--lp-text); }
.header-actions {
	display: flex;
	align-items: center;
	gap: 22px;
}
.header-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--lp-text);
}

/* ---------- Trust bar ---------- */

.trust-bar {
	background: var(--lp-bg-soft);
	border-bottom: 1px solid var(--lp-border);
}
.trust-bar__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 32px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.trust-bar__item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--lp-text-muted);
}
.trust-bar__item .lp-icon { width: 19px; height: 19px; color: var(--lp-accent); }

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

.hero-slider { position: relative; overflow: hidden; background: var(--lp-ink); }
.hero-slide {
	display: none;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	padding: 84px 0;
	position: relative;
}
.hero-slide.is-active { display: grid; animation: lp-fade .5s ease; }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
.hero-slide__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-slide__eyebrow {
	font-family: var(--lp-font-heading); font-weight: 700; font-size: 13px;
	letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-flame-2);
}
.hero-slide__title { font-size: 42px; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; color: var(--lp-white); }
.hero-slide__subtitle { font-size: 16.5px; line-height: 1.6; color: oklch(80% 0.01 85); max-width: 46ch; }
.hero-slide__actions { display: flex; gap: 14px; margin-top: 6px; }
.hero-slide__media {
	position: relative;
	aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
	background: var(--lp-bg-soft);
	padding: 22px;
}
.hero-slide__media img { width: 100%; height: 100%; object-fit: contain; }

.hero-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 40px; height: 40px; border-radius: 999px; border: none; cursor: pointer;
	background: color-mix(in oklch, var(--lp-ink) 40%, transparent);
	color: var(--lp-white); display: flex; align-items: center; justify-content: center;
}
.hero-slider__nav:hover { background: color-mix(in oklch, var(--lp-ink) 65%, transparent); }
.hero-slider__nav--prev { left: 8px; }
.hero-slider__nav--next { right: 8px; }
.hero-slider__dots {
	position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3;
	display: flex; gap: 8px;
}
.hero-slider__dot {
	width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer;
	background: color-mix(in oklch, var(--lp-white) 40%, transparent);
	padding: 0;
}
.hero-slider__dot.is-active { background: var(--lp-flame); width: 22px; }
.hero-slider__dot { transition: width .2s ease; }

/* ---------- Category cards ---------- */

.category-cards { padding-top: 56px; padding-bottom: 96px; }
.category-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	background: var(--lp-white);
}
.category-card__icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: var(--lp-accent-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}
.category-card__icon .lp-icon { color: var(--lp-accent); }
.category-card__icon--flame { background: var(--lp-flame-soft); }
.category-card__icon--flame .lp-icon { color: var(--lp-flame); }
.category-card h3 { font-size: 19px; font-weight: 700; }
.category-card p { font-size: 14.5px; color: var(--lp-text-muted); line-height: 1.5; }

/* ---------- Why us ---------- */

.why-us {
	padding: 88px 0;
	background: var(--lp-bg-soft);
	border-top: 1px solid var(--lp-border);
	border-bottom: 1px solid var(--lp-border);
}
.why-us__head { max-width: 60ch; margin-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.why-us__head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; }
.why-us__item { display: flex; flex-direction: column; gap: 12px; }
.why-us__item .lp-icon { color: var(--lp-accent); width: 26px; height: 26px; }
.why-us__item h4 { font-size: 16px; font-weight: 700; }
.why-us__item p { font-size: 14px; color: var(--lp-text-muted); line-height: 1.55; }

/* ---------- Products ---------- */

.products-section { padding: 88px 0; }
.products-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
.products-section__head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.products-section__head a { font-weight: 600; font-size: 14.5px; }

.product-card {
	border: 1px solid var(--lp-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--lp-white);
	display: flex;
	flex-direction: column;
}
.product-card__media {
	aspect-ratio: 1;
	background: var(--lp-bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge {
	position: absolute; top: 12px; left: 12px;
	background: var(--lp-flame); color: var(--lp-white);
	font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
}
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__title { font-size: 14.5px; font-weight: 700; line-height: 1.3; font-family: var(--lp-font-heading); }
.product-card__meta { font-size: 13px; color: var(--lp-text-muted); }
.product-card__footer { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product-card__price { font-family: var(--lp-font-heading); font-weight: 800; font-size: 17px; }
.product-card__price--was { font-size: 13px; color: var(--lp-text-muted); text-decoration: line-through; font-family: var(--lp-font-body); font-weight: 400; }

/* ---------- Proof band ---------- */

.proof-band { padding: 72px 0; background: var(--lp-ink); color: var(--lp-white); }
.proof-band__inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 56px; align-items: center; }
.proof-band .lp-eyebrow { color: color-mix(in oklch, var(--lp-accent) 70%, white); }
.proof-band h2 { font-size: 26px; font-weight: 800; color: var(--lp-white); letter-spacing: -0.01em; }
.proof-band p { font-size: 15px; line-height: 1.6; color: oklch(80% 0.01 85); max-width: 54ch; }
.proof-band__stats { display: flex; gap: 40px; }
.proof-band__stat-value { font-family: var(--lp-font-heading); font-weight: 800; font-size: 30px; }
.proof-band__stat-label { font-size: 13.5px; color: oklch(75% 0.01 85); }

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

.site-footer { padding: 64px 0 32px; background: var(--lp-white); }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--lp-border);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand-name { display: flex; align-items: center; gap: 8px; font-family: var(--lp-font-heading); font-weight: 800; font-size: 17px; }
.site-footer__brand-name .lp-icon { width: 22px; height: 22px; color: var(--lp-accent); }
.site-footer__legal { font-size: 13.5px; color: var(--lp-text-muted); line-height: 1.6; max-width: 30ch; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.site-footer__col-title { font-weight: 700; font-family: var(--lp-font-heading); }
.site-footer__col a { color: var(--lp-text-muted); }
.site-footer__bottom { padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--lp-text-muted); flex-wrap: wrap; gap: 8px; }

/* ---------- Breadcrumb ---------- */

.lp-breadcrumb {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: 13.5px; color: var(--lp-text-muted); margin-bottom: 32px;
}
.lp-breadcrumb a { color: var(--lp-text-muted); }

/* ---------- Product page ---------- */

.product-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; padding-bottom: 72px; }
.product-gallery__main { aspect-ratio: 1; border-radius: 14px; background: var(--lp-bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.product-gallery__thumb { aspect-ratio: 1; border-radius: 8px; background: var(--lp-bg-soft); border: 1px solid var(--lp-border); }
.product-gallery__thumb--active { border: 2px solid var(--lp-accent); }

.product-info { display: flex; flex-direction: column; gap: 20px; }
.product-info__title { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.product-info__reviews { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--lp-text-muted); }
.product-info__reviews .lp-icon { width: 15px; height: 15px; color: var(--lp-border); }
.product-info__price { font-family: var(--lp-font-heading); font-weight: 800; font-size: 32px; }

.product-reassurance { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--lp-bg-soft); border-radius: 10px; }
.product-reassurance__item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.product-reassurance__item .lp-icon { width: 17px; height: 17px; color: var(--lp-accent); }

.product-cart-row { display: flex; gap: 12px; align-items: stretch; }
.product-qty { display: flex; align-items: center; border: 1px solid var(--lp-border); border-radius: 8px; }
.product-qty button { width: 40px; height: 48px; border: none; background: transparent; font-size: 18px; cursor: pointer; color: var(--lp-text-muted); }
.product-qty input { width: 36px; text-align: center; font-weight: 600; font-size: 15px; border: none; background: transparent; }

.product-spec-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); padding: 13px 0; border-bottom: 1px solid var(--lp-border); font-size: 14.5px; }
.product-spec-row span:first-child { color: var(--lp-text-muted); }

.product-reviews { padding: 56px 0; border-top: 1px solid var(--lp-border); }
.product-reviews__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 56px; }
.product-reviews__empty { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--lp-border); border-radius: 12px; padding: 40px; text-align: center; }

/* ---------- Contact form (Contact Form 7) ---------- */

.wpcf7-form { max-width: 520px; display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.wpcf7-form p { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.wpcf7-form label { font-family: var(--lp-font-heading); font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.wpcf7-form-control {
	font-family: var(--lp-font-body); font-size: 15px;
	border: 1px solid var(--lp-border); border-radius: 8px; padding: 12px 14px;
	background: var(--lp-white); color: var(--lp-text);
}
.wpcf7-form-control:focus { outline: none; border-color: var(--lp-accent); }
textarea.wpcf7-form-control { min-height: 130px; resize: vertical; }
.wpcf7-submit {
	align-self: flex-start;
	font-family: var(--lp-font-heading); font-weight: 700; font-size: 15px;
	padding: 14px 26px; border-radius: 8px; border: none; cursor: pointer;
	background: var(--lp-flame); color: var(--lp-white);
}
.wpcf7-submit:hover { background: var(--lp-flame-hover); }
.wpcf7-spinner { margin: 0 0 0 10px; }
.wpcf7-not-valid-tip { color: var(--lp-flame); font-size: 13px; }
.wpcf7-response-output {
	margin-top: 16px !important; border-radius: 8px !important; padding: 12px 14px !important;
	font-size: 14px;
}

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

/* ---------- WooCommerce native elements ---------- */

.onsale {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	min-height: 0 !important; min-width: 0 !important; width: auto !important; height: auto !important;
	line-height: 1 !important; border-radius: 999px !important;
	background: var(--lp-flame) !important; border: none;
	color: var(--lp-white) !important;
	font-family: var(--lp-font-heading); font-weight: 700 !important; font-size: 11.5px !important;
	padding: 6px 11px !important; text-transform: none;
}
li.product { position: relative; }

.woocommerce-product-gallery { border-radius: 14px; overflow: hidden; background: var(--lp-bg-soft); }
.woocommerce-product-gallery img { border-radius: 14px; }
.flex-control-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 14px; list-style: none; padding: 0; }
.flex-control-thumbs li img { border-radius: 8px; border: 1px solid var(--lp-border); cursor: pointer; }
.flex-control-thumbs li img.flex-active { border: 2px solid var(--lp-accent); }

.product-cart-form form.cart {
	display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap;
}
.product-cart-form .quantity { display: flex; align-items: center; border: 1px solid var(--lp-border); border-radius: 8px; }
.product-cart-form .quantity input.qty {
	width: 56px; height: 48px; border: none; background: transparent; text-align: center; font-weight: 600; font-size: 15px;
}
.product-cart-form button.single_add_to_cart_button {
	flex: 1; height: 48px; min-width: 200px;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--lp-font-heading); font-weight: 700; font-size: 15px;
	background: var(--lp-accent); color: var(--lp-white); border: none; border-radius: 8px; cursor: pointer;
}
.product-cart-form button.single_add_to_cart_button:hover { background: var(--lp-accent-hover); }

.woocommerce-product-attributes {
	width: 100%; border-collapse: collapse; margin: 0;
}
.woocommerce-product-attributes tr { border-bottom: 1px solid var(--lp-border); }
.woocommerce-product-attributes th, .woocommerce-product-attributes td {
	text-align: left; padding: 13px 0; font-size: 14.5px; font-weight: 400;
}
.woocommerce-product-attributes th { color: var(--lp-text-muted); width: 40%; }

.related.products {
	padding: 56px 0; border-top: 1px solid var(--lp-border);
	max-width: 1180px; margin: 0 auto;
}
.related.products > h2 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.related.products ul.products {
	display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px;
	list-style: none; padding: 0; margin: 0;
}
.related.products ul.products li.product {
	border: 1px solid var(--lp-border); border-radius: 12px; overflow: hidden; background: var(--lp-white); padding: 0;
}
.related.products ul.products li.product a { display: block; padding: 0 0 18px; }
.related.products ul.products li.product img { aspect-ratio: 1; object-fit: cover; }
.related.products ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product .price {
	display: block; padding: 0 18px; font-size: 14.5px;
}
.related.products ul.products li.product .woocommerce-loop-product__title { font-weight: 700; margin: 12px 0 6px; font-family: var(--lp-font-heading); }
.related.products ul.products li.product .price { font-weight: 800; }

@media (max-width: 900px) {
	.primary-nav { display: none; }
	.trust-bar__inner { justify-content: flex-start; }
	.hero-slide, .why-us .lp-grid-4, .lp-grid-3, .lp-grid-4, .product-main, .proof-band__inner, .site-footer__grid, .product-reviews__inner {
		grid-template-columns: 1fr;
	}
	.hero-slide { padding: 48px 0 64px; }
	.hero-slide__media { order: -1; }
	.hero-slide__title { font-size: 28px; }
	.category-cards { padding-top: 32px; }
}

@media (max-width: 480px) {
	.header-phone span { display: none; }
	.site-header__inner { gap: 12px; }
}
