/* Palette Dinamo:
   - bg item normale: #f5f5f5 (grigio chiaro)
   - bg domanda hover/focus/active/aperta: #2B7687 (blu/verde primary Dinamo) con testo bianco
   - testo domanda normale: #1d1d1f (scuro)
   - testo risposta: #333
   I "!important" sui colori del bottone blindano contro le regole button del tema. */
.dinamo-faq-title {
	margin: 32px 0 16px 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: inherit;
}
.dinamo-faq-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 20px 0;
}
/* Quando il titolo non viene emesso (title=""), il wrapper deve avere
   comunque un po' d'aria sopra rispetto al testo precedente. */
.dinamo-faq-title + .dinamo-faq-wrapper { margin-top: 0; }
.dinamo-faq-wrapper:first-child { margin-top: 32px; }
.dinamo-faq-item {
	background: #f5f5f5;
	border-radius: 6px;
	overflow: hidden;
}

.dinamo-faq-q {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 16px 20px !important;
	margin: 0 !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: #1d1d1f !important;
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.dinamo-faq-q:hover,
.dinamo-faq-q:focus,
.dinamo-faq-q:focus-visible,
.dinamo-faq-q:active,
.dinamo-faq-q[aria-expanded="true"] {
	background: #2B7687 !important;
	color: #ffffff !important;
	outline: none !important;
}
.dinamo-faq-q-text { flex: 1 1 auto; }
.dinamo-faq-icon {
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
	transition: transform 0.18s ease;
	width: 22px;
	text-align: center;
	color: inherit;
}
.dinamo-faq-q[aria-expanded="true"] .dinamo-faq-icon { transform: rotate(45deg); }

.dinamo-faq-a {
	padding: 14px 20px 16px 20px;
	font-size: 15px;
	line-height: 1.55;
	color: #333;
	background: #f5f5f5;
}
.dinamo-faq-a p:first-child { margin-top: 0; }
.dinamo-faq-a p:last-child { margin-bottom: 0; }
