/* v0.4 prova, 16/11: il prima e il dopo, come le schermate finali dell'animata */
.prima-dopo { padding-block: var(--spazio-sezione, 96px); overflow: hidden; }
.prima-dopo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; }
.pd-testa { display: grid; grid-template-columns: minmax(0, 1fr) min(520px, 46%); align-items: end; gap: 18px 28px; margin-bottom: clamp(18px, 3vw, 30px); }
.pd-testa h2 { font-weight: 400; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; margin: 6px 0 0; }
@media (min-width: 901px) { .pd-testa h2 { min-height: 2.16em; display: flex; align-items: flex-end; } } /* il titolo di Oggi va su due righe: anche quello di Innext ne occupa due, così lo schema non salta */
.pd-testa h2 b { font-weight: 700; }
.pd-comandi { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-content: start; align-self: start; } /* i pulsanti restano allo stesso posto in tutte le viste */
.pd-nota { flex-basis: 100%; margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: #C6CBE3; text-align: right; min-height: 4.35em; }
.pd-nota b { color: #fff; font-weight: 600; }
.pd-comandi .pd-nota[hidden] { display: block !important; visibility: hidden; }
@media (max-width: 900px) { .pd-testa { grid-template-columns: minmax(0, 1fr); } .pd-comandi { justify-content: flex-start; } .pd-nota { text-align: left; } }
.pd-int { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
/* 17/11, Nicola: i pulsanti non si spostano quando se ne preme uno. Il secondo interruttore tiene il suo posto anche quando non si vede. */
.pd-int.pd-gest[hidden] { display: inline-flex !important; visibility: hidden; }
.pd-int button { appearance: none; border: 0; background: transparent; color: #C6CBE3; font: 600 15px/1 "sofia-pro", sans-serif; padding: 11px 18px; border-radius: 999px; cursor: pointer; min-height: 40px; transition: background .25s, color .25s, box-shadow .25s; }
.pd-int button[aria-pressed="true"] { background: #2C3770; color: #fff; box-shadow: inset 0 0 0 1.5px var(--arancio); }
.pd-int button:focus-visible { outline: 2px solid var(--arancio-chiaro); outline-offset: 2px; }
.pd-schema { position: relative; border-radius: 28px; background: radial-gradient(ellipse at 50% 45%, rgba(46,58,120,.55), rgba(17,21,47,.2) 70%); transition: opacity .28s, transform .28s; }
.pd-schema.cambio { opacity: 0; transform: scale(.985); }
.pd-schema svg { display: block; width: 100%; height: auto; max-height: max(480px, calc(100vh - 210px)); margin-inline: auto; overflow: visible; }
.pd-schema text { font-family: "Lato", sans-serif; }
/* tessere dei programmi */
.pd-schema .tess rect { fill: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.pd-schema .tess .gen { fill: none; stroke: #212950; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pd-schema .tess.wa rect { fill: #fff; }
.pd-schema .tess.nova rect { fill: #fff; stroke: #DF625C; stroke-width: 2; }
.pd-schema .tess.chat rect { fill: #fff; stroke: var(--arancio); stroke-width: 1.5; }
/* persone */
.pd-schema .pers .anello { fill: #2A346E; stroke: var(--arancio); stroke-width: 1.6; }
.pd-schema .pers .gen { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.pd-schema .nome { fill: #fff; font-size: 14px; font-weight: 700; }
.pd-schema .ruolo { fill: #9AA1C6; font-size: 11.5px; }
.pd-schema .onda { fill: none; stroke: var(--arancio); stroke-width: 1.2; }
/* oggi */
.pd-schema .giro { fill: none; stroke: rgba(255,140,60,.55); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(255,105,0,.45)); }
.pd-schema .verso-ia { fill: none; stroke: rgba(255,178,122,.45); stroke-width: 1.2; stroke-dasharray: 3 5; }
.pd-schema .punto { fill: #FFD9B8; filter: drop-shadow(0 0 5px rgba(255,105,0,.9)); }
.pd-schema .punto.n { fill: #FFC2BF; filter: drop-shadow(0 0 5px rgba(223,98,92,.9)); }
.pd-schema .ia rect { fill: var(--arancio); }
.pd-schema .ia g { fill: #fff; }
.pd-schema .ia text { fill: #fff; font: 800 10.5px "Lato", sans-serif; }
.pd-schema .euro circle { fill: #2A346E; stroke: rgba(255,178,122,.35); stroke-width: 1; transition: fill .4s, stroke .4s, filter .4s; }
.pd-schema .euro text { fill: rgba(255,178,122,.5); font: 800 10px "Lato", sans-serif; transition: fill .4s; }
.pd-schema .euro.acceso circle { fill: var(--arancio); stroke: #FFD9B8; filter: drop-shadow(0 0 6px rgba(255,105,0,.9)); }
.pd-schema .euro.acceso text { fill: #fff; }
.pd-schema .domanda .cerchio { fill: #2A346E; stroke: #C6CBE3; stroke-width: 1.4; }
.pd-schema .domanda .punto { fill: #fff; filter: none; font: 700 20px "sofia-pro", sans-serif; }
.pd-schema .carta rect:first-child { fill: rgba(42,52,110,.92); stroke: rgba(198,203,227,.3); }
.pd-schema .carta text { fill: #C6CBE3; font-size: 11px; font-weight: 700; }
.pd-schema .carta .riga { fill: var(--arancio); opacity: calc(.35 + var(--resp, .5) * .5); }
.pd-schema .carta .attesa { fill: none; stroke: var(--arancio-chiaro); stroke-width: 1.8; }
.pd-schema .ferie { opacity: 0; transition: opacity .5s; }
.pd-schema .ferie rect { fill: #3A4580; stroke: #9AA1C6; }
.pd-schema .ferie text { fill: #fff; font-size: 11.5px; font-weight: 700; }
.pd-schema .pers.maria { transition: opacity .5s; }
.pd-schema svg.in-ferie .ferie { opacity: 1; }
.pd-schema svg.in-ferie .pers.maria { opacity: .4; }
.pd-schema svg.in-ferie .domanda .cerchio { stroke: var(--arancio); }
/* con Innext */
.pd-schema .arco { fill: none; stroke: rgba(255,140,60,.38); stroke-width: 1.3; }
.pd-schema .arco.a-pers { stroke: rgba(46,180,199,.5); }
.pd-schema .arco.coll-l { stroke-dasharray: 3 5; stroke: rgba(198,203,227,.4); }
.pd-schema .arco-nova { fill: none; stroke: rgba(223,98,92,.75); stroke-width: 1.5; }
.pd-schema .giro-n { fill: none; stroke: var(--arancio); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.pd-schema .giro-n.g0 { stroke-dasharray: 4 6; opacity: .9; }
.pd-schema .giro-n.g1 { stroke-dasharray: 30 10; opacity: .7; }
.pd-schema .giro-n.g2 { stroke-dasharray: 2 8; opacity: .55; }
.pd-schema .giro-n.g3 { opacity: .25; filter: drop-shadow(0 0 12px rgba(255,105,0,.8)); }
.pd-schema .cuore { fill: #212950; stroke: #fff; stroke-width: 1.4; }
.pd-schema .stella { fill: #fff; }
.pd-schema .eti-f { fill: #1C2350; stroke: rgba(255,178,122,.35); }
.pd-schema .eti-n { fill: #FFB27A; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pd-schema .tronco { stroke: rgba(46,180,199,.6); stroke-width: 2; }
.pd-schema .alone-v { fill: rgba(46,180,199,.35); filter: blur(16px); }
.pd-schema .vega-t { fill: #fff; font: 700 30px "sofia-pro", sans-serif; }
.pd-schema .coll rect:first-child { fill: rgba(33,41,80,.95); stroke: rgba(46,180,199,calc(.35 + var(--resp, .5) * .5)); stroke-width: 1.3; filter: drop-shadow(0 0 calc(var(--resp, .5) * 8px) rgba(46,180,199,.55)); }
.pd-schema .coll .stella-c { fill: #fff; }
.pd-schema .coll .occ { fill: #8F96BD; font-size: 7.5px; font-weight: 700; letter-spacing: .1em; }
.pd-schema .coll .lav { fill: #fff; font-size: 11.5px; font-weight: 700; }
.pd-schema .coll .conta rect { fill: rgba(76,175,110,.25); stroke: #5FCB86; stroke-width: .8; transition: fill .3s; }
.pd-schema .coll.fatto .conta rect { fill: #3FA567; }
.pd-schema .coll .conta text { fill: #BFF0CF; font-size: 8.5px; font-weight: 700; }
.pd-schema svg.tel .coll .lav { font-size: 9.8px; }
.pd-schema svg.tel .coll .occ { font-size: 6.6px; }
/* le idee sotto lo schema */
.pd-idee { list-style: none; margin: clamp(18px, 3vw, 28px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pd-idee li { display: flex; min-width: 0; }
/* 17/11: le idee sono pulsanti; accendono la loro parte dello schema sotto un velo scuro */
.pd-idea { appearance: none; width: 100%; text-align: left; cursor: pointer; font: inherit; background: rgba(17,21,47,.75); border: 1px solid rgba(255,255,255,.1); border-top: 2px solid var(--arancio); border-radius: 14px; padding: 14px 14px 16px; color: #C6CBE3; font-size: 15px; line-height: 1.38;
  transition: opacity .25s, transform .25s, border-color .25s, background-color .25s, box-shadow .25s; }
.pd-idea b { color: #fff; }
.pd-idea:hover, .pd-idea.accesa { background: rgba(44,55,112,.9); border-color: rgba(255,178,122,.55); border-top-color: var(--arancio); transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(255,105,0,.55); }
.pd-idea[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--arancio), 0 10px 24px -12px rgba(255,105,0,.55); }
.pd-idea:focus-visible { outline: 2px solid var(--arancio-chiaro); outline-offset: 2px; }
.pd-idee.con-luce .pd-idea:not(.accesa) { opacity: .5; }
.prima-dopo[data-vista="oggi"] .pd-idea { border-top-color: #8C92B2; }
.prima-dopo[data-vista="oggi"] .pd-idea.accesa { border-top-color: var(--arancio); }
.pd-schema .pd-velo { fill: rgba(8,10,28,.74); opacity: 0; pointer-events: none; transition: opacity .35s; }
.pd-schema svg.con-luce .pd-velo { opacity: 1; }
.pd-schema .pd-motore circle { fill: #F3F4F9; stroke: var(--arancio); stroke-width: 2; }
.pd-schema .pd-motore.entra { animation: pd-entra .45s cubic-bezier(.3,1.5,.5,1); }
.pd-schema .pd-scritta rect { fill: #1C2350; stroke: var(--arancio); stroke-width: 1.4; }
.pd-schema .pd-scritta text { fill: #fff; font-size: 13px; font-weight: 700; }
.pd-schema .pd-scritta { animation: pd-sale .5s ease backwards; animation-delay: calc(var(--j) * .15s); }
.pd-schema .pd-margine { animation: pd-sale .5s ease backwards; }
.pd-schema .pd-margine .riga { transform-box: fill-box; transform-origin: left; animation: pd-riga .6s ease backwards; animation-delay: calc(.35s + var(--r) * .15s); }
.pd-schema .pd-ok circle { fill: #3FA567; } .pd-schema .pd-ok path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd-schema .pd-ok { animation: pd-entra .45s cubic-bezier(.3,1.5,.5,1) .9s backwards; transform-box: fill-box; transform-origin: center; }
@keyframes pd-entra { from { transform: scale(.3); opacity: 0; } }
@keyframes pd-sale { from { opacity: 0; transform: translateY(8px); } }
@keyframes pd-riga { from { transform: scaleX(0); } }
@media (max-width: 1100px) { .pd-idee { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pd-idee { grid-template-columns: minmax(0, 1fr); } .pd-int button { padding: 10px 14px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .pd-schema, .pd-schema *, .pd-idea { transition: none !important; animation: none !important; } }

.pd-schema .pd-motore, .pd-schema .pd-scritta, .pd-schema .pd-margine, .pd-schema .pd-ok { transform-box: fill-box; transform-origin: center; }

/* 17/11 sera: Alba nello schema "Con Innext", come nella presentazione v0.20 */
.pd-alba path { fill: none; stroke-linecap: round; }
.pd-alba .alba-arco { stroke-opacity: .9; }
.pd-alba .alba-alone { stroke-opacity: .7; }
.pd-alba .alba-fondo { fill: #1A2150; fill-opacity: .92; }
.pd-chiave { transform-box: fill-box; transform-origin: center; opacity: 0; animation: pd-chiave-entra .45s ease-out calc(var(--j) * 60ms) forwards, pd-chiave-respira 2.6s ease-in-out calc(var(--j) * 60ms + .45s) infinite; }
.pd-chiave circle { fill: #EFA900; }
.pd-chiave .alone { fill: #EFA900; opacity: .28; filter: blur(2px); }
@keyframes pd-chiave-entra { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes pd-chiave-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .pd-chiave { animation: none; opacity: 1; } }

/* l'accesso respinto da Alba (come nella presentazione v0.20) */
.pd-schema .negato .neg-punto { fill: #FF6A60; stroke: #FFE1DE; stroke-width: 1.2; filter: drop-shadow(0 0 8px #E5534B) drop-shadow(0 0 3px #FF6A60); }
.pd-schema .negato .neg-onda { fill: none; stroke: #FF6A60; stroke-width: 2; }
.pd-schema .negato .neg-tratto { fill: none; stroke: #FF6A60; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 8px #E5534B); opacity: 0; }
.pd-schema .negato .neg-scritta { opacity: 0; }
.pd-schema .negato .neg-scritta rect { fill: #4A1624; fill-opacity: .95; stroke: #FF6A60; stroke-width: 1.4; }
.pd-schema .negato .neg-scritta text { fill: #FFE1DE; font: 700 13px "Lato", sans-serif; text-anchor: middle; }
