/* Adopra — vita: foto delle persone, colore e movimento (13/11/2026).
   Il sito era «troppo bianco e statico»: questo foglio aggiunge le foto dei mestieri, un po' di colore
   nelle sezioni chiare e il movimento che dà ritmo. Togliendo vita.css e vita.js il sito torna sobrio com'era.
   Tutto il movimento sta dentro prefers-reduced-motion: no-preference. */

@property --gx { syntax: "<percentage>"; inherits: false; initial-value: 18%; }
@property --gy { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* ---------- Colore: le sezioni bianche non sono più bianche piatte ---------- */
main > section:not([class]), main > section[class=""], main > section#settori, main > section#ia, main > section#domande, main > section#funzioni {
  background:
    radial-gradient(46% 42% at 100% 0%, rgba(0, 159, 227, .075), transparent 70%),
    radial-gradient(40% 44% at 0% 100%, rgba(76, 112, 175, .085), transparent 70%),
    #fff;
}
.soft { background: linear-gradient(180deg, #eef4fa 0%, #e4eef8 100%); isolation: isolate; }
.soft::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--lattice);
  -webkit-mask-image: radial-gradient(52% 70% at 100% 0%, #000, transparent 72%); mask-image: radial-gradient(52% 70% at 100% 0%, #000, transparent 72%); }
.blue, .band, .facts {
  background-image: radial-gradient(42% 78% at var(--gx) var(--gy), rgba(0, 159, 227, .34), transparent 72%), var(--deep);
}
.ico { background: linear-gradient(140deg, #0a6b9c, #009fe3); box-shadow: 0 6px 16px rgba(0, 131, 196, .28); }
.card { transition: transform .35s var(--e-out, ease), box-shadow .35s ease, border-color .25s ease; }
.say blockquote::before { color: var(--azure); opacity: .55; }

/* barra di avanzamento della lettura */
.vita-bar { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--read, 0));
  background: linear-gradient(90deg, #0a6b9c, #009fe3 60%, #6fd3ff); }

/* ---------- Home: l'apertura respira ---------- */
.hero { isolation: isolate; }
.hero::after { content: ""; z-index: -1; position: absolute; left: -10%; right: -10%; top: -120px; height: 640px; pointer-events: none; filter: blur(64px); opacity: .9;
  background:
    radial-gradient(30% 44% at 20% 34%, rgba(0, 159, 227, .34), transparent 72%),
    radial-gradient(28% 42% at 80% 26%, rgba(76, 112, 175, .40), transparent 72%),
    radial-gradient(24% 34% at 54% 66%, rgba(111, 211, 255, .30), transparent 72%); }
.hero h1 .hl { background: linear-gradient(90deg, #0a6b9c 0%, #009fe3 35%, #4c70af 65%, #0a6b9c 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }

.ppl { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 7px 18px 7px 8px; border-radius: 99px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line-2); box-shadow: var(--sh-1); backdrop-filter: blur(6px); font: 500 14.5px/1.3 var(--ft); color: var(--ink-2); text-align: left; transition: transform .3s var(--e-out, ease), box-shadow .3s ease, border-color .2s ease; }
.ppl:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand); color: var(--ink); }
.ppl b { font-family: var(--fd); color: var(--ink); }
.ppl svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-left: 6px; color: var(--brand); }
.ppl-f { display: flex; flex: none; }
.ppl-f img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(18, 33, 61, .18); margin-left: -11px; transition: margin .35s var(--e-out, ease); }
.ppl-f img:first-child { margin-left: 0; }
.ppl:hover .ppl-f img { margin-left: -6px; }
.ppl:hover .ppl-f img:first-child { margin-left: 0; }
.ppl-f img:nth-child(1) { object-position: 62% 30%; } .ppl-f img:nth-child(2) { object-position: 30% 30%; } .ppl-f img:nth-child(3) { object-position: 58% 40%; }
.ppl-f img:nth-child(4) { object-position: 78% 28%; } .ppl-f img:nth-child(5) { object-position: 50% 30%; }
@media (max-width: 560px) { .ppl { border-radius: 20px; padding: 10px 14px; gap: 10px; font-size: 13.5px; } .ppl-f img { width: 32px; height: 32px; margin-left: -12px; } .ppl-f img:nth-child(n+4) { display: none; } }

/* ---------- Box dei settori: la foto sfuma nel bianco della scheda ---------- */
.sec-card.has-ph { padding: 0; overflow: hidden; }
.sec-ph { display: block; position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; background: var(--soft-2); }
.sec-ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1.1s var(--e-out, ease), filter .5s ease; }
.sec-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 44, 85, .30) 0%, rgba(10, 107, 156, .12) 38%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .82) 86%, #fff 100%); transition: opacity .5s ease; }
.sec-card.has-ph:hover .sec-ph img { transform: scale(1.07); filter: saturate(1.08); }
.sec-card.has-ph:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: #b9d6ec; }
.sec-b { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; margin-top: -40px; padding: 0 24px 24px; }
.sec-card.has-ph .mest-c { width: 62px; height: 62px; margin-bottom: 14px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(18, 33, 61, .16); transition: transform .5s var(--e-out, ease); }
.sec-card.has-ph:hover .mest-c { transform: translateY(-3px) rotate(-6deg) scale(1.05); }
.sec-card.has-ph::after { z-index: 2; }

/* ---------- Pagina di settore: la foto accanto al titolo ---------- */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ph-fig { position: relative; margin: 0; }
.ph-fig::before { content: ""; position: absolute; inset: 9% -5% -7% 9%; border-radius: 30px; background: var(--deep); transform: rotate(4deg); box-shadow: var(--sh-2); }
.ph-fig::after { content: ""; position: absolute; inset: 9% -5% -7% 9%; border-radius: 30px; background: var(--lattice-w); transform: rotate(4deg); }
.ph-fig img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 26px; border: 5px solid #fff; box-shadow: var(--sh-3); }
.ph-fig figcaption { position: absolute; z-index: 2; left: -18px; bottom: 26px; display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 11px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); }
.ph-fig figcaption .mest { width: 44px; height: 44px; }
.ph-fig figcaption b { display: block; font: 800 1rem/1.2 var(--fd); color: var(--ink); }
.ph-fig figcaption small { display: block; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph-fig { max-width: 520px; margin: 6px 12px 22px 0; }
  .ph-fig figcaption { left: 12px; bottom: 14px; }
}

/* ---------- La foto del team con la polo Adopra ---------- */
.foto { position: relative; margin: 0 0 30px; }
.foto img { width: 100%; height: auto; border-radius: 24px; border: 5px solid #fff; box-shadow: var(--sh-3); }
.foto::before { content: ""; position: absolute; inset: 10% 8% -5% -5%; border-radius: 28px; background: var(--deep); transform: rotate(-3deg); z-index: -1; }
.foto { isolation: isolate; }
.foto figcaption { position: absolute; right: -14px; bottom: -22px; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); text-align: left; }
.foto figcaption b { display: block; font: 800 .98rem/1.25 var(--fd); color: var(--ink); }
.foto figcaption small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.foto .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #1aa851; box-shadow: 0 0 0 5px rgba(26, 168, 81, .18); }
.foto .ill { position: absolute; left: 18px; top: 16px; padding: 4px 9px; border-radius: 99px; background: rgba(11, 35, 67, .55); color: #fff; font: 600 10.5px/1.2 var(--ft); letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px); }
.foto.on-blue { margin-bottom: 46px; }
.foto.on-blue::before { background: rgba(255, 255, 255, .14); }
.foto.on-blue img { border-color: rgba(255, 255, 255, .9); }
@media (max-width: 860px) { .foto figcaption { right: 10px; max-width: 250px; } }

/* ---------- Home: il nastro dei mestieri ---------- */
.mq { display: grid; gap: 16px; overflow: hidden; padding: 8px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-row { display: flex; gap: 16px; width: max-content; }
.mq-t { position: relative; flex: none; width: 250px; aspect-ratio: 16 / 10.4; border-radius: 18px; overflow: hidden; background: var(--navy); box-shadow: var(--sh-1); transition: transform .4s var(--e-out, ease), box-shadow .4s ease; }
.mq-t img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out, ease); }
.mq-t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 35, 67, .06) 30%, rgba(11, 35, 67, .84) 100%); transition: opacity .4s ease; }
.mq-t span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 11px; display: flex; align-items: center; gap: 9px; font: 700 14.5px/1.2 var(--fd); color: #fff; }
.mq-t .mest-s { width: 28px; height: 28px; margin: 0; flex: none; }
.mq-t:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--sh-3); color: #fff; }
.mq-t:hover img { transform: scale(1.08); }
@media (max-width: 640px) { .mq-t { width: 196px; } .mq, .mq-row { gap: 12px; } }

@media (prefers-reduced-motion: reduce) {
  .mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .mq-t[aria-hidden] { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* entrate più decise: salgono, mettono a fuoco */
  @keyframes enter { from { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px); } }
  @keyframes enter-s { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
  @keyframes vita-aura { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(4%, 26px, 0) scale(1.1); } }
  @keyframes vita-hl { to { background-position: -300% 0; } }
  @keyframes vita-glow { from { --gx: 12%; --gy: 0%; } to { --gx: 88%; --gy: 60%; } }
  @keyframes vita-mq { to { transform: translateX(calc(-50% - 8px)); } }
  @keyframes vita-pulse { 0%, 100% { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 22px rgba(10, 107, 156, .28), 0 0 0 0 rgba(0, 159, 227, .45); } 60% { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 22px rgba(10, 107, 156, .28), 0 0 0 14px rgba(0, 159, 227, 0); } }
  @keyframes vita-sheen { to { transform: translateX(260%) skewX(-18deg); } }
  @keyframes vita-float { from { transform: translateY(0); } to { transform: translateY(-9px); } }
  @keyframes vita-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(26, 168, 81, .22); } 50% { box-shadow: 0 0 0 9px rgba(26, 168, 81, 0); } }
  @keyframes vita-fig { from { opacity: 0; transform: translateY(30px) rotate(2deg) scale(.96); } }

  .hero::after { animation: vita-aura 14s ease-in-out infinite alternate; }
  .hero h1 .hl { animation: enter .8s var(--e-out) backwards, vita-hl 12s linear infinite; animation-delay: calc(var(--d, 0) * 90ms + 80ms), 0s; }
  .hero .ppl { animation: enter .7s var(--e-out) .7s backwards; }
  .blue, .band, .facts { animation: vita-glow 16s ease-in-out infinite alternate; }
  .hero .btn-primary, .band .btn-white { animation: vita-pulse 3.2s ease-out 2.4s infinite; }

  .btn { position: relative; overflow: hidden; }
  .btn-primary::before, .btn-white::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg); pointer-events: none; }
  .btn-white::before { background: linear-gradient(90deg, transparent, rgba(0, 159, 227, .22), transparent); }
  .btn-primary:hover::before, .btn-white:hover::before { animation: vita-sheen .8s var(--e-out); }
  .btn svg:last-child { transition: transform .25s var(--e-out); }
  .btn:hover svg:last-child { transform: translateX(4px); }

  .grid-3 > .card:not(.sec-card):hover, .grid-4 > .card:hover, .grid-2 > .card:hover, .bento > .card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: #c3d9ec; }
  .card .ico { transition: transform .5s var(--e-out); }
  .card:hover .ico { transform: translateY(-2px) rotate(-8deg) scale(1.08); }

  .mq-row { animation: vita-mq 90s linear infinite; }
  .mq-row.rev { animation-direction: reverse; animation-duration: 104s; }
  .mq:hover .mq-row, .mq:focus-within .mq-row { animation-play-state: paused; }

  .page-hero .ph-fig { animation: vita-fig 1s var(--e-out) .25s backwards; }
  .ph-fig figcaption, .foto figcaption { animation: vita-float 3.6s ease-in-out infinite alternate; }
  .foto .dot { animation: vita-dot 2.2s ease-out infinite; }
  [data-tilt] { transform: perspective(1100px) rotateX(calc(var(--ty, 0) * -5deg)) rotateY(calc(var(--tx, 0) * 7deg)); transition: transform .5s var(--e-out); will-change: transform; }

  .facts li { transition: background-color .3s ease; }
  .facts li:hover { background: rgba(255, 255, 255, .06); }
  .eyebrow::before { transition: transform .5s var(--e-out); }
  .reveal.in .eyebrow::before, .page-hero .eyebrow::before { animation: vita-tri .9s var(--e-out) .2s backwards; }
  @keyframes vita-tri { from { transform: rotate(-180deg) scale(0); } }
}
/* ---------- Scene: persone che discutono e decidono (13/11/2026) ---------- */
main > section#insieme { background: radial-gradient(46% 42% at 0% 0%, rgba(0, 159, 227, .075), transparent 70%), radial-gradient(40% 44% at 100% 100%, rgba(76, 112, 175, .085), transparent 70%), #fff; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 34px); align-items: start; position: relative; }
.trio::before { content: ""; position: absolute; left: 12%; right: 12%; top: 104px; border-top: 2px dashed #b9d6ec; }
.trio li { position: relative; }
.trio li:nth-child(2) { margin-top: 38px; }
.trio figure { position: relative; margin: 0 0 20px; }
.trio img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 5px solid #fff; box-shadow: var(--sh-3); transition: transform .8s var(--e-out, ease); }
.trio li:nth-child(1) img { transform: rotate(-1.6deg); } .trio li:nth-child(3) img { transform: rotate(1.6deg); }
.trio li:hover img { transform: rotate(0) scale(1.03); }
.trio .n { position: absolute; left: 16px; top: -14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, #0a6b9c, #009fe3); color: #fff; font: 800 17px/1 var(--fd); box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(0, 131, 196, .3); }
.trio h3 { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; }
.trio p { margin-top: 8px; font-size: 16px; }
.gain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(34px, 4.5vw, 56px); }
.gain li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--tint); border: 1px solid #cfe3f3; font-size: 15.5px; line-height: 1.5; }
.gain svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand); }
.gain b { display: block; font-family: var(--fd); color: var(--ink); }
@media (max-width: 860px) {
  .trio, .gain { grid-template-columns: 1fr; }
  .trio::before { display: none; }
  .trio li:nth-child(2) { margin-top: 0; }
  .trio li { max-width: 520px; }
}
/* la fascia finale: due mani che si stringono, in trasparenza sotto il blu */
.band.has-bg { isolation: isolate; }
.band-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; opacity: .2; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.band.has-bg > .band-bg { position: absolute; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes vita-bg { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }
  .band-bg { animation: vita-bg 22s ease-in-out infinite alternate; }
  .js .trio.reveal.in > li { animation: enter .8s var(--e-out) backwards; animation-delay: calc(var(--i, 0) * 160ms); }
  .js .trio.reveal:not(.in) { opacity: 1; animation: none; }
  .rv .trio.reveal:not(.in) > li { opacity: 0; }
  .js .trio.reveal.in, .js .gain.reveal.in { animation: none; }
  .js .gain.reveal.in > li { animation: enter-s .6s var(--e-out) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .js .gain.reveal:not(.in) { opacity: 1; animation: none; }
  .rv .gain.reveal:not(.in) > li { opacity: 0; }
}
/* Prenotazione: se il server non registra, la richiesta parte su WhatsApp o per email */
.status.alt { padding: 14px 16px; border-radius: 14px; background: var(--wait-bg); border: 1px solid #f3d99a; color: var(--ink); font-size: 15px; line-height: 1.5; }
.status.alt b { font-family: var(--fd); }
.status.alt .alt-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
@media print { .vita-bar { display: none; } }
