/**
 * Pagina Diventa socio2 — layout membership alternativo.
 *
 * Radius standard pagina: solo angolo basso-destra (20px / 12px su micro-box).
 * Eccezione: Biscotto mantiene radius congresso (20px alto-sx + basso-dx).
 *
 * @package AIOP_Theme
 */

.aiop-diventa-socio2-page {
	--aiop-ds2-accent: var(--e-global-color-fifth, #eb6037);
	--aiop-ds2-surface: #ffffff;
	--aiop-ds2-surface-shadow: 0 12px 32px rgba(23, 16, 15, 0.08);
	--aiop-ds2-surface-shadow-hover: 0 20px 40px rgba(235, 96, 55, 0.14);
}

/* Superficie bianca elevata (principio visibilità su blush/peach) */
.aiop-diventa-socio2-surface {
	background: var(--aiop-ds2-surface);
	border-bottom: 4px solid var(--aiop-ds2-accent);
	border-radius: 0 0 20px 0;
	box-shadow: var(--aiop-ds2-surface-shadow);
}

/* Hero split su blush */
.aiop-diventa-socio2-hero-split .aiop-chi-siamo-stats {
	border-top: none;
	margin-top: 0.5rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: var(--aiop-ds2-surface);
	border-bottom: 4px solid var(--aiop-ds2-accent);
	border-radius: 0 0 20px 0;
	box-shadow: var(--aiop-ds2-surface-shadow);
}

/* Immagini HTML native (text-editor): wrapper con altezza definita, img riempie il box */
.aiop-ds2-visible-image {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	aspect-ratio: var(--aiop-ds2-image-ratio, 16 / 10);
	overflow: hidden;
	background: linear-gradient(135deg, #fde8dc 0%, #f4b89a 45%, #eb6037 100%);
	line-height: 0;
	border-radius: 0 0 20px 0;
}

.aiop-ds2-visible-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.aiop-diventa-socio2-hero-split .aiop-ds2-visible-image,
#formazione .aiop-diventa-socio2-editorial-feature .aiop-ds2-visible-image {
	box-shadow: 0 24px 48px rgba(23, 16, 15, 0.08);
}

#quote .aiop-chi-siamo-soci-card__media .aiop-ds2-visible-image {
	border-radius: 0;
	box-shadow: none;
}

.page-id-1439 .elementor-widget-text-editor .aiop-ds2-visible-image {
	margin: 0;
}

/* Griglia requisiti 2 colonne */
.aiop-diventa-socio2-requirements-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px !important;
}

.aiop-diventa-socio2-requirements-grid > .e-con {
	width: 100% !important;
	flex: unset !important;
}

#perche .aiop-diventa-socio2-requirement-card {
	box-shadow: var(--aiop-ds2-surface-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#perche .aiop-diventa-socio2-requirement-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--aiop-ds2-surface-shadow-hover);
}

/* Prezzi in evidenza nelle soci-card */
.aiop-diventa-socio2-pricing-card__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	margin-bottom: 0.75rem;
}

.aiop-diventa-socio2-pricing-card__early {
	font-family: BCGHenSans, sans-serif;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 100;
	color: var(--aiop-ds2-accent);
	line-height: 1;
}

.aiop-diventa-socio2-pricing-card__sep,
.aiop-diventa-socio2-pricing-card__late {
	font-size: 0.875rem;
	font-weight: 300;
	color: var(--aiop-cs-muted, #5a524e);
}

/* Pillole quote secondarie */
.aiop-diventa-socio2-price-pills {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 0.5rem;
}

.aiop-diventa-socio2-price-pill {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.25rem;
	background: var(--aiop-ds2-surface);
	border-radius: 0 0 20px 0;
	border-bottom: 3px solid var(--aiop-ds2-accent);
	box-shadow: var(--aiop-ds2-surface-shadow);
}

.aiop-diventa-socio2-price-pill__label {
	font-family: BCGHenSans, sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--aiop-cs-ink, #17100f);
	line-height: 1.35;
}

.aiop-diventa-socio2-price-pill__values {
	font-size: 0.9375rem;
	font-weight: 300;
	color: var(--aiop-cs-ink, #17100f);
}

.aiop-diventa-socio2-price-pill__values strong {
	font-weight: 500;
	color: var(--aiop-ds2-accent);
}

.aiop-diventa-socio2-price-pill__divider {
	color: var(--aiop-cs-muted, #5a524e);
}

/* Accordion quote su blush */
#quote .elementor-widget-n-accordion .e-n-accordion {
	background: var(--aiop-ds2-surface);
	padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 2rem);
	border-bottom: 4px solid var(--aiop-ds2-accent);
	border-radius: 0 0 20px 0;
	box-shadow: var(--aiop-ds2-surface-shadow);
}

.aiop-chi-siamo-section--quote .e-n-accordion-item-title {
	font-family: BCGHenSans, sans-serif !important;
	border-bottom: 1px solid var(--aiop-cs-border, #e4e4e4);
}

.aiop-chi-siamo-section--quote .e-n-accordion-item-title:hover,
.aiop-chi-siamo-section--quote .e-n-accordion-item[open] > .e-n-accordion-item-title {
	color: var(--aiop-ds2-accent) !important;
}

/* Editorial eventi alternati */
.aiop-diventa-socio2-editorial-feature + .aiop-diventa-socio2-editorial-feature {
	margin-top: clamp(2rem, 4vw, 3.5rem);
	padding-top: clamp(2rem, 4vw, 3.5rem);
	border-top: 1px solid var(--aiop-cs-border, #e4e4e4);
}

/* Riviste — card bianche su Peach, pannello prezzi a contrasto */
#riviste.aiop-chi-siamo-section--tone-warm > .e-con-inner > .elementor-widget-text-editor p {
	color: var(--aiop-cs-ink, #17100f) !important;
}

.aiop-diventa-socio2-magazine-grid {
	align-items: stretch !important;
}

.aiop-diventa-socio2-magazine-grid > .e-con {
	height: 100%;
}

#riviste .aiop-diventa-socio2-magazine-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #ffffff !important;
	border: 1px solid rgba(23, 16, 15, 0.1) !important;
	border-bottom: 4px solid var(--aiop-ds2-accent) !important;
	box-shadow: 0 16px 40px rgba(23, 16, 15, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#riviste .aiop-diventa-socio2-magazine-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(235, 96, 55, 0.18);
}

#riviste .aiop-diventa-socio2-magazine-card .elementor-widget-heading .elementor-heading-title {
	color: var(--aiop-cs-ink, #17100f);
}

#riviste .aiop-diventa-socio2-magazine-card .elementor-widget-heading:first-child .elementor-heading-title {
	color: var(--aiop-ds2-accent) !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.12em;
}

#riviste .aiop-diventa-socio2-magazine-card .elementor-widget-heading h3.elementor-heading-title {
	font-size: clamp(1.125rem, 1.6vw, 1.375rem) !important;
	line-height: 1.25 !important;
	min-height: 2.75em;
	color: var(--aiop-cs-ink, #17100f) !important;
}

#riviste .aiop-diventa-socio2-magazine-card .elementor-widget-text-editor {
	color: var(--aiop-cs-ink, #17100f) !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

.aiop-diventa-socio2-magazine-card .aiop-diventa-socio2-magazine-card__meta {
	margin: 0;
	padding-bottom: 0;
	font-size: 0.9375rem !important;
	font-weight: 300 !important;
	line-height: 1.5 !important;
	color: var(--aiop-cs-muted, #5a524e) !important;
}

.aiop-diventa-socio2-magazine-card__prices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: auto;
	margin-inline: -28px;
	margin-bottom: -28px;
	padding: 1rem 28px 28px;
	background: var(--e-global-color-fourth, #f7d7c6);
	border-top: 1px solid rgba(23, 16, 15, 0.08);
	border-radius: 0 0 12px 0;
}

.aiop-diventa-socio2-magazine-card__price-box {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 6rem;
	padding: 0.875rem 1rem;
	background: #ffffff;
	border: 1px solid var(--aiop-cs-border, #e4e4e4);
	border-bottom: 3px solid var(--aiop-ds2-accent);
	border-radius: 0 0 12px 0;
	box-shadow: 0 2px 8px rgba(23, 16, 15, 0.06);
}

.aiop-diventa-socio2-magazine-card__price-box.is-unavailable {
	background: #f5f5f5;
	border-color: #d8d8d8;
	border-bottom-color: var(--aiop-cs-muted, #5a524e);
	border-bottom-style: dashed;
}

.aiop-diventa-socio2-magazine-card__key {
	display: block;
	font-family: BCGHenSans, sans-serif;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--aiop-cs-ink, #17100f);
	line-height: 1.35;
}

.aiop-diventa-socio2-magazine-card__value {
	display: block;
	font-family: BCGHenSans, sans-serif;
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--aiop-ds2-accent) !important;
	letter-spacing: -0.01em;
}

.aiop-diventa-socio2-magazine-card__price-box.is-unavailable .aiop-diventa-socio2-magazine-card__value {
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--aiop-cs-muted, #5a524e) !important;
}

/* Card e contenitori pagina: solo basso-destra */
.aiop-diventa-socio2-requirement-card,
.aiop-diventa-socio2-pricing-card,
.aiop-diventa-socio2-magazine-card,
.aiop-diventa-socio2-contact-card,
#membership .aiop-chi-siamo-mission-grid > .e-con {
	border-radius: 0 0 20px 0 !important;
}

#quote .aiop-diventa-socio2-pricing-card {
	box-shadow: var(--aiop-ds2-surface-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#quote .aiop-diventa-socio2-pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--aiop-ds2-surface-shadow-hover);
}

#membership .aiop-chi-siamo-mission-grid > .e-con {
	border-bottom: 4px solid var(--aiop-ds2-accent) !important;
	box-shadow: var(--aiop-ds2-surface-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#membership .aiop-chi-siamo-mission-grid > .e-con:hover {
	transform: translateY(-3px);
	box-shadow: var(--aiop-ds2-surface-shadow-hover);
}

#quote .aiop-diventa-socio2-pricing-card .aiop-chi-siamo-soci-card__media {
	width: 100%;
	overflow: hidden;
	background: transparent;
	border-radius: 0;
}

#quote .aiop-diventa-socio2-pricing-card .aiop-chi-siamo-soci-card__media .elementor-widget-text-editor,
#quote .aiop-diventa-socio2-pricing-card .aiop-chi-siamo-soci-card__media .aiop-ds2-visible-image {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border-radius: 0 !important;
}

/* Footer: dimensioni naturali (fuori da .elementor-1439) */
.page-id-1439 .elementor-location-footer .elementor-widget-image img {
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}

/* Biscotto: stile congresso (non sovrascrivere) */
.aiop-biscotto-bar.e-con,
.aiop-biscotto-bar > .e-con:nth-child(2) {
	border-radius: 20px 0 20px 0 !important;
}

/* Contatti stack verticale */
.aiop-diventa-socio2-contact-stack {
	display: flex !important;
	flex-direction: column !important;
}

#contatti.aiop-diventa-socio2-section--tone-grey,
#contatti.aiop-diventa-socio2-section--tone-grey > .e-con-inner,
.elementor-element#contatti:not(.elementor-motion-effects-element-type-background),
.elementor-element#contatti > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: #e9e9e9 !important;
}

#contatti .aiop-diventa-socio2-contact-intro {
	background: var(--aiop-ds2-surface);
	padding: clamp(1.5rem, 3vw, 2rem);
	border-bottom: 4px solid var(--aiop-ds2-accent);
	border-radius: 0 0 20px 0;
	box-shadow: var(--aiop-ds2-surface-shadow);
}

#contatti .aiop-diventa-socio2-contact-card {
	box-shadow: var(--aiop-ds2-surface-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contatti .aiop-diventa-socio2-contact-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--aiop-ds2-surface-shadow-hover);
}

.aiop-diventa-socio2-contact-card .elementor-widget-text-editor a {
	color: var(--aiop-ds2-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Feature band community */
#community .aiop-chi-siamo-band__inner .elementor-button {
	background-color: var(--aiop-ds2-accent) !important;
}

@media (max-width: 1024px) {
	.aiop-diventa-socio2-requirements-grid {
		grid-template-columns: 1fr !important;
	}

	.aiop-diventa-socio2-price-pills {
		grid-template-columns: 1fr;
	}

	.aiop-diventa-socio2-magazine-card__prices {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.aiop-diventa-socio2-editorial-feature {
		flex-direction: column !important;
	}
}
