/* ==========================================================================
   Azzolina Core – officina parts (header info, calculator, reviews, offers, link bar)
   Colors come from the theme palette, with fallbacks.
   ========================================================================== */
:root {
	--azz-navy: var(--wp--preset--color--navy, #012b45);
	--azz-navy-deep: var(--wp--preset--color--navy-deep, #011828);
	--azz-green: var(--wp--preset--color--rose, #00ac61);
	--azz-green-dark: var(--wp--preset--color--green-dark, #008a4e);
	--azz-ink: var(--wp--preset--color--ink, #0e1b26);
	--azz-muted: var(--wp--preset--color--muted, #556472);
	--azz-line: var(--wp--preset--color--line, #dce3e9);
}

/* ---------- Buttons ---------- */
.azz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 40px;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	border: 1px solid transparent;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.azz-btn--green {
	background: var(--azz-green);
	color: #fff !important;
}
.azz-btn--green:hover {
	background: var(--azz-green-dark);
}
.azz-btn--navy {
	background: var(--azz-navy);
	color: #fff !important;
}
.azz-btn--navy:hover {
	background: var(--azz-navy-deep);
}

/* ---------- [azz_header_info] ---------- */
.azz-hinfo {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 2.5rem);
	font-size: 0.875rem;
	line-height: 1.3;
	color: var(--azz-ink);
}
.azz-hinfo__claim {
	display: flex;
	flex-direction: column;
	max-width: 15rem;
	margin-right: auto;
}
.azz-hinfo__claim strong {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--azz-navy);
	line-height: 1.1;
}
.azz-hinfo__item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	color: inherit;
	text-decoration: none;
}
.azz-hinfo__item > svg {
	flex: 0 0 auto;
	color: var(--azz-navy);
}
.azz-hinfo__item > span {
	display: flex;
	flex-direction: column;
}
.azz-hinfo__item strong,
.azz-hinfo__phone {
	font-weight: 600;
	color: var(--azz-navy);
	text-decoration: none;
}
.azz-hinfo__phone {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.25rem;
	line-height: 1.1;
}
.azz-hinfo__item span span {
	font-size: 0.8125rem;
}
.azz-hinfo__cta {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}
.azz-hinfo__cta .azz-btn {
	min-height: 34px;
	padding: 0.375rem 0.875rem;
	font-size: 0.8125rem;
}
@media (max-width: 1279.98px) {
	.azz-hinfo__claim {
		display: none;
	}
}
@media (max-width: 1023.98px) {
	.azz-hinfo {
		display: none;
	}
}

/* ---------- [azz_calcolatore] ---------- */
.azz-calc {
	display: grid;
	gap: 0.625rem;
	padding: 1.25rem;
	border-radius: 10px;
	background: #fff;
	color: var(--azz-ink);
	box-shadow: 0 18px 40px -24px rgba(1, 24, 40, 0.6);
}
.azz-calc__title {
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--azz-ink);
}
.azz-calc__field {
	display: grid;
	gap: 0.25rem;
	font-size: 0.8125rem;
	color: var(--azz-muted);
}
.azz-calc__field input {
	width: 100%;
	box-sizing: border-box;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--azz-line);
	border-radius: 6px;
	background: #fff;
	color: var(--azz-ink);
	font: inherit;
	font-size: 1rem;
}
.azz-calc__field input:focus {
	outline: 2px solid var(--azz-green);
	outline-offset: 0;
	border-color: var(--azz-green);
}
.azz-calc__go {
	min-height: 46px;
	margin-top: 0.375rem;
	font-size: 0.9375rem;
}
.azz-calc__out {
	margin: 0;
	padding: 0.625rem 0.75rem;
	border-radius: 6px;
	background: #e6f7ef;
	color: var(--azz-ink);
	font-size: 0.9375rem;
}
.azz-calc__out strong {
	color: var(--azz-green-dark);
	font-size: 1.125rem;
}
.azz-calc__out.is-bad {
	background: #fdeceb;
}
.azz-calc__out[hidden] {
	display: none;
}
.azz-calc__note {
	margin: 0;
	font-size: 0.75rem;
	color: var(--azz-muted);
}

/* ---------- [azz_recensioni] ---------- */
.azz-reviews {
	display: grid;
	grid-template-columns: minmax(11rem, auto) 1fr;
	gap: 1rem 2rem;
	align-items: start;
}
.azz-reviews__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}
.azz-reviews__score {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}
.azz-reviews__score > span {
	display: flex;
	flex-direction: column;
	font-size: 0.8125rem;
	color: var(--azz-muted);
}
.azz-reviews__score strong {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.625rem;
	color: var(--azz-ink);
	line-height: 1;
}
.azz-reviews__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}
.azz-review {
	display: flex;
	gap: 0.625rem;
	align-items: flex-start;
	font-size: 0.875rem;
}
.azz-review > svg {
	flex: 0 0 auto;
	margin-top: 2px;
}
.azz-review p {
	margin: 0.125rem 0 0.375rem;
	color: var(--azz-ink);
}
.azz-review__stars {
	color: #f5b301;
	letter-spacing: 0.1em;
	font-size: 0.8125rem;
}
.azz-review__name {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--azz-muted);
}
.azz-reviews__all {
	grid-column: 1 / -1;
	justify-self: end;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--azz-green-dark);
	text-decoration: none;
}
@media (max-width: 899.98px) {
	.azz-reviews {
		grid-template-columns: 1fr;
	}
	.azz-reviews__list {
		grid-template-columns: 1fr;
	}
	.azz-reviews__all {
		justify-self: start;
	}
}

/* ---------- Offers (Elenco prodotti, layout "offer") ---------- */
.azz-offers__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}
.azz-offer {
	display: flex;
	gap: 1rem;
	padding: 0.625rem;
	border: 1px solid var(--azz-line);
	border-radius: 8px;
	background: #fff;
}
.azz-offer__media {
	flex: 0 0 38%;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	aspect-ratio: 1 / 1;
	background: #eaf0f4;
}
.azz-offer__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.azz-offer__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	padding: 0.25rem 0;
}
.azz-offer__title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.2;
}
.azz-offer__title a {
	color: var(--azz-ink);
	text-decoration: none;
}
.azz-offer__sub {
	margin: 0.375rem 0 0;
	font-size: 0.8125rem;
	color: var(--azz-muted);
}
.azz-offer__price {
	margin: 0.375rem 0 0.625rem;
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.875rem;
	font-weight: 600;
	color: var(--azz-green);
	line-height: 1.1;
}
.azz-offer__price del {
	margin-left: 0.375rem;
	font-size: 1.0625rem;
	font-weight: 500;
	color: #c62828;
	order: 2;
}
.azz-offer__price ins {
	text-decoration: none;
}
.azz-offer__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
}
.azz-offer__price ins {
	order: 1;
}
.azz-offer__price .screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.azz-offer__btn {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	border: 1px solid var(--azz-green);
	border-radius: 6px;
	color: var(--azz-green-dark) !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none !important;
}
.azz-offer__btn:hover {
	background: var(--azz-green);
	color: #fff !important;
}
@media (max-width: 1023.98px) {
	.azz-offers__list {
		grid-template-columns: 1fr;
		max-width: 560px;
	}
}

/* ---------- Bottom link bar (phones and tablets) ---------- */
.azz-linkbar {
	display: none;
}
@media (max-width: 1023.98px) {
	.azz-linkbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 970;
		display: flex;
		align-items: flex-end;
		justify-content: space-around;
		height: calc(62px + env(safe-area-inset-bottom, 0px));
		padding: 0 6px env(safe-area-inset-bottom, 0px);
		background: #fff;
		border-top: 1px solid var(--azz-line);
		box-shadow: 0 -10px 24px -18px rgba(1, 24, 40, 0.45);
	}
	/* Room for the fixed bar: inside the footer (same color), not as white space under it */
	html:has(.azz-linkbar) .wp-site-blocks > footer:last-of-type > :first-child {
		padding-bottom: calc(var(--wp--preset--spacing--30, 1rem) + 62px + env(safe-area-inset-bottom, 0px)) !important;
	}
	html:has(.azz-linkbar) body:not(:has(.wp-site-blocks > footer)) {
		padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
	}
	html.n14-typing .azz-linkbar {
		transform: translateY(110%);
	}
	.azz-linkbar__item {
		flex: 1 1 0;
		min-width: 0;
		height: 62px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		color: var(--azz-navy) !important;
		font-size: 0.6875rem;
		font-weight: 500;
		text-decoration: none !important;
		-webkit-tap-highlight-color: transparent;
	}
	.azz-linkbar__item.is-current {
		color: var(--azz-green-dark) !important;
	}
	.azz-linkbar__item.is-current .azz-linkbar__label {
		font-weight: 700;
	}
	.azz-linkbar__item.is-main {
		justify-content: flex-end;
		padding-bottom: 7px;
		color: var(--azz-green-dark) !important;
		font-weight: 700;
	}
	.azz-linkbar__item.is-main .azz-linkbar__icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		margin-top: -22px;
		margin-bottom: 1px;
		border-radius: 50%;
		background: var(--azz-green);
		color: #fff;
		border: 4px solid #fff;
		box-shadow: 0 6px 16px -6px rgba(0, 120, 70, 0.65);
	}
	.azz-linkbar__label {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	/* Sheets opened by the cart popup sit above the link bar */
	.n14-shop.has-linkbar .n14-sheet {
		bottom: calc(62px + env(safe-area-inset-bottom, 0px));
	}
}

/* ---------- Service details (product page) ---------- */
.azz-from {
	font-size: 0.6em;
	font-weight: 500;
	color: var(--azz-muted);
	margin-right: 0.15em;
}
.azz-offer__price .azz-from {
	order: 0;
	align-self: center;
}
.azz-service {
	display: grid;
	gap: 0.75rem;
	padding: 1rem 1.125rem;
	border: 1px solid var(--azz-line);
	border-radius: 8px;
	background: #f7fafc;
	font-size: 0.9375rem;
}
.azz-service p {
	margin: 0;
}
.azz-service__duration {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.azz-service__duration svg {
	color: var(--azz-green-dark);
}
.azz-service__title {
	font-weight: 600;
	color: var(--azz-ink);
}
.azz-service__list {
	list-style: none;
	margin: -0.25rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.375rem;
}
.azz-service__list li {
	position: relative;
	padding-left: 1.5rem;
}
.azz-service__list li::before {
	content: "";
	position: absolute;
	left: 0.125rem;
	top: 0.3em;
	width: 0.5rem;
	height: 0.85rem;
	border: solid var(--azz-green);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.azz-service__notes {
	font-size: 0.8125rem;
	color: var(--azz-muted);
}
.azz-steps {
	list-style: none;
	counter-reset: azz-step;
	margin: 0.25rem 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--azz-line);
	display: grid;
	gap: 0.5rem;
	font-size: 0.875rem;
}
.azz-steps li {
	counter-increment: azz-step;
	display: flex;
	align-items: center;
	gap: 0.625rem;
}
.azz-steps li::before {
	content: counter(azz-step);
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--azz-navy);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Omnibus line: small, on its own line, everywhere */
.n14-omnibus {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.75rem !important;
	font-weight: 400 !important;
	line-height: 1.35;
	color: var(--azz-muted) !important;
}
.n14-omnibus .woocommerce-Price-amount {
	font-size: inherit !important;
	font-weight: 600;
	color: inherit !important;
}
