/**
 * Pagina Diventa socio 2 — racconto grafico del percorso membership.
 *
 * @package AIOP_Theme
 */

.aiop-diventa-socio-2-page {
	--aiop-ds2-accent: var(--e-global-color-fifth, #eb6037);
	--aiop-ds2-ink: var(--aiop-cs-ink, #17100f);
	--aiop-ds2-muted: var(--aiop-cs-muted, #5a524e);
	--aiop-ds2-border: var(--aiop-cs-border, #e4e4e4);
	--aiop-ds2-prose: min(820px, 100%);
}

.aiop-ds2-lead {
	font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
	line-height: 1.65;
	color: var(--aiop-ds2-muted);
	margin: 0;
}

/* Hero — solo struttura minima; layout, sfondo e tipografia da Elementor */
.aiop-ds2-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	scroll-margin-top: 120px;
}

/* Editor Elementor: sfondo container visibile come in frontend */
.elementor-editor-active .aiop-ds2-hero.elementor-element,
.elementor-editor-preview .aiop-ds2-hero.elementor-element {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.aiop-ds2-hero > .e-con-inner {
	position: relative;
	z-index: 1;
}

.aiop-ds2-hero__actions {
	margin-top: 0.25rem;
}

@media (max-width: 767px) {
	.aiop-ds2-hero__actions .elementor-button {
		width: 100%;
		justify-content: center;
	}
}

/* Journey pathway — tre tappe sequenziali con frecce */
.aiop-ds2-journey-pathway-wrap .elementor-widget-container,
.aiop-ds2-journey-pathway-wrap .elementor-text-editor {
	max-width: none;
}

/* Tipologie socio — centratura frontend (editor/frontend allineati) */
#tappe .elementor-widget-aiop-tipologie-socio {
	width: 100%;
	max-width: min(1200px, 100%);
	margin-inline: auto;
	align-self: center;
}

#tappe .elementor-widget-aiop-tipologie-socio > .elementor-widget-container {
	width: 100%;
	margin-inline: auto;
}

.aiop-ds2-journey-pathway {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 0.5rem 0.75rem;
	align-items: stretch;
	max-width: min(1200px, 100%);
	margin-inline: auto;
}

.aiop-ds2-journey-pathway__step {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.75rem 1.5rem;
	background: #ffffff;
	border-bottom: 4px solid var(--aiop-ds2-accent);
	border-radius: 0 0 20px 0;
	box-shadow: 0 10px 28px rgba(23, 16, 15, 0.06);
	height: 100%;
}

.aiop-ds2-journey-pathway__step-num {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--aiop-ds2-accent);
}

.aiop-ds2-journey-pathway__title {
	margin: 0;
	font-family: BCGHenSans, sans-serif;
	font-size: clamp(1.125rem, 1.5vw, 1.375rem);
	font-weight: 500;
	line-height: 1.25;
	color: var(--aiop-ds2-ink);
}

.aiop-ds2-journey-pathway__subtitle {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--aiop-ds2-accent);
}

.aiop-ds2-journey-pathway__text {
	margin: 0;
	flex: 1;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.55;
	color: var(--aiop-ds2-muted);
}

.aiop-ds2-journey-pathway__link {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 0.35rem;
	padding: 0.65rem 1.15rem;
	font-family: BCGHenSans, sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: #ffffff;
	background: var(--aiop-ds2-accent);
	border-radius: 0 0 10px 0;
	transition: opacity 0.2s ease;
}

.aiop-ds2-journey-pathway__link:hover,
.aiop-ds2-journey-pathway__link:focus-visible {
	opacity: 0.88;
	color: #ffffff;
}

.aiop-ds2-journey-pathway__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	color: var(--aiop-ds2-accent);
	opacity: 0.85;
}

.aiop-ds2-journey-pathway__arrow svg {
	width: 2.75rem;
	height: auto;
	display: block;
}

@media (max-width: 1024px) {
	.aiop-ds2-journey-pathway {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-areas:
			"step1 arrow1 step2"
			"arrow2 arrow2 arrow2"
			"step3 step3 step3";
	}

	.aiop-ds2-journey-pathway__step:nth-child(1) {
		grid-area: step1;
	}

	.aiop-ds2-journey-pathway__arrow:nth-child(2) {
		grid-area: arrow1;
	}

	.aiop-ds2-journey-pathway__step:nth-child(3) {
		grid-area: step2;
	}

	.aiop-ds2-journey-pathway__arrow:nth-child(4) {
		grid-area: arrow2;
		transform: rotate(90deg);
		width: 100%;
		padding: 0.35rem 0;
	}

	.aiop-ds2-journey-pathway__step:nth-child(5) {
		grid-area: step3;
	}
}

@media (max-width: 767px) {
	.aiop-ds2-journey-pathway {
		grid-template-columns: 1fr;
		grid-template-areas: none;
		gap: 0;
	}

	.aiop-ds2-journey-pathway__step,
	.aiop-ds2-journey-pathway__arrow {
		grid-area: auto;
	}

	.aiop-ds2-journey-pathway__arrow {
		transform: rotate(90deg);
		width: 100%;
		padding: 0.5rem 0;
	}

	.aiop-ds2-journey-pathway__step + .aiop-ds2-journey-pathway__arrow {
		margin-block: 0.15rem 0.35rem;
	}
}

/* Tier nav */
/* Tier detail sections */
.aiop-ds2-tier-copy {
	max-width: 640px;
}

.aiop-ds2-tier-media .aiop-ds2-visible-image {
	border-radius: 0 0 20px 0;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(23, 16, 15, 0.08);
}

.aiop-ds2-price-block {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem 1.25rem;
	padding: 1rem 1.25rem;
	background: var(--e-global-color-third, #faf9f9);
	border-bottom: 3px solid var(--aiop-ds2-accent);
	border-radius: 0 0 14px 0;
}

.aiop-ds2-price-block__early {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 500;
	color: var(--aiop-ds2-accent);
	line-height: 1.1;
}

.aiop-ds2-price-block__note,
.aiop-ds2-price-block__late {
	font-size: 0.9375rem;
	color: var(--aiop-ds2-muted);
}

.aiop-ds2-price-block__late em {
	font-style: normal;
}

/* Liste requisiti */
.aiop-ds2-list {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.aiop-ds2-list li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.35rem;
	border-bottom: 1px solid var(--aiop-ds2-border);
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--aiop-ds2-ink);
}

.aiop-ds2-list li:last-child {
	border-bottom: none;
}

.aiop-ds2-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1rem;
	width: 8px;
	height: 8px;
	background: var(--aiop-ds2-accent);
	border-radius: 0 0 4px 0;
}

/* Card «Come diventare socio» — container Elementor editabili */
.aiop-ds2-howto-cards {
	width: 100%;
}

.aiop-ds2-howto-card {
	box-shadow: 0 10px 28px rgba(23, 16, 15, 0.06);
	height: auto;
	align-self: stretch;
}

.aiop-ds2-howto-card > .e-con-inner {
	height: 100%;
}

.aiop-ds2-howto-card .elementor-widget-text-editor .elementor-widget-container,
.aiop-ds2-howto-card .elementor-widget-text-editor .elementor-text-editor {
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.55;
	color: var(--aiop-ds2-muted);
}

.aiop-ds2-howto-card .elementor-icon-list-item {
	font-size: 0.9375rem;
	line-height: 1.55;
	align-items: flex-start;
}

.aiop-ds2-howto-card .elementor-widget-icon-list {
	--e-icon-list-icon-size: 8px;
}

.aiop-ds2-howto-card .elementor-icon-list-icon {
	flex-shrink: 0;
	width: 8px;
	min-width: 8px;
	height: 8px;
	line-height: 1;
}

.aiop-ds2-howto-card .elementor-icon-list-icon svg {
	width: 8px !important;
	height: 8px !important;
	min-width: 8px !important;
	min-height: 8px !important;
	max-width: none !important;
	max-height: none !important;
	flex-shrink: 0;
}

@media (max-width: 1024px) {
	.aiop-ds2-howto-cards > .aiop-ds2-howto-card {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}
}

/* Tabelle */
.aiop-ds2-table-wrap {
	margin-top: 0.5rem;
}

.aiop-ds2-table--compare th,
.aiop-ds2-table--compare td {
	text-align: center;
	vertical-align: middle;
}

.aiop-ds2-table--compare th:first-child,
.aiop-ds2-table--compare td:first-child {
	text-align: left;
}

.aiop-ds2-table thead th {
	background: var(--e-global-color-third, #faf9f9);
	color: var(--aiop-ds2-ink);
	font-weight: 500;
}

@media (max-width: 1024px) {
	.aiop-ds2-tier-copy,
	.aiop-ds2-tier-media {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}

	.aiop-ds2-table-wrap {
		overflow-x: auto;
	}

	.aiop-ds2-table {
		min-width: 720px;
	}
}

@media (max-width: 767px) {
	.aiop-ds2-tier-nav .elementor-button {
		width: 100%;
		justify-content: center;
	}
}
