/* ==========================================================================
   Nuove funzioni (settembre 2026): preventivo, filtri, pagina prodotto,
   lightbox, "Come funziona", accessibilità. Caricato dopo style.css e
   responsive.css, quindi qui si possono sovrascrivere le loro regole.
   ========================================================================== */

:root {
	--oro: #bf9e75;          /* colore del brand: icone, bordi, decorazioni */
	--oro-testo: #86673d;    /* oro scurito: testo piccolo leggibile (contrasto AA su bianco e crema) */
	--oro-titoli: #9c7b4f;   /* titoli grandi */
	--marrone: #695841;
	--crema: #fbf3f0;
	--crema-foto: #fbf4ef;
	--verde-wa: #25d366;
}

/* Il template impostava come font del corpo 'Chilanka' (mai caricato): i
   browser ripiegavano su un corsivo di sistema diverso da PC a PC. */
body {
	--bs-font-sans-serif: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Icone SVG (ex <iconify-icon>) */
svg.icona {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	fill: currentColor;
	flex-shrink: 0;
	/* Bootstrap usa border-box: con il padding di alcune icone (es. i cerchi
	   di "Spedizione via Posta" nella home) il disegno spariva. Così il
	   padding si aggiunge attorno all'icona, come faceva <iconify-icon>. */
	box-sizing: content-box;
}

/* Link "salta al contenuto" per chi naviga da tastiera */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0.5rem;
	z-index: 2000;
	background: var(--marrone);
	color: #fff !important;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
}
.skip-link:focus { left: 0.5rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--oro-titoli);
	outline-offset: 2px;
}

/* Nome del sito nell'header (ora è un link alla home) */
.site-name:hover .site-title,
.site-name-mobile:hover .site-title { opacity: 0.85; }

/* Pulsanti del brand con testo leggibile */
.btn-outline-primary {
	font-family: 'avenir_next_condensedregular', sans-serif;
	letter-spacing: 0.02rem;
	padding: 0.85rem 2rem;
	border-radius: 8px;
	border-color: var(--oro) !important;
	color: var(--oro-testo) !important;
	background: transparent;
	transition: all 0.3s ease;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
	background-color: var(--oro-testo) !important;
	border-color: var(--oro-testo) !important;
	color: #fff !important;
}
.btn-primary {
	background-color: var(--oro-testo) !important;
	border-color: var(--oro-testo) !important;
	color: #fff !important;
	border-radius: 8px;
	padding: 0.85rem 1.75rem;
}
.btn-primary:hover { background-color: var(--marrone) !important; border-color: var(--marrone) !important; }

.titolo-gradiente {
	background: linear-gradient(135deg, #bf9e75, #bfa875);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.titolo-sezione {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	color: var(--oro-titoli);
	font-size: clamp(1.5rem, 3vw, 2rem);
}
.sottotitolo-sezione { color: var(--marrone); font-family: 'avenir_next_condensedregular', sans-serif; }

/* ---------------- Banner WhatsApp ---------------- */
.banner-whatsapp {
	position: relative;
	background: var(--crema);
	color: var(--marrone);
	font-family: 'avenir_next_condensedregular', sans-serif;
	overflow: hidden;
}
.banner-whatsapp .titolo-banner { font-family: 'Montserrat', sans-serif; color: var(--oro-titoli); }
.evidenzia-oro { color: var(--oro-testo); font-weight: bold; }

/* ---------------- Instagram ---------------- */
.sezione-instagram { padding-top: 4rem; }
.titolo-instagram {
	color: var(--oro-titoli);
	font-family: 'Montserrat', sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 1px;
}
.handle-instagram {
	color: var(--marrone);
	font-weight: 500;
	font-family: 'avenir_next_condensedregular', sans-serif;
	font-size: 1.15rem;
}
.instagram-post-card { width: 120px; height: 120px; transition: box-shadow 0.3s, transform 0.3s; }
.instagram-post-card img { width: 100%; height: 100%; object-fit: cover; }
.icona-instagram-post { color: #fff; font-size: 1.2rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* ---------------- Footer ---------------- */
.footer-sito {
	background: var(--crema);
	color: var(--marrone);
	font-family: 'avenir_next_condensedregular', sans-serif;
	letter-spacing: 0.2px;
	font-size: 0.95rem;
	padding-bottom: 5rem; /* spazio per i pulsanti fissi in basso */
}
.footer-sito a { color: var(--oro-testo); text-decoration: underline; text-underline-offset: 2px; }
.footer-sito a:hover { color: var(--marrone); }
.footer-contatti { font-size: 1rem; }
.footer-contatti a { text-decoration: none; font-weight: 600; }
.footer-credito { font-size: 0.8rem; opacity: 0.85; }

.modale-spedizione { background: var(--crema); border: none; border-radius: 15px; color: var(--marrone); }
.modal-body h3.h6 { color: var(--marrone); font-weight: 700; margin-top: 1rem; }

/* ---------------- Come funziona / recensioni ---------------- */
.come-funziona { background: #fff; }
.passo {
	height: 100%;
	text-align: center;
	padding: 2rem 1.5rem;
	border-radius: 1.25rem;
	background: var(--crema);
	color: var(--marrone);
}
.passo__numero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: #fff;
	color: var(--oro-testo);
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	box-shadow: 0 4px 14px rgba(139, 115, 85, 0.15);
}
.passo__titolo { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--marrone); }
.passo p { margin: 0; line-height: 1.7; font-size: 1rem; color: var(--marrone); }

/* Valore delle creazioni e percorso di richiesta. */
#service .service-content { position: relative; z-index: 2; padding-top: 5rem; padding-bottom: 4rem; }
#service .section-header { margin-bottom: 2rem; }
#service .service-card { height: 100%; padding: 1.75rem 1.25rem; gap: 0; text-align: center; border: 1px solid #eee5dd; border-radius: 1.25rem; background: #fcfaf8; }
#service .service-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; padding: .875rem; margin: 0 auto 1rem; color: var(--oro-testo); border: 1px solid #e5d9cc; border-radius: 50%; background: #fff; }
#service .card-title { margin: 0 0 .75rem; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--marrone); }
#service .card-text { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--marrone); }
.come-funziona .passo { text-align: left; border: 1px solid #eee1d8; padding: 1.75rem; }
.come-funziona .passo__numero { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; box-shadow: none; }
.come-funziona .passo__titolo { line-height: 1.4; margin-bottom: .75rem; }
.banner-whatsapp .row { row-gap: 1.5rem; }
.banner-whatsapp p { max-width: 44rem; margin-bottom: 0; line-height: 1.7; color: var(--marrone); }
.banner-whatsapp .btn { white-space: normal; }
@media (max-width: 575px) {
  #service .service-content { padding-top: 4.5rem; padding-bottom: 3.5rem; }
  #service .service-card { padding: 1.5rem; }
  .come-funziona .passo { padding: 1.5rem; }
}

.recensioni { background: var(--crema); }
.recensione {
	margin: 0;
	background: #fff;
	border-radius: 1.25rem;
	padding: 1.5rem;
	color: var(--marrone);
	box-shadow: 0 6px 20px rgba(139, 115, 85, 0.08);
}
.recensione blockquote p { font-style: italic; line-height: 1.6; }
.recensione blockquote p::before { content: '“'; color: var(--oro); font-size: 2rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.2rem; }
.recensione figcaption span { display: block; font-size: 0.85rem; opacity: 0.8; }

/* ---------------- Card prodotto ---------------- */
.prodotto-col .card-img-top {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.prodotto-col .card-title {
	font-family: 'Montserrat', sans-serif;
	color: var(--marrone);
}
.prezzo-card { color: var(--oro-testo) !important; font-weight: 600; font-size: 1rem; }
.card-minimo {
	font-size: 0.8rem;
	color: var(--marrone);
	opacity: 0.8;
	margin: 0 0 0.5rem;
}
.btn-aggiungi-card {
	margin-top: auto;
	align-self: flex-start;
	border: 1px solid var(--oro);
	background: #fff;
	color: var(--oro-testo);
	border-radius: 999px;
	padding: 0.3rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
	transition: all 0.2s ease;
}
.btn-aggiungi-card:hover { background: var(--oro-testo); border-color: var(--oro-testo); color: #fff; }
.btn-aggiungi-card.nel-preventivo { background: var(--crema); border-color: var(--crema); color: var(--marrone); }
.prodotto-col .card-body { display: flex; flex-direction: column; }

.categoria-vuota { color: var(--marrone); }

/* ---------------- Filtri per tipo ---------------- */
.filtri-tipo {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	margin: -0.5rem 0 1.5rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.filtro-chip {
	flex: 0 0 auto;
	border: 1px solid #e6d8c8;
	background: #fffaf6;
	color: var(--marrone);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: 0.9rem;
	white-space: nowrap;
	transition: all 0.2s ease;
}
.filtro-chip:hover { border-color: var(--oro); }
.filtro-chip.attivo { background: var(--oro-testo); border-color: var(--oro-testo); color: #fff; }
.products-toolbar__count { color: var(--oro-testo) !important; }

/* ---------------- Pagina prodotto ---------------- */
.onda-separatore { position: relative; width: 100%; background: #fff; }
.breadcrumb-prodotto { font-family: 'Montserrat', sans-serif; }
.breadcrumb-prodotto a { color: var(--oro-testo); }
.breadcrumb-prodotto .active { color: var(--marrone); }
.sezione-prodotto { position: relative; background: #fff; }

#mainImage { height: auto; }
.zoom-foto {
	position: relative;
	display: block;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.zoom-foto__icona {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--marrone);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.zoom-foto__icona svg { width: 1.1rem; height: 1.1rem; }

.miniatura { padding: 0; border: 0; background: none; border-radius: 0.5rem; }
.miniatura .thumbnail { opacity: 0.7; cursor: pointer; }
.miniatura.active .thumbnail,
.miniatura:hover .thumbnail { opacity: 1; }
.miniatura.active .thumbnail { border-color: var(--oro) !important; }

.product-title {
	font-family: 'Montserrat', sans-serif;
	color: var(--oro-titoli);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 500;
}
.product-description { font-family: 'avenir_next_condensedregular', sans-serif; color: var(--marrone); }
.badge-prodotto {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem;
}
.badge-prodotto li {
	background: var(--crema);
	color: var(--marrone);
	border-radius: 999px;
	padding: 0.3rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
}
.azioni-prodotto {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.btn-chiedi-whatsapp { padding: 0.85rem 1.5rem; }
.nota-preventivo { font-size: 0.85rem; color: var(--marrone); opacity: 0.85; }

.correlati { background: var(--crema); }
.correlati .card { background: #fff !important; }

/* Selettore quantità */
.quantita {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #e6d8c8;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.quantita__btn {
	border: 0;
	background: transparent;
	color: var(--marrone);
	width: 2.75rem;
	font-size: 1.25rem;
	line-height: 1;
}
.quantita__btn:hover { background: var(--crema); }
.quantita__input {
	width: 3.5rem;
	border: 0;
	text-align: center;
	color: var(--marrone);
	font-weight: 600;
	font-size: 16px; /* evita lo zoom automatico su iPhone */
	-moz-appearance: textfield;
}
.quantita__input::-webkit-outer-spin-button,
.quantita__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantita--piccola .quantita__btn { width: 2.1rem; font-size: 1rem; }
.quantita--piccola .quantita__input { width: 2.75rem; }

/* ---------------- Lightbox ---------------- */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(30, 24, 18, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 0.75rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.lightbox__chiudi,
.lightbox__freccia {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox__chiudi:hover,
.lightbox__freccia:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__chiudi { top: 0.75rem; right: 0.75rem; }
.lightbox__freccia--prec { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__freccia--succ { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox--singola .lightbox__freccia { display: none; }
.lightbox__conta { position: absolute; bottom: 0.75rem; left: 0; right: 0; text-align: center; color: #fff; margin: 0; font-size: 0.9rem; }

/* ---------------- Preventivo ---------------- */
.preventivo-float {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1.1rem;
	background: var(--marrone);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: 0 6px 20px rgba(105, 88, 65, 0.35);
	transition: transform 0.2s ease;
}
.preventivo-float:hover { transform: translateY(-2px); }
.preventivo-float[hidden] { display: none; }
.preventivo-float .icona { width: 1.25rem; height: 1.25rem; fill: none; }
.preventivo-float__conta {
	background: #fff;
	color: var(--marrone);
	border-radius: 999px;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
}
@media (max-width: 576px) {
	.preventivo-float { left: 12px; bottom: 16px; padding: 0.6rem 0.9rem; font-size: 0.85rem; }
}

.preventivo-panel { width: min(420px, 100vw) !important; color: var(--marrone); }
.preventivo-panel .offcanvas-header { border-bottom: 1px solid #efe4d8; }
.preventivo-panel .offcanvas-title { font-family: 'Montserrat', sans-serif; color: var(--oro-titoli); }
.preventivo-vuoto { text-align: center; padding: 2rem 0; }
.preventivo-lista { list-style: none; padding: 0; margin: 0 0 1rem; }
.preventivo-voce {
	display: flex;
	gap: 0.75rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid #f1e8de;
}
.preventivo-voce__foto img { width: 56px; height: 70px; object-fit: cover; border-radius: 0.5rem; background: var(--crema-foto); }
.preventivo-voce__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.preventivo-voce__nome { color: var(--marrone); font-weight: 600; line-height: 1.3; text-decoration: none; }
.preventivo-voce__prezzo { font-size: 0.85rem; color: var(--oro-testo); }
.preventivo-voce__azioni { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; }
.preventivo-voce__togli {
	border: 0;
	background: none;
	color: var(--marrone);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}
.preventivo-voce__togli .icona { width: 1.3rem; height: 1.3rem; fill: none; box-sizing: border-box; }
.preventivo-voce__togli:hover { background: #fbe9e7; color: #b3261e; }
.preventivo-voce__min { font-size: 0.75rem; opacity: 0.8; }
.preventivo-totale {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 1.1rem;
	padding: 0.5rem 0;
}
.preventivo-totale strong { font-size: 1.35rem; color: var(--marrone); }
.preventivo-nota { font-size: 0.8rem; opacity: 0.85; margin-bottom: 0.75rem; }
.preventivo-dettagli { border: 0; padding: 0; margin: 0.5rem 0 1.25rem; }
.preventivo-dettagli legend { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.preventivo-dettagli label { display: block; font-size: 0.85rem; margin-bottom: 0.6rem; }
.preventivo-dettagli input,
.preventivo-dettagli textarea {
	display: block;
	width: 100%;
	margin-top: 0.2rem;
	border: 1px solid #e6d8c8;
	border-radius: 0.6rem;
	padding: 0.5rem 0.75rem;
	font-size: 16px;
	color: var(--marrone);
	background: #fffaf6;
}
.btn-whatsapp {
	background: #1f9e4f;
	border-color: #1f9e4f;
	color: #fff !important;
	font-weight: 600;
	padding: 0.85rem 1rem;
	border-radius: 999px;
}
.btn-whatsapp:hover { background: #17843f; border-color: #17843f; }
.preventivo-svuota { color: var(--marrone) !important; font-size: 0.85rem; display: block; margin: 0.5rem auto 0; }

/* ---------------- Toast ---------------- */
.toast-contenitore {
	position: fixed;
	left: 50%;
	bottom: 90px;
	transform: translateX(-50%);
	z-index: 1030; /* sotto il pannello del preventivo e la sua ombra */
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: max-content;
	max-width: calc(100vw - 2rem);
}
.toast-dpd {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--marrone);
	color: #fff;
	padding: 0.7rem 1rem;
	border-radius: 0.75rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	font-size: 0.9rem;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.25s ease;
}
.toast-dpd.visibile { opacity: 1; transform: none; }
.toast-dpd button { border: 0; background: #fff; color: var(--marrone); border-radius: 999px; padding: 0.2rem 0.8rem; font-weight: 600; }

/* ---------------- 404 ---------------- */
.pagina-404 h1 { font-family: 'Playfair Display', serif; color: var(--oro-titoli); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Effetto al passaggio sulle foto delle card (prima era copiato in ogni pagina) */
.img-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
@media (min-width: 768px) {
	.filtri-tipo { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 767.98px) {
	.filtri-tipo { scrollbar-width: none; }
	.filtri-tipo::-webkit-scrollbar { display: none; }
}
#categorie .card > a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

#categorie .card > a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#categorie .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#categorie .card-body > .btn {
  margin-top: auto;
}
