/* Solumed – Registro DAE */
.smd {
	--smd-teal: #3a7e22;
	--smd-teal-2: #7cc35a;
	--smd-teal-dark: #2e6a19;
	--smd-ink: #0b0f3f;
	--smd-ink-2: #080b33;
	--smd-ink-3: #05072a;
	--smd-muted: #7c7c80;
	--smd-line: #e7e8ec;
	--smd-bg: #f6f8f9;
	--smd-card: #ffffff;
	--smd-ok: #1f9d6b;
	--smd-warn: #e08a00;
	--smd-err: #d6403a;
	--smd-radius: 18px;
	--smd-ease: cubic-bezier(.2, .8, .2, 1);
	--smd-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--smd-font-head: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	font-family: var(--smd-font);
	color: var(--smd-ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.smd *, .smd *::before, .smd *::after { box-sizing: border-box; }
.smd h1, .smd h2, .smd h3, .smd .smd-hero__title, .smd .smd-card__title, .smd .smd-form__title, .smd .smd-hero__trust strong,
.smd .smd-step h3, .smd .smd-feature h3, .smd .smd-marquee li, .smd .smd-login__intro h3 { font-family: var(--smd-font-head) !important; letter-spacing: -.025em; }
.smd p, .smd li, .smd label, .smd input, .smd select, .smd button, .smd a { font-family: var(--smd-font); }
.smd [hidden] { display: none !important; }

/* ---------------------------------------------------------------- */
/* Pulsanti                                                         */
/* ---------------------------------------------------------------- */
.smd .smd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
	font: 600 15px/1.2 inherit; font-family: inherit; letter-spacing: .01em; text-decoration: none; cursor: pointer;
	transition: transform .35s var(--smd-ease), box-shadow .35s var(--smd-ease), background-color .25s, color .25s, border-color .25s;
	white-space: nowrap;
}
.smd .smd-btn:hover { transform: translateY(-2px); }
.smd .smd-btn:active { transform: translateY(0) scale(.98); }
.smd .smd-btn:focus-visible { outline: 3px solid rgba(58, 126, 34, .45); outline-offset: 3px; }
.smd .smd-btn--primary { background: var(--smd-teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(58, 126, 34, .8); }
.smd .smd-btn--primary:hover { background: var(--smd-teal-dark); color: #fff; box-shadow: 0 16px 34px -12px rgba(58, 126, 34, .9); }
.smd .smd-btn--ghost { background: transparent; color: var(--smd-teal-dark); border-color: rgba(58, 126, 34, .45); }
.smd .smd-btn--ghost:hover { background: rgba(58, 126, 34, .08); color: var(--smd-teal-dark); }
.smd .smd-btn--ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.smd .smd-btn--ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.smd .smd-btn--lg { padding: 1em 1.8em; font-size: 16px; }
.smd .smd-btn--sm { padding: .55em 1em; font-size: 13px; }
.smd .smd-btn--glow { position: relative; isolation: isolate; }
.smd .smd-btn--glow::after {
	content: ""; position: absolute; inset: -3px; border-radius: inherit; z-index: -1;
	background: conic-gradient(from var(--smd-angle, 0deg), transparent 0 70%, rgba(124, 195, 90, .9), transparent);
	animation: smd-spin 3.2s linear infinite; filter: blur(6px); opacity: .9;
}
@property --smd-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes smd-spin { to { --smd-angle: 360deg; } }

.smd .smd-link { background: none; border: 0; padding: 0; color: var(--smd-teal-dark); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.smd .smd-link:hover { text-decoration: underline; }
.smd .smd-link--danger { color: var(--smd-err); }

.smd .smd-eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--smd-teal);
}
.smd .smd-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------------------------------------------------------------- */
/* Landing: layout a tutta larghezza                                */
/* ---------------------------------------------------------------- */
.smd.smd-landing {
	width: 100vw !important; max-width: 100vw !important; position: relative;
	margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
	margin-top: 0; padding: 0 !important;
	overflow-x: clip; background: var(--smd-bg);
}
.smd-landing .smd-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.smd-landing .smd-wrap--narrow { width: min(920px, calc(100% - 32px)); }
.smd-landing h1, .smd-landing h2, .smd-landing h3 { font-family: inherit; color: inherit; margin: 0; letter-spacing: -.02em; }

/* Hero */
.smd-hero {
	position: relative; min-height: min(92vh, 860px); display: flex; align-items: center;
	padding: 120px 0 170px; color: #fff; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 90% at 85% 10%, #1b2468 0%, var(--smd-ink-2) 45%, var(--smd-ink-3) 100%);
}
.smd-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.smd-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.smd-orb--1 { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle, #3a7e22 0%, transparent 70%); animation: smd-float 14s ease-in-out infinite; }
.smd-orb--2 { width: 420px; height: 420px; bottom: -180px; left: -120px; background: radial-gradient(circle, #1c2a8c 0%, transparent 70%); animation: smd-float 18s ease-in-out infinite reverse; }
.smd-orb--3 { width: 220px; height: 220px; top: 40%; left: 46%; background: radial-gradient(circle, rgba(124, 195, 90, .8) 0%, transparent 70%); opacity: .35; animation: smd-float 11s ease-in-out infinite; }
@keyframes smd-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(30px, -24px, 0); } }
.smd-grid-bg {
	position: absolute; inset: -20% -10%;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.smd-ecg {
	position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; z-index: -1; opacity: .55; pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 60%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 60%, #000 100%);
}
.smd-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.smd-ecg__path { stroke: rgba(124, 195, 90, .55); stroke-width: 2; animation: smd-draw 4.5s var(--smd-ease) .3s forwards; }
.smd-ecg__glow { stroke: #c3f0a3; stroke-width: 3; stroke-dasharray: .06 .94; filter: drop-shadow(0 0 6px #7cc35a) drop-shadow(0 0 14px #3a7e22); animation: smd-run 3.4s linear 1.2s infinite; opacity: 0; }
@keyframes smd-draw { to { stroke-dashoffset: 0; } }
@keyframes smd-run { 0% { stroke-dashoffset: 1.06; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }

.smd-hero__inner {
	width: min(1180px, calc(100% - 40px)); margin: 0 auto;
	display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.smd-hero__title { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; font-weight: 700; margin: 18px 0 22px !important; color: #fff !important; }
.smd-gradient-text {
	background: linear-gradient(100deg, #c3f0a3 0%, #8fd16a 45%, #6fb84a 70%, #c3f0a3 100%);
	background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: smd-shine 6s linear infinite;
}
@keyframes smd-shine { to { background-position: 200% center; } }
.smd-hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .74); max-width: 560px; margin: 0 0 34px; }
.smd-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.smd-hero__trust { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.smd-hero__trust li { margin: 0; }
.smd-hero__trust strong { display: block; font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Entrata hero */
.smd-anim { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: smd-in 1s var(--smd-ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes smd-in { to { opacity: 1; transform: none; filter: none; } }

/* Visual: "schermo" DAE + notifica */
.smd-hero__visual { position: relative; perspective: 1000px; min-height: 380px; display: grid; place-items: center; }
.smd-device {
	width: min(400px, 100%); padding: 22px; border-radius: 28px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
	border: 1px solid rgba(255, 255, 255, .16);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
	backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
	transform-style: preserve-3d; transition: transform .6s var(--smd-ease);
	opacity: 0; animation: smd-pop 1.1s var(--smd-ease) .55s forwards;
}
@keyframes smd-pop { from { opacity: 0; transform: translateY(40px) rotateX(18deg) scale(.94); } to { opacity: 1; transform: none; } }
.smd-device__screen { border-radius: 18px; background: rgba(5, 7, 42, .55); padding: 18px; display: grid; gap: 10px; }
.smd-device__row {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 14px; color: rgba(255, 255, 255, .85);
}
.smd-device__row b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.smd-device__row--warn { background: rgba(224, 138, 0, .14); box-shadow: inset 0 0 0 1px rgba(255, 176, 50, .35); }
.smd-device__row--warn b { color: #ffc266; }
.smd-dot { width: 9px; height: 9px; border-radius: 50%; position: relative; }
.smd-dot--ok { background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }
.smd-dot--warn { background: #ffb032; box-shadow: 0 0 10px #ffb032; }
.smd-dot--warn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #ffb032; animation: smd-ping 1.8s var(--smd-ease) infinite; }
@keyframes smd-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.smd-device__pulse svg { width: 100%; height: 54px; display: block; }
.smd-device__pulse path { fill: none; stroke: #7cc35a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: smd-beat 2.2s linear infinite; filter: drop-shadow(0 0 4px #3a7e22); }
@keyframes smd-beat { 0% { stroke-dashoffset: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.smd-toast {
	position: absolute; right: -10px; bottom: 6%; display: flex; gap: 12px; align-items: center;
	padding: 14px 18px 14px 14px; border-radius: 16px; max-width: 300px;
	background: #fff; color: var(--smd-ink); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
	opacity: 0; animation: smd-toast 1s var(--smd-ease) 1.6s forwards;
}
.smd-toast b { display: block; font-size: 14px; }
.smd-toast small { display: block; font-size: 12.5px; color: var(--smd-muted); line-height: 1.35; }
.smd-toast__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(58, 126, 34, .12); color: var(--smd-teal); }
.smd-toast__icon svg { width: 22px; height: 22px; }
@keyframes smd-toast { from { opacity: 0; transform: translate(30px, 20px) scale(.9); } to { opacity: 1; transform: none; } }

.smd-scroll { position: absolute; left: 50%; bottom: 110px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.smd-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: smd-wheel 1.8s var(--smd-ease) infinite; }
@keyframes smd-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sezioni */
.smd-section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.smd-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.smd-section__head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; font-weight: 700; margin-top: 14px !important; }

/* Reveal allo scroll */
.smd-js .smd [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--smd-ease), transform .9s var(--smd-ease); transition-delay: calc(var(--d, 0) * 110ms); }
.smd-js .smd [data-reveal].is-in { opacity: 1; transform: none; }
.smd .smd-flash { animation: smd-flash .9s var(--smd-ease); }
@keyframes smd-flash { 30% { box-shadow: 0 0 0 5px rgba(58, 126, 34, .3); border-color: var(--smd-teal); } }
.smd-js .smd .smd-form[data-reveal], .smd-js .smd .smd-card[data-reveal] { transition-duration: .7s; }

/* Steps */
.smd-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; counter-reset: s; }
.smd-steps__list::before {
	content: ""; position: absolute; top: 62px; left: 16%; right: 16%; height: 2px;
	background: linear-gradient(90deg, transparent, var(--smd-teal), transparent);
	transform: scaleX(var(--smd-line, 0)); transform-origin: left; transition: transform 1.6s var(--smd-ease) .3s;
}
.smd-steps.is-in .smd-steps__list::before { --smd-line: 1; }
.smd-step {
	position: relative; margin: 0; padding: 36px 30px 34px; border-radius: var(--smd-radius); background: var(--smd-card);
	box-shadow: 0 1px 0 var(--smd-line), 0 30px 60px -40px rgba(11, 15, 63, .35); text-align: center;
}
.smd-step__num { position: absolute; top: 18px; right: 22px; font-size: 13px; font-weight: 700; color: rgba(11, 15, 63, .2); letter-spacing: .1em; }
.smd-step__icon {
	width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 20px; position: relative; z-index: 1;
	background: linear-gradient(140deg, var(--smd-teal), var(--smd-teal-dark)); color: #fff; box-shadow: 0 14px 30px -12px rgba(58, 126, 34, .9);
}
.smd-step__icon svg, .smd-feature__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smd-step h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px !important; }
.smd-step p { margin: 0; color: var(--smd-muted); font-size: 15px; }

/* Perché */
.smd-why { background: var(--smd-ink); color: #fff; overflow: hidden; }
.smd-why__bg {
	position: absolute; inset: -30% -10%; pointer-events: none;
	background: radial-gradient(40% 40% at 20% 30%, rgba(58, 126, 34, .28), transparent 70%), radial-gradient(35% 35% at 85% 70%, rgba(124, 195, 90, .18), transparent 70%);
}
.smd-why .smd-section__head h2 { color: #fff; }
.smd-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.smd-feature {
	padding: 30px 26px; border-radius: var(--smd-radius); position: relative; overflow: hidden;
	background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
	border: 1px solid rgba(255, 255, 255, .1); transform-style: preserve-3d;
	transition: border-color .4s, background .4s, opacity .9s var(--smd-ease), transform .9s var(--smd-ease);
}
.smd-feature::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 195, 90, .22), transparent 60%);
}
.smd-feature:hover { border-color: rgba(124, 195, 90, .45); }
.smd-feature:hover::before { opacity: 1; }
.smd-feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(58, 126, 34, .16); color: #9ad677; margin-bottom: 20px; }
.smd-feature h3 { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 8px !important; }
.smd-feature p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .66); }

/* Marquee marche */
.smd-marquee { background: var(--smd-ink-2); padding: 26px 0; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); }
.smd-marquee__track { display: flex; width: max-content; animation: smd-marquee 40s linear infinite; }
.smd-marquee:hover .smd-marquee__track { animation-play-state: paused; }
.smd-marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.smd-marquee li { margin: 0; padding: 0 34px; font-size: 20px; font-weight: 600; color: rgba(255, 255, 255, .38); white-space: nowrap; position: relative; transition: color .3s; }
.smd-marquee li:hover { color: #fff; }
.smd-marquee li::after { content: "✚"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--smd-teal); }
@keyframes smd-marquee { to { transform: translateX(-50%); } }

/* Registrazione */
.smd-register { background: linear-gradient(180deg, var(--smd-bg) 0%, #eef4f5 100%); }

/* ---------------------------------------------------------------- */
/* Area utente, card DAE                                            */
/* ---------------------------------------------------------------- */
.smd-notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; margin: 0 0 22px; font-weight: 500; animation: smd-in .6s var(--smd-ease) both; }
.smd-notice--ok { background: #e6f6f0; color: #106a47; }
.smd-notice--err { background: #fdecea; color: #a12b26; }
.smd-notice__icon { width: 22px; height: 22px; border-radius: 50%; background: var(--smd-ok); flex: none; position: relative; }
.smd-notice__icon::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.smd-list { display: grid; gap: 20px; margin-bottom: 26px; }
.smd-card {
	background: var(--smd-card); border-radius: var(--smd-radius); padding: 24px 26px 18px; position: relative; overflow: hidden;
	box-shadow: 0 1px 0 var(--smd-line), 0 24px 50px -36px rgba(11, 15, 63, .45);
	transition: box-shadow .4s var(--smd-ease), transform .9s var(--smd-ease), opacity .9s var(--smd-ease);
}
.smd-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--smd-ok); }
.smd-card--soon::before { background: var(--smd-warn); }
.smd-card--expired::before { background: var(--smd-err); }
.smd-card--none::before { background: var(--smd-line); }
.smd-card:hover { box-shadow: 0 1px 0 var(--smd-line), 0 30px 60px -30px rgba(11, 15, 63, .5); }
.smd-card--hl { animation: smd-hl 2.2s var(--smd-ease) 1; }
@keyframes smd-hl { 0%, 40% { box-shadow: 0 0 0 3px rgba(58, 126, 34, .55), 0 24px 50px -36px rgba(11, 15, 63, .45); } }
.smd-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.smd .smd-card__title { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.3; }
.smd-card__meta { margin: 4px 0 0; color: var(--smd-muted); font-size: 14px; }
.smd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.smd-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.smd-badge--ok { background: #e6f6f0; color: #137a52; }
.smd-badge--soon { background: #fff3df; color: #a35f00; }
.smd-badge--expired { background: #fdecea; color: #b3261e; }
.smd-badge--expired::before { animation: smd-blink 1.2s infinite; }
.smd-badge--none { background: #f0f0f2; color: var(--smd-muted); }
@keyframes smd-blink { 50% { opacity: .2; } }

.smd-items { list-style: none; margin: 0; padding: 0; }
.smd-item {
	display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "main date btn" "bar bar bar";
	align-items: center; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--smd-line); margin: 0;
}
.smd-item__main { grid-area: main; min-width: 0; }
.smd-item__label { display: block; font-weight: 600; font-size: 15px; }
.smd-item__name { display: block; font-size: 13px; color: var(--smd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smd-item__date { grid-area: date; text-align: right; }
.smd .smd-item__date strong { display: block; font: 600 15px/1.3 inherit; font-family: inherit; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.smd-item__date span { font-size: 13px; color: var(--smd-muted); }
.smd-item--soon .smd-item__date span { color: var(--smd-warn); font-weight: 600; }
.smd-item--expired .smd-item__date span { color: var(--smd-err); font-weight: 600; }
.smd-item .smd-btn { grid-area: btn; }
.smd-item__bar { grid-area: bar; height: 4px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.smd-item__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--smd-teal-2), var(--smd-teal)); transition: width 1.4s var(--smd-ease) .2s; }
.smd-item--soon .smd-item__bar span { background: linear-gradient(90deg, #ffc266, var(--smd-warn)); }
.smd-item--expired .smd-item__bar span { background: var(--smd-err); }
.smd-card.is-in .smd-item__bar span, .smd--account .smd-item__bar span.is-go { width: var(--p); }
.smd-card__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--smd-line); font-size: 13.5px; color: var(--smd-muted); }
.smd-card__actions { display: flex; gap: 18px; align-items: center; }
.smd-inline { display: inline; margin: 0; }
.smd-add { text-align: center; margin: 8px 0 0; }

/* ---------------------------------------------------------------- */
/* Form                                                             */
/* ---------------------------------------------------------------- */
.smd-form { background: var(--smd-card); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 1px 0 var(--smd-line), 0 40px 80px -50px rgba(11, 15, 63, .5); }
.smd .smd-form__title { font-size: 24px; font-weight: 700; margin: 0 0 18px; }
.smd-fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.smd-fieldset legend {
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--smd-teal);
	padding: 0; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; width: 100%;
}
.smd-fieldset legend::after { content: ""; flex: 1; height: 1px; background: var(--smd-line); }
.smd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.smd-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.smd-field--wide, .smd-field--email, .smd-field--company { grid-column: 1 / -1; }
.smd-field label, .smd-slot__head { font-size: 13.5px; font-weight: 600; color: var(--smd-ink); }
.smd abbr[title] { color: var(--smd-teal); text-decoration: none; border: 0; }
.smd-optional { font-weight: 400; color: var(--smd-muted); font-size: 12.5px; }
.smd .smd-form input[type="text"], .smd .smd-form input[type="email"], .smd .smd-form input[type="tel"], .smd .smd-form input[type="date"], .smd .smd-form select,
.smd--admin input[type="text"], .smd--admin input[type="date"], .smd--admin select {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--smd-line); background: #fbfcfc;
	font: 15px/1.3 inherit; font-family: inherit; color: var(--smd-ink); margin: 0; box-shadow: none;
	transition: border-color .25s, box-shadow .25s, background-color .25s;
	-webkit-appearance: none; appearance: none;
}
.smd .smd-form select, .smd--admin select {
	padding-right: 42px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a7e22' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.smd .smd-form input:hover, .smd .smd-form select:hover { border-color: #cfd6da; }
.smd .smd-form input:focus, .smd .smd-form select:focus, .smd--admin input:focus, .smd--admin select:focus { outline: 0; border-color: var(--smd-teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(58, 126, 34, .14); }
.smd-has-error input, .smd-has-error select { border-color: var(--smd-err) !important; background-color: #fff8f7 !important; }
.smd-error { color: var(--smd-err); font-size: 13px; font-weight: 500; animation: smd-shake .4s; }
@keyframes smd-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.smd-components { margin-top: 20px; }
.smd-model-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; animation: smd-in .5s var(--smd-ease) both; }
.smd-model-slots > .smd-hint { grid-column: 1 / -1; }
.smd-slot { padding: 18px; border-radius: 16px; border: 1.5px dashed #d5dde0; background: #fafcfc; display: flex; flex-direction: column; gap: 8px; transition: border-color .3s, background .3s; }
.smd-slot:focus-within { border-style: solid; border-color: var(--smd-teal); background: #fff; }
.smd-slot.smd-has-error { border-color: var(--smd-err); border-style: solid; }
.smd-sub { font-size: 12.5px; color: var(--smd-muted); display: block; }
.smd-calc { font-size: 13px; }
.smd-calc summary { cursor: pointer; color: var(--smd-teal-dark); font-weight: 600; list-style: none; }
.smd-calc summary::-webkit-details-marker { display: none; }
.smd-calc summary::before { content: "↻ "; }
.smd-calc[open] summary { margin-bottom: 8px; }
.smd-calc .smd-sub { display: flex; flex-direction: column; gap: 6px; }
.smd-calc__note { display: block; margin-top: 6px; color: var(--smd-teal-dark); font-weight: 500; }
.smd-calc__note.is-warn { color: var(--smd-warn); }
.smd-hint { font-size: 13.5px; color: var(--smd-muted); margin: 0 0 16px; }
.smd-field--check { justify-content: flex-end; }
.smd-field--check label { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; min-height: 50px; }
.smd-field--check input { width: 20px; height: 20px; accent-color: var(--smd-teal); }
.smd-form__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.smd-form__actions .smd-btn.is-loading { pointer-events: none; opacity: .75; }
.smd-form__actions .smd-btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: smd-rot .7s linear infinite; }
@keyframes smd-rot { to { transform: rotate(360deg); } }

/* Login */
.smd-login { background: var(--smd-card); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 1px 0 var(--smd-line), 0 40px 80px -50px rgba(11, 15, 63, .5); }
.smd-login__intro { text-align: center; max-width: 560px; margin: 0 auto 26px; }
.smd .smd-login__intro h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.smd-login__intro p { margin: 0; color: var(--smd-muted); }
.smd-login__forms .woocommerce h2 { font-size: 18px; }
.smd-login__forms .woocommerce input.input-text { border-radius: 12px; min-height: 48px; }
.smd-login__forms .woocommerce button.button { border-radius: 999px; background: var(--smd-teal); color: #fff; padding: .9em 1.6em; }

/* Account WooCommerce */
.smd--account .smd-form { box-shadow: 0 0 0 1px var(--smd-line); }

/* Admin */
.smd--admin .smd-fieldset legend { font-size: 11px; }
.smd--admin .smd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smd--admin .smd-field--check { grid-column: auto; }
.wp-list-table .smd-badge { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.wp-list-table .smd-badge--ok { background: #e6f6f0; color: #137a52; }

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.smd-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.smd-hero { padding: 100px 0 90px; min-height: 0; }
	.smd-hero__inner { grid-template-columns: 1fr; gap: 40px; }
	.smd-hero__visual { min-height: 0; padding-bottom: 50px; }
	.smd-toast { right: 0; bottom: 0; }
	.smd-steps__list { grid-template-columns: 1fr; }
	.smd-steps__list::before { display: none; }
	.smd-ecg { height: 60px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
}
@media (max-width: 640px) {
	.smd-landing .smd-wrap, .smd-hero__inner { width: calc(100% - 32px); }
	.smd-grid, .smd--admin .smd-grid { grid-template-columns: 1fr; }
	.smd-why__grid { grid-template-columns: 1fr; }
	.smd-hero__cta .smd-btn { flex: 1 1 100%; }
	.smd-item { grid-template-columns: 1fr auto; grid-template-areas: "main date" "bar bar" "btn btn"; }
	.smd-item .smd-btn { justify-self: start; }
	.smd-card { padding: 20px 18px 14px; }
	.smd-card__head { flex-direction: column; }
	.smd-marquee li { font-size: 17px; padding: 0 24px; }
}

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
	.smd *, .smd *::before, .smd *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.smd .smd-anim, .smd .smd-device, .smd .smd-toast { opacity: 1; transform: none; filter: none; }
	.smd [data-reveal] { opacity: 1; transform: none; }
	.smd-ecg path { stroke-dashoffset: 0; }
	.smd-ecg__glow { display: none; }
	.smd-marquee__track { animation: none; }
}

/* Integrazione tema Sober: niente intestazione pagina sopra l'hero */
body:has(.smd-landing) .page-header { display: none !important; }
body:has(.smd-landing) .site-content { padding-top: 0 !important; padding-bottom: 0 !important; }
body:has(.smd-landing) .smd-hero { padding-top: 190px; }
@media (max-width: 991px) { body:has(.smd-landing) .smd-hero { padding-top: 110px; } }

/* Pulsante Google (Nextend Social Login) */
.smd-login__social { display: flex; justify-content: center; margin: 0 auto 22px; max-width: 400px; }
.smd-login__social:empty { display: none; }
.smd-login__social .nsl-container { width: 100%; }

/* Sezioni scure (blu notte): accenti in verde chiaro per il contrasto */
.smd-hero .smd-eyebrow, .smd-hh .smd-eyebrow, .smd-why .smd-eyebrow, .smd-band .smd-eyebrow, .smd-about .smd-eyebrow { color: #9ad677; }

/* Duplica */
.smd .smd-link--dup { display: inline-flex; align-items: center; gap: 5px; }
.smd .smd-link--dup svg, .smd-dup-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.smd-dup-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 22px; border-radius: 14px; background: rgba(58, 126, 34, .08); border: 1px solid rgba(58, 126, 34, .25); font-size: 14px; color: var(--smd-ink); }
.smd-dup-note svg { width: 20px; height: 20px; color: var(--smd-teal); margin-top: 1px; }
.smd .smd-notice__link { display: inline-block; margin-left: 6px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.smd-add__hint { text-align: center; max-width: 520px; margin: 12px auto 0 !important; }
.smd .smd-card__actions { flex-wrap: wrap; }
