(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5181],{15181:function(e,r,t){"use strict";t.d(r,{YK:function(){return K},E2:function(){return O},pU:function(){return z},XV:function(){return X},ZP:function(){return J},jT:function(){return D},FW:function(){return M},DW:function(){return S},Qk:function(){return B},n5:function(){return E},Zm:function(){return P},_7:function(){return I}});var a=t(11527),i=t(45924),l=t(8857),n=t(19800),o=t(83171),_=t.n(o),s=t(71708),u=t(82646),c=t(35362);let d={fetchPriority:"high"},p={fetchpriority:"high"};function h(e,r,t,a){let[i,l]=r.split(":").map(Number),{props:n}=(0,s.getImageProps)({src:e,alt:"",width:t,height:Math.floor(t/i*l),quality:75,sizes:a,loader:e=>{let{src:t,width:a,quality:i}=e;return(0,c.J)({src:t,width:a,quality:i,format:r,maintainAspectRatio:!1,wPercent:0})}});return n.srcSet}var v=function(e){let{src:r,alt:t,title:i,width:l,sizes:n,breakpoint:o,priority:s,onError:c}=e,v="(min-width: ".concat(o,"px)"),m="not all and ".concat(v),y=h(r,"16:9",l,n),f=h(r,"4:3",l,n);return(0,a.jsxs)(a.Fragment,{children:[s&&(0,a.jsxs)(_(),{children:[(0,a.jsx)("link",{rel:"preload",as:"image",imageSrcSet:f,imageSizes:n,media:m,...p},"art-preload-4:3-".concat(o,"-").concat(n,"-").concat(r)),(0,a.jsx)("link",{rel:"preload",as:"image",imageSrcSet:y,imageSizes:n,media:v,...p},"art-preload-16:9-".concat(o,"-").concat(n,"-").concat(r))]}),(0,a.jsxs)("picture",{children:[(0,a.jsx)("source",{media:v,srcSet:y,sizes:n}),(0,a.jsx)(u.Z,{src:r,width:l,format:"4:3",quality:75,sizes:n,loading:s?"eager":"lazy",...s?d:{},alt:t,title:i,onError:c})]})]})},m=t(41249),y=t(50401),f=t(66770),x=t(31261),A=t(63289),j=t(64968),V=t(20479),g=t(78504),b=t.n(g),w=t(50240),N=t(76141),C=t(51853),k=t(16374);let T={"Layout-Apertura1":"hero-local","Layout-Apertura2":"hero-related-1","Layout-seconda-apertura-3-bottom":"hero-related-2","Layout-contro-apertura":"hero-related","Layout-Apertura+Controapertura2":"invert"},L=//gi;function Z(e){return(0,k.K)(e.replace(L,"")).replace(/\s*\/\s*$/,"").trim()}function P(e,r,t,i){let o="title"===r&&/{if(e instanceof l.xv){let i=e.data;if("title"!==r||!i.trim())return;let l=(function(e){if("/"===e.trim())return[{separator:!0,text:""}];let r=[],t=e,a=t.match(/^\s*\/\s+/);a&&(r.push({separator:!0,text:""}),t=t.slice(a[0].length));let i=t.match(/\s+\/\s*$/);return i&&(t=t.slice(0,t.length-i[0].length)),t&&r.push({separator:!1,text:t}),i&&r.push({separator:!0,text:""}),r.length?r:[{separator:!1,text:e}]})(i).filter(e=>!(o&&e.separator));return 0===l.length?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(a.Fragment,{children:l.map((e,r)=>e.separator?(0,a.jsx)("span",{className:b().richText__separator,children:" / "},r):(0,a.jsx)(n.rU,{href:t,className:b().richText__link,children:e.text},r))})}if(e instanceof l.W_){if("a"===e.name)return _?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(a.Fragment,{children:(0,l.du)(e.children,s)});if("p"===e.name||"div"===e.name)return(0,a.jsx)(a.Fragment,{children:(0,l.du)(e.children,s)})}}},u=(0,l.ZP)(e,s);return"title"===r?(0,a.jsx)("span",{className:b()["richText--title"],children:u}):u}function S(e){let r=e.content;if((null==r?void 0:r.__typename)==="Link"){var t;return r.url||(null===(t=r.content)||void 0===t?void 0:t.url)||""}return(null==r?void 0:r.path)||e.url||""}function M(e){let r=e.content,t=null==r?void 0:r.parent,a=e.teaserOvertitle||(null==r?void 0:r.overTitle)||((null==t?void 0:t.hideSectionTitle)?"":null==t?void 0:t.title)||"";return(0,n.Vt)(a).trim()}function B(e){if(e){if("Image"===e.__typename)return e.baseUrl?e:void 0;if("Video"===e.__typename||"ImageGallery"===e.__typename){let r=e.image;return(null==r?void 0:r.baseUrl)?r:void 0}}}function I(e){return e.toLocaleLowerCase("it-IT").replace(RegExp("(^|[\\s'\\u2019-])(\\p{L})","gu"),(e,r,t)=>r+t.toLocaleUpperCase("it-IT"))}function K(e){let{teaser:r,className:t=b().byline}=e,i=r.content,l=(0,A.o$)({hideAuthor:null==i?void 0:i.hideAuthor,byline:r.byline,authors:r.authors,categoria:function(e){var r,t,a,i,l;let n=e.content;return(null==n?void 0:n.__typename)==="ImageGallery"?null!==(i=null===(a=n.parent)||void 0===a?void 0:a.title)&&void 0!==i?i:void 0:null!==(l=null==n?void 0:null===(t=n.contentPath)||void 0===t?void 0:null===(r=t[0])||void 0===r?void 0:r.title)&&void 0!==l?l:void 0}(r)});if(!l)return null;let n=l.name;return(0,a.jsxs)("div",{className:t,children:["di ",(0,a.jsx)("span",{children:I(n)})]})}function O(e){let{label:r}=e;return r?(0,a.jsxs)("div",{className:b().badge,children:[(0,a.jsx)(N.yt,{className:b().badge__corner}),(0,a.jsx)("span",{className:b().badge__label,children:r}),(0,a.jsx)(N.yt,{className:(0,i.Z)(b().badge__corner,b()["badge__corner--end"])})]}):null}function D(e){var r,t;return null!==(t=null===(r=B(e))||void 0===r?void 0:r.baseUrl)&&void 0!==t?t:function(e){if((null==e?void 0:e.__typename)!=="Video")return;let r=e.mediaId||(0,x.C6)(e.embedCode);return r?"https://www.dailymotion.com/thumbnail/640x360/video/".concat(r):void 0}(e)}function z(e){var r,t;let{teaser:i,className:l,width:o,sizes:_,priority:s,src:u,play:c,children:d,mobile4x3Below:p}=e,h=null!=u?u:D(i.media);if(!h)return null;let m=S(i),y=Z(null!=(t=i.title)?t:"")||(0,k.K)(t),f=e=>{e.currentTarget.dataset.broken=""};return(0,a.jsxs)("div",{className:l,children:[(0,a.jsx)(n.rU,{prerenderActive:!0,href:m||"/",title:y,children:p?(0,a.jsx)(v,{src:h,alt:y,title:y,width:o,sizes:_,breakpoint:p,priority:s,onError:f}):(0,a.jsx)(n.Ee,{src:h,alt:y,title:y,width:o,format:"16:9",sizes:_,priority:s,loading:s?void 0:"lazy",onError:f})}),(null===(r=i.media)||void 0===r?void 0:r.__typename)==="Video"&&(null!=c?c:(0,a.jsx)(w.o,{className:b().media__play})),d]})}function E(e){var r;return(null===(r=e.media)||void 0===r?void 0:r.__typename)==="Video"&&!!(0,y.x)(e)}function X(e){var r,t,i,l;let{teaser:n,playerType:o}=e,{leaf:_,section:s}=(0,