/* Solumed – Nuova home (usa le variabili e i componenti di smd.css) */

.smd-home svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.smd-home .smd-btn svg { width: 18px; height: 18px; transition: transform .35s var(--smd-ease); }
.smd-home .smd-btn:hover svg { transform: translateX(3px); }
.smd-home h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; font-weight: 700; }
.smd-section__head--left { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; max-width: none; margin-bottom: 44px; }
.smd-section__head--left h2 { margin-top: 14px !important; }

/* ---------------- Hero ---------------- */
.smd-hh {
	position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
	padding: 200px 0 0; color: #fff; overflow: hidden; isolation: isolate; background: var(--smd-ink-3);
}
.smd-hh__media { position: absolute; inset: 0; z-index: -1; }
.smd-hh__img {
	position: absolute; inset: -12% 0; background-size: cover; background-position: center 30%;
	transform: scale(1.08); animation: smd-kenburns 18s ease-out forwards;
}
@keyframes smd-kenburns { to { transform: scale(1); } }
.smd-hh__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 7, 42, .94) 0%, rgba(5, 7, 42, .78) 45%, rgba(5, 7, 42, .35) 100%),
		linear-gradient(0deg, rgba(5, 7, 42, .95) 0%, transparent 40%);
}
.smd-hh .smd-orb { z-index: 1; mix-blend-mode: screen; }
.smd-hh__inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.smd-hh__title { font-size: clamp(42px, 7vw, 92px); line-height: 1.02; font-weight: 700; color: #fff !important; margin: 20px 0 26px !important; letter-spacing: -.03em; max-width: 900px; }
.smd-hh__lead { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .78); max-width: 600px; margin: 0 0 36px; }

/* Parole che salgono una alla volta */
.smd-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.smd-w > span { display: inline-block; transform: translateY(105%); animation: smd-word .9s var(--smd-ease) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes smd-word { to { transform: none; } }
.smd-gradient-text .smd-w > span { background: inherit; -webkit-background-clip: text; background-clip: text; }
.smd-hh__title .smd-gradient-text { animation: none; }
.smd-hh__title .smd-gradient-text .smd-w > span {
	background: linear-gradient(100deg, #c3f0a3 0%, #8fd16a 50%, #6fb84a 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.smd-ecg--hh { bottom: 96px; }
.smd-trust {
	list-style: none; margin: 70px 0 0; padding: 22px max(20px, calc((100% - 1180px) / 2));
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
	border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(5, 7, 42, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.smd-trust li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.smd-trust li b { color: #fff; font-weight: 600; display: block; }
.smd-trust svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(58, 126, 34, .16); color: #9ad677; }

/* ---------------- Categorie (bento) ---------------- */
.smd-cats { background: var(--smd-bg); }
.smd-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 18px; }
.smd-tile {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
	padding: 24px; border-radius: 22px; background: #fff; color: var(--smd-ink); text-decoration: none !important;
	box-shadow: 0 1px 0 var(--smd-line), 0 24px 50px -40px rgba(11, 15, 63, .45);
	transition: box-shadow .4s var(--smd-ease), opacity .9s var(--smd-ease), transform .9s var(--smd-ease);
}
.smd-tile::before {
	content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(58, 126, 34, .14), transparent 60%);
}
.smd-tile:hover { box-shadow: 0 1px 0 var(--smd-line), 0 34px 60px -30px rgba(11, 15, 63, .45); color: var(--smd-ink); }
.smd-tile:hover::before { opacity: 1; }
.smd-tile--big { grid-column: span 2; grid-row: span 2; background: var(--smd-ink); color: #fff; padding: 34px; }
.smd-tile--big:hover { color: #fff; }
.smd-tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(58, 126, 34, .12); color: var(--smd-teal); font-size: 26px; position: relative; z-index: 1; }
.smd-tile--big .smd-tile__icon { background: rgba(58, 126, 34, .2); color: #9ad677; }
.smd-tile__body { position: relative; z-index: 1; padding-right: 46px; }
.smd-tile--big .smd-tile__body { max-width: 52%; padding-right: 0; }
.smd-tile__body strong { font-family: var(--smd-font-head); display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.smd-tile--big .smd-tile__body strong { font-size: clamp(28px, 3vw, 40px); }
.smd-tile__body span { display: block; font-size: 14px; color: var(--smd-muted); margin-top: 4px; }
.smd-tile--big .smd-tile__body span { color: rgba(255, 255, 255, .65); font-size: 16px; max-width: 260px; }
.smd-tile__count { position: absolute; top: 26px; right: 26px; font-size: 12px; font-weight: 600; color: var(--smd-teal-dark); background: rgba(58, 126, 34, .1); padding: 4px 10px; border-radius: 999px; z-index: 1; }
.smd-tile--big .smd-tile__count { color: #9ad677; background: rgba(58, 126, 34, .18); }
.smd-tile__go { position: absolute; right: 22px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--smd-bg); color: var(--smd-ink); font-size: 18px; transition: transform .4s var(--smd-ease), background .3s, color .3s; z-index: 1; }
.smd-tile:hover .smd-tile__go { background: var(--smd-teal); color: #fff; transform: rotate(-45deg); }
.smd-tile--big .smd-tile__go { background: rgba(255, 255, 255, .1); color: #fff; }
.smd-tile__img {
	position: absolute; right: 5%; top: 50%; margin-top: -24%; width: 44%; max-width: 300px; aspect-ratio: 1; object-fit: cover; height: auto; border-radius: 24px;
	mix-blend-mode: normal; opacity: .95; transform: rotate(-6deg); transition: transform .8s var(--smd-ease);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.smd-tile--big:hover .smd-tile__img { transform: rotate(-2deg) scale(1.04); }
.smd-tile--big .smd-tile__go { right: 34px; bottom: 34px; }

/* ---------------- Carosello prodotti ---------------- */
.smd-products { background: #fff; }
.smd-carousel__nav { display: flex; gap: 10px; }
.smd-round {
	width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--smd-line); background: #fff; color: var(--smd-ink);
	display: grid; place-items: center; cursor: pointer; font-size: 20px; padding: 0; transition: all .3s var(--smd-ease);
}
.smd-round:hover:not(:disabled) { background: var(--smd-teal); border-color: var(--smd-teal); color: #fff; transform: scale(1.06); }
.smd-round:disabled { opacity: .35; cursor: default; }
.smd-carousel {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 30px; margin: -6px -4px 0;
	scrollbar-width: none; overscroll-behavior-x: contain;
}
.smd-carousel::-webkit-scrollbar { display: none; }
.smd-carousel:focus-visible { outline: 3px solid rgba(58, 126, 34, .4); border-radius: 12px; }
.smd-carousel.is-drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.smd-carousel.is-drag a { pointer-events: none; }
.smd-pcard {
	scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--smd-bg);
	color: var(--smd-ink); text-decoration: none !important; position: relative;
	transition: box-shadow .4s var(--smd-ease), transform .5s var(--smd-ease), opacity .9s var(--smd-ease);
}
.smd-pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11, 15, 63, .45); color: var(--smd-ink); }
.smd-pcard__media { aspect-ratio: 1; display: grid; place-items: center; background: #fff; margin: 10px; border-radius: 16px; overflow: hidden; }
.smd-pcard__media img, .smd-pcard__img { width: 82% !important; height: 82% !important; object-fit: contain; transition: transform .7s var(--smd-ease); margin: 0 !important; }
.smd-pcard:hover .smd-pcard__media img { transform: scale(1.07); }
.smd-pcard__body { padding: 8px 20px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.smd-pcard__name { font-family: var(--smd-font-head); font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.smd-pcard__price { font-size: 15px; color: var(--smd-teal-dark); font-weight: 600; }
.smd-pcard__price del { color: var(--smd-muted); font-weight: 400; margin-right: 6px; }
.smd-pcard__price ins { text-decoration: none; }
.smd-pcard__cta { display: flex; align-items: center; gap: 8px; padding: 12px 20px 20px; font-size: 14px; font-weight: 600; color: var(--smd-teal-dark); }
.smd-pcard__cta svg { transition: transform .35s var(--smd-ease); }
.smd-pcard:hover .smd-pcard__cta svg { transform: translateX(4px); }

/* ---------------- Banda Registro DAE ---------------- */
.smd-band { background: var(--smd-ink-2); color: #fff; overflow: hidden; isolation: isolate; }
.smd-band__bg { position: absolute; inset: -30% -10%; z-index: -1; background: radial-gradient(40% 50% at 80% 50%, rgba(58, 126, 34, .32), transparent 70%), radial-gradient(30% 40% at 10% 80%, rgba(28, 42, 140, .4), transparent 70%); }
.smd-ecg--band { bottom: 0; height: 80px; opacity: .4; }
.smd-band.is-in .smd-ecg__path, .smd-band .smd-ecg__path { animation: smd-draw 3s var(--smd-ease) .3s forwards; }
.smd-band__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.smd-band h2 { color: #fff; margin: 14px 0 18px !important; }
.smd-band p { color: rgba(255, 255, 255, .7); font-size: 17px; max-width: 540px; margin: 0 0 30px; }
.smd-band__card {
	padding: 22px; border-radius: 24px; display: grid; gap: 10px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.smd-band__mail { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; color: var(--smd-ink); margin-top: 6px; animation: smd-bob 4s ease-in-out infinite; }
.smd-band__mail svg { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(58, 126, 34, .12); color: var(--smd-teal); }
.smd-band__mail b { display: block; font-size: 14px; }
.smd-band__mail small { display: block; font-size: 12.5px; color: var(--smd-muted); }
@keyframes smd-bob { 50% { transform: translateY(-6px); } }

/* ---------------- Formazione (split) ---------------- */
.smd-split { background: var(--smd-bg); }
.smd-split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.smd-split__media { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(11, 15, 63, .55); }
.smd-split__img { position: absolute; inset: -10% 0; background-size: cover; background-position: center; transition: transform 1.2s var(--smd-ease); }
.smd-split__media:hover .smd-split__img { transform: scale(1.04); }
.smd-split__badge {
	position: absolute; left: 22px; bottom: 22px; display: flex; gap: 12px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 16px;
	background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.smd-split__badge svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #c8102e; color: #fff; }
.smd-split__badge b { display: block; font-size: 14px; }
.smd-split__badge small { display: block; font-size: 12.5px; color: var(--smd-muted); }
.smd-split__copy h2 { margin: 14px 0 18px !important; }
.smd-split__copy p { color: var(--smd-muted); font-size: 17px; margin: 0 0 24px; }
.smd-chips { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.smd-chips li { margin: 0; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--smd-line); font-size: 14px; font-weight: 600; transition: all .3s var(--smd-ease); }
.smd-chips li:hover { border-color: var(--smd-teal); color: var(--smd-teal-dark); transform: translateY(-2px); }
.smd-split__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Numeri ---------------- */
.smd-stats { background: var(--smd-ink); color: #fff; padding: 70px 0; }
.smd-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.smd-stats__grid > div { padding: 0 10px; border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 24px; }
.smd-stats strong { font-family: var(--smd-font-head); display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
	background: linear-gradient(180deg, #fff 30%, #9ad677); -webkit-background-clip: text; background-clip: text; color: transparent; }
.smd-stats span { display: block; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.smd-home .smd-marquee { border-top: 0; }

/* ---------------- Chi siamo ---------------- */
.smd-about { color: #fff; overflow: hidden; isolation: isolate; min-height: 620px; display: flex; align-items: center; }
.smd-about__bg { position: absolute; inset: -20% 0; z-index: -2; background-size: cover; background-position: center; }
.smd-about::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 7, 42, .92), rgba(5, 7, 42, .55)); }
.smd-about__inner { max-width: 1180px; }
.smd-about h2 { color: #fff; margin: 14px 0 20px !important; max-width: 760px; }
.smd-about p { color: rgba(255, 255, 255, .75); font-size: 18px; max-width: 600px; margin: 0 0 30px; }

/* ---------------- News ---------------- */
.smd-news { background: #fff; }
.smd-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.smd-post { display: flex; flex-direction: column; gap: 10px; text-decoration: none !important; color: var(--smd-ink); transition: opacity .9s var(--smd-ease), transform .9s var(--smd-ease); }
.smd-post:hover { color: var(--smd-ink); }
.smd-post__media { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--smd-ink) 0%, #1f3d7a 100%); display: grid; place-items: center; margin-bottom: 6px; position: relative; }
.smd-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--smd-ease); }
.smd-post:hover .smd-post__media img { transform: scale(1.05); }
.smd-post__ph { color: rgba(111, 227, 216, .7); font-size: 64px; transition: transform .8s var(--smd-ease); }
.smd-post:hover .smd-post__ph { transform: scale(1.12); }
.smd-post__date { font-size: 13px; color: var(--smd-muted); }
.smd-post__title { font-family: var(--smd-font-head); font-size: 19px; font-weight: 700; line-height: 1.3; }
.smd-post__more { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--smd-teal-dark); }

/* ---------------- CTA finale ---------------- */
.smd-cta { background: #fff; padding-top: 20px; }
.smd-cta__box {
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
	padding: clamp(32px, 5vw, 60px); border-radius: 30px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(120deg, #2e6a19 0%, #3a7e22 50%, #7cc35a 100%);
}
.smd-cta__box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .25), transparent 60%); }
.smd-cta__box h2 { color: #fff; font-size: clamp(26px, 3vw, 38px) !important; margin: 0 0 8px !important; }
.smd-cta__box p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 17px; max-width: 560px; }
.smd-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.smd .smd-btn--wa { background: #fff; color: #128c4b; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4); }
.smd .smd-btn--wa:hover { background: #f2fff7; color: #0d7a40; }
.smd .smd-btn--wa svg { width: 22px; height: 22px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
	.smd-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
	.smd-carousel { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
	.smd-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.smd-hh { padding-top: 130px; min-height: 0; }
	.smd-band__inner, .smd-split__inner { grid-template-columns: 1fr; gap: 40px; }
	.smd-split__media { aspect-ratio: 4 / 3; }
	.smd-stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.smd-news__grid { grid-template-columns: 1fr; }
	.smd-ecg--hh { bottom: 150px; }
}
@media (max-width: 640px) {
	.smd-section__head--left { flex-direction: column; align-items: flex-start; }
	.smd-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.smd-tile { min-height: 150px; }
	.smd-tile--big { grid-column: auto; grid-row: auto; min-height: 340px; }
	.smd-tile__img { width: 46%; right: 6%; top: 28px; margin-top: 0; }
	.smd-tile--big .smd-tile__body { max-width: 100%; }
	.smd-carousel { grid-auto-columns: 78%; }
	.smd-trust { grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; padding: 18px 16px; }
	.smd-trust li { font-size: 12.5px; gap: 8px; }
	.smd-trust svg { width: 30px; height: 30px; padding: 6px; }
	.smd-cta__btns .smd-btn { flex: 1 1 100%; }
	.smd-about { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.smd-w > span { transform: none; }
	.smd-hh__img { animation: none; transform: none; }
}
