/* ==========================================================================
   Ragazze – 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: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("../fonts/nunito-var.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/nunito-sans-var.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/caveat-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: mix M3 "Diario" (scelto il 19/11/2026) ---------- */
:root {
	--rg-font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rg-font-display: "Nunito", "Nunito Sans", system-ui, sans-serif;
	--rg-font-hand: "Caveat", "Segoe Print", cursive;
	--rg-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--rg-radius: 18px;
	--rg-radius-sm: 12px;
	--rg-radius-lg: 26px;
	--rg-gap: 16px;
	--rg-appbar-h: 64px;
	--rg-bottombar-h: 84px;
	--rg-safe-b: env(safe-area-inset-bottom, 0px);
	--rg-ease: cubic-bezier(.2, .8, .2, 1);
	--rg-bg-light: #FFF6F8;
	--rg-bg-dark: #231B25;
}

:root,
[data-theme="light"] {
	--rg-bg: var(--rg-bg-light);
	--rg-surface: #ffffff;
	--rg-surface-2: #FBE3EA;
	--rg-text: #33202A;
	--rg-muted: #765966;
	--rg-sub: #5A4250;
	--rg-line: #F0D8E0;
	--rg-primary: #B83266;
	--rg-on-primary: #ffffff;
	--rg-primary-ink: #B83266;
	--rg-accent: #B83266;
	--rg-on-accent: #ffffff;
	--rg-accent-ink: #B83266;
	--rg-live: #B83266;
	--rg-live-ink: #B83266;
	--rg-pink: #F4C6D3;
	--rg-pink-soft: #FBE3EA;
	--rg-blue: #D6EAFF;
	--rg-sage: #D8EBDC;
	--rg-butter: #FFF1B8;
	--rg-sticker: #FFE27A;
	--rg-sticker-ink: #33202A;
	--rg-tape: rgba(190, 220, 255, .85);
	--rg-paper: #FFFDF7;
	--rg-rule: #EADFD3;
	--rg-flower: #F7BFD0;
	--rg-flower-c: #E07A9C;
	--rg-bar-a: #ffffff;
	--rg-bar-b: #E9ECF3;
	--rg-bar-line: #D3D8E3;
	--rg-glass: rgba(244, 198, 211, .65);
	--rg-glass-line: rgba(255, 255, 255, .95);
	--rg-ig-bg: #33202A;
	--rg-ig-ink: #FBE3EA;
	--rg-ig-link: #FFB3CB;
	--rg-bar: #33202A;
	--rg-bar-text: #ffffff;
	--rg-photo: #F6E3E9;
	--rg-shadow: 0 6px 20px rgba(184, 50, 102, .12);
	--rg-ok: #D8EBDC; --rg-ok-ink: #2F6B3C;
	--rg-warn: #FFF1B8; --rg-warn-ink: #7A5A00;
	--rg-bad: #FBE3EA; --rg-bad-ink: #A3123F;
	color-scheme: light;
}

[data-theme="dark"] {
	--rg-bg: var(--rg-bg-dark);
	--rg-surface: #2F2531;
	--rg-surface-2: #3B2A36;
	--rg-text: #FBEFF4;
	--rg-muted: #CDB6C2;
	--rg-sub: #E4D2DB;
	--rg-line: #45364B;
	--rg-primary: #FF9DBE;
	--rg-on-primary: #231B25;
	--rg-primary-ink: #FF9DBE;
	--rg-accent: #FF9DBE;
	--rg-on-accent: #231B25;
	--rg-accent-ink: #FF9DBE;
	--rg-live: #FF9DBE;
	--rg-live-ink: #FF9DBE;
	--rg-pink: #5C3A4B;
	--rg-pink-soft: #3B2A36;
	--rg-blue: #34496A;
	--rg-sage: #36503F;
	--rg-butter: #574B33;
	--rg-sticker: #F3DE8A;
	--rg-sticker-ink: #231B25;
	--rg-tape: rgba(156, 203, 255, .45);
	--rg-paper: #2F2531;
	--rg-rule: #4A3B4E;
	--rg-flower: #6B3F55;
	--rg-flower-c: #FF9DBE;
	--rg-bar-a: #3D3240;
	--rg-bar-b: #2A222D;
	--rg-bar-line: #56465C;
	--rg-glass: rgba(255, 157, 190, .24);
	--rg-glass-line: rgba(255, 255, 255, .22);
	--rg-ig-bg: #3B2A36;
	--rg-ig-ink: #FBEFF4;
	--rg-ig-link: #FF9DBE;
	--rg-bar: #3B2A36;
	--rg-bar-text: #FBEFF4;
	--rg-photo: #3B2A36;
	--rg-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	--rg-ok: #36503F; --rg-ok-ink: #BFE5C8;
	--rg-warn: #574B33; --rg-warn-ink: #F3DE8A;
	--rg-bad: #5C3A4B; --rg-bad-ink: #FFB3CB;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--rg-bg);
	color: var(--rg-text);
	font: 400 16px/1.55 var(--rg-font);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	overflow-x: hidden;
}
body.rg-has-bottombar { padding-bottom: calc(var(--rg-bottombar-h) + var(--rg-safe-b)); }
body.rg-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(--rg-primary-ink); } }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--rg-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(--rg-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; }
.rg-skip:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: var(--rg-primary); color: var(--rg-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; } }

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

/* ---------- Buttons ---------- */
.rg-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(--rg-ease), background .2s; }
.rg-btn:active { transform: scale(.97); }
.rg-btn--primary { background: var(--rg-primary); color: var(--rg-on-primary); }
.rg-btn--primary:hover { color: var(--rg-on-primary); filter: brightness(1.08); }
.rg-btn--ghost { background: var(--rg-surface); border-color: var(--rg-line); }
.rg-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: transparent; border: 0; }
.rg-iconbtn:hover { background: var(--rg-surface-2); }
[data-rg-mode] .rg-icon--sun { display: none; }
[data-theme="dark"] [data-rg-mode] .rg-icon--sun { display: block; }
[data-theme="dark"] [data-rg-mode] .rg-icon--moon { display: none; }

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

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

/* ---------- Ticker + chips ---------- */
.rg-ticker { border-bottom: 1px solid var(--rg-line); background: var(--rg-surface); }
.rg-chips { padding-top: 12px; padding-inline: 0; }
.rg-chips .rg-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); }
.rg-chips__list, .rg-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;
}
.rg-chips__list::-webkit-scrollbar, .rg-scroller::-webkit-scrollbar { display: none; }
.rg-chips__list a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--rg-surface); border: 1px solid var(--rg-line); font-weight: 600; font-size: 14px; white-space: nowrap; scroll-snap-align: start; }
.rg-chips__list .current-menu-item a, .rg-chips__list .current-cat a { background: var(--rg-text); color: var(--rg-bg); border-color: transparent; }
@media (hover: hover) { .rg-chips__list a:hover { border-color: var(--rg-primary); } }
.rg-chips__list a:active { transform: scale(.96); }

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

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

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

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

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

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

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

.rg-card--hero .rg-card__media { aspect-ratio: 1; max-height: 68vh; width: 100%; }
.rg-card--hero .rg-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)); }
.rg-card--hero .rg-card__body { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding: 18px; gap: 10px; }
.rg-card--hero .rg-card__title { font-size: clamp(26px, 7.4vw, 48px); line-height: 1.04; text-transform: uppercase; }
.rg-card--hero .rg-badge { background: color-mix(in srgb, var(--rg-badge) 70%, #000); color: #fff; filter: none; }
.rg-card--hero .rg-card__excerpt, .rg-card--hero .rg-meta { color: rgba(255, 255, 255, .8); }
.rg-hero { margin-top: 4px; }

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

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

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

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

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

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

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

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

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

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

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

/* ---------- Bottom bar (mobile app nav) ---------- */
.rg-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(--rg-bottombar-h) + var(--rg-safe-b)); padding-bottom: var(--rg-safe-b);
	background: color-mix(in srgb, var(--rg-surface) 88%, transparent);
	backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
	border-top: 1px solid var(--rg-line);
	view-transition-name: rg-bottombar;
}
.rg-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(--rg-muted); }
.rg-bottombar__item .rg-icon { box-sizing: content-box; padding: 4px 18px; border-radius: 999px; transition: transform .15s, background .2s; }
.rg-bottombar__item.is-active { color: var(--rg-text); font-weight: 700; }
.rg-bottombar__item.is-active .rg-icon { color: var(--rg-primary-ink); background: color-mix(in srgb, var(--rg-primary) 18%, transparent); }
@media (hover: hover) { .rg-bottombar__item:hover { color: var(--rg-text); } }
.rg-bottombar__item:active .rg-icon { transform: scale(.9); background: var(--rg-surface-2); }

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

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

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

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

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

	.rg-archive-head { margin-inline: -16px; border-radius: 0; padding: 20px 16px; }
	.rg-footer { text-align: left; }
	.rg-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) {
	.rg-container { padding-inline: 20px; }
	.rg-grid { grid-template-columns: repeat(2, 1fr); }
	.rg-card--hero .rg-card__media { aspect-ratio: 16 / 9; }
	.rg-scroller > .rg-card { flex-basis: 46%; }
	.rg-article__media { margin-inline: 0; }
	.rg-article__media img { border-radius: var(--rg-radius); }
	.rg-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

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

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

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

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

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

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

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

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

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

/* Empty home (new site) */
.rg-empty--soon { background: var(--rg-surface); border-radius: var(--rg-radius); box-shadow: var(--rg-shadow); padding: 32px 20px; }
.rg-empty--soon h3 { margin: 0; font-size: 24px; text-transform: uppercase; }
.rg-empty--soon p { margin: 0; color: var(--rg-muted); }
.rg-empty__ico { font-size: 36px; line-height: 1; }
.rg-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; }
.rg-article__title, .rg-archive-head__title, .rg-card--hero .rg-card__title, .rg-404__code { font-weight: 800; letter-spacing: -.005em; }
.rg-section-title, .rg-widget__title { font-weight: 700; letter-spacing: .01em; }
.rg-brand__text { font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.rg-card__title { font-weight: 700; }

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

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

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

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

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

/* Footer */
.rg-footer__cols .rg-widget > .wp-block-heading { font-size: 16px; }
.rg-footer__cols .rg-widget p { color: var(--rg-muted); line-height: 1.9; }
.rg-footer__cols .rg-widget a { color: var(--rg-text); }
@media (hover: hover) { .rg-footer__cols .rg-widget a:hover { color: var(--rg-primary-ink); } }
.rg-footer__bottom { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--rg-line); }
.rg-footer__social { justify-content: center; }
@media (min-width: 768px) {
	.rg-footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
	.rg-footer__social { order: 2; justify-content: flex-end; }
	.rg-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 .rg-layout__side, .blog .rg-layout__side { display: none; } }
.rg-sticky { padding-bottom: 8px; }
@media (max-width: 599px) {
	.rg-footer .rg-widget > .wp-block-heading { justify-content: center; }
	.rg-footer .rg-widget > .wp-block-heading::before { display: none; }
	.rg-footer__cols { gap: 28px; }
}
@media (max-width: 1099px) { .rg-footer { padding-bottom: 76px; } }
@media (min-width: 1100px) { .rg-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;
	--rg-radius: var(--r-md);
	--rg-gap: var(--stack);
	--rg-appbar-h: 56px;
}
@media (min-width: 768px) {
	:root { --gutter: 24px; --section: 40px; --stack: 20px; --pad: 20px; --rg-appbar-h: 64px; }
}
@media (min-width: 1100px) {
	:root { --gutter: 32px; --section: 56px; --stack: 24px; --pad: 24px; --rg-appbar-h: 72px; --rg-radius: var(--r-lg); }
}

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

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

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

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

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

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

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

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

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

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

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

/* ---------- Empty states ---------- */
.rg-empty { padding: var(--s9) var(--gutter); gap: var(--s3); }
.rg-empty--soon { padding: var(--s8) var(--pad); }
.rg-chips.rg-container { padding-inline: 0; }
@media (max-width: 1099px) { .rg-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 */
	.rg-layout.rg-layout--page { max-width: 1280px; }
	.rg-layout--page > .rg-article { max-width: 880px; }
}

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

.rg-archive-head { --hp: var(--pad); }
@media (min-width: 768px) { .rg-archive-head { --hp: var(--s7); } }
@media (max-width: 599px) { .rg-archive-head { --hp: var(--gutter); } }
.rg-archive-head .rg-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 --rg-primary, e gli "ink" devono seguirlo. */
:root, body { --rg-on-primary: #ffffff; --rg-primary-ink: var(--rg-primary); --rg-live-ink: var(--rg-live); --rg-accent-ink: var(--rg-accent); }
[data-theme="light"], [data-theme="light"] body { --rg-primary-ink: color-mix(in srgb, var(--rg-primary) 84%, #000); --rg-live-ink: color-mix(in srgb, var(--rg-live) 78%, #000); --rg-accent-ink: color-mix(in srgb, var(--rg-accent) 55%, #000); }
[data-theme="dark"] .rg-badge { color: color-mix(in srgb, var(--rg-badge) 62%, #fff); background: color-mix(in srgb, var(--rg-badge) 20%, transparent); }
[data-theme="dark"] .rg-card--hero .rg-badge { color: #fff; background: color-mix(in srgb, var(--rg-badge) 70%, #000); }
[data-theme="dark"], [data-theme="dark"] body { --rg-primary-ink: color-mix(in srgb, var(--rg-primary) 72%, #fff); --rg-live-ink: color-mix(in srgb, var(--rg-live) 82%, #fff); }
   e, nel tema chiaro, card e intestazione ben distinte dallo sfondo. */

/* ===== v1.4 Lingue IT/EN/ES ===== */
.rg-lang { position: relative; }
.rg-lang__btn { width: auto; min-width: 44px; padding: 0 8px; gap: 4px; grid-auto-flow: column; display: inline-grid; }
.rg-lang__code { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.rg-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(--rg-surface); border: 1px solid var(--rg-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.rg-lang__menu[hidden] { display: none; }
.rg-lang__menu button, .rg-drawer__langs button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--rg-text); font: inherit; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.rg-lang__menu button:hover { background: var(--rg-surface-2, rgba(0,0,0,.05)); }
.rg-lang__menu button.is-active, .rg-drawer__langs button.is-active { background: color-mix(in srgb, var(--rg-primary) 16%, transparent); color: var(--rg-primary-ink); }
.rg-lang__menu button.is-active::after { content: " \2713"; }
.rg-drawer__langs { display: flex; gap: 8px; padding: 4px 0 8px; }
.rg-drawer__langs button { flex: 1; text-align: center; padding: 0 8px; border: 1px solid var(--rg-line); border-radius: 999px; font-size: 14px; }
@media (max-width: 420px) { .rg-lang__code { display: none; } .rg-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; }
#rg-gt { display: none !important; }


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

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

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

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

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

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

/* ---------- Home: market band (dark premium) ---------- */
.rg-band { margin-top: var(--section); padding: var(--s8) 0; background: var(--rg-ink-grad); color: #f2f2f3; position: relative; overflow: hidden; }
.rg-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; }
.rg-band > .rg-container { position: relative; }
.rg-band .rg-eyebrow { color: #ff6b73; }
.rg-band__title { font: 800 clamp(28px, 7vw, 44px)/1 var(--rg-font-display); text-transform: uppercase; margin: 6px 0 18px; color: #fff; max-width: 18ch; }
.rg-band__list { margin-top: var(--s7); }
.rg-band .rg-section-title { color: #fff; }
.rg-band .rg-section-more { color: #ff8a90; }
/* Plugin cards inside the dark band keep their own (light/dark) surfaces. */

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

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

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

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

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

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

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

/* ---------- QA fixes (touch areas, spacing) ---------- */
.rg-section-more, .rg-apppage__back, a.rg-badge { position: relative; }
.rg-section-more::after, .rg-apppage__back::after { content: ""; position: absolute; inset: -13px -8px; }
a.rg-badge::after { content: ""; position: absolute; inset: -12px -4px; }
.rg-dots button { position: relative; }
.rg-dots button::after { content: ""; position: absolute; inset: -18px -4px; }
.rg-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.rg-bar-hidden .rg-main { --rg-appbar-h: env(safe-area-inset-top, 0px); }

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

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

/* ==========================================================================
   Ragazze · mix M3 "Diario" (19/11/2026)
   Rosa cipria, accenti azzurro/salvia/burro, titoli Nunito 900 + scritta a mano Caveat,
   card arrotondate + polaroid con nastro nei punti speciali, etichette ritagliate, sticker,
   righe da ombrellone, barra in basso cromata con voce attiva "glass".
   ========================================================================== */
body.rg { font-family: var(--rg-font); background: var(--rg-bg); color: var(--rg-text); }
body.rg.rg-text-lg { font-size: 18px; }
body.rg.rg-text-lg .rg-prose { font-size: 21px; line-height: 1.75; }
a { color: var(--rg-primary-ink); }
h1, h2, h3, .rg-card__title, .rg-article__title, .rg-archive-head__title { font-family: var(--rg-font-display); font-weight: 900; letter-spacing: -.02em; text-transform: none; font-stretch: normal; }
.rg-hand { font-family: var(--rg-font-hand); font-weight: 700; color: var(--rg-accent-ink); line-height: 1; }
.rg-bg-pink { background: var(--rg-pink-soft); } .rg-bg-blue { background: var(--rg-blue); } .rg-bg-sage { background: var(--rg-sage); } .rg-bg-butter { background: var(--rg-butter); }

/* Righe da ombrellone */
.rg-stripes { height: 8px; background: repeating-linear-gradient(90deg, var(--rg-pink) 0 18px, var(--rg-blue) 18px 36px); }
[data-theme="dark"] .rg-stripes { background: repeating-linear-gradient(90deg, #FF9DBE 0 18px, #9CCBFF 18px 36px); }
.rg-stripes--thin { height: 10px; }
@media (min-width: 768px) { .rg-stripes { height: 10px; background-size: 44px 100%; } }

/* Barra Instagram */
.rg-igbar { background: var(--rg-ig-bg); color: var(--rg-ig-ink); font: 600 13px/1.35 var(--rg-font); }
.rg-igbar__inner { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rg-igbar__text { margin: 0; flex: 1; }
.rg-igbar a { color: var(--rg-ig-link); font-weight: 800; }
.rg-igbar__close { width: 40px; height: 40px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
@media (min-width: 768px) { .rg-igbar__inner { justify-content: center; } .rg-igbar__text { flex: 0 1 auto; } }

/* Testata */
.rg-appbar { background: color-mix(in srgb, var(--rg-bg) 92%, transparent); border-bottom: 1px solid var(--rg-line); box-shadow: none; }
.rg-appbar__inner { min-height: var(--rg-appbar-h); gap: 10px; }
.rg-brand__text { color: var(--rg-text); text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; min-height: 44px; }
.rg-brand__word { font: 900 30px/1 var(--rg-font-display); letter-spacing: -.03em; text-transform: none; }
.rg-brand__xo { font: 700 25px/1 var(--rg-font-hand); color: var(--rg-accent-ink); transform: rotate(-6deg); display: inline-block; }
.rg-iconbtn--chrome { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--rg-bar-line); background: linear-gradient(180deg, var(--rg-bar-a), var(--rg-bar-b)); color: var(--rg-text); font: 800 14px var(--rg-font); }
.rg-textsize[aria-pressed="true"] { background: var(--rg-glass); border-color: var(--rg-accent); }
.rg-nav__list a { font: 700 15px var(--rg-font); color: var(--rg-text); text-transform: none; letter-spacing: 0; border-radius: 999px; padding: 9px 13px; }
.rg-nav__list .current-menu-item > a, .rg-nav__list a[aria-current] { color: var(--rg-accent-ink); background: var(--rg-glass); }
@media (min-width: 1100px) { .rg-brand__word { font-size: 38px; } .rg-brand__xo { font-size: 32px; } .rg-nav { flex: 1 1 auto; } .rg-nav__list { justify-content: center; } }

/* Barra in basso: pillola cromata, voce attiva glass che contiene icona e testo, stesso raggio della barra */
.rg-bottombar {
	left: 12px; right: 12px; bottom: calc(12px + var(--rg-safe-b)); height: 70px; padding: 0 6px;
	display: flex; align-items: center; justify-content: space-between;
	border-radius: 999px; border: 1.5px solid var(--rg-bar-line);
	background: linear-gradient(180deg, var(--rg-bar-a), var(--rg-bar-b));
	box-shadow: 0 10px 30px var(--rg-shadow-c, rgba(184, 50, 102, .14));
	backdrop-filter: none; -webkit-backdrop-filter: none;
}
[data-theme="dark"] .rg-bottombar { --rg-shadow-c: rgba(0, 0, 0, .4); }
.rg-bottombar__item { flex: 1; min-width: 0; height: 56px; border-radius: 999px; gap: 2px; font: 700 10.5px var(--rg-font); color: var(--rg-muted); text-decoration: none; border: 1px solid transparent; }
.rg-bottombar__item .rg-icon { padding: 0; background: none !important; }
.rg-bottombar__item.is-active { background: var(--rg-glass); border-color: var(--rg-glass-line); color: var(--rg-text); font-weight: 800; }
.rg-bottombar__item.is-active .rg-icon { color: var(--rg-text); }
body.rg-has-bottombar { padding-bottom: calc(96px + var(--rg-safe-b)); }
@media (min-width: 1100px) { body.rg-has-bottombar { padding-bottom: 0; } }

/* Bottoni */
.rg-btn { border-radius: 999px; font-weight: 800; }
.rg-btn--primary, .rg-btn--pill.rg-btn--primary { background: var(--rg-primary); color: var(--rg-on-primary); border: 0; }
.rg-btn--pill { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; }
.rg-btn--ghost { background: linear-gradient(180deg, var(--rg-bar-a), var(--rg-bar-b)); border: 1.5px solid var(--rg-bar-line); color: var(--rg-text); }

/* Etichette ritagliate e sticker */
.rg-cut { display: inline-block; background: var(--rg-text); color: var(--rg-bg); font: 900 11px/1 var(--rg-font-display); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; transform: rotate(-3deg); text-decoration: none; }
.rg-cut--sm { font-size: 10px; padding: 4px 7px; transform: rotate(-2deg); }
.rg-sticker { position: absolute; right: -6px; top: -12px; z-index: 2; transform: rotate(9deg); background: var(--rg-sticker); color: var(--rg-sticker-ink); font: 900 12px var(--rg-font-display); text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.rg-badge { font-family: var(--rg-font-display); font-weight: 900; color: var(--rg-accent-ink) !important; background: none !important; }

/* Storie */
.rg-stories { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-top: 14px; padding-bottom: 14px; }
.rg-stories::-webkit-scrollbar { display: none; }
.rg-story-circle { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--rg-text); font: 700 12px var(--rg-font); }
.rg-story-circle__ring { width: 66px; height: 66px; border-radius: 50%; border: 2.5px solid var(--rg-accent); padding: 3px; box-sizing: border-box; display: block; }
.rg-story-circle__ring img, .rg-story-circle__word { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 700 19px var(--rg-font-hand); color: var(--rg-text); }
@media (min-width: 768px) { .rg-stories { gap: 16px; } .rg-story-circle { width: 80px; } .rg-story-circle__ring { width: 74px; height: 74px; } }

/* Continua a leggere */
.rg-continue { display: flex; gap: 12px; align-items: center; background: var(--rg-surface); border-radius: var(--rg-radius-lg); padding: 10px 14px 10px 10px; box-shadow: var(--rg-shadow); text-decoration: none; color: var(--rg-text); margin-bottom: 8px; }
.rg-continue[hidden] { display: none; }
.rg-continue img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; background: var(--rg-photo); }
.rg-continue__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rg-continue .rg-hand { font-size: 18px; }
.rg-continue__title { font: 700 14px/1.25 var(--rg-font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-continue__bar { height: 5px; border-radius: 3px; background: var(--rg-pink-soft); overflow: hidden; }
.rg-continue__bar span { display: block; height: 100%; width: 0; background: var(--rg-accent); border-radius: 3px; }

/* Apertura: polaroid con nastro */
.rg-lead-m3 { display: grid; gap: 28px; padding-top: 18px; }
.rg-polaroid-card { position: relative; }
.rg-polaroid { display: block; position: relative; padding: 10px 10px 14px; background: var(--rg-surface); box-shadow: 0 8px 22px var(--rg-shadow-c, rgba(184, 50, 102, .14)); transform: rotate(-2deg); border-radius: 3px; }
.rg-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 2px; background: var(--rg-photo); }
.rg-tape { position: absolute; top: -12px; left: 50%; margin-left: -50px; width: 100px; height: 24px; background: var(--rg-tape); transform: rotate(4deg); }
.rg-polaroid-wrap { position: relative; }
.rg-polaroid-wrap__cut { position: absolute; left: 20px; top: 24px; z-index: 2; }
.rg-polaroid-wrap__save { right: 22px; bottom: 26px; }
.rg-save { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rg-surface); color: var(--rg-accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.rg-save[aria-pressed="true"] svg { fill: currentColor; }
.rg-lead-m3__kicker { font-size: 19px; margin: 18px 0 4px; }
.rg-lead-m3__title { font: 900 clamp(26px, 6.6vw, 46px)/1.08 var(--rg-font-display); margin: 0; }
.rg-lead-m3__title a { color: var(--rg-text); text-decoration: none; }
.rg-lead-m3__excerpt { color: var(--rg-muted); font-size: 16px; line-height: 1.55; margin: 10px 0 0; }
.rg-lead-m3__side { display: grid; gap: 0; }
.rg-srow { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1.5px solid var(--rg-line); }
.rg-srow:last-child { border-bottom: 0; }
.rg-srow__img { flex: none; width: 96px; height: 80px; border-radius: 18px; overflow: hidden; background: var(--rg-photo); }
.rg-srow__img img { width: 100%; height: 100%; object-fit: cover; }
.rg-srow__title { font: 800 15.5px/1.28 var(--rg-font); margin: 7px 0 0; letter-spacing: 0; }
.rg-srow__title a { color: var(--rg-text); text-decoration: none; }
@media (min-width: 1100px) {
	.rg-lead-m3 { grid-template-columns: 7fr 5fr; gap: 44px; align-items: start; padding-top: 30px; }
	.rg-srow__img { width: 140px; height: 104px; }
	.rg-srow__title { font-size: 18px; }
}

/* Sezioni */
.rg-home > section, .rg-home > .rg-container { margin-top: 30px; }
.rg-home > .rg-stories { margin-top: 0; }
.rg-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rg-sec-title { font: 900 22px/1.1 var(--rg-font-display); margin: 0; letter-spacing: -.02em; }
.rg-sec-more { font: 800 13.5px var(--rg-font); color: var(--rg-text); }
@media (min-width: 1100px) { .rg-sec-title { font-size: 28px; } }

/* Il tuo giorno */
.rg-listen { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid var(--rg-bar-line); background: linear-gradient(180deg, var(--rg-bar-a), var(--rg-bar-b)); color: var(--rg-text); font: 800 13px var(--rg-font); cursor: pointer; }
.rg-listen__play { width: 28px; height: 28px; border-radius: 50%; background: var(--rg-accent); color: var(--rg-on-accent); display: grid; place-items: center; }
.rg-listen .rg-icon--pause, .rg-listen.is-playing .rg-icon--play { display: none; }
.rg-listen.is-playing .rg-icon--pause { display: block; }
.rg-day__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rg-day__horo { grid-row: span 2; }
.rg-tile { position: relative; overflow: hidden; border-radius: var(--rg-radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--rg-text); min-height: 96px; }
.rg-tile__k { font: 900 11px var(--rg-font-display); letter-spacing: .06em; text-transform: uppercase; }
.rg-tile__t { font: 900 22px/1.1 var(--rg-font-display); }
.rg-tile__t--sm { font: 800 15px/1.25 var(--rg-font); }
.rg-tile__p { font-size: 13.5px; line-height: 1.4; }
.rg-tile__more { margin-top: auto; font: 800 13px var(--rg-font); }
.rg-tile__star { position: absolute; right: 12px; top: 8px; font-size: 26px; color: var(--rg-surface); }
.rg-nails { display: flex; gap: 5px; }
.rg-nails i { width: 18px; height: 26px; border-radius: 9px 9px 4px 4px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@media (min-width: 768px) { .rg-day__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rg-day__horo { grid-row: auto; } .rg-nails i { width: 22px; height: 32px; } }

/* Chiedi a Ragazze */
.rg-ask { position: relative; overflow: hidden; background: var(--rg-pink-soft); border-radius: var(--rg-radius); padding: 20px; }
.rg-ask__flower, .rg-flower { width: 120px; height: 120px; }
.rg-ask__flower { position: absolute; right: -26px; top: -26px; }
.rg-ask > *:not(.rg-flower) { position: relative; }
.rg-ask__kicker { font-size: 23px; margin: 0; }
.rg-ask__title { margin-top: 4px; }
.rg-ask__lead { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.45; }
.rg-ask__form { display: grid; gap: 12px; }
.rg-ruled { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; padding: 6px 14px; min-height: 44px; font: 600 20px/28px var(--rg-font-hand); color: var(--rg-text); background: repeating-linear-gradient(var(--rg-paper) 0 27px, var(--rg-rule) 27px 28px); }
.rg-ruled::placeholder { color: var(--rg-muted); }
.rg-ask .rg-btn { justify-self: start; }
@media (min-width: 768px) { .rg-ask { padding: 26px 28px; } .rg-ask__form { grid-template-columns: 1fr auto; align-items: center; } .rg-ask__flower { width: 150px; height: 150px; } }

/* Scelti per te */
.rg-foryou__grid { display: grid; gap: 0; }
.rg-pcard { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rg-line); }
.rg-pcard:last-child { border-bottom: 0; }
.rg-pcard__img { flex: none; width: 88px; height: 88px; border-radius: 18px; overflow: hidden; background: var(--rg-photo); }
.rg-pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rg-pcard__title { font: 800 15.5px/1.25 var(--rg-font); letter-spacing: 0; margin: 7px 0 2px; }
.rg-pcard__title a { color: var(--rg-text); text-decoration: none; }
.rg-pcard__meta { margin: 0; font-size: 12.5px; color: var(--rg-muted); }
@media (min-width: 768px) {
	.rg-foryou__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
	.rg-pcard { flex-direction: column; align-items: stretch; border: 0; padding: 0; }
	.rg-pcard__img { width: 100%; height: auto; aspect-ratio: 16 / 10.5; border-radius: var(--rg-radius); }
}

/* Market */
.rg-marketbox { border-radius: var(--rg-radius); overflow: hidden; background: var(--rg-blue); }
.rg-marketbox__in { padding: 16px 18px 18px; }
.rg-marketbox__lead { margin: -6px 0 12px; font-size: 13.5px; }
.rg-marketbox__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rg-product { background: var(--rg-surface); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--rg-text); display: grid; font-size: 12.5px; padding-bottom: 10px; }
.rg-product__img { aspect-ratio: 1; background: var(--rg-photo); }
.rg-product__img img { width: 100%; height: 100%; object-fit: cover; }
.rg-product__shop { color: var(--rg-muted); padding: 8px 10px 0; }
.rg-product__title { font-weight: 800; padding: 2px 10px 0; }
.rg-product__price { padding: 2px 10px 0; font-weight: 700; }
@media (min-width: 768px) { .rg-marketbox__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rg-marketbox__in { padding: 22px 26px 26px; } }

/* Righe per categoria */
.rg-catrow__scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rg-catrow__scroll::-webkit-scrollbar { display: none; }
.rg-vcard { scroll-snap-align: start; }
.rg-vcard__img { display: block; aspect-ratio: 16 / 10.5; border-radius: var(--rg-radius); overflow: hidden; background: var(--rg-photo); }
.rg-vcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rg-vcard__title { font: 800 15.5px/1.25 var(--rg-font); letter-spacing: 0; margin: 10px 0 0; }
.rg-vcard__title a { color: var(--rg-text); text-decoration: none; }
@media (min-width: 768px) { .rg-catrow__scroll { grid-auto-columns: calc((100% - 42px) / 4); } }

/* Card, archivi, articolo: angoli morbidi */
.rg-card__media, .rg-card__media img, .rg-article__media img, .rg-prose img { border-radius: var(--rg-radius); }
.rg-card__title a { color: var(--rg-text); }
.rg-archive-head { background: var(--rg-pink-soft); border-radius: var(--rg-radius); padding: 22px 20px; border: 0; margin-top: 16px; }
.rg-archive-head__title { font-size: clamp(30px, 8vw, 48px); }
.rg-eyebrow { font: 700 20px/1 var(--rg-font-hand); color: var(--rg-accent-ink); text-transform: none; letter-spacing: 0; }
.rg-article__title { font: 900 clamp(28px, 7vw, 46px)/1.08 var(--rg-font-display); }
.rg-prose { font-size: 18px; line-height: 1.7; }
.rg-prose h2, .rg-prose h3 { font-family: var(--rg-font-display); font-weight: 900; }
.rg-chips__list a, .rg-chip { border-radius: 999px; }

/* Footer */
.rg-footer { background: var(--rg-surface); border-top: 0; margin-top: 40px; padding-top: 0; }
.rg-footer > .rg-container { padding-top: 28px; }
.rg-footer__ig a { font-weight: 800; }
.rg-footer__h { font: 900 13px var(--rg-font-display); text-transform: uppercase; letter-spacing: .06em; }

/* Sicurezza: niente scroll orizzontale della pagina */
html, body.rg { overflow-x: clip; }
@media (max-width: 1099px) { .rg-totop { display: none !important; } }
/* Articolo M3: barra di lettura, In breve */
.rg-readbar { display: flex; align-items: center; gap: 8px; margin: 6px 0 16px; }
.rg-readbar__sp { flex: 1; }
.rg-save--inline { color: var(--rg-accent-ink); }
.rg-save--inline[aria-pressed="true"] svg { fill: currentColor; }
.rg-article__head .rg-cut { margin-bottom: 12px; }
.rg-inbreve { background: var(--rg-butter); border-radius: var(--rg-radius); padding: 16px 18px; margin: 18px 0; }
.rg-inbreve .rg-hand { margin: 0 0 6px; font-size: 22px; color: var(--rg-text); }
.rg-inbreve ul { margin: 0; padding-left: 18px; line-height: 1.55; }
.rg-article__media { margin: 18px 0; }
.rg-article__media img { padding: 10px 10px 14px; background: var(--rg-surface); box-shadow: 0 8px 22px rgba(184, 50, 102, .12); transform: rotate(1deg); border-radius: 3px !important; box-sizing: border-box; }
@media (min-width: 1100px) { .rg-bottombar { display: none !important; } .rg-continue { max-width: 560px; } }
.rg-nav__list a, .rg-nav a { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--rg-font) !important; font-weight: 700 !important; }
.rg-account a, .rg-account button, .rgc-acct__btn { border-radius: 999px !important; }
.rg-account .rg-btn, .rg-account a.rgc-acct__login, .rg-account > a:not(.rg-iconbtn) { background: var(--rg-primary); color: var(--rg-on-primary); border: 0; border-radius: 999px; padding: 0 18px; min-height: 42px; display: inline-flex; align-items: center; gap: 6px; font: 800 14px var(--rg-font); text-transform: none; letter-spacing: 0; }
.rgc-acct-login { background: var(--rg-primary) !important; color: var(--rg-on-primary) !important; border-radius: 999px !important; min-height: 42px; padding: 0 18px !important; font: 800 14px var(--rg-font) !important; text-transform: none !important; letter-spacing: 0 !important; display: inline-flex; align-items: center; gap: 6px; border: 0 !important; }

/* QA 19/11: su tablet il copyright lungo schiacciava i link legali in una colonna stretta. */
@media (min-width: 768px) and (max-width: 1099px) {
	.rg-footer__bottom { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
	.rg-footer__bottom { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ==========================================================================
   QA mobile 19/11 (segnalazioni da iPhone)
   ========================================================================== */
/* Logo: la "xo" inclinata usciva dal contenitore e veniva tagliata. */
.rg-brand__text { overflow: visible; }
.rg-brand__xo { padding-right: 4px; }

/* Testata delle sezioni: stessi margini laterali degli articoli, angoli tondi. */
@media (max-width: 767px) {
	.rg-archive-head { margin: 16px 0 20px; border-radius: var(--rg-radius); padding: 20px 18px; }
}

/* Primo articolo (sopra la foto): testo chiaro, niente maiuscolo, etichetta leggibile. */
.rg-card--hero .rg-card__title, .rg-card--hero .rg-card__title a { color: #fff !important; text-transform: none; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.rg-card--hero .rg-badge { color: var(--rg-sticker-ink, #33202A) !important; background: var(--rg-sticker, #FFE27A) !important; padding: 5px 10px; border-radius: 999px; }
.rg-card--hero .rg-card__excerpt, .rg-card--hero .rg-meta, .rg-card--hero .rg-meta * { color: rgba(255, 255, 255, .88) !important; }
.rg-hero { margin-bottom: 22px; }

/* Etichetta categoria nelle liste: allineata al titolo (è solo testo, senza fondo). */
.rg-card:not(.rg-card--hero) .rg-badge { padding-left: 0; padding-right: 0; }

/* Articoli importati dal vecchio tema: il titolo era anche dentro il testo. */
.rg-prose h1.entry-title, .rg-prose .eltdf-post-title { display: none; }

/* Testo grande (Aa): differenza ben visibile su tutto l'articolo. */
body.rg.rg-text-lg .rg-prose { font-size: 22px; line-height: 1.75; }
body.rg.rg-text-lg .rg-prose h2 { font-size: 1.35em; }
body.rg.rg-text-lg .rg-article__lead { font-size: 23px; line-height: 1.55; }
body.rg.rg-text-lg .rg-article__title { font-size: clamp(34px, 9vw, 54px); }
body.rg.rg-text-lg .rg-inbreve li { font-size: 19px; }
.rg-textsize[aria-pressed="true"] { background: var(--rg-glass); border-color: var(--rg-accent); color: var(--rg-accent-ink); }

/* QA 19/11 (2): box della sezione con lo stesso spazio sopra, ai lati e sotto (= margine laterale della pagina). */
body.archive .rg-layout, body.search .rg-layout, body.blog .rg-layout { padding-top: var(--gutter, 16px); }
.rg-archive-head { margin-top: 0 !important; margin-bottom: var(--gutter, 16px) !important; }
.rg-archive-head + .rg-hero, .rg-archive-head + .rg-grid { margin-top: 0; }
/* Filtro della sezione: una sola riga a scorrimento. */
.rg-archive-head__chips .rg-chips__list { flex-wrap: nowrap; }

/* Logo dell'header centrato in altezza (prima stava in alto nella sua area da 44px). */
.rg-appbar .rg-brand__text, .rg-brand__text { align-items: center; }
.rg-brand__xo { position: relative; top: 2px; }

/* QA 19/11 (3): webapp su iPhone (status bar "black-translucent", viewport-fit=cover).
   Lo spazio della barra di stato era sull'header: barra Instagram sotto l'ora e vuoto sopra il logo.
   Ora: fascia scura fissa alta quanto la barra di stato, tutto il resto parte sotto. Senza notch env() = 0 e non cambia nulla. */
:root { --rg-sat: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: var(--rg-sat); background: var(--rg-ig-bg, #33202A); pointer-events: none; }
body .rg-stripes--top { margin-top: var(--rg-sat); }
.rg-appbar { padding-top: 0; top: var(--rg-sat); }
.rg-standalone .rg-appbar { padding-top: 0; }
.rg-appbar.is-hidden { transform: translateY(calc(-100% - var(--rg-sat))); }

/* Continua a leggere (home) con la X per toglierlo. */
.rg-continue-wrap { position: relative; }
.rg-continue-wrap[hidden] { display: none; }
.rg-continue { padding-right: 48px; }
.rg-continue__x { position: absolute; top: 50%; right: calc(var(--gutter, 16px) + 8px); transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--rg-pink-soft); color: var(--rg-text); cursor: pointer; }
.rg-continue__x:active { transform: translateY(-50%) scale(.92); }
@media (min-width: 1100px) { .rg-continue__x { right: auto; left: calc(var(--gutter, 16px) + 560px - 44px); } }

/* Libreria: pagina Salvati e scheda Salvati dell'account. */
.rg-library { display: grid; gap: 26px; margin-top: 8px; }
.rg-library__sec[hidden] { display: none; }
.rg-library__h { display: grid; gap: 2px; margin: 0 0 12px; font: 900 22px/1.15 var(--rg-font-display); letter-spacing: -.02em; }
.rg-library__h .rg-hand { font-size: 20px; font-weight: 700; color: var(--rg-accent-ink); }
.rg-library__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .rg-library__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rg-library__item { position: relative; }
.rg-library__link { display: flex; gap: 12px; align-items: center; padding: 10px 52px 10px 10px; border-radius: var(--rg-radius); background: var(--rg-surface); box-shadow: var(--rg-shadow); color: var(--rg-text); text-decoration: none; }
.rg-library__link img, .rg-library__ph { flex: none; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--rg-photo); }
.rg-library__body { display: grid; gap: 5px; min-width: 0; flex: 1; }
.rg-library__t { font: 800 15px/1.28 var(--rg-font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-library__s { font-size: 12.5px; color: var(--rg-muted); }
.rg-library__x { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--rg-pink-soft); color: var(--rg-text); font: 700 20px/1 var(--rg-font); cursor: pointer; }
.rg-library__empty { padding: 22px 20px; border-radius: var(--rg-radius); background: var(--rg-paper); border: 2px dashed var(--rg-flower); text-align: center; }
.rg-library__empty[hidden] { display: none; }
.rg-library__empty p { margin: 0 0 14px; color: var(--rg-muted); }
.rg-library__note { margin: 0; font-size: 13px; color: var(--rg-muted); }
