/*
 * Personalizzazione colori brand Frattin Auto:
 * cambia solo i valori qui sotto, il resto del CSS li usa automaticamente.
 */
.grc-reviews-section {
	--grc-brand-color: #1a3d8f;      /* colore primario Frattin Auto — SOSTITUIRE con l'hex esatto */
	--grc-brand-color-dark: #0f2861; /* variante scura, usata su hover */
	--grc-star-color: #f4b400;
	--grc-text-dark: #1a1a1a;
	--grc-text-muted: #6b6b76;
	--grc-card-bg: #ebebfc;
	--grc-page-bg: #f7f7f9;
}

.grc-reviews-section {
	padding: 70px 24px;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	position: relative;
}

.grc-title {
	font-size: 2.1rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--grc-text-dark);
	line-height: 1.25;
}

.grc-rating-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
	flex-wrap: wrap;
	color: var(--grc-text-muted);
	font-size: 0.95rem;
}

a.grc-rating-link {
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s;
}

a.grc-rating-link:hover {
	opacity: 0.75;
}

a.grc-rating-link .grc-rating-count {
	text-decoration: underline;
}

.grc-rating-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	letter-spacing: 2px;
}

.grc-rating-stars-bg {
	color: #e2e2e8;
	white-space: nowrap;
}

.grc-rating-stars-fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--grc-star-color);
	white-space: nowrap;
}

.grc-swiper-wrapper-outer {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.grc-swiper {
	flex: 1;
	overflow: hidden;
}

.grc-nav {
	all: unset;
	box-sizing: border-box;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e2e2e8 !important;
	background: #ffffff !important;
	color: #444450 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	z-index: 2;
}

.grc-nav svg {
	stroke: currentColor;
	display: block;
}

.grc-nav:hover,
.grc-nav:focus,
.grc-nav:focus-visible {
	background: var(--grc-brand-color) !important;
	border-color: var(--grc-brand-color) !important;
	color: #ffffff !important;
	outline: none;
}

.grc-nav:active {
	background: var(--grc-brand-color-dark) !important;
	border-color: var(--grc-brand-color-dark) !important;
	color: #ffffff !important;
}

.grc-nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.grc-card {
	background: var(--grc-card-bg);
	border-radius: 16px;
	padding: 24px 22px;
	text-align: left;
	border: 1px solid #ececf0;
	box-shadow: 0 2px 14px rgba(20, 20, 40, 0.05);
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 300px;
	overflow: hidden;
}

.grc-comment-wrap {
	flex-grow: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.grc-comment {
	font-size: 0.88rem;
	color: var(--grc-text-dark);
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.grc-toggle-comment {
	display: none;
	appearance: none;
	-webkit-appearance: none;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 6px 0 0 !important;
	margin: 0;
	color: var(--grc-brand-color) !important;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	align-self: flex-start;
	text-decoration: underline;
	line-height: 1.2;
}

.grc-toggle-comment.is-visible {
	display: inline-block;
}

.grc-toggle-comment:hover,
.grc-toggle-comment:focus,
.grc-toggle-comment:active {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: underline;
	outline: none;
}

.grc-stars {
	font-size: 1rem;
	line-height: 1;
}

.grc-star {
	color: #e2e2e8;
}

.grc-star.is-filled {
	color: var(--grc-star-color);
}

.grc-card-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	border-top: 1px solid #f0f0f3;
	padding-top: 12px;
	flex-shrink: 0;
}

.grc-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.grc-avatar-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--grc-brand-color);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
}

.grc-author-info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.grc-author {
	font-weight: 700;
	color: var(--grc-text-dark);
	font-size: 0.92rem;
}

.grc-review-date {
	font-size: 0.8rem;
	color: var(--grc-text-muted);
}

@media (max-width: 640px) {
	.grc-reviews-section {
		padding: 48px 16px;
	}
	.grc-title {
		font-size: 1.5rem;
	}
	.grc-nav {
		width: 34px;
		height: 34px;
	}
}

/* Modale "Leggi di più" */
.grc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 30, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.grc-modal-overlay[hidden] {
	display: none;
}

.grc-modal-box {
	background: #ffffff;
	border-radius: 16px;
	padding: 32px 28px;
	max-width: 480px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.grc-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--grc-text-muted);
	cursor: pointer;
	padding: 4px 8px;
}

.grc-modal-close:hover {
	color: var(--grc-text-dark);
}

.grc-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.grc-modal-avatar {
	width: 44px;
	height: 44px;
}

.grc-modal-comment {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--grc-text-dark);
	margin: 14px 0 0;
	white-space: pre-line;
}

body.grc-modal-open {
	overflow: hidden;
}
