/* Retorto shop look: white, clean, product first. Colours mirror the Elementor kit tokens. */
:root {
	--rt-testo: #1D1D1B;
	--rt-testo-2: #55524E;
	--rt-tenue: #8A8580;
	--rt-linea: #E7E4DE;
	--rt-superficie: #F5F4F1;
	--rt-accento: #F08C20;
	--rt-rosso: #CA2026;
}

body {
	overflow-x: clip; /* full-bleed product header */
}

/* No lone word on the last line of body copy; headings split into even lines. Site-wide (this file loads everywhere). */
p,
li,
dd,
blockquote,
figcaption,
.e-paragraph-base {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/* Hello theme caps non-Elementor pages (shop, product, cart…) at 1140px: match the 1440px layout. */
@media (min-width: 1200px) {
	html .page-header .entry-title,
	html body:not([class*=elementor-page-]) .site-main {
		max-width: calc(1440px + 6rem); /* 1440px of content, aligned with the Elementor sections */
		padding-inline: 3rem;
	}
}

/* Header mini-cart: Elementor's widget box is taller than its icon and pins it to the top,
   so it sat 4px above the account icon and the button. Centre it. */
.elementor-location-header .elementor-widget-woocommerce-menu-cart,
.elementor-location-header .elementor-menu-cart__toggle,
.elementor-location-header .elementor-menu-cart__toggle_button {
	display: flex;
	align-items: center;
	line-height: 1;
}

/* The cart glyph's visual weight sits high in its box: nudge it onto the button's centre line. */
.elementor-location-header .elementor-menu-cart__toggle_button {
	margin-top: 3px;
}

/* Header language switch: IT | EN */
.retorto-lingue {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-family: Montserrat, sans-serif;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1;
	color: var(--rt-tenue);
}

.retorto-lingue a {
	color: var(--rt-tenue);
	text-decoration: none;
}

.retorto-lingue a:hover {
	color: var(--rt-testo);
}

.retorto-lingue__attiva {
	color: var(--rt-testo);
}

.retorto-lingue__sep {
	color: var(--rt-linea);
}

/* ------------------------------------------------------------- Buttons */

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: .9375rem;
	line-height: 1.2;
	color: #fff;
	background: var(--rt-testo);
	border: 0;
	border-radius: 999px;
	padding: .9em 1.7em;
	text-transform: none;
	letter-spacing: 0;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
	color: #fff;
	background: #3A3936;
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
	background: var(--rt-testo);
}

/* ------------------------------------------------------- Product grid */

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
}

.woocommerce ul.products.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

/* Cards as on the old store: no outline, photo edge to edge, title and price below,
   a white "Aggiungi al carrello →" pill over the bottom of the photo that shows on hover. */
.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	background: none;
	border: 0;
	container-type: inline-size; /* lets the button sit at the photo's bottom edge (photo height = 4/3 of the width) */
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	margin: 0 0 1rem;
	transition: opacity .3s;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	font-family: Montserrat, sans-serif;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--rt-testo);
}

.woocommerce ul.products li.product .price {
	padding: 0;
	margin: .25rem 0 0;
	font-size: 1.0625rem;
	font-weight: 400;
	color: var(--rt-testo);
}

.woocommerce ul.products li.product .button {
	position: absolute;
	top: calc(133.333cqw - 4.25rem);
	left: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: .9em;
	margin: 0;
	padding: .85em 1.6em;
	font-size: .9375rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--rt-testo);
	background: #fff;
	box-shadow: 0 6px 20px rgba(29, 29, 27, .12);
	transform: translate(-50%, .5rem);
	opacity: 0;
	transition: opacity .25s, transform .25s;
}

.woocommerce ul.products li.product .button::after {
	content: "→";
	font-size: 1.15em;
	line-height: 1;
}

.woocommerce ul.products li.product .button:hover {
	color: var(--rt-testo);
	background: #fff;
}

.woocommerce ul.products li.product:hover .button,
.woocommerce ul.products li.product .button:focus-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}

/* After an AJAX add, WooCommerce appends "Visualizza carrello" next to the button. */
.woocommerce ul.products li.product .added_to_cart {
	margin-top: .5rem;
	font-size: .875rem;
	font-weight: 600;
	color: var(--rt-testo);
}

.woocommerce ul.products li.product a {
	text-decoration: none;
}

/* Touch screens have no hover: keep the button visible, smaller. */
@media (hover: none) {
	.woocommerce ul.products li.product .button {
		top: calc(133.333cqw - 3.25rem);
		padding: .6em 1.1em;
		font-size: .8125rem;
		transform: translate(-50%, 0);
		opacity: 1;
	}
}

.woocommerce span.onsale,
.retorto-badge {
	position: absolute;
	top: .9rem;
	left: .9rem;
	z-index: 2;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: .35em .8em;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	background: var(--rt-rosso);
	border-radius: 999px;
}

.retorto-badge--esaurito {
	color: var(--rt-testo);
	background: #fff;
	box-shadow: 0 2px 8px rgba(29, 29, 27, .12);
}

.woocommerce ul.products li.product.outofstock img {
	opacity: .55;
}

@media (max-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products,
	.woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .75rem;
	}
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 1.0625rem;
	}
	.woocommerce ul.products li.product .price {
		font-size: .9375rem;
	}
}

/* ------------------------------------------- Product page colour header */

.retorto-hero {
	margin-inline: calc(50% - 50vw);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4.5rem);
	color: var(--retorto-testo);
	background: var(--retorto-colore);
}

.retorto-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 5vw, 5rem);
	align-items: center;
	max-width: 1440px;
	margin: 0 auto;
}

.retorto-hero .woocommerce-breadcrumb {
	grid-column: 1 / -1;
	margin: 0;
	font-size: .8125rem;
	color: var(--retorto-testo);
	opacity: .75;
}

.retorto-hero .woocommerce-breadcrumb a {
	color: inherit;
}

.woocommerce div.product .retorto-hero div.images,
.woocommerce div.product .retorto-hero div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce div.product .retorto-hero div.images img {
	border-radius: 14px;
}

.woocommerce div.product .retorto-hero .product_title {
	margin-bottom: .5rem;
	font-family: Montserrat, sans-serif;
	font-size: clamp(2.25rem, 4.5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.025em;
	color: var(--retorto-testo);
}

.woocommerce div.product .retorto-hero p.price,
.woocommerce div.product .retorto-hero span.price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--retorto-testo);
}

.retorto-hero .woocommerce-product-details__short-description p {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--retorto-testo);
}

.retorto-hero .product_meta {
	margin-top: 1.5rem;
	font-size: .8125rem;
	opacity: .75;
}

.retorto-hero .product_meta a {
	color: inherit;
}

.retorto-hero table.variations select,
.retorto-hero .quantity input.qty {
	min-height: 2.75rem;
	padding: .5em .9em;
	color: var(--rt-testo);
	background: #fff;
	border: 0;
	border-radius: 999px;
}

.retorto-hero table.variations,
.retorto-hero table.variations tr,
.retorto-hero table.variations th,
.retorto-hero table.variations td {
	background: transparent !important;
	border: 0;
}

.retorto-hero table.variations th,
.retorto-hero table.variations td,
.retorto-hero .reset_variations,
.retorto-hero .woocommerce-variation-price .price {
	color: var(--retorto-testo);
}

.retorto-hero .single_add_to_cart_button {
	padding: 1em 2.2em !important;
}

/* The crate builder sits on the crate colour: keep its rows readable. */
.retorto-hero .retorto-crate__list,
.retorto-hero .retorto-crate__item {
	border-color: rgba(29, 29, 27, .12);
}

@media (max-width: 767px) {
	.retorto-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------ Below the header */

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 0 0 1.5rem;
	border-bottom: 1px solid var(--rt-linea);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 1.5rem 0 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: .75rem 0;
	font-weight: 600;
	color: var(--rt-tenue);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--rt-testo);
	box-shadow: inset 0 -2px 0 var(--rt-testo);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: 46rem;
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}

.related.products > h2,
.upsells.products > h2 {
	margin-bottom: 1.5rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 800;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--rt-testo);
	background: var(--rt-superficie);
}

/* ------------------------------------------------ Cart and checkout */

/* WooCommerce's own "alt" buttons (proceed to checkout, place order) are purple by default. */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
	color: #fff;
	background: var(--rt-testo);
	border-radius: 999px;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #payment #place_order:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	color: #fff;
	background: #3A3936;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
	width: 100%;
	padding: 1.1em 1.5em;
	font-size: 1rem;
}

.woocommerce table.shop_table {
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 1rem .75rem;
	border: 0;
	border-bottom: 1px solid var(--rt-linea);
	background: none;
}

.woocommerce table.shop_table thead th {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--rt-tenue);
}

.woocommerce table.cart img {
	width: 64px;
}

.woocommerce table.cart td.product-name a {
	font-weight: 600;
	color: var(--rt-testo);
	text-decoration: none;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout-review-order {
	padding: 1.75rem;
	background: var(--rt-superficie);
}

.woocommerce .cart-collaterals .cart_totals h2,
#order_review_heading {
	margin-top: 0;
	font-size: 1.375rem;
	font-weight: 800;
}

.woocommerce .quantity input.qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce #coupon_code {
	min-height: 2.9rem;
	padding: .6em .9em;
	color: var(--rt-testo);
	background: #fff;
	border: 1px solid #D9D5CE;
	border-radius: 8px;
}

.woocommerce form .form-row label {
	font-size: .875rem;
	font-weight: 600;
	color: var(--rt-testo);
}

.woocommerce-checkout #payment {
	background: #fff;
	border-radius: 0;
}

.woocommerce-checkout #payment div.payment_box {
	background: var(--rt-superficie);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--rt-superficie);
}

/* Checkout in two columns: customer details left, order summary + payment right (kept in view). */
@media (min-width: 1025px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
		grid-template-rows: auto 1fr;
		column-gap: clamp(2rem, 4vw, 4rem);
		align-items: start;
	}

	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
		grid-column: 1 / -1;
	}

	.woocommerce-checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.woocommerce-checkout #customer_details .col-1,
	.woocommerce-checkout #customer_details .col-2 {
		float: none;
		width: 100%;
	}

	.woocommerce-checkout #order_review_heading {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		padding: 1.75rem 1.75rem 0;
		background: var(--rt-superficie);
	}

	.woocommerce-checkout #order_review {
		position: sticky;
		top: 1.5rem;
		grid-column: 2;
		grid-row: 2;
	}
}

/* ------------------------------------------------ Shop / category pages */

/* Header band: full width grey, content on the 1440px grid; breadcrumb and label above the H1. */
.woocommerce-products-header {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin: 0 calc(50% - 50vw) clamp(1.75rem, 3vw, 2.5rem);
	padding: clamp(2rem, 4vw, 3rem) max(clamp(1.25rem, 4vw, 3rem), calc(50vw - 720px)) clamp(2.5rem, 5vw, 3.75rem);
	background: var(--rt-superficie);
}

.retorto-shop-top {
	order: -1;
	margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.woocommerce .woocommerce-products-header .woocommerce-breadcrumb {
	margin: 0;
	font-size: .8125rem;
	color: var(--rt-tenue);
}

.retorto-shop-label {
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #C2650E;
}

.woocommerce-products-header__title.page-title {
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: clamp(2.25rem, 4.5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
	color: var(--rt-testo);
}

.retorto-shop-intro {
	max-width: 44rem;
	margin: .25rem 0 0;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--rt-testo-2);
}

/* Quick filters by size. */
.retorto-filtri {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

.retorto-filtri a {
	padding: .6em 1.15em;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1;
	color: var(--rt-testo);
	text-decoration: none;
	background: #fff;
	border: 1px solid #D9D5CE;
	border-radius: 999px;
	transition: background-color .2s, border-color .2s, color .2s;
}

.retorto-filtri a:hover {
	border-color: var(--rt-testo);
}

.retorto-filtri a.is-attivo {
	color: #fff;
	background: var(--rt-testo);
	border-color: var(--rt-testo);
}

/* Result count left, "Ordina per" + menu right, on one line. */
.retorto-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.woocommerce .retorto-toolbar .woocommerce-result-count {
	float: none;
	margin: 0 auto 0 0;
	font-size: .875rem;
	color: var(--rt-tenue);
}

.retorto-ordina-label {
	font-size: .875rem;
	color: var(--rt-tenue);
}

.woocommerce .retorto-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}

.woocommerce .woocommerce-ordering select.orderby {
	-webkit-appearance: none;
	appearance: none;
	min-width: 12.5rem;
	padding: .7em 2.75em .7em 1.1em;
	font-family: Montserrat, sans-serif;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--rt-testo);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1em center / 1em;
	border: 1px solid #D9D5CE;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .2s;
}

.woocommerce .woocommerce-ordering select.orderby:hover,
.woocommerce .woocommerce-ordering select.orderby:focus {
	border-color: var(--rt-testo);
	outline: none;
}

/* "Build your case" section after the products: photo a third, full height, no rounded mask. */
.retorto-cta-cassa {
	margin: clamp(3.5rem, 7vw, 6rem) calc(50% - 50vw) 0;
	padding: 0 max(clamp(1.25rem, 4vw, 3rem), calc(50vw - 720px));
	background: var(--rt-superficie);
}

.retorto-cta-cassa__inner {
	display: flex;
	align-items: stretch;
	min-height: clamp(26rem, 38vw, 560px);
}

.retorto-cta-cassa__foto {
	flex: 0 0 33.333%;
	width: 33.333%;
	height: auto;
	object-fit: cover;
}

.retorto-cta-cassa__testo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(2.5rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
}

.retorto-cta-cassa__testo h2 {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.retorto-cta-cassa__testo p {
	max-width: 40rem;
	margin: 0;
}

.retorto-cta-cassa__pulsanti {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: .5rem;
}

.woocommerce .retorto-cta-cassa a.button.retorto-btn-secondario {
	color: #fff;
	background: #2BA9A9;
	border-radius: 0;
	padding: 1em 2em;
}

.woocommerce .retorto-cta-cassa a.button.retorto-btn-secondario:hover {
	background: #1B7777;
}

/* Three highlights under the crate band (old store icons). */
.retorto-punti {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 4rem);
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
	text-align: center;
}

.retorto-punto {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .6rem;
}

.retorto-punto__icona {
	width: 96px;
	height: 96px;
	margin-bottom: .75rem;
	object-fit: contain;
}

.retorto-punto h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--rt-testo);
}

.retorto-punto p {
	max-width: 22rem;
	margin: 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--rt-testo-2);
}

.retorto-punto a {
	color: var(--rt-testo);
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 767px) {
	.retorto-punti {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.retorto-cta-cassa {
		padding: 0;
	}
	.retorto-cta-cassa__inner {
		flex-direction: column;
		min-height: 0;
	}
	.retorto-cta-cassa__foto {
		width: 100%;
		aspect-ratio: 4 / 3;
	}
	.retorto-cta-cassa__testo {
		padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
	}
	.retorto-ordina-label {
		display: none;
	}
	.woocommerce .retorto-toolbar .woocommerce-ordering,
	.woocommerce .woocommerce-ordering select.orderby {
		width: 100%;
	}
}

/* Small screens: the card's add-to-cart pill never gets wider than its card. */
@media (max-width: 600px) {
	.woocommerce ul.products li.product .button {
		max-width: calc(100% - 1rem);
		padding: .75em 1.1em;
		font-size: .8125rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* Header on phones: one short announcement line (the second half is a span in the bar's paragraph). */
@media (max-width: 767px) {
	.elementor-location-header p > span {
		display: none;
	}
}

/* Phones: WooCommerce and theme pages keep a 20px side gutter, like the Elementor pages. */
@media (max-width: 767px) {
	html body:not([class*=elementor-page-]) .site-main {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

/* Footer credit (bottom right): the WAG logo, drawn by masking the link with assets/icon/wag.svg so its colour is
   plain CSS (black, the logo's blue on hover). The link text stays for screen readers. */
.elementor-location-footer a[href*="whataboutgian.com"] {
	display: inline-block;
	width: 40px;
	height: 13px;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
	color: transparent;
	text-decoration: none;
	vertical-align: middle;
	background-color: #1D1D1B;
	-webkit-mask: url("icon/wag.svg") no-repeat center / contain;
	mask: url("icon/wag.svg") no-repeat center / contain;
	transition: background-color .2s;
}

.elementor-location-footer a[href*="whataboutgian.com"]:hover,
.elementor-location-footer a[href*="whataboutgian.com"]:focus-visible {
	background-color: #2527DF;
}
