/*
Theme Name: Casa Largher
Theme URI: https://www.largher.it/
Author: Casa Largher
Description: Tema editoriale B2B per Casa Largher.
Version: 7.16.16
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: casa-largher
*/

/* 5.7 export + quality revision */
.export57-cutout{background:transparent;border:0;display:flex;align-items:center;justify-content:center;box-shadow:none}
.export57-cutout img{width:100%;height:auto;max-height:430px;object-fit:contain;background:transparent}
.export57-cutout figcaption{display:none}
.export57-pillars{grid-template-columns:repeat(3,1fr)}
.quality57-certifications{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.quality57-cert{display:grid;grid-template-columns:120px 1fr;gap:28px;align-items:center;border:1px solid var(--line,#ddd4c5);padding:30px}
.quality57-cert img{width:100%;height:90px;object-fit:contain}
.quality57-cert h2{margin:0 0 8px;font-size:28px}.quality57-cert p{margin:0 0 14px}
.quality57-identity{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin-top:28px;background:var(--line,#ddd4c5);border:1px solid var(--line,#ddd4c5)}
.quality57-identity>div{background:#fff;padding:22px 28px}.quality57-identity strong{display:block;font-family:Georgia,serif;font-size:20px;margin-bottom:5px}.quality57-identity span{display:block}
@media(max-width:800px){.export57-pillars,.quality57-certifications,.quality57-identity{grid-template-columns:1fr}.quality57-cert{grid-template-columns:90px 1fr}}

/* 7.2 Japanese locale */
body.cl-lang-ja{font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic','Meiryo',sans-serif} body.cl-lang-ja h1,body.cl-lang-ja h2,body.cl-lang-ja h3{font-family:'Hiragino Mincho ProN','Yu Mincho',serif;letter-spacing:.01em}

/* 7.15.4 Private Label consolidation */
.private-label-page .pl-hero-media{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f3efe5}
.private-label-page .pl-hero-media img{width:100%;height:auto;max-height:590px;object-fit:contain;display:block}
.private-label-page .pl-cta{background:#f3efe5;color:#0b4d3b;border-top:1px solid rgba(11,77,59,.14)}
.private-label-page .pl-cta .eyebrow,.private-label-page .pl-cta h2,.private-label-page .pl-cta p{color:inherit}
.private-label-page .pl-cta .btn-light{background:#0b4d3b;color:#fff;border-color:#0b4d3b}
@media(max-width:800px){.private-label-page .pl-hero-media img{max-height:none}}

/* 7.15.5 consolidation: Arabic RTL + multilingual product resilience */
html[dir="rtl"] body{direction:rtl;text-align:right}
html[dir="rtl"] .header-inner,html[dir="rtl"] .site-nav,html[dir="rtl"] .actions,html[dir="rtl"] .section-head,html[dir="rtl"] .product54-facts,html[dir="rtl"] .product56-recipe-meta{direction:rtl}
html[dir="rtl"] .text-link{direction:rtl;display:inline-flex}
html[dir="rtl"] .product54-breadcrumbs{direction:rtl}
html[dir="rtl"] .product54-three-grid dl,html[dir="rtl"] .product54-three-grid p,html[dir="rtl"] .product56-recipe-grid{direction:rtl;text-align:right}
.product-card .product-body p{min-height:3.2em}
@media(max-width:760px){.product-card .product-body p{min-height:0}.pl-proof{flex-wrap:wrap}.food-dev-actions{align-items:flex-start}}

/* 7.16.2 credibility, Tàstiko and segmented B2B pathways */
.proof-grid-credibility{grid-template-columns:repeat(5,1fr)}
.proof-grid-credibility strong{font-size:25px}
.proof-grid-credibility a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.home-pathways-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.home-pathways-grid article{border:1px solid var(--line,#ddd4c5);padding:30px;background:#fff}
.home-pathways-grid h3{font-size:26px;margin:8px 0 24px}
.home-tastiko .rounded-media{max-height:520px;object-fit:cover}
@media(max-width:980px){.proof-grid-credibility{grid-template-columns:repeat(2,1fr)}.home-pathways-grid{grid-template-columns:1fr}}
@media(max-width:640px){.proof-grid-credibility{grid-template-columns:1fr}}
/* 7.16.2 credibility strip: single-row desktop layout */
@media (min-width:981px){
  .proof-strip-credibility .proof-grid-credibility{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0}
  .proof-strip-credibility .proof-grid-credibility>div{min-width:0;padding:26px 32px}
  .proof-strip-credibility .proof-grid-credibility strong{white-space:nowrap;font-size:clamp(22px,2vw,30px)}
  .proof-strip-credibility .proof-grid-credibility span{white-space:nowrap}
}

/* 7.16.4 - robust multilingual rendering */
.cl-contact-ltr{unicode-bidi:isolate;}
.cl-rtl .cl-contact-ltr{text-align:right;direction:ltr;}

/* 7.16.5 approved homepage/export refinements */
.home-pathway-card{position:relative;display:flex;flex-direction:column;min-height:285px}
.home-pathway-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid var(--green,#0b4d3b);border-radius:50%;color:var(--green,#0b4d3b);margin-bottom:20px}
.home-pathway-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-pathway-card .text-link{margin-top:auto;align-self:flex-start}
@media(min-width:981px){.proof-strip-credibility .proof-grid-credibility{grid-template-columns:repeat(5,minmax(0,1fr))!important}.proof-strip-credibility .proof-grid-credibility>div{padding-inline:clamp(14px,2vw,32px)!important}.proof-strip-credibility strong,.proof-strip-credibility span,.proof-strip-credibility a{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}.proof-strip-credibility strong{font-size:clamp(19px,1.75vw,28px)!important}}

/* 7.16.7 - homepage credibility row, pathway icon hardening, HalalItalia links */
@media (min-width:641px){
  .proof-strip-credibility .proof-grid-credibility{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;align-items:stretch!important}
  .proof-strip-credibility .proof-grid-credibility>div{min-width:0!important;padding:22px clamp(8px,1.5vw,24px)!important}
  .proof-strip-credibility .proof-grid-credibility strong,.proof-strip-credibility .proof-grid-credibility span,.proof-strip-credibility .proof-grid-credibility a{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
  .proof-strip-credibility .proof-grid-credibility strong{font-size:clamp(15px,1.7vw,28px)!important}
  .proof-strip-credibility .proof-grid-credibility span,.proof-strip-credibility .proof-grid-credibility a{font-size:clamp(8px,.85vw,13px)!important}
}
.home-pathway-icon{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;flex:0 0 52px!important;overflow:hidden!important;border:1px solid var(--green,#0b4d3b)!important;border-radius:50%!important;color:var(--green,#0b4d3b)!important;margin:0 0 20px!important}
.home-pathway-icon svg{display:block!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;max-width:28px!important;max-height:28px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important}
.export-halal-link,.export-halal-pillar-link{display:flex;flex-direction:column;align-items:flex-start;color:inherit;text-decoration:none}
.export-halal-link span{margin-top:6px;font-size:11px;line-height:1.35;color:#55615c;white-space:nowrap}
.export-halal-link:hover strong,.export-halal-pillar-link:hover h3{text-decoration:underline;text-underline-offset:3px}
.export-value-halal .export-halal-logo,.export51-pillar-halal .export-halal-logo{background:transparent!important}

/* 7.16.7 - consolidated homepage/export revision */
.proof-strip-credibility .proof-grid-credibility{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.proof-strip-credibility .proof-card{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:22px clamp(10px,1.7vw,28px);color:inherit;text-decoration:none!important;border-right:1px solid var(--line)}
.proof-strip-credibility .proof-card:last-child{border-right:0}.proof-strip-credibility .proof-card:hover{background:rgba(11,77,59,.035)}
.proof-strip-credibility .proof-card strong,.proof-strip-credibility .proof-card span{text-decoration:none!important;white-space:nowrap!important}.proof-card-halal img{height:30px;width:auto;max-width:78px;object-fit:contain;background:transparent;margin-bottom:4px}
.home-pathway-card .home-pathway-icon,.home-pathway-card .home-pathway-icon svg{box-sizing:border-box!important}.home-pathway-card .home-pathway-icon svg{position:static!important;transform:none!important}
.export-page .export-value{color:inherit;text-decoration:none!important;cursor:pointer}.export-page .export-value:hover{background:rgba(11,77,59,.035)}.export-page .export-value strong,.export-page .export-value span{text-decoration:none!important}.export-page .export-value-icon-multimodal{width:48px!important}.export-page .export-value-icon-multimodal svg{width:48px!important}
.export51-hero-media img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

/* 7.16.8 - Trentino / Val di Cembra editorial page */
.territory-deep-link{display:inline-block;margin-top:10px}
.territory-deep-hero{position:relative;min-height:620px;display:flex;align-items:center;color:#fff;overflow:hidden}
.territory-deep-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.territory-deep-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,28,20,.86) 0%,rgba(4,28,20,.55) 48%,rgba(4,28,20,.12) 100%)}
.territory-deep-copy{position:relative;z-index:1;padding:90px 0}.territory-deep-copy h1{color:#fff;max-width:820px}.territory-deep-copy>p:not(.eyebrow){font-size:21px;line-height:1.55;max-width:760px;margin-top:26px}
.territory-story-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:90px;align-items:start}.territory-story-grid h2{max-width:620px}.territory-story-grid .large-copy{max-width:720px}
.territory-feature-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:80px;align-items:center}.territory-feature-grid figure{margin:0}.territory-feature-grid figure img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.territory-feature-grid>div>p:not(.eyebrow){font-size:18px;line-height:1.65;margin-top:22px}.territory-feature-reverse{grid-template-columns:.95fr 1.05fr}.territory-product-figure{background:#fff;display:flex;align-items:center;justify-content:center;min-height:420px}.territory-product-figure img{object-fit:contain!important;padding:34px;max-height:460px}
.territory-closing{max-width:920px}.territory-closing>.large-copy{max-width:820px;margin-top:24px}
@media(max-width:980px){.territory-story-grid,.territory-feature-grid,.territory-feature-reverse{grid-template-columns:1fr;gap:42px}.territory-deep-hero{min-height:560px}.territory-deep-copy{padding:72px 0}}
@media(max-width:640px){.territory-deep-hero{min-height:520px}.territory-deep-copy{padding:58px 0}.territory-deep-copy>p:not(.eyebrow){font-size:17px}.territory-product-figure{min-height:300px}}

/* 7.16.9 - territory editorial imagery */
.territory-work-grid{grid-template-columns:1fr 1fr}
.territory-work-grid figure img{aspect-ratio:1/1;object-fit:cover;object-position:center}
.territory-landscape-figure{margin:0;overflow:hidden}
.territory-landscape-figure img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center 58%}
.territory-closing-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:72px;align-items:center}
.territory-market-figure{margin:0;overflow:hidden}
.territory-market-figure img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center}
@media(max-width:980px){.territory-work-grid,.territory-closing-grid{grid-template-columns:1fr;gap:42px}.territory-work-grid figure{order:2}}

/* 7.16.10 - territory page: more editorial rhythm and stronger imagery */
.territory-page .section{padding-top:clamp(72px,8vw,120px);padding-bottom:clamp(72px,8vw,120px)}
.territory-page .territory-work-grid{grid-template-columns:1.12fr .88fr;gap:clamp(54px,7vw,110px)}
.territory-page .territory-work-grid figure img{aspect-ratio:4/3}
.territory-page .territory-feature-grid:not(.territory-work-grid):not(.territory-feature-reverse){grid-template-columns:1.08fr .92fr;gap:clamp(48px,6vw,92px)}
.territory-page .territory-feature-reverse{grid-template-columns:.72fr 1.28fr;gap:clamp(52px,7vw,108px)}
.territory-page .territory-landscape-figure img{aspect-ratio:3/2;object-position:center 55%}
.territory-page .territory-story-grid{grid-template-columns:1fr 1fr;gap:clamp(46px,7vw,100px);align-items:center}
.territory-page .territory-story-grid .large-copy{font-size:19px;line-height:1.62}
.territory-page .territory-closing-grid{grid-template-columns:.82fr 1.18fr;gap:clamp(54px,7vw,105px)}
.territory-page .territory-market-figure img{aspect-ratio:3/2}
@media(max-width:980px){.territory-page .territory-work-grid,.territory-page .territory-feature-grid:not(.territory-work-grid):not(.territory-feature-reverse),.territory-page .territory-feature-reverse,.territory-page .territory-story-grid,.territory-page .territory-closing-grid{grid-template-columns:1fr;gap:38px}.territory-page .territory-feature-reverse .territory-landscape-figure{order:-1}.territory-page .territory-landscape-figure img,.territory-page .territory-market-figure img{aspect-ratio:16/10}}

/* 7.16.11 - Territory editorial captions and approved location map */
.territory-page figure{margin:0}
.territory-page figcaption{margin-top:10px;font-size:12px;line-height:1.4;color:#66716c;letter-spacing:.01em}
.territory-page .dark-panel figcaption{color:rgba(255,255,255,.72)}
.territory-page .territory-map-section{padding-top:clamp(64px,8vw,112px);padding-bottom:clamp(64px,8vw,112px)}
.territory-page .territory-map-section .territory-story-grid{grid-template-columns:.82fr 1.18fr;gap:clamp(48px,7vw,110px);align-items:center}
.territory-page .territory-map-copy .large-copy{margin-top:26px;max-width:620px}
.territory-page .territory-map-figure{width:100%;max-width:760px;justify-self:end}
.territory-page .territory-map-figure img{display:block;width:100%;height:auto;object-fit:contain}
.territory-page .territory-landscape-figure{width:100%}
.territory-page .territory-feature-reverse{grid-template-columns:.78fr 1.22fr;gap:clamp(54px,7vw,110px);align-items:center}
.territory-page .territory-landscape-figure img{aspect-ratio:16/10;object-fit:cover;object-position:center 58%}
.territory-page .territory-market-figure img{aspect-ratio:16/9;object-fit:cover;object-position:center}
@media(max-width:980px){
 .territory-page .territory-map-section .territory-story-grid,.territory-page .territory-feature-reverse{grid-template-columns:1fr}
 .territory-page .territory-map-figure{justify-self:stretch;max-width:none}
 .territory-page .territory-feature-reverse .territory-landscape-figure{order:-1}
}

/* 7.16.12 - Territory page: stronger editorial rhythm, integrated map, Visit Fiemme CTA */
.territory-page .territory-work-section{padding-top:clamp(90px,9vw,140px);padding-bottom:clamp(96px,10vw,150px)}
.territory-page .territory-work-section .territory-external-link{display:inline-block;margin-top:26px;text-decoration:none}
.territory-page .territory-bovine-section{padding-top:clamp(90px,9vw,140px);padding-bottom:clamp(90px,9vw,140px)}
.territory-page .territory-bovine-section .territory-feature-reverse{grid-template-columns:.68fr 1.32fr;gap:clamp(60px,8vw,126px)}
.territory-page .territory-bovine-section .territory-landscape-figure img{aspect-ratio:16/9;object-position:center 58%}
.territory-page .territory-map-section{padding-top:clamp(82px,9vw,132px);padding-bottom:clamp(82px,9vw,132px)}
.territory-page .territory-map-figure{overflow:visible}
.territory-page .territory-map-figure img{
  background:transparent;
  -webkit-mask-image:radial-gradient(ellipse 72% 76% at 56% 50%,#000 52%,rgba(0,0,0,.96) 66%,rgba(0,0,0,.55) 82%,transparent 100%);
  mask-image:radial-gradient(ellipse 72% 76% at 56% 50%,#000 52%,rgba(0,0,0,.96) 66%,rgba(0,0,0,.55) 82%,transparent 100%);
}
.territory-page .territory-closing-grid{padding-top:clamp(12px,2vw,30px);padding-bottom:clamp(12px,2vw,30px)}
@media(max-width:980px){
 .territory-page .territory-bovine-section .territory-feature-reverse{grid-template-columns:1fr}
 .territory-page .territory-work-section,.territory-page .territory-bovine-section{padding-top:72px;padding-bottom:78px}
 .territory-page .territory-map-figure img{-webkit-mask-image:none;mask-image:none}
}


/* 7.16.13 - Territory map integrated into section background */
.territory-page .territory-map-section .territory-story-grid{grid-template-columns:1.18fr .82fr;gap:clamp(48px,7vw,110px);align-items:center}
.territory-page .territory-map-figure{grid-column:1;grid-row:1;justify-self:start;max-width:760px}
.territory-page .territory-map-copy{grid-column:2;grid-row:1}
.territory-page .territory-map-figure img{background:transparent!important;-webkit-mask-image:none!important;mask-image:none!important;mix-blend-mode:normal}
.territory-page .territory-map-figure figcaption{display:none}
@media(max-width:980px){.territory-page .territory-map-section .territory-story-grid{grid-template-columns:1fr}.territory-page .territory-map-figure,.territory-page .territory-map-copy{grid-column:1}.territory-page .territory-map-figure{grid-row:1}.territory-page .territory-map-copy{grid-row:2}}
