/* SM Magazine layout — v2.3.3 */
:root{
    --sm-red:var(--lsm-secondary,#ef233c);
    --sm-black:#0b0b0d;
    --sm-ink:#121317;
    --sm-grey:#6c7079;
    --sm-line:#e8e9ed;
}

/* Header */
body.lsm-theme .sm-topbar{background:#050505;color:#fff;font-size:11px;letter-spacing:.01em}
body.lsm-theme .sm-topbar__inner{min-height:33px;justify-content:space-between}
body.lsm-theme .sm-topbar__nav{display:flex;align-items:center;gap:25px}
body.lsm-theme .sm-topbar__nav a{font-weight:600;opacity:.92}
body.lsm-theme .sm-topbar__right{margin-left:auto}
body.lsm-theme .sm-topbar__message{font-weight:600;color:#fff}
body.lsm-theme .site-header{background:#fff;color:#111;border-bottom:1px solid #e6e7ea;box-shadow:none}
body.lsm-theme .site-header.is-sticky{box-shadow:0 7px 24px rgba(0,0,0,.06)}
body.lsm-theme .header-inner{grid-template-columns:auto minmax(0,1fr) auto;gap:34px}
body.lsm-theme .header-inner .custom-logo{max-height:58px}
body.lsm-theme .brand-text{color:#101114}
body.lsm-theme .brand-text>span{font-family:Inter,sans-serif;font-weight:900;text-transform:none;letter-spacing:-.045em;font-size:34px;line-height:1}
body.lsm-theme .brand-text small{display:none}
body.lsm-theme .primary-navigation a{color:#17181c;font-size:12px;font-weight:800;letter-spacing:.01em}
body.lsm-theme .primary-navigation a:after{bottom:-27px;background:var(--sm-red);height:2px}
body.lsm-theme .search-toggle,
body.lsm-theme .menu-toggle{color:#111}
body.lsm-theme .search-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}
body.lsm-theme .menu-toggle>span:not(.screen-reader-text){background:#111}
body.lsm-theme .header-search{background:#fff;border-top:1px solid var(--sm-line);box-shadow:0 18px 30px rgba(0,0,0,.08)}
body.lsm-theme .header-search input{border:1px solid var(--sm-line)}

/* Hero */
.sm-magazine-hero{width:100%;background:#101114;overflow:hidden}
.sm-magazine-hero__grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,1fr);grid-template-rows:repeat(2,minmax(0,1fr));height:var(--sm-magazine-hero-height,520px);gap:2px;background:#fff}
.sm-magazine-hero__story{position:relative;min-width:0;overflow:hidden;background:#17181b}
.sm-magazine-hero__story--lead{grid-row:1/3}
.sm-magazine-hero__link{position:absolute;inset:0;display:block;color:#fff}
.sm-magazine-hero__media{position:absolute;inset:0;display:block}
.sm-magazine-hero__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.sm-magazine-hero__story:hover .sm-magazine-hero__media img{transform:scale(1.035)}
.sm-magazine-hero__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 22%,rgba(0,0,0,.78) 100%)}
.sm-magazine-hero__story--side .sm-magazine-hero__shade{background:linear-gradient(180deg,rgba(0,0,0,.03) 10%,rgba(0,0,0,.76) 100%)}
.sm-magazine-hero__content{position:absolute;left:clamp(24px,3.2vw,44px);right:clamp(22px,3vw,42px);bottom:clamp(22px,4vw,38px);display:flex;flex-direction:column;align-items:flex-start;color:#fff}
.sm-magazine-hero__story--side .sm-magazine-hero__content{left:25px;right:25px;bottom:20px}
.sm-magazine-hero .category-badge{background:var(--sm-red);border-radius:0;padding:6px 9px;font-size:10px}
.sm-magazine-hero__title,
.sm-magazine-hero__content h2{display:block;max-width:780px;margin:14px 0 13px;font:800 clamp(27px,3.3vw,43px)/1.08 Inter,sans-serif;letter-spacing:-.035em}
.sm-magazine-hero__story--side .sm-magazine-hero__title,
.sm-magazine-hero__story--side .sm-magazine-hero__content h2{font-size:clamp(20px,2vw,28px);margin:11px 0 10px;max-width:500px}
.sm-magazine-hero__meta{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:600;color:rgba(255,255,255,.9)}
.sm-magazine-hero__meta span+span:before{content:"•";margin-right:10px;color:#fff}
.sm-magazine-hero--fallback .sm-magazine-hero__story{color:#fff}

/* Category navigation: text-only buttons, fully customizable. */
body.lsm-theme .category-strip{border:0;background:var(--section-bg,#fff)!important;padding:var(--section-padding,18px) 0!important}
body.lsm-theme .category-scroll{display:flex;justify-content:center;gap:14px;padding:0;background:transparent;overflow-x:auto;scrollbar-width:thin}
body.lsm-theme .category-item{flex:1 0 135px;display:flex;align-items:center;justify-content:center;min-height:52px;padding:11px 17px;border:1px solid var(--lsm-category-button-border,#e4e5e8);border-radius:var(--lsm-category-button-radius,0);background:var(--lsm-category-button-bg,#fff);color:var(--lsm-category-button-color,#111);gap:0;transform:none;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
body.lsm-theme .category-item:hover,
body.lsm-theme .category-item:focus-visible{background:var(--lsm-category-hover-bg,#172d61);border-color:var(--lsm-category-hover-border,#172d61);color:var(--lsm-category-hover-color,#fff);transform:none;outline:0}
body.lsm-theme .category-copy{display:block;width:100%;text-align:center}
body.lsm-theme .category-item strong{display:block;color:inherit;font-size:11px;line-height:1.2;letter-spacing:0;text-transform:none;white-space:nowrap}

/* Shared magazine headings */
.sm-section-title-row,
body.lsm-theme .featured-section .section-heading{position:relative;display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;padding-left:15px}
.sm-section-title-row:before,
body.lsm-theme .featured-section .section-heading:before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:3px;background:var(--sm-red)}
.sm-section-title-row h2,
body.lsm-theme .featured-section .section-heading h2{font:800 18px/1.15 Inter,sans-serif;letter-spacing:.025em;text-transform:uppercase;margin:0;color:var(--sm-ink)}

/* Trending */
body.lsm-theme .featured-section{padding:30px 0!important;background:#fff!important}
body.lsm-theme .featured-section .section-heading{align-items:center}
body.lsm-theme .featured-section .section-heading>a{margin-left:auto;color:var(--sm-red);font-size:11px;font-weight:800;text-transform:uppercase}
body.lsm-theme .featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;gap:30px}
body.lsm-theme .featured-card{min-height:0;border-radius:0;background:#fff;overflow:visible}
body.lsm-theme .featured-1{grid-row:auto;min-height:0}
body.lsm-theme .featured-card-link{position:static;display:block;height:auto;color:var(--sm-ink)}
body.lsm-theme .featured-card__media{display:block;aspect-ratio:1.72/1;overflow:hidden;background:#eee}
body.lsm-theme .featured-card img{position:static;width:100%;height:100%;object-fit:cover}
body.lsm-theme .featured-card:hover img{transform:scale(1.025)}
body.lsm-theme .featured-card__body{display:block;padding-top:10px}
body.lsm-theme .featured-card .category-badge{padding:0;background:none;color:#16171b;border-radius:0;font-size:9px;letter-spacing:.03em}
body.lsm-theme .featured-title{display:block;margin:6px 0 8px;font:800 17px/1.22 Inter,sans-serif;letter-spacing:-.018em;color:var(--sm-ink)}
body.lsm-theme .featured-card .entry-meta{display:flex;gap:9px;color:#777b83;font-size:10px}
body.lsm-theme .featured-card .entry-meta span+span:before{content:"•";margin-right:9px;color:#989ba1}

/* Sponsor / promotional banner — every value can be overridden per clone. */
body.lsm-theme .custom-home-section.custom-layout-magazine_banner{padding:var(--section-padding,22px) 0!important;background:var(--section-bg,#fff)!important}
body.lsm-theme .custom-layout-magazine_banner .custom-home-inner{position:relative;min-height:var(--promo-min-height,168px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(260px,.75fr);align-items:center;overflow:hidden;padding:var(--promo-inner-padding,30px) clamp(28px,7vw,105px);border-radius:var(--promo-radius,0);background:linear-gradient(110deg,var(--promo-bg-start,#07090d),var(--promo-bg-end,#16191e));color:var(--promo-title,#fff)}
body.lsm-theme .custom-layout-magazine_banner .custom-home-copy{position:relative;z-index:2;max-width:var(--promo-content-width,520px)}
body.lsm-theme .custom-layout-magazine_banner .eyebrow{padding:0;background:none;color:var(--promo-eyebrow,var(--sm-red));font-size:10px}
body.lsm-theme .custom-layout-magazine_banner h2{margin:7px 0 12px;color:var(--promo-title,#fff);font:800 clamp(23px,3vw,34px)/1.05 Inter,sans-serif;letter-spacing:-.035em}
body.lsm-theme .custom-layout-magazine_banner p{margin:0 0 15px;color:var(--promo-text,#c8cbd1);font-size:13px;line-height:1.55}
body.lsm-theme .custom-layout-magazine_banner .button{padding:11px 24px;border:0;border-radius:999px;background:var(--promo-button-bg,var(--sm-red));color:var(--promo-button-text,#fff);font-size:11px;transition:background-color .2s ease,color .2s ease,transform .2s ease}
body.lsm-theme .custom-layout-magazine_banner .button:hover,body.lsm-theme .custom-layout-magazine_banner .button:focus{background:var(--promo-button-hover-bg,#172d61);color:var(--promo-button-hover-text,#fff);transform:translateY(-1px)}
body.lsm-theme .custom-layout-magazine_banner .custom-home-media{position:relative;right:auto;bottom:auto;justify-self:end;width:min(100%,var(--promo-image-width,270px));transform:none;opacity:1;z-index:2}
body.lsm-theme .custom-layout-magazine_banner .custom-home-media img{display:block;width:100%;height:auto;max-height:var(--promo-media-max-height,260px);object-fit:var(--promo-image-fit,cover);border:0;border-radius:var(--promo-image-radius,30px);box-shadow:0 12px 30px rgba(0,0,0,.35)}
body.lsm-theme .custom-home-media-link{display:block;line-height:0;border-radius:inherit}
body.lsm-theme .custom-home-media-link:focus-visible{outline:3px solid currentColor;outline-offset:4px}
body.lsm-theme .custom-layout-magazine_banner.has-no-custom-copy .custom-home-inner{grid-template-columns:1fr}
body.lsm-theme .custom-layout-magazine_banner.has-no-custom-copy .custom-home-media{justify-self:center;width:min(100%,max(var(--promo-image-width,270px),620px))}
body.lsm-theme .custom-layout-magazine_banner.show-decorative-phone .custom-home-inner:after{content:"";position:absolute;right:8%;top:15%;width:175px;height:300px;border:7px solid #e8e8e8;border-radius:32px;transform:rotate(-7deg);background:linear-gradient(180deg,#f4f4f4 0 12%,#17191e 12% 100%);box-shadow:0 20px 40px rgba(0,0,0,.55)}
body.lsm-theme .custom-layout-magazine_banner.has-custom-image .custom-home-inner:after,body.lsm-theme .custom-layout-magazine_banner:not(.show-decorative-phone) .custom-home-inner:after{display:none}

/* Editorial split */
body.lsm-theme .sm-editorial-section{padding:30px 0!important;background:#fff!important}
.sm-editorial-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.92fr);gap:38px;align-items:start}
.sm-editorial-pick{padding-left:28px;border-left:1px solid var(--sm-line)}
.sm-editorial-list{display:flex;flex-direction:column}
.sm-editorial-list__item{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid var(--sm-line)}
.sm-editorial-list__image{display:block;aspect-ratio:1.72/1;overflow:hidden;background:#eee}
.sm-editorial-list__image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.sm-editorial-list__item:hover .sm-editorial-list__image img{transform:scale(1.03)}
.sm-editorial-list__copy{padding:2px 0}
.sm-editorial-list__copy .category-badge{padding:0;background:none;color:var(--sm-red);font-size:9px}
.sm-editorial-list__copy h3{margin:7px 0 12px;font:800 17px/1.2 Inter,sans-serif;letter-spacing:-.017em}
.sm-editorial-list__meta{display:flex;flex-wrap:wrap;gap:8px;margin:0;color:#83868d;font-size:10px}
.sm-editorial-list__meta span+span:before{content:"•";margin-right:8px;color:#a0a2a7}
.sm-editorial-more{display:flex;align-items:center;justify-content:center;min-height:43px;border:1px solid var(--sm-line);font-size:11px;font-weight:800;letter-spacing:.02em}
.sm-editorial-more:hover{border-color:var(--sm-red);color:var(--sm-red)}
.sm-editorial-pick__card{position:relative;min-height:325px;overflow:hidden;background:#111}
.sm-editorial-pick__card>a{position:absolute;inset:0;display:block;color:#fff}
.sm-editorial-pick__card img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.sm-editorial-pick__card:hover img{transform:scale(1.03)}
.sm-editorial-pick__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02) 25%,rgba(0,0,0,.86) 100%)}
.sm-editorial-pick__copy{position:absolute;left:22px;right:22px;bottom:20px;display:flex;flex-direction:column;align-items:flex-start}
.sm-editorial-pick__copy .category-badge{padding:0;background:none;color:var(--sm-red);font-size:9px}
.sm-editorial-pick__title{margin:8px 0 9px;font:800 22px/1.12 Inter,sans-serif;letter-spacing:-.026em}
.sm-editorial-pick__meta{font-size:10px;color:rgba(255,255,255,.82)}
.sm-editorial-picks-link{display:block;padding:14px 8px;text-align:center;color:var(--sm-red);font-size:11px;font-weight:800;text-transform:uppercase}

/* Existing modules remain available but inherit a cleaner magazine language. */
body.lsm-theme .home-section{scroll-margin-top:110px}
body.lsm-theme .button{background:var(--sm-red);border-radius:3px}
body.lsm-theme .button:hover{box-shadow:0 10px 22px rgba(239,35,60,.22)}
body.lsm-theme .section-heading h2{font-family:Inter,sans-serif}
body.lsm-theme .post-card{border-radius:0;box-shadow:none}
body.lsm-theme .post-card-title{font-weight:800}
body.lsm-theme .site-footer{background:#08090b}

@media(max-width:1050px){
    .sm-magazine-hero__grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr)}
    .sm-editorial-list__item{grid-template-columns:190px minmax(0,1fr)}
    body.lsm-theme .primary-navigation ul{gap:18px!important}
    body.lsm-theme .primary-navigation a{font-size:11px}
}

@media(max-width:820px){
    body.lsm-theme .sm-topbar__inner{justify-content:center}
    body.lsm-theme .sm-topbar__nav{overflow-x:auto;width:100%;justify-content:flex-start;padding:0 2px}
    body.lsm-theme .sm-topbar__right{display:none}
    body.lsm-theme .primary-navigation{background:#fff;border-top:1px solid var(--sm-line);box-shadow:0 16px 30px rgba(0,0,0,.08)}
    body.lsm-theme .primary-navigation li{border-bottom:1px solid var(--sm-line)}
    body.lsm-theme .primary-navigation a{color:#111}
    .sm-magazine-hero__grid{height:auto;grid-template-columns:1fr;grid-template-rows:none;gap:2px}
    .sm-magazine-hero__story--lead{grid-row:auto;min-height:430px}
    .sm-magazine-hero__story--side{min-height:260px}
    body.lsm-theme .featured-grid{grid-template-columns:1fr 1fr;gap:22px}
    body.lsm-theme .featured-card:last-child{grid-column:1/-1}
    .sm-editorial-grid{grid-template-columns:1fr;gap:34px}
    .sm-editorial-pick{padding-left:0;border-left:0}
    body.lsm-theme .custom-layout-magazine_banner .custom-home-inner{grid-template-columns:minmax(0,1fr) minmax(180px,.55fr);padding-right:var(--promo-inner-padding,30px)}
    body.lsm-theme .custom-layout-magazine_banner .custom-home-inner:after{right:3%;transform:rotate(-5deg) scale(.78)}
    body.lsm-theme .custom-layout-magazine_banner.has-no-custom-image:not(.show-decorative-phone) .custom-home-inner{padding-right:clamp(28px,7vw,105px)}
}

@media(max-width:620px){
    body.lsm-theme .lsm-container{width:min(calc(100% - 28px),var(--lsm-container))}
    .sm-magazine-hero__story--lead{min-height:380px}
    .sm-magazine-hero__story--side{min-height:225px}
    .sm-magazine-hero__content{left:20px;right:20px;bottom:20px}
    .sm-magazine-hero__title,
    .sm-magazine-hero__content h2{font-size:29px}
    .sm-magazine-hero__story--side .sm-magazine-hero__title,
    .sm-magazine-hero__story--side .sm-magazine-hero__content h2{font-size:21px}
    body.lsm-theme .category-item{flex-basis:128px}
    body.lsm-theme .featured-grid{grid-template-columns:1fr}
    body.lsm-theme .featured-card:last-child{grid-column:auto}
    .sm-editorial-list__item{grid-template-columns:128px minmax(0,1fr);gap:13px}
    .sm-editorial-list__copy h3{font-size:14px;margin:5px 0 8px}
    .sm-editorial-list__meta span:last-child{display:none}
    .sm-editorial-pick__card{min-height:300px}
    body.lsm-theme .custom-layout-magazine_banner .custom-home-inner{grid-template-columns:1fr;padding:max(24px,var(--promo-inner-padding,30px)) 24px;min-height:max(235px,var(--promo-min-height,168px))}
    body.lsm-theme .custom-layout-magazine_banner .custom-home-media{justify-self:center;width:min(100%,var(--promo-image-width,270px))}
    body.lsm-theme .custom-layout-magazine_banner .custom-home-copy{max-width:100%}
    body.lsm-theme .custom-layout-magazine_banner .custom-home-inner:after{right:-38px;top:12%;transform:rotate(-7deg) scale(.62)}
    body.lsm-theme .custom-layout-magazine_banner.has-no-custom-image:not(.show-decorative-phone) .custom-home-copy{max-width:100%}
}


/* Banner/Sponsor full-image advertising mode — v2.7.18
 * L'immagine resta sempre intera: la larghezza riempie il banner e l'altezza
 * del contenitore segue automaticamente il rapporto originale della creatività.
 */
body.lsm-theme .custom-home-section.is-image-only-banner{
    padding:0!important;
    background:transparent!important;
}
body.lsm-theme .custom-home-section.is-image-only-banner .custom-home-inner{
    position:relative;
    display:block;
    width:min(calc(100% - 40px),var(--promo-container-width,1240px));
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    overflow:hidden;
    border-radius:var(--promo-radius,0);
    background:transparent!important;
}
body.lsm-theme .custom-home-section.is-image-only-banner .custom-home-copy{display:none!important}
body.lsm-theme .custom-home-section.is-image-only-banner .custom-home-media{
    position:static!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    transform:none!important;
    overflow:hidden;
    border-radius:inherit;
}
body.lsm-theme .custom-home-section.is-image-only-banner .custom-home-media-link{
    display:block!important;
    width:100%!important;
    height:auto!important;
    line-height:0;
    cursor:pointer;
}
body.lsm-theme .custom-home-section.is-image-only-banner .custom-home-media img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center center;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
body.lsm-theme .custom-home-section.is-image-only-banner .custom-home-inner:after{display:none!important}
@media(max-width:560px){
    body.lsm-theme .custom-home-section.is-image-only-banner .custom-home-inner{
        width:min(calc(100% - 28px),var(--promo-container-width,1240px));
        min-height:0!important;
        height:auto!important;
    }
}
