/* ==========================================================================
   STRTWR – main stylesheet (mobile-first)
   Breakpoints: 600 (large phone) · 768 (tablet) · 1100 (desktop) · 1400 (wide)
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL – no third-party requests) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-var.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); }

/* ---------- Tokens: direzione A "Monochrome Drop" ---------- */
:root {
	--st-accent: #c6ff3d;          /* lime: solo CTA, drop del giorno, stati live */
	--st-on-accent: #0a0a0a;
	--st-live: #c6ff3d;
	--st-bg-light: #ffffff;
	--st-bg-dark: #0a0a0a;

	--st-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--st-font-display: "Archivo", "Arial Black", system-ui, sans-serif;
	--st-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--st-radius: 2px;
	--st-radius-sm: 2px;
	--st-gap: 16px;
	--st-appbar-h: 56px;
	--st-bottombar-h: 64px;
	--st-safe-b: env(safe-area-inset-bottom, 0px);
	--st-ease: cubic-bezier(.2, .8, .2, 1);
}

:root,
[data-theme="light"] {
	--st-bg: var(--st-bg-light);
	--st-surface: #ffffff;
	--st-surface-2: #f2f2f2;
	--st-text: #0a0a0a;
	--st-muted: #6b6b6b;
	--st-sub: #4a4a4a;
	--st-line: #e5e5e5;
	--st-primary: #0a0a0a;
	--st-on-primary: #ffffff;
	--st-primary-ink: #0a0a0a;
	--st-accent-ink: #0a0a0a;
	--st-live-ink: #0a0a0a;
	--st-bar: #0a0a0a;
	--st-bar-text: #ffffff;
	--st-photo: #ededed;
	--st-shadow: none;
	color-scheme: light;
}

[data-theme="dark"] {
	--st-bg: var(--st-bg-dark);
	--st-surface: #0a0a0a;
	--st-surface-2: #171717;
	--st-text: #f5f5f5;
	--st-muted: #a3a3a3;
	--st-sub: #c7c7c7;
	--st-line: #2a2a2a;
	--st-primary: #f5f5f5;
	--st-on-primary: #0a0a0a;
	--st-primary-ink: #f5f5f5;
	--st-accent-ink: #c6ff3d;
	--st-live-ink: #c6ff3d;
	--st-bar: #1c1c1c;
	--st-bar-text: #f5f5f5;
	--st-photo: #1c1c1c;
	--st-shadow: none;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--st-bg);
	color: var(--st-text);
	font: 400 16px/1.55 var(--st-font);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	overflow-x: hidden;
}
body.st-has-bottombar { padding-bottom: calc(var(--st-bottombar-h) + var(--st-safe-b)); }
body.st-lock { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--st-primary-ink); } }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--st-font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--st-primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.st-skip:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: var(--st-primary); color: var(--st-on-primary); padding: 8px 14px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.st-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.st-icon { flex: none; }

/* ---------- Buttons ---------- */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; transition: transform .15s var(--st-ease), background .2s; }
.st-btn:active { transform: scale(.97); }
.st-btn--primary { background: var(--st-primary); color: var(--st-on-primary); }
.st-btn--primary:hover { color: var(--st-on-primary); filter: brightness(1.08); }
.st-btn--ghost { background: var(--st-surface); border-color: var(--st-line); }
.st-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: transparent; border: 0; }
.st-iconbtn:hover { background: var(--st-surface-2); }
[data-st-mode] .st-icon--sun { display: none; }
[data-theme="dark"] [data-st-mode] .st-icon--sun { display: block; }
[data-theme="dark"] [data-st-mode] .st-icon--moon { display: none; }

/* ---------- App bar ---------- */
.st-appbar {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--st-bg) 82%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--st-line);
	padding-top: env(safe-area-inset-top, 0px);
	transition: transform .25s var(--st-ease);
}
.st-appbar.is-hidden { transform: translateY(-100%); }
.admin-bar .st-appbar { top: 46px; }
@media (max-width: 600px) { .admin-bar .st-appbar { top: 0; } }
@media (min-width: 783px) { .admin-bar .st-appbar { top: 32px; } }
.st-appbar__inner { display: flex; align-items: center; gap: 4px; height: var(--st-appbar-h); padding-inline: 6px; }
.st-appbar { view-transition-name: st-appbar; }
.st-brand { flex: 1; min-width: 0; overflow: hidden; }
.st-brand img { max-height: 34px; width: auto; }
.st-brand__text { display: flex; align-items: center; gap: 8px; min-width: 0; font: 800 19px/1 var(--st-font-display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-brand__mark { flex: none; }
@media (max-width: 420px) { .st-appbar .st-livepill { display: none; } } /* Live is in the bottom bar */
.st-brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--st-primary); color: var(--st-on-primary); font-size: 16px; transform: skewX(-8deg); }
.st-appbar__actions { display: flex; align-items: center; gap: 2px; }
.st-nav { display: none; }
.st-livepill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; margin-right: 4px; border-radius: 999px; background: color-mix(in srgb, var(--st-live) 14%, transparent); color: var(--st-live-ink); font: 800 12px/1 var(--st-font); letter-spacing: .06em; }
.st-livepill:hover { color: var(--st-live-ink); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-live); box-shadow: 0 0 0 0 var(--st-live); animation: st-pulse 1.6s infinite; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-live) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.st-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--st-primary); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Ticker + chips ---------- */
.st-ticker { border-bottom: 1px solid var(--st-line); background: var(--st-surface); }
.st-chips { padding-top: 12px; padding-inline: 0; }
.st-chips .st-chips__list { padding-inline: 16px; scroll-padding-inline: 16px; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.st-chips__list, .st-scroller {
	display: flex; gap: 8px; list-style: none; margin: 0; padding: 0 0 4px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.st-chips__list::-webkit-scrollbar, .st-scroller::-webkit-scrollbar { display: none; }
.st-chips__list a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--st-surface); border: 1px solid var(--st-line); font-weight: 600; font-size: 14px; white-space: nowrap; scroll-snap-align: start; }
.st-chips__list .current-menu-item a, .st-chips__list .current-cat a { background: var(--st-text); color: var(--st-bg); border-color: transparent; }
@media (hover: hover) { .st-chips__list a:hover { border-color: var(--st-primary); } }
.st-chips__list a:active { transform: scale(.96); }

/* ---------- Drawer ---------- */
.st-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.st-drawer.is-open { visibility: visible; }
.st-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.st-drawer.is-open .st-drawer__backdrop { opacity: 1; }
.st-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--st-surface); padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s var(--st-ease); }
.st-drawer.is-open .st-drawer__panel { transform: none; }
.st-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 18px; }
.st-drawer__menu, .st-drawer__menu ul, .st-drawer__sports { list-style: none; margin: 0; padding: 0; }
.st-drawer__menu a, .st-drawer__sports a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 17px; }
.st-drawer__menu a::after, .st-drawer__sports a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--st-muted); border-top: 2px solid var(--st-muted); transform: rotate(45deg); opacity: .6; }
.st-drawer__menu .current-menu-item > a, .st-drawer__sports .current-menu-item > a { background: color-mix(in srgb, var(--st-primary) 14%, transparent); color: var(--st-primary-ink); }
.st-drawer__menu a:active, .st-drawer__sports a:active { background: var(--st-surface-2); }
.st-drawer__head strong { font: 800 20px/1 var(--st-font-display); text-transform: uppercase; }
.st-drawer__menu .sub-menu { padding-left: 14px; }
.st-drawer__label { margin: 18px 8px 4px; color: var(--st-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.st-drawer__install { width: 100%; margin-top: 20px; }

/* ---------- Search sheet ---------- */
.st-search { position: fixed; inset: 0; z-index: 95; background: color-mix(in srgb, var(--st-bg) 96%, transparent); backdrop-filter: blur(10px); display: none; }
.st-search.is-open { display: block; animation: st-fade .2s; }
.st-search__sheet { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 24px; height: 100%; display: flex; flex-direction: column; }
.st-search__form { display: flex; align-items: center; gap: 10px; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 14px; padding: 4px 4px 4px 14px; }
.st-search__form input { flex: 1; border: 0; background: transparent; font-size: 17px; height: 48px; color: var(--st-text); outline: none; min-width: 0; }
.st-search__results { overflow-y: auto; padding-top: 12px; }
.st-search__results:empty { display: none; }
.st-search__suggest { overflow-y: auto; padding-top: 18px; }
.st-search__suggest .st-eyebrow { margin: 0 4px 10px; }
.st-search__suggest .st-chips__list { padding: 0 0 6px; mask-image: none; -webkit-mask-image: none; flex-wrap: wrap; }
.st-search__latest { list-style: none; margin: 18px 0 0; padding: 0; }
.st-search__latest a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--st-line); font-weight: 600; }
.st-search__latest .st-icon { color: var(--st-muted); }
.st-search.has-results .st-search__suggest { display: none; }
.st-search__results a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
.st-search__results a:hover { background: var(--st-surface); }
.st-search__results img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
@keyframes st-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Layout ---------- */
.st-main { min-height: 60vh; outline: none; }
.st-layout { display: grid; gap: 24px; padding-top: 16px; padding-bottom: 32px; }
.st-layout__main { min-width: 0; }
.st-layout__side { min-width: 0; }
.st-sticky { position: sticky; top: calc(var(--st-appbar-h) + 16px); display: grid; gap: 16px; }
.st-elementor-full { width: 100%; }

.st-section-title { display: flex; align-items: center; gap: 10px; font-size: 20px; text-transform: uppercase; margin: 28px 0 12px; }
.st-section-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--st-primary); }
.st-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--st-muted); }

/* ---------- Badge + meta ---------- */
.st-badge { --st-badge: var(--st-primary); display: inline-block; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--st-badge) 16%, transparent); color: var(--st-badge); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
[data-theme="light"] .st-badge { color: color-mix(in srgb, var(--st-badge) 55%, #000); background: color-mix(in srgb, var(--st-badge) 14%, #fff); }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--st-muted); font-size: 13px; }
.st-meta > * + *::before { content: "·"; margin-right: 10px; }
.st-meta__read { display: inline-flex; align-items: center; gap: 4px; }
.st-meta__read::before { margin-right: 6px !important; }

/* ---------- Cards ---------- */
.st-grid { display: grid; gap: var(--st-gap); grid-template-columns: 1fr; }
.st-feed { display: grid; gap: 2px; background: var(--st-line); border-radius: var(--st-radius); overflow: hidden; }
.st-card { position: relative; display: flex; flex-direction: column; background: var(--st-surface); border-radius: var(--st-radius); overflow: hidden; box-shadow: var(--st-shadow); transition: transform .2s var(--st-ease); }
.st-card:active { transform: scale(.985); }
.st-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--st-surface-2); overflow: hidden; }
.st-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--st-ease); }
@media (hover: hover) { .st-card:hover .st-card__media img { transform: scale(1.04); } }
.st-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--st-muted); }
.st-card__play { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .6); }
.st-card__play::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.st-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.st-card__body .st-badge { align-self: flex-start; }
.st-card__title { font-size: 21px; line-height: 1.15; margin: 0; }
.st-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card tappable */
.st-card__excerpt { margin: 0; color: var(--st-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-card .st-badge, .st-card .st-meta { position: relative; z-index: 1; }
.st-card .st-meta { margin-top: auto; }

.st-card--row { flex-direction: row; border-radius: 0; box-shadow: none; }
.st-card--row .st-card__media { flex: 0 0 112px; aspect-ratio: 1; margin: 12px 0 12px 12px; border-radius: 12px; }
.st-card--row .st-card__body { padding: 12px 14px; gap: 6px; }
.st-card--row .st-card__title { font-size: 18px; }

.st-card--hero .st-card__media { aspect-ratio: 1; max-height: 68vh; width: 100%; }
.st-card--hero .st-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .9)); }
.st-card--hero .st-card__body { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding: 18px; gap: 10px; }
.st-card--hero .st-card__title { font-size: clamp(26px, 7.4vw, 48px); line-height: 1.04; text-transform: uppercase; }
.st-card--hero .st-badge { background: color-mix(in srgb, var(--st-badge) 70%, #000); color: #fff; filter: none; }
.st-card--hero .st-card__excerpt, .st-card--hero .st-meta { color: rgba(255, 255, 255, .8); }
.st-hero { margin-top: 4px; }

.st-scroller > .st-card { flex: 0 0 78%; scroll-snap-align: start; }

/* Skeleton */
.st-skel { background: linear-gradient(90deg, var(--st-surface-2) 25%, var(--st-surface) 37%, var(--st-surface-2) 63%); background-size: 400% 100%; animation: st-shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes st-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.st-pager { display: flex; justify-content: center; padding: 24px 0; }
.st-pager.is-loading .st-btn { opacity: .6; pointer-events: none; }

/* ---------- Archive head / hub ---------- */
.st-archive-head { --st-badge: var(--st-primary); position: relative; padding: 18px; margin-bottom: 16px; border-radius: var(--st-radius); background: linear-gradient(135deg, color-mix(in srgb, var(--st-badge) 28%, var(--st-surface)), var(--st-surface)); overflow: hidden; }
.st-archive-head__title { font-size: clamp(28px, 8vw, 56px); line-height: 1.02; text-transform: uppercase; margin: 0; }
.st-archive-head__desc { color: var(--st-muted); margin-top: 6px; }
.st-hub { margin-top: 16px; }

/* ---------- Article ---------- */
.st-article__head { padding-top: 4px; display: grid; justify-items: start; gap: 10px; }
.st-crumbs { font-size: 13px; color: var(--st-muted); }
.st-crumbs span { margin: 0 4px; }
.st-article__title { font-size: clamp(28px, 7.6vw, 56px); line-height: 1.04; margin: 0; text-transform: uppercase; }
.st-article__lead { font-size: clamp(17px, 4.4vw, 20px); line-height: 1.45; color: var(--st-muted); margin: 0; }
.st-article__byline { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; margin-top: 4px; border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); }
.st-avatar { border-radius: 50%; }
.st-article__media { margin: 16px -16px 20px; }
.st-article__media img { width: 100%; }
.st-article__media figcaption { font-size: 13px; color: var(--st-muted); padding: 8px 16px 0; }

.st-prose { font-size: 17px; line-height: 1.7; max-width: 720px; overflow-wrap: break-word; }
.st-prose > * { margin: 0 0 1.1em; }
.st-prose h2 { font-size: clamp(24px, 6vw, 32px); margin: 1.6em 0 .5em; }
.st-prose h3 { font-size: clamp(20px, 5vw, 25px); margin: 1.4em 0 .4em; }
.st-prose a { color: var(--st-primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.st-prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--st-primary); font-family: var(--st-font-display); font-size: clamp(22px, 5.6vw, 28px); line-height: 1.25; }
.st-prose img, .st-prose figure { border-radius: 12px; }
.st-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.st-prose th, .st-prose td { padding: 10px; border-bottom: 1px solid var(--st-line); text-align: left; }
.st-prose .alignwide, .st-prose .alignfull { max-width: none; }

.st-article__foot { display: grid; gap: 16px; margin: 28px 0; }
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tags a { padding: 6px 12px; border-radius: 999px; background: var(--st-surface); border: 1px solid var(--st-line); font-size: 13px; font-weight: 600; }

/* ---------- Comments ---------- */
.st-comments__list { list-style: none; padding: 0; }
.st-comments__list .comment-body { background: var(--st-surface); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.st-comments__list .children { list-style: none; padding-left: 18px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea, .st-searchform input {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--st-line); background: var(--st-surface); color: var(--st-text); font: inherit; font-size: 16px;
}
.st-searchform { display: flex; gap: 8px; margin: 12px 0; }

/* ---------- Widgets ---------- */
.st-widget { background: var(--st-surface); border-radius: var(--st-radius); padding: 16px; box-shadow: var(--st-shadow); min-width: 0; }
.st-widget__title { font-size: 18px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.st-widget__title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--st-primary); }
.st-widget ul { list-style: none; padding: 0; margin: 0; }
.st-widget li { padding: 8px 0; border-bottom: 1px solid var(--st-line); }
.st-home-top, .st-after { display: grid; gap: 16px; }

/* ---------- Empty / 404 ---------- */
.st-empty { text-align: center; padding: 48px 16px; display: grid; gap: 12px; justify-items: center; }
.st-404__code { font: 800 120px/1 var(--st-font-display); margin: 0; }
.st-404__code span { color: var(--st-primary-ink); }

/* ---------- Footer ---------- */
.st-footer { background: var(--st-surface); border-top: 1px solid var(--st-line); padding: 32px 0 28px; margin-top: 32px; font-size: 14px; }
.st-footer__cols { display: grid; gap: 24px; margin-bottom: 24px; }
.st-footer__cols .st-widget { box-shadow: none; padding: 0; background: none; }
.st-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 12px; font-weight: 600; }
.st-footer__copy { color: var(--st-muted); margin: 0; font-size: 12px; line-height: 1.5; }
.st-footer__menu a { display: inline-block; padding: 6px 0; }

/* ---------- Bottom bar (mobile app nav) ---------- */
.st-bottombar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	height: calc(var(--st-bottombar-h) + var(--st-safe-b)); padding-bottom: var(--st-safe-b);
	background: color-mix(in srgb, var(--st-surface) 88%, transparent);
	backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
	border-top: 1px solid var(--st-line);
	view-transition-name: st-bottombar;
}
.st-bottombar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--st-muted); }
.st-bottombar__item .st-icon { box-sizing: content-box; padding: 4px 18px; border-radius: 999px; transition: transform .15s, background .2s; }
.st-bottombar__item.is-active { color: var(--st-text); font-weight: 700; }
.st-bottombar__item.is-active .st-icon { color: var(--st-primary-ink); background: color-mix(in srgb, var(--st-primary) 18%, transparent); }
@media (hover: hover) { .st-bottombar__item:hover { color: var(--st-text); } }
.st-bottombar__item:active .st-icon { transform: scale(.9); background: var(--st-surface-2); }

.st-totop { position: fixed; right: 14px; bottom: calc(var(--st-bottombar-h) + var(--st-safe-b) + 14px); z-index: 55; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--st-text); color: var(--st-bg); display: grid; place-items: center; box-shadow: var(--st-shadow); }
.st-toast { position: fixed; left: 50%; bottom: calc(var(--st-bottombar-h) + var(--st-safe-b) + 16px); z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--st-text); color: var(--st-bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: .25s var(--st-ease); }
.st-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Phones (< 600px): app-style compact feed, tighter article head
   ========================================================================== */
@media (max-width: 599px) {
	.st-layout { gap: 20px; padding-top: 14px; }

	/* Feed: one grouped card with compact rows (thumb + title), like news apps */
	.st-grid { gap: 0; background: var(--st-surface); border-radius: var(--st-radius); box-shadow: var(--st-shadow); overflow: hidden; }
	.st-grid > .st-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 0; box-shadow: none; background: transparent; }
	.st-grid > .st-card + .st-card { border-top: 1px solid var(--st-line); }
	.st-grid .st-card__media { flex: 0 0 104px; aspect-ratio: 4 / 3; border-radius: 10px; order: 2; }
	.st-grid .st-card__body { padding: 0; gap: 6px; min-height: 78px; }
	.st-grid .st-card__title { font-size: 17px; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.st-grid .st-card__excerpt, .st-grid .st-meta__author, .st-grid .st-meta__read { display: none; }
	.st-grid .st-meta { font-size: 12px; }
	.st-grid .st-meta__time::before { content: none; }
	.st-grid .st-badge { font-size: 10px; padding: 2px 7px; }
	.st-grid .st-card__play { width: 28px; height: 28px; left: 6px; bottom: 6px; }
	.st-grid .st-card__play::after { left: 11px; top: 8px; border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
	.st-grid > .st-card:active { transform: none; background: var(--st-surface-2); }

	.st-card--hero .st-card__excerpt { display: none; }
	.st-hero .st-card { box-shadow: none; }

	/* Article: content first */
	.single .st-chips, .page .st-chips { display: none; }
	.st-crumbs { display: none; }
	.st-article__byline .st-avatar { width: 36px; height: 36px; }

	.st-archive-head { margin-inline: -16px; border-radius: 0; padding: 20px 16px; }
	.st-footer { text-align: left; }
	.st-footer__menu { justify-content: flex-start; }
}

/* ---------- Page transitions (Chrome/Edge/Safari 18+; ignored elsewhere) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ==========================================================================
   ≥ 600px – large phones / small tablets
   ========================================================================== */
@media (min-width: 600px) {
	.st-container { padding-inline: 20px; }
	.st-grid { grid-template-columns: repeat(2, 1fr); }
	.st-card--hero .st-card__media { aspect-ratio: 16 / 9; }
	.st-scroller > .st-card { flex-basis: 46%; }
	.st-article__media { margin-inline: 0; }
	.st-article__media img { border-radius: var(--st-radius); }
	.st-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   ≥ 768px – tablets: bottom bar becomes optional rail; bigger type
   ========================================================================== */
@media (min-width: 768px) {
	:root { --st-appbar-h: 64px; --st-gap: 20px; }
	.st-card--row .st-card__media { flex-basis: 180px; aspect-ratio: 16 / 10; }
	.st-card--hero .st-card__body { padding: 32px; max-width: 80%; }
	.st-archive-head { padding: 32px; }
}

/* ==========================================================================
   ≥ 1100px – desktop: inline nav, sidebar, no bottom bar
   ========================================================================== */
@media (min-width: 1100px) {
	body.st-has-bottombar { padding-bottom: 0; }
	.st-bottombar { display: none; }
	.st-totop { bottom: 24px; right: 24px; }
	.st-toast { bottom: 24px; }
	.st-appbar__menu { display: none; }
	.st-brand { flex: 0 0 auto; margin-right: 24px; }
	.st-nav { display: block; flex: 1; }
	.st-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
	.st-nav__list > li { position: relative; }
	.st-nav__list > li > a { display: flex; align-items: center; height: var(--st-appbar-h); padding: 0 12px; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
	.st-nav__list > .current-menu-item > a, .st-nav__list > .current-menu-ancestor > a { box-shadow: inset 0 -3px var(--st-primary); }
	.st-nav__list .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--st-surface); border-radius: 14px; box-shadow: var(--st-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--st-ease); }
	.st-nav__list li:hover > .sub-menu, .st-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.st-nav__list .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
	.st-nav__list .sub-menu a:hover { background: var(--st-surface-2); }

	.st-has-sidebar .st-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
	.st-layout--page { grid-template-columns: minmax(0, 1fr) !important; max-width: 860px; }
	.st-grid { grid-template-columns: repeat(3, 1fr); }
	.st-has-sidebar .st-grid { grid-template-columns: repeat(2, 1fr); }
	.st-card--hero .st-card__media { aspect-ratio: 21 / 9; }
	.st-scroller { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
	.st-has-sidebar .st-scroller { grid-template-columns: repeat(2, 1fr); }
	.st-chips { display: none; } /* desktop uses the inline nav */
}

@media (min-width: 1400px) {
	.st-has-sidebar .st-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Print */
@media print { .st-appbar, .st-ticker, .st-chips, .st-bottombar, .st-share, .st-related, .st-comments, .st-layout__side, .st-footer { display: none !important; } }

/* Plugin widgets inside prose (pages/posts): no prose link styling */
.st-prose .stc a { color: inherit; text-decoration: none; }
.st-prose .stc table { display: table; font-size: 14px; }
.st-prose .stc ul, .st-prose .stc ol { padding: 0; }
.st-prose > .stc { max-width: none; }
.st-layout--page .st-prose { max-width: none; }

/* Predictions archive */
.st-preds-hub { display: grid; gap: 20px; }

/* Logged-in users: keep overlays below the WordPress admin bar */
.admin-bar .st-search__sheet, .admin-bar .st-drawer__panel { padding-top: calc(env(safe-area-inset-top, 0px) + 46px + 12px); }
@media (min-width: 783px) { .admin-bar .st-search__sheet, .admin-bar .st-drawer__panel { padding-top: calc(32px + 12px); } }

/* Custom logo + site name in the app bar */
.st-brand__logo { width: 36px; height: 36px; flex: none; border-radius: 9px; object-fit: contain; }
.st-brand__text--logo span { overflow: hidden; text-overflow: ellipsis; }

/* Empty home (new site) */
.st-empty--soon { background: var(--st-surface); border-radius: var(--st-radius); box-shadow: var(--st-shadow); padding: 32px 20px; }
.st-empty--soon h3 { margin: 0; font-size: 24px; text-transform: uppercase; }
.st-empty--soon p { margin: 0; color: var(--st-muted); }
.st-empty__ico { font-size: 36px; line-height: 1; }
.st-home-top { margin-bottom: 8px; }


/* ==========================================================================
   v1.1 – UI polish: typography, social, share, empty states
   ========================================================================== */

/* Typography: Barlow Condensed is now real on every device */
h1, h2, h3, h4 { letter-spacing: 0; font-weight: 700; }
.st-article__title, .st-archive-head__title, .st-card--hero .st-card__title, .st-404__code { font-weight: 800; letter-spacing: -.005em; }
.st-section-title, .st-widget__title { font-weight: 700; letter-spacing: .01em; }
.st-brand__text { font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.st-card__title { font-weight: 700; }

/* Page header (Live, Classifiche…) */
.st-layout--page .st-article__head { margin-bottom: 18px; }
.st-layout--page .st-article__title { font-size: clamp(30px, 8vw, 52px); }

/* Home top area: no card-in-card */
.st-home-top { gap: 8px; margin-bottom: 4px; }
.st-home-top .st-widget { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.st-home-top .st-section-title:first-child, .st-home-top .wp-block-heading:first-child { margin-top: 4px; }

/* Widgets that render nothing (e.g. news feed temporarily unavailable) disappear */
.st-widget:has(> .stc:empty), .st-widget:has(> .wp-block-heading + .stc:empty) { display: none; }
.st-widget > .wp-block-heading { margin: 0 0 12px; font-size: 18px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.st-widget > .wp-block-heading::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--st-primary); }
.st-widget > p:last-child { margin-bottom: 0; }

/* Share bar */
.st-share { display: grid; gap: 10px; padding: 16px; border-radius: var(--st-radius); background: var(--st-surface); box-shadow: var(--st-shadow); }
.st-share__label { margin: 0; font: 700 14px/1 var(--st-font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--st-muted); }
.st-share__row { display: flex; gap: 8px; flex-wrap: wrap; }
.st-share__row > * { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; border: 0; background: var(--st-surface-2); color: var(--st-text); transition: transform .15s var(--st-ease), background .2s, color .2s; }
.st-share__row > *:active { transform: scale(.92); }
.st-share__native { background: var(--st-primary) !important; color: var(--st-on-primary) !important; }
.st-share__link--whatsapp { color: #25d366; }
.st-share__link--telegram { color: #26a5e4; }
.st-share__link--facebook { color: #1877f2; }
@media (hover: hover) {
	.st-share__link--whatsapp:hover { background: #25d366; color: #fff; }
	.st-share__link--telegram:hover { background: #26a5e4; color: #fff; }
	.st-share__link--x:hover { background: var(--st-text); color: var(--st-bg); }
	.st-share__link--facebook:hover { background: #1877f2; color: #fff; }
	.st-share__copy:hover { background: var(--st-text); color: var(--st-bg); }
}
@media (max-width: 599px) { .st-share__row > * { flex: 1 1 0; width: auto; min-width: 44px; } }

/* Social profiles (footer + drawer) */
.st-social { display: flex; flex-wrap: wrap; gap: 10px; }
.st-social__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--st-surface-2); color: var(--st-text); transition: transform .15s var(--st-ease), background .2s, color .2s; }
.st-social__link:active { transform: scale(.92); }
@media (hover: hover) {
	.st-social__link:hover { color: #fff; }
	.st-social__link--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
	.st-social__link--tiktok:hover, .st-social__link--x:hover, .st-social__link--threads:hover { background: #000; }
	.st-social__link--facebook:hover { background: #1877f2; }
	.st-social__link--youtube:hover { background: #ff0000; }
	.st-social__link--telegram:hover { background: #26a5e4; }
	.st-social__link--whatsapp:hover { background: #25d366; }
	.st-social__link--email:hover { background: var(--st-primary); color: var(--st-on-primary); }
}
.st-drawer__social { margin: 22px 8px 0; }

/* Footer */
.st-footer__cols .st-widget > .wp-block-heading { font-size: 16px; }
.st-footer__cols .st-widget p { color: var(--st-muted); line-height: 1.9; }
.st-footer__cols .st-widget a { color: var(--st-text); }
@media (hover: hover) { .st-footer__cols .st-widget a:hover { color: var(--st-primary-ink); } }
.st-footer__bottom { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--st-line); }
.st-footer__social { justify-content: center; }
@media (min-width: 768px) {
	.st-footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
	.st-footer__social { order: 2; justify-content: flex-end; }
	.st-footer__copy { order: 1; }
}

/* Sidebar on phones/tablets: on the home page the same data is already at the top */
@media (max-width: 1099px) { .home .st-layout__side, .blog .st-layout__side { display: none; } }
.st-sticky { padding-bottom: 8px; }
@media (max-width: 599px) {
	.st-footer .st-widget > .wp-block-heading { justify-content: center; }
	.st-footer .st-widget > .wp-block-heading::before { display: none; }
	.st-footer__cols { gap: 28px; }
}
@media (max-width: 1099px) { .st-footer { padding-bottom: 76px; } }
@media (min-width: 1100px) { .st-footer__social { padding-right: 60px; } }


/* ==========================================================================
   v1.2 – SPACING SYSTEM (single source of truth)
   8pt grid, Apple-HIG-like rhythm. Every component below reads these tokens:
   change a value here and the whole site stays consistent.
     --s1 4 · --s2 8 · --s3 12 · --s4 16 · --s5 20 · --s6 24 · --s7 32 · --s8 40 · --s9 48 · --s10 64
     --gutter   side margin of the page         16 / 24 / 32
     --section  space between page sections     32 / 40 / 56
     --stack    space between stacked blocks    16 / 20 / 24
     --pad      inner padding of cards/widgets  16 / 20 / 24
   ========================================================================== */
:root {
	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px; --s9: 48px; --s10: 64px;
	--gutter: 16px; --section: 32px; --stack: 16px; --pad: 16px;
	--r-sm: 12px; --r-md: 16px; --r-lg: 20px;
	--st-radius: var(--r-md);
	--st-gap: var(--stack);
	--st-appbar-h: 56px;
}
@media (min-width: 768px) {
	:root { --gutter: 24px; --section: 40px; --stack: 20px; --pad: 20px; --st-appbar-h: 64px; }
}
@media (min-width: 1100px) {
	:root { --gutter: 32px; --section: 56px; --stack: 24px; --pad: 24px; --st-appbar-h: 72px; --st-radius: var(--r-lg); }
}

/* ---------- Page frame ---------- */
.st-container { padding-inline: var(--gutter); }
.st-appbar__inner { padding-inline: max(var(--s2), calc(var(--gutter) - 10px)); gap: var(--s1); }
@media (min-width: 1100px) { .st-appbar__inner { padding-inline: var(--gutter); gap: var(--s2); } }
.st-layout { gap: var(--section); padding-top: var(--s6); padding-bottom: var(--section); }
@media (min-width: 1100px) {
	.st-layout { padding-top: var(--s7); }
	.st-has-sidebar .st-layout { gap: var(--s8); }
}
.st-sticky { top: calc(var(--st-appbar-h) + var(--s6)); gap: var(--stack); }

/* ---------- Ticker band (reference screenshot: more air above/below) ---------- */
.stc--ticker .stc-ticker { padding: var(--s4) var(--gutter); gap: var(--s3); scroll-padding-inline: var(--gutter); }
.stc-tk { padding: var(--s3) var(--s4); gap: var(--s2); border-radius: var(--r-md); min-width: 152px; }
.stc-tk__head { margin-bottom: 2px; }
.stc-ticker__empty { padding: var(--s4) var(--gutter); }
@media (min-width: 1100px) {
	.stc--ticker .stc-ticker { padding-block: var(--s5); gap: var(--s4); }
	.stc-tk { min-width: 176px; }
}

/* ---------- Chips ---------- */
.st-chips { padding-top: var(--s5); padding-bottom: var(--s1); }
.st-chips .st-chips__list { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: var(--s2); }
.st-chips__list a { height: 38px; padding: 0 var(--s4); }

/* ---------- Section headings ---------- */
.st-section-title { margin: var(--section) 0 var(--s4); gap: var(--s3); }
.st-layout__main > .st-section-title:first-child,
.st-home-top > .st-widget:first-child > .wp-block-heading:first-child,
.st-hero + .st-section-title { margin-top: 0; }
.st-hero + .st-section-title { margin-top: var(--section); }
.st-home-top { gap: var(--stack); margin-bottom: 0; }
.st-home-top .st-section-title { margin: 0 0 var(--s4); }
.st-home-top + .st-section-title, .st-home-top ~ .st-section-title { margin-top: var(--section); }

/* ---------- Cards & grids ---------- */
.st-grid, .st-scroller { gap: var(--stack); }
.st-card__body { padding: var(--pad); gap: var(--s2); }
.st-card--hero .st-card__body { padding: var(--s6); gap: var(--s3); }
@media (min-width: 1100px) { .st-card--hero .st-card__body { padding: var(--s8); } }
@media (max-width: 599px) {
	.st-grid > .st-card { padding: var(--s4); gap: var(--s3); }
	.st-grid .st-card__body { padding: 0; gap: var(--s2); }
}
.st-pager { padding: var(--s7) 0 0; }

/* ---------- Archive / hub header ---------- */
.st-archive-head { padding: var(--s6) var(--pad); margin-bottom: var(--s6); border-radius: var(--st-radius); }
.st-archive-head .st-eyebrow { margin-bottom: var(--s2); }
.st-archive-head__desc { margin-top: var(--s3); max-width: 62ch; }
.st-hub { margin-top: var(--s6); }
@media (min-width: 768px) { .st-archive-head { padding: var(--s8) var(--s7); } }
@media (max-width: 599px) { .st-archive-head { margin-inline: calc(var(--gutter) * -1); padding: var(--s6) var(--gutter); border-radius: 0; } }

/* ---------- Page header (Live, Classifiche…) ---------- */
.st-layout--page .st-article__head { margin-bottom: var(--s6); }

/* ---------- Article ---------- */
.st-article__head { gap: var(--s3); }
.st-article__byline { padding: var(--s3) 0; margin-top: var(--s2); }
.st-article__media { margin: var(--s6) calc(var(--gutter) * -1) var(--s7); }
.st-article__media figcaption { padding: var(--s2) var(--gutter) 0; }
@media (min-width: 600px) { .st-article__media { margin-inline: 0; } .st-article__media figcaption { padding-inline: 0; } }
.st-prose > * { margin: 0 0 1.15em; }
.st-article__foot { gap: var(--stack); margin: var(--section) 0; }
.st-share { padding: var(--pad); gap: var(--s3); }
.st-related { margin-top: var(--section); }
.st-related .st-section-title { margin-top: 0; }
.st-comments { margin-top: var(--section); }

/* ---------- Widgets (sidebar, home, footer) ---------- */
.st-widget { padding: var(--pad); border-radius: var(--st-radius); }
.st-widget > .wp-block-heading { margin: 0 0 var(--s4); }
.st-home-top .st-widget, .st-footer__cols .st-widget { padding: 0; }

/* ---------- Footer ---------- */
.st-footer { padding: var(--section) 0 var(--s7); margin-top: var(--section); }
.st-footer__cols { gap: var(--s7); margin-bottom: var(--s7); }
.st-footer__bottom { padding-top: var(--s6); gap: var(--s4); }
@media (max-width: 1099px) { .st-footer { padding-bottom: calc(var(--s7) + 56px); } }

/* ---------- Drawer & search ---------- */
.st-drawer__panel { padding: calc(env(safe-area-inset-top, 0px) + var(--s3)) var(--s4) var(--s7); }
.st-drawer__label { margin: var(--s6) var(--s3) var(--s2); }
.st-drawer__social { margin: var(--s6) var(--s3) 0; }
.st-search__sheet { padding: calc(env(safe-area-inset-top, 0px) + var(--s3)) var(--gutter) var(--s6); }

/* ---------- Empty states ---------- */
.st-empty { padding: var(--s9) var(--gutter); gap: var(--s3); }
.st-empty--soon { padding: var(--s8) var(--pad); }
.st-chips.st-container { padding-inline: 0; }
@media (max-width: 1099px) { .st-appbar__inner { padding-inline: calc(var(--gutter) - 11px); } } /* 44px icon buttons: glyph edge lands exactly on the gutter */
@media (min-width: 1100px) {
	/* Pages (Live, Classifiche…) sit on the same grid as the rest: aligned to the logo, readable width */
	.st-layout.st-layout--page { max-width: 1280px; }
	.st-layout--page > .st-article { max-width: 880px; }
}

/* v1.2.2 author box + AI transparency */
.st-authorbox { display: grid; grid-template-columns: 56px 1fr; gap: var(--s4, 16px); align-items: start; padding: var(--pad, 16px); border-radius: var(--st-radius); background: var(--st-surface); border: 1px solid var(--st-line); }
.st-authorbox__avatar { width: 56px; height: 56px; border-radius: 50%; }
.st-authorbox__name { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.3; }
.st-authorbox__name a { color: var(--st-text); text-decoration: none; }
.st-authorbox__name a:hover { color: var(--st-accent, var(--st-primary)); }
.st-authorbox__bio { margin: 4px 0 0; color: var(--st-muted); font-size: 14px; line-height: 1.5; }
.st-authorbox__ai { grid-column: 1 / -1; margin: 0; padding-top: var(--s3, 12px); border-top: 1px solid var(--st-line); color: var(--st-muted); font-size: 12.5px; line-height: 1.5; }

.st-archive-head { --hp: var(--pad); }
@media (min-width: 768px) { .st-archive-head { --hp: var(--s7); } }
@media (max-width: 599px) { .st-archive-head { --hp: var(--gutter); } }
.st-archive-head .st-hub { margin-top: var(--s6); }
   (la regola della sidebar che li azzera non vale qui). */

/* v1.2.5 – tema chiaro: i colori del brand usati come TESTO prendono una tonalità più profonda (contrasto AA).
   Nel tema scuro "ink" coincide con il colore originale, quindi nulla cambia. */
/* Dichiarati anche su body: lì Elementor può ridefinire --st-primary, e gli "ink" devono seguirlo. */
:root, body { --st-on-primary: #ffffff; --st-primary-ink: var(--st-primary); --st-live-ink: var(--st-live); --st-accent-ink: var(--st-accent); }
[data-theme="light"], [data-theme="light"] body { --st-primary-ink: color-mix(in srgb, var(--st-primary) 84%, #000); --st-live-ink: color-mix(in srgb, var(--st-live) 78%, #000); --st-accent-ink: color-mix(in srgb, var(--st-accent) 55%, #000); }
[data-theme="dark"] .st-badge { color: color-mix(in srgb, var(--st-badge) 62%, #fff); background: color-mix(in srgb, var(--st-badge) 20%, transparent); }
[data-theme="dark"] .st-card--hero .st-badge { color: #fff; background: color-mix(in srgb, var(--st-badge) 70%, #000); }
[data-theme="dark"], [data-theme="dark"] body { --st-primary-ink: color-mix(in srgb, var(--st-primary) 72%, #fff); --st-live-ink: color-mix(in srgb, var(--st-live) 82%, #fff); }
   e, nel tema chiaro, card e intestazione ben distinte dallo sfondo. */

/* ===== v1.4 Lingue IT/EN/ES ===== */
.st-lang { position: relative; }
.st-lang__btn { width: auto; min-width: 44px; padding: 0 8px; gap: 4px; grid-auto-flow: column; display: inline-grid; }
.st-lang__code { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.st-lang__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: grid; min-width: 168px; padding: 6px; border-radius: 14px; background: var(--st-surface); border: 1px solid var(--st-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.st-lang__menu[hidden] { display: none; }
.st-lang__menu button, .st-drawer__langs button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--st-text); font: inherit; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.st-lang__menu button:hover { background: var(--st-surface-2, rgba(0,0,0,.05)); }
.st-lang__menu button.is-active, .st-drawer__langs button.is-active { background: color-mix(in srgb, var(--st-primary) 16%, transparent); color: var(--st-primary-ink); }
.st-lang__menu button.is-active::after { content: " \2713"; }
.st-drawer__langs { display: flex; gap: 8px; padding: 4px 0 8px; }
.st-drawer__langs button { flex: 1; text-align: center; padding: 0 8px; border: 1px solid var(--st-line); border-radius: 999px; font-size: 14px; }
@media (max-width: 420px) { .st-lang__code { display: none; } .st-lang__btn { padding: 0; } }
/* Traduzione automatica: niente barra/tooltip di Google, layout invariato. */
body { top: 0 !important; }
.skiptranslate iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#st-gt { display: none !important; }


/* ==========================================================================
   Layout layer (ereditato da motori-club, neutro)
   ========================================================================== */
:root { --st-ok: #14a44d; --st-warn: #f2a40c; --st-bad: #e5484d; }
/* Brand */
.st-brand__text { gap: 10px; }
.st-brand__mark { width: auto; height: auto; background: none; transform: none; border-radius: 0; display: inline-flex; }
.st-logo-mark { display: block; border-radius: 10px; flex: none; }
.st-brand__word { font: 800 22px/1 var(--st-font-display); letter-spacing: .06em; font-style: italic; transform: skewX(-6deg); }
.st-brand__logo { max-height: 36px; width: auto; }

/* App bar extras */
.st-sellpill { display: none; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 10px; margin-right: 6px; border-radius: 999px; background: var(--st-primary); color: var(--st-on-primary) !important; font-weight: 700; font-size: 14px; }
.st-sellpill:hover { filter: brightness(1.08); }
@media (min-width: 768px) { .st-sellpill { display: inline-flex; } }
@media (max-width: 599px) { .st-hide-sm { display: none !important; } }
.st-account { display: inline-flex; }
.st-account img { width: 32px; height: 32px; border-radius: 50%; }
.st-nav__list > li > a { font-weight: 700; }
.st-nav__list .current-menu-item > a { color: var(--st-primary-ink); }

/* Buttons */
.st-btn--gold { background: var(--st-gold-grad); color: #1a1406; }
.st-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.st-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-muted { color: var(--st-muted); }
.st-steps { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 8px; }

/* Section titles with "more" link */
.st-section-title { display: flex; align-items: center; gap: 10px; }
.st-section-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font: 700 14px/1 var(--st-font); text-transform: none; letter-spacing: 0; color: var(--st-primary-ink); white-space: nowrap; }
.st-section-title--cat::before { background: var(--st-badge, var(--st-primary)); }
.st-section { margin-top: var(--section); }

/* ---------- Home: top stories ---------- */
.st-home { padding-bottom: var(--section); }
.st-topstories { padding-top: var(--s4); padding-inline: 0; }
.st-topstories__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.st-topstories__track::-webkit-scrollbar { display: none; }
.st-story { flex: 0 0 86%; scroll-snap-align: start; }
.st-story__link { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #111; color: #fff; isolation: isolate; }
.st-story__link:hover { color: #fff; }
.st-story__media, .st-story__media img, .st-story__media .st-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-story__media img { transition: transform .6s var(--st-ease); }
@media (hover: hover) { .st-story__link:hover img { transform: scale(1.04); } }
.st-story__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.88)); z-index: 1; }
.st-story__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; display: grid; gap: 8px; }
.st-story__body .st-badge { justify-self: start; color: #fff; background: color-mix(in srgb, var(--st-badge, var(--st-primary)) 85%, #000); }
.st-story__title { font: 800 clamp(22px, 6vw, 30px)/1.05 var(--st-font-display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.st-story__meta { font-size: 13px; color: rgba(255,255,255,.75); }
.st-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.st-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--st-line); transition: width .25s var(--st-ease), background .25s; }
.st-dots button.is-active { width: 22px; background: var(--st-primary); }
@media (min-width: 768px) {
	.st-story { flex-basis: 46%; }
	.st-story__link { aspect-ratio: 4 / 3; }
}
@media (min-width: 1100px) {
	.st-topstories { padding-inline: var(--gutter); padding-top: var(--s6); }
	.st-topstories__track { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; overflow: visible; padding: 0; }
	.st-story { flex: none; }
	.st-story--lead { grid-row: span 2; }
	.st-story__link { aspect-ratio: auto; height: 100%; min-height: 230px; }
	.st-story--lead .st-story__link { min-height: 520px; }
	.st-story:not(.st-story--lead) .st-story__title { font-size: 20px; }
	.st-story--lead .st-story__title { font-size: 44px; }
	.st-story--lead .st-story__body { padding: 32px; }
	.st-dots { display: none; }
}

/* ---------- Home: quick tools ---------- */
.st-quick { margin-top: var(--s6); padding-inline: 0; }
.st-quick__grid { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; }
.st-quick__grid::-webkit-scrollbar { display: none; }
.st-quick__item { flex: 0 0 auto; width: 104px; scroll-snap-align: start; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px; background: var(--st-surface); border: 1px solid var(--st-line); text-align: center; transition: transform .15s var(--st-ease), border-color .2s; }
.st-quick__item:active { transform: scale(.96); }
@media (hover: hover) { .st-quick__item:hover { border-color: color-mix(in srgb, var(--st-primary) 50%, transparent); color: inherit; } }
.st-quick__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--st-primary) 12%, var(--st-surface)); color: var(--st-primary-ink); }
.st-quick__label { font-weight: 700; font-size: 13px; line-height: 1.15; }
.st-quick__hint { display: none; font-size: 12px; color: var(--st-muted); }
@media (min-width: 768px) {
	.st-quick { padding-inline: var(--gutter); }
	.st-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 0; gap: 12px; }
	.st-quick__item { width: auto; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; column-gap: 12px; row-gap: 0; padding: 14px; }
	.st-quick__ico { grid-row: span 2; }
	.st-quick__label { font-size: 15px; }
	.st-quick__hint { display: block; }
}
@media (min-width: 1100px) { .st-quick__grid { grid-template-columns: repeat(8, 1fr); } .st-quick__item { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; } .st-quick__ico { grid-row: auto; } .st-quick__hint { display: none; } }

/* ---------- Home: market band (dark premium) ---------- */
.st-band { margin-top: var(--section); padding: var(--s8) 0; background: var(--st-ink-grad); color: #f2f2f3; position: relative; overflow: hidden; }
.st-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%), linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%); background-size: 32px 32px; background-position: 0 0, 16px 16px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.st-band > .st-container { position: relative; }
.st-band .st-eyebrow { color: #ff6b73; }
.st-band__title { font: 800 clamp(28px, 7vw, 44px)/1 var(--st-font-display); text-transform: uppercase; margin: 6px 0 18px; color: #fff; max-width: 18ch; }
.st-band__list { margin-top: var(--s7); }
.st-band .st-section-title { color: #fff; }
.st-band .st-section-more { color: #ff8a90; }
/* Plugin cards inside the dark band keep their own (light/dark) surfaces. */

/* ---------- Home: garage + fuel duo ---------- */
.st-duo { display: grid; gap: var(--stack); }
@media (min-width: 900px) { .st-duo { grid-template-columns: 1.3fr 1fr; align-items: stretch; } .st-duo--single { grid-template-columns: 1fr; } }
.st-duo__item > .stc { margin-bottom: 0; height: 100%; }

/* ---------- Card scroller (category sections) ---------- */
.st-scroller--cards { gap: 14px; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.st-scroller--cards > .st-card { flex: 0 0 76%; scroll-snap-align: start; }
@media (min-width: 600px) { .st-scroller--cards > .st-card { flex-basis: 44%; } }
@media (min-width: 1100px) { .st-scroller--cards { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; } .st-scroller--cards > .st-card:nth-child(n+7) { display: none; } }

/* ---------- App CTA ---------- */
.st-appcta { display: grid; gap: 20px; align-items: center; padding: 26px 22px; border-radius: 26px; background: var(--st-ink-grad); color: #eee; overflow: hidden; }
.st-appcta h2 { font: 800 clamp(26px, 6vw, 38px)/1.02 var(--st-font-display); text-transform: uppercase; color: #fff; margin: 6px 0 10px; }
.st-appcta p { color: rgba(255,255,255,.75); margin: 0 0 16px; max-width: 52ch; }
.st-appcta .st-eyebrow { color: #ff6b73; }
.st-appcta .st-btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.st-appcta__art { justify-self: center; transform: rotate(-8deg); filter: drop-shadow(0 20px 40px rgba(225, 11, 23, .45)); }
.st-appcta__art .st-logo-mark { border-radius: 28px; }
@media (min-width: 768px) { .st-appcta { grid-template-columns: 1fr auto; padding: 40px; } .st-appcta__art { margin-right: 20px; } }

/* ---------- App pages (plugin shortcodes) ---------- */
.st-apppage { padding-top: var(--s4); padding-bottom: var(--section); }
.st-apppage__head { margin-bottom: var(--s4); }
.st-apppage__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--st-muted); margin-bottom: 6px; }
.st-apppage__title { font: 800 clamp(28px, 6vw, 40px)/1.02 var(--st-font-display); text-transform: uppercase; margin: 0; }
@media (min-width: 1100px) { .st-apppage { padding-top: var(--s7); } }

/* ---------- Archive head extras ---------- */
.st-archive-head__subs { margin-top: var(--s4); flex-wrap: wrap; }
.st-archive-head__cta { margin-top: var(--s4); }
.st-grid__ad { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.st-footer__top { display: grid; gap: var(--s7); padding-bottom: var(--s6); border-bottom: 1px solid var(--st-line); margin-bottom: var(--s5); }
.st-footer__brand .st-brand__text { display: inline-flex; margin-bottom: 10px; }
.st-footer__claim { color: var(--st-muted); margin: 0 0 14px; max-width: 40ch; }
.st-footer__h { font: 700 13px/1 var(--st-font); text-transform: uppercase; letter-spacing: .1em; color: var(--st-muted); margin: 0 0 12px; }
.st-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-footer__col a { display: inline-block; padding: 5px 0; font-weight: 600; }
.st-footer__cols { display: grid; gap: var(--s6); grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .st-footer__top { grid-template-columns: 1fr 2fr; } .st-footer__cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Bottom bar ---------- */
.st-bottombar__item.is-active .st-icon { color: var(--st-primary-ink); background: color-mix(in srgb, var(--st-primary) 14%, transparent); }
.st-standalone .st-appbar { padding-top: max(env(safe-area-inset-top, 0px), 4px); }
/* App bar on phones: brand never truncated; language lives in the drawer. */
.st-brand { flex: 1 0 auto; overflow: visible; }
@media (max-width: 480px) { .st-appbar .st-lang { display: none; } .st-brand__word { font-size: 20px; } }
/* Home news grid: 3 columns on desktop (home has no sidebar). */
@media (min-width: 1100px) { .st-home .st-grid--news { grid-template-columns: repeat(3, 1fr); } }
.st-band .stc-m-qs__title { display: none; }
/* Sidebar with plugin modules: no double cards, single column, no empty boxes. */
.st-widget > p:empty { display: none; }
.st-widget:has(> p:only-child:empty), .st-widget:empty { display: none; }
.st-layout__side .st-widget:has(> .stc), .st-layout__side .st-widget:has(> p:empty + .stc) { padding: 0; background: none; border: 0; box-shadow: none; }
.st-layout__side .stc-m-grid { grid-template-columns: 1fr !important; }
.st-layout__side .stc-m-listings .stc-m-card:nth-child(n+4) { display: none; }
.st-layout__side .stc-tl-fmini__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- QA fixes (touch areas, spacing) ---------- */
.st-section-more, .st-apppage__back, a.st-badge { position: relative; }
.st-section-more::after, .st-apppage__back::after { content: ""; position: absolute; inset: -13px -8px; }
a.st-badge::after { content: ""; position: absolute; inset: -12px -4px; }
.st-dots button { position: relative; }
.st-dots button::after { content: ""; position: absolute; inset: -18px -4px; }
.st-apppage__back { min-height: 32px; }
/* Sticky bars inside pages (garage tabs, market toolbar, profile tabs) follow the app bar:
   when it hides on scroll they move up to the top edge instead of floating mid-air. */
body.st-bar-hidden .st-main { --st-appbar-h: env(safe-area-inset-top, 0px); }

/* ---------- QA 2: drawer & search sheet (icons inline with labels) ---------- */
.st-drawer__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 2px 0 4px; }
.st-drawer__tools a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border-radius: 14px; background: var(--st-surface-2); font-weight: 600; font-size: 14px; line-height: 1.2; }
.st-drawer__tools a:active { transform: scale(.98); }
@media (hover: hover) { .st-drawer__tools a:hover { color: var(--st-primary-ink); } }
.st-drawer__toolico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--st-primary) 14%, var(--st-surface)); color: var(--st-primary-ink); }
.st-drawer__langs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.st-drawer__langs button[data-st-mode] .st-icon--sun { display: none; }
[data-theme="dark"] .st-drawer__langs button[data-st-mode] .st-icon--sun { display: block; }
[data-theme="dark"] .st-drawer__langs button[data-st-mode] .st-icon--moon { display: none; }
.st-drawer__head .st-brand__text { display: inline-flex; align-items: center; gap: 10px; }
.st-drawer__install { display: flex; align-items: center; justify-content: center; gap: 8px; }
.st-search__market { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 18px; border-radius: 16px; background: var(--st-surface-2); font-weight: 700; }
.st-search__market span { flex: 1; }
.st-search__market .st-icon:first-child { color: var(--st-primary-ink); }
.st-search__suggest .st-eyebrow { margin: 16px 0 8px; }
.st-search__suggest .st-chips__list { flex-wrap: wrap; }
/* On phones/tablets the sidebar falls under the article: keep it light (fuel prices only). */
@media (max-width: 1099px) { .st-layout__side .stc-m-listings, .st-layout__side .stc-gt { display: none; } }
/* Comment form */
.comment-respond { margin-top: var(--s7); padding: var(--pad); border-radius: var(--st-radius); background: var(--st-surface); border: 1px solid var(--st-line); }
.comment-reply-title { font: 800 22px/1.1 var(--st-font-display); text-transform: uppercase; margin: 0 0 8px; }
.comment-form .logged-in-as, .comment-notes { font-size: 14px; color: var(--st-muted); }
.comment-form .logged-in-as a { color: var(--st-primary-ink); }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--st-line); background: var(--st-bg); color: var(--st-text); font: 16px/1.4 var(--st-font); }
.comment-form textarea { min-height: 120px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--st-muted); margin-bottom: 6px; }
/* App pages whose module shows its own title: no empty header band above it. */
.st-apppage__head:has(> .st-apppage__title.screen-reader-text:only-child) { margin: 0; }
.st-apppage:has(.st-apppage__title.screen-reader-text:only-child) { padding-top: var(--s3); }
/* QA 3: full-bleed horizontal rows keep the page margin while snapping (first/last card never touches the screen edge). */
.st-quick__grid { scroll-padding-inline: var(--gutter); }
@media (max-width: 767px) { .st-quick__grid::after { content: ""; flex: 0 0 1px; } }
@media (max-width: 1099px) { .st-topstories__track::after, .st-scroller--cards::after { content: ""; flex: 0 0 1px; } } /* end spacer: iOS ignores padding-right in scrollers */
/* Plugin carousels on phones/tablets: full-bleed like the theme rows, same 16/24px margin at rest and while snapping. */
@media (max-width: 1099px) {
	.st-container .stc-m-listings.is-carousel > .stc-scroller,
	.st-container .stc-m-dstrip > .stc-scroller,
	.st-container .stc-gx__switch.stc-scroller {
		margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
	}
	.st-container .stc-m-listings.is-carousel > .stc-scroller::after,
	.st-container .stc-m-dstrip > .stc-scroller::after,
	.st-container .stc-gx__switch.stc-scroller::after { content: ""; flex: 0 0 1px; }
}

/* QA 4: category filters live under the page title (news index, categories, tags). */
.st-archive-head__chips { margin: var(--s5) calc(var(--hp, var(--pad)) * -1) 0; }
.st-archive-head__chips .st-chips__list { padding-inline: var(--hp, var(--pad)); scroll-padding-inline: var(--hp, var(--pad)); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.st-archive-head__chips .st-chips__list::after { content: ""; flex: 0 0 1px; }
.st-archive-head__chips .current-menu-item a, .st-archive-head__chips .current-cat a { background: var(--st-text); color: var(--st-bg); border-color: transparent; }
.st-archive-head__subs + .st-archive-head__chips { margin-top: var(--s3); }
/* QA 5 (accessibility): status colours used as text keep AA contrast in dark mode. */
[data-theme="dark"] { --st-ok-ink: #4ade80; --st-warn-ink: #fbbf24; --st-bad-ink: #f87171; }
[data-theme="light"] { --st-ok-ink: #0e7a39; --st-warn-ink: #8f5e00; --st-bad-ink: #b4232a; }
/* Carousel dots: 24px touch targets, the dot is drawn inside. */
.st-dots { gap: 0; }
.st-dots button { width: 24px; height: 24px; background: none; display: grid; place-items: center; }
.st-dots button::after { content: none; }
.st-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--st-line); transition: width .25s var(--st-ease), background .25s; }
.st-dots button.is-active { width: 34px; background: none; }
.st-dots button.is-active::before { width: 22px; background: var(--st-primary); }

/* ==========================================================================
   STRTWR · Direzione A "Monochrome Drop"
   Bianco/nero, angoli vivi, Archivo Expanded per titoli e brand,
   JetBrains Mono per dati (prezzi, date, taglie), lime solo come accento.
   ========================================================================== */
body { font-family: var(--st-font); }
h1, h2, h3, h4 { font-family: var(--st-font-display); font-weight: 800; letter-spacing: -.01em; }
a:hover { color: inherit; opacity: .75; }
::selection { background: var(--st-accent); color: var(--st-on-accent); }
:focus-visible { outline: 2px solid var(--st-text); outline-offset: 2px; }

/* Brand: solo wordmark */
.st-brand__text { gap: 0; }
.st-brand__mark { display: none; }
.st-brand__word { font: 900 22px/1 var(--st-font-display); font-stretch: 125%; font-style: normal; transform: none; letter-spacing: .02em; text-transform: uppercase; }
@media (max-width: 480px) { .st-brand__word { font-size: 21px; } }

/* App bar */
.st-appbar { background: var(--st-bg); border-bottom: 1px solid var(--st-line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.st-iconbtn { border-radius: 0; }
.st-nav__list > li > a { font: 600 14px/1 var(--st-font); text-transform: none; letter-spacing: 0; }
.st-nav__list .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; color: var(--st-text); }
.st-nav__sep { width: 1px; height: 22px; background: var(--st-line); align-self: center; }
.st-nav__list--app > li > a { color: var(--st-sub); }

/* Ticker "Drop oggi" */
.st-ticker { background: var(--st-bar); color: var(--st-bar-text); }
.st-ticker__inner { display: flex; align-items: center; gap: 14px; height: 36px; overflow: hidden; white-space: nowrap; font: 500 12px/1 var(--st-font-mono); letter-spacing: .02em; }
.st-ticker__tag { flex: none; background: var(--st-accent); color: var(--st-on-accent); font-weight: 600; font-size: 10px; padding: 4px 6px; text-transform: uppercase; }
.st-ticker__item { color: inherit; text-transform: uppercase; }
.st-ticker__item:hover { color: inherit; opacity: .7; }
.st-ticker__sep { opacity: .45; }
@media (max-width: 767px) { .st-ticker__item ~ .st-ticker__sep, .st-ticker__item ~ .st-ticker__sep ~ .st-ticker__item { display: none; } }

/* Eyebrow, meta, badge: tutto in mono */
.st-eyebrow { font: 500 11px/1.2 var(--st-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); }
.st-badge, .st-story__body .st-badge { --st-badge: currentColor; padding: 0; border-radius: 0; background: none !important; color: var(--st-text) !important; font: 500 11px/1.2 var(--st-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.st-meta { font: 400 11px/1.3 var(--st-font-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--st-muted); }
.st-meta__author { color: var(--st-text); }
.st-mono { font-family: var(--st-font-mono); }

/* Chip */
.st-chips__list a { height: 32px; padding: 0 14px; border-radius: 0; background: transparent; border: 1px solid var(--st-line); font: 600 13px/1 var(--st-font); text-transform: none; }
.st-chips__list .current-menu-item a, .st-chips__list .current-cat a, .st-chips__list a[aria-current] { background: var(--st-text); color: var(--st-bg); border-color: var(--st-text); }

/* Bottoni */
.st-btn { border-radius: var(--st-radius); min-height: 44px; font: 800 13px/1 var(--st-font-display); letter-spacing: .06em; text-transform: uppercase; box-shadow: none; }
.st-btn:active { transform: none; }
.st-btn--primary { background: var(--st-primary); color: var(--st-on-primary); }
.st-btn--primary:hover { color: var(--st-on-primary); filter: none; opacity: .85; }
.st-btn--ghost { background: transparent; border: 1px solid var(--st-text); color: var(--st-text); }
.st-btn--accent { background: var(--st-accent); color: var(--st-on-accent); }
.st-btn--accent:hover { color: var(--st-on-accent); }

/* Titoli di sezione */
.st-section-title, .st-widget__title { font: 900 16px/1.1 var(--st-font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0; }
.st-section-title::before, .st-section-title--cat::before { content: none; }
.st-section-more { font: 600 13px/1 var(--st-font); color: var(--st-text); text-decoration: underline; text-underline-offset: 3px; }

/* Card articolo */
.st-card { border-radius: 0; background: transparent; box-shadow: none; border: 0; }
.st-card__media { border-radius: 0; background: var(--st-photo); }
.st-card__media img { border-radius: 0; }
.st-card__title { font: 800 18px/1.15 var(--st-font-display); letter-spacing: -.01em; text-transform: none; }
.st-card__excerpt { color: var(--st-sub); }
.st-card__placeholder { background: var(--st-photo); color: var(--st-muted); }
.st-card--row { border-top: 1px solid var(--st-line); padding-top: 12px; }

/* Storie in apertura: foto + titolo sotto (niente overlay) */
.st-story__link { aspect-ratio: auto; border-radius: 0; background: transparent; color: var(--st-text); display: grid; gap: 10px; }
.st-story__link:hover { color: var(--st-text); }
.st-story__link::after { content: none; }
.st-story__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--st-photo); }
.st-story__media img, .st-story__media .st-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-story__body { position: static; padding: 0; gap: 8px; }
.st-story__title { font: 800 clamp(22px, 6vw, 26px)/1.1 var(--st-font-display); text-transform: none; letter-spacing: -.01em; }
.st-story__meta { font: 400 11px/1.3 var(--st-font-mono); text-transform: uppercase; color: var(--st-muted); }
@media (min-width: 1100px) {
	.st-story__link { height: auto; min-height: 0; }
	.st-story--lead .st-story__link { min-height: 0; }
	.st-story--lead .st-story__media { aspect-ratio: 16 / 10; }
	.st-story--lead .st-story__title { font-size: 40px; line-height: 1.05; }
	.st-story--lead .st-story__body { padding: 0; }
	.st-story:not(.st-story--lead) .st-story__title { font-size: 18px; }
}

/* Lista numerata "Ultime" */
.st-numlist { list-style: none; margin: 0; padding: 0; counter-reset: st-n; }
.st-numlist li { counter-increment: st-n; border-top: 1px solid var(--st-line); }
.st-numlist li:first-child { border-top-color: var(--st-text); }
.st-numlist li:last-child { border-bottom: 1px solid var(--st-line); }
.st-numlist a { display: grid; grid-template-columns: auto 96px 1fr; gap: 14px; align-items: center; padding: 14px 0; }
.st-numlist a::before { content: counter(st-n, decimal-leading-zero); font: 600 13px/1 var(--st-font-mono); }
.st-numlist__img { width: 96px; height: 64px; object-fit: cover; background: var(--st-photo); }
.st-numlist__t { display: grid; gap: 4px; font: 700 16px/1.3 var(--st-font); }
.st-numlist__t small { font: 500 10px/1 var(--st-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); }

/* Drop card (data grande) */
.st-drops { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.st-drops::-webkit-scrollbar { display: none; }
.st-drop { flex: 0 0 160px; scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--st-line); color: var(--st-text); }
.st-drop:first-child { border-color: var(--st-text); }
.st-drop:hover { color: var(--st-text); }
.st-drop__img { width: 100%; height: 80px; object-fit: cover; background: var(--st-photo); display: block; }
.st-drop__body { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.st-drop__day { font: 900 30px/.9 var(--st-font-display); font-stretch: 125%; }
.st-drop__info { display: grid; gap: 3px; min-width: 0; }
.st-drop__when { font: 500 10px/1 var(--st-font-mono); text-transform: uppercase; }
.st-drop__name { font: 600 12px/1.25 var(--st-font); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-drops__cta { flex: 0 0 160px; display: flex; align-items: center; justify-content: space-between; padding: 14px; background: var(--st-accent); color: var(--st-on-accent); font: 800 13px/1.1 var(--st-font-display); letter-spacing: .06em; text-transform: uppercase; }
.st-drops__cta:hover { color: var(--st-on-accent); }
@media (min-width: 1100px) { .st-drops { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; overflow: visible; } .st-drop, .st-drops__cta { flex: none; } }

/* Strumenti STRTWR (riga compatta) */
.st-quick__item { border-radius: 0; background: transparent; border: 1px solid var(--st-line); }
.st-quick__ico { border-radius: 0; background: var(--st-surface-2); color: var(--st-text); }
.st-quick__label { font: 700 13px/1.15 var(--st-font); }
@media (hover: hover) { .st-quick__item:hover { border-color: var(--st-text); } }

/* Bottom bar: Home · Drops · + · Armadio · Profilo */
.st-bottombar { background: var(--st-bg); border-top: 1px solid var(--st-line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.st-bottombar__item { color: var(--st-muted); font: 500 10px/1 var(--st-font); }
.st-bottombar__item .st-icon { padding: 2px 10px; border-radius: 0; background: none !important; }
.st-bottombar__item.is-active { color: var(--st-text); font-weight: 700; }
.st-bottombar__item.is-active .st-icon { color: var(--st-text); background: none; }
.st-bottombar__item--plus span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.st-bottombar__item--plus .st-icon { box-sizing: border-box; width: 48px; height: 40px; padding: 9px 13px; background: var(--st-primary) !important; color: var(--st-accent); }
[data-theme="dark"] .st-bottombar__item--plus .st-icon { color: var(--st-on-primary); }

/* Pagine app, archivi, footer */
.st-apppage__title, .st-archive-head__title, .st-404__code { font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.st-footer { background: var(--st-bg); border-top: 1px solid var(--st-text); }
.st-footer__h { font: 500 11px/1 var(--st-font-mono); letter-spacing: .08em; }
.st-widget { border-radius: 0; box-shadow: none; }
.st-prose blockquote { border-left-color: var(--st-text); font-family: var(--st-font-display); }
.st-prose a { color: var(--st-text); text-decoration: underline; text-underline-offset: 3px; }
.st-progress { background: var(--st-accent); }
.st-dots button.is-active::before { background: var(--st-text); }
.st-drawer__panel { border-radius: 0; }
.st-drawer__tools a, .st-drawer__toolico, .st-search__market, .comment-respond, .comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] { border-radius: 0; }
.st-drawer__toolico { background: var(--st-surface-2); color: var(--st-text); }
.st-appcta { border-radius: 0; background: var(--st-bar); color: var(--st-bar-text); }
.st-appcta h2 { color: var(--st-bar-text); font-stretch: 125%; }
.st-appcta p { color: var(--st-bar-text); opacity: .75; }
.st-appcta .st-eyebrow { color: var(--st-accent); }
.st-appcta .st-btn--ghost { background: transparent; border-color: currentColor; color: var(--st-bar-text); }
.st-appcta__art { display: none; }
.st-toast { border-radius: 0; }

/* Home: apertura + Ultime */
.st-lead { display: grid; gap: var(--s6, 24px); padding-top: var(--s4, 16px); }
.st-lead .st-story { flex: none; }
.st-lead__side .st-section-title { margin-top: 0; }
@media (min-width: 1100px) { .st-lead { grid-template-columns: 7fr 5fr; gap: 24px; padding-top: 28px; } }

/* Nav desktop: magazine | app sulla stessa riga */
@media (min-width: 1100px) {
	.st-nav { display: flex; align-items: center; gap: 10px; min-width: 0; }
	.st-nav__list { flex-wrap: nowrap; }
	.st-nav__list > li > a { padding: 0 10px; white-space: nowrap; box-shadow: none !important; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .st-nav__list--app, .st-nav__sep { display: none; } }
/* Home (pagina statica): le chip categorie restano visibili su mobile/tablet. */
@media (max-width: 1099px) { .home.page .st-chips { display: block; } }
/* Titolo articolo: Archivo 800 in tondo, non maiuscolo (le maiuscole restano per brand, sezioni e pagine app). */
.st-article__title { font: 800 clamp(28px, 7vw, 46px)/1.06 var(--st-font-display); text-transform: none; letter-spacing: -.015em; font-stretch: 100%; }

/* iubenda: il pulsante flottante delle preferenze sta sopra la bottom bar, non sulla voce Profilo. */
@media (max-width: 1099px) {
	body.st-has-bottombar .iubenda-tp-btn[data-tp-float], body.st-has-bottombar .iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float] { bottom: calc(var(--st-bottombar-h) + var(--st-safe-b) + 12px) !important; }
	body.st-has-bottombar .st-totop { bottom: calc(var(--st-bottombar-h) + var(--st-safe-b) + 64px); }
}

/* ==========================================================================
   QA 17/11/2026 – revisione su 360/390/768/1280, chiaro e scuro
   ========================================================================== */
/* Aree da toccare: voci della striscia drop e wordmark alti quanto la barra. */
.st-ticker__item { display: inline-flex; align-items: center; height: 36px; }
.st-brand__text { min-height: 44px; display: inline-flex; align-items: center; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--st-text); }

/* Intestazione archivi: piatta, niente riquadro sfumato. */
.st-archive-head { background: none !important; border-radius: 0 !important; border-bottom: 1px solid var(--st-text); padding: 20px 0 16px !important; margin-inline: 0 !important; }
.st-archive-head__title { font-size: clamp(30px, 8vw, 52px); }
.st-archive-head__chips { margin-inline: 0 !important; }
.st-archive-head__chips .st-chips__list { padding-inline: 0 !important; }

/* Primo articolo negli archivi: foto e testo sotto, come in home (niente overlay, niente maiuscolo). */
.st-card--hero .st-card__media::after { content: none !important; }
.st-card--hero .st-card__media { aspect-ratio: 16 / 10 !important; max-height: none; }
.st-card--hero .st-card__body { position: static !important; color: var(--st-text) !important; padding: 12px 0 0 !important; max-width: none !important; }
.st-card--hero .st-card__title { font: 800 clamp(24px, 6.4vw, 40px)/1.08 var(--st-font-display); text-transform: none; letter-spacing: -.015em; }
.st-card--hero .st-card__excerpt, .st-card--hero .st-meta { color: var(--st-muted) !important; }
.st-card--hero .st-badge { background: none !important; color: var(--st-text) !important; }
@media (min-width: 1100px) { .st-card--hero .st-card__media { aspect-ratio: 21 / 9 !important; } }

/* 404 e moduli di ricerca: angoli vivi. */
.st-404__code { font-stretch: 125%; }
.st-404 .search-form input, .st-404 .search-form button, .searchform input, .searchform button, .st-search__form input { border-radius: 0 !important; }
.st-btn { border-radius: var(--st-radius) !important; }
.st-searchform input, .st-searchform button { border-radius: 0 !important; }

/* Direzione A: angoli vivi su tutti i componenti di tema e plugin (restano tondi solo avatar, pallini e play). */
body.st [class*="st-"]:not(.st-avatar):not(.st-authorbox__avatar):not(.st-dot):not(.st-card__play):not(.st-totop),
body.st [class*="stc-"]:not(.stc-acct__av):not([class*="avatar"]):not(.stc-dot):not(.stc-bell__dot),
body.st .st-prose img, body.st .st-prose figure, body.st .st-comments__list .comment-body,
body.st input:not([type=checkbox]):not([type=radio]), body.st textarea, body.st select, body.st button { border-radius: 0; }
body.st .st-totop { border-radius: 0; }
/* Header desktop: le voci app compaiono solo quando c'è spazio (niente sovrapposizioni con le icone). */
@media (min-width: 1100px) {
	.st-nav { flex: 1 1 auto; overflow: hidden; }
	.st-appbar__actions { flex: none; }
}
@media (max-width: 1439px) { .st-nav__list--app, .st-nav__sep { display: none !important; } }
/* Card: testo allineato al bordo della foto. */
.st-card .st-card__body { padding-inline: 0; }
.st-card--row .st-card__body { padding-inline: 12px 0; }
@media (min-width: 1100px) { .st-drop__img { height: 110px; } }

/* QA 2 (17/11): liste su telefono allineate al margine della pagina (niente rientro di 14px nelle righe). */
@media (max-width: 599px) {
	.st-grid { background: transparent; box-shadow: none; border-radius: 0; border-top: 1px solid var(--st-text); }
	.st-grid > .st-card { padding: 16px 0; gap: 14px; }
	.st-grid > .st-card + .st-card { border-top-color: var(--st-line); }
	.st-grid .st-card__media { flex-basis: 112px; }
	.st-grid > .st-card:active { background: transparent; }
	/* Un solo pulsante flottante su telefono: resta quello di iubenda; "torna su" è superfluo con la bottom bar. */
	.st-totop { display: none !important; }
}

/* QA 3 (17/11): etichetta categoria sempre a filo (la regola mobile .st-grid .st-badge rimetteva 7px di rientro)
   e spazio tra il primo articolo degli archivi e la griglia sotto. */
body.st .st-badge, body.st .st-grid .st-badge, body.st .st-card .st-badge { padding: 0 !important; }
.st-hero { margin-bottom: 32px; }
@media (min-width: 600px) { .st-hero { margin-bottom: 44px; } }
.st-hero .st-card--hero .st-meta { margin-bottom: 0; }

/* Home: invito al feed quando non ci sono ancora post. */
.st-feedpromo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 20px; background: #0a0a0a; color: #fff !important; text-decoration: none; }
.st-feedpromo span { display: grid; gap: 4px; }
.st-feedpromo b { font: 900 clamp(20px, 5vw, 28px)/1.05 var(--st-font-display); font-stretch: 112%; text-transform: uppercase; }
.st-feedpromo small { font: 500 12px/1.4 var(--st-font-mono); color: rgba(255,255,255,.75); }
.st-feedpromo svg { flex: none; width: 44px; height: 44px; padding: 10px; background: var(--st-accent, #c6ff3d); color: #0a0a0a; }
[data-theme="dark"] .st-feedpromo { background: #161616; outline: 1px solid #2a2a2a; }
