:root {
	--green-deep:   #26472c;
	--green:        #3a6b41;
	--green-soft:   #eef3ea;
	--terracotta:   #d9622b;
	--terracotta-d: #b94f20;
	--cream:        #faf5ec;
	--cream-card:   #fffdf8;
	--border:       #e7ddc9;
	--ink:          #2a2520;
	--ink-soft:     #6f6a5f;
	--white:        #ffffff;
	--danger:       #b3432f;

	--ff-display: "Fraunces", serif;
	--ff-text:    "Inter", sans-serif;

	--radius-s: 8px;
	--radius-m: 14px;
	--radius-l: 24px;

	--shadow-card: 0 1px 2px rgba(38, 33, 24, 0.06), 0 8px 20px -12px rgba(38, 33, 24, 0.18);
	--shadow-card-hover: 0 4px 10px rgba(38, 33, 24, 0.08), 0 16px 32px -14px rgba(38, 33, 24, 0.24);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--ff-text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 {
	font-family: var(--ff-display);
	font-weight: 600;
	color: var(--green-deep);
	margin: 0;
}

a {
	color: inherit;
}

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

button {
	font-family: inherit;
	cursor: pointer;
}

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

/* ── Header ──────────────────────────────────────────────────────────── */
/* L'header è assoluto e sovrapposto (fuori dal flusso): ogni sezione che
   apre una pagina si riserva lo spazio per non finirci sotto (92px), ma lo
   fa nel proprio padding-top invece che su .site-main, così lo sfondo
   sfumato della hero può estendersi fino a inizio pagina, dietro l'header,
   senza lo stacco netto tra header e sfumatura. */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	justify-content: center;
	padding: 22px 24px 0;
	background: transparent;
}

.site-header__logo {
	display: inline-flex;
}

.site-header__logo img {
	max-height: 44px;
	width: auto;
}

.site-header__title {
	font-family: var(--ff-display);
	font-size: 19px;
	font-weight: 600;
	color: var(--green-deep);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(120% 140% at 15% 0%, rgba(217, 98, 43, 0.16), transparent 55%),
		radial-gradient(120% 140% at 90% 10%, rgba(58, 107, 65, 0.16), transparent 55%),
		var(--cream);
	padding: 92px 24px 72px;
	text-align: center;
}

.hero__decor {
	position: absolute;
	inset: 0;
	z-index: 0;
	max-width: 1180px;
	margin: 0 auto;
	pointer-events: none;
}

.hero__decor-icon {
	position: absolute;
	width: 68px;
	height: 68px;
	filter: drop-shadow(0 6px 10px rgba(38, 33, 24, 0.12));
}

/* Mela — alto a sinistra */
.hero__decor-icon--1 {
	top: 10%;
	left: 1%;
	width: 92px;
	height: 92px;
	transform: rotate(-10deg);
}

/* Banana — basso a sinistra. .hero ha overflow:hidden (per contenere il
   gradiente di sfondo), quindi qui restiamo dentro i bordi: un offset
   negativo verrebbe tagliato via invece di "sbordare" come previsto. */
.hero__decor-icon--2 {
	bottom: 22px;
	left: 20px;
	width: 84px;
	height: 84px;
	transform: rotate(18deg);
}

/* Arancia — alto a destra */
.hero__decor-icon--3 {
	top: 6%;
	right: 2%;
	width: 78px;
	height: 78px;
	transform: rotate(8deg);
}

/* Carota — basso a destra, dentro il bordo (vedi nota sulla banana) */
.hero__decor-icon--4 {
	bottom: 22px;
	right: 20px;
	width: 88px;
	height: 88px;
	transform: rotate(-14deg);
}

/* Pomodoro — piccolo accento a sinistra, a metà altezza */
.hero__decor-icon--5 {
	top: 42%;
	left: 5%;
	width: 44px;
	height: 44px;
	opacity: 0.85;
	transform: rotate(-6deg);
}

/* Formaggio — piccolo accento a destra, a metà altezza */
.hero__decor-icon--6 {
	top: 48%;
	right: 8%;
	width: 46px;
	height: 46px;
	opacity: 0.85;
	transform: rotate(10deg);
}

@media (max-width: 1000px) {
	.hero__decor-icon--5,
	.hero__decor-icon--6 {
		display: none;
	}
}

@media (max-width: 640px) {
	.hero__decor-icon {
		opacity: 0.9;
	}
	.hero__decor-icon--1 { width: 52px; height: 52px; top: 4%; left: 10px; }
	.hero__decor-icon--2 { width: 46px; height: 46px; bottom: 16px; left: 14px; }
	.hero__decor-icon--3 { width: 46px; height: 46px; top: 3%; right: 10px; }
	.hero__decor-icon--4 { width: 52px; height: 52px; bottom: 16px; right: 14px; }
}

.hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
}

.hero__eyebrow {
	display: inline-block;
	padding: 7px 16px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--green-deep);
	letter-spacing: 0.01em;
}

.hero__title {
	margin: 20px 0 0;
	font-size: clamp(32px, 5vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.hero__subtitle {
	margin: 18px auto 0;
	max-width: 540px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-soft);
}

.hero__ctas {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.hero__cta {
	display: inline-block;
	padding: 14px 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero__cta--primary {
	background: var(--green-deep);
	color: var(--white);
	border: 1px solid var(--green-deep);
}

.hero__cta--primary:hover,
.hero__cta--primary:focus-visible {
	background: var(--terracotta);
	border-color: var(--terracotta);
	transform: translateY(-1px);
}

.hero__cta--whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 12px 30px 12px 22px;
	background: #25d366;
	color: var(--white);
	border: 1px solid #25d366;
	justify-content: center;
}

.hero__cta--whatsapp:hover,
.hero__cta--whatsapp:focus-visible {
	background: #1ebe5a;
	border-color: #1ebe5a;
	transform: translateY(-1px);
}

.hero__cta-icon {
	flex-shrink: 0;
}

.hero__cta-divider {
	align-self: stretch;
	width: 1px;
	background: rgba(255, 255, 255, 0.45);
}

.hero__features {
	list-style: none;
	margin: 48px 0 0;
	padding: 32px 0 0;
	border-top: 1px solid var(--border);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	text-align: left;
}

.hero__features li {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hero__features strong {
	font-family: var(--ff-display);
	font-size: 16px;
	color: var(--green-deep);
}

.hero__features span {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* ── Catalogo ────────────────────────────────────────────────────────── */

.catalog {
	padding: 24px 24px 96px;
	scroll-margin-top: 24px;
}

.catalog__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.catalog__title {
	font-size: clamp(26px, 3.4vw, 34px);
	text-align: center;
	margin-bottom: 28px;
}

.catalog__empty {
	text-align: center;
	color: var(--ink-soft);
	padding: 48px 0;
}

.catalog__empty-reset {
	display: inline-block;
	margin-top: 12px;
	color: var(--green-deep);
	font-weight: 600;
	text-decoration: underline;
	background: none;
	border: none;
	font-size: 15px;
}

/* Ricerca */

.catalog-search {
	position: relative;
	max-width: 420px;
	margin: 0 auto 24px;
}

.catalog-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--ink-soft);
	pointer-events: none;
}

.catalog-search__input {
	width: 100%;
	padding: 13px 44px 13px 44px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--white);
	font-family: var(--ff-text);
	font-size: 15px;
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search__input:focus-visible {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px var(--green-soft);
}

.catalog-search__spinner {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid var(--border);
	border-top-color: var(--green-deep);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.15s ease;
	animation: catalog-spin 0.7s linear infinite;
}

.catalog-search.is-loading .catalog-search__spinner {
	opacity: 1;
}

@keyframes catalog-spin {
	to { transform: rotate(360deg); }
}

.catalog__meta {
	text-align: center;
	font-size: 13px;
	color: var(--ink-soft);
	margin-bottom: 20px;
	min-height: 18px;
}

.catalog__load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70px;
	margin-top: 24px;
}

.catalog__load-more[hidden] {
	display: none;
}

.catalog__load-more .catalog-search__spinner {
	opacity: 0;
	transition: opacity 0.15s ease;
}

.catalog__load-more.is-loading .catalog-search__spinner {
	opacity: 1;
}

/* Filtro categorie */

.catalog-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
}

.catalog-filter__pill {
	border: 1px solid var(--border);
	background: var(--white);
	color: var(--ink);
	padding: 10px 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.catalog-filter__pill:hover,
.catalog-filter__pill:focus-visible {
	border-color: var(--green);
	transform: translateY(-1px);
}

.catalog-filter__pill.is-active {
	background: var(--green-deep);
	border-color: var(--green-deep);
	color: var(--white);
}

/* Griglia prodotti */

.product-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
	gap: 24px;
}

.product-card {
	background: var(--cream-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-2px);
}

.product-card--skeleton {
	pointer-events: none;
}

.product-card--skeleton .product-card__image {
	background: var(--border);
}

.skeleton-shimmer {
	position: relative;
	overflow: hidden;
	background: var(--border);
	border-radius: var(--radius-s);
}

.skeleton-shimmer::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	animation: skeleton-shimmer 1.3s infinite;
}

@keyframes skeleton-shimmer {
	100% { transform: translateX(100%); }
}

.product-card--skeleton .product-card__title.skeleton-shimmer {
	height: 18px;
	width: 70%;
	margin-bottom: 4px;
}

.product-card--skeleton .product-card__pricing.skeleton-shimmer {
	height: 19px;
	width: 45%;
}

.product-card--skeleton .product-card__footer.skeleton-shimmer {
	height: 34px;
	width: 100%;
	margin-top: 12px;
}

.product-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--green-soft);
	overflow: hidden;
}

.product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__quickview {
	background: none;
	border: none;
	margin: 0;
	color: inherit;
	font: inherit;
	text-align: left;
}

button.product-card__image {
	display: block;
	width: 100%;
	padding: 0;
}

.product-card__title button.product-card__quickview {
	padding: 0;
	transition: color 0.15s ease;
}

.product-card__title button.product-card__quickview:hover,
.product-card__title button.product-card__quickview:focus-visible {
	color: var(--terracotta-d);
}

.product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--ink);
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
}

.product-card--sold-out .product-card__image img {
	filter: grayscale(0.5);
	opacity: 0.75;
}

.product-card__body {
	padding: 20px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.product-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.product-card__pricing {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 2px;
}

.product-card__price {
	font-family: var(--ff-display);
	font-size: 19px;
	font-weight: 600;
	color: var(--terracotta-d);
}

.product-card__price ins {
	text-decoration: none;
}

.product-card__price del {
	color: var(--ink-soft);
	font-size: 15px;
	opacity: 0.75;
}

.product-card__unit {
	font-size: 13px;
	color: var(--ink-soft);
}

.product-card__price-kg {
	font-size: 13px;
	color: var(--ink-soft);
}

.product-card__footer {
	margin-top: auto;
	padding-top: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.product-card__stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 999px;
	overflow: hidden;
	background: var(--white);
	flex-shrink: 0;
}

.product-card__stepper-btn {
	border: none;
	background: transparent;
	width: 42px;
	height: 44px;
	font-size: 19px;
	line-height: 1;
	color: var(--green-deep);
	transition: background 0.15s ease;
}

.product-card__stepper-btn:hover,
.product-card__stepper-btn:focus-visible {
	background: var(--green-soft);
}

.product-card__stepper-input {
	width: 46px;
	border: none;
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	height: 44px;
	-moz-appearance: textfield;
}

.product-card__stepper-input::-webkit-outer-spin-button,
.product-card__stepper-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.product-card__stepper-input--label {
	width: 72px;
	font-size: 13px;
	letter-spacing: -0.01em;
	cursor: default;
}

.product-card__add {
	flex: 1;
	min-width: 112px;
	border: none;
	background: var(--green-deep);
	color: var(--white);
	font-size: 14px;
	font-weight: 700;
	padding: 0 20px;
	height: 44px;
	border-radius: 999px;
	transition: background 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
}

.product-card__add:hover:not(:disabled),
.product-card__add:focus-visible:not(:disabled) {
	background: var(--terracotta);
}

.product-card__add:disabled {
	background: var(--border);
	color: var(--ink-soft);
	cursor: not-allowed;
}

.product-card__add.loading {
	opacity: 0.6;
	pointer-events: none;
}

.product-card__add.added {
	background: var(--green);
}

/* Il link "Vedi carrello" che WooCommerce aggiunge dopo l'aggiunta non serve qui. */
.added_to_cart.wc-forward {
	display: none;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
	background: var(--green-deep);
	color: rgba(255, 255, 255, 0.88);
	padding: 56px 24px 0;
}

.site-footer__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__brand img {
	max-height: 44px;
	filter: brightness(0) invert(1);
	margin-bottom: 10px;
}

.site-footer__title {
	font-family: var(--ff-display);
	font-size: 20px;
	color: var(--white);
}

.site-footer__tagline {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	max-width: 320px;
	margin: 8px 0 0;
}

.site-footer__info {
	display: flex;
	gap: 48px;
	font-size: 14px;
}

.site-footer__info a {
	color: var(--white);
	text-decoration: none;
	font-weight: 600;
}

.site-footer__info a:hover {
	color: var(--terracotta);
}

.site-footer__bottom {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
}

/* ── Scheda prodotto (quick view + pagina singola) ──────────────────────── */

.product-detail {
	position: relative;
}

.product-detail__layout {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
}

.product-detail__image {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--green-soft);
	overflow: hidden;
	border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.product-detail__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-detail__body {
	padding: 22px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product-detail__title {
	font-size: 24px;
	line-height: 1.2;
	margin-bottom: 2px;
}

.product-detail__info {
	margin: 16px 0 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.product-detail__info-row dt {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--green);
	margin-bottom: 3px;
}

.product-detail__info-row dd {
	margin: 0;
	font-size: 14px;
	color: var(--ink);
	line-height: 1.5;
	white-space: pre-line;
}

.product-detail__allergens {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.product-detail__allergens li {
	background: var(--terracotta);
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 999px;
}

.product-detail__no-info {
	margin-top: 14px;
	font-size: 13px;
	color: var(--ink-soft);
	font-style: italic;
}


.single-product-page {
	padding-top: 92px;
}

.single-product-page__inner {
	max-width: 820px;
}

.single-product-page__back {
	display: inline-block;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--green-deep);
	text-decoration: none;
}

.single-product-page__back:hover {
	color: var(--terracotta-d);
}

.product-detail-wrapper {
	background: var(--cream-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

/* ── Modale quick view ───────────────────────────────────────────────── */

.product-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.product-modal[hidden] {
	display: none;
}

.product-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(38, 33, 24, 0.55);
	backdrop-filter: blur(2px);
}

.product-modal__panel-wrap {
	position: relative;
	max-width: 800px;
	width: 100%;
}

.product-modal__panel {
	position: relative;
	width: 100%;
	max-height: min(88vh, calc(100vh - 108px - env(safe-area-inset-bottom)));
	overflow-y: auto;
	background: var(--cream-card);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-card-hover);
	animation: modal-pop 0.18s ease;
}

.product-modal__close-top {
	position: absolute;
	top: -18px;
	right: -18px;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--white);
	color: var(--ink);
	box-shadow: var(--shadow-card-hover);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.product-modal__close-top svg {
	width: 17px;
	height: 17px;
}

.product-modal__close-top:hover,
.product-modal__close-top:focus-visible {
	background: var(--terracotta);
	color: var(--white);
	border-color: var(--terracotta);
}

@keyframes modal-pop {
	from { transform: scale(0.97); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.product-modal__toolbar {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 101;
	display: flex;
	align-items: center;
	gap: 4px;
	background: var(--cream-card);
	border: 1px solid var(--border);
	color: var(--ink);
	padding: 6px;
	border-radius: 999px;
	box-shadow: var(--shadow-card-hover);
}

.product-modal[hidden] .product-modal__toolbar {
	display: none;
}

.product-modal__tool {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: var(--green-deep);
	transition: background 0.15s ease, color 0.15s ease;
}

.product-modal__tool svg {
	width: 19px;
	height: 19px;
}

.product-modal__tool:hover,
.product-modal__tool:focus-visible {
	background: var(--green-soft);
}

.product-modal__tool:disabled {
	opacity: 0.3;
	pointer-events: none;
}

.product-modal__tool--loading svg {
	animation: catalog-spin 0.6s linear infinite;
}

.product-modal__tool--info {
	width: auto;
	gap: 7px;
	padding: 0 14px 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--terracotta-d);
}

.product-modal__tool--info:hover,
.product-modal__tool--info:focus-visible {
	background: var(--green-soft);
}

.product-modal__toolbar-divider {
	width: 1px;
	height: 22px;
	background: var(--border);
	margin: 0 2px;
}

.product-modal__position {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-soft);
	padding: 0 6px 0 10px;
	white-space: nowrap;
}

.product-modal__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 0;
}

body.has-modal-open {
	overflow: hidden;
}

/* ── Carrello flottante + ritiro ─────────────────────────────────────── */

.site-fab {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 10px;
}

body.has-modal-open .site-fab {
	display: none;
}

.pickup-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 18px 0 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	box-shadow: var(--shadow-card);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pickup-pill svg {
	width: 19px;
	height: 19px;
	flex-shrink: 0;
	color: var(--green-deep);
}

.pickup-pill:hover,
.pickup-pill:focus-visible {
	border-color: var(--green);
	box-shadow: var(--shadow-card-hover);
	transform: translateY(-1px);
}

.pickup-pill--set {
	border-color: var(--green);
	background: var(--green-soft);
}

.pickup-pill--set .pickup-pill__label {
	color: var(--green-deep);
}

.cart-bubble {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--green-deep);
	color: var(--white);
	box-shadow: var(--shadow-card-hover);
	flex-shrink: 0;
	transition: transform 0.15s ease, background 0.2s ease;
}

.cart-bubble svg {
	width: 22px;
	height: 22px;
}

.cart-bubble:hover,
.cart-bubble:focus-visible {
	background: var(--terracotta);
	transform: translateY(-1px);
}

.cart-bubble--pulse {
	animation: cart-pulse 0.35s ease;
}

@keyframes cart-pulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.18); }
	100% { transform: scale(1); }
}

.cart-bubble__badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--terracotta);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--cream);
}

/* Immagine clonata animata verso il carrello */
.fly-to-cart {
	position: fixed;
	z-index: 200;
	pointer-events: none;
	border-radius: var(--radius-m);
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.3, 0, 0.15, 1), opacity 0.55s ease;
	will-change: transform, opacity;
}

/* Popover ritiro */

.pickup-popover {
	position: fixed;
	inset: 0;
	z-index: 120;
}

.pickup-popover[hidden] {
	display: none;
}

.pickup-popover__backdrop {
	position: absolute;
	inset: 0;
}

.pickup-popover__panel {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px));
	width: min(320px, calc(100vw - 40px));
	background: var(--cream-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-card-hover);
	padding: 20px;
	animation: modal-pop 0.16s ease;
}

.pickup-popover__title {
	font-size: 17px;
	margin-bottom: 4px;
}

.pickup-popover__hint {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--ink-soft);
}

.pickup-popover__field {
	display: block;
	margin-bottom: 14px;
}

.pickup-popover__field span {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--green);
	margin-bottom: 6px;
}

.pickup-popover__field input,
.pickup-popover__field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	background: var(--white);
	font-family: var(--ff-text);
	font-size: 14px;
	color: var(--ink);
}

.pickup-popover__field input:focus-visible,
.pickup-popover__field select:focus-visible {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px var(--green-soft);
}

.pickup-popover__error {
	margin: -6px 0 14px;
	font-size: 12px;
	color: var(--danger);
}

.pickup-popover__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.pickup-popover__cancel {
	border: none;
	background: none;
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 14px;
}

.pickup-popover__save {
	border: none;
	background: var(--green-deep);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
	transition: background 0.2s ease;
}

.pickup-popover__save:hover,
.pickup-popover__save:focus-visible {
	background: var(--terracotta);
}

/* ── Drawer prenotazione ─────────────────────────────────────────────── */

.reservation-drawer {
	position: fixed;
	inset: 0;
	z-index: 110;
}

.reservation-drawer[hidden] {
	display: none;
}

.reservation-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(38, 33, 24, 0.55);
	backdrop-filter: blur(2px);
}

.reservation-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 100%);
	background: var(--cream-card);
	box-shadow: -8px 0 30px rgba(38, 33, 24, 0.2);
	display: flex;
	flex-direction: column;
	animation: reservation-slide-in 0.22s ease;
}

@keyframes reservation-slide-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

.reservation-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.reservation-drawer__header h3 {
	font-size: 19px;
}

.reservation-drawer__close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--white);
	color: var(--ink);
	display: flex;
	align-items: center;
	justify-content: center;
}

.reservation-drawer__close svg {
	width: 16px;
	height: 16px;
}

.reservation-drawer__close:hover,
.reservation-drawer__close:focus-visible {
	background: var(--green-soft);
}

.reservation-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px 32px;
}

.reservation-loading {
	display: flex;
	justify-content: center;
	padding: 70px 0;
}

.reservation-empty {
	text-align: center;
	padding: 50px 10px;
	color: var(--ink-soft);
}

.reservation-empty__link {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 24px;
	background: var(--green-deep);
	color: var(--white);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.reservation-items {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.reservation-total {
	flex-wrap: wrap;
}

.note-total {
	flex: 0 0 100%;
	font-size: 12px;
	margin-top: 5px;
	display: block;
}

.reservation-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reservation-item__img {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-s);
	overflow: hidden;
	background: var(--green-soft);
	flex-shrink: 0;
}

.reservation-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reservation-item__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.reservation-item__name {
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.reservation-item__qty {
	font-size: 12px;
	color: var(--ink-soft);
}

.reservation-item__total {
	font-size: 14px;
	font-weight: 700;
	color: var(--terracotta-d);
	white-space: nowrap;
}

.reservation-item__remove {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border: none;
	background: none;
	color: var(--ink-soft);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.reservation-item__remove svg {
	width: 14px;
	height: 14px;
}

.reservation-item__remove:hover,
.reservation-item__remove:focus-visible {
	background: var(--green-soft);
	color: var(--danger);
}

.reservation-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: 15px;
	font-weight: 600;
}

.reservation-total strong {
	font-family: var(--ff-display);
	font-size: 21px;
	color: var(--terracotta-d);
}

.reservation-disclaimer {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ink-soft);
	font-style: italic;
}

.reservation-pickup {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--white);
	border: 1px dashed var(--border);
	border-radius: var(--radius-m);
}

.reservation-pickup.is-set {
	background: var(--green-soft);
	border-style: solid;
	border-color: transparent;
}

.reservation-pickup__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--green);
}

.reservation-pickup__value {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.reservation-pickup__edit {
	flex-shrink: 0;
	border: 1px solid var(--border);
	background: var(--white);
	color: var(--green-deep);
	font-size: 13px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 999px;
}

.reservation-pickup__edit:hover,
.reservation-pickup__edit:focus-visible {
	border-color: var(--green-deep);
}

.reservation-form {
	margin-top: 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.reservation-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.reservation-form__field span {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--green);
}

.reservation-form__field input,
.reservation-form__field textarea {
	font-family: var(--ff-text);
	font-size: 14px;
	color: var(--ink);
	padding: 11px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	background: var(--white);
	resize: vertical;
}

.reservation-form__field input:focus-visible,
.reservation-form__field textarea:focus-visible {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px var(--green-soft);
}

.reservation-form__error {
	margin: 0;
	font-size: 13px;
	color: var(--danger);
}

.reservation-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink-soft);
	cursor: pointer;
}

.reservation-form__consent input {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--green-deep);
}

.reservation-form__consent a {
	color: var(--green-deep);
	font-weight: 600;
	text-decoration: underline;
}

.reservation-form__submit {
	margin-top: 4px;
	padding: 15px;
	background: var(--green-deep);
	color: var(--white);
	border: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	transition: background 0.2s ease;
}

.reservation-form__submit:hover:not(:disabled),
.reservation-form__submit:focus-visible:not(:disabled) {
	background: var(--terracotta);
}

.reservation-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.reservation-confirm {
	text-align: center;
	padding: 24px 6px;
}

.reservation-confirm__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--green-soft);
	color: var(--green-deep);
	display: flex;
	align-items: center;
	justify-content: center;
}

.reservation-confirm__icon svg {
	width: 26px;
	height: 26px;
}

.reservation-confirm h4 {
	font-size: 18px;
	margin-bottom: 8px;
}

.reservation-confirm p {
	font-size: 14px;
	color: var(--ink-soft);
	margin: 0 0 22px;
}

.reservation-confirm__whatsapp {
	display: block;
	padding: 15px;
	background: #25d366;
	color: var(--white);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	margin-bottom: 12px;
	transition: opacity 0.2s ease;
}

.reservation-confirm__whatsapp:hover {
	opacity: 0.88;
}

.reservation-confirm__close {
	border: none;
	background: none;
	color: var(--ink-soft);
	font-weight: 600;
	font-size: 14px;
	padding: 10px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.hero {
		padding: 84px 20px 48px;
	}

	.hero__features {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-top: 36px;
		padding-top: 24px;
	}

	.hero__ctas {
		flex-direction: column;
	}

	.hero__cta {
		width: 100%;
		text-align: center;
	}

	.catalog {
		padding: 12px 18px 72px;
	}

	/* Con più categorie, andare a capo creerebbe un blocco altissimo:
	   su mobile le pillole scorrono in un'unica riga orizzontale. */
	.catalog-filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-left: -18px;
		margin-right: -18px;
		padding-left: 18px;
		padding-right: 18px;
	}

	.catalog-filter::-webkit-scrollbar {
		display: none;
	}

	.catalog-filter__pill {
		flex-shrink: 0;
	}

	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 16px;
	}

	.product-card__body {
		padding: 16px 16px 18px;
	}

	.site-footer__inner {
		flex-direction: column;
	}

	.site-fab {
		right: 14px;
		bottom: 14px;
	}

	.pickup-pill {
		height: 48px;
		padding: 0 14px 0 12px;
	}

	.pickup-pill__label {
		max-width: 34vw;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.cart-bubble {
		width: 48px;
		height: 48px;
	}

	.product-modal__toolbar {
		left: 30px;
		right: 30px;
		transform: none;
		justify-content: space-between;
	}

	.pickup-popover__panel {
		right: 14px;
		bottom: 78px;
	}
}

/* ── Pagine legali (privacy, cookie) ─────────────────────────────────── */

.legal-page {
	padding: 92px 24px 120px; /* sopra: header assoluto · sotto: pillole flottanti */
}

.legal-page__inner {
	max-width: 780px;
	margin: 0 auto;
}

.legal-page__back {
	display: inline-block;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--green-deep);
	text-decoration: none;
}

.legal-page__back:hover {
	color: var(--terracotta-d);
}

.legal-page__header {
	margin-bottom: 28px;
}

.legal-page__title {
	font-size: clamp(30px, 4.4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.legal-page__updated {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--ink-soft);
}

.legal-page__content {
	padding: 40px 44px;
	background: var(--cream-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-card);
	font-size: 16px;
	line-height: 1.7;
}

.legal-page__content > :first-child {
	margin-top: 0;
}

.legal-page__content > :last-child,
.legal-page__content section > :last-child {
	margin-bottom: 0;
}

.legal-page__content section {
	margin-top: 36px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.legal-page__content h2 {
	margin: 0 0 14px;
	font-size: clamp(21px, 2.6vw, 25px);
	line-height: 1.25;
}

.legal-page__content h3 {
	margin: 24px 0 10px;
	font-size: 18px;
	line-height: 1.3;
}

.legal-page__content p {
	margin: 0 0 14px;
}

.legal-page__content ul,
.legal-page__content ol {
	margin: 0 0 14px;
	padding-left: 22px;
}

.legal-page__content li + li {
	margin-top: 8px;
}

.legal-page__content li::marker {
	color: var(--green);
}

.legal-page__content a {
	color: var(--green-deep);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	overflow-wrap: anywhere;
}

.legal-page__content a:hover {
	color: var(--terracotta-d);
}

.legal-page__content strong {
	color: var(--ink);
}

.legal-page__content code {
	padding: 1px 6px;
	background: var(--green-soft);
	border-radius: 4px;
	font-size: 0.86em;
	overflow-wrap: anywhere;
}

/* Tabelle (es. dichiarazione cookie incollata dal servizio di consenso) */
.legal-page__content table {
	width: 100%;
	margin: 16px 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
	display: block;
	overflow-x: auto;
}

.legal-page__content th,
.legal-page__content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.legal-page__content th {
	color: var(--green-deep);
	font-weight: 700;
	background: var(--green-soft);
}

@media (max-width: 640px) {
	.legal-page {
		padding: 84px 16px 112px;
	}

	.legal-page__header {
		margin-bottom: 22px;
	}

	.legal-page__content {
		padding: 26px 20px;
		border-radius: var(--radius-m);
		font-size: 15px;
	}

	.legal-page__content section {
		margin-top: 28px;
		padding-top: 24px;
	}
}