/* ===== AMM Catalog — popup prodotto "trattoria" 2026 (media compatto, acquisto integrato) ===== */
.amm-storefront .amm-modal-product__media::after{content:none;display:none}

/* Overlay: vetro caldo, il popup emerge dal catalogo. */
.amm-storefront .amm-modal{
	padding:clamp(10px,2.5vw,24px);
	background:rgba(30,20,14,.5);
	backdrop-filter:blur(20px) saturate(1.1);
	-webkit-backdrop-filter:blur(20px) saturate(1.1);
}
.amm-storefront .amm-modal__dialog{
	position:relative;
	display:flex;flex-direction:column;
	width:min(640px,100%);
	max-width:min(640px,100%)!important;
	height:auto;
	max-height:min(800px,92vh);
	max-height:min(800px,92dvh);
	border-radius:28px;
	background:#fffdf8;
	border:0;
	box-shadow:0 40px 110px -24px rgba(42,27,21,.5),0 2px 8px rgba(42,27,21,.06);
	overflow:hidden;
	transform:translateZ(0);
}
.amm-storefront .amm-modal__content{
	flex:1 1 auto;min-height:0;height:auto;max-height:none!important;
	overflow:auto;overscroll-behavior:contain;
	scrollbar-width:thin;scroll-padding-bottom:24px;-webkit-overflow-scrolling:touch;
}
.amm-storefront .amm-modal__close{
	position:absolute;top:14px;right:14px;z-index:9;width:40px;height:40px;
	border:0;border-radius:999px;background:rgba(255,253,248,.92);color:var(--amm-text,#2a1b15);
	box-shadow:0 4px 14px rgba(42,27,21,.16);display:grid;place-items:center;
	font-size:20px;font-weight:900;line-height:1;cursor:pointer;
	transition:background .15s ease,transform .15s ease;
}
.amm-storefront .amm-modal__close:hover{background:#fff;transform:scale(1.05)}

/* ===== Intestazione compatta: immagine piccola accanto a nome e descrizione ===== */
.amm-storefront .amm-modal-product{display:block;background:#fffdf8}
.amm-storefront .amm-modal-product--apple{display:block;height:auto;min-height:0}
.amm-storefront .amm-modal-product--apple .amm-modal-product__grid{display:block;height:auto;min-height:0}
.amm-storefront .amm-modal-product--apple .amm-modal-product__details{
	display:block;min-width:0;min-height:0;padding:22px 24px 24px;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__intro{
	display:flex;align-items:center;gap:16px;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__media{
	width:72px;height:72px;flex:0 0 72px;display:grid;place-items:center;
	margin:0;padding:0;background:#f3ede4;border-radius:18px;overflow:hidden;
	box-shadow:0 4px 12px rgba(42,27,21,.08);
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__media img{
	display:block;width:100%;height:100%;max-height:none;object-fit:cover;border-radius:0;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__intro-copy{min-width:0;flex:1}
.amm-storefront .amm-modal-product--apple .amm-modal-product__name{
	position:static!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;
	background:none!important;box-shadow:none!important;border-radius:0!important;
	font-family:'Crimson Pro',Georgia,serif;font-size:clamp(23px,3vw,28px)!important;
	font-weight:900;line-height:1.08;letter-spacing:-.03em;color:var(--amm-text,#2a1b15);overflow-wrap:anywhere;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__description{
	margin:5px 0 0;font-family:'Crimson Pro',Georgia,serif;
	font-size:14.5px;line-height:1.55;font-style:italic;color:var(--amm-muted,#77716b);
	display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__description p:last-child{margin-bottom:0}

/* ===== Allergeni nel popup: subito sotto il separatore della descrizione ===== */
.amm-storefront .amm-modal-product--apple .amm-modal-product__allergens{
	display:flex;align-items:center;gap:8px;flex-wrap:wrap;
	margin:12px 0 0;padding-top:12px;
	border-top:1px dashed #e8dfd3;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__allergens-label{
	font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:var(--amm-muted,#77716b);
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__allergens img{width:16px;height:16px;vertical-align:middle}
.amm-storefront .amm-modal-product--apple .amm-modal-product__allergens-item{
	display:inline-flex;align-items:center;gap:4px;
	font-size:12px;font-weight:700;color:var(--amm-text,#2a1b15);
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__allergens-emoji{font-size:14px}
/* Il tratteggio lo porta già il blocco allergeni: niente doppia linea sul form */
.amm-storefront .amm-modal-product--apple .amm-modal-product__allergens + .amm-modal-product__form-wrapper{border-top:0;padding-top:4px}
.amm-storefront .amm-modal-product--apple .amm-modal-product__configure{
	display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:14px;padding:12px 20px;
	border-radius:999px;background:transparent;border:1.5px solid var(--amm-primary,#a6261d);color:var(--amm-primary,#a6261d);
	font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;text-decoration:none;
	transition:background .15s ease,color .15s ease;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__configure:hover{background:var(--amm-primary,#a6261d);color:#fff}

/* ===== Blocco opzioni ===== */
.amm-storefront .amm-modal-product--apple .amm-modal-product__form-wrapper{
	display:flex;flex-direction:column;gap:12px;margin-top:16px;padding-top:18px;
	border-top:1px dashed #e8dfd3;
}
.amm-storefront .amm-modal-product--apple .amm-modal-form-hint{
	margin:0;padding:10px 14px;border-radius:14px;background:#fbf5ea;border:1px solid #f0e6d6;
	color:var(--amm-text,#2a1b15);font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
}
.amm-storefront .amm-modal-product--apple .amm-modal-form-hint::before{content:'\2726\00a0';color:var(--amm-primary,#a6261d)}
.amm-storefront .amm-modal-product--apple .amm-modal-product form.cart{
	margin:0;float:none!important;display:flex;flex-direction:column;gap:12px;
}

/* ===== Acquisto sempre visibile durante lo scorrimento delle opzioni ===== */
.amm-storefront .amm-modal-product--apple .amm-purchase{
	position:sticky;bottom:0;z-index:8;display:grid;
	grid-template-columns:auto minmax(90px,1fr) minmax(180px,210px);gap:14px;align-items:center;
	margin:4px 0 0;padding:14px 16px;background:#faf6ee;
	border:1px solid #eee4d6;border-radius:20px;box-shadow:0 -8px 24px rgba(42,27,21,.1);
}
.amm-storefront .amm-modal-product--apple .amm-purchase-quantity>span,
.amm-storefront .amm-modal-product--apple .amm-purchase-price>small{
	display:block;margin:0 0 4px;font-size:8px;font-weight:900;letter-spacing:.16em;
	text-transform:uppercase;color:var(--amm-muted,#8b857e);
}
.amm-storefront .amm-modal-product--apple .amm-stepper{
	display:grid;grid-template-columns:44px 44px 44px;align-items:center;justify-content:center;width:132px;box-sizing:content-box;background:#fff;
	border:1.5px solid #e4dccb;border-radius:999px;box-shadow:inset 0 1px 3px rgba(42,27,21,.05);
}
.amm-storefront .amm-modal-product--apple .amm-stepper>button{
	width:44px;min-width:0;max-width:44px;height:44px;min-height:44px;margin:0;padding:0;line-height:1;border:0;background:transparent;color:var(--amm-text,#2a1b15);
	font-size:19px;font-weight:900;cursor:pointer;transition:color .15s ease;
}
.amm-storefront .amm-modal-product--apple .amm-stepper>button:hover{color:var(--amm-primary,#a6261d)}
.amm-storefront .amm-modal-product--apple .amm-purchase .quantity{float:none;margin:0!important;padding:0;width:44px;min-width:0}
.amm-storefront .amm-modal-product--apple .amm-stepper input.qty{
	width:44px;min-width:0;max-width:44px;box-sizing:border-box;margin:0;border:0;border-radius:0;background:transparent;padding:8px 0;box-shadow:none;
	text-align:center;font-size:16px;font-weight:800;color:var(--amm-text,#2a1b15);
	appearance:textfield;-moz-appearance:textfield;
}
.amm-storefront .amm-modal-product--apple .amm-stepper input.qty::-webkit-inner-spin-button,
.amm-storefront .amm-modal-product--apple .amm-stepper input.qty::-webkit-outer-spin-button{appearance:none;margin:0}
.amm-storefront .amm-modal-product--apple .amm-selection-total{
	display:block;font-family:'Crimson Pro',Georgia,serif;
	font-size:25px;font-weight:900;letter-spacing:-.02em;line-height:1.1;color:var(--amm-text,#2a1b15);white-space:nowrap;overflow-wrap:normal;
}
.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button{
	float:none!important;width:100%;min-height:50px;margin:0!important;
	border:0!important;border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.1em;
	background:var(--amm-primary,#a6261d)!important;color:#fff!important;
	box-shadow:0 6px 16px rgba(166,38,29,.24);cursor:pointer;
	transition:background .15s ease,box-shadow .15s ease,transform .15s ease;
}
.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button:hover{
	background:#8b1a13!important;box-shadow:0 8px 20px rgba(166,38,29,.3);transform:translateY(-1px);
}
.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button:disabled{
	background:#efe9df!important;color:#a49d93!important;border:1px dashed #ddd3c2!important;box-shadow:none!important;cursor:not-allowed;transform:none;
}
.amm-storefront .amm-modal-product--apple .amm-add-to-cart-form__feedback:not(:empty){
	margin:0;padding:12px 14px;border-radius:14px;background:#fdf3e7;border:1px solid #f0e0c8;color:#7a4b00;font-size:12px;font-weight:800;
}

/* ===== Gruppi di opzioni ===== */
.amm-storefront .amm-modal-product--apple .amm-extras{
	margin:0;padding:0;border:1px solid #ece3d4;border-radius:20px;background:#fff;overflow:hidden;
}
.amm-storefront .amm-modal-product--apple .amm-extras + .amm-extras{margin-top:12px}
.amm-storefront .amm-modal-product--apple .amm-extras summary{
	display:flex;align-items:center;gap:14px;padding:15px 18px;border-radius:20px;
	background:#faf6ee;color:var(--amm-text,#2a1b15);cursor:pointer;list-style:none;
	transition:background .15s ease;
}
.amm-storefront .amm-modal-product--apple .amm-extras summary:hover{background:#f5efe2}
.amm-storefront .amm-modal-product--apple .amm-extras summary::-webkit-details-marker{display:none}
.amm-storefront .amm-modal-product--apple .amm-extras summary>span:first-child{flex:1;min-width:0}
.amm-storefront .amm-modal-product--apple .amm-extras summary strong{display:block;font-family:'Plus Jakarta Sans',sans-serif;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.amm-storefront .amm-modal-product--apple .amm-extras summary small{display:block;margin-top:3px;font-size:10px;font-weight:700;color:var(--amm-muted,#8b857e)}
.amm-storefront .amm-extra-required{
	font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--amm-primary,#a6261d);
	background:#fdeee7;border-radius:999px;padding:5px 11px;white-space:nowrap;
}
.amm-storefront .amm-extras[data-min="0"] .amm-extra-required{background:#eee9df;color:var(--amm-muted,#8b857e)}
.amm-storefront .amm-extra-chevron{
	width:32px;height:32px;border-radius:999px;background:#fff;border:1px solid #e4dccb;color:var(--amm-text,#2a1b15);
	display:grid;place-items:center;font-size:16px;transition:transform .18s ease;
}
.amm-storefront .amm-extras[open] .amm-extra-chevron{transform:rotate(180deg)}
.amm-storefront .amm-modal-product--apple .amm-extra-options{
	display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:12px 0 8px;padding:0 14px;
}
.amm-storefront .amm-extra-option{display:block;position:relative;margin:0;padding:0;border:0;background:none}
.amm-storefront .amm-extra-option>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}
.amm-storefront .amm-extra-card{
	display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 14px;
	border:1.5px solid #ece3d4;border-radius:16px;background:#fffdf8;
	transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.amm-storefront .amm-extra-card img{width:42px;height:42px;flex:0 0 42px;border-radius:12px;object-fit:cover;margin:0}
.amm-storefront .amm-extra-copy{min-width:0;flex:1}
.amm-storefront .amm-extras .amm-extra-copy strong{display:block;margin:0;font-family:'Plus Jakarta Sans',sans-serif;font-size:12.5px;font-weight:800;line-height:1.3;color:var(--amm-text,#2a1b15);text-transform:none;letter-spacing:0}
.amm-storefront .amm-extra-copy small{display:block;margin-top:3px;font-size:11px;font-weight:800;color:var(--amm-primary,#a6261d)}
.amm-storefront .amm-extra-check{
	display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:999px;
	border:2px solid #e4dccb;background:#fff;color:transparent;font-size:12px;font-weight:900;
	transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.amm-storefront .amm-extra-option>input:checked+.amm-extra-card{
	background:#f2f6ef;border-color:var(--amm-accent,#2d4f35);box-shadow:0 4px 12px rgba(45,79,53,.1);
}
.amm-storefront .amm-extra-option>input:checked+.amm-extra-card .amm-extra-check{
	background:var(--amm-accent,#2d4f35);border-color:var(--amm-accent,#2d4f35);color:#fff;
}
.amm-storefront .amm-extra-option>input:focus-visible+.amm-extra-card{outline:3px solid rgba(166,38,29,.4);outline-offset:2px}
.amm-storefront .amm-extra-option>input:disabled+.amm-extra-card{opacity:.55}
.amm-storefront .amm-extra-progress{
	margin:0;padding:4px 20px 12px;font-size:10px;font-weight:800;color:var(--amm-muted,#8b857e);
}

/* ===== Skeleton ===== */
.amm-storefront .amm-modal__loading{display:grid;place-items:center;min-height:min(240px,45vh);color:var(--amm-muted,#8b857e);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.amm-storefront .amm-modal__skeleton{display:grid;place-items:center;min-height:min(340px,60vh);padding:26px;background:#fffdf8}
.amm-storefront .amm-modal__skeleton-inner{display:flex;flex-direction:column;gap:12px;width:min(440px,92%)}
.amm-storefront .amm-modal__skeleton-media{width:min(300px,80%);aspect-ratio:3/2;border-radius:20px;background:#f3ede4;margin-bottom:12px}
.amm-storefront .amm-modal__skeleton-title{height:22px;border-radius:999px;background:#f3ede4}
.amm-storefront .amm-modal__skeleton-row{height:12px;border-radius:999px;background:#f3ede4}
.amm-storefront .amm-modal__skeleton-row--short{width:58%}
.amm-storefront .amm-modal__skeleton{animation:amm-skeleton-in .16s ease}
@keyframes amm-skeleton-in{from{opacity:.55}to{opacity:1}}

@media (prefers-reduced-motion: reduce){
	.amm-storefront .amm-modal__skeleton,
	.amm-storefront .amm-extra-chevron,
	.amm-storefront .amm-extra-card,
	.amm-storefront .amm-purchase .single_add_to_cart_button,
	.amm-storefront .amm-modal__close{transition:none!important;animation:none!important}
}

.amm-storefront .amm-modal-product--apple:not(.amm-modal-product--has-media) .amm-modal-product__details{grid-column:1/-1}

/* ===== Mobile ===== */
@media (max-width:640px){
	.amm-storefront .amm-modal{padding:0;align-items:flex-end}
	.amm-storefront .amm-modal__dialog{
		width:100%;max-width:none!important;
		height:auto;
		max-height:min(90dvh,760px);
		border-radius:22px 22px 0 0;
	}
	.amm-storefront .amm-modal__content{flex:1 1 auto;min-height:0;height:auto;max-height:none!important;scroll-padding-bottom:24px}
	.amm-storefront .amm-modal__close{top:10px;right:10px;width:36px;height:36px;font-size:18px}
	.amm-storefront .amm-modal-product--apple .amm-modal-product__details{padding:16px 16px 18px}
	.amm-storefront .amm-modal-product--apple .amm-modal-product__intro{gap:12px}
	.amm-storefront .amm-modal-product--apple .amm-modal-product__media{width:56px;height:56px;flex-basis:56px;border-radius:14px}
	.amm-storefront .amm-modal-product--apple .amm-modal-product__name{font-size:21px!important}
	.amm-storefront .amm-modal-product--apple .amm-modal-product__description{font-size:13px;line-height:1.45}
	.amm-storefront .amm-modal-product--apple .amm-purchase{
		grid-template-columns:auto minmax(0,1fr);gap:12px;padding:12px;
	}
	.amm-storefront .amm-modal-product--apple .amm-selection-total{font-size:19px}
	.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button{grid-column:1/-1;min-height:46px;font-size:11px}
	.amm-storefront .amm-modal-product--apple .amm-extra-card{min-height:54px;padding:8px 12px}
	.amm-storefront .amm-modal-product--apple .amm-extra-card img{width:36px;height:36px;border-radius:10px}
	.amm-storefront .amm-modal-product--apple .amm-extra-options{grid-template-columns:1fr}
}

/* ===== Colorful refresh 2026-09-21 ===== */
/* Dialogo: bordo caldo a gradiente e sfondo crema piu vivo. */
.amm-storefront .amm-modal__dialog{
	background:#fff9ef;
	border:1px solid rgba(166,38,29,.12);
	box-shadow:0 40px 110px -24px rgba(166,38,29,.35),0 2px 8px rgba(42,27,21,.08);
}
/* Header compatto: gradiente caldo dietro nome+immagine. */
.amm-storefront .amm-modal-product--apple .amm-modal-product__intro{
	position:relative;
	margin:-22px -24px 0;
	padding:22px 24px 18px;
	background:linear-gradient(135deg,#ffe9c7 0%,#ffd9d0 45%,#f7d8c8 100%);
	border-bottom:2px solid rgba(166,38,29,.14);
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__intro::after{
	content:'';position:absolute;left:0;right:0;bottom:-2px;height:6px;
	background:repeating-linear-gradient(90deg,#a6261d 0 18px,#e8a13a 18px 36px,#2d4f35 36px 54px);
	opacity:.85;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__media{
	background:#fffdf8;border:2px solid rgba(166,38,29,.25);box-shadow:0 6px 16px rgba(166,38,29,.18);
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__name{color:#7c1a12}
.amm-storefront .amm-modal-product--apple .amm-modal-product__description{color:#6d5648}
/* Hint: pillola ambra vivace. */
.amm-storefront .amm-modal-product--apple .amm-modal-form-hint{
	background:linear-gradient(120deg,#fff4e0,#ffe8d2);
	border:1px solid #f3c98f;color:#8a4d00;
}
.amm-storefront .amm-modal-product--apple .amm-modal-form-hint::before{color:#e07b00}
/* Card acquisto: sfondo tinta verde salvia e bordo caldo. */
.amm-storefront .amm-modal-product--apple .amm-purchase{
	background:linear-gradient(135deg,#f4f8f0,#faf6ec);
	border:1.5px solid #d9e4cf;
}
.amm-storefront .amm-modal-product--apple .amm-stepper{
	border-color:#b8cdaf;background:#fff;
}
.amm-storefront .amm-modal-product--apple .amm-stepper>button:hover{color:#2d4f35}
.amm-storefront .amm-modal-product--apple .amm-selection-total{color:#23391f}
/* CTA: gradiente rosso pomodoro, ombra calda. */
.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button{
	background:linear-gradient(135deg,#c33126 0%,#a6261d 55%,#8b1a13 100%)!important;
	box-shadow:0 8px 18px rgba(166,38,29,.32),inset 0 1px 0 rgba(255,255,255,.22);
}
.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button:hover{
	background:linear-gradient(135deg,#d03c2e 0%,#b02a1f 55%,#9a1f14 100%)!important;
	box-shadow:0 10px 24px rgba(166,38,29,.4);
}
/* Extra: intestazioni a tinta e card selezionate piu decise. */
.amm-storefront .amm-modal-product--apple .amm-extras summary{
	background:linear-gradient(135deg,#fdf3e4,#fbf5ea);
	border-bottom:1px solid #f0e2cc;
}
.amm-storefront .amm-modal-product--apple .amm-extras summary:hover{background:#f8ecd7}
.amm-storefront .amm-extra-required{
	background:#ffe3d6;color:#9c2014;border:1px solid #f4b79f;
}
.amm-storefront .amm-extra-option>input:checked+.amm-extra-card{
	background:#eef6ea;border-color:#3f6b45;
	box-shadow:0 4px 14px rgba(45,79,53,.16);
}
/* Feedback: verde per successo, resta leggibile. */
.amm-storefront .amm-modal-product--apple .amm-add-to-cart-form__feedback:not(:empty){
	background:#eef6ea;border:1px solid #bcd8b4;color:#2d4f35;
}
/* Chiudi: tocco di colore. */
.amm-storefront .amm-modal__close{
	color:#7c1a12;border:1px solid rgba(166,38,29,.18);
}
@media (max-width:640px){
	.amm-storefront .amm-modal-product--apple .amm-modal-product__intro{margin:-16px -16px 0;padding:16px 16px 14px}
}
.amm-storefront .amm-extras.is-complete > summary .amm-extra-required{
	background:#eef6ea;color:#2d4f35;border:1px solid #dbe7d9;
}

/* ===== Bandiera italiana 2026-09-22 ===== */
/* Palette tricolore: verde #008C45, bianco #FFFFFF, rosso #CD212A. */
/* Dialogo: bianco, ombra rossa. */
.amm-storefront .amm-modal__dialog{
	background:#ffffff;
	border:1px solid rgba(0,140,69,.16);
	box-shadow:0 40px 110px -24px rgba(205,33,42,.26),0 2px 8px rgba(42,27,21,.08);
}
/* Header: bianco con tinte tricolore leggere e banda tricolore sotto il titolo. */
.amm-storefront .amm-modal-product--apple .amm-modal-product__intro{
	background:linear-gradient(135deg,#eef7f0 0%,#ffffff 55%,#fdf0ee 100%);
	border-bottom:2px solid rgba(0,140,69,.18);
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__intro::after{
	background:linear-gradient(90deg,#008C45 0 33.33%,#f4f4f2 33.33% 66.66%,#CD212A 66.66% 100%);
	opacity:1;
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__media{
	background:#ffffff;border:2px solid rgba(0,140,69,.3);box-shadow:0 6px 16px rgba(0,140,69,.16);
}
.amm-storefront .amm-modal-product--apple .amm-modal-product__name{color:#0b5d31}
.amm-storefront .amm-modal-product--apple .amm-modal-product__description{color:#6d5648}
/* Hint: pillola verde. */
.amm-storefront .amm-modal-product--apple .amm-modal-form-hint{
	background:linear-gradient(120deg,#eef7f0,#e3f2e7);
	border:1px solid #b7d9c3;color:#0b5d31;
}
.amm-storefront .amm-modal-product--apple .amm-modal-form-hint::before{color:#008C45}
/* Card acquisto (banner prezzo): beige in tinta con le card delle opzioni. */
.amm-storefront .amm-modal-product--apple .amm-purchase{
	background:linear-gradient(135deg,#fffdf8,#faf6ee);
	border:1.5px solid #e4dccb;
}
.amm-storefront .amm-modal-product--apple .amm-stepper{
	border-color:#e4dccb;background:#fff;
}
.amm-storefront .amm-modal-product--apple .amm-stepper>button:hover{color:#CD212A}
.amm-storefront .amm-modal-product--apple .amm-selection-total{color:#2a1b15}
/* CTA: rosso bandiera. */
.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button{
	background:linear-gradient(135deg,#d33a2c 0%,#CD212A 55%,#9c181f 100%)!important;
	box-shadow:0 8px 18px rgba(205,33,42,.3),inset 0 1px 0 rgba(255,255,255,.22);
}
.amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button:hover{
	background:linear-gradient(135deg,#e04434 0%,#d32630 55%,#a81b22 100%)!important;
	box-shadow:0 10px 24px rgba(205,33,42,.38);
}
/* Extra: intestazione beige in tinta con le card delle opzioni, pillola obbligatoria rossa. */
.amm-storefront .amm-modal-product--apple .amm-extras summary{
	background:linear-gradient(135deg,#fffdf8,#faf6ee);
	border-bottom:1px solid #eee4d6;
}
.amm-storefront .amm-modal-product--apple .amm-extras summary:hover{background:#f5efe2}
.amm-storefront .amm-extra-required{
	background:#fdeae8;color:#CD212A;border:1px solid #f0b7ba;
}
/* Selezione neutra (calda): verde solo quando il gruppo obbligatorio è completato. */
.amm-storefront .amm-extra-option>input:checked+.amm-extra-card{
	background:#fdf6ec;border-color:#c9a06a;
	box-shadow:0 4px 14px rgba(146,106,58,.14);
}
.amm-storefront .amm-extra-option>input:checked+.amm-extra-card .amm-extra-check{
	background:#b98a4e;border-color:#b98a4e;
}
.amm-storefront .amm-extras.is-complete > .amm-extra-options > .amm-extra-option>input:checked+.amm-extra-card{
	background:#eef7f1;border-color:#008C45;
	box-shadow:0 4px 14px rgba(0,140,69,.18);
}
.amm-storefront .amm-extras.is-complete > .amm-extra-options > .amm-extra-option>input:checked+.amm-extra-card .amm-extra-check{
	background:#008C45;border-color:#008C45;
}
.amm-storefront .amm-extra-option>input:focus-visible+.amm-extra-card{outline:3px solid rgba(205,33,42,.35);outline-offset:2px}
.amm-storefront .amm-extras.is-complete > summary .amm-extra-required{
	background:#eef7f1;color:#008C45;border:1px solid #bcdcc9;
}
/* Feedback: verde bandiera. */
.amm-storefront .amm-modal-product--apple .amm-add-to-cart-form__feedback:not(:empty){
	background:#eef7f1;border:1px solid #bcdcc9;color:#0b5d31;
}
/* Chiudi: rosso bandiera. */
.amm-storefront .amm-modal__close{
	color:#CD212A;border:1px solid rgba(205,33,42,.2);
}

/* ===== Spunta e frecce disegnate in CSS (font subset senza glifi) 2026-09-22 ===== */
/* I font locali non includono ✓, ⌄ e ×: il browser mostrava caratteri strani.
   Nascondo il testo e disegno le forme con i bordi, indipendenti dal font,
   centrate con posizionamento assoluto (non con margin:auto). */
.amm-storefront .amm-extra-check{
	font-size:0;position:relative;
}
.amm-storefront .amm-extra-option>input:checked+.amm-extra-card .amm-extra-check::after{
	content:'';position:absolute;top:50%;left:50%;width:9px;height:5px;
	border-left:2.5px solid #fff;border-bottom:2.5px solid #fff;
	transform:translate(-50%,-50%) rotate(-45deg);
}
.amm-storefront .amm-extra-chevron{
	font-size:0;position:relative;
}
.amm-storefront .amm-extra-chevron::after{
	content:'';position:absolute;top:50%;left:50%;width:8px;height:8px;
	border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;
	transform:translate(-50%,-50%) rotate(45deg) translateY(-2px);
}
/* X di chiusura: disegnata con gradienti sul bottone (i due pseudo-elementi
   ::before/::after non vengono renderizzati in modo affidabile qui: il font
   subset non ha ×, e una sola barra rimaneva visibile). */
.amm-storefront .amm-modal__close{
	font-size:0!important;
	background-image:
		linear-gradient(45deg,transparent 43%,currentColor 43% 57%,transparent 57%),
		linear-gradient(135deg,transparent 43%,currentColor 43% 57%,transparent 57%);
	background-repeat:no-repeat;background-position:center;background-size:12px 12px;
}
.amm-storefront .amm-modal__close:hover{
	background-color:#fff;
	background-image:
		linear-gradient(45deg,transparent 43%,currentColor 43% 57%,transparent 57%),
		linear-gradient(135deg,transparent 43%,currentColor 43% 57%,transparent 57%);
	background-repeat:no-repeat;background-position:center;background-size:12px 12px;
}
/* Stepper quantità: − e + disegnati in CSS, centrati nel bottone. */
.amm-storefront .amm-modal-product--apple .amm-stepper>button{
	font-size:0;position:relative;
}
.amm-storefront .amm-modal-product--apple .amm-stepper>button::after{
	content:'';display:block;position:absolute;top:50%;left:50%;right:auto;bottom:auto;width:12px;height:2px;margin:0;padding:0;border:0;border-radius:1px;
	background:currentColor;transform:translate(-50%,-50%);
}
.amm-storefront .amm-modal-product--apple .amm-stepper>button[data-amm-step="1"]::before{
	content:'';display:block;position:absolute;top:50%;left:50%;right:auto;bottom:auto;width:2px;height:12px;margin:0;padding:0;border:0;border-radius:1px;
	background:currentColor;transform:translate(-50%,-50%);
}
/* WooCommerce adds this after added_to_cart; the catalog already has a cart. */
.amm-storefront .amm-modal a.added_to_cart.wc-forward{display:none!important}
.amm-storefront .amm-modal-product--apple .amm-modal-form-hint::before{
	content:'';display:inline-block;width:7px;height:7px;margin-right:7px;
	background:currentColor;border-radius:2px;transform:rotate(45deg) translateY(-1px);
}

/* Badge carrello sulle card: spunta disegnata via CSS (font subset senza ✓). */
.amm-storefront .amm-product__count::before{
	content:'';display:inline-block;width:9px;height:7px;margin-right:5px;
	border-left:2px solid currentColor;border-bottom:2px solid currentColor;
	transform:rotate(-45deg) translateY(-1px);vertical-align:1px;
}

/* ===== Contatore scelte nel summary + messaggio limite 2026-09-22 ===== */
.amm-storefront .amm-extras summary .amm-extra-count{
	display:inline-block;margin-top:7px;padding:4px 10px;border-radius:999px;
	background:#fff;border:1px solid #e4dccb;color:var(--amm-muted,#8b857e);
	font-size:10px;font-weight:900;letter-spacing:.06em;
}
.amm-storefront .amm-extras.is-complete > summary .amm-extra-count{
	background:#eef7f1;border-color:#bcdcc9;color:#008C45;
}
.amm-storefront .amm-extras .amm-extra-limit:not([hidden]){
	margin:4px 20px 14px;padding:10px 14px;border-radius:14px;
	background:#fdeae8;border:1px solid rgba(205,33,42,.25);color:#CD212A;
	font-size:11px;font-weight:800;
}
/* Outside the scrolling content: the selection limit stays visible at every scroll position. */
.amm-storefront .amm-modal__limit:not([hidden]){
	flex:0 0 auto;margin:0;padding:14px 20px;
	padding-bottom:max(14px,env(safe-area-inset-bottom));
	background:#fdeae8;border-top:1px solid rgba(205,33,42,.25);color:#CD212A;
	font-size:13px;font-weight:800;line-height:1.45;
}

/* ===== Wizard menu componibile 2026-09-22 ===== */
.amm-storefront .amm-wizard-step{display:none}
.amm-storefront .amm-wizard-step.is-active{display:block}
.amm-storefront .amm-wizard-step__head{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.amm-storefront .amm-wizard-step__head small{
	font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:var(--amm-primary,#a6261d);
}
.amm-storefront .amm-wizard-step__done{
	width:22px;height:22px;margin-left:auto;border-radius:999px;background:#eee9df;position:relative;
	transition:background .15s ease;
}
.amm-storefront .amm-wizard-step.is-done .amm-wizard-step__done{background:#008C45}
.amm-storefront .amm-wizard-step.is-done .amm-wizard-step__done::after{
	content:'';position:absolute;top:50%;left:50%;width:9px;height:5px;
	border-left:2.5px solid #fff;border-bottom:2.5px solid #fff;
	transform:translate(-50%,-50%) rotate(-45deg);
}
.amm-storefront .amm-wizard__nav{display:flex;gap:10px;margin-top:14px}
.amm-storefront .amm-wizard__btn{
	flex:1;padding:14px 18px;border:0;border-radius:16px;cursor:pointer;
	font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;
}
.amm-storefront .amm-wizard__btn--prev{background:#faf6ee;border:1.5px solid #e4dccb;color:#77716b}
.amm-storefront .amm-wizard__btn--next{background:linear-gradient(135deg,#d33a2c,#CD212A 55%,#9c181f);color:#fff}
.amm-storefront .amm-wizard__btn:disabled{opacity:.5;cursor:wait}
.amm-storefront .amm-wizard__btn[hidden]{display:none}
/* Aggiunte del prodotto scelto, dentro lo step. */
.amm-storefront .amm-choice-extras{
	margin:2px 0 12px 26px;padding:12px 14px;border-left:2px dashed #e4dccb;display:grid;gap:10px;
}
.amm-storefront .amm-modal-product--apple .amm-choice-extras .amm-extras{margin:0}

/* ===== Focus sul prodotto scelto nello step 2026-09-22b ===== */
/* display:grid non deve vincere sull'attributo hidden dei pannelli non scelti. */
.amm-storefront .amm-choice-extras[hidden]{display:none}
/* Scelto un prodotto: gli altri spariscono, la card scelta occupa tutta la larghezza. */
.amm-storefront .amm-extras--step.is-collapsed > .amm-extra-options > .amm-extra-option{grid-column:1/-1}
.amm-storefront .amm-extras--step.is-collapsed > .amm-extra-options > .amm-extra-option.is-not-chosen{display:none}
/* Il pannello aggiunte è un item della stessa griglia delle card: a piena larghezza,
   altrimenti su desktop resta schiacciato in una colonna da 200px. */
.amm-storefront .amm-extras--step > .amm-extra-options > .amm-choice-extras{grid-column:1/-1;min-width:0}
/* Keep stored extras active for totals/validation while browsing alternatives. */
.amm-storefront .amm-extras--step.is-choosing > .amm-extra-options > .amm-choice-extras{display:none}
.amm-storefront .amm-extras--step.is-collapsed > .amm-extra-options > .amm-choice-extras > .amm-extras{max-width:640px}
.amm-storefront .amm-extras--step.is-collapsed .amm-extra-card{min-height:66px;padding:12px 16px}
.amm-storefront .amm-extras--step.is-collapsed .amm-extra-card img{width:52px;height:52px;flex-basis:52px;border-radius:14px}
.amm-storefront .amm-extras--step.is-collapsed .amm-extra-copy strong{font-size:13.5px}
.amm-storefront .amm-wizard-step__hint{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px;padding:10px 16px;border:1px solid #008c45;border-radius:12px;background:#eef8f2;color:#006b35;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.amm-storefront .amm-wizard-step__hint[hidden]{display:none}
.amm-storefront .amm-wizard-step__hint:focus-visible{outline:3px solid #008c45;outline-offset:3px}
.amm-storefront .amm-wizard-step__hint::before{content:'';display:inline-block;width:14px;height:9px;margin-right:6px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;border-radius:2px;transform:rotate(45deg) translateY(-1px);vertical-align:middle}
@media (max-width:640px){
	.amm-storefront .amm-choice-extras{margin:2px 0 10px 0;padding:10px 12px}
	.amm-storefront .amm-extras--step.is-collapsed .amm-extra-card{min-height:58px}
	.amm-storefront .amm-extras--step.is-collapsed .amm-extra-card img{width:44px;height:44px;flex-basis:44px}
}

/* ===== Sezione senza prodotti idonei 2026-09-22c ===== */
.amm-storefront .amm-extras-empty{
	margin:4px 14px 12px;padding:12px 14px;border-radius:14px;
	background:#fdeae8;border:1.5px dashed rgba(205,33,42,.3);color:#CD212A;
	font-size:12px;font-weight:800;
}

/* Keep the purchase total independent of theme widths and text wrapping. */
.amm-storefront .amm-modal-product--apple .amm-purchase-price{min-width:0;width:auto;max-width:none;justify-self:stretch;text-align:left}
.amm-storefront .amm-modal-product--apple .amm-selection-total{width:max-content;max-width:none;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.amm-storefront .amm-modal-form-hint[hidden]{display:none!important}
@media(max-width:640px){
 .amm-storefront .amm-modal-product--apple .amm-purchase{grid-template-columns:134px minmax(max-content,1fr)}
 .amm-storefront .amm-modal-product--apple .amm-purchase-price>small{letter-spacing:.08em}
}
@media(max-width:350px){
 .amm-storefront .amm-modal-product--apple .amm-purchase{grid-template-columns:1fr}
 .amm-storefront .amm-modal-product--apple .amm-purchase .single_add_to_cart_button{grid-column:1}
}
