/*
 * Reclutamento venditori e negozi (vedi inc/sellers.php e assets/js/sellers.js).
 * Caricato solo su Diventa venditore, pagine negozio e articoli per produttori.
 */

/* ---------- Diventa venditore: invito nella prima schermata ---------- */
.dist-seller-cta { margin: 0 0 24px; }
.dist .dist-seller-cta .dist-btn { display: none; }
.dist-seller-cta__cost { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--d-ink); }
.dist-seller-cta__req { margin: 0; font-size: 14px; color: var(--d-muted); }
@media (max-width: 1023px) {
	/* su telefono e tablet il modulo e' sotto: il pulsante porta li' */
	.dist .dist-seller-cta .dist-btn { display: flex; justify-content: center; width: 100%; margin: 0 0 14px; box-sizing: border-box; }
}
@media (max-width: 767px) {
	/* il costo e' gia' accanto al pulsante: i tre riquadri spingerebbero il modulo ancora piu' in basso */
	.dist-seller-hero .dist-seller-points { display: none; }
}

/* ---------- Modulo di candidatura ---------- */
.dist-apply-hidden { display: none !important; }
.dist button.dist-apply-link { min-height: 0; margin: -6px 0 14px; padding: 0; border: 0; background: transparent; color: var(--d-accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dist button.dist-apply-link:hover { background: transparent; color: var(--d-accent-dark); }
.dist-apply-url { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: -4px 0 14px; font-size: 14px; color: var(--d-muted); }
.dist-apply-url[hidden], .dist-apply-hint[hidden] { display: none; }
.dist-apply-url strong { color: var(--d-ink); word-break: break-all; }
.dist .dist-apply-url button.dist-apply-link { margin: 0; }
.dist-apply-hint { margin: 8px 0 0; font-size: 13px; color: var(--d-muted); text-align: center; }
.dist-apply-next { margin: 4px 0 16px; padding: 14px 16px; border-radius: var(--d-radius); background: var(--d-sand); font-size: 14px; }
.dist-apply-next__title { margin: 0 0 6px; font-weight: 700; color: var(--d-ink); }
.dist-apply-next ol { margin: 0 0 0 1.2em; padding: 0; }
.dist-apply-next li { margin: 0 0 4px; color: var(--d-muted); }
.dist-apply-next li:last-child { margin-bottom: 0; }

/* "Candidati con Google" in cima al modulo, separatore sotto */
.dist-social-login--top { margin: 0 0 18px; }
.dist-social-login__intro { margin: 0; font-size: 14px; color: var(--d-muted); }
.dist-social-login--top .dist-social-login__sep { margin: 8px 0 0; }

/* ---------- Barra fissa "Inizia la candidatura" (telefono e tablet) ---------- */
.dist-apply-bar { display: none; }
@media (max-width: 1023px) {
	.dist-apply-bar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--d-paper); border-top: 1px solid var(--d-line); box-shadow: 0 -10px 30px rgba(30, 26, 22, .10);
		transform: translateY(110%); transition: transform .2s ease; visibility: hidden;
	}
	.dist-apply-bar.is-visible { transform: none; visibility: visible; }
	.dist .dist-apply-bar .dist-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
	body.dist:has(.dist-apply-bar) .site-footer { padding-bottom: 80px; }
}

/* ---------- Articoli per produttori: invito a meta' testo ---------- */
.dist-post-cta { margin: 32px 0; padding: 24px 26px; border-radius: var(--d-radius); background: var(--d-sand); }
.dist .dist-post-cta p { margin: 0 0 14px; }
.dist .dist-post-cta .dist-post-cta__title { margin: 0 0 6px; font-family: var(--d-serif); font-size: 22px; line-height: 1.25; color: var(--d-ink); }
.dist .entry-content .dist-post-cta a.dist-btn { display: inline-flex; }

/* ---------- Negozio: finestra Condividi ---------- */
.dist-share {
	width: min(440px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 24px;
	border: 0; border-radius: var(--d-radius-lg); background: var(--d-paper); color: var(--d-ink);
	box-shadow: 0 24px 60px rgba(30, 26, 22, .25);
}
.dist-share::backdrop { background: rgba(30, 26, 22, .45); }
.dist-share__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dist-share__title { margin: 0; font-family: var(--d-serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.dist-share__name { margin: 4px 0 0; font-size: 14px; color: var(--d-muted); }
.dist .dist-share__close {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; min-height: 0; padding: 0; border: 1px solid var(--d-line); border-radius: 50%;
	background: var(--d-paper); color: var(--d-ink); cursor: pointer;
}
.dist .dist-share__close:hover, .dist .dist-share__close:focus-visible { border-color: var(--d-ink); background: var(--d-paper); color: var(--d-ink); }
.dist-share__close svg { width: 18px; height: 18px; }
.dist-share__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; margin: 0; padding: 0; list-style: none; }
.dist-share__list li { margin: 0; }
.dist .dist-share__item {
	display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; min-height: 0; padding: 4px 0;
	border: 0; background: transparent; color: var(--d-ink); font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.dist .dist-share__item:hover, .dist .dist-share__item:focus-visible { background: transparent; color: var(--d-accent); }
.dist-share__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--d-ink); color: #fff; font-size: 22px; transition: transform .15s; }
.dist-share__item:hover .dist-share__ico { transform: translateY(-2px); }
.dist-share__item--whatsapp .dist-share__ico { background: #25D366; }
.dist-share__item--facebook .dist-share__ico { background: #1877F2; }
.dist-share__item--x .dist-share__ico { background: #000; }
.dist-share__item--linkedin .dist-share__ico { background: #0A66C2; }
.dist-share__item--email .dist-share__ico { background: var(--d-accent); }
.dist-share__item--copy .dist-share__ico { background: var(--d-olive); }
.dist-share__item--more .dist-share__ico { background: var(--d-sand); color: var(--d-ink); }
@media (max-width: 379px) {
	.dist-share__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Diventa venditore: "Chi fa cosa" ---------- */
.dist-seller-roles__lead { max-width: 720px; margin: 0 0 24px; color: var(--d-muted); }
.dist .dist-seller-roles__lead a { text-decoration: underline; text-underline-offset: 2px; }
.dist-seller-roles__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dist-seller-roles__col { padding: 28px; border-radius: var(--d-radius-lg); }
.dist-seller-roles__col--us { background: var(--d-olive); color: var(--d-olive-ink); }
.dist-seller-roles__col--you { background: var(--d-sand); }
.dist .dist-seller-roles__col h3 { margin: 0 0 14px; font-size: 24px; }
.dist .dist-seller-roles__col--us h3 { color: #fff; }
.dist-seller-roles__col ul { margin: 0; padding: 0; list-style: none; }
.dist-seller-roles__col li { position: relative; margin: 0 0 10px; padding-left: 26px; line-height: 1.5; }
.dist-seller-roles__col li:last-child { margin-bottom: 0; }
.dist-seller-roles__col li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--d-accent); }
.dist-seller-roles__col--us li::before { color: #fff; }

/* ---------- Diventa venditore: negozio di esempio e staff ---------- */
.dist-seller-proof { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.dist-seller-proof__shop, .dist-seller-proof__team { padding: 28px; border: 1px solid var(--d-line); border-radius: var(--d-radius-lg); background: var(--d-paper); }
.dist-seller-proof__team { background: var(--d-sand); border-color: var(--d-sand); }
.dist .dist-seller-proof__team h3 { margin: 0 0 10px; font-size: 24px; }
.dist-seller-proof__team p:last-child { margin: 0; }
.dist .dist-seller-proof__team a { text-decoration: underline; text-underline-offset: 2px; }
.dist-seller-proof__note { margin: 12px 0 0; font-size: 14px; color: var(--d-muted); }
.dist a.dist-shop-example { display: block; overflow: hidden; border: 1px solid var(--d-line); border-radius: var(--d-radius); background: var(--d-paper); color: var(--d-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.dist a.dist-shop-example:hover { border-color: var(--d-accent); color: var(--d-ink); transform: translateY(-2px); }
.dist-shop-example__banner { display: block; height: 140px; overflow: hidden; background: var(--d-sand); }
.dist .dist-shop-example__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dist-shop-example__body { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px 110px; min-height: 64px; }
.dist-shop-example__logo { position: absolute; left: 18px; top: -36px; width: 76px; height: 76px; overflow: hidden; border: 3px solid var(--d-paper); border-radius: 50%; background: var(--d-paper); box-shadow: 0 6px 18px rgba(30, 26, 22, .12); }
.dist .dist-shop-example__logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dist-shop-example__name { font-family: var(--d-serif); font-size: 24px; line-height: 1.2; }
.dist-shop-example__meta { font-size: 14px; color: var(--d-muted); }
.dist-shop-example__cta { margin-top: 6px; font-weight: 600; color: var(--d-accent); }

@media (max-width: 767px) {
	.dist-seller-roles__grid, .dist-seller-proof { grid-template-columns: 1fr; }
	.dist-seller-roles__col, .dist-seller-proof__shop, .dist-seller-proof__team { padding: 22px 18px; }
	.dist-shop-example__banner { height: 110px; }
}
