/*
 * msc homepage sidebar (Asana 1221053531674851, 2026-12-01).
 * Markup = the sport theme's Italian sidebar (sport/sidebar.php, as on /calcio/), printed on the front page only by
 * sidebar-msc.php inside div.msc-home-aside; enqueued on the front page only (functions.php).
 * Look = sport modules/default/aside.css, scoped here; the generic `aside` rules in redesign.css (BBS sidebar:
 * absolute on desktop, hidden slide-in panel below 823px) are reset for this box.
 * >= 1024px: two columns (content | 270px sidebar). Below: the sidebar follows the page content, all boxes open.
 */

/* --- layout --- */
.msc-home-aside { position: relative; z-index: 1; margin: 10px; }
@media (min-width: 1024px) {
	.content-container:has(> .msc-home-aside) { display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: 10px; align-items: start; }
	.content-container:has(> .msc-home-aside) > * { grid-column: 1 / -1; }
	.content-container:has(> .msc-home-aside) > article:not(.intro-new) { grid-column: 1; }
	.content-container > .msc-home-aside { grid-column: 2; margin: 0; }
}

/* --- reset of redesign.css `aside` (desktop + <=822px) --- */
body .msc-home-aside aside { position: static; display: block; width: auto; height: auto; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; margin: 0; padding: 0; overflow: visible; background: #fff; border: 1px solid #d6d8d9; z-index: auto; text-align: left; font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif; }
body .msc-home-aside aside > :last-child:before { display: none; }
body .msc-home-aside aside .close,
body .msc-home-aside aside .title:before { display: none; }

/* --- boxes (sport aside.css) --- */
body .msc-home-aside aside .title { background: #7f919e; text-align: center; color: #fff; font-size: 15px; font-weight: 600; line-height: normal; padding: 7px 0; border: 0; border-radius: 0; cursor: default; }
body .msc-home-aside aside .box-body { display: block; padding: 10px; margin: 0; border: 0; }

body .msc-home-aside aside .box-body.allgames { padding: 0; margin: 0 0 6px; border: 0; border-bottom: 1px solid #d6d8d9; box-shadow: 0 5px 0 #f5f5f5; }
body .msc-home-aside aside .box-body.allgames > div { font: 600 13px/1.1 Inter, Roboto, 'Helvetica Neue', Arial, sans-serif; color: #343434; text-transform: uppercase; text-align: center; padding: 11px; margin: 0 8px; border-bottom: 1px solid #ddd; background: none; }
body .msc-home-aside aside .box-body.allgames ul { padding: 10px 0; margin: 0; list-style: none; font-size: 0; text-align: center; }
body .msc-home-aside aside .box-body.allgames ul li { display: inline-block; width: 33.33%; margin: 0; padding: 0; font: normal 11px/1 Arial, sans-serif; vertical-align: top; }
body .msc-home-aside aside .box-body.allgames ul li:before { display: none; }
body .msc-home-aside aside .box-body.allgames ul li a { display: block; height: 66px; color: #5c6267; text-decoration: none; }
body .msc-home-aside aside .box-body.allgames ul li a:before { content: ""; display: block; width: 60px; height: 45px; margin: 0 auto; background: url("/wp-content/themes/sport/static/img/sp/allgames.png") no-repeat 0 0; -webkit-filter: grayscale(100%); filter: grayscale(100%); }
body .msc-home-aside aside .box-body.allgames ul li .calcio:before { background-position: 0 0; }
body .msc-home-aside aside .box-body.allgames ul li .ippica:before { background-position: -60px 0; }
body .msc-home-aside aside .box-body.allgames ul li .basket:before { background-position: -120px 0; }
body .msc-home-aside aside .box-body.allgames ul li .hockey:before { background-position: 0 -45px; }
body .msc-home-aside aside .box-body.allgames ul li .tennis:before { background-position: -60px -45px; }
body .msc-home-aside aside .box-body.allgames ul li .pallavolo:before { background-position: -120px -45px; }
body .msc-home-aside aside .box-body.allgames ul li .football-americano:before { background-position: -120px -90px; }
body .msc-home-aside aside .box-body.allgames ul li .esports:before { background-position: -60px -135px; }
body .msc-home-aside aside .box-body.allgames ul li .f1:before { background-position: -120px -135px; }
body .msc-home-aside aside .box-body.allgames ul li .rugby:before { background-position: -60px -270px; }
body .msc-home-aside aside .box-body.allgames ul li .motorbike:before { background-position: -120px -270px; }
body .msc-home-aside aside .box-body.allgames ul li .race-flag:before { background-position: 0 -316px; }
body .msc-home-aside aside .box-body.allgames ul li a:hover { text-decoration: underline; color: #3f3f3f; }
body .msc-home-aside aside .box-body.allgames ul li a:hover:before { -webkit-filter: none; filter: none; }

body .msc-home-aside aside .last-posts,
body .msc-home-aside aside .most-popular-posts { margin: 0; padding: 0; list-style: none; }
body .msc-home-aside aside .last-posts li { display: block; text-align: left; margin: 8px 0; padding: 0; }
body .msc-home-aside aside .last-posts li:before { display: none; }
body .msc-home-aside aside .last-posts li span { display: block; }
body .msc-home-aside aside .last-posts li span.post_date { background: url("/wp-content/themes/sport/static/img/user-publish-icon.png") no-repeat left center; color: #7f919e; border-top: 1px solid #e3e4e8; border-bottom: 1px solid #e3e4e8; font-size: 10px; line-height: normal; padding: 4px 0 4px 20px; }
body .msc-home-aside aside .last-posts li span.text { overflow: hidden; color: #7f919e; font-size: 12px; line-height: 22px; }
body .msc-home-aside aside .last-posts li .post_title { display: block; color: #0e6fb5; font-size: 14px; font-weight: normal; line-height: normal; margin: 6px 0; text-decoration: none; }
body .msc-home-aside aside .last-posts li:first-child { margin-top: 0; }
body .msc-home-aside aside .last-posts li:first-child span { border-top: none; }
body .msc-home-aside aside .last-posts li:last-child { margin-bottom: 0; }
body .msc-home-aside aside .last-posts li img { float: left; max-width: 60px; height: auto; margin: 0 14px 0 0; border-radius: 0; }
body .msc-home-aside aside .last-posts li:after { content: ""; display: table; clear: both; }

body .msc-home-aside aside .most-popular-posts li { display: block; text-align: left; color: #7f919e; border-bottom: 1px solid #eee; margin: 6px 0; padding: 0 0 9px; font-size: 12px; line-height: 18px; }
body .msc-home-aside aside .most-popular-posts li:before { display: none; }
body .msc-home-aside aside .most-popular-posts li:first-child { margin-top: 0; }
body .msc-home-aside aside .most-popular-posts li:last-child { border-bottom: none; margin-bottom: 0; }
body .msc-home-aside aside .most-popular-posts li a { display: block; font-size: 15px; font-weight: normal; color: #4c4c4c; line-height: normal; margin: 0 0 8px; text-decoration: none; }
body .msc-home-aside aside .last-posts li .post_title:hover,
body .msc-home-aside aside .most-popular-posts li a:hover { text-decoration: underline; }
