/* NV Reviews — griglia card, form, pagina dedicata. Palette Naturvis. */
.nvrev {
	--nvrev-green: #1f3d2e;
	--nvrev-gold: #ecc36d;
	--nvrev-star-off: #d8d8d8;
	--nvrev-border: #e6e6e6;
	--nvrev-text: #444;
	--nvrev-muted: #8a8a8a;
}

/* ---------- Stelle (visualizzazione, anche frazionarie) ---------- */
.nvrev-stars {
	position: relative;
	display: inline-block;
	font-size: 17px;
	line-height: 1;
	letter-spacing: 2px;
	color: var(--nvrev-star-off);
	white-space: nowrap;
}
.nvrev-stars-fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--nvrev-gold);
	white-space: nowrap;
}
.nvrev-stars--big { font-size: 26px; }

/* ---------- Riepilogo ---------- */
.nvrev-summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 26px;
}
.nvrev-average {
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--nvrev-green);
}
.nvrev-count { color: var(--nvrev-muted); font-size: 15px; }
.nvrev-summary .nvrev-btn { margin-left: auto; }

/* ---------- Bottoni ---------- */
.nvrev-btn {
	display: inline-block;
	padding: 11px 24px;
	border: 2px solid var(--nvrev-green);
	border-radius: 999px;
	background: var(--nvrev-green);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity .15s;
}
.nvrev-btn:hover { opacity: .85; color: #fff; }
.nvrev-btn--ghost { background: transparent; color: var(--nvrev-green); }
.nvrev-btn--ghost:hover { color: var(--nvrev-green); }
.nvrev-btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- Griglia di card (masonry via CSS columns) ---------- */
.nvrev-grid {
	columns: 3;
	column-gap: 20px;
}
@media (max-width: 1024px) { .nvrev-grid { columns: 2; } }
@media (max-width: 640px)  { .nvrev-grid { columns: 1; } }

.nvrev-card {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	break-inside: avoid;
	margin: 0 0 20px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--nvrev-border);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.nvrev-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.nvrev-name { display: block; margin-top: 12px; font-weight: 600; font-size: 15px; color: #222; }
.nvrev-verified {
	font-size: 12px;
	font-weight: 600;
	color: var(--nvrev-green);
	background: #e9f2ec;
	border-radius: 999px;
	padding: 2px 9px;
}
.nvrev-date { display: block; margin-top: 2px; font-size: 13px; color: var(--nvrev-muted); }
.nvrev-text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--nvrev-text); }
.nvrev-text p { margin: 0 0 8px; }
.nvrev-text p:last-child { margin-bottom: 0; }
/* Riga prodotto (solo homepage): divisa dal testo, miniatura piccola. */
.nvrev-product {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--nvrev-border);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--nvrev-green);
	text-decoration: none;
}
.nvrev-product-img {
	width: 40px !important;
	height: 40px !important;
	max-width: 40px;
	object-fit: contain;
	display: block;
	box-sizing: border-box;
	padding: 3px;
	background: #f6f6f2;
	border: 1px solid var(--nvrev-border);
	border-radius: 10px;
	flex: none;
}
.nvrev-product-name { text-decoration: none; }
.nvrev-product:hover .nvrev-product-name { text-decoration: underline; }
.nvrev-more-wrap { text-align: center; margin-top: 6px; }

/* ---------- Dialog form ---------- */
.nvrev-dialog {
	width: min(480px, calc(100vw - 32px));
	border: none;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.nvrev-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.nvrev-dialog h3 { margin: 0 30px 6px 0; font-size: 20px; }
.nvrev-close {
	position: absolute;
	top: 14px;
	right: 14px;
	border: none;
	background: transparent;
	font-size: 18px;
	color: var(--nvrev-muted);
	cursor: pointer;
}

/* ---------- Form (dialog e pagina dedicata) ---------- */
.nvrev-form p, .nvrev-page p { margin: 0 0 14px; }
.nvrev-form label, .nvrev-page label { font-size: 14px; font-weight: 600; color: #333; }
.nvrev-form label small, .nvrev-page label small { font-weight: 400; color: var(--nvrev-muted); }
.nvrev-form input[type="text"],
.nvrev-form input[type="email"],
.nvrev-form textarea,
.nvrev-page input[type="text"],
.nvrev-page input[type="email"],
.nvrev-page input[type="search"],
.nvrev-page textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 15px;
}

/* Selettore stelle: radio nascosti, etichette ★, ordine invertito. */
.nvrev-rate {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
	border: none;
	margin: 0 0 12px;
	padding: 0;
}
.nvrev-rate legend {
	width: 100%;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}
.nvrev-rate input { position: absolute; opacity: 0; pointer-events: none; }
.nvrev-rate label {
	font-size: 30px;
	line-height: 1;
	color: var(--nvrev-star-off);
	cursor: pointer;
	transition: color .1s;
}
.nvrev-rate input:checked ~ label,
.nvrev-rate label:hover,
.nvrev-rate label:hover ~ label { color: var(--nvrev-gold); }

/* Privacy (solo ospiti) e riga "Recensirai come" (solo loggati) */
.nvrev-privacy label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 13px;
	color: var(--nvrev-text);
}
.nvrev-privacy input { margin-top: 2px; flex: none; }
.nvrev-privacy a { color: var(--nvrev-green); text-decoration: underline; }
.nvrev-as { font-size: 14px; color: var(--nvrev-muted); }

/* Honeypot fuori schermo */
.nvrev-hp { position: absolute !important; left: -9999px !important; }

/* Messaggi esito */
.nvrev-msg { font-size: 14px; font-weight: 600; min-height: 1em; }
.nvrev-msg[data-state="ok"] { color: var(--nvrev-green); }
.nvrev-msg[data-state="err"] { color: #b3261e; }

/* ---------- Pagina dedicata ---------- */
.nvrev-page { max-width: 660px; margin: 0 auto; }
.nvrev-search { position: relative; margin-bottom: 18px; }
.nvrev-search-results {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	margin: 4px 0 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--nvrev-border);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	max-height: 280px;
	overflow: auto;
}
.nvrev-search-results li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
}
.nvrev-search-results li:hover { background: #f2f6f3; }
.nvrev-search-results img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }

.nvrev-block {
	margin-bottom: 18px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--nvrev-border);
	border-radius: 14px;
}
.nvrev-block-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.nvrev-block-img { border-radius: 8px; object-fit: cover; }
.nvrev-block-name { font-weight: 600; font-size: 15px; flex: 1; }
.nvrev-block-remove {
	border: none;
	background: transparent;
	color: var(--nvrev-muted);
	font-size: 16px;
	cursor: pointer;
}
.nvrev-block p { margin: 0; }
