/* ORTHYNE anteprima 03/12 00:12: apertura di 3 secondi e sezioni come pannelli di luce. Solo bozza: non pubblicare senza l ok di Fulvio. */
html.cine{--o3-blu:#030a1d;--o3-luce:#6fc3ff}
/* niente vecchio caricamento, niente pulsante audio, niente puntini laterali */
html #cine-loader{display:none!important}
html body:not(#c1):not(#c2):not(#c3):not(#c4):not(#c5) [data-cine-suoni]{display:none!important}
html body:not(#c1):not(#c2):not(#c3):not(#c4):not(#c5) .cine-punti{display:none!important}
/* schermo blu finche lo script dell apertura non parte */
html.o3i body::after{content:"";position:fixed;inset:0;background:#030816;z-index:2147483000;pointer-events:none}
#o3-intro{position:fixed;inset:0;width:100%;height:100%;z-index:2147483001;display:block}

/* stile unico: blu profondo e luce */
html body.cine:not(#c1):not(#c2):not(#c3){background-color:var(--o3-blu)!important}
html body:not(#c1):not(#c2):not(#c3) .cine-griglia,html body:not(#c1):not(#c2):not(#c3) .h3-top,html body:not(#c1):not(#c2):not(#c3) .h3o,html body:not(#c1):not(#c2):not(#c3) .h3o-faq,html body:not(#c1):not(#c2):not(#c3) .h3-fine{background:linear-gradient(180deg,#030a1d,#06163a 55%,#030a1d)!important}
html body:not(#c1):not(#c2):not(#c3) .cine-griglia li a,html body:not(#c1):not(#c2):not(#c3) .h3o-c,html body:not(#c1):not(#c2):not(#c3) .h3o-q{background:linear-gradient(150deg,rgba(52,104,196,.30),rgba(10,24,60,.62))!important;border:1px solid rgba(111,195,255,.34)!important;box-shadow:inset 0 1px 0 rgba(190,230,255,.14),0 0 22px rgba(60,140,255,.13)!important}

/* ---------- pannelli di luce ---------- */
html body:not(#c1):not(#c2):not(#c3) .o3{position:relative;z-index:3;background:linear-gradient(180deg,#06163a 0,#06163a 55%,#030a1d 100%)!important;margin:0;padding:0;overflow:clip}
.o3 .o3-titolo{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.o3-terra{position:relative;aspect-ratio:1;border-radius:50%;pointer-events:none}
.o3-terra video,.o3-terra img{mix-blend-mode:screen;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;-webkit-mask-image:radial-gradient(circle closest-side,#000 75.5%,rgba(0,0,0,.5) 80%,transparent 89%);mask-image:radial-gradient(circle closest-side,#000 75.5%,rgba(0,0,0,.5) 80%,transparent 89%)}
html body:not(#c1):not(#c2):not(#c3):not(#c4) .o3-pausa{position:absolute;inset-inline-end:14px;top:10px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(160,205,255,.5);background:rgba(6,16,44,.7);color:#e4f1ff;font:700 14px/1 system-ui;cursor:pointer;z-index:3}
html.o3-fermo .o3-p a{animation:none!important}
.o3-lista{list-style:none;margin:0;padding:0}
.o3-p{perspective:1100px}
html body:not(#c1):not(#c2):not(#c3) .o3-p a{position:relative;display:flex;align-items:center;gap:14px;min-height:92px;padding:16px 18px;border-radius:18px;text-decoration:none!important;color:#eef6ff!important;background:linear-gradient(135deg,rgba(80,150,255,.22),rgba(14,36,86,.42) 45%,rgba(6,16,44,.55))!important;border:1px solid rgba(125,205,255,.55)!important;box-shadow:inset 0 0 28px rgba(80,160,255,.16),0 0 26px rgba(70,150,255,.24),0 18px 40px rgba(0,4,20,.45)!important;overflow:hidden;transform:rotateY(var(--ry,0deg)) rotateX(var(--rx,0deg)) scale(var(--s,1));transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.o3-p a::before{content:"";position:absolute;inset:0 14% auto;height:1px;background:linear-gradient(90deg,transparent,#d8f1ff,transparent)}
.o3-p a::after{content:"";position:absolute;inset:0;background:radial-gradient(220px circle at var(--mx,-200px) var(--my,-200px),rgba(160,220,255,.28),transparent 62%);pointer-events:none}
.o3-ico{flex:none;width:52px;height:52px;border-radius:15px;display:grid;place-items:center;border:1px solid rgba(140,215,255,.5);background:rgba(60,130,255,.2);box-shadow:0 0 18px rgba(90,180,255,.35)}
.o3-ico svg{width:28px;height:28px;color:#bfe6ff;stroke:currentColor}
.o3-t{min-width:0;flex:1}
.o3-t b{display:block;font-size:1.22rem;line-height:1.2;color:#fff;overflow-wrap:anywhere}
.o3-t span{display:block;font-size:.92rem;line-height:1.35;color:#b8d4f5;margin-top:3px;overflow-wrap:anywhere}
.o3-va{flex:none;width:20px;height:20px;color:#8fd2ff}
html[dir=rtl] .o3-va{transform:scaleX(-1)}
html body:not(#c1):not(#c2):not(#c3) .o3-p a:hover,html body:not(#c1):not(#c2):not(#c3) .o3-p a:focus-visible{--s:1.035;border-color:#c8ecff!important;box-shadow:inset 0 0 34px rgba(110,190,255,.3),0 0 44px rgba(90,180,255,.5),0 22px 46px rgba(0,4,20,.5)!important}
html body:not(#c1):not(#c2):not(#c3) .o3-p a:focus-visible{outline:2px solid #fff!important;outline-offset:3px}
html body:not(#c1):not(#c2):not(#c3) .o3-p a:active{--s:.97}

/* arrivo: lo schermo si avvicina */
html.o3-anima .o3-p{opacity:0;transform:perspective(900px) translateZ(-320px) translateY(46px);transition:opacity .6s ease,transform .75s cubic-bezier(.2,.8,.2,1);transition-delay:var(--d,0ms)}
html.o3-anima .o3-p.in{opacity:1;transform:none}

/* ---------- 9:16 e schermi verticali: Terra in alto, pannelli impilati ---------- */
.o3-scena{display:block;max-width:760px;margin:0 auto;padding:0 14px 34px}
.o3-cielo{position:sticky;top:var(--cn-top,64px);z-index:2;display:flex;justify-content:center;padding:6px 0 18px;margin:0 -14px;}
html body:not(#c1):not(#c2):not(#c3):not(#c4) .o3 .o3-cielo::before{content:""!important;position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;z-index:-1;background:linear-gradient(180deg,#06163a 0,#06163a calc(100% - 38px),rgba(6,22,58,0) 100%)!important}
.o3-cielo .o3-terra{width:min(78vw,31vh,420px)}
.o3-col{display:grid;gap:14px;margin-bottom:14px}
/* tablet verticali: due pannelli per riga */
@media (min-width:620px){.o3-col{grid-template-columns:1fr 1fr}.o3-t b{font-size:1.1rem}.o3-ico{width:44px;height:44px}}
/* telefono in orizzontale: Terra piccola che non resta ferma, due per riga */
@media (max-height:560px) and (orientation:landscape){.o3-cielo{position:relative;top:0}html body:not(#c1):not(#c2):not(#c3):not(#c4):not(#c5) .o3 .o3-cielo::before{display:none}.o3-cielo .o3-terra{width:min(64vh,300px)}.o3-col{grid-template-columns:1fr 1fr}}

/* ---------- 16:9 e schermi larghi: Terra grande al centro, pannelli ai lati ---------- */
@media (min-width:900px) and (min-height:561px) and (min-aspect-ratio:6/5){
html body:not(#c1):not(#c2):not(#c3) .o3{background:radial-gradient(ellipse at 50% 35%,#0b2a66 0,#06163a 42%,#030a1d 78%)!important}
.o3-scena{display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,1.25fr) minmax(250px,1fr);grid-template-areas:"a c b";align-items:center;gap:clamp(14px,2.2vw,48px);max-width:2100px;min-height:calc(100vh - var(--cn-top,70px));padding:28px clamp(16px,3vw,64px)}
.o3-cielo{grid-area:c;position:relative;top:0;margin:0;padding:0}
html body:not(#c1):not(#c2):not(#c3):not(#c4):not(#c5) .o3 .o3-cielo::before{display:none}

.o3-cielo .o3-terra{width:min(100%,82vh,980px)}
.o3-col{grid-template-columns:1fr;gap:clamp(10px,2.2vh,28px);margin:0;max-width:460px;width:100%}
.o3-sx{grid-area:a;justify-self:end}.o3-dx{grid-area:b;justify-self:start}
.o3-sx .o3-p{--lato:9deg}.o3-dx .o3-p{--lato:-9deg}
html[dir=rtl] .o3-sx .o3-p{--lato:-9deg}html[dir=rtl] .o3-dx .o3-p{--lato:9deg}
.o3-p a{--ry:var(--lato)}
.o3-p a:hover,.o3-p a:focus-visible{--ry:0deg}
html body:not(#c1):not(#c2):not(#c3) .o3-p a{min-height:clamp(86px,14vh,150px)}
.o3-t b{font-size:clamp(1.1rem,1.35vw,1.9rem)}.o3-t span{font-size:clamp(.9rem,.95vw,1.25rem)}
}
@media (hover:hover) and (pointer:fine){
html.o3-anima .o3-p.in a{animation:o3-galleggia 7s ease-in-out infinite;animation-delay:var(--g,0s)}
html.o3-anima .o3-p.in a:hover{animation-play-state:paused}
}
@keyframes o3-galleggia{50%{translate:0 -7px}}
@media (prefers-reduced-motion:reduce){html.o3i body::after{display:none}.o3-p a{transition:none!important;animation:none!important}}

/* mentre si guardano i pannelli i pulsanti galleggianti si fanno da parte */
html.o3-dentro body:not(#c1):not(#c2):not(#c3):not(#c4) :is(.isav,.ox-sh,.oa-b.isa137,.oi-dk){opacity:0!important;pointer-events:none!important;visibility:hidden!important}
