/*
Theme Name: Fondazione Ferrero Comotto
Description: Tema essenziale per la Fondazione Ferrero Comotto. Fondo bianco, nero e giallo, un solo carattere, il cerchio come unico segno.
Version: 3.7
Author: Mauro Filisetti
Text Domain: ffc
*/
:root{--ffc-D:min(66vh,48vw);--ffc-pad:clamp(24px,4vw,56px);--ffc-yellow:#E8CB20;--ffc-black:#111;--ffc-white:#fff;--ffc-gut:clamp(20px,5vw,72px)}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--ffc-white);color:var(--ffc-black)}
body{font-family:"neue-haas-grotesk-text","Neue Haas Grotesk Text Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-synthesis:none;font-size:16px;line-height:1.35;-webkit-font-smoothing:antialiased;min-height:100vh;overflow-x:hidden}
html{overflow-x:clip}
a{color:inherit;text-decoration:none;transition:color .15s ease}
a:hover,a:focus-visible{color:var(--ffc-yellow)}
strong,b{font-weight:700}
.ffc-page{position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;padding:var(--ffc-gut);overflow:hidden}
/* cerchio */
.ffc-circle{position:absolute;top:max(50%, calc(var(--ffc-gut) + 44px + .55*var(--ffc-D)));right:0;width:var(--ffc-D);aspect-ratio:1;transform:translate(42%,-55%);z-index:0}
.ffc-circle svg{display:block;width:100%;height:auto;overflow:visible}
.ffc-circle text{font-family:inherit;white-space:pre}
/* verticale */
.ffc-vertical{position:absolute;left:calc(var(--ffc-gut)*.45);top:var(--ffc-gut);writing-mode:vertical-rl;font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;z-index:1}
.ffc-main{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;justify-content:center;padding-left:clamp(24px,4vw,56px);max-width:58%}
.ffc-kicker{font-weight:400;font-size:clamp(24px,2.6vw,38px);line-height:1.1}
.ffc-title{font-weight:700;font-size:clamp(24px,2.6vw,38px);line-height:1.1;margin-bottom:clamp(28px,4vh,48px)}
.ffc-info{font-size:15px;line-height:1.35}
.ffc-info p+p{margin-top:1.1em}
/* riga artissima */
.ffc-bar{position:relative;z-index:1;padding:22px 0 0 clamp(24px,4vw,56px);font-size:15px;line-height:1.45}
.ffc-bar p+p{margin-top:.15em}
.ffc-bar .cta{margin-top:.6em}
.ffc-ast{display:block;font-weight:700;font-size:clamp(88px,9vw,150px);line-height:.62;height:.5em;margin:0 0 0 -.04em}
.ffc-page--circ .ffc-bar{margin-top:clamp(32px,4vh,56px)}
.ffc-bar .y{color:#B89F00;font-weight:700}
.ffc-bar a{font-weight:400;display:inline-block;text-decoration:none;color:var(--ffc-black);background:var(--ffc-yellow);padding:.25em .6em}
.ffc-bar a:hover{background:var(--ffc-black);color:var(--ffc-yellow)}
.ffc-foot{position:relative;z-index:1;margin:clamp(28px,4vh,48px) calc(-1*var(--ffc-gut)) calc(-1*var(--ffc-gut));padding:18px var(--ffc-gut) 18px calc(var(--ffc-gut)*.45);background:var(--ffc-black);color:#fff;font-size:13px}
.ffc-foot{display:flex;justify-content:space-between;align-items:center;gap:16px}
.ffc-foot a{text-decoration:none;color:#fff}
.ffc-foot a:hover{color:var(--ffc-yellow)}
/* immagine con didascalia */
.ffc-figure{margin:0}
.ffc-figure img{display:block;width:auto;height:auto;max-width:100%;max-height:56vh}
.ffc-figure figcaption{margin-top:16px;font-size:15px;line-height:1.35;max-width:52ch}
.ffc-figure figcaption strong{display:block;font-size:clamp(18px,1.6vw,24px);line-height:1.15;margin-bottom:.35em}
.ffc-figure figcaption span{display:block;font-size:14px}
.ffc-info input[type=password]{font:inherit;border:1px solid #111;padding:.4em .6em;margin:.4em 0}
.ffc-info input[type=submit]{font:inherit;border:0;background:var(--ffc-yellow);padding:.45em .9em;cursor:pointer}
/* immagine tonda (esce a sinistra, stessa misura del logo) */
.ffc-page--circ{--ffc-D:min(58vh,46vw);--ffc-top:clamp(16px,2.6vh,28px);padding-top:var(--ffc-top)}
.ffc-page--circ .ffc-vertical{position:relative;left:auto;top:auto;align-self:flex-start;margin-left:calc(var(--ffc-gut)*.45 - var(--ffc-gut));margin-bottom:clamp(12px,2vh,20px)}
.ffc-main--circ{position:relative}
.ffc-page--circ .ffc-circle{top:var(--ffc-top);width:calc(var(--ffc-D)*2/3);transform:translateX(42%)}
.ffc-main--circ{max-width:none;justify-content:flex-start;padding-left:0}
.ffc-round{width:var(--ffc-D);aspect-ratio:1;border-radius:50%;overflow:hidden;margin-left:calc(var(--ffc-pad) - .42*var(--ffc-D))}
.ffc-round img{display:block;width:100%;height:100%;object-fit:cover}
.ffc-round-text{margin-left:calc(var(--ffc-pad) + .3*var(--ffc-D));width:auto;margin-top:clamp(18px,3vh,32px)}
.ffc-round a{display:block;width:100%;height:100%;cursor:zoom-in}
.ffc-lightbox{border:0;padding:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:rgba(255,255,255,.97);display:none;align-items:center;justify-content:center;cursor:zoom-out}
.ffc-lightbox[open]{display:flex}
.ffc-lightbox::backdrop{background:transparent}
.ffc-lightbox img{display:block;max-width:calc(100vw - 2*var(--ffc-gut) - 60px);max-height:calc(100vh - 2*var(--ffc-gut) - 40px);width:auto;height:auto}
.ffc-lightbox-close{position:fixed;top:12px;right:20px;border:0;background:none;font-family:inherit;font-size:44px;line-height:1;color:var(--ffc-black);cursor:pointer}
.ffc-lightbox-close:hover{color:var(--ffc-yellow)}
.ffc-round-text .ffc-title{margin-bottom:.5em}
.ffc-rich{font-size:16px;line-height:1.4}
.ffc-rich p+p{margin-top:.8em}
.ffc-rich a{border-bottom:0}
/* pagine interne: titolo in verticale, logo a destra, contenuto a blocchi */
.ffc-page--inner{--ffc-D:min(58vh,46vw);--ffc-top:clamp(16px,2.6vh,28px);--ffc-logo:calc(var(--ffc-D)*2/3);padding-top:var(--ffc-top)}
.ffc-page--inner .ffc-circle{top:var(--ffc-top);width:var(--ffc-logo);transform:translateX(42%);display:block}
.ffc-page--inner .ffc-vertical{top:var(--ffc-top);margin:0;font-size:14px;line-height:1.2}
.ffc-entry{position:relative;z-index:1;flex:1;margin-left:var(--ffc-pad);margin-right:max(0px,calc(.58*var(--ffc-logo) - var(--ffc-gut) + 32px));font-size:17px;line-height:1.5}
.ffc-entry>*+*{margin-top:1.1em}
.ffc-entry>:first-child{margin-top:0}
.ffc-entry p,.ffc-entry ul,.ffc-entry ol{max-width:68ch}
.ffc-entry ul,.ffc-entry ol{padding-left:1.2em}
.ffc-entry h2{font-size:clamp(24px,2.6vw,38px);font-weight:700;line-height:1.1;margin-top:1.6em;max-width:24ch}
.ffc-entry h3{font-size:17px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;margin-top:2em}
.ffc-entry h2+*,.ffc-entry h3+*{margin-top:.6em}
.ffc-entry a{font-weight:700}
.ffc-entry img{display:block;max-width:100%;height:auto}
.ffc-entry figure{margin-left:0;margin-right:0}
.ffc-entry figcaption,.ffc-entry .wp-element-caption{font-size:13px;line-height:1.35;margin-top:8px;text-align:left;color:var(--ffc-black)}
.ffc-entry .wp-block-gallery.has-nested-images{gap:12px;--wp--style--gallery-gap-default:12px;--gallery-block--gutter-size:12px}
.ffc-entry .wp-block-gallery.has-nested-images figure.wp-block-image figcaption{position:static;background:none;color:var(--ffc-black);padding:0;margin-top:6px;font-size:12px;text-shadow:none;max-height:none;overflow:visible}
.ffc-entry .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{display:none}
.ffc-entry .wp-block-button__link,.ffc-entry .wp-element-button{background:var(--ffc-yellow);color:var(--ffc-black);border-radius:0;font-weight:400;padding:.4em .9em;font-size:17px}
.ffc-entry .wp-block-button__link:hover{background:var(--ffc-black);color:var(--ffc-yellow)}
.ffc-entry .wp-block-file a:not(.wp-block-file__button){font-weight:700}
.ffc-entry .wp-block-file__button{background:var(--ffc-yellow);color:var(--ffc-black);border-radius:0}
.ffc-entry hr,.ffc-entry .wp-block-separator{border:0;border-top:1px solid var(--ffc-black);opacity:1;margin:2.4em 0;max-width:none}
.ffc-entry .has-giallo-color{color:var(--ffc-yellow)}.ffc-entry .has-giallo-background-color{background:var(--ffc-yellow)}
.ffc-entry .has-nero-color{color:var(--ffc-black)}.ffc-entry .has-nero-background-color{background:var(--ffc-black)}
.ffc-entry .has-bianco-color{color:#fff}
.ffc-entry .has-piccolo-font-size{font-size:13px}.ffc-entry .has-normale-font-size{font-size:17px}.ffc-entry .has-medio-font-size{font-size:22px}.ffc-entry .has-grande-font-size{font-size:28px}.ffc-entry .has-titolo-font-size{font-size:clamp(24px,2.6vw,38px);line-height:1.1}
.ffc-entry input[type=password]{font:inherit;border:1px solid #111;padding:.4em .6em;margin:.4em 0}
.ffc-entry input[type=submit]{font:inherit;border:0;background:var(--ffc-yellow);padding:.45em .9em;cursor:pointer}
.ffc-entry a[href$=".jpg"],.ffc-entry a[href$=".jpeg"],.ffc-entry a[href$=".png"],.ffc-entry a[href$=".webp"]{cursor:zoom-in}
.ffc-lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center}
.ffc-lightbox figcaption{font-size:13px;margin-top:10px;max-width:70ch;text-align:center}
.ffc-lightbox-nav{position:fixed;top:50%;transform:translateY(-50%);border:0;background:none;font-family:inherit;font-size:40px;line-height:1;padding:12px;cursor:pointer;color:var(--ffc-black)}
.ffc-lightbox-nav:hover{color:var(--ffc-yellow)}
.ffc-lightbox-prev{left:8px}.ffc-lightbox-next{right:8px}
/* pagine interne (vecchio) */
.ffc-content{max-width:680px;padding:var(--ffc-gut);font-size:17px;line-height:1.5}
.ffc-content h1{font-size:32px;font-weight:700;margin-bottom:24px}
.ffc-content p{margin-bottom:1em}
.ffc-content a.home{display:inline-block;margin-bottom:40px;font-weight:700;text-decoration:none}
@media (max-width:760px){
 .ffc-circle{position:relative;top:auto;right:auto;transform:none;width:88vw;margin:0 -38vw 32px auto;align-self:flex-end}
 .ffc-main{max-width:100%;justify-content:flex-start}
 .ffc-vertical{left:16px;top:20px;font-size:12px}
 .ffc-page--circ .ffc-vertical{position:absolute;margin:0}
 .ffc-page{padding:20px 16px 28px;overflow:hidden}
 .ffc-main,.ffc-bar{padding-left:0}
 .ffc-foot{margin:28px -16px -28px;padding:16px}
 .ffc-page--circ .ffc-circle{top:auto;transform:none;width:calc(88vw*2/3);margin:0 -25vw 32px auto}
 .ffc-round{width:88vw;margin-left:-38vw}
 .ffc-page--inner .ffc-circle{top:auto;transform:none;width:calc(88vw*2/3);margin:0 -25vw 32px auto}
 .ffc-entry{margin:0;font-size:16px}
 .ffc-lightbox-nav{font-size:32px;padding:6px}
 .ffc-round-text{margin-left:0;width:100%}
}
@media (min-width:761px) and (orientation:portrait){
 .ffc-circle{top:36%;width:72vw}
 .ffc-main{justify-content:flex-end;max-width:100%;padding-bottom:4vh}
 .ffc-kicker,.ffc-title{font-size:4.4vw}
 .ffc-page--img .ffc-figure img{max-height:36vh;max-width:64vw}
 .ffc-page--img .ffc-circle{top:27%;width:62vw}
 .ffc-info{font-size:2.3vw}
 .ffc-page--circ,.ffc-page--inner{--ffc-D:62vw}
 .ffc-page--inner .ffc-circle{top:var(--ffc-top)}
 .ffc-page--inner .ffc-main{padding-top:0}
 .ffc-page--circ .ffc-circle{top:var(--ffc-top);width:calc(var(--ffc-D)*2/3)}
 .ffc-main--circ{justify-content:flex-start;padding-bottom:0;padding-top:0}
 .ffc-round-text .ffc-title{font-size:3.6vw}
 .ffc-rich{font-size:2.1vw}
}
@media (prefers-reduced-motion:no-preference){.ffc-circle{animation:ffc-in 1.1s cubic-bezier(.2,.7,.2,1) both}@keyframes ffc-in{from{opacity:0;scale:.92}}}
.ffc-lightbox button:focus:not(:focus-visible){outline:none}

/* Instagram */
.ffc-ig{display:inline-block;width:24px;height:24px;flex:none;color:#fff}
.ffc-ig svg{display:block;width:100%;height:100%}
.ffc-ig:hover{color:var(--ffc-yellow)}
.ffc-ig--dark{color:var(--ffc-black);width:32px;height:32px}
/* Menu: quadrato nero con tre linee */
.ffc-topbar{position:absolute;z-index:20;top:var(--ffc-gut);right:calc(var(--ffc-gut)*.45);display:flex;align-items:center;gap:10px}
body:has(.ffc-page--circ,.ffc-page--inner) .ffc-topbar{top:clamp(16px,2.6vh,28px)}
.ffc-burger{width:27px;height:27px;border:1.5px solid var(--ffc-black);padding:0;background:#fff;cursor:pointer;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;transition:background .15s ease}
.ffc-burger span{display:block;width:14px;height:1.5px;background:var(--ffc-black);transition:transform .2s ease,opacity .2s ease,background .15s ease}
.ffc-burger:hover{background:var(--ffc-black)}
.ffc-burger:hover span{background:#fff}
.ffc-burger:focus-visible,.ffc-ig--top:focus-visible{outline:2px solid var(--ffc-yellow);outline-offset:2px}
.ffc-menu .ffc-burger--close{position:absolute;top:var(--ffc-gut);right:calc(var(--ffc-gut)*.45)}
body:has(.ffc-page--circ,.ffc-page--inner) .ffc-menu .ffc-burger--close{top:clamp(16px,2.6vh,28px)}
.ffc-ig--top{color:var(--ffc-black);width:27px;height:27px}
.ffc-ig--top svg *{transition:fill .15s ease,stroke .15s ease}
.ffc-ig--top:hover{color:var(--ffc-black)}
.ffc-ig--top:hover svg .o{fill:var(--ffc-black)}
.ffc-ig--top:hover svg :not(.o){stroke:#fff}
.ffc-ig--top:hover svg .d{fill:#fff;stroke:none}
.ffc-burger--close span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.ffc-burger--close{position:absolute}
.ffc-burger--close span:nth-child(2){opacity:0}
.ffc-burger--close span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
.ffc-burger:focus:not(:focus-visible){outline:none}
.ffc-menu{border:0;margin:0;padding:0;width:100vw;height:100vh;max-width:none;max-height:none;background:#fff;color:var(--ffc-black)}
.ffc-menu[open]{display:flex;flex-direction:column}
.ffc-menu::backdrop{background:transparent}
.ffc-menu-nav{flex:1;display:flex;align-items:center;padding:var(--ffc-gut) var(--ffc-gut) var(--ffc-gut) calc(var(--ffc-gut) + var(--ffc-pad,clamp(24px,4vw,56px)))}
.ffc-menu-list{list-style:none;margin:0;padding:0}
.ffc-menu-list li+li{margin-top:.15em}
.ffc-menu-list a{font-weight:700;font-size:clamp(14px,2vw,28px);line-height:1.1;text-decoration:none;color:var(--ffc-black)}
.ffc-menu-list a:hover,.ffc-menu-list .current-menu-item>a,.ffc-menu-list .current_page_item>a{color:var(--ffc-yellow)}
html.ffc-menu-open{overflow:hidden}
/* il logo scende sotto il quadrato del menu dove parte in alto */
.ffc-page--circ .ffc-circle,.ffc-page--inner .ffc-circle{top:calc(var(--ffc-top) + 44px)}
@media (max-width:760px){
 .ffc-topbar,body:has(.ffc-page--circ,.ffc-page--inner) .ffc-topbar,.ffc-menu .ffc-burger--close,body:has(.ffc-page--circ,.ffc-page--inner) .ffc-menu .ffc-burger--close{top:16px;right:16px}
 .ffc-topbar{gap:8px}
 .ffc-circle{margin-top:32px!important}
 .ffc-page--circ .ffc-circle,.ffc-page--inner .ffc-circle{top:auto}
 .ffc-menu-nav{padding:72px 16px 24px}
 .ffc-foot{align-items:flex-start}
}
