/*
Theme Name: Jebog – Stefano Todisco
Description: Adattamento WordPress del template originale Jebog fornito dal cliente.
Version: 1.9.1
Author: E-Nea Services (integrazione WordPress); Jebog originale: igdepe
Text Domain: jebog
*/
.head{z-index:20;pointer-events:none}.head img{width:min(340px,80%);padding:0;background:transparent;border-radius:0;box-shadow:none}.cp{z-index:21;left:8px;bottom:12px}.cp p{transform:none;font-size:12px;margin:0;color:var(--accent)}
.wrapblock .block1{position:relative;background:var(--left);isolation:isolate}.jebog-slides{position:absolute;inset:0;z-index:-1;overflow:hidden}.jebog-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s}.jebog-slide.active{opacity:1}.jebog-slides:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,var(--shade)),rgba(0,0,0,calc(var(--shade) * .55)))}
.wrapblock .block1.has-slides #daypost h1{background:none;-webkit-text-fill-color:white;color:white}.wrapblock .block1.has-slides #daypost p{color:white}.wrapblock .block2{background:var(--right)}.block2>.tb>.cell{background-position:var(--position);background-size:cover;background-repeat:no-repeat}.wrapblock .wrap h2 span,.wrapblock #timepost .box p{color:white}.wrapblock #timepost .box p{background:var(--accent)}.wrapblock .wrap h2 span{color:var(--accent)}.wrapblock .wrap .atag:not(.atagback) a,.wrapblock .wrap form input[type=submit]{background-image:linear-gradient(to right,#7B334B,var(--accent))}.wrapblock .wrap .jebog-role{font-size:16px;margin:0 0 18px}.wrapblock .wrap .jebog-contact-links{font-size:14px;margin-top:28px}.jebog-contact-links a{color:inherit;text-decoration:underline}.block3{overflow:auto}.jebog-no-timer #daypost h1{font-size:clamp(45px,8vw,120px);-webkit-text-fill-color:currentColor;background:none;overflow-wrap:anywhere}.jebog-no-timer .blocktransform .main{display:block}.jebog-no-timer .blocktransform .jebog-role{display:block}.wrapblock .wrap .wpcf7 p{color:#333;font-size:16px;margin:0}.wrapblock .wrap .wpcf7 textarea{max-height:130px}.wrapblock .wrap .wpcf7 .wpcf7-response-output{font-size:14px}.block2 .wrap{padding-top:100px;padding-bottom:65px}.block3 .wrap{padding-top:100px;padding-bottom:40px}.wrapblock #timepost .box{margin-right:10px}.wrapblock #timepost .box h4{width:clamp(70px,7vw,130px);height:clamp(70px,7vw,130px);line-height:clamp(66px,calc(7vw - 4px),126px);font-size:clamp(35px,4vw,70px)}.wrapblock .blocktransform #timepost .boxsecond h4{width:auto;height:auto;line-height:normal;font-size:clamp(120px,20vw,400px)}
@media(max-width:1199px){.head{background:transparent;border-bottom:0}.cp{position:relative;left:auto;bottom:auto;padding:8px;text-align:center;background:#fff}.wrapblock .block1{min-height:300px}.block2 .wrap,.block3 .wrap{padding-top:60px}.wrapblock .block2 .cell{min-height:400px}.wrapblock #timepost .box h4{margin:auto}.wrapblock #timepost .box p{bottom:10px}}
@media(prefers-reduced-motion:reduce){.jebog-slide{transition:none}}

/* Selectable image treatments, retaining the original Jebog text clipping. */
.wrapblock .block1.mode-text #daypost h1{background:var(--left-image) var(--left-position)/var(--left-size,cover) no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.wrapblock .block1.mode-background>.tb>.cell{background:linear-gradient(rgba(0,0,0,var(--left-shade)),rgba(0,0,0,var(--left-shade))),var(--left-image) var(--left-position)/var(--left-size,cover) no-repeat}
.wrapblock .block1.mode-background #daypost h1,.wrapblock .block1.mode-color #daypost h1{background:none;-webkit-text-fill-color:currentColor;color:#333}
.wrapblock .block1.mode-background #daypost h1,.wrapblock .block1.mode-background #daypost p{color:#fff}
.wrapblock .block2.mode-text #timepost .box h4{background:var(--right-image) var(--position)/cover no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.wrapblock .block2.mode-color.blocktransform #timepost .boxsecond h4{background:none;-webkit-text-fill-color:currentColor;color:white}
.wrapblock .block2.mode-background.blocktransform #timepost .boxsecond h4{background:none;-webkit-text-fill-color:currentColor;color:white}
.cp a,.wrapblock .wrap p a,.wrapblock .wrap h2 a{color:inherit;text-decoration:underline}

.wrapblock .block1.mode-background>.tb>.cell{background-color:var(--left)}

/* Keep the original typographic layout, with an adaptive photograph mask. */
.wrapblock .block1.mode-text #daypost h1{font-size:clamp(72px,19vw,400px);line-height:1.05;margin:0 auto;position:relative;white-space:nowrap;max-width:100%;}
.wrapblock .block1.mode-text #daypost h1.bell-rendered{background:none;}
#daypost h1 .bell-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.wrapblock .block1.mode-text #daypost p{bottom:0;margin:0;font-size:clamp(28px,4vw,70px);}
@media(max-width:1199px){.wrapblock .block1.mode-text #daypost h1{font-size:clamp(72px,30vw,300px);}}

.wrapblock .block1.mode-text #daypost h1.bell-rendered{background:none!important;-webkit-text-fill-color:transparent!important;}

/* Transparent logo on all screen sizes, including original Jebog overrides. */
.head,.head img{background:transparent!important;border:0!important;box-shadow:none!important}.head img{padding:0!important;border-radius:0!important;}

/* 1.7 – typography, independent colours and original left-aligned logo. */
html,body,body button,body input,body select,body textarea{font-family:var(--font-body,Roboto,Arial,sans-serif);}
.wrapblock .wrap h2,.wrapblock .wrap h3,.wrapblock .block h2.second{font-family:var(--font-heading,Roboto Slab,Georgia,serif);}
.wrapblock #daypost h1,.wrapblock #daypost p,.wrapblock #timepost .box h4,.wrapblock #timepost .box p{font-family:var(--font-timer,Roboto,Arial,sans-serif);}
.wrapblock .wrap .jebog-role{font-family:var(--font-role,Roboto Slab,Georgia,serif);}
.wrapblock #daypost p{color:var(--days-color,#63363d)!important;}
.cp p,.cp p a{color:var(--footer-color,#e4413c)!important;}
.head{text-align:left!important;left:0;right:0;}
.head img{margin:20px auto 20px clamp(16px,3vw,48px)!important;}
.block2>.tb>.cell{background-position:center center,var(--position,50% 50%);}
@media(max-width:1199px){.head img{margin:16px auto 16px 20px!important;}}

/* 1.8 – editable contact links */
.wrapblock .wrap .jebog-contact-links{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;color:#333}.wrapblock .wrap .jebog-contact-links:empty{display:none}.wrapblock .wrap .jebog-contact-links a.jebog-contact-item{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none;max-width:100%;overflow-wrap:anywhere}.jebog-contact-item .dashicons{flex:none;font-size:21px;width:21px;height:21px;color:var(--accent)}.wrapblock .wrap .jebog-contact-links a:hover{text-decoration:underline}.jebog-contact-item:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* Privacy modal: hash fallback works without JavaScript. */
#privacy-policy{display:none;position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,.72);padding:16px;align-items:center;justify-content:center;box-sizing:border-box;overflow:auto;}
#privacy-policy:target,#privacy-policy.is-open{display:flex!important;}
#st-privacy-dialog{box-sizing:border-box;width:100%;max-width:720px;max-height:85vh;display:flex;flex-direction:column;border-radius:12px;background:#fff;color:#242424;box-shadow:0 18px 80px #0006;font-family:var(--font-body,Arial,sans-serif);text-align:left;overflow:hidden;}
html.st-privacy-open{overflow:hidden}.st-privacy-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #ddd;flex:none}.st-privacy-header h2{font-family:var(--font-heading,Georgia,serif);font-size:24px;margin:0;color:#222}.st-privacy-close{color:#222;font-size:32px;line-height:1;cursor:pointer;padding:4px 8px;text-decoration:none}.st-privacy-content{padding:22px 24px;overflow:auto;min-height:0;overscroll-behavior:contain;font-size:16px;line-height:1.65;overflow-wrap:anywhere}.st-privacy-content p{margin:0 0 1em;color:inherit}.st-privacy-content img{max-width:100%;height:auto}.st-privacy-content a{color:#244e79;text-decoration:underline}.st-privacy-footer{padding:12px 24px;border-top:1px solid #ddd;text-align:right;flex:none}.st-privacy-close-bottom{display:inline-block;background:var(--accent,#875b28);color:#fff!important;border-radius:4px;padding:9px 20px;text-decoration:none;cursor:pointer}.st-privacy-close:focus-visible,.st-privacy-close-bottom:focus-visible{outline:2px solid #244e79;outline-offset:3px}.wpcf7 a[href="#privacy-policy"]{text-decoration:underline;cursor:pointer;position:relative;pointer-events:auto;}@media(max-width:480px){#st-privacy-dialog{max-height:90vh}.st-privacy-header,.st-privacy-content,.st-privacy-footer{padding:14px 16px}.st-privacy-header h2{font-size:20px}}
