/*
Theme Name: Controcopertina Premium
Theme URI: https://controcopertina.com/
Author: Controcopertina
Description: Tema editoriale indipendente, responsive, con compatibilità per gli script legacy del sito.
Version: 3.6.0
Requires PHP: 7.4
Text Domain: controcopertina-premium
*/
:root{--ink:#0a1018;--red:#c90028;--line:#e8eaf0;--muted:#647080}*{box-sizing:border-box}body{margin:0;background:#20272d;color:#101720;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;overflow-wrap:anywhere}:where(img,video):not(:where(.gmp *, .cc-ad-slot *, .cc-ad *, .cc-before-article *, .contr-entity-placement *, .widget_custom_html *, .widget_advads *, .widget_advanced_ads *)){max-width:100%;height:auto}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}.wrap{width:min(1200px,calc(100% - 42px));margin:auto}.site-shell{max-width:1320px;margin:20px auto 0;background:white;box-shadow:0 5px 30px #0003;min-width:0}.topbar,.masthead,.nav{background:var(--ink);color:#fff}.topbar{border-bottom:1px solid #26313e}.top-inner{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:10px 0;color:#c6cbd1}.mast-inner{min-height:115px;display:flex;align-items:center;justify-content:space-between;gap:12px}.identity{text-align:center;flex:1;min-width:0}.logo{font-weight:1000;letter-spacing:-.065em;font-size:clamp(27px,4.8vw,53px);line-height:1;white-space:nowrap}.logo span{color:var(--red)}.site-logo{display:block;max-width:min(520px,100%);max-height:75px;width:auto;height:auto;margin:auto;object-fit:contain}.strap{font-size:10px;letter-spacing:.24em;color:#c8cdd4;margin-top:9px}.search-link{display:flex;align-items:center}.menu-toggle{display:none;border:0;background:transparent;padding:10px;cursor:pointer}.menu-toggle span{display:block;width:24px;height:2px;background:white;margin:5px 0}.nav{border-top:1px solid #25303b}.nav-inner{min-width:0}.cc-menu{display:flex;justify-content:space-between;list-style:none;margin:0;padding:0;gap:2px}.cc-menu li{min-width:0}.cc-menu a{display:block;color:white;font-size:12px;font-weight:800;text-transform:uppercase;padding:17px 12px;white-space:nowrap}.cc-menu a:hover{background:var(--red);color:white}.main{padding-top:20px;padding-bottom:45px}.hero{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-width:0}.story{min-width:0;position:relative}.story>a:first-child{display:block;overflow:hidden}.story img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.story:hover img{transform:scale(1.025)}.hero .story{border-radius:7px;overflow:hidden;background:var(--ink);color:white;min-height:0}.hero .story>a:first-child{position:absolute;inset:0}.hero .story img{height:100%}.hero .story:after,.feature-main:after{content:"";position:absolute;inset:20% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.94));pointer-events:none}.hero-main{height:480px}.hero-secondary{height:234px}.hero .story-content,.feature-main .story-content{position:absolute;bottom:0;left:0;right:0;padding:20px;z-index:1}.hero-main .story-content{padding:25px}.kicker{font-size:11px;font-weight:900;text-transform:uppercase;color:var(--red);margin-bottom:9px}.hero .kicker,.feature-main .kicker{display:inline-block;background:var(--red);color:white;padding:5px 7px;border-radius:3px}.story h1,.story h2,.story h3{margin:0 0 9px;line-height:1.16;letter-spacing:-.035em}.hero-main h1{font-size:clamp(27px,3.3vw,43px)}.hero-secondary h2{font-size:clamp(18px,1.7vw,24px)}.story .excerpt{font-size:14px;line-height:1.5;margin:8px 0}.meta{font-size:11px;color:#88929c;margin-top:10px}.hero .meta,.feature-main .meta{color:#e1e6ec}.news-section{margin-top:26px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;border-bottom:1px solid var(--line)}.section-head h2{font-size:27px;letter-spacing:-.04em;margin:0;padding-bottom:12px;position:relative}.section-head h2:after{content:"";height:4px;width:100%;max-width:175px;background:var(--red);position:absolute;left:0;bottom:-2px}.section-head>a{font-size:12px;color:var(--red);font-weight:800}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cards .story>a:first-child{aspect-ratio:1.6;background:#e9ebee;border-radius:6px}.cards .story-content{padding:10px 2px}.cards .story h3{font-size:17px}.editorial-band{margin-top:28px;padding:30px 36px;background:radial-gradient(circle at 88% 50%,#24465e,transparent 36%),linear-gradient(120deg,#080d15,#091d30);border-left:5px solid var(--red);border-radius:7px;color:white;display:flex;flex-direction:column;gap:8px}.editorial-band span{font-size:11px;letter-spacing:.12em;color:#e2e7eb}.editorial-band strong{font-size:clamp(23px,3vw,38px);line-height:1.06}.feature-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}.feature-main{height:420px;background:var(--ink);border-radius:7px;overflow:hidden;color:white}.feature-main>a:first-child{position:absolute;inset:0}.feature-main img{height:100%}.feature-main h2{font-size:30px}.feature-list{display:grid;gap:12px}.feature-small{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px}.feature-small>a:first-child{height:92px;border-radius:5px}.feature-small h3{font-size:17px}.content-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(240px,1fr);gap:38px}.single-layout{padding-top:35px}.article h1{font-size:clamp(31px,4.4vw,55px);line-height:1.1;letter-spacing:-.045em;margin:12px 0}.article-deck{font-size:20px;color:#4b5663;line-height:1.5}.cover{margin:22px 0}.featured{width:100%;height:auto;border-radius:6px}.cover figcaption{font-size:12px;color:var(--muted);margin-top:7px}.article-body{font-size:19px;line-height:1.85;overflow-wrap:anywhere}.article-body p{margin:0 0 1.4em}.sharebar{display:flex;gap:8px;margin:18px 0 30px;flex-wrap:wrap}.sharebar a{background:#375b9c;color:white;font-size:13px;font-weight:700;padding:12px 15px;border-radius:4px;flex:1;text-align:center}.sharebar a:last-child{background:#12ae48}.sidebar .widget{padding:20px;border:1px solid var(--line);margin-bottom:18px}.footer{background:var(--ink);color:white;padding:35px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px}.footer .logo{font-size:28px}.footer p,.footer small{font-size:12px;color:#a9b2bc}.footer ul{list-style:none;padding:0;display:flex;gap:15px;flex-wrap:wrap}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;top:10px;background:white;z-index:9999;padding:10px}.article-body table{display:block;max-width:100%;overflow-x:auto}.article-body pre{max-width:100%;overflow-x:auto}@media(max-width:900px){.cc-menu a{font-size:11px;padding:14px 7px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-main{height:410px}.hero-secondary{height:199px}.content-grid{grid-template-columns:minmax(0,1fr) 240px;gap:20px}}@media(max-width:700px){body{background:#fff}.site-shell{margin:0;box-shadow:none;width:100%}.wrap{width:calc(100% - 28px)}.topbar{display:none}.mast-inner{min-height:82px}.menu-toggle{display:block;flex:none}.search-link{flex:none}.logo{font-size:clamp(19px,5.3vw,33px);letter-spacing:-.065em}.site-logo{max-height:44px}.strap{font-size:7px;letter-spacing:.08em;margin-top:5px}.nav{display:none;border-top:1px solid #29313c}.nav.is-open{display:block}.nav-inner{width:100%}.cc-menu{display:flex;flex-direction:column;gap:0}.cc-menu li{border-bottom:1px solid #27313e}.cc-menu a{padding:15px 20px;font-size:14px;white-space:normal}.main{padding-top:12px}.hero{display:block}.hero-main{height:420px}.hero-side{display:none}.hero-main .story-content{padding:17px}.hero-main h1{font-size:clamp(25px,7vw,35px)}.hero-main .excerpt{font-size:13px}.section-head h2{font-size:23px}.cards{grid-template-columns:1fr;gap:0}.cards .story{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.cards .story>a:first-child{height:88px;aspect-ratio:auto}.cards .story-content{padding:0}.cards .story h3{font-size:16px}.cards .meta{margin-top:5px}.editorial-band{padding:24px 19px}.feature-grid{display:block}.feature-main{height:350px;margin-bottom:15px}.feature-main h2{font-size:26px}.feature-small{grid-template-columns:100px minmax(0,1fr)}.feature-small>a:first-child{height:80px}.feature-small h3{font-size:15px}.content-grid{display:block}.sidebar{margin-top:30px}.single-layout{padding-top:23px}.article h1{font-size:clamp(29px,8vw,39px)}.article-deck{font-size:17px}.article-body{font-size:18px;line-height:1.75}.footer-inner{display:block}.footer .logo{font-size:24px}}@media(max-width:360px){.logo{font-size:18px}.wrap{width:calc(100% - 22px)}.hero-main{height:385px}.hero-main h1{font-size:24px}.sharebar a{font-size:11px;padding:11px 7px}}
/* Safe responsive containment for embedded content */
.article-body, .article, .content-grid > *, .site-shell, .wrap {min-width:0;}
.article-body :is(img,video):not(:where(.gmp *, .cc-ad-slot *, .cc-ad *, .cc-before-article *, .contr-entity-placement *, .widget_custom_html *, .widget_advads *, .widget_advanced_ads *)){max-width:100%;height:auto;}
.sharebar > * {min-width:0;}
@media(max-width:700px){.sharebar a{flex:1 1 42%;overflow-wrap:normal;word-break:normal;}.article-body{max-width:100%;}}

/* Advertising layout: style theme-owned boxes only. Creative dimensions belong
   to AdPlay/Advanced Ads. In particular, do not style iframe height or .gmp. */
.cc-ad{margin:18px auto;clear:both;text-align:center;min-width:0}
.cc-ad-inarticle{margin:22px auto}
.cc-masthead-ad-region{position:relative;clear:both;min-width:0}
.cc-masthead-ad-region .cc-ad-masthead{margin:14px auto}
.cc-before-article{margin:0 auto 22px;text-align:center;min-width:0}
.cc-before-article:empty{display:none}
.cc-before-article-widget{margin:0 auto 14px}
/* 364 - (12px padding + 1px border) * 2 = 338px usable, enough for 336px. */
@media(min-width:1101px){.content-grid{grid-template-columns:minmax(0,1fr) 364px;gap:28px}}
@media(max-width:1100px){.content-grid{display:block}.sidebar{margin-top:30px}}
.sidebar{min-width:0}
.sidebar .widget{padding:12px;margin-bottom:18px}
/* Advertising widgets need the full column, not editorial card padding. */
.sidebar :is(.widget_custom_html,.widget_advads,.widget_advanced_ads),
.sidebar .widget:has(.gmp,iframe,[class*="contr-entity-placement"]){padding:0;border:0}
.cc-google-news-follow{margin:12px 0;font-size:14px;font-weight:700}
.cc-google-news-follow a{display:inline-flex;padding:9px 13px;border:1px solid #d8e0e8;border-radius:5px;color:#1454a5;background:#f6f9ff}
/* A 320px banner needs 320px even on a 320px phone. Only ad boxes bleed into
   the page gutters. Do not scale creatives or override provider wrappers. */
@media(max-width:700px){
 .cc-ad-inarticle,.sidebar>.cc-ad,.cc-before-article,
 .article-body .contr-entity-placement,
 .sidebar :is(.widget_custom_html,.widget_advads,.widget_advanced_ads),
 .sidebar .widget:has(.gmp,iframe,[class*="contr-entity-placement"]){
   width:calc(100% + 28px);max-width:none;margin-left:-14px;margin-right:-14px;
 }
 .cc-masthead-ad-region .cc-ad-masthead{margin-top:8px;margin-bottom:8px}
}
@media(max-width:360px){
 .cc-ad-inarticle,.sidebar>.cc-ad,.cc-before-article,
 .article-body .contr-entity-placement,
 .sidebar :is(.widget_custom_html,.widget_advads,.widget_advanced_ads),
 .sidebar .widget:has(.gmp,iframe,[class*="contr-entity-placement"]){
   width:calc(100% + 22px);margin-left:-11px;margin-right:-11px;
 }
}

/* 3.6: Reserve space in theme-owned boxes; allow larger creatives to grow. */
.cc-ad-slot{margin:22px auto;text-align:center;clear:both;min-width:0}
.cc-ad-slot[data-cc-slot="masthead"]{min-height:250px}
.cc-ad-slot[data-cc-slot^="right"]{min-height:600px}
.cc-ad-slot[data-cc-slot^="paragraph"]{min-height:280px}
.cc-ad-slot[data-cc-slot="bottom"]{min-height:280px}
.cc-ad-slot[data-cc-slot="native"]{min-height:0}
.cc-ad-slot[data-cc-device="mobile"]{display:none}
.cc-ad-slot[hidden]{display:none!important}
@media(max-width:970px){
 .cc-ad-slot[data-cc-device="desktop"]{display:none}
 .cc-ad-slot[data-cc-device="mobile"]{display:block}
}
@media(max-width:700px){
 .article-body .cc-ad-slot,.article>.cc-ad-slot{width:calc(100% + 28px);margin-left:-14px;margin-right:-14px}
}
@media(max-width:360px){
 .article-body .cc-ad-slot,.article>.cc-ad-slot{width:calc(100% + 22px);margin-left:-11px;margin-right:-11px}
}
.article .byline{line-height:1.7}
.article .byline a{text-decoration:underline}
@media(prefers-reduced-motion:reduce){.story img{transition:none}.story:hover img{transform:none}}
