/* Landing Integrazione Amazon: hero scuro con schema animato, sincronizzazione, passi, piattaforme, FAQ, contatti. */

.amz-hero,
.amz-sync,
.amz-steps,
.amz-platforms,
.amz-faq,
.amz-contact { --amz-gold: #feb500; }

/* ------------------------------------------------------------------- Hero */
.amz-hero { padding: calc(var(--shift-header-h) + 90px) 0 110px; overflow: hidden; }
.amz-hero__cols { gap: 60px; margin: 0; }
.amz-hero__cols > .wp-block-column > * { margin-block: 0; }
.wp-block-heading.amz-hero__title {
	max-width: 15ch;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 62px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.amz-hero__text {
	max-width: 46ch;
	margin-top: 28px !important;
	font-size: 19px;
	font-weight: 300;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}
.amz-hero__buttons { gap: 14px; margin-top: 42px !important; }

/* Schema: nodi, linee che scorrono nel verso del dato. */
.amz-flow { margin: 0; }
.amz-flow__v { display: none !important; }
.amz-flow svg { display: block; width: 100%; height: auto; overflow: visible; }
.amz-flow__nodes rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.amz-flow__nodes rect.is-hub { fill: var(--wp--preset--color--accent); stroke: var(--wp--preset--color--accent); }
.amz-flow text { font-family: var(--wp--preset--font-family--montserrat); text-anchor: middle; }
.amz-flow__labels text { font-size: 17px; font-weight: 700; fill: #fff; }
.amz-flow__sub text { font-family: var(--wp--preset--font-family--open-sans); font-size: 12px; fill: rgba(255, 255, 255, 0.6); }
.amz-flow__caption { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.amz-flow__caption.is-out { fill: #8fbfe3; }
.amz-flow__caption.is-back { fill: var(--amz-gold); }
.amz-flow__line { fill: none; stroke-width: 2; stroke-dasharray: 6 8; }
.amz-flow__arrow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.amz-flow .is-out:is(.amz-flow__line, .amz-flow__arrow) { stroke: #8fbfe3; }
.amz-flow .is-back:is(.amz-flow__line, .amz-flow__arrow) { stroke: var(--amz-gold); }
@media (prefers-reduced-motion: no-preference) {
	.amz-flow__line { animation: amz-flow 1.4s linear infinite; }
}
@keyframes amz-flow { to { stroke-dashoffset: -28; } }

/* ------------------------------------------------------- Sincronizzazione */
.amz-sync__cols { gap: 80px; margin: 0; }
.amz-sync__cols > .wp-block-column > * { margin-block: 0; }
.amz-sync__intro { position: sticky; top: 40px; align-self: flex-start; }
.amz-sync__lead,
.amz-steps__lead { max-width: 52ch; margin-top: 24px !important; font-size: 18px; line-height: 1.65; }
.amz-sync__row { padding: 34px 0; border-top: 1px solid var(--wp--preset--color--line); }
.amz-sync__row:first-child { padding-top: 6px; border-top: 0; }
.amz-sync__row > * { margin: 0; max-width: 62ch; }
.wp-block-heading.amz-sync__title,
.wp-block-heading.amz-step__title {
	margin-bottom: 12px;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--heading);
}

/* ------------------------------------------------------------------ Passi */
.amz-steps__head { gap: 60px; margin: 0; }
.amz-steps__head > .wp-block-column > * { margin-block: 0; }
.amz-steps__head .amz-steps__lead { margin-top: 0 !important; }
.amz-steps__list {
	counter-reset: amz-step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0;
	margin-top: 64px !important;
	margin-bottom: 0 !important;
	border-top: 2px solid var(--wp--preset--color--heading);
}
.amz-step { counter-increment: amz-step; padding: 28px 28px 0 0; }
.amz-step + .amz-step { padding-left: 28px; border-left: 1px solid var(--wp--preset--color--line); }
.amz-step > * { margin: 0; }
.amz-step::before {
	content: counter(amz-step);
	display: block;
	margin-bottom: 22px;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 46px;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	font-variant-numeric: tabular-nums;
}
.amz-step p { font-size: 15px; line-height: 1.65; }

/* ------------------------------------------------------------- Piattaforme */
.amz-platforms__cols { gap: 60px; margin: 0; }
.amz-platforms__cols > .wp-block-column > * { margin-block: 0; }
.amz-platforms__cols p { max-width: 60ch; font-size: 17px; line-height: 1.65; }
.amz-platforms__cols p + p { margin-top: 16px !important; }
.amz-platforms__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 30px;
	margin-top: 64px !important;
	margin-bottom: 0 !important;
}
.amz-platforms__list > .amz-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 112px;
	margin: 0;
}
/* Altezze ottiche: i loghi più larghi stanno più bassi, così pesano uguale. */
.amz-logo img { width: auto; height: var(--amz-logo-h, 38px); max-width: 100%; object-fit: contain; }
.amz-logo.is-shopify { --amz-logo-h: 42px; }
.amz-logo.is-magento { --amz-logo-h: 42px; }
.amz-logo.is-woocommerce { --amz-logo-h: 35px; }
.amz-logo.is-shopware { --amz-logo-h: 36px; }
.amz-logo.is-lightspeed { --amz-logo-h: 37px; }
.amz-logo.is-prestashop { --amz-logo-h: 31px; }

/* -------------------------------------------------------------------- FAQ */
.amz-faq__cols { gap: 60px; margin: 0; }
.amz-faq__cols > .wp-block-column > * { margin-block: 0; }
.amz-faq__item { border-bottom: 1px solid #dadada; }
.amz-faq__item:first-child { border-top: 1px solid #dadada; }
.amz-faq__item summary {
	position: relative;
	padding: 24px 48px 24px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--heading);
	transition: color 0.2s ease;
}
.amz-faq__item summary::-webkit-details-marker { display: none; }
.amz-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 6px;
	width: 12px;
	height: 12px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-75%) rotate(45deg);
	transition: transform 0.3s var(--shift-ease);
}
.amz-faq__item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.amz-faq__item summary:hover { color: var(--wp--preset--color--accent-text); }
.amz-faq__item summary:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 4px; }
.amz-faq__item > p { max-width: 65ch; margin: 0 !important; padding: 0 48px 26px 0; font-size: 16px; line-height: 1.7; }

/* --------------------------------------------------------------- Contatti */
.amz-contact > * { margin-block: 0; max-width: min(760px, var(--shift-container)) !important; }
.amz-contact__lead { margin-top: 22px !important; margin-bottom: 44px !important; text-wrap: pretty; font-size: 18px; line-height: 1.6; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1199px) {
	.wp-block-heading.amz-hero__title { font-size: 52px; }
	.amz-steps__list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
	.amz-step:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1000px) {
	.amz-hero { padding: 70px 0 80px; }
	.amz-hero__cols { flex-wrap: wrap !important; }
	.amz-hero__cols > .wp-block-column { flex-basis: 100% !important; }
	.amz-flow { max-width: 560px; margin-top: 20px; }
	.amz-sync__cols, .amz-platforms__cols, .amz-faq__cols { gap: 40px; }
	.amz-sync__intro { position: static; }
	.amz-steps__list { grid-template-columns: 1fr 1fr; }
	.amz-step:nth-child(odd) { padding-left: 0; border-left: 0; }
	.amz-step:nth-child(4) { padding-left: 28px; border-left: 1px solid var(--wp--preset--color--line); }
	.amz-sync, .amz-steps, .amz-platforms, .amz-faq, .amz-contact { padding-top: 80px !important; padding-bottom: 80px !important; }
}
@media (max-width: 600px) {
	.wp-block-heading.amz-hero__title { font-size: 38px; }
	.amz-hero__text { font-size: 17px; }
	.amz-steps__list { grid-template-columns: 1fr; border-top-width: 1px; }
	.amz-step, .amz-step + .amz-step, .amz-step:nth-child(4) { padding: 28px 0 0; border-left: 0; }
	.amz-step::before { margin-bottom: 14px; font-size: 36px; }
	.amz-flow { max-width: 320px; margin-inline: auto; }
	.amz-flow__h { display: none !important; }
	.amz-flow__v { display: block !important; }
	.amz-hero__buttons .wp-block-button { width: 100%; }
	.amz-hero__buttons .wp-block-button__link { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
	.amz-platforms__list { grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.amz-platforms__list > .amz-logo { height: 84px; }
	.amz-logo img { height: calc(var(--amz-logo-h, 38px) * 0.72); }
	.amz-faq__item summary { font-size: 16px; padding-right: 36px; }
	.amz-faq__item > p { padding-right: 0; }
	.wp-block-heading.shift-display { font-size: 32px; line-height: 1.2; }
}
