/* ── Avacy FAQ accordion (widget) ── */

.FaqAccordion__Title {
	margin: 0 0 1rem;
	line-height: 1.3;
}

.FaqAccordion__Item {
	border-bottom: 1px solid var(--e-global-color-67f347c); /* #EEEEEE */
}

/* Header cliccabile (summary nativo) */
.FaqAccordion__Question {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 1.1rem 0;
	cursor: pointer;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;          /* rimuove il triangolo di default */
	transition: color 0.15s ease;
}

.FaqAccordion__Question::-webkit-details-marker {
	display: none;             /* Safari/Chrome */
}

/* Hover/focus: domanda + icona in blu (secondary) */
.FaqAccordion__Question:hover,
.FaqAccordion__Question:focus-visible {
	color: var(--e-global-color-6658b4b);
}

.FaqAccordion__Question:hover .FaqAccordion__Icon,
.FaqAccordion__Question:focus-visible .FaqAccordion__Icon {
	color: var(--e-global-color-6658b4b);
}

.FaqAccordion__Icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	line-height: 1;
	color: var(--e-global-color-6658b4b);
}

.FaqAccordion__Icon svg {
	width: 1em;
	height: 1em;
	display: block;
}

.FaqAccordion__QuestionText {
	flex: 1 1 auto;
	min-width: 0;
	/* è un heading (h5): azzera i default del tema, eredita dal summary;
	   la tipografia è poi personalizzabile dal control "Tipografia domanda". */
	margin: 0;
	font: inherit;
	color: inherit;
}

/* Marker a chevron a destra (giù = chiuso, su = aperto) */
.FaqAccordion__Marker {
	flex-shrink: 0;
	position: relative;
	width: 1em;
	height: 1em;
}

.FaqAccordion__Marker::before {
	content: "";
	position: absolute;
	top: 45%;
	left: 50%;
	width: 0.5em;
	height: 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -50%) rotate(45deg);  /* chevron verso il basso */
	transition: transform 0.2s ease;
}

/* Aperto: il chevron punta verso l'alto */
.FaqAccordion__Item[open] .FaqAccordion__Marker::before {
	transform: translate(-50%, -20%) rotate(225deg);
}

.FaqAccordion__Answer {
	padding: 0 0 1.25rem;
	line-height: 1.6;
}

.FaqAccordion__Answer > :first-child {
	margin-top: 0;
}

.FaqAccordion__Answer > :last-child {
	margin-bottom: 0;
}

/* Segnaposto in editor quando il repeater è vuoto */
.FaqAccordion--Empty {
	padding: 1.5rem;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	color: #646970;
	font-style: italic;
}
