/*
 * TeleNews — a technical field journal inside the established Telecom Security system.
 * THESIS: projects read as a considered sequence, never as a generic card grid.
 * OWN-WORLD: white technical paper, graphite type, navy field and one orange signal.
 * STORY: establish the editorial purpose, lead with a compact newest project, then use a stable report grid.
 * FIRST VIEWPORT: compact title field with a numbered signal at the right edge.
 * FORM: compact featured split followed by a consistent three-column report grid.
 */

.ts-telenews,
.ts-news-single {
	--news-ink: var(--ts-graphite-950, #0b111b);
	--news-navy: var(--ts-graphite-900, #141e2b);
	--news-muted: var(--ts-color-text-muted, #596b80);
	--news-line: var(--ts-line, #dce1e5);
	--news-signal: var(--ts-signal, #ed5909);
	background: #fff;
	color: var(--news-ink);
	overflow: clip;
}

.ts-telenews *,
.ts-telenews *::before,
.ts-telenews *::after,
.ts-news-single *,
.ts-news-single *::before,
.ts-news-single *::after { box-sizing: border-box; }

.ts-telenews :is(h1,h2,h3,p,figure),
.ts-news-single :is(h1,h2,h3,p,figure) { margin-top: 0; }

.ts-telenews-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 28px;
	color: #a63e05;
	font: 600 11px/1.4 var(--ts-font-code, monospace);
	letter-spacing: .12em;
}

.ts-telenews-kicker > span { width: 30px; height: 1px; background: var(--news-signal); }

.ts-telenews-hero {
	position: relative;
	border-bottom: 1px solid var(--news-line);
	background: var(--ts-warm, #faf9f6);
}

.ts-telenews-hero::after {
	content: '01 / AGGIORNAMENTI';
	position: absolute;
	right: max(var(--ts-container-pad, 2.5rem), calc((100vw - var(--ts-container-max, 1300px)) / 2));
	bottom: 30px;
	color: var(--news-muted);
	font: 550 10px/1.4 var(--ts-font-code, monospace);
	letter-spacing: .1em;
	writing-mode: vertical-rl;
}

.ts-telenews-hero__inner { padding-block: clamp(56px, 6vw, 82px); }

.ts-telenews-hero h1 {
	max-width: 16ch;
	margin: 0;
	font: 700 clamp(48px, 6vw, 82px)/1.01 var(--ts-font-display, sans-serif);
	letter-spacing: -.04em;
	text-wrap: balance;
}

.ts-telenews-hero__inner > p:last-child {
	max-width: 66ch;
	margin: 30px 0 0;
	color: var(--news-muted);
	font-size: clamp(17px, 1.35vw, 20px);
	line-height: 1.68;
}

.ts-telenews-feed { padding-block: clamp(62px, 6.5vw, 86px) clamp(76px, 8vw, 108px); }

.ts-telenews-feed__header {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
	gap: clamp(40px, 7vw, 96px);
	align-items: end;
	margin-bottom: clamp(42px, 4.5vw, 64px);
}

.ts-telenews-feed__header h2 {
	max-width: 16ch;
	margin: 0;
	font: 650 clamp(34px, 4vw, 54px)/1.07 var(--ts-font-display, sans-serif);
	letter-spacing: -.035em;
}

.ts-telenews-feed__header p { max-width: 48ch; margin: 0; color: var(--news-muted); font-size: 16px; line-height: 1.65; }

.ts-telenews-list {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(24px, 3vw, 40px);
	row-gap: 0;
}

.ts-telenews-card {
	position: relative;
	display: grid;
	min-width: 0;
	border-top: 1px solid var(--news-line);
	background: #fff;
}

.ts-telenews-card.is-featured {
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 6.8fr) minmax(410px, 5.2fr);
	margin-bottom: clamp(64px, 6vw, 80px);
	border-bottom: 1px solid var(--news-line);
	background: #f7f7f5;
}

.ts-telenews-card.is-featured .ts-telenews-card__media { height: clamp(420px, 34vw, 500px); }
.ts-telenews-card.is-featured .ts-telenews-card__body { justify-content: center; padding: clamp(32px, 3.4vw, 46px); }
.ts-telenews-card.is-featured h3 { max-width: 19ch; font-size: clamp(31px, 2.8vw, 44px); line-height: 1.01; }
.ts-telenews-card.is-featured .ts-telenews-card__body > p {
	display: -webkit-box;
	max-width: 48ch;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ts-telenews-card__eyebrow { display:inline-flex; align-items:center; gap:9px; margin-bottom:16px; color:#a63e05; font:600 9px/1.4 var(--ts-font-code, monospace); letter-spacing:.11em; text-transform:uppercase; }
.ts-telenews-card__eyebrow::before { content:''; width:18px; height:1px; background:var(--news-signal); }

.ts-telenews-card.is-medium {
	grid-column: span 6;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
	padding-top: 22px;
	margin-bottom: clamp(56px, 5.5vw, 72px);
	border-bottom: 1px solid var(--news-line);
}

.ts-telenews-card.is-medium .ts-telenews-card__media { aspect-ratio: 16 / 9; }
.ts-telenews-card.is-medium .ts-telenews-card__body { height: 100%; padding: 24px 0 30px; }
.ts-telenews-card.is-medium h3 { min-height: 3.3em; font-size: clamp(26px, 2.4vw, 34px); }
.ts-telenews-card.is-medium .ts-telenews-card__body > p {
	display: -webkit-box;
	min-height: 5.05em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ts-telenews-card.is-compact {
	grid-column: span 4;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
	padding-top: 18px;
	border-bottom: 1px solid var(--news-line);
}

.ts-telenews-card.is-compact .ts-telenews-card__media { aspect-ratio: 16 / 10; }
.ts-telenews-card.is-compact .ts-telenews-card__body { height: 100%; padding: 22px 0 26px; }
.ts-telenews-card.is-compact .ts-telenews-card__meta { margin-bottom: 15px; }
.ts-telenews-card.is-compact h3 { min-height: 3.3em; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; }
.ts-telenews-card.is-compact .ts-telenews-card__link { margin-top: 22px; }

.ts-telenews-card:is(.is-featured,.is-medium,.is-compact) .ts-telenews-media-fallback { min-height: 0; }

.ts-telenews-card__media {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	background: #e9edef;
}

.ts-telenews-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 650ms var(--ts-ease, ease), filter 420ms ease; }

.ts-telenews-media-fallback {
	display: grid;
	place-content: center;
	gap: 10px;
	min-height: 260px;
	background: var(--news-navy);
	color: #fff;
	text-align: center;
}

.ts-telenews-media-fallback > span { color: #ff7a32; font: 700 clamp(40px, 5vw, 74px)/1 var(--ts-font-display, sans-serif); letter-spacing: -.04em; }
.ts-telenews-media-fallback small { color: #b9c4cf; font: 550 10px/1.4 var(--ts-font-code, monospace); letter-spacing: .08em; text-transform: uppercase; }

.ts-telenews-card__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.ts-telenews-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-bottom: 22px;
	font: 550 10px/1.45 var(--ts-font-code, monospace);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ts-telenews-card__meta span { color: #a63e05; }
.ts-telenews-card__meta time { color: var(--news-muted); }
.ts-telenews-card__meta time::before { content: ''; display: inline-block; width: 14px; height: 1px; margin: 0 12px 3px 0; background: var(--news-line); }

.ts-telenews-card h3 { margin: 0; font: 650 clamp(27px, 2.6vw, 38px)/1.1 var(--ts-font-display, sans-serif); letter-spacing: -.035em; text-wrap: balance; }
.ts-telenews-card h3 a { color: var(--news-ink); text-decoration: none; }
.ts-telenews-card__body > p { max-width: 58ch; margin: 22px 0 28px; color: var(--news-muted); font-size: 16px; line-height: 1.68; }

.ts-telenews-card__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 44px;
	margin-top: auto;
	color: var(--news-ink);
	font: 600 14px/1.35 var(--ts-font-display, sans-serif);
	text-decoration: none;
}

.ts-telenews-card__link::after { content: ''; position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--news-signal); transform: scaleX(.22); transform-origin: left; transition: transform 280ms var(--ts-ease, ease); }
.ts-telenews-card__link span:last-child { color: var(--news-signal); font-size: 18px; transition: transform 280ms var(--ts-ease, ease); }

.ts-telenews a:focus-visible,
.ts-news-single a:focus-visible { outline: 2px solid var(--news-signal); outline-offset: 4px; }

.ts-telenews-pagination { margin-top: clamp(54px, 6vw, 80px); padding-top: 30px; border-top: 1px solid var(--news-line); }
.ts-telenews-pagination ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ts-telenews-pagination li { margin: 0; list-style: none; }
.ts-telenews-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; color: var(--news-ink); font: 600 13px/1.2 var(--ts-font-display, sans-serif); text-decoration: none; }
.ts-telenews-pagination .current { background: var(--news-navy); color: #fff; }
.ts-telenews-pagination :is(.prev,.next) { gap: 8px; min-width: auto; }

.ts-telenews-empty { max-width: 780px; padding: clamp(38px, 5vw, 64px); border: 1px solid var(--news-line); background: var(--ts-warm, #faf9f6); }
.ts-telenews-empty > span { color: var(--news-signal); font: 600 11px/1.4 var(--ts-font-code, monospace); }
.ts-telenews-empty h2 { margin: 22px 0 16px; font-size: clamp(28px, 3vw, 42px); }
.ts-telenews-empty p { max-width: 58ch; color: var(--news-muted); }
.ts-telenews-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; color: var(--news-ink); font-weight: 650; }

.ts-telenews.is-motion-ready [data-telenews-reveal] { opacity: 0; transform: translateY(18px); }
.ts-telenews.is-motion-ready [data-telenews-reveal].is-visible { opacity: 1; transform: none; transition: opacity 520ms ease, transform 660ms cubic-bezier(.16,1,.3,1); }

/* Single article */
.ts-news-article__header { border-bottom: 1px solid var(--news-line); background: var(--ts-warm, #faf9f6); }
.ts-news-article__header-inner { padding-block: clamp(66px, 8vw, 112px) clamp(70px, 8vw, 108px); }
.ts-news-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: clamp(42px, 6vw, 72px); color: var(--news-muted); font: 600 13px/1.4 var(--ts-font-display, sans-serif); text-decoration: none; }
.ts-news-back span { color: var(--news-signal); font-size: 18px; }
.ts-news-article__category { margin-bottom: 22px; color: #a63e05; font: 600 11px/1.4 var(--ts-font-code, monospace); letter-spacing: .1em; text-transform: uppercase; }
.ts-news-article__header h1 { max-width: 19ch; margin: 0; font: 700 clamp(42px, 5.6vw, 76px)/1.02 var(--ts-font-display, sans-serif); letter-spacing: -.04em; }
.ts-news-article__summary { max-width: 68ch; margin: 30px 0 0; color: var(--news-muted); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.62; }
.ts-news-article__header time { display: block; margin-top: 28px; color: var(--news-muted); font: 550 11px/1.4 var(--ts-font-code, monospace); letter-spacing: .07em; text-transform: uppercase; }

.ts-news-article__cover { margin-block: clamp(52px, 6vw, 86px) 0; }
.ts-news-article__cover-image { display: block; width: 100%; min-height: 420px; max-height: 720px; aspect-ratio: 16/9; object-fit: cover; }

.ts-news-article__content { width: min(100% - 40px, 780px); margin: clamp(68px, 7vw, 104px) auto clamp(82px, 9vw, 128px); color: #26364a; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.78; }
.ts-news-article__content > :first-child { margin-top: 0; }
.ts-news-article__content h2 { margin: 2.15em 0 .68em; color: var(--news-ink); font: 650 clamp(28px, 3.2vw, 42px)/1.12 var(--ts-font-display, sans-serif); letter-spacing: -.035em; }
.ts-news-article__content h3 { margin: 1.8em 0 .6em; color: var(--news-ink); font-size: clamp(22px, 2.4vw, 30px); }
.ts-news-article__content p { margin-bottom: 1.35em; }
.ts-news-article__content :is(ul,ol) { margin: 0 0 1.5em; padding-left: 1.2em; }
.ts-news-article__content li + li { margin-top: .45em; }
.ts-news-article__content a { color: #9f3900; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ts-news-article__content :is(img,video,iframe) { max-width: 100%; height: auto; }
.ts-news-article__content blockquote { margin: 2.2em 0; padding: 1.4em 0 1.4em 1.5em; border-left: 1px solid var(--news-signal); color: var(--news-muted); }
.ts-news-article__content .ts-article-context-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5em; color: var(--news-ink); font-weight: 650; }

.ts-news-cta { background: var(--news-navy); color: #fff; }
.ts-news-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(48px, 8vw, 120px); padding-block: clamp(58px, 7vw, 86px); }
.ts-news-cta__inner > div { max-width: 760px; }
.ts-news-cta__inner p { margin-bottom: 16px; color: #ff8849; font: 600 10px/1.4 var(--ts-font-code, monospace); letter-spacing: .11em; }
.ts-news-cta__inner h2 { margin: 0; color: #fff; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.035em; }
.ts-news-cta__inner div > span { display: block; max-width: 65ch; margin-top: 20px; color: #c3ccd6; font-size: 17px; line-height: 1.65; }
.ts-news-cta__inner > a { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 14px 22px; border: 1px solid rgba(255,255,255,.44); color: #fff; font: 600 14px/1.3 var(--ts-font-display, sans-serif); text-decoration: none; transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease; }
.ts-news-cta__inner > a span { color: #ff8849; font-size: 18px; transition: transform 280ms var(--ts-ease, ease); }

.ts-news-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: clamp(54px, 6vw, 82px); }
.ts-news-adjacent > a { display: flex; flex-direction: column; justify-content: center; min-height: 150px; padding: 26px 0; color: var(--news-ink); text-decoration: none; }
.ts-news-adjacent__previous { padding-right: clamp(24px, 4vw, 56px) !important; border-right: 1px solid var(--news-line); }
.ts-news-adjacent__next { align-items: flex-end; padding-left: clamp(24px, 4vw, 56px) !important; text-align: right; }
.ts-news-adjacent small { margin-bottom: 12px; color: var(--news-muted); font: 550 10px/1.4 var(--ts-font-code, monospace); letter-spacing: .08em; text-transform: uppercase; }
.ts-news-adjacent strong { max-width: 26ch; font: 630 clamp(20px, 2.2vw, 28px)/1.2 var(--ts-font-display, sans-serif); letter-spacing: -.025em; }

@media (hover:hover) and (pointer:fine) {
	.ts-telenews-card:hover .ts-telenews-card__image { transform: scale(1.025); filter: saturate(1.04); }
	.ts-telenews-card h3 a:hover { color: #a63e05; }
	.ts-telenews-card__link:hover::after { transform: scaleX(1); }
	.ts-telenews-card__link:hover span:last-child { transform: translateX(4px); }
	.ts-news-back:hover { color: var(--news-ink); }
	.ts-news-cta__inner > a:hover { border-color: #fff; background: #fff; color: var(--news-ink); }
	.ts-news-cta__inner > a:hover span { transform: translateX(4px); }
	.ts-news-adjacent > a:hover strong { color: #a63e05; }
}

@media (max-width: 1023px) {
	.ts-news-article__cover-image { min-height: 360px; }
}

@media (max-width: 899px) {
	.ts-telenews-hero::after { display: none; }
	.ts-telenews-feed__header { grid-template-columns: 1fr; gap: 22px; }
	.ts-telenews-card.is-featured { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.ts-telenews-card.is-featured .ts-telenews-card__media { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
	.ts-telenews-card.is-featured .ts-telenews-card__body { padding: 32px; }
	.ts-telenews-card.is-featured h3 { max-width: 20ch; }
	.ts-telenews-card.is-compact { grid-column: span 6; }
}

@media (max-width: 767px) {
	.ts-telenews-hero__inner { padding-block: 44px 52px; }
	.ts-telenews-hero h1 { font-size: clamp(40px, 11.7vw, 54px); }
	.ts-telenews-hero__inner > p:last-child { margin-top: 24px; font-size: 17px; }
	.ts-telenews-feed { padding-block: 48px 72px; }
	.ts-telenews-feed__header { margin-bottom: 34px; }
	.ts-telenews-feed__header h2 { font-size: clamp(31px, 9vw, 42px); }
	.ts-telenews-list { row-gap: 0; }
	.ts-telenews-card,
	.ts-telenews-card.is-featured,
	.ts-telenews-card.is-medium,
	.ts-telenews-card.is-compact {
		grid-column: 1 / -1;
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		margin: 0 0 42px;
		padding: 0;
		border-bottom: 1px solid var(--news-line);
	}
	.ts-telenews-card.is-featured { margin-bottom: 48px; }
	.ts-telenews-card.is-featured .ts-telenews-card__media,
	.ts-telenews-card.is-medium .ts-telenews-card__media,
	.ts-telenews-card.is-compact .ts-telenews-card__media { height: auto; min-height: 0; aspect-ratio: 16 / 10; margin: 0; }
	.ts-telenews-card.is-featured .ts-telenews-card__body { padding: 26px 22px 30px; }
	.ts-telenews-card.is-medium .ts-telenews-card__body,
	.ts-telenews-card.is-compact .ts-telenews-card__body { padding: 24px 0 28px; }
	.ts-telenews-card h3,
	.ts-telenews-card.is-featured h3,
	.ts-telenews-card.is-medium h3,
	.ts-telenews-card.is-compact h3 { min-height: 0; font-size: clamp(26px, 7.4vw, 34px); }
	.ts-telenews-card.is-medium .ts-telenews-card__body > p { min-height: 0; }
	.ts-telenews-card__body > p { margin: 18px 0 22px; }
	.ts-telenews-card__meta { margin-bottom: 18px; }
	.ts-telenews-card.is-compact .ts-telenews-card__link { margin-top: 18px; }
	.ts-telenews-pagination ul { justify-content: flex-start; }
	.ts-telenews-pagination :is(.prev,.next) { width: 100%; justify-content: space-between; }

	.ts-news-article__header-inner { padding-block: 46px 64px; }
	.ts-news-back { margin-bottom: 34px; }
	.ts-news-article__header h1 { font-size: clamp(38px, 10.7vw, 52px); }
	.ts-news-article__summary { margin-top: 24px; font-size: 18px; }
	.ts-news-article__cover { padding-inline: 0; margin-top: 0; }
	.ts-news-article__cover-image { min-height: 0; max-height: none; aspect-ratio: 4/3; }
	.ts-news-article__content { margin-block: 58px 76px; font-size: 17px; line-height: 1.72; }
	.ts-news-article__content h2 { font-size: clamp(28px, 8vw, 36px); }
	.ts-news-cta__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 54px 60px; }
	.ts-news-cta__inner div > span { font-size: 16px; }
	.ts-news-cta__inner > a { justify-self: start; }
	.ts-news-adjacent { grid-template-columns: 1fr; }
	.ts-news-adjacent > a { min-height: 0; padding: 28px 0 !important; }
	.ts-news-adjacent__previous { border-right: 0; border-bottom: 1px solid var(--news-line); }
	.ts-news-adjacent__next { align-items: flex-start; text-align: left; }
}

@media (max-width: 390px) {
	.ts-telenews-hero h1 { font-size: 39px; }
	.ts-telenews-card__meta { align-items: flex-start; flex-direction: column; gap: 7px; }
	.ts-telenews-card__meta time::before { display: none; }
	.ts-news-cta__inner > a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ts-telenews *,
	.ts-telenews *::before,
	.ts-telenews *::after,
	.ts-news-single *,
	.ts-news-single *::before,
	.ts-news-single *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
	.ts-telenews.is-motion-ready [data-telenews-reveal] { opacity: 1 !important; transform: none !important; }
}
