/* AP Magazine Core 1.2.0. CSS riscritto: niente dipendenze da vecchi override. */
.apmc120{--cyan:#31cbf5;--navy:#031b39;--ink:#102238;--white:#f8fbff;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,2.4fr) minmax(280px,.9fr);grid-template-areas:"hero hero" "filters filters" "news weather";gap:8px 12px;max-width:1450px;margin:10px auto 20px;color:#fff;font:inherit;isolation:isolate}
.apmc120 *{box-sizing:border-box}.apmc120 button{cursor:pointer}.apmc120 a{text-decoration:none}.apmc120 .apmc110-hero{grid-area:hero;position:relative;overflow:hidden;border-radius:13px;min-height:146px;background:#04315b url('../sfondo-territorio-149.jpg') center 46%/cover no-repeat;border:1px solid #4bb8eb}
.apmc120 .apmc110-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#00224366,#003b6a25 42%,#001b3999)}
.apmc120 .apmc-hero-copy{position:relative;min-height:146px;display:flex;gap:15px;align-items:center;justify-content:center;text-align:center;padding:17px 20px;text-shadow:0 3px 7px #001e36}
.apmc120 .apmc-hero-copy h2{font-size:clamp(30px,4.4vw,66px);font-weight:900;font-style:italic;line-height:1;margin:0;color:#fff;letter-spacing:-1.5px}
.apmc120 .apmc-hero-copy p{font-size:clamp(12px,1.7vw,20px);color:#fff;margin:5px 0 0;font-weight:500}
.apmc120 .apmc-hero-pin{font-size:56px;color:#ff2250;font-weight:900;line-height:1}
.apmc120 .apmc-terr-filters{grid-area:filters;display:flex;align-items:center;gap:7px;width:100%;padding:3px 0 5px;overflow-x:auto;scrollbar-width:thin}
.apmc120 .apmc-terr-filters button{appearance:none;background:#041a35;border:1px solid #a7dfff;border-radius:9px;box-shadow:inset 0 0 7px #267bba77,0 2px 8px #0008;color:#fff;flex:1 0 auto;white-space:nowrap;font-size:clamp(10px,.95vw,13px);font-weight:800;min-height:36px;padding:5px 10px;text-transform:uppercase;line-height:1.2}
.apmc120 .apmc-terr-filters button[aria-pressed="true"]{background:linear-gradient(#fc2145,#ab001a);border-color:#ff8c94;box-shadow:0 0 12px #fa135777}
.apmc120 .apmc-terr-news{grid-area:news;background:linear-gradient(180deg,#053b6ca6,#002345db),url('../sfondo-territorio-149.jpg') center/cover;border:2px solid #54d7ff;border-radius:15px;padding:7px;box-shadow:0 0 15px #00a9ff33;min-width:0;align-self:start}
.apmc120 .apmc-terr-head,.apmc120 .apmc-events-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:4px 8px}
.apmc120 .apmc-terr-head h2,.apmc120 .apmc-events-heading h3{font-size:clamp(15px,1.45vw,21px);line-height:1.1;margin:0;color:#fff;font-weight:900}
.apmc120 .apmc-terr-head a{color:#d9f8ff;font-size:11px;white-space:nowrap;font-weight:700}
.apmc120 .apmc-events-heading span{font-size:11px;font-style:italic;color:#f1faff}
.apmc120 .apmc-terr-scroll{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:151px;grid-auto-rows:0;gap:8px;height:151px;max-height:151px;overflow:hidden;background:#eaf5fd;border-radius:12px;padding:6px;min-width:0}
.apmc120 .apmc-terr-card{display:flex;flex-direction:column;background:#f5f9fd;color:#152333;border-radius:11px;box-shadow:0 2px 7px #001a3766;min-width:0;height:139px;overflow:hidden}
.apmc120 .apmc-terr-card[hidden]{display:none!important}.apmc120 .apmc-terr-card a{min-width:0;display:block;color:#11243b}.apmc120 .apmc-terr-thumb{height:84px;background:#10446e;overflow:hidden}.apmc120 .apmc-terr-thumb img{width:100%;height:100%;object-fit:cover}.apmc120 .apmc-terr-placeholder{height:100%;display:flex;justify-content:center;align-items:center;gap:5px;flex-direction:column;background:linear-gradient(120deg,#023a66,#126da2);color:#fff;font-size:12px}.apmc120 .apmc-terr-placeholder>span{font-size:19px}.apmc120 .apmc-terr-placeholder small,.apmc120 .apmc-terr-placeholder b{font-size:9px;color:#fff}
.apmc120 .apmc-terr-kicker{display:block;color:#006c9e;font-size:10px;line-height:1.1;font-weight:900;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 8px 0}
.apmc120 .apmc-terr-card h3{font-size:12px!important;color:#17222f!important;line-height:1.12!important;margin:3px 8px!important;font-weight:800!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.apmc120 .apmc-terr-card p,.apmc120 .apmc-terr-card>small{display:none}.apmc120 .apmc-news-nav{display:flex;gap:8px;align-items:center;justify-content:center;margin:3px auto 0;height:24px}.apmc120 .apmc-news-nav button{min-width:80px;height:20px;padding:0;background:#052e51;border:1px solid #5eabcf;border-radius:6px;color:#fff;line-height:1;font-size:17px}.apmc120 .apmc-news-count{color:#fff;font-size:10px}
.apmc120 .apmc-explore-link{display:none}.apmc120 .apmc-events-showcase{margin-top:3px;border-top:2px solid #37bdf2}.apmc120 .apmc-events-strip{display:flex;gap:9px;background:#eaf3fb;border-radius:12px;padding:8px;overflow-x:auto;scroll-snap-type:x proximity;min-height:188px;scrollbar-width:thin}
.apmc120 .apmc-event-card{flex:0 0 135px;height:173px;background:#fff;border-radius:10px;box-shadow:0 2px 7px #00152f66;position:relative;overflow:hidden;scroll-snap-align:start}
.apmc120 .apmc-event-card>a{display:block;height:100%;position:relative;color:#142333}.apmc120 .apmc-event-art{height:118px;overflow:hidden;background:#094f7e}.apmc120 .apmc-event-art img{width:100%;height:100%;object-fit:cover;object-position:top}.apmc120 .apmc-event-art .apmc-terr-placeholder{height:100%}
.apmc120 .apmc-event-category{display:none}.apmc120 .apmc-event-card h4{font-size:11px!important;line-height:1.12!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:5px 5px 0 48px!important;color:#172331!important;font-weight:800!important}.apmc120 .apmc-event-location{font-size:9px;line-height:1.15;margin:3px 5px 0 48px;color:#334a61;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apmc120 .apmc-event-date{position:absolute;left:5px;bottom:5px;width:38px;height:45px;border-radius:7px;background:linear-gradient(#fc2345,#ab0012);box-shadow:0 3px 8px #68000a88;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-transform:uppercase;text-align:center}.apmc120 .apmc-event-date strong{color:#fff;font-size:23px;line-height:1;font-weight:950}.apmc120 .apmc-event-date span{font-size:10px;line-height:1.1;font-weight:800}.apmc120 .apmc-events-none{padding:15px;background:#eaf3fb;color:#17344a;border-radius:9px}
.apmc120 .apmc-terr-weather{grid-area:weather;align-self:start;display:flex;flex-direction:column;min-width:0;min-height:0;height:auto;background:linear-gradient(180deg,#04345b77,#001f45cf),url('../sfondo-meteo-149.jpg') center /cover;border:2px solid #5ad1ff;border-radius:15px;box-shadow:0 0 14px #059cff55;overflow:hidden;padding:0;color:#fff;text-align:center}
.apmc120 .apmc-weather-banner{height:100px;background:linear-gradient(180deg,#00192c65,#035c9388),url('../sfondo-meteo-149.jpg') center 32%/cover;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.apmc120 .apmc-weather-banner h2{font-size:22px;color:#fff;font-weight:900;margin:0}.apmc120 .apmc-weather-banner span{font-size:12px;color:#eafaff}
.apmc120 .apmc-weather-nav{display:flex;align-items:center;justify-content:space-between;padding:3px 10px;background:#00365a99}.apmc120 .apmc-weather-nav button{border:0;color:#fff;background:none;min-width:28px;font-size:22px}.apmc120 .apmc-terr-city{font-size:15px;font-weight:800;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.apmc120 .apmc-weather-live{padding:4px 8px;background:#004b7a66}.apmc120 .apmc-weather-main{display:flex;justify-content:center;align-items:center;gap:12px;min-height:76px}.apmc120 .apmc-weather-icon{font-size:45px;line-height:1}.apmc120 .apmc-weather-right{text-align:left}.apmc120 .apmc-weather-temp{font-size:38px;line-height:1;font-weight:900}.apmc120 .apmc-weather-description{font-size:12px;color:#fff}
.apmc120 .apmc-weather-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:4px 0}.apmc120 .apmc-metric{background:#eef7ff;color:#133451;border-radius:7px;min-height:44px;padding:4px;display:flex;flex-direction:column;justify-content:center}.apmc120 .apmc-metric span{font-size:10px;color:#376683}.apmc120 .apmc-metric strong{font-size:14px;color:#08273e}.apmc120 .apmc-weather-updated,.apmc120 .apmc-weather-counter{font-size:9px;color:#d1f2ff;display:block}.apmc120 .apmc-weather-counter{display:none}.apmc120 .apmc-weather-credit{font-size:10px;margin:3px 5px;color:#e3faff}.apmc120 .apmc-terr-weather a{color:#d6f8ff}.apmc120 .apmc-terr-alert{padding:8px 9px;background:#00233acc;border-top:1px solid #64add4;margin-top:5px}.apmc120 .apmc-terr-alert strong{font-size:12px}.apmc120 .apmc-terr-alert p{font-size:10px;margin:4px}.apmc120 .apmc-terr-lights{display:flex;justify-content:center;gap:12px;margin:6px}.apmc120 .apmc-terr-lights i{height:12px;width:12px;border-radius:50%;background:#1e9c6b;opacity:.6}.apmc120 .apmc-terr-lights i:nth-child(2){background:#f1b52f}.apmc120 .apmc-terr-lights i:nth-child(3){background:#e77a2d}.apmc120 .apmc-terr-lights i:nth-child(4){background:#d9364d}.apmc120 .apmc-terr-lights i.active{opacity:1;outline:2px solid white}.apmc120 .apmc-terr-alert a{font-size:10px}.apmc120 .apmc-terr-weather.apmc-alert-red{border-color:#ff3445}
.apmc120 .apmc-filter-empty{padding:12px;color:#173852}.apmc120 .apmc-story-modal[hidden],.apmc120 [hidden]{display:none!important}
/* popout creato fuori dal contenitore della sezione */
.apmc-story-modal{position:fixed!important;inset:0!important;z-index:2147483500!important;background:#000b!important;display:flex;align-items:center;justify-content:center;padding:12px}.apmc-story-modal[hidden]{display:none!important}.apmc-story-panel{width:min(960px,96vw);height:min(780px,94dvh);display:flex;flex-direction:column;background:#07192c;border:1px solid #6acef4;border-radius:14px;overflow:hidden}.apmc-story-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 12px;color:#fff;font-weight:800}.apmc-story-close{color:#fff;background:#25384c;border:0;border-radius:7px;font-size:24px;min-width:42px}.apmc-story-frame{border:0;flex:1;width:100%;background:#fff}.apmc-story-poster{width:100%;height:calc(100% - 55px);object-fit:contain;background:#091725}.apmc-story-help{padding:8px;color:#fff;background:#233b52}.apmc-story-help a{color:#72dfff}
@media(max-width:1050px){.apmc120{grid-template-columns:minmax(0,1fr) 300px}.apmc120 .apmc-terr-scroll{grid-template-columns:repeat(2,minmax(0,1fr))}.apmc120 .apmc-terr-card:nth-child(n+3){display:none}}
@media(max-width:760px){.apmc120{grid-template-columns:1fr;grid-template-areas:"hero" "filters" "news" "weather";gap:8px;margin:8px 0}.apmc120 .apmc110-hero,.apmc120 .apmc-hero-copy{min-height:115px}.apmc120 .apmc-hero-copy h2{font-size:clamp(31px,7vw,48px)}.apmc120 .apmc-hero-pin{font-size:34px}.apmc120 .apmc-terr-filters button{flex:0 0 auto;padding:10px 13px;min-height:40px}.apmc120 .apmc-terr-weather{width:100%}.apmc120 .apmc-terr-scroll{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:490px){.apmc120 .apmc-hero-copy{padding:12px;gap:5px}.apmc120 .apmc-hero-copy h2{font-size:31px}.apmc120 .apmc-hero-copy p{font-size:11px}.apmc120 .apmc-terr-head h2,.apmc120 .apmc-events-heading h3{font-size:14px}.apmc120 .apmc-events-heading span{display:none}.apmc120 .apmc-terr-scroll{grid-template-columns:1fr;height:171px;max-height:171px;grid-template-rows:171px}.apmc120 .apmc-terr-card{height:159px}.apmc120 .apmc-terr-thumb{height:102px}.apmc120 .apmc-event-card{flex-basis:132px}.apmc120 .apmc-events-strip{padding:7px}}
@media(prefers-reduced-motion:reduce){.apmc120 *{scroll-behavior:auto!important}}
