/* Tecno-Motori Home V3 — ritmo editoriale variabile, mobile-first */
:root {
	--v3-ink: #101114;
	--v3-navy: #111722;
	--v3-slate: #202938;
	--v3-paper: #f7f7f5;
	--v3-soft: #eceeeb;
	--v3-line: #dfe2df;
	--v3-red: #c9141b;
	--v3-lime: #c7f000;
	--v3-cyan: #27d8e8;
	--v3-shell: 1280px;
	--v3-radius: 18px;
	--v3-shadow: 0 18px 50px rgba(17, 23, 34, 0.12);
}

body.home .tm-header__secondary {
	background: #171717;
	border-top: 1px solid #2b2b2b;
}

body.home .tm-nav--secondary a {
	display: block;
	padding: 0.45rem 0.65rem;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

body.home .tm-footer__copy a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.tm-home-v3 {
	background: var(--v3-paper);
	color: var(--v3-ink);
	overflow: clip;
}

.tm-home-v3 * {
	box-sizing: border-box;
}

.tmv3-shell {
	width: min(calc(100% - 32px), var(--v3-shell));
	margin-inline: auto;
}

.tmv3-cover,
.tm-home-v3 .tm-placeholder-img,
.tm-home-v3 .tm-placeholder-img svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.tm-home-v3 figure {
	width: 100%;
	max-width: 100%;
}

.tmv3-side-story,
.tmv3-feed-card,
.tmv3-electric__rail article,
.tmv3-bento__item,
.tmv3-discover__rail article {
	min-width: 0;
}

.tmv3-eyebrow,
.tmv3-section-head > div > span,
.tmv3-electric__head > div > span,
.tmv3-tech__head > div > span,
.tmv3-discover__head > span {
	display: block;
	margin: 0 0 8px;
	color: var(--v3-red);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Hero */
.tmv3-hero {
	padding: 34px 0 28px;
	background:
		radial-gradient(circle at 82% 8%, rgba(237, 28, 36, 0.09), transparent 28%),
		var(--v3-paper);
}

.tmv3-intro {
	display: grid;
	gap: 18px;
	align-items: end;
	margin-bottom: 26px;
}

.tmv3-intro h1 {
	max-width: 850px;
	margin: 0;
	font-size: clamp(2.1rem, 7vw, 5.1rem);
	font-weight: 850;
	line-height: 0.96;
	letter-spacing: -0.038em;
	text-wrap: balance;
}

.tmv3-intro__copy {
	max-width: 390px;
	margin: 0;
	color: #62666d;
	font-size: 1rem;
	line-height: 1.55;
}

.tmv3-hero__layout {
	display: grid;
	gap: 14px;
}

.tmv3-lead {
	position: relative;
	min-height: 430px;
	overflow: hidden;
	border-radius: var(--v3-radius);
	background: var(--v3-navy);
	box-shadow: var(--v3-shadow);
}

.tmv3-lead__link {
	display: block;
	height: 100%;
	color: #fff;
}

.tmv3-lead__media {
	position: absolute;
	inset: 0;
	margin: 0;
}

.tmv3-lead__media::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, rgba(4, 7, 12, 0.03) 15%, rgba(5, 8, 13, 0.92) 100%);
}

.tmv3-lead__content {
	position: absolute;
	z-index: 1;
	inset-inline: 0;
	bottom: 0;
	padding: 28px 24px;
}

.tmv3-tag {
	display: inline-flex;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--v3-red);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tmv3-lead h2 {
	max-width: 760px;
	margin: 12px 0 8px;
	color: #fff;
	font-size: clamp(1.7rem, 5vw, 3.2rem);
	font-weight: 820;
	line-height: 1.03;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.tmv3-lead__content > p {
	display: none;
	max-width: 650px;
	margin: 0 0 12px;
	color: #d6dae2;
}

.tmv3-byline {
	color: #c1c7d1;
	font-size: 0.76rem;
}

.tmv3-hero__side {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.tmv3-side-story {
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--v3-line);
}

.tmv3-side-story > a {
	display: block;
	height: 100%;
	color: var(--v3-ink);
}

.tmv3-side-story figure {
	height: 140px;
	margin: 0;
	overflow: hidden;
}

.tmv3-side-story figure img {
	transition: transform 250ms ease;
}

.tmv3-side-story:hover figure img {
	transform: scale(1.04);
}

.tmv3-side-story > a > div {
	padding: 14px;
}

.tmv3-side-story h2 {
	margin: 9px 0 0;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.tmv3-headlines {
	grid-column: 1 / -1;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--v3-line);
}

.tmv3-headlines article {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 10px;
	align-items: start;
	padding: 13px 0;
	border-bottom: 1px solid var(--v3-line);
}

.tmv3-headlines article > span {
	color: var(--v3-red);
	font-size: 0.68rem;
	font-weight: 850;
}

.tmv3-headlines a {
	color: var(--v3-ink);
	font-size: 0.9rem;
	font-weight: 720;
	line-height: 1.28;
}

/* Pulse */
.tmv3-pulse {
	border-block: 1px solid #2d3440;
	background: var(--v3-navy);
	color: #fff;
}

.tmv3-pulse__inner {
	display: flex;
	gap: 18px;
	align-items: center;
	min-height: 52px;
	overflow: hidden;
}

.tmv3-pulse strong {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tmv3-pulse strong > span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--v3-red);
	box-shadow: 0 0 0 5px rgba(237, 28, 36, 0.18);
}

.tmv3-pulse__track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
}

.tmv3-pulse__track::-webkit-scrollbar {
	display: none;
}

.tmv3-pulse__track a {
	display: flex;
	flex: 0 0 min(78vw, 420px);
	gap: 10px;
	align-items: baseline;
	color: #f3f5f7;
	font-size: 0.82rem;
	scroll-snap-align: start;
}

.tmv3-pulse__track time {
	color: var(--v3-lime);
	font-size: 0.68rem;
	font-weight: 850;
}

/* Shared section */
.tmv3-section {
	padding: 64px 0;
}

.tmv3-section-head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
}

.tmv3-section-head h2,
.tmv3-electric__head h2,
.tmv3-tech__head h2,
.tmv3-discover__head h2 {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.8rem);
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.tmv3-section-head > a,
.tmv3-electric__head > a,
.tmv3-tech__head > a {
	color: var(--v3-ink);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* News stream */
.tmv3-stream {
	background: #fff;
}

.tmv3-stream__layout {
	display: grid;
	gap: 32px;
}

.tmv3-stream__feed {
	display: grid;
	gap: 0;
}

.tmv3-stream__rail {
	display: grid;
	gap: 16px;
	align-self: start;
}

.tmv3-feed-card {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 15px;
	padding: 18px 0;
	border-bottom: 1px solid var(--v3-line);
}

.tmv3-feed-card__media {
	display: block;
	height: 92px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--v3-soft);
}

.tmv3-feed-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 5px;
	font-size: 0.68rem;
}

.tmv3-feed-card__meta a {
	color: var(--v3-red);
	font-weight: 850;
	text-transform: uppercase;
}

.tmv3-feed-card__meta time {
	color: #656a72;
}

.tmv3-feed-card h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.22;
	letter-spacing: -0.025em;
}

.tmv3-feed-card h3 a {
	color: var(--v3-ink);
}

.tmv3-feed-card p {
	display: none;
	margin: 8px 0 0;
	color: #6a6f76;
}

.tmv3-ranking {
	align-self: start;
	overflow: hidden;
	border-radius: var(--v3-radius);
	background: var(--v3-paper);
	border: 1px solid var(--v3-line);
}

.tmv3-ranking__head {
	padding: 22px;
	background: var(--v3-navy);
	color: #fff;
}

.tmv3-ranking__head > span {
	color: var(--v3-lime);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tmv3-ranking__head h2 {
	margin: 3px 0 0;
	color: #fff;
	font-size: 1.7rem;
	letter-spacing: -0.04em;
}

.tmv3-ranking ol {
	margin: 0;
	padding: 8px 20px 16px;
	list-style: none;
}

.tmv3-ranking li {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 9px;
	padding: 16px 0;
	border-bottom: 1px solid var(--v3-line);
}

.tmv3-ranking li:last-child {
	border-bottom: 0;
}

.tmv3-ranking li > span {
	color: var(--v3-red);
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1;
}

.tmv3-ranking li a {
	color: var(--v3-ink);
	font-size: 0.92rem;
	font-weight: 740;
	line-height: 1.25;
}

.tmv3-ranking li time {
	display: block;
	margin-top: 5px;
	color: #656a72;
	font-size: 0.68rem;
}

.tmv3-topic-box {
	padding: 20px;
	border: 1px solid var(--v3-line);
	border-radius: var(--v3-radius);
	background: #fff;
}

.tmv3-topic-box > span {
	color: var(--v3-red);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tmv3-topic-box h2 {
	margin: 3px 0 13px;
	color: var(--v3-ink);
	font-size: 1.45rem;
	line-height: 1;
	letter-spacing: -0.04em;
}

.tmv3-topic-box ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmv3-topic-box a {
	display: flex;
	gap: 7px;
	align-items: center;
	justify-content: space-between;
	min-height: 39px;
	padding: 8px 10px;
	border: 1px solid var(--v3-line);
	border-radius: 9px;
	background: var(--v3-paper);
	color: var(--v3-ink);
	font-size: 0.74rem;
	font-weight: 760;
}

.tmv3-topic-box small {
	color: #676d75;
	font-size: 0.65rem;
}

/* Electric immersion */
.tmv3-electric {
	position: relative;
	padding: 72px 0;
	overflow: hidden;
	background: var(--v3-navy);
	color: #fff;
}

.tmv3-electric__glow {
	position: absolute;
	top: -230px;
	right: -130px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(39, 216, 232, 0.24), transparent 66%);
	pointer-events: none;
}

.tmv3-electric__head,
.tmv3-tech__head {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 28px;
}

.tmv3-electric__head > div > span {
	color: var(--v3-cyan);
}

.tmv3-electric__head h2 {
	color: #fff;
}

.tmv3-electric__head > a {
	color: var(--v3-cyan);
}

.tmv3-electric__layout {
	position: relative;
	display: grid;
	gap: 16px;
}

.tmv3-electric__lead {
	overflow: hidden;
	border-radius: var(--v3-radius);
	background: var(--v3-slate);
}

.tmv3-electric__lead > a {
	display: grid;
	color: #fff;
}

.tmv3-electric__lead figure {
	height: 270px;
	margin: 0;
}

.tmv3-electric__lead > a > div {
	padding: 23px;
}

.tmv3-electric__label {
	color: var(--v3-cyan);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tmv3-electric__lead h3 {
	margin: 9px 0;
	color: #fff;
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	line-height: 1.06;
	letter-spacing: -0.04em;
}

.tmv3-electric__lead p {
	margin: 0;
	color: #e1e6ee;
}

.tmv3-electric__rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(235px, 78%);
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
}

.tmv3-electric__rail article {
	overflow: hidden;
	border: 1px solid #354154;
	border-radius: 14px;
	background: #192130;
	scroll-snap-align: start;
}

.tmv3-electric__rail a {
	display: block;
	padding-bottom: 14px;
	color: #fff;
}

.tmv3-electric__rail figure {
	height: 145px;
	margin: 0 0 13px;
}

.tmv3-electric__rail h3 {
	margin: 0 14px 8px;
	color: #fff;
	font-size: 0.98rem;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.tmv3-electric__rail time {
	margin-inline: 14px;
	color: #c6cfdd;
	font-size: 0.68rem;
}

/* Auto bento */
.tmv3-auto {
	background: var(--v3-paper);
}

.tmv3-bento {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: stretch;
}

.tmv3-bento__item {
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--v3-line);
}

.tmv3-bento__item > a {
	display: block;
	height: 100%;
	color: var(--v3-ink);
}

.tmv3-bento__item figure {
	height: 130px;
	margin: 0;
	overflow: hidden;
}

.tmv3-bento__item > a > div {
	padding: 13px;
}

.tmv3-bento__item span {
	color: var(--v3-red);
	font-size: 0.66rem;
	font-weight: 800;
}

.tmv3-bento__item h3 {
	margin: 5px 0 0;
	font-size: 0.95rem;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.tmv3-bento__item p {
	margin: 8px 0 0;
	color: #6b7078;
}

.tmv3-bento__item--hero {
	grid-column: 1 / -1;
}

.tmv3-bento__item--hero figure {
	height: 300px;
}

.tmv3-bento__item--hero h3 {
	font-size: clamp(1.5rem, 5vw, 2.45rem);
	line-height: 1.05;
}

.tmv3-bento__item--wide {
	grid-column: span 1;
}

/* Tech laboratory */
.tmv3-tech {
	padding: 72px 0;
	background: #eef1f3;
}

.tmv3-tech__layout {
	display: grid;
	gap: 20px;
}

.tmv3-tech__lead {
	overflow: hidden;
	border-radius: var(--v3-radius);
	background: #fff;
	box-shadow: var(--v3-shadow);
}

.tmv3-tech__lead > a {
	display: block;
	color: var(--v3-ink);
}

.tmv3-tech__lead figure {
	height: 280px;
	margin: 0;
}

.tmv3-tech__lead > a > div {
	padding: 22px;
}

.tmv3-tech__lead span {
	color: #0057c2;
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tmv3-tech__lead h3 {
	margin: 8px 0;
	font-size: clamp(1.5rem, 5vw, 2.4rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.tmv3-tech__lead p {
	margin: 0;
	color: #656b73;
}

.tmv3-tech__list {
	border-top: 1px solid #cfd4d9;
}

.tmv3-tech__list article {
	display: grid;
	grid-template-columns: 34px 1fr 28px;
	gap: 10px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #cfd4d9;
}

.tmv3-tech__list article > span {
	color: #0057c2;
	font-size: 0.7rem;
	font-weight: 900;
}

.tmv3-tech__list h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
}

.tmv3-tech__list h3 a {
	color: var(--v3-ink);
}

.tmv3-tech__list p {
	display: none;
	margin: 5px 0 0;
	color: #6b7178;
	font-size: 0.82rem;
}

.tmv3-tech__arrow {
	color: #006eff;
	font-weight: 900;
}

/* Guides: text-led */
.tmv3-guides {
	background: #fff;
}

.tmv3-guides .tmv3-section-head > p {
	max-width: 360px;
	margin: 0;
	color: #666c73;
}

.tmv3-guides__grid {
	display: grid;
	gap: 13px;
}

.tmv3-guide-column {
	padding: 20px;
	border: 1px solid var(--v3-line);
	border-radius: 14px;
	background: var(--v3-paper);
}

.tmv3-guide-column > header {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--v3-ink);
}

.tmv3-guide-column > header > span {
	color: var(--v3-red);
	font-size: 0.7rem;
	font-weight: 900;
}

.tmv3-guide-column h3 {
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: -0.035em;
}

.tmv3-guide-column h3 a {
	color: var(--v3-ink);
}

.tmv3-guide-column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmv3-guide-column li {
	padding: 15px 0;
	border-bottom: 1px solid var(--v3-line);
}

.tmv3-guide-column li:last-child {
	border-bottom: 0;
}

.tmv3-guide-column li a {
	display: block;
	color: var(--v3-ink);
	font-weight: 720;
	line-height: 1.25;
}

.tmv3-guide-column li time {
	display: block;
	margin-top: 6px;
	color: #656a72;
	font-size: 0.67rem;
}

/* Discover closing canvas */
.tmv3-discover {
	padding: 68px 0 80px;
	background: #15171a;
	color: #fff;
}

.tmv3-discover__head {
	max-width: 820px;
	margin-bottom: 34px;
}

.tmv3-discover__head > span {
	color: #ff716c;
}

.tmv3-discover__head h2,
.tmv3-discover__group > header h3,
.tmv3-discover__rail h4 {
	color: #fff;
}

.tmv3-discover__group {
	margin-top: 36px;
}

.tmv3-discover__group > header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #383b40;
}

.tmv3-discover__group > header h3 {
	margin: 0;
	font-size: 1.25rem;
}

.tmv3-discover__group > header a {
	color: var(--v3-lime);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.tmv3-discover__rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(235px, 78%);
	gap: 13px;
	overflow-x: auto;
	padding: 16px 0 8px;
	scroll-snap-type: x mandatory;
	align-items: stretch;
}

.tmv3-discover__rail article {
	scroll-snap-align: start;
}

.tmv3-discover__rail a {
	display: block;
	color: #fff;
}

.tmv3-discover__rail figure {
	height: 170px;
	margin: 0 0 12px;
	overflow: hidden;
	border-radius: 12px;
}

.tmv3-discover__rail article > a > div > span {
	color: #c3c8d0;
	font-size: 0.67rem;
}

.tmv3-discover__rail h4 {
	margin: 5px 0 0;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* Hover states */
@media (hover: hover) {
	.tmv3-side-story:hover,
	.tmv3-bento__item:hover,
	.tmv3-guide-column:hover {
		transform: translateY(-3px);
		box-shadow: var(--v3-shadow);
	}

	.tmv3-side-story,
	.tmv3-bento__item,
	.tmv3-guide-column {
		transition: transform 180ms ease, box-shadow 180ms ease;
	}

	.tmv3-feed-card h3 a:hover,
	.tmv3-ranking li a:hover,
	.tmv3-tech__list h3 a:hover,
	.tmv3-guide-column li a:hover {
		color: var(--v3-red);
	}
}

@media (min-width: 640px) {
	.tmv3-lead__content > p {
		display: block;
	}

	.tmv3-side-story figure {
		height: 180px;
	}

	.tmv3-feed-card {
		grid-template-columns: 180px minmax(0, 1fr);
	}

	.tmv3-feed-card__media {
		height: 120px;
	}

	.tmv3-feed-card--lead {
		grid-template-columns: minmax(250px, 42%) 1fr;
	}

	.tmv3-feed-card--lead .tmv3-feed-card__media {
		height: 230px;
	}

	.tmv3-feed-card--lead h3 {
		font-size: 1.65rem;
		line-height: 1.08;
	}

	.tmv3-feed-card p {
		display: block;
	}

	.tmv3-electric__rail,
	.tmv3-discover__rail {
		grid-auto-columns: minmax(235px, 42%);
	}

	.tmv3-guides__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.tmv3-intro {
		grid-template-columns: minmax(0, 1fr) 350px;
	}

	.tmv3-section-head,
	.tmv3-electric__head,
	.tmv3-tech__head {
		flex-direction: row;
		align-items: end;
		justify-content: space-between;
	}

	.tmv3-stream__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
	}

	.tmv3-stream__rail {
		position: sticky;
		top: 88px;
	}

	.tmv3-electric__layout {
		grid-template-columns: 1.15fr 1fr;
	}

	.tmv3-electric__lead > a {
		height: 100%;
	}

	.tmv3-electric__lead figure {
		height: 360px;
	}

	.tmv3-electric__rail {
		grid-auto-flow: unset;
		grid-template-columns: 1fr 1fr;
		overflow: visible;
	}

	.tmv3-bento {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: minmax(170px, auto);
	}

	.tmv3-bento__item--hero {
		grid-column: span 2;
		grid-row: span 2;
	}

	.tmv3-bento__item--hero figure {
		height: 370px;
	}

	.tmv3-bento__item--wide {
		grid-column: span 2;
	}

	.tmv3-bento__item--wide > a {
		display: grid;
		grid-template-columns: 46% 1fr;
	}

	.tmv3-bento__item--wide figure {
		height: 100%;
	}

	.tmv3-tech__layout {
		grid-template-columns: 1.08fr 0.92fr;
	}

	.tmv3-tech__lead figure {
		height: 420px;
	}

	.tmv3-tech__list p {
		display: block;
	}

	.tmv3-discover__rail {
		grid-auto-flow: unset;
		grid-template-columns: 1.5fr repeat(3, 1fr);
		overflow: visible;
	}

	.tmv3-discover__group--reverse .tmv3-discover__rail {
		grid-template-columns: repeat(3, 1fr) 1.5fr;
	}

	.tmv3-discover__group--reverse .is-featured {
		order: 4;
	}

	.tmv3-discover__rail .is-featured figure {
		height: 290px;
	}
}

@media (min-width: 1100px) {
	.tmv3-hero__layout {
		grid-template-columns: minmax(0, 1.65fr) minmax(380px, 0.85fr);
	}

	.tmv3-lead {
		min-height: 620px;
	}

	.tmv3-hero__side {
		grid-template-columns: 1fr 1fr;
		align-content: start;
	}

	.tmv3-side-story figure {
		height: 175px;
	}
}

@media (max-width: 899px) {
	body.home .tm-header__secondary {
		display: none;
	}
}

/* V4 visual polish */
body.home .tm-header__logo {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
}

body.home .tm-header__logo img {
	max-height: 34px;
}

.tmv3-hero {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 247, 244, 0.96)),
		radial-gradient(circle at 82% 8%, rgba(201, 20, 27, 0.15), transparent 31%);
}

.tmv3-channel-nav {
	display: flex;
	gap: 13px;
	align-items: center;
	margin: -6px 0 24px;
	padding: 9px;
	overflow: hidden;
	border: 1px solid rgba(17, 23, 34, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 10px 35px rgba(17, 23, 34, 0.07);
	backdrop-filter: blur(10px);
}

.tmv3-channel-nav > span {
	flex: 0 0 auto;
	padding-inline: 8px 4px;
	color: #9f0d14;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tmv3-channel-nav ul {
	display: flex;
	gap: 7px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.tmv3-channel-nav ul::-webkit-scrollbar {
	display: none;
}

.tmv3-channel-nav li {
	flex: 0 0 auto;
}

.tmv3-channel-nav a {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 36px;
	padding: 7px 11px;
	border-radius: 9px;
	background: #f0f2f2;
	color: #1b2027;
	font-size: 0.76rem;
	font-weight: 780;
}

.tmv3-channel-nav small {
	display: inline-grid;
	min-width: 22px;
	height: 22px;
	padding-inline: 4px;
	place-items: center;
	border-radius: 999px;
	background: #fff;
	color: #666d75;
	font-size: 0.62rem;
}

.tmv3-lead {
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(11, 16, 24, 0.22);
}

.tmv3-lead__media::after {
	background:
		linear-gradient(90deg, rgba(5, 8, 13, 0.52), transparent 56%),
		linear-gradient(180deg, transparent 22%, rgba(5, 8, 13, 0.94) 100%);
}

.tmv3-lead__content {
	padding: clamp(24px, 4vw, 46px);
}

.tmv3-lead__footer {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
}

.tmv3-lead__cta {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tmv3-side-story {
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(17, 23, 34, 0.07);
}

.tmv3-section-head {
	padding-bottom: 17px;
	border-bottom: 1px solid #d8dcda;
}

.tmv3-section-head > a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 11px;
	border: 1px solid #d5d9dd;
	border-radius: 999px;
	background: #fff;
}

.tmv3-feed-card--lead {
	margin-bottom: 8px;
	padding: 0 0 22px;
}

.tmv3-feed-card--lead .tmv3-feed-card__media {
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(17, 23, 34, 0.1);
}

.tmv3-ranking,
.tmv3-topic-box {
	box-shadow: 0 14px 42px rgba(17, 23, 34, 0.08);
}

.tmv3-electric {
	background:
		linear-gradient(145deg, #0d131d 0%, #121c2c 58%, #102834 100%);
}

.tmv3-electric__lead,
.tmv3-electric__rail article {
	border-radius: 18px;
}

.tmv3-electric__lead {
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.26);
}

.tmv3-bento__item {
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(17, 23, 34, 0.07);
}

.tmv3-bento__item--hero {
	min-height: 430px;
	border: 0;
	background: #111722;
}

.tmv3-bento__item--hero > a {
	position: relative;
	min-height: 100%;
	overflow: hidden;
}

.tmv3-bento__item--hero > a::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, transparent 24%, rgba(7, 10, 15, 0.94) 100%);
}

.tmv3-bento__item--hero figure {
	position: absolute;
	inset: 0;
	height: 100%;
}

.tmv3-bento__item--hero > a > div {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	padding: clamp(20px, 3vw, 32px);
}

.tmv3-bento__item--hero span {
	color: #ff706a;
}

.tmv3-bento__item--hero h3 {
	color: #fff;
}

.tmv3-bento__item--hero p {
	color: #d5dbe4;
}

.tmv3-tech__lead {
	border-radius: 22px;
}

.tmv3-guide-column {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: linear-gradient(145deg, #fff, #f3f5f4);
}

.tmv3-guide-column::after {
	position: absolute;
	top: -38px;
	right: -35px;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: rgba(201, 20, 27, 0.055);
	content: "";
	pointer-events: none;
}

.tmv3-discover {
	background:
		radial-gradient(circle at 10% 5%, rgba(199, 240, 0, 0.07), transparent 24%),
		#111419;
}

.tmv3-discover__rail figure {
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
}

@media (hover: hover) {
	.tmv3-channel-nav a:hover {
		background: #171c23;
		color: #fff;
	}

	.tmv3-lead:hover .tmv3-cover {
		transform: scale(1.018);
	}

	.tmv3-lead .tmv3-cover {
		transition: transform 420ms ease;
	}
}

@media (min-width: 900px) {
	.tmv3-bento__item--hero {
		min-height: 500px;
	}
}

@media (max-width: 639px) {
	.tmv3-channel-nav {
		margin-inline: -4px;
	}

	.tmv3-channel-nav small {
		display: none;
	}

	.tmv3-lead {
		border-radius: 18px;
	}

	.tmv3-lead__cta {
		display: none;
	}
}

/* Contrasto rinforzato per tutte le superfici scure */
.tmv3-pulse,
.tmv3-pulse a,
.tmv3-pulse strong {
	color: #fff;
}

.tmv3-ranking__head,
.tmv3-ranking__head h2 {
	color: #fff;
}

.tmv3-electric h2,
.tmv3-electric h3,
.tmv3-electric__lead h3,
.tmv3-electric__rail h3 {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tmv3-electric__lead p,
.tmv3-electric__rail time {
	color: #eef2f7;
}

.tmv3-electric__rail a,
.tmv3-electric__lead a {
	color: #fff;
}

.tmv3-electric__head > a,
.tmv3-electric__head > div > span {
	color: #68f1ff;
}

.tmv3-bento__item--hero h3,
.tmv3-bento__item--hero p,
.tmv3-bento__item--hero a {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.tmv3-discover,
.tmv3-discover h2,
.tmv3-discover h3,
.tmv3-discover h4,
.tmv3-discover__rail a {
	color: #fff;
}

.tmv3-discover__rail article > a > div > span {
	color: #e2e6eb;
}

.tmv3-discover__group > header a {
	color: #d9ff36;
}

@media (prefers-reduced-motion: reduce) {
	.tmv3-side-story,
	.tmv3-bento__item,
	.tmv3-guide-column,
	.tmv3-cover {
		transition: none !important;
		transform: none !important;
	}
}
