/* Sorgente Couture - Centralino WhatsApp */
.scc {
	--scc-verde: #25d366;
	--scc-verde-scuro: #128c4a;
	--scc-oro: #c9a24a;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	font-family: inherit;
	line-height: 1.4;
}
.scc *, .scc *::before, .scc *::after { box-sizing: border-box; }
.scc [hidden] { display: none !important; }
.scc svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Tasto rotondo */
.scc-tasto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--scc-verde);
	color: #fff;
	font-size: 30px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	cursor: pointer;
	transition: transform .2s ease;
}
.scc-tasto:hover { transform: scale(1.06); }
.scc-tasto:focus-visible { outline: 3px solid var(--scc-oro); outline-offset: 3px; }
.scc-tasto-x { display: none; }
.scc-tasto-x svg { stroke: currentColor; stroke-width: 2.4; fill: none; font-size: 24px; }
.scc.scc-aperto .scc-tasto-wa { display: none; }
.scc.scc-aperto .scc-tasto-x { display: flex; }

/* Finestra: sempre dentro lo schermo */
.scc-finestra {
	position: absolute;
	right: 0;
	bottom: 76px;
	display: flex;
	flex-direction: column;
	width: 370px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 116px);
	max-height: calc(100dvh - 116px);
	overflow: hidden;
	border-radius: 16px;
	background: #f4efe6;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	animation: scc-entra .22s ease;
}
@keyframes scc-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.scc-testa {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	padding: 12px 12px 12px 16px;
	background: var(--scc-verde-scuro);
	color: #fff;
}
.scc-logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
	padding: 3px;
}
.scc-testa-testo { flex: 1; min-width: 0; }
.scc-testa-testo strong { display: block; font-size: 16px; color: #fff; }
.scc-testa-testo span { display: block; font-size: 12px; opacity: .85; color: #fff; }
.scc-chiudi, .scc-indietro {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.scc-chiudi:hover, .scc-indietro:hover { background: rgba(255, 255, 255, .15); }
.scc-chiudi svg, .scc-indietro svg { stroke: currentColor; stroke-width: 2.4; fill: none; font-size: 22px; }
.scc-indietro { margin-left: -8px; }

.scc-corpo {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px;
}
.scc-vista { animation: scc-entra .2s ease; }

.scc-fumetto {
	position: relative;
	max-width: 92%;
	margin: 0 0 10px;
	padding: 10px 13px;
	border-radius: 4px 14px 14px 14px;
	background: #fff;
	color: #222;
	font-size: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.scc-fumetto-utente {
	margin-left: auto;
	border-radius: 14px 4px 14px 14px;
	background: #dcf8c6;
	width: fit-content;
}

.scc-scelte { display: grid; gap: 8px; margin-top: 4px; }
.scc-scelta {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e6dccb;
	border-radius: 12px;
	background: #fff;
	color: #1d1d1d;
	text-align: left;
	font: inherit;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
}
.scc-scelta:hover, .scc-scelta:focus-visible { border-color: var(--scc-oro); transform: translateX(2px); outline: none; }
.scc-icona { font-size: 22px; width: 28px; text-align: center; }
.scc-scelta-testo { min-width: 0; }
.scc-scelta-testo strong { display: block; font-size: 15px; color: #1d1d1d; }
.scc-scelta-testo small { display: block; font-size: 12.5px; color: #6b6255; }

.scc-link { display: grid; gap: 8px; margin: 4px 0 6px; }
.scc .scc-bottone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #1d1d1d;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s ease;
}
.scc .scc-bottone:hover { background: #000; color: var(--scc-oro); }
.scc .scc-bottone-wa { background: var(--scc-verde); color: #fff; }
.scc .scc-bottone-wa:hover { background: var(--scc-verde-scuro); color: #fff; }
.scc-bottone-wa svg { font-size: 20px; }
.scc-oppure { margin: 14px 0 6px; font-size: 13px; color: #6b6255; text-align: center; }
.scc-torna {
	display: block;
	margin: 10px auto 0;
	padding: 6px 10px;
	border: 0;
	background: none;
	color: #6b6255;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 480px) {
	.scc { right: 14px; bottom: 14px; }
	.scc-finestra { width: calc(100vw - 28px); max-width: none; bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
	.scc-finestra, .scc-vista { animation: none; }
}
