.ipd-review-document {
	background: var(--ipd-sand);
}

.ipd-review-page {
	min-height: 70vh;
}

.ipd-review-hero {
	align-items: end;
	background:
		linear-gradient(90deg, rgba(25, 43, 35, 0.88) 0%, rgba(32, 63, 51, 0.72) 52%, rgba(32, 63, 51, 0.38) 100%),
		url("../../../uploads/2026/02/campane-.jpg") center 48% / cover no-repeat;
	color: #fffaf1;
	display: grid;
	min-height: 560px;
	padding: 170px 0 82px;
}

.ipd-review-hero__inner {
	margin: 0 auto;
	width: 100%;
}

.ipd-review-hero h1 {
	color: #fffaf1;
	font-size: clamp(3.4rem, 6vw, 5.9rem);
	line-height: 0.94;
	margin: 0;
	max-width: 760px;
}

.ipd-review-hero p:not(.ipd-eyebrow) {
	color: rgba(255, 250, 241, 0.92);
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	line-height: 1.65;
	margin: 24px 0 0;
	max-width: 680px;
}

.ipd-review-form-section {
	padding: clamp(46px, 7vw, 82px) 0;
}

.ipd-review-list-section {
	padding: clamp(48px, 7vw, 86px) 0 24px;
}

.ipd-review-page--public + .ipd-footer,
.ipd-review-page--action + .ipd-footer {
	margin-top: 0;
}

.ipd-review-page--action {
	background:
		radial-gradient(circle at 15% 15%, rgba(181, 142, 86, 0.14), transparent 32%),
		var(--ipd-sand);
	padding-top: 100px;
}

.ipd-review-page--action .ipd-review-form-section {
	min-height: 62vh;
}

.ipd-review-panel {
	background: linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(238, 232, 220, 0.9));
	border: 1px solid rgba(33, 50, 43, 0.1);
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(25, 41, 34, 0.12);
	margin: 0 auto;
	max-width: 960px;
	overflow: hidden;
	padding: clamp(26px, 5vw, 48px);
	position: relative;
}

.ipd-review-panel::before {
	background: linear-gradient(90deg, var(--ipd-forest), var(--ipd-brass));
	content: "";
	height: 5px;
	inset: 0 0 auto;
	position: absolute;
}

.ipd-review-form {
	display: grid;
	gap: 22px 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ipd-review-form__trap {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.ipd-review-form__field {
	border: 0;
	display: grid;
	gap: 8px;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.ipd-review-form__field--wide,
.ipd-review-form__rating,
.ipd-review-check,
.ipd-review-form__actions,
.ipd-review-message {
	grid-column: 1 / -1;
}

.ipd-review-form__field label,
.ipd-review-form__rating legend {
	color: var(--ipd-ink);
	font-family: var(--ipd-sans);
	font-size: 0.95rem;
	font-weight: 700;
}

.ipd-review-form__optional {
	color: var(--ipd-ink-soft);
	font-size: 0.82rem;
	font-weight: 500;
}

.ipd-review-form__field small {
	color: var(--ipd-ink-soft);
	font-size: 0.83rem;
	line-height: 1.45;
}

.ipd-review-form input[type="text"],
.ipd-review-form input[type="email"],
.ipd-review-form textarea {
	background: rgba(255, 254, 251, 0.9);
	border: 1px solid rgba(33, 50, 43, 0.18);
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
	color: var(--ipd-ink);
	font-family: var(--ipd-sans);
	font-size: 1rem;
	line-height: 1.45;
	min-height: 50px;
	padding: 0.82rem 0.95rem;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
	width: 100%;
}

.ipd-review-form textarea {
	min-height: 170px;
	resize: vertical;
}

.ipd-review-form input[type="text"]:focus,
.ipd-review-form input[type="email"]:focus,
.ipd-review-form textarea:focus {
	background: #fff;
	border-color: rgba(39, 78, 66, 0.58);
	box-shadow: 0 0 0 4px rgba(181, 142, 86, 0.16);
	outline: 0;
}

.ipd-review-stars-input {
	direction: rtl;
	display: inline-flex;
	flex-direction: row;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 2px;
	width: fit-content;
}

.ipd-review-stars-input input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.ipd-review-stars-input label {
	color: #cfc7ba;
	cursor: pointer;
	font-size: 2.65rem;
	line-height: 1;
	transition: color 0.16s ease, text-shadow 0.16s ease, transform 0.16s ease;
}

.ipd-review-stars-input label > span[aria-hidden="true"] {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.ipd-review-stars-input label:hover,
.ipd-review-stars-input label:hover ~ label,
.ipd-review-stars-input input:focus-visible + label,
.ipd-review-stars-input input:checked ~ label {
	color: var(--ipd-brass);
	text-shadow: 0 0 14px rgba(181, 142, 86, 0.38);
}

.ipd-review-stars-input label:hover {
	transform: translateY(-2px);
}

.ipd-review-stars-input input:checked + label {
	transform: scale(1.08);
}

.ipd-review-stars-input input:focus-visible + label {
	border-radius: 4px;
	outline: 2px solid var(--ipd-forest);
	outline-offset: 3px;
}

.ipd-review-check {
	align-items: flex-start;
	background: rgba(39, 78, 66, 0.045);
	border: 1px solid rgba(33, 50, 43, 0.08);
	border-radius: 12px;
	color: var(--ipd-ink-soft);
	display: flex;
	font-size: 0.94rem;
	gap: 11px;
	line-height: 1.55;
	padding: 12px 14px;
}

.ipd-review-check input {
	accent-color: var(--ipd-forest);
	flex: 0 0 auto;
	height: 18px;
	margin-top: 3px;
	width: 18px;
}

.ipd-review-check a {
	color: var(--ipd-forest);
	font-weight: 700;
	text-underline-offset: 3px;
}

.ipd-review-form__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
	justify-content: space-between;
}

.ipd-review-form__actions p {
	color: var(--ipd-ink-soft);
	font-size: 0.88rem;
	margin: 0;
}

.ipd-review-form .ipd-button,
.ipd-review-message .ipd-button {
	border: 0;
	cursor: pointer;
	font-family: var(--ipd-sans);
	min-height: 50px;
	padding: 0.9rem 1.5rem;
}

.ipd-review-message {
	background: rgba(255, 255, 255, 0.68);
	border: 1px solid rgba(33, 50, 43, 0.1);
	border-radius: 18px;
	color: var(--ipd-ink-soft);
	padding: 22px 24px;
}

.ipd-review-message--error {
	background: rgba(145, 57, 43, 0.06);
	border-color: rgba(145, 57, 43, 0.18);
	color: #713528;
	margin-bottom: 24px;
}

.ipd-review-message--success {
	background: rgba(39, 78, 66, 0.06);
	border-color: rgba(39, 78, 66, 0.18);
	padding: clamp(28px, 5vw, 46px);
}

.ipd-review-message h1,
.ipd-review-message h2 {
	font-size: clamp(2.35rem, 5vw, 4rem);
	line-height: 1;
	margin: 0;
}

.ipd-review-message p {
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 16px 0 0;
}

.ipd-review-message ul {
	margin: 12px 0 0;
	padding-left: 22px;
}

.ipd-review-message .ipd-button {
	margin-top: 24px;
}

.ipd-reviews-showcase {
	display: grid;
	gap: 32px;
}

.ipd-reviews-showcase__header {
	margin: 0 auto;
	max-width: 760px;
	text-align: center;
}

body.inpunta-page--testimonianze .ipd-reviews-showcase__header h2 {
	color: var(--ipd-ink) !important;
	font-size: clamp(2.2rem, 4.2vw, 3.7rem) !important;
	line-height: 1 !important;
	margin: 0 !important;
}

body.inpunta-page--testimonianze .ipd-reviews-showcase__header > p:not(.ipd-section-label) {
	color: var(--ipd-ink-soft) !important;
	font-size: 1.05rem !important;
	line-height: 1.7 !important;
	margin: 16px 0 0 !important;
}

.ipd-reviews-summary {
	align-items: center;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(33, 50, 43, 0.08);
	border-radius: 999px;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: center;
	margin-top: 20px;
	padding: 10px 16px;
}

.ipd-reviews-summary strong {
	color: var(--ipd-forest);
}

.ipd-reviews-summary__stars,
.ipd-review-card__stars,
.ipd-trust__summary-stars,
.ipd-trust__review-stars {
	color: var(--ipd-brass);
	font-size: 1.1rem;
	letter-spacing: 0.08em;
}

.ipd-reviews-summary__stars .is-empty,
.ipd-review-card__stars .is-empty,
.ipd-trust__summary-stars .is-empty,
.ipd-trust__review-stars .is-empty {
	color: #cfc7ba;
}

.ipd-reviews-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ipd-review-card {
	background: linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(239, 233, 222, 0.88));
	border: 1px solid rgba(33, 50, 43, 0.09);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(25, 41, 34, 0.08);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: clamp(22px, 3vw, 30px);
}

body.inpunta-page--testimonianze .ipd-review-card__text {
	margin-top: 16px;
}

body.inpunta-page--testimonianze .ipd-review-card__text p {
	color: var(--ipd-ink) !important;
	font-size: 1rem !important;
	line-height: 1.72 !important;
	margin: 0 0 12px !important;
}

body.inpunta-page--testimonianze .ipd-review-card__text p:last-child {
	margin-bottom: 0 !important;
}

.ipd-review-card__footer {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
	padding-top: 20px;
}

.ipd-review-card__footer strong {
	color: var(--ipd-forest);
	font-size: 1rem;
}

.ipd-review-card__footer span,
.ipd-review-card__footer time {
	color: var(--ipd-ink-soft);
	font-size: 0.86rem !important;
}

.ipd-review-card__date,
.ipd-trust__review-date {
	font-variant-numeric: tabular-nums;
}

.ipd-trust__summary {
	align-items: center;
	background: rgba(255, 255, 255, 0.66);
	border: 1px solid rgba(39, 78, 66, 0.16);
	border-radius: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-top: 18px;
	padding: 10px 13px;
	width: fit-content;
}

.ipd-trust__summary strong {
	color: var(--ipd-forest);
}

.ipd-trust__summary > span:last-child {
	color: var(--ipd-ink-soft);
	font-size: 0.88rem;
}

.ipd-trust__review-stars {
	display: block;
	margin-bottom: 12px;
}

.ipd-trust__review-meta {
	color: var(--ipd-ink-soft);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--ipd-sans);
	font-size: 0.85rem;
	gap: 8px 14px;
	margin-top: 14px;
}

.ipd-trust__review-meta strong {
	color: var(--ipd-forest);
}

@media (max-width: 780px) {
	.ipd-review-document .ipd-topbar {
		background: var(--ipd-forest-deep);
		padding: 16px 0 14px;
	}

	.ipd-review-document .ipd-topbar__inner {
		padding-bottom: 0;
	}

	.ipd-review-hero {
		min-height: 440px;
		padding: 62px 0 58px;
	}

	.ipd-review-page--action {
		padding-top: 10px;
	}

	.ipd-review-form,
	.ipd-reviews-grid {
		grid-template-columns: 1fr;
	}

	.ipd-review-panel {
		border-radius: 18px;
		padding: 28px 20px;
	}

	.ipd-review-stars-input label {
		font-size: 2.35rem;
	}

	.ipd-review-form__actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.ipd-review-form__actions .ipd-button {
		justify-content: center;
		width: 100%;
	}

	.ipd-reviews-summary {
		border-radius: 16px;
	}
}
