/* Base comune a tutte le pagine. Le regole specifiche di ogni pagina statica
   sono in pages.css (generato). Font: Open Sauce Sans, licenza in ../assets/fonts/OFL.txt. */
@font-face{font-family:'Open Sauce Sans';font-weight:400;font-display:swap;src:url("../assets/fonts/opensauce-400.woff2") format('woff2')}
@font-face{font-family:'Open Sauce Sans';font-weight:500;font-display:swap;src:url("../assets/fonts/opensauce-500.woff2") format('woff2')}
@font-face{font-family:'Open Sauce Sans';font-weight:600;font-display:swap;src:url("../assets/fonts/opensauce-600.woff2") format('woff2')}
@font-face{font-family:'Open Sauce Sans';font-weight:700;font-display:swap;src:url("../assets/fonts/opensauce-700.woff2") format('woff2')}

*{box-sizing:border-box}
/* Come il body delle pagine statiche, anche prima che Blazor renda la pagina. */
body{margin:0;background:#191514;color:#FAFCFC;font-family:'Open Sauce Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}

.ot-noscript{max-width:640px;margin:0 auto;padding:96px 24px;font-size:18px;line-height:1.55}
.ot-noscript a{color:#00E0C6}

#blazor-error-ui{display:none;position:fixed;left:16px;right:16px;bottom:16px;z-index:1000;padding:16px 56px 16px 20px;background:#FF5470;color:#191514;font-size:15px;font-weight:500;box-shadow:0 24px 64px rgba(0,0,0,.35)}
#blazor-error-ui .reload{color:inherit;text-decoration:underline;text-underline-offset:3px;margin-left:8px}
#blazor-error-ui .dismiss{position:absolute;top:50%;right:16px;transform:translateY(-50%);cursor:pointer}

.blazor-error-boundary{background:#FF5470;color:#191514;padding:16px 20px}
.blazor-error-boundary::after{content:"Si è verificato un errore."}

/* Dissolvenza all'apertura delle pagine (al caricamento e arrivando da un'altra pagina): aggiunta
   dell'app. Solo opacità sulla radice, senza transform, per non alterare header sticky, banner
   cookie e finestre a posizione fissa. Il testo della domanda in cima (home, "Come lavoriamo",
   pagine legali) sale leggermente, una riga dopo l'altra. Selettori senza id, così l'effetto
   glitch all'hover delle domande continua a prevalere. Le pagine legali ripartono anche
   passando da un documento all'altro (@key in Legale.razor). */
@keyframes ot-page-in{from{opacity:0}to{opacity:1}}
@keyframes ot-rise-in{from{opacity:0;translate:0 32px}to{opacity:1;translate:none}}
.ot-p-main,.ot-p-metodo,.ot-p-legale{animation:ot-page-in 1.2s cubic-bezier(.25,.6,.3,1) both}
.ot-p-main .ot-q:first-child>*,.ot-p-metodo .ot-q>*,.ot-p-legale .ot-hero>*{animation:ot-rise-in 1.1s cubic-bezier(.25,.6,.3,1) both}
.ot-p-main .ot-q:first-child>:nth-child(1),.ot-p-metodo .ot-q>:nth-child(1),.ot-p-legale .ot-hero>:nth-child(1){animation-delay:.25s}
.ot-p-main .ot-q:first-child>:nth-child(2),.ot-p-metodo .ot-q>:nth-child(2),.ot-p-legale .ot-hero>:nth-child(2){animation-delay:.4s}
.ot-p-main .ot-q:first-child>:nth-child(3),.ot-p-metodo .ot-q>:nth-child(3),.ot-p-legale .ot-hero>:nth-child(3){animation-delay:.6s}
@media (prefers-reduced-motion:reduce){.ot-p-main,.ot-p-metodo,.ot-p-legale,.ot-p-main .ot-q:first-child>*,.ot-p-metodo .ot-q>*,.ot-p-legale .ot-hero>*{animation:none}}

/* Dissolvenza allo scroll della home: aggiunta dell'app, non presente nel sito statico.
   Attiva solo quando site.js (revealOnScroll) ha avviato l'osservatore; finita l'animazione
   l'elemento torna ai propri stili (es. transizioni e hover delle card). Usa "translate"
   e non "transform", per non interferire con le trasformazioni degli effetti hover.
   [data-reveal]: il blocco compare intero. [data-reveal-stagger]: compaiono i figli diretti,
   uno dopo l'altro (righe, card, colonne). */
.ot-reveal-on .ot-p-main [data-reveal]:not([data-reveal-state]),
.ot-reveal-on .ot-p-main [data-reveal-stagger]:not([data-reveal-state])>*{opacity:0;translate:0 72px}
.ot-reveal-on .ot-p-main [data-reveal][data-reveal-state="in"],
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>*{transition:opacity 1.1s cubic-bezier(.25,.6,.3,1),translate 1.1s cubic-bezier(.25,.6,.3,1)}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(2){transition-delay:0.12s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(3){transition-delay:0.24s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(4){transition-delay:0.36s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(5){transition-delay:0.48s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(6){transition-delay:0.60s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(7){transition-delay:0.72s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(8){transition-delay:0.84s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(9){transition-delay:0.96s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(10){transition-delay:1.08s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(11){transition-delay:1.20s}
.ot-reveal-on .ot-p-main [data-reveal-stagger][data-reveal-state="in"]>:nth-child(12){transition-delay:1.32s}
/* Seconda e terza domanda della home: come la prima (32 px, ritmo 0,15/0,35 s). */
.ot-reveal-on .ot-p-main .ot-q[data-reveal-stagger]:not([data-reveal-state])>*{translate:0 32px}
.ot-reveal-on .ot-p-main .ot-q[data-reveal-stagger][data-reveal-state="in"]>:nth-child(2){transition-delay:.15s}
.ot-reveal-on .ot-p-main .ot-q[data-reveal-stagger][data-reveal-state="in"]>:nth-child(3){transition-delay:.35s}
@media (prefers-reduced-motion:reduce){
.ot-reveal-on .ot-p-main [data-reveal]:not([data-reveal-state]),
.ot-reveal-on .ot-p-main [data-reveal-stagger]:not([data-reveal-state])>*{opacity:1;translate:none}
}

/* Logo della home che si ricompone da solo (aggiunta dell'app, vedi FlipSection.razor): le due
   metà scivolano in posizione con una transizione (solo all'andata: tornando indietro si separano
   subito, a logo già invisibile), la fessura turchese si allarga e poi svanisce. */
@keyframes ot-slit{0%{transform:scaleX(0);opacity:1}75%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0}}
.ot-p-main .ot-half{transition:transform 1.2s cubic-bezier(.2,.8,.2,1),opacity .5s ease-out}
.ot-p-main .ot-slit{animation:ot-slit 1.4s cubic-bezier(.3,.7,.3,1) both}
@media (prefers-reduced-motion:reduce){.ot-p-main .ot-half{transition:none}.ot-p-main .ot-slit{animation:none}}

/* Icona del mouse nella transizione della home (aggiunta dell'app): la rotella scende e svanisce. */
@keyframes ot-wheel{0%{translate:0 0;opacity:1}70%{translate:0 12px;opacity:0}100%{translate:0 0;opacity:0}}
.ot-p-main .ot-wheel{animation:ot-wheel 1.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.ot-p-main .ot-wheel{animation:none}}

/* Pulsante sotto il logo della home (aggiunta dell'app): composto il logo, un anello turchese pulsa
   intorno al pulsante e la freccia scende; al passaggio del mouse diventa turchese. */
@keyframes ot-cta-ring{0%{box-shadow:0 0 0 0 rgba(0,224,198,.75)}70%,100%{box-shadow:0 0 0 18px rgba(0,224,198,0)}}
@keyframes ot-cta-bounce{0%,100%{translate:0 -2px}50%{translate:0 4px}}
.ot-p-main .ot-cta{transition:background-color .2s,color .2s}
.ot-p-main .ot-cta:hover,.ot-p-main .ot-cta:focus-visible{background:#00E0C6 !important;color:#191514 !important}
.ot-p-main .ot-cta-on{animation:ot-cta-ring 1.8s ease-out .3s infinite}
.ot-p-main .ot-cta-on .ot-cta-arrow{display:inline-block;animation:ot-cta-bounce 1.2s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.ot-p-main .ot-cta-on,.ot-p-main .ot-cta-on .ot-cta-arrow{animation:none}}
