/*
 * ABM Trader - Joomla 6 template by AB Media (https://www.abmedia.it)
 * Trading desk: notte profonda, griglia da grafico, verde call wall, rosso put wall, oro gamma flip.
 */

/* ---------- Font locali ---------- */
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 800; font-display: swap; src: url("../fonts/sora-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

/* ---------- Token ---------- */
:root {
	--bg: #05080c;
	--bg-2: #080d13;
	--surface: #0b1118;
	--surface-2: #101822;
	--line: #17212c;
	--line-2: #22303f;
	--text: #e6edf3;
	--muted: #8796a8;
	--faint: #56667a;

	--bull: #1fe0a0;
	--bull-2: #12b884;
	--bear: #ff5470;
	--gold: #f5c04a;
	--ice: #58c4ff;
	--violet: #a08fff;

	--display: "Sora", "Segoe UI", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 36px);
	--header-h: 72px;
	--section: clamp(72px, 9vw, 120px);
	--radius: 14px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(1100px 560px at 12% -12%, rgba(31, 224, 160, .10), transparent 60%),
		radial-gradient(900px 520px at 100% 8%, rgba(88, 196, 255, .07), transparent 60%),
		var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
/* Griglia da grafico sullo sfondo */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(rgba(135, 150, 168, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(135, 150, 168, .07) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
	-webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--bull); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bull); color: #021a12; }
#tr-main { overflow-x: clip; }

.tr-container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.tr-section { padding-block: var(--section) 0; }
.tr-ico { width: 1.1em; height: 1.1em; flex: none; }
.tr-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.tr-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--bull); color: #021a12; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.tr-skip:focus { top: 12px; }
.visually-hidden, .sr-only, .element-invisible {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
.tr-kicker {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
	font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bull);
	text-decoration: none;
}
.tr-kicker .tr-ico { width: 16px; height: 16px; }
.tr-kicker--link:hover { color: var(--text); }
.tr-kicker__count { color: var(--faint); }
.tr-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--bull); flex: none; }
.tr-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--bull); animation: tr-ping 2s var(--ease) infinite; }
@keyframes tr-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2); opacity: 0; } }
.tr-h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 0; }
.tr-h3 { font-size: clamp(21px, 2.2vw, 26px); }
.tr-lead { font-size: clamp(16px, 1.45vw, 18px); line-height: 1.7; color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
.tr-hl { background: linear-gradient(95deg, var(--bull) 0%, #7af0c9 45%, var(--ice) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tr-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 14px; border-radius: 50%; background: var(--line-2); vertical-align: middle; }
.tr-meta__cat { color: var(--bull); }

.tr-head { margin-bottom: 40px; max-width: 780px; }
.tr-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; }
.tr-head--row > div:first-child { max-width: 760px; }
.tr-head--center { margin-inline: auto; text-align: center; }
.tr-head--center .tr-lead { margin-inline: auto; }

.tr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); background: rgba(245, 192, 74, .1); border: 1px solid rgba(245, 192, 74, .3); }
.tr-badge--soon { color: var(--muted); background: rgba(135, 150, 168, .08); border-color: var(--line-2); }

/* ---------- Pulsanti ---------- */
.tr-btn, .btn, .readmore a, button.button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 12px 20px; border: 1px solid transparent; border-radius: 10px;
	font-family: var(--body); font-size: 14.5px; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease);
}
.tr-btn .tr-ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tr-btn:hover .tr-ico { transform: translate(2px, -2px); }
.tr-btn--primary, .btn-primary, .readmore a, input[type="submit"] {
	background: var(--bull); color: #02170f;
	background-image: linear-gradient(180deg, #3cf0b4, var(--bull) 55%, #17cc90);
	box-shadow: 0 10px 30px -12px rgba(31, 224, 160, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.tr-btn--primary:hover, .btn-primary:hover, .readmore a:hover, input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(31, 224, 160, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.tr-btn--ghost, .btn-secondary, .btn-outline-secondary, .btn-outline-primary { background: rgba(255, 255, 255, .02); color: var(--text); border-color: var(--line-2); }
.tr-btn--ghost:hover, .btn-secondary:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover { border-color: var(--bull); color: var(--bull); }
.tr-btn--lg { padding: 15px 24px; font-size: 15.5px; }
.tr-btn--block { width: 100%; }
.btn-success { background: var(--bull-2); color: #fff; }
.btn-danger { background: var(--bear); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.tr-header { position: sticky; top: 0; z-index: 70; height: var(--header-h); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.tr-header.is-scrolled, .is-inner .tr-header { background: rgba(5, 8, 12, .8); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: rgba(255, 255, 255, .06); }
.tr-header__inner { height: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 22px; }

.tr-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex: none; }
.tr-logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(150deg, #0e1c26, #08100f); border: 1px solid rgba(31, 224, 160, .35); box-shadow: 0 0 24px -8px rgba(31, 224, 160, .7); }
.tr-logo__mark svg { width: 26px; height: 26px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tr-logo__w1 { stroke: var(--bull); opacity: .85; }
.tr-logo__w2 { stroke: var(--bear); opacity: .85; }
.tr-logo__line { stroke: #fff; }
.tr-logo__text { display: grid; line-height: 1; }
.tr-logo__text b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.tr-logo__text em { font-style: normal; color: var(--bull); }
.tr-logo__text small { margin-top: 5px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.tr-logo__img { height: 40px; width: auto; }

.tr-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 16px; min-width: 0; }
.tr-nav__user { display: none; }
.tr-header__user { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tr-header__user__link, .tr-nav__user__link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.tr-header__user__link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.tr-header__user__link .tr-ico { width: 16px; height: 16px; }
.tr-header__user__link--alt { display: none; }
.tr-header__cta { padding: 10px 15px; font-size: 13.5px; }
.tr-header__cta .tr-ico { width: 17px; height: 17px; }
.tr-header__cta:hover .tr-ico { transform: none; }

/* Menu Joomla */
.tr-nav ul { list-style: none; margin: 0; padding: 0; }
.tr-nav .mod-menu, .tr-nav .mod-menu_dropdown-metismenu { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; justify-content: center; }
.tr-nav .mod-menu > li { position: relative; flex: none; }
.tr-nav .mod-menu > li > a,
.tr-nav .mod-menu > li > span {
	display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 9px;
	font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: color .2s, background .2s;
}
.tr-nav .mod-menu > li.parent > a::after,
.tr-nav .mod-menu > li.parent > span::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .2s; }
.tr-nav .mod-menu > li.parent:hover > a::after, .tr-nav .mod-menu > li.parent:hover > span::after,
.tr-nav .mod-menu > li.parent.is-open > a::after, .tr-nav .mod-menu > li.parent.is-open > span::after { transform: rotate(225deg) translate(-2px, -1px); }
.tr-nav .mod-menu > li:hover > a, .tr-nav .mod-menu > li:hover > span, .tr-nav .mod-menu > li.is-open > a, .tr-nav .mod-menu > li.is-open > span { color: var(--text); background: rgba(255, 255, 255, .05); }
.tr-nav .mod-menu > li.current > a, .tr-nav .mod-menu > li.active > a, .tr-nav .mod-menu > li.active > span { color: var(--text); }
.tr-nav .mod-menu > li.current > a::before, .tr-nav .mod-menu > li.active > a::before, .tr-nav .mod-menu > li.active > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 10px var(--bull); }

/* Pulsanti dei layout di Joomla prima della conversione */
.tr-nav a + .mod-menu__toggle-sub, .tr-nav button.mm-toggler-link { display: none; }
.tr-nav button.mod-menu__toggle-sub, .tr-nav button.mm-toggler { background: none; border: 0; padding: 9px 12px; color: var(--muted); font: inherit; font-size: 14.5px; cursor: pointer; }
.tr-nav .mod-menu__toggle-sub .icon-chevron-down { display: none; }
.tr-nav .tr-subtoggle { display: none; }

@media (min-width: 1024px) {
	.tr-nav .mod-menu .mod-menu__sub,
	.tr-nav .mod-menu .mod-menu__sub[aria-hidden] { display: block; }
	.tr-nav .mod-menu > li > .mod-menu__sub {
		position: absolute; left: var(--tr-sub-left, 0px); top: calc(100% + 10px);
		min-width: 250px; max-width: min(600px, calc(100vw - 32px)); padding: 8px;
		background: rgba(11, 17, 24, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
		border: 1px solid var(--line-2); border-radius: var(--radius);
		box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(31, 224, 160, .06);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .18s, transform .18s var(--ease), visibility 0s linear .18s;
		z-index: 10;
	}
	.tr-nav .mod-menu > li > .mod-menu__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
	.tr-nav .mod-menu > li:hover > .mod-menu__sub,
	.tr-nav .mod-menu > li:focus-within > .mod-menu__sub,
	.tr-nav .mod-menu > li.is-open > .mod-menu__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.tr-nav .mod-menu > li.is-closed > .mod-menu__sub { opacity: 0; visibility: hidden; }
	.tr-nav .mod-menu > li > .mod-menu__sub.is-cols { columns: 2; column-gap: 4px; min-width: 500px; }
	.tr-nav .mod-menu__sub.is-cols > li { break-inside: avoid; }
	.tr-nav .mod-menu__sub a, .tr-nav .mod-menu__sub .mod-menu__heading { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14.5px; color: var(--text); text-decoration: none; }
	.tr-nav .mod-menu__sub .mod-menu__heading { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
	.tr-nav .mod-menu__sub a:hover, .tr-nav .mod-menu__sub a:focus-visible, .tr-nav .mod-menu__sub li.current > a { background: rgba(31, 224, 160, .1); color: #fff; }
	.tr-nav .mod-menu__sub > li.parent > a { font-weight: 600; }
	.tr-nav .mod-menu__sub .mod-menu__sub { position: static; margin: 0 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line-2); columns: auto; }
	.tr-nav .mod-menu__sub .mod-menu__sub a { padding: 6px 10px; font-size: 13.5px; color: var(--muted); }
}

.tr-burger { display: none; margin-left: 4px; width: 44px; height: 44px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); position: relative; }
.tr-burger__bar, .tr-burger__bar::before, .tr-burger__bar::after { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), background .2s; }
.tr-burger__bar { top: 50%; margin-top: -1px; }
.tr-burger__bar::before, .tr-burger__bar::after { content: ""; left: 0; right: 0; }
.tr-burger__bar::before { top: -6px; }
.tr-burger__bar::after { top: 6px; }
.nav-open .tr-burger__bar { background: transparent; }
.nav-open .tr-burger__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .tr-burger__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.tr-hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(44px, 7vw, 96px)); isolation: isolate; }
.tr-hero__bg { position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; pointer-events: none; background: radial-gradient(600px 320px at 78% 38%, rgba(31, 224, 160, .1), transparent 70%); }
.tr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.tr-hero__title { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 0; }
.tr-hero__title span { display: block; }
.tr-hero .tr-lead { margin-top: 22px; }
.tr-hero .tr-actions { margin-top: 32px; }
.tr-stats { display: flex; flex-wrap: wrap; gap: 22px 40px; margin: 42px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.tr-stats div { min-width: 0; }
.tr-stats dt { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.tr-stats dd { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); max-width: 18ch; line-height: 1.4; }

/* Grafico delle wall */
.tr-wallchart { position: relative; margin: 0; border-radius: 18px; background: linear-gradient(180deg, rgba(16, 24, 34, .92), rgba(8, 13, 19, .96)); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(31, 224, 160, .05), 0 0 80px -40px rgba(31, 224, 160, .45); overflow: hidden; }
.tr-wallchart__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tr-wallchart__sym b { color: var(--text); font-weight: 600; }
.tr-wallchart__legend { display: inline-flex; align-items: center; gap: 6px; }
.tr-wallchart__legend i { width: 10px; height: 2px; border-radius: 2px; margin-left: 8px; }
.tr-wallchart__legend .is-call { background: var(--bull); }
.tr-wallchart__legend .is-flip { background: var(--gold); }
.tr-wallchart__legend .is-put { background: var(--bear); }
.tr-wallchart__svg { display: block; width: 100%; height: auto; }
.tr-wallchart__grid line { stroke: rgba(135, 150, 168, .09); stroke-width: 1; }
.tr-zone--call { color: var(--bull); }
.tr-zone--put { color: var(--bear); }
.tr-wall { stroke-width: 1.6; }
.tr-wall--call { stroke: var(--bull); }
.tr-wall--put { stroke: var(--bear); }
.tr-wall--flip { stroke: var(--gold); stroke-dasharray: 5 5; opacity: .8; }
.tr-candle line { stroke-width: 1.3; }
.tr-candle--up line, .tr-candle--up rect { stroke: var(--bull); fill: var(--bull); }
.tr-candle--dn line, .tr-candle--dn rect { stroke: var(--bear); fill: var(--bear); }
.tr-candle rect { stroke-width: 0; }
.tr-wall-tag rect { fill: var(--surface-2); stroke-width: 1; }
.tr-wall-tag text { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .04em; }
.tr-wall-tag--call rect { stroke: var(--bull); }
.tr-wall-tag--call text { fill: var(--bull); }
.tr-wall-tag--put rect { stroke: var(--bear); }
.tr-wall-tag--put text { fill: var(--bear); }
.tr-wall-tag--flip rect { stroke: var(--gold); }
.tr-wall-tag--flip text { fill: var(--gold); }
.tr-wallchart__last { stroke: var(--text); stroke-width: 1; stroke-dasharray: 2 4; opacity: .35; }
.tr-wallchart__pulse { fill: var(--text); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); animation: tr-blink 1.6s ease-in-out infinite; }
@keyframes tr-blink { 50% { opacity: .35; } }
.tr-js .tr-candle { opacity: 0; animation: tr-candle .45s var(--ease) forwards; animation-delay: calc(var(--d) + .25s); }
@keyframes tr-candle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tr-wallchart__cap { padding: 10px 18px 13px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* Nastro dei mercati */
.tr-tape { margin-top: clamp(48px, 7vw, 88px); border-block: 1px solid var(--line); background: rgba(8, 13, 19, .7); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tr-tape__track { display: flex; width: max-content; animation: tr-tape 60s linear infinite; }
.tr-tape:hover .tr-tape__track { animation-play-state: paused; }
.tr-tape span { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tr-tape i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.tr-tape i.is-up { border-bottom: 7px solid var(--bull); }
.tr-tape i.is-dn { border-top: 7px solid var(--bear); }
@keyframes tr-tape { to { transform: translateX(-50%); } }

/* ---------- Mercati ---------- */
.tr-markets__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tr-market { --tone: var(--bull); position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.tr-market[data-tone="ice"] { --tone: var(--ice); }
.tr-market[data-tone="bear"] { --tone: var(--bear); }
.tr-market[data-tone="gold"] { --tone: var(--gold); }
.tr-market[data-tone="violet"] { --tone: var(--violet); }
.tr-market:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); transform: translateY(-3px); background: var(--surface-2); }
.tr-market__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tr-market__code { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
.tr-market__spark { width: 80px; height: 28px; fill: none; stroke: var(--tone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tr-market__spark .tr-market__wall { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.tr-market__title { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.tr-market__title a { text-decoration: none; }
.tr-market__sub { margin: 4px 0 18px; font-size: 13.5px; color: var(--muted); }
.tr-market__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.tr-market__open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--tone); }
.tr-market__open .tr-ico { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.tr-market:hover .tr-market__open .tr-ico { transform: translateX(3px); }
.tr-market__info { position: relative; z-index: 2; color: var(--muted); text-decoration: none; }
.tr-market__info:hover { color: var(--text); text-decoration: underline; }
.tr-market.is-soon { opacity: .7; }
.tr-market.is-soon:hover { transform: none; }

/* ---------- cBot ---------- */
.tr-cbots__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tr-cbot { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: 16px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.tr-cbot::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, var(--bull), var(--ice)); opacity: 0; transition: opacity .25s; }
.tr-cbot:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tr-cbot:hover::before { opacity: 1; }
.tr-cbot__head { display: flex; justify-content: space-between; align-items: center; min-height: 26px; margin-bottom: 18px; }
.tr-cbot__num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tr-cbot__tag { margin: 0 0 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ice); }
.tr-cbot__name { margin: 0 0 10px; font-size: 22px; }
.tr-cbot__name a { text-decoration: none; }
.tr-cbot__text { margin: 0 0 20px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.tr-cbot__more { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--bull); }
.tr-cbot__more .tr-ico { width: 14px; height: 14px; }

/* ---------- Strumenti ---------- */
.tr-tools__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tr-tool { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.tr-tool:hover { border-color: rgba(31, 224, 160, .4); background: var(--surface-2); }
.tr-tool__ico { width: 46px; height: 46px; padding: 11px; border-radius: 12px; color: var(--bull); background: rgba(31, 224, 160, .08); border: 1px solid rgba(31, 224, 160, .2); }
.tr-tool__title { margin: 0 0 3px; font-size: 16.5px; }
.tr-tool__title a { text-decoration: none; }
.tr-tool p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.tr-tool__go { width: 18px; height: 18px; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.tr-tool:hover .tr-tool__go { color: var(--bull); transform: translateX(3px); }

/* ---------- Comparatore ---------- */
.tr-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tr-filter button { padding: 8px 14px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.tr-filter button:hover { color: var(--text); }
.tr-filter button.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tr-firms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* Intestazione, righe e pulsante allineati tra le schede anche quando un nome va a capo */
.tr-firm { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.tr-firm__body { margin-bottom: 18px; }
.tr-firm { position: relative; padding: 22px 20px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tr-firm.is-pick { border-color: rgba(31, 224, 160, .5); background: linear-gradient(180deg, rgba(31, 224, 160, .07), var(--surface) 40%); box-shadow: 0 0 60px -30px rgba(31, 224, 160, .6); }
.tr-firm[hidden] { display: none; }
.tr-firm__pick { position: absolute; top: -11px; left: 20px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #02170f; background: var(--bull); }
.tr-firm__pick .tr-ico { width: 12px; height: 12px; fill: currentColor; }
.tr-firm__head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 12px; align-items: center; margin-bottom: 18px; }
.tr-firm__mono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); }
.tr-firm__name { margin: 0; font-size: 17px; line-height: 1.2; }
.tr-firm__type { margin: 2px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tr-firm__rating { grid-column: 1 / -1; display: flex; align-items: baseline; align-self: end; gap: 2px; margin-top: 10px; }
.tr-firm__rating b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.tr-firm__rating span { font-size: 13px; color: var(--muted); margin-right: 10px; }
.tr-firm__stars { position: relative; display: inline-block; width: 82px; height: 14px; align-self: center; background: linear-gradient(90deg, var(--gold) var(--r), var(--line-2) var(--r)); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 82 14'%3E%3Cg%3E%3Cpath id='s' d='m7 0 2.1 4.4 4.9.7-3.5 3.4.8 4.8L7 11l-4.3 2.3.8-4.8L0 5.1l4.9-.7z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 82 14'%3E%3Cg%3E%3Cpath id='s' d='m7 0 2.1 4.4 4.9.7-3.5 3.4.8 4.8L7 11l-4.3 2.3.8-4.8L0 5.1l4.9-.7z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.tr-firm__rows { margin: 0; }
.tr-firm__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line-2); font-size: 14px; }
.tr-firm__rows dt { color: var(--muted); }
.tr-firm__rows dd { margin: 0; font-family: var(--mono); font-size: 13.5px; font-weight: 600; text-align: right; }
.tr-firm__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.tr-firm .tr-btn { align-self: end; }
.tr-firm--slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 280px; text-align: center; text-decoration: none; border-style: dashed; border-color: var(--line-2); background: transparent; transition: border-color .25s, background .25s; }
.tr-firm--slot:hover { border-color: var(--gold); background: rgba(245, 192, 74, .04); }
.tr-firm--slot b { font-family: var(--display); font-size: 17px; }
.tr-firm--slot span:last-child { max-width: 22ch; font-size: 13.5px; color: var(--muted); }
.tr-firm__plus { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; font-family: var(--display); font-size: 24px; color: var(--gold); border: 1px dashed rgba(245, 192, 74, .55); }
.tr-disclosure { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 13px; color: var(--faint); max-width: 90ch; }
.tr-disclosure .tr-ico { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }

/* ---------- Prop firm e broker ---------- */
.tr-partners__panel {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px);
	padding: clamp(28px, 5vw, 60px); border-radius: 24px; isolation: isolate; overflow: hidden;
	background:
		radial-gradient(70% 90% at 100% 0%, rgba(245, 192, 74, .12), transparent 60%),
		radial-gradient(60% 80% at 0% 100%, rgba(31, 224, 160, .1), transparent 60%),
		linear-gradient(180deg, #0d151e, #080d13);
	border: 1px solid var(--line-2);
}
.tr-partners__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(135, 150, 168, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(135, 150, 168, .06) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(135deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); }
.tr-partners .tr-kicker { color: var(--gold); }
.tr-partners .tr-live, .tr-partners .tr-live::after { background: var(--gold); border-color: var(--gold); }
.tr-partners .tr-live::after { background: none; }
.tr-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.tr-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.tr-benefits__ico { width: 40px; height: 40px; padding: 9px; border-radius: 11px; color: var(--gold); background: rgba(245, 192, 74, .08); border: 1px solid rgba(245, 192, 74, .25); }
.tr-benefits b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.tr-benefits span { display: block; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tr-apply { align-self: start; padding: 26px; border-radius: 18px; background: rgba(5, 8, 12, .7); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.tr-apply__title { margin: 0 0 20px; font-size: 21px; }
.tr-apply__steps { display: grid; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: s; }
.tr-apply__steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 0 16px; font-size: 14.5px; font-weight: 500; }
.tr-apply__steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 1px; background: var(--line-2); }
.tr-apply__steps li:last-child { padding-bottom: 0; }
.tr-apply__steps span { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold); border: 1px solid rgba(245, 192, 74, .5); background: rgba(245, 192, 74, .07); }
.tr-apply__label { margin: 0 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tr-apply__needs { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: #c9d3dd; }
.tr-apply__needs li { display: flex; gap: 9px; align-items: flex-start; }
.tr-apply__needs .tr-ico { width: 16px; height: 16px; margin-top: 3px; color: var(--bull); }
.tr-apply__actions { display: grid; gap: 12px; justify-items: center; }
.tr-apply__mail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.tr-apply__mail:hover { color: var(--text); }

/* ---------- Servizi ---------- */
.tr-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tr-service { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.tr-service:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tr-service__ico { width: 30px; height: 30px; margin-bottom: 20px; color: var(--bull); }
.tr-service h3 { margin: 0 0 8px; font-size: 18px; }
.tr-service h3 a { text-decoration: none; }
.tr-service p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.tr-service__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--text); }
.tr-service__more .tr-ico { width: 14px; height: 14px; color: var(--bull); }

/* ---------- Articoli ---------- */
.tr-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tr-post { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.tr-post:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tr-post__img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tr-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tr-post:hover .tr-post__img img { transform: scale(1.04); }
.tr-post__img.is-empty { display: grid; place-items: center; background: linear-gradient(rgba(135, 150, 168, .06) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(135, 150, 168, .06) 1px, transparent 1px) 0 0 / 28px 28px, var(--surface-2); }
.tr-post__glyph { width: 44px; height: 44px; color: var(--line-2); }
.tr-post__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tr-post__title { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.tr-post__title a { text-decoration: none; }
.tr-post__intro { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.tr-post__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--bull); }
.tr-post__more .tr-ico { width: 14px; height: 14px; }
.tr-posts--list .tr-post.is-wide { grid-column: 1 / -1; flex-direction: row; }
.tr-posts--list .tr-post.is-wide .tr-post__img { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
.tr-posts--list .tr-post.is-wide .tr-post__body { padding: clamp(24px, 3vw, 40px); justify-content: center; }
.tr-posts--list .tr-post.is-wide .tr-post__title { font-size: clamp(24px, 2.6vw, 32px); }

/* ---------- Community ---------- */
.tr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1060px; margin-inline: auto; }
.tr-plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.tr-plan.is-featured { border-color: rgba(31, 224, 160, .55); background: linear-gradient(180deg, rgba(31, 224, 160, .08), var(--surface) 45%); box-shadow: 0 0 70px -30px rgba(31, 224, 160, .7); }
.tr-plan__name { margin: 0 0 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tr-plan.is-featured .tr-plan__name { color: var(--bull); }
.tr-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 22px; }
.tr-plan__price b { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tr-plan__price span { font-size: 14px; color: var(--muted); }
.tr-plan__list { display: grid; gap: 11px; margin: 0 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14.5px; color: #c9d3dd; }
.tr-plan__list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.tr-plan__list .tr-ico { width: 17px; height: 17px; margin-top: 2px; color: var(--bull); }
.tr-plan .tr-btn { margin-top: auto; }

/* ---------- Pagine interne ---------- */
.tr-inner { padding: clamp(36px, 5vw, 64px) 0 0; }
.tr-crumbs { margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.tr-crumbs ol, .tr-crumbs ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tr-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.tr-crumbs a { color: var(--muted); text-decoration: none; }
.tr-crumbs a:hover { color: var(--text); }
.tr-crumbs .divider, .tr-crumbs .icon-location, .tr-crumbs .mod-breadcrumbs__here { display: none; }
.tr-crumbs .mod-breadcrumbs__here + li::before { content: none; }
.tr-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.tr-layout.has-right { grid-template-columns: minmax(0, 1fr) 300px; }
.tr-aside { display: grid; gap: 22px; align-content: start; }
.tr-aside .moduletable, .tr-modules .moduletable { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tr-aside h3, .tr-modules h3 { font-size: 17px; }
.tr-modules { display: grid; gap: 22px; }

.tr-pagehead { margin-bottom: 40px; max-width: 820px; }
.tr-pagehead__title { font-size: clamp(34px, 4.8vw, 56px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.tr-pagehead__desc { margin-top: 16px; font-size: 17px; color: var(--muted); }
.tr-pagehead__desc > :last-child { margin-bottom: 0; }
.tr-empty { padding: 40px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.tr-morelinks { margin-top: 48px; }
.tr-morelinks ul { margin: 0; padding: 0; list-style: none; }
.tr-morelinks li { padding: 12px 0; border-top: 1px solid var(--line); }
.tr-morelinks a { text-decoration: none; font-weight: 500; }
.tr-morelinks a:hover { color: var(--bull); }
.tr-morelinks span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

.tr-article { max-width: 820px; }
.tr-article.is-wide, .tr-wide .tr-article { max-width: none; }
.tr-article__head { margin-bottom: 30px; }
.tr-article__title { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; margin: 0 0 16px; }
.tr-article__img { margin: 0 0 36px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.tr-article__img img { width: 100%; }
.tr-page-heading { display: block; }

/* Testo */
.tr-prose { font-size: 17px; line-height: 1.8; color: #cfd8e1; }
.tr-prose > :first-child { margin-top: 0; }
.tr-prose h2 { font-size: clamp(25px, 2.8vw, 32px); margin: 1.6em 0 .55em; color: var(--text); }
.tr-prose h3 { font-size: clamp(20px, 2.2vw, 24px); margin: 1.5em 0 .5em; color: var(--text); }
.tr-prose h4 { font-size: 18.5px; margin: 1.4em 0 .5em; color: var(--text); }
.tr-prose p, .tr-prose ul, .tr-prose ol { margin: 0 0 1.15em; }
.tr-prose li { margin-bottom: .35em; }
.tr-prose li::marker { color: var(--bull); }
.tr-prose a { color: var(--bull); text-decoration: underline; text-decoration-color: rgba(31, 224, 160, .4); text-underline-offset: 3px; }
.tr-prose a:hover { text-decoration-color: currentColor; }
.tr-prose a.btn, .tr-prose a.tr-btn { color: inherit; text-decoration: none; }
.tr-prose a.btn-primary, .tr-prose a.tr-btn--primary { color: #02170f; }
.tr-prose strong { color: var(--text); font-weight: 600; }
.tr-prose img { height: auto; border-radius: 10px; }
.tr-prose figure { margin: 1.8em 0; }
.tr-prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--faint); text-align: center; }
.tr-prose blockquote { margin: 1.8em 0; padding: 18px 22px; border-left: 3px solid var(--bull); border-radius: 0 12px 12px 0; background: var(--surface); font-size: 1.04em; color: var(--text); }
.tr-prose blockquote p:last-child { margin-bottom: 0; }
.tr-prose hr { border: 0; height: 1px; margin: 2.4em 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.tr-prose code { font-family: var(--mono); font-size: .86em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--bull); }
.tr-prose pre { margin: 1.6em 0; padding: 18px 20px; border-radius: 12px; background: #04070a; border: 1px solid var(--line); overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; }
.tr-prose pre code { padding: 0; border: 0; background: none; color: var(--text); font-size: inherit; }
.tr-prose table, .table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.tr-prose th, .tr-prose td, .table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tr-prose th, .table th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tr-prose iframe { max-width: 100%; border: 0; border-radius: 12px; }
.tr-prose .table-responsive, .tr-prose .tableWrap { overflow-x: auto; }
.float-start, .pull-left { float: left; margin: 0 1.4em 1em 0; }
.float-end, .pull-right { float: right; margin: 0 0 1em 1.4em; }

/* Contenuto riservato */
.tr-locked { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 32px 0; padding: 24px 26px; border-radius: 16px; background: linear-gradient(180deg, rgba(31, 224, 160, .06), var(--surface)); border: 1px solid rgba(31, 224, 160, .35); }
.tr-locked__ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--bull); background: rgba(31, 224, 160, .1); }
.tr-locked h2 { margin: 0 0 4px; }
.tr-locked p { margin: 0; color: var(--muted); font-size: 15px; }

/* Tag, icone di modifica, paginazione articolo */
.tags { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a, .badge { display: inline-block; padding: 5px 11px; border-radius: 7px; font-family: var(--mono); font-size: 12px; background: rgba(31, 224, 160, .1); border: 1px solid rgba(31, 224, 160, .3); color: var(--text) !important; text-decoration: none !important; }
.icons { margin-top: 12px; }
.icons .dropdown-toggle, .icons a { font-size: 13px; color: var(--muted); }
.pagenavigation, .pager { margin-top: 48px; }
.pagenavigation .pagination, .pager { display: flex; justify-content: space-between; gap: 12px; list-style: none; padding: 0; }
.pagenavigation a, .pager a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 11px; border: 1px solid var(--line-2); text-decoration: none; color: var(--text); font-size: 14.5px; }
.pagenavigation a:hover, .pager a:hover { border-color: var(--bull); color: var(--bull); }

/* Paginazione */
.tr-pagination { margin-top: 48px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.page-link { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line-2); text-decoration: none; font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.page-link:hover { border-color: var(--bull); color: var(--bull); }
.page-item.active .page-link { background: var(--bull); border-color: var(--bull); color: #02170f; }
.page-item.disabled .page-link { opacity: .35; }
.tr-pagination__counter, .counter { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* Form (accesso, registrazione, contatti, ricerca) */
.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], textarea, select {
	width: 100%; max-width: 100%; padding: 12px 14px; border-radius: 10px;
	background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2);
	font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--bull); box-shadow: 0 0 0 4px rgba(31, 224, 160, .16); }
::placeholder { color: var(--faint); }
label, .control-label, .form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.control-group, .mb-3 { margin-bottom: 18px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input { width: 18px; height: 18px; accent-color: var(--bull); }
.input-group { display: flex; align-items: stretch; gap: 8px; }
.input-group > .form-control { flex: 1; min-width: 0; }
.input-password-toggle { padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.star, .required { color: var(--bear); }
.tr-nav__search .form-control { padding: 8px 12px; font-size: 13.5px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px; }
legend { padding: 0 8px; font-family: var(--display); font-weight: 700; }
.com-users-login, .com-users-registration, .com-users-reset, .com-users-remind { max-width: 520px; }
.com-users-login form, .com-users-registration form, .com-users-reset form, .com-users-remind form { padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.com-users-login__options { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; }
.com-users-login__options a { color: var(--muted); }

/* Utility usate dal core di Joomla */
.list-unstyled { list-style: none; padding-left: 0; }
.clearfix::after { content: ""; display: table; clear: both; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.w-100 { width: 100%; }
.img-fluid { max-width: 100%; height: auto; }
.row { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.row > [class*="col"] { padding-inline: 12px; flex: 1 0 0%; min-width: 0; }
.row > .col-12 { flex: 0 0 100%; }
.card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card-header, .card-body, .card-footer { padding: 18px 20px; }
.card-header { border-bottom: 1px solid var(--line); font-weight: 600; }
.alert { padding: 14px 18px; margin-bottom: 20px; border-radius: 12px; border: 1px solid rgba(88, 196, 255, .35); background: rgba(88, 196, 255, .08); }
.alert-warning { border-color: rgba(245, 192, 74, .4); background: rgba(245, 192, 74, .08); }
.alert-danger, .alert-error { border-color: rgba(255, 84, 112, .45); background: rgba(255, 84, 112, .08); }
.alert-success { border-color: rgba(31, 224, 160, .4); background: rgba(31, 224, 160, .08); }
#system-message-container { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.is-home #system-message-container:not(:empty) { padding-top: 28px; }

/* ---------- Footer ---------- */
.tr-footer { margin-top: var(--section); padding: 60px 0 26px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 17, 24, .7), var(--bg)); font-size: 14.5px; }
.tr-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-bottom: 36px; }
.tr-footer__brand p { max-width: 44ch; margin: 18px 0 20px; color: var(--muted); }
.tr-social { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line-2); color: var(--muted); transition: all .2s; }
.tr-social a:hover { color: var(--bull); border-color: var(--bull); background: rgba(31, 224, 160, .08); }
.tr-social svg { width: 19px; height: 19px; }
.tr-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.tr-footer__title { margin: 0 0 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tr-footer__cols ul, .tr-footer__menu ul { list-style: none; margin: 0; padding: 0; }
.tr-footer__cols li { margin-bottom: 10px; }
.tr-footer__menu > ul, .tr-footer__menu .mod-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 28px; }
.tr-footer__menu .mod-menu > li > a, .tr-footer__menu .mod-menu > li > span { font-weight: 600; color: var(--text); }
.tr-footer__menu .mod-menu__sub { margin-top: 10px; display: grid; gap: 8px; }
.tr-footer__menu .mod-menu__toggle-sub { display: none; }
.tr-footer a { color: var(--muted); text-decoration: none; }
.tr-footer a:hover { color: var(--text); }
.tr-footer__risk { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--faint); }
.tr-footer__risk .tr-ico { width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }
.tr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- Errore ---------- */
.tr-error { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); overflow-x: clip; }
.tr-error__box { max-width: 640px; }
.tr-error__code { position: relative; margin: 30px 0 6px; font-family: var(--mono); font-size: clamp(96px, 20vw, 190px); font-weight: 600; line-height: 1; letter-spacing: -.04em; user-select: none; }
.tr-error__code span { background: linear-gradient(180deg, var(--text), rgba(230, 237, 243, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-error__code::before, .tr-error__code::after { content: ""; position: absolute; left: -10%; right: -10%; height: 2px; }
.tr-error__code::before { top: 8%; background: linear-gradient(90deg, transparent, var(--bull), transparent); }
.tr-error__code::after { bottom: 8%; background: linear-gradient(90deg, transparent, var(--bear), transparent); }
.tr-error .tr-lead { margin-inline: auto; }
.tr-error .tr-actions { justify-content: center; margin-top: 28px; }
.tr-error__debug { margin-top: 32px; text-align: left; font-size: 12px; overflow: auto; }

/* ---------- Ingresso animato ---------- */
.tr-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tr-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.tr-header__inner { gap: 14px; }
	.tr-nav .mod-menu > li > a, .tr-nav .mod-menu > li > span { padding-inline: 9px; font-size: 14px; }
	.tr-header__user__link span { display: none; }
	.tr-firms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tr-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	:root { --header-h: 64px; }
	.tr-header { background: rgba(5, 8, 12, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .06); }
	.tr-burger { display: inline-block; }
	.tr-header__user { display: none; }
	.tr-header__cta { margin-left: auto; }
	.tr-nav {
		position: fixed; inset: var(--tr-nav-top, var(--header-h)) 0 0 0; z-index: 69; display: block;
		padding: 20px var(--gutter) 60px; overflow-y: auto;
		background: radial-gradient(80% 50% at 100% 100%, rgba(31, 224, 160, .14), transparent 70%), var(--bg);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.nav-open .tr-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav-open .tr-header { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
	.tr-nav .mod-menu { display: block; }
	.tr-nav .mod-menu li { display: flex; flex-wrap: wrap; align-items: center; }
	.tr-nav .mod-menu > li { border-bottom: 1px solid var(--line); }
	.tr-nav .mod-menu > li > a, .tr-nav .mod-menu > li > span { flex: 1; padding: 16px 0; border-radius: 0; background: none !important; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); white-space: normal; }
	.tr-nav .mod-menu > li.parent > a::after, .tr-nav .mod-menu > li.parent > span::after { display: none; }
	.tr-nav .mod-menu > li.current > a, .tr-nav .mod-menu > li.active > a { color: var(--bull); }
	.tr-nav .mod-menu > li.current > a::before, .tr-nav .mod-menu > li.active > a::before { display: none; }
	.tr-nav .tr-subtoggle { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border-radius: 11px; background: none; border: 1px solid var(--line-2); color: var(--text); }
	.tr-nav .tr-subtoggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
	.tr-nav li.is-open > .tr-subtoggle { border-color: var(--bull); color: var(--bull); }
	.tr-nav li.is-open > .tr-subtoggle::before { transform: rotate(225deg) translate(-2px, -2px); }
	.tr-nav .mod-menu__sub .tr-subtoggle { width: 34px; height: 34px; }
	.tr-nav .mod-menu__sub, .tr-nav .mod-menu__sub[aria-hidden] { display: none; flex-basis: 100%; padding: 0 0 14px; margin: 0; }
	.tr-nav li.is-open > .mod-menu__sub { display: block; }
	.tr-nav .mod-menu__sub > li > a, .tr-nav .mod-menu__sub > li > span { flex: 1; padding: 10px 4px; font-size: 16.5px; color: var(--muted); text-decoration: none; }
	.tr-nav .mod-menu__sub .mod-menu__sub { margin: 0 0 6px 6px; padding-left: 12px; border-left: 1px solid var(--line-2); }
	.tr-nav .mod-menu__sub .mod-menu__sub a { padding: 8px 4px; font-size: 15px; }
	.tr-nav__search { margin-top: 24px; }
	.tr-nav__user { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
	.tr-nav__user__link { flex: 1; justify-content: center; padding: 14px; border: 1px solid var(--line-2); font-size: 15px; color: var(--text); }
	.tr-nav__user__link .tr-ico { width: 17px; height: 17px; }
	.tr-nav__user__link--alt { background: rgba(31, 224, 160, .1); border-color: rgba(31, 224, 160, .4); color: var(--bull); }

	.tr-hero__grid { grid-template-columns: 1fr; }
	.tr-wallchart { max-width: 680px; }
	.tr-head--row { flex-direction: column; align-items: flex-start; }
	.tr-markets__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tr-cbots__grid, .tr-posts, .tr-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tr-firms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tr-partners__panel { grid-template-columns: 1fr; }
	.tr-layout.has-right { grid-template-columns: 1fr; }
	.tr-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.tr-markets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tr-market { padding: 15px 14px 13px; }
	.tr-market__spark { width: 56px; }
	.tr-market__title { font-size: 15.5px; }
	.tr-market__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
	.tr-tools__grid { grid-template-columns: 1fr; }
	.tr-benefits { grid-template-columns: 1fr; }
	.tr-locked { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.tr-header__cta span { display: none; }
	.tr-header__cta { width: 44px; height: 44px; padding: 0; }
	.tr-logo__text small { display: none; }
	.tr-hero { padding-top: calc(var(--header-h) + 34px); }
	.tr-hero__title { font-size: clamp(36px, 10.5vw, 46px); }
	.tr-stats { gap: 18px 26px; }
	.tr-stats div { flex: 1 1 40%; }
	.tr-wallchart__legend { display: none; }
	.tr-cbots__grid, .tr-posts, .tr-plans, .tr-firms, .tr-services__grid { grid-template-columns: 1fr; }
	.tr-firm--slot { min-height: 0; padding-block: 28px; }
	.tr-apply { padding: 22px 18px; }
	.tr-partners__panel { padding: 26px 18px; border-radius: 18px; }
	.tr-posts--list .tr-post.is-wide { flex-direction: column; }
	.tr-posts--list .tr-post.is-wide .tr-post__img { flex: none; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
	.float-start, .float-end, .pull-left, .pull-right { float: none; margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.tr-js [data-reveal] { opacity: 1; transform: none; }
	.tr-js .tr-candle { opacity: 1; }
	.tr-tape__track { animation: none; }
}

@media print {
	.tr-header, .tr-footer, .tr-tape, .tr-community { display: none !important; }
	body { background: #fff !important; color: #000 !important; }
	body::before { display: none; }
}

/* ---------- Articoli che sono pagine HTML intere (es. Morning Markets) ----------
 * I loro stili valgono solo dentro .tr-doc: il documento appare come un foglio dentro la pagina. */
.tr-doc { border-radius: 14px; overflow-wrap: anywhere; }
.tr-doc img, .tr-doc iframe { max-width: 100%; }
.tr-doc > :first-child { margin-top: 0; }
@media (max-width: 640px) {
	/* Il testo giustificato sui telefoni fa buchi tra le parole */
	.tr-doc p { text-align: left !important; }
}

/* Credito del produttore (si spegne dalle opzioni dello stile) */
.tr-footer__credit { opacity: .75; }
.tr-footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tr-footer__credit a:hover { opacity: 1; }
