.blocco-faq {
	width: 100%;
}

.blocco-faq__inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.blocco-faq__item {
	width: 100%;
	position: relative;
	background-color: #f4f2f2;
	border-radius: 1.25rem;
	overflow: hidden;
}

.blocco-faq__summary {
	position: relative;
	background: linear-gradient(rgba(253, 253, 253, 0.8), rgba(253, 253, 253, 0.8)),
		linear-gradient(128.98deg, #5c285f, #4bb8a9);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem;
	list-style: none;
	cursor: pointer;
	text-align: left;
	font-size: clamp(1.25rem, 3.5vw, 2.25rem);
	color: #5c285f;
	font-family: Aleo, Georgia, serif;
	font-weight: 700;
	line-height: 1.3;
	transition: filter 0.2s ease;
	-webkit-user-select: none;
	user-select: none;
}

.blocco-faq__summary::-webkit-details-marker {
	display: none;
}

.blocco-faq__summary:hover {
	filter: brightness(1.05);
}

.blocco-faq__icon {
	flex-shrink: 0;
	color: #5c285f;
	transition: transform 0.3s ease;
}

.blocco-faq__icon svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

.blocco-faq__icon-v {
	transition: opacity 0.3s ease;
}

.blocco-faq__item[open] .blocco-faq__icon {
	transform: rotate(45deg);
}

.blocco-faq__content {
	padding: 1.25rem 1.5rem;
	font-family: 'DM Sans', Arial, sans-serif;
	font-size: 1rem;
	color: #22181c;
	line-height: 1.6;
}

.blocco-faq__content p {
	margin: 0 0 0.75rem;
}

.blocco-faq__content p:last-child {
	margin-bottom: 0;
}

@keyframes faq-slide-down {
	from {
		opacity: 0;
		max-height: 0;
	}

	to {
		opacity: 1;
		max-height: 37.5rem;
	}
}

@keyframes faq-slide-up {
	from {
		opacity: 1;
		max-height: 37.5rem;
	}

	to {
		opacity: 0;
		max-height: 0;
	}
}

.blocco-faq__item[open] .blocco-faq__content {
	animation: faq-slide-down 0.35s ease forwards;
}

.blocco-faq__content {
	overflow: hidden;
}

@media (max-width: 48rem) {
	.blocco-faq__inner {
		padding: 2.5rem 1rem;
	}

	.blocco-faq__summary {
		padding: 1rem;
		font-size: 1.125rem;
	}

	.blocco-faq__content {
		padding: 0 1rem 1.25rem;
		max-height: 800px;
		overflow-y: auto;
	}

	@keyframes faq-slide-down-mobile {
		from {
			opacity: 0;
			max-height: 0;
		}
		to {
			opacity: 1;
			max-height: 800px;
		}
	}

	@keyframes faq-slide-up-mobile {
		from {
			opacity: 1;
			max-height: 800px;
		}
		to {
			opacity: 0;
			max-height: 0;
		}
	}

	.blocco-faq__item[open] .blocco-faq__content {
		animation: faq-slide-down-mobile 0.35s ease forwards;
	}
}
