/* AISPORTNEWS HEADER — 2026-10-08. Remove this block to restore original header. */
header.mg-headwidget { background:#0b1015; color:#f5f7f9; }
header.mg-headwidget .container { max-width:1440px; padding-left:28px; padding-right:28px; }
header.mg-headwidget .mg-head-detail { background:#10171e!important; border-bottom:1px solid #27313a; padding:0!important; }
header.mg-headwidget .mg-head-detail .info-left { margin:0; }
header.mg-headwidget .mg-head-detail .info-left li { background:transparent!important; color:#aebbc7!important; padding:9px 0!important; font-size:12px; letter-spacing:.04em; }
header.mg-headwidget .mg-head-detail .info-left i { color:#65e531; margin-left:0!important; margin-right:9px; }
header.mg-headwidget #time { display:none; }
header.mg-headwidget .mg-nav-widget-area-back { background-image:none!important; background:#0b1015!important; border-bottom:1px solid #27313a; }
header.mg-headwidget .mg-nav-widget-area-back .overlay, header.mg-headwidget .mg-nav-widget-area-back .inner { background:transparent!important; }
header.mg-headwidget .mg-nav-widget-area { padding:25px 0!important; min-height:0!important; }
header.mg-headwidget .site-logo .navbar-brand { padding:0; margin:0; display:block; }
header.mg-headwidget .site-logo img { width:285px!important; max-width:100%; height:auto!important; }
header.mg-headwidget .site-branding-text .site-title { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
header.mg-headwidget .site-description { display:none; }
header.mg-headwidget .mg-tpt-tag-area { padding:0!important; margin:0!important; }
header.mg-headwidget .mg-tpt-txnlst { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; background:transparent!important; padding:0!important; border-radius:0!important; }
header.mg-headwidget .mg-tpt-txnlst strong { background:transparent!important; color:#aebbc7!important; font-size:11px; text-transform:uppercase; letter-spacing:.13em; padding:0!important; margin:0 5px 0 0; float:none; }
header.mg-headwidget .mg-tpt-txnlst strong:before { color:#65e531; }
header.mg-headwidget .mg-tpt-txnlst ul { display:flex; flex-wrap:wrap; gap:7px; margin:0; padding:0; float:none; }
header.mg-headwidget .mg-tpt-txnlst li { margin:0!important; padding:0!important; }
header.mg-headwidget .mg-tpt-txnlst li a { background:#141e27!important; border:1px solid #2a3843; color:#dbe5eb!important; border-radius:4px; padding:6px 10px!important; font-size:12px; font-weight:500; line-height:1.4; }
header.mg-headwidget .mg-tpt-txnlst li a:hover { color:#8cf05a!important; border-color:#65e531; background:#1b2a20!important; }
header.mg-headwidget .mg-menu-full { background:#10171e!important; border-bottom:3px solid #65e531; }
header.mg-headwidget .navbar-wp { background:transparent!important; padding:0!important; }
header.mg-headwidget .navbar-wp .navbar-nav > li > a { color:#ecf2f6!important; font-size:13px; font-weight:700; letter-spacing:.02em; padding:16px 11px!important; background:transparent!important; }
header.mg-headwidget .navbar-wp .navbar-nav > li.active > a, header.mg-headwidget .navbar-wp .navbar-nav > li > a:hover, header.mg-headwidget .navbar-wp .navbar-nav > li > a:focus { color:#8cf05a!important; background:#1b2a20!important; }
header.mg-headwidget .navbar-wp .navbar-nav > li.home { display:none; }
header.mg-headwidget .navbar-wp .dropdown-menu { background:#121c24!important; border:1px solid #2a3843; }
header.mg-headwidget .navbar-wp .dropdown-menu a { color:#ecf2f6!important; }
header.mg-headwidget .navbar-wp .dropdown-menu a:hover { color:#8cf05a!important; background:#1b2a20!important; }
header.mg-headwidget .mg-search-box .msearch, header.mg-headwidget .mobilehomebtn { background:transparent!important; color:#ecf2f6!important; }
header.mg-headwidget .m-header > a.btn-theme { display:none; }
header.mg-headwidget .burger-line { background:#ecf2f6!important; }
header.mg-headwidget a:focus-visible, header.mg-headwidget button:focus-visible { outline:2px solid #8cf05a; outline-offset:3px; }
@media (max-width:991px) {
 header.mg-headwidget .container { padding-left:20px; padding-right:20px; }
 header.mg-headwidget .mg-nav-widget-area { padding:20px 0!important; }
 header.mg-headwidget .mg-nav-widget-area .row { display:flex; flex-direction:column; gap:18px; }
 header.mg-headwidget .mg-nav-widget-area .col-md-4, header.mg-headwidget .mg-nav-widget-area .col-md-8 { width:100%; max-width:100%; flex:0 0 100%; text-align:center; }
 header.mg-headwidget .site-logo img { width:250px!important; }
 header.mg-headwidget .mg-tpt-txnlst { justify-content:center; }
 header.mg-headwidget .mg-tpt-txnlst ul { justify-content:center; }
 header.mg-headwidget .m-header { width:100%; padding:8px 0; }
 header.mg-headwidget .navbar-collapse { max-height:65vh; overflow-y:auto; }
 header.mg-headwidget .navbar-wp .navbar-nav > li > a { padding:12px 15px!important; }
}
@media (max-width:575px) {
 header.mg-headwidget .container { padding-left:16px; padding-right:16px; }
 header.mg-headwidget .mg-nav-widget-area { padding:16px 0!important; }
 header.mg-headwidget .site-logo img { width:225px!important; }
 header.mg-headwidget .mg-tpt-txnlst { gap:8px; }
 header.mg-headwidget .mg-tpt-txnlst strong { width:100%; font-size:10px; margin:0; }
 header.mg-headwidget .mg-tpt-txnlst li a { font-size:11px; padding:5px 8px!important; }
}
/* END AISPORTNEWS HEADER */
/* Header refinements */
header.mg-headwidget .mg-head-detail .info-left { background:transparent!important; padding:0!important; }
header.mg-headwidget .mg-menu-full .m-header > a.btn-theme { display:none!important; }
header.mg-headwidget .navbar-wp .navbar-nav > li > .dropdown-menu { display:none!important; }
header.mg-headwidget .navbar-wp .navbar-nav > li > .dropdown-menu.show, header.mg-headwidget .navbar-wp .navbar-nav > li > .dropdown-menu[aria-expanded="true"] { display:block!important; }
@media(min-width:992px) { header.mg-headwidget .navbar-wp .navbar-nav > li > a { font-size:12px!important; padding:15px 8px!important; } header.mg-headwidget .navbar-wp .container { flex-wrap:nowrap; } header.mg-headwidget .m-header { order:2; } header.mg-headwidget .navbar-collapse { order:1; min-width:0; } }

/* Compact navigation: retain language dropdown */
header.mg-headwidget .navbar-nav > li.lang-item { display:none!important; }
header.mg-headwidget .desk-header > a.btn-theme { display:none!important; }
@media(min-width:992px) { header.mg-headwidget .desk-header { order:2; padding-left:14px!important; } header.mg-headwidget .navbar-collapse { order:1; } header.mg-headwidget .navbar-wp .navbar-nav { flex-wrap:nowrap; } }

/* AISPORTNEWS SPORT TECH CARBONIO — 2026-10-08 */
header.mg-headwidget { position:relative; padding-bottom:48px; }
header.mg-headwidget .mg-head-detail { display:none!important; }
header.mg-headwidget .mg-nav-widget-area-back { position:relative; background-color:#101214!important; background-image:linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.22)),url('https://aisportnews.it/wp-content/uploads/2026/10/carbonio-opaco.png')!important; background-size:auto,620px 620px!important; background-repeat:repeat!important; }
header.mg-headwidget .mg-nav-widget-area-back:after { content:''; position:absolute; right:18px; top:0; width:210px; height:100%; background-image:url('https://aisportnews.it/wp-content/uploads/2025/09/cropped-toro-aisport-centro-sito-2-1.png'); background-size:auto 230px; background-position:right center; background-repeat:no-repeat; opacity:.7; pointer-events:none; }
header.mg-headwidget .mg-nav-widget-area { padding:30px 0!important; min-height:155px!important; }
header.mg-headwidget .mg-nav-widget-area .col-md-4 { position:static; flex:0 0 100%; max-width:100%; }
header.mg-headwidget .site-logo img { width:255px!important; }
header.mg-headwidget .site-branding-text { position:absolute; left:310px; right:240px; top:50%; transform:translateY(-50%); text-align:center; z-index:1; }
header.mg-headwidget .site-branding-text .site-title { position:static; width:auto; height:auto; padding:0; margin:0; overflow:visible; clip:auto; white-space:nowrap; font-size:clamp(28px,3.8vw,58px)!important; line-height:1.15; font-weight:900; letter-spacing:-.035em; }
header.mg-headwidget .site-title a { color:#fff!important; text-shadow:0 2px 8px #000; }
header.mg-headwidget .site-description { display:block; color:#e6ebef; font-size:12px; letter-spacing:.24em; margin:8px 0 0; }
header.mg-headwidget .mg-nav-widget-area .col-md-8 { position:static; }
header.mg-headwidget .mg-tpt-tag-area { position:absolute; bottom:0; left:0; right:0; height:48px; background:#10171e; border-bottom:1px solid #2a3843; z-index:2; display:flex; align-items:center; padding:0 28px!important; }
header.mg-headwidget .mg-tpt-txnlst { justify-content:flex-start; flex-wrap:nowrap; gap:16px; width:100%; }
header.mg-headwidget .mg-tpt-txnlst strong { color:#65e531!important; white-space:nowrap; font-size:10px; }
header.mg-headwidget .mg-tpt-txnlst ul { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
header.mg-headwidget .mg-tpt-txnlst li a { border:0; background:transparent!important; padding:3px 9px!important; white-space:nowrap; font-size:12px; }
header.mg-headwidget .mg-menu-full { background:#f8fafb!important; border-bottom:3px solid #65e531; }
header.mg-headwidget .navbar-wp .navbar-nav > li > a { color:#18212a!important; }
header.mg-headwidget .navbar-wp .navbar-nav > li.active > a,header.mg-headwidget .navbar-wp .navbar-nav > li > a:hover { background:#e9f3e6!important; color:#172a14!important; }
header.mg-headwidget .mg-search-box .msearch,header.mg-headwidget .mobilehomebtn { color:#18212a!important; }
header.mg-headwidget .burger-line { background:#18212a!important; }
@media(max-width:1100px) and (min-width:992px) { header.mg-headwidget .site-logo img { width:220px!important; } header.mg-headwidget .site-branding-text { left:260px; right:185px; } header.mg-headwidget .mg-nav-widget-area-back:after { width:160px; } header.mg-headwidget .navbar-wp .navbar-nav > li > a { padding:15px 5px!important; font-size:11px!important; } }
@media(max-width:991px) { header.mg-headwidget .mg-nav-widget-area { min-height:112px!important; padding:20px 0!important; } header.mg-headwidget .mg-nav-widget-area .row { display:block; } header.mg-headwidget .site-logo img { width:225px!important; } header.mg-headwidget .site-branding-text { display:none; } header.mg-headwidget .mg-nav-widget-area-back:after { display:none; } header.mg-headwidget .mg-nav-widget-area .col-md-8 { width:0; height:0; } header.mg-headwidget .mg-tpt-tag-area { padding:0 16px!important; } header.mg-headwidget .mg-tpt-txnlst strong { width:auto; margin:0; font-size:9px; } header.mg-headwidget .mg-tpt-txnlst { justify-content:flex-start; gap:8px; } header.mg-headwidget .mg-tpt-txnlst ul { justify-content:flex-start; } header.mg-headwidget .navbar-collapse { background:#f8fafb; } }
/* END SPORT TECH CARBONIO */

/* Layout flow refinement */
header.mg-headwidget { display:flex; flex-direction:column; padding-bottom:0; }
header.mg-headwidget .mg-nav-widget-area-back,header.mg-headwidget .mg-nav-widget-area-back .overlay,header.mg-headwidget .mg-nav-widget-area-back .inner,header.mg-headwidget .mg-nav-widget-area-back .container,header.mg-headwidget .mg-nav-widget-area,header.mg-headwidget .mg-nav-widget-area .row { display:contents!important; }
header.mg-headwidget .mg-nav-widget-area-back:after { display:none; }
header.mg-headwidget .mg-nav-widget-area .col-md-4 { order:1; position:relative; width:100%; padding:30px 28px; background-image:linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.22)),url('https://aisportnews.it/wp-content/uploads/2026/10/carbonio-opaco.png'); background-size:auto,620px 620px; background-repeat:repeat; }
header.mg-headwidget .mg-nav-widget-area .col-md-4:after { content:''; position:absolute; right:16px; top:0; width:210px; height:100%; background:url('https://aisportnews.it/wp-content/uploads/2025/09/cropped-toro-aisport-centro-sito-2-1.png') right center / auto 230px no-repeat; opacity:.75; mix-blend-mode:screen; pointer-events:none; }
header.mg-headwidget .site-title a { font-size:inherit!important; font-weight:900!important; line-height:inherit!important; }
header.mg-headwidget .mg-menu-full { order:2; }
header.mg-headwidget .mg-nav-widget-area .col-md-8 { order:3; position:static; width:100%; max-width:100%; flex:none; padding:0; }
header.mg-headwidget .mg-tpt-tag-area { position:static; }
@media(max-width:991px) { header.mg-headwidget .mg-nav-widget-area .col-md-4 { padding:20px 16px; text-align:center; } header.mg-headwidget .mg-nav-widget-area .col-md-4:after { display:none; } header.mg-headwidget .mg-nav-widget-area .col-md-8 { width:100%; height:auto; } }

/* Logo a tutta altezza e toro in primo piano */
header.mg-headwidget .mg-nav-widget-area .col-md-4 { height:160px; min-height:160px; padding:0 20px!important; display:flex; align-items:center; text-align:left!important; overflow:hidden; isolation:isolate; }
header.mg-headwidget .site-logo { position:relative; z-index:2; height:100%; flex:0 0 auto; }
header.mg-headwidget .site-logo .navbar-brand { height:100%; display:flex; align-items:center; }
header.mg-headwidget .site-logo img { display:block; height:160px!important; width:auto!important; max-width:none!important; object-fit:contain; }
header.mg-headwidget .mg-nav-widget-area .col-md-4:after { display:block!important; right:20px; top:0; width:240px; height:160px; background-size:auto 160px; opacity:1; z-index:3; mix-blend-mode:screen; }
header.mg-headwidget .site-branding-text { left:490px; right:280px; }
@media(max-width:1200px) { header.mg-headwidget .site-branding-text { display:none!important; } }
@media(max-width:767px) {
header.mg-headwidget .mg-nav-widget-area .col-md-4 { height:clamp(88px,21vw,140px); min-height:0!important; padding:0 8px!important; }
header.mg-headwidget .site-logo { width:72%; }
header.mg-headwidget .site-logo img { width:100%!important; height:100%!important; max-width:100%!important; object-position:left center; }
header.mg-headwidget .mg-nav-widget-area .col-md-4:after { right:6px; width:25%; height:100%; background-size:contain; }
}

/* Carbonio omogeneo sulle superfici scure dell'header */
header.mg-headwidget { background:#101214 url('https://aisportnews.it/wp-content/uploads/2026/10/carbonio-opaco.png') repeat 0 0 / 620px 620px!important; }
header.mg-headwidget .mg-nav-widget-area .col-md-4 { background:transparent!important; }
header.mg-headwidget .site-logo, header.mg-headwidget .site-logo .navbar-brand { background:transparent!important; }
header.mg-headwidget .site-logo img { mix-blend-mode:screen; }
header.mg-headwidget .mg-tpt-tag-area, header.mg-headwidget .mg-tpt-txnlst, header.mg-headwidget .mg-tpt-txnlst li a { background:transparent!important; }

header.mg-headwidget .mg-nav-widget-area .col-md-4 { isolation:auto; }
header.mg-headwidget .site-logo { mix-blend-mode:screen; }
header.mg-headwidget .site-logo img { mix-blend-mode:normal; }

/* Elementi dell'header davanti al carbonio */
header.mg-headwidget .site-logo { mix-blend-mode:lighten!important; opacity:1!important; z-index:4; }
header.mg-headwidget .mg-nav-widget-area .col-md-4:after { mix-blend-mode:lighten!important; opacity:1!important; z-index:4; }
header.mg-headwidget .site-branding-text { z-index:5; opacity:1; }
header.mg-headwidget .mg-tpt-txnlst { position:relative; z-index:4; }

/* Rimuove il nero delle immagini, preservando i colori opachi */
header.mg-headwidget .site-logo { mix-blend-mode:normal!important; }
header.mg-headwidget .site-logo img, header.mg-headwidget .mg-nav-widget-area .col-md-4:after { filter:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22cut%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeColorMatrix%20in%3D%22SourceGraphic%22%20type%3D%22matrix%22%20values%3D%221%200%200%200%200%200%201%200%200%200%200%200%201%200%200%208%208%208%200%200%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type%3D%22discrete%22%20tableValues%3D%220%201%22%2F%3E%3C%2FfeComponentTransfer%3E%3CfeComposite%20in%3D%22SourceGraphic%22%20operator%3D%22in%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#cut"); mix-blend-mode:normal!important; }

/* Menu e tag proporzionati alla larghezza della finestra (Newses) */
.navbar-wp .navbar-nav > li > a,
.main-navigation a,
#site-navigation a,
.menu > li > a,
.nav-menu > li > a {
  font-size: clamp(0.95rem, 0.95vw, 1.6rem) !important;
  letter-spacing: .01em;
}

.navbar-wp .navbar-nav > li > a {
  padding-inline: clamp(.4rem, .6vw, 1.2rem) !important;
}

.mg-tpt-tag-area a,
.mg-tpt-tag-area strong,
.trending-bar a,
.ticker a,
.tags-bar a {
  font-size: clamp(0.85rem, 0.8vw, 1.35rem) !important;
}

.mg-tpt-tag-area,
.trending-bar,
.ticker,
.tags-bar {
  padding-block: clamp(.35rem, .5vw, .9rem);
}
