/* prodotti.css - Griglia prodotti e overlay */

.prodotti-section {
	padding: 4rem 2rem;
	text-align: center;
	max-width: 1400px;
	margin: 0 auto;
}

.prodotti-section h2 {
	text-align: center;
	color: #800000;
	font-size: 2.5rem;
	margin-bottom: 2rem;
}

.prodotti-info {
	text-align: center;
	color: #333;
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 2rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.spedizioni-link {
	color: #800000;
	text-decoration: underline;
	font-weight: 600;
	transition: color 0.3s ease;
}

.spedizioni-link:hover {
	color: #992b1c;
}

.whatsapp-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #25D366;
	color: #fff;
	text-decoration: none;
	padding: 0.8rem 1.5rem;
	border-radius: 25px;
	font-weight: 600;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
	margin-top: 1rem;
}

.whatsapp-button:hover {
	background-color: #128C7E;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
	font-size: 1.3rem;
}

.divider-line {
	width: 100px;
	height: 3px;
	background-color: #800000;
	margin: 2rem auto;
	border-radius: 2px;
}

/* Filtro a chip */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
	margin: 1rem auto 0.5rem auto;
}

.filter-chip {
	border: 1px solid #800000;
	color: #800000;
	background: #f2e8c7;
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.filter-chip:hover {
	background: #e9dfbe;
}

.filter-chip.active {
	background: #800000;
	color: #fff;
}

.prodotti-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 2rem;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.prodotti-list {
	grid-template-columns: 1fr;
}

.prodotto-card {
	background-color: #D8D4B4;
	border: 2px solid #800000;
	border-radius: 15px;
	padding: 1.2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	min-height: 260px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	cursor: pointer;
}

.prodotto-card.featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 320px 1fr; /* più compatto */
	gap: 1.25rem;
	text-align: left;
	min-height: auto;
	padding: 1.2rem;
}

.prodotto-card.featured > div { display: flex; flex-direction: column; }

.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #800000;
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.85rem;
}

.prodotto-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(128, 0, 0, 0.2);
}

.prodotto-image {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 1rem;
	pointer-events: none;
}

.featured .prodotto-image {
	height: 100%;
	width: 100%;
	object-fit: cover;
	margin-bottom: 0;
}

.prodotto-card h3 {
	color: #800000;
	font-size: 1.5rem;
	margin-bottom: 0.8rem;
	pointer-events: none;
}

.prodotto-prezzo {
	color: #1a1a1a;
	font-weight: 700;
	font-size: 1.2rem;
	background: #f7f3df;
	border: 1px solid #c9bfa0;
	padding: 0.4rem 0.8rem;
	display: inline-block;
	border-radius: 8px;
	margin-bottom: 0.8rem;
}
.prodotto-prices { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.prodotto-prezzo.prova {
	margin-top: 0.4rem;
	background: #faf6e6;
	border-style: dashed;
}

.prodotto-icons {
	display: flex;
	justify-content: flex-start; /* icone allineate a sinistra */
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.prodotto-icon {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 50%;
	pointer-events: none;
}

.integrale-icon {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 1.2rem auto;
	display: block;
	pointer-events: none;
}

.prodotto-sottotitolo {
	color: #992b1c;
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1rem;
	pointer-events: none;
}

.prodotto-descrizione {
	color: #333;
	font-size: 1.1rem;
	line-height: 1.5;
	margin-bottom: 2.5rem;
	flex-grow: 1;
	pointer-events: none;
}

.actions-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: .8rem; margin-top: auto; width: 100%; }
.actions-row > * { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }

.info-button { display: none; }

.details-button {
	background-color: #800000;
	color: #fff;
	border: none;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: 0.4px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	font-size: 0.95rem;
}
.details-button:hover { background-color: #992b1c; transform: translateY(-1px); }

/* Link ordina WhatsApp dentro card */
.order-link {
	margin-top: 0.6rem;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 2px solid #25D366;
	background-color: #25D366;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	width: 100%;
}
.order-link:hover { background-color: #128C7E; box-shadow: 0 4px 10px rgba(18,140,126,.35); }
.order-link i { font-size: 1.1rem; }
.pickup-badge {
	margin-top: 0.6rem;
	color: #1a1a1a;
	background: #f7f3df;
	border: 2px solid #c9bfa0;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-weight: 700;
	width: 100%;
}

/* Overlay come nella sezione Toelettatura */
.overlay {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	overflow-y: auto;
	justify-content: center;
	align-items: center;
	animation: overlayFade .25s ease;
}

.overlay-content {
	background-color: #f2e8c7;
	margin: 10% auto;
	padding: 2rem;
	border-radius: 15px;
	width: 90%;
	max-width: 700px;
	position: relative;
	text-align: center;
	max-height: 80vh;
	overflow-y: auto;
	animation: panelUp .25s ease;
}

@keyframes overlayFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes panelUp { from { transform: translateY(10px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.close-button {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	z-index: 1001;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.55);
	transition: background-color 0.3s ease;
}

.mobile-close-button {
	display: none;
	position: absolute;
	top: 12px;
	left: 12px;
	background: none;
	border: none;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	z-index: 1001;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.55);
	transition: background-color 0.3s ease;
}

.overlay-image {
	width: 100%;
	max-width: 500px;
	height: 300px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 1.5rem;
}

.overlay-content h2 {
	color: #800000;
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.overlay-content p {
	color: #992b1c;
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.overlay-actions { margin: 0.5rem 0 1rem 0; display: flex; justify-content: center; }
.overlay-actions .order-link { width: auto; }

#overlay-descrizione {
	color: #333;
	font-size: 1.1rem;
	line-height: 1.6;
	text-align: left;
	margin-top: 1rem;
}

#overlay-descrizione strong {
	color: #800000;
}

.overlay-icon {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 0.3rem;
	pointer-events: none;
}

/* Overlay Spedizioni */
.spedizioni-overlay {
	max-width: 600px;
	text-align: left;
}

.spedizioni-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	text-align: center;
	justify-content: center;
}

.spedizioni-header i {
	font-size: 2.5rem;
	color: #800000;
}

.spedizioni-header h2 {
	color: #800000;
	font-size: 2.2rem;
	margin: 0;
}

.spedizioni-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.spedizioni-list li {
	color: #333;
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	padding-left: 2rem;
	position: relative;
}

.spedizioni-list li:before {
	content: "•";
	color: #800000;
	font-weight: bold;
	font-size: 1.5rem;
	position: absolute;
	left: 0;
	top: -0.1rem;
}

.spedizioni-list li:last-child {
	margin-bottom: 0;
}

.actions-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.8rem;
}
.details-button {
	background-color: #800000;
	color: #fff;
	border: none;
	padding: 0.6rem 1rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: 0.4px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	font-size: 0.95rem;
	margin-left: auto;
}
.details-button:hover { background-color: #992b1c; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 1200px) {
	.prodotti-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.prodotto-card.featured {
		grid-template-columns: 280px 1fr;
	}
}

@media (max-width: 768px) {
	.prodotti-section {
		padding: 2rem 1rem;
	}
	
	.prodotti-section h2 {
		font-size: 2.5rem;
	}
	
	.prodotti-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 0 1rem;
	}

	.prodotto-card {
		min-height: 280px;
		padding: 1rem;
	}

	.prodotto-card.featured { display: grid; grid-template-columns: 1fr; }

	.prodotto-image {
		height: 130px;
	}

	/* Evita immagine gigante nelle card featured su mobile */
	.featured .prodotto-image {
		height: 180px;
		border-radius: 10px;
	}

	/* Azioni in colonna su mobile, a tutta larghezza */
	.actions-row { display: flex; flex-direction: column; align-items: stretch; }
	.actions-row .order-link,
	.actions-row .pickup-badge,
	.actions-row .details-button { width: 100%; justify-content: center; text-align: center; }

	.prodotto-card h3 {
		font-size: 1.4rem;
	}

	.prodotto-sottotitolo {
		font-size: 1.1rem;
	}

	.prodotto-descrizione {
		font-size: 1rem;
		margin-bottom: 2rem;
	}

	.info-button {
		font-size: 0.8rem;
		padding: 0.4rem 0.8rem;
	}

	.overlay-content {
		width: 95%;
		max-height: 80vh;
		padding: 2rem 1rem;
		margin: 5% auto;
		overflow-y: auto;
	}

	.overlay-image {
		width: 100%;
		max-width: 300px;
		height: 200px;
	}

	.overlay-title {
		font-size: 1.5rem;
	}

	.overlay-sottotitolo {
		font-size: 1.1rem;
	}

	.overlay-descrizione {
		font-size: 0.9rem;
	}

	.overlay-icon {
		width: 32px;
		height: 32px;
		margin: 0 0.2rem;
	}

	.close-button {
		display: none;
	}

	.mobile-close-button {
		display: flex;
	}
}
