@font-face { font-family: 'Bodoni'; src: url(../fonts/bodoni-moda-latin-wght-normal.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Bodoni'; src: url(../fonts/bodoni-moda-latin-wght-italic.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@view-transition { navigation: auto; }

:root {
  --inchiostro: #080605; --fondo-2: #100c09; --crema: #f4ead8; --crema-2: #cbbfad; --crema-3: #8e8374;
  --rame: #d2754a; --rame-2: #b4441c; --oro: #e8bd82; --linea: rgba(232, 189, 130, .18); --vetro: rgba(255, 236, 214, .045);
  --serif: 'Bodoni', 'Didot', Georgia, serif; --sans: 'Manrope', system-ui, sans-serif;
  --esce: cubic-bezier(.16, 1, .3, 1); --gx: clamp(20px, 5vw, 72px); --max: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--inchiostro); -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html:not(.ridotto) { scroll-behavior: smooth; }
html.blocca { overflow: hidden; }
body { margin: 0; background: var(--inchiostro); color: var(--crema); font: 400 16.5px/1.6 var(--sans); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--rame-2); color: #fff; }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salta { position: fixed; left: 12px; top: -60px; z-index: 90; background: var(--crema); color: var(--inchiostro); padding: 10px 14px; border-radius: 8px; }
.salta:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; border-radius: 6px; }
.centro { text-align: center; justify-content: center; }
.ico { display: inline-block; width: 1.4em; height: 1.4em; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* ---------- intestazione ---------- */
.testa { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 20px;
  padding: max(12px, env(safe-area-inset-top)) var(--gx) 12px; transition: background .4s, backdrop-filter .4s, padding .4s var(--esce); }
.testa::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(8, 6, 5, .75), rgba(8, 6, 5, 0)); transition: opacity .4s; }
.scorso .testa { padding-block: 8px; background: rgba(10, 8, 6, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--linea); }
.scorso .testa::before { opacity: 0; }
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 21px/1 var(--serif); flex: none; }
.marchio img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(232, 189, 130, .3), 0 0 24px rgba(80, 140, 220, .25); }
.marchio span { display: grid; gap: 4px; padding-left: 12px; border-left: 1px solid rgba(244, 234, 216, .3); }
.marchio em { color: var(--rame); }
.marchio small { font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--crema-3); }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.menu > a, .mega-btn { position: relative; text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--crema-2); transition: color .2s; }
.mega-btn { all: unset; cursor: pointer; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--crema-2); }
.menu > a::after, .mega-btn::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px; background: var(--rame); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--esce); }
.menu > a:hover, .mega-btn:hover, .menu > a[aria-current] { color: var(--crema); }
.menu > a:hover::after, .menu > a[aria-current]::after, .mega-btn:hover::after { transform: none; }
.menu .esterno { color: var(--oro); }
.mega-btn i { font-style: normal; font-size: 10px; transition: transform .3s var(--esce); }
.ha-mega { position: relative; }
.mega { position: absolute; top: 100%; left: -20px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left;
  transition: opacity .25s, transform .35s var(--esce), visibility 0s .35s; }
.ha-mega:hover .mega, .ha-mega:focus-within .mega, .ha-mega.aperto .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--esce); }
.ha-mega:hover .mega-btn i, .ha-mega.aperto .mega-btn i { transform: rotate(180deg); }
.mega-in { width: min(760px, 80vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px; border-radius: 18px;
  background: rgba(16, 12, 9, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--linea), 0 30px 80px -20px #000; text-transform: none; letter-spacing: 0; }
.mega-v { display: flex; gap: 14px; padding: 14px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.mega-v .ico { color: var(--rame); width: 30px; height: 30px; margin-top: 2px; }
.mega-v b { display: block; font: 600 14px/1.3 var(--sans); color: var(--crema); }
.mega-v small { display: block; margin-top: 4px; font: 400 12.5px/1.45 var(--sans); color: var(--crema-3); }
.mega-v:hover { background: var(--vetro); }
.mega-tutti { grid-column: 1 / -1; padding: 12px 14px; text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.testa > .pill { flex: none; text-decoration: none; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 20px; border-radius: 999px; border: 1px solid rgba(232, 189, 130, .5); transition: background .25s, border-color .25s; }
.testa > .pill:hover { background: rgba(232, 189, 130, .14); border-color: var(--oro); }
.burger { display: none; all: unset; }
.tendina { position: fixed; inset: 0; z-index: 35; background: rgba(8, 6, 5, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; padding: 100px 28px 40px; opacity: 0; transition: opacity .4s var(--esce); }
.tendina.aperta { opacity: 1; }
.tendina nav { display: grid; gap: 4px; width: 100%; }
.tendina nav > a { font: 500 clamp(30px, 9vw, 44px)/1.15 var(--serif); text-decoration: none; padding: 6px 0; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--esce); transition-delay: calc(var(--k) * 45ms); }
.tendina.aperta nav > a { opacity: 1; transform: none; }
.tendina-est { display: flex; gap: 24px; margin-top: 24px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.tendina-est a { text-decoration: none; padding: 12px 0; }

/* ---------- tela ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.no-gl #gl { display: none; }
.su-carta, .su-carta * { cursor: pointer; }
.carico { position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; transition: opacity .8s var(--esce); }
.carico span { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--oro), transparent); animation: scia 1.4s var(--esce) infinite; }
@keyframes scia { from { transform: scaleX(.2); opacity: .2; } 50% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.2); opacity: .2; } }
.pronto .carico, .no-gl .carico { opacity: 0; }
main { position: relative; z-index: 2; }

/* ---------- testi comuni ---------- */
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 600 12px/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--oro); }
.kicker::after { content: ''; width: 48px; height: 1px; background: var(--rame); flex: none; }
.kicker.centro::before { content: ''; width: 48px; height: 1px; background: var(--rame); }
.kicker a { text-decoration: none; }
.tit { margin: 0; font: 600 clamp(32px, 4vw, 58px)/1.02 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.tit.grande { font-size: clamp(38px, 5.4vw, 82px); }
.intro { margin: 18px 0 0; max-width: 62ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--crema-2); text-wrap: pretty; }
.frase { margin: 16px 0 0; font: italic 500 clamp(22px, 2.2vw, 32px)/1.15 var(--serif); color: var(--rame); text-wrap: balance; }
.p { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.p > span { display: inline-block; }
.amp { color: var(--rame); }
.azioni { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 32px; }
.cta { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  font: italic 500 20px/1 var(--serif); color: var(--crema); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #bf5b2f, #7c2f14); box-shadow: inset 0 1px 0 rgba(255, 210, 170, .45), 0 0 0 1px rgba(232, 189, 130, .35), 0 10px 40px -10px rgba(210, 117, 74, .7);
  transition: transform .18s var(--esce), box-shadow .3s var(--esce); }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 228, 196, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--esce); }
.fr { font-style: normal; transition: transform .3s var(--esce); }
@media (hover: hover) {
  .cta:hover { box-shadow: inset 0 1px 0 rgba(255, 210, 170, .55), 0 0 0 1px rgba(232, 189, 130, .6), 0 14px 50px -8px rgba(210, 117, 74, .9); }
  .cta:hover::before { transform: translateX(120%); }
  .cta:hover .fr, .link:hover .fr { transform: translateX(4px); }
}
.cta:active { transform: scale(.97); }
.cta[disabled] { opacity: .7; cursor: progress; }
.link { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 16px 2px; border-bottom: 1px solid rgba(232, 189, 130, .4); transition: border-color .25s, color .25s; }
.link:hover { border-color: var(--oro); color: var(--oro); }
.nota { font: italic 400 17px/1.3 var(--serif); color: var(--crema-2); }
.nota a { color: var(--oro); }
.tag { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 18px 0 0; padding: 0; font: 500 15px/1.4 var(--sans); color: var(--crema-2); }
.tag li + li::before { content: '·'; margin: 0 10px; color: var(--rame); }
.chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  font: 500 13px/1 var(--sans); color: var(--crema); background: rgba(255, 236, 214, .06); box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, box-shadow .2s, transform .15s var(--esce); }
.chip .ico { width: 18px; height: 18px; color: var(--oro); }
.chip:hover, .chip[aria-pressed=true] { background: rgba(210, 117, 74, .22); box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .6); }
.chip:active { transform: scale(.96); }
.esplora { margin-top: 26px; }
.esplora > p { margin: 0 0 10px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--crema-3); }
.esplora > div { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }

/* comparse */
.js .rivela { opacity: 0; transform: translateY(26px); }
.js .rivela.vis { opacity: 1; transform: none; transition: opacity .9s ease calc(var(--i, 0) * 80ms), transform 1.1s var(--esce) calc(var(--i, 0) * 80ms); }

/* ---------- home: introduzione ---------- */
.apertura { position: relative; height: 175vh; height: 175svh; }
.intro-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gx) 120px; overflow: hidden; }
.intro-testo { width: min(54vw, 760px); opacity: calc(1 - var(--h, 0) * 2.2); transform: translateY(calc(var(--h, 0) * -80px)); }
.intro-h1 { margin: 0; font: 600 clamp(42px, 5.6vw, 92px)/.98 var(--serif); letter-spacing: -.015em; }
.intro-lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(17px, 1.3vw, 20px); color: var(--crema-2); }
.pilastri { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 38px 0 0; padding: 0; }
.pilastri a { display: grid; gap: 6px; height: 100%; padding: 16px; border-radius: 14px; text-decoration: none; background: var(--vetro); box-shadow: inset 0 0 0 1px var(--linea);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, box-shadow .25s, transform .3s var(--esce); }
.pilastri a:hover { background: rgba(210, 117, 74, .12); box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .5); transform: translateY(-3px); }
.pilastri .ico { color: var(--rame); width: 26px; height: 26px; }
.pilastri b { font: 600 15px/1.2 var(--sans); }
.pilastri small { font-size: 13px; line-height: 1.45; color: var(--crema-3); }
.novita { position: absolute; top: 96px; right: var(--gx); display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font-size: 13.5px; background: rgba(16, 12, 9, .6); box-shadow: inset 0 0 0 1px var(--linea); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: calc(1 - var(--h, 0) * 3); }
.novita b { font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--inchiostro); background: var(--oro); padding: 5px 8px; border-radius: 999px; }
.in-prod { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; gap: 22px; padding-left: var(--gx); opacity: calc(1 - var(--h, 0) * 3);
  font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--crema-3); }
.in-prod > span { flex: none; }
.nastro { overflow: hidden; flex: 1; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nastro > div { display: flex; width: max-content; animation: nastro 38s linear infinite; }
.nastro:hover > div { animation-play-state: paused; }
.in-prod .nastro a { padding: 10px 26px; text-decoration: none; font: italic 500 19px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--crema-2); white-space: nowrap; transition: color .2s; }
.in-prod .nastro a:hover { color: var(--oro); }
@keyframes nastro { to { transform: translateX(-50%); } }
.scorri { position: absolute; right: var(--gx); bottom: 80px; margin: 0; display: grid; justify-items: center; gap: 10px; opacity: calc(.9 - var(--h, 0) * 4);
  font: 600 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--crema-3); }
.scorri i { width: 1px; height: 46px; background: linear-gradient(var(--oro), transparent); transform-origin: top; animation: goccia 2.2s var(--esce) infinite; }
@keyframes goccia { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.js.pronto-testi .intro-h1 .p > span { transform: translateY(105%); }
.js.pronto-testi.pronto .intro-h1 .p > span { transform: none; transition: transform 1.2s var(--esce) calc(var(--w) * 60ms + 300ms); }
.js.pronto-testi .intro-testo > :not(h1), .js.pronto-testi .novita, .js.pronto-testi .in-prod { opacity: 0; }
.js.pronto-testi.pronto .intro-testo > :not(h1) { opacity: 1; transition: opacity 1s ease 1s; }
.js.pronto-testi.pronto .novita, .js.pronto-testi.pronto .in-prod { opacity: calc(1 - var(--h, 0) * 3); transition: opacity 1s ease 1.3s; }

/* ---------- home: viaggio ---------- */
.cap { position: relative; height: 200vh; height: 200svh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 96px var(--gx) 64px; }
.testo { width: min(42vw, 600px); }
.capitolo { margin: 0 0 22px; font: italic 500 18px/1 var(--serif); color: var(--oro); }
.etichetta { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 600 12.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--crema-2); }
.etichetta b { color: var(--rame); font-weight: 600; }
.etichetta::after { content: ''; width: 56px; height: 1px; background: var(--rame); }
.cap h2 { margin: 0; font: 600 clamp(42px, 5.4vw, 92px)/.94 var(--serif); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.js.pronto-testi .testo > * { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .5s ease, transform .5s var(--esce), filter .5s ease; }
.js.pronto-testi .cap h2 .p > span { transform: translateY(105%); transition: transform .5s var(--esce); }
.js.pronto-testi .cap.on .testo > * { opacity: 1; transform: none; filter: none;
  transition: opacity .9s ease calc(var(--d) * 1ms + 150ms), transform 1.1s var(--esce) calc(var(--d) * 1ms + 150ms), filter .9s ease calc(var(--d) * 1ms + 150ms); }
.js.pronto-testi .cap.on h2 .p > span { transform: none; transition: transform 1.1s var(--esce) calc(var(--w) * 70ms + 200ms); }
.fb { display: none; }
.no-gl .fb { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.no-gl .fb img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.no-gl .fb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 5, .9), rgba(8, 6, 5, .15) 75%); }
.no-gl .cap { height: auto; min-height: 100svh; }
.no-gl .pin { position: relative; min-height: 100svh; }
.no-gl .apertura { height: auto; } .no-gl .intro-pin { position: relative; min-height: 100svh; }
.binario { position: fixed; right: max(10px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .5s; }
.in-viaggio .binario { opacity: 1; pointer-events: auto; }
.binario button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; width: 44px; height: 30px; padding-right: 12px; box-sizing: border-box; }
.binario button::after { content: ''; width: 14px; height: 1px; background: rgba(244, 234, 216, .4); transition: width .4s var(--esce), background .3s; }
.binario button[aria-current]::after { width: 30px; background: var(--rame); }
.binario button:hover::after { width: 24px; background: var(--oro); }
.dopo { position: relative; z-index: 3; background: var(--inchiostro); }
.dopo::before { content: ''; position: absolute; left: 0; right: 0; top: -30vh; height: 30vh; background: linear-gradient(transparent, var(--inchiostro)); pointer-events: none; }

/* ---------- pagine interne: eroe ---------- */
.eroe { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px var(--gx) 90px; }
.eroe-testo { width: min(44vw, 640px); }
.eroe-h1 { margin: 0; font: 600 clamp(38px, 4.2vw, 72px)/1.02 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.eroe-lead { margin: 22px 0 0; max-width: 58ch; font-size: clamp(17px, 1.3vw, 20px); color: var(--crema-2); }
.js.pronto-testi .eroe-h1 .p > span { transform: translateY(105%); }
.js.pronto-testi.pronto .eroe-h1 .p > span { transform: none; transition: transform 1.1s var(--esce) calc(var(--w) * 55ms + 150ms); }
.js.pronto-testi .eroe-testo > :not(h1) { opacity: 0; transform: translateY(16px); }
.js.pronto-testi.pronto .eroe-testo > :not(h1) { opacity: 1; transform: none; transition: opacity .9s ease .6s, transform 1s var(--esce) .6s; }
.eroe + * , .contatti + .blocco { position: relative; }
body:not([data-modo=nessuno]) main > :not(.eroe):not(.apertura):not(.viaggio) { background: var(--inchiostro); position: relative; z-index: 2; }
main > .eroe + .blocco::before { content: ''; position: absolute; left: 0; right: 0; top: -24vh; height: 24vh; background: linear-gradient(transparent, var(--inchiostro)); pointer-events: none; }

/* ---------- blocchi ---------- */
.blocco { padding: clamp(70px, 10vw, 140px) 0; }
.blocco + .blocco { padding-top: clamp(30px, 5vw, 70px); }
.largo { width: min(var(--max), 100% - 2 * var(--gx)); margin: 0 auto; }
.stretto { width: min(820px, 100% - 2 * var(--gx)); margin: 0 auto; }
.due { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.due > .tit { position: sticky; top: 110px; font-size: clamp(28px, 3vw, 44px); }
.testo-b p, .due > div > p { margin: 0 0 18px; font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.7; color: var(--crema-2); max-width: 64ch; }
.testo-b p:first-child::first-letter { font: 600 3.2em/0.8 var(--serif); float: left; margin: .08em .1em 0 0; color: var(--rame); }
.spunte { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.spunte li { position: relative; padding: 15px 0 15px 34px; border-bottom: 1px solid var(--linea); font-size: 17px; color: var(--crema); }
.spunte li::before { content: ''; position: absolute; left: 2px; top: 23px; width: 14px; height: 7px; border-left: 2px solid var(--rame); border-bottom: 2px solid var(--rame); transform: rotate(-45deg); }
.nota-b { margin-top: 22px !important; padding: 18px 20px; border-radius: 12px; background: var(--vetro); box-shadow: inset 2px 0 0 var(--rame); font-size: 15.5px !important; }

.schede { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.schede li { position: relative; padding: 26px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 236, 214, .07), rgba(255, 236, 214, .02)); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
.schede .ico { width: 34px; height: 34px; color: var(--rame); margin-bottom: 18px; }
.schede b { display: block; font: 600 22px/1.15 var(--serif); }
.schede p { margin: 10px 0 0; color: var(--crema-2); font-size: 15.5px; }
.schede a { color: var(--oro); }
.inclina { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--esce), box-shadow .3s; transform-style: preserve-3d; }
.inclina::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--lx, 50%) var(--ly, 50%), rgba(232, 189, 130, .16), transparent 60%); }
.inclina:hover::after { opacity: 1; }
.inclina:hover { box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .45), 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* servizi */
.srv { list-style: none; margin: 46px 0 0; padding: 0; border-top: 1px solid var(--linea); }
.srv a { position: relative; display: grid; grid-template-columns: 60px 40px 1fr 30px; gap: 22px; align-items: center; padding: 28px 18px; border-bottom: 1px solid var(--linea); text-decoration: none; overflow: hidden; isolation: isolate; }
.srv a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg) center / cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--esce), transform 1.2s var(--esce); }
.srv a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 6, 5, .95) 30%, rgba(8, 6, 5, .5)); opacity: 0; transition: opacity .6s; }
.srv a:hover::before { opacity: 1; transform: none; } .srv a:hover::after { opacity: 1; }
.srv-n { font: italic 500 22px/1 var(--serif); color: var(--rame); }
.srv .ico { width: 34px; height: 34px; color: var(--oro); }
.srv-t b { display: block; font: 600 clamp(22px, 2.3vw, 34px)/1.1 var(--serif); transition: transform .5s var(--esce); }
.srv-t small { display: block; margin-top: 6px; font-size: 15px; color: var(--crema-3); max-width: 70ch; }
.srv a:hover .srv-t b { transform: translateX(8px); }
.srv .fr { font-size: 22px; color: var(--oro); }
.srv-det { padding-block: clamp(50px, 7vw, 100px); }
.srv-det-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.srv-det.dx .srv-det-img { order: 2; }
.srv-det-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea), 0 40px 80px -40px #000; }
.srv-det-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.srv-det-img .srv-n { position: absolute; left: 22px; bottom: 16px; font-size: 64px; color: var(--crema); text-shadow: 0 4px 30px #000; }
.srv-det-t .cta { margin-top: 30px; }

/* progetti */
.prog { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prog a { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; text-decoration: none; background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea); }
.prog-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.prog-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--esce); }
.prog a:hover .prog-img img { transform: scale(1.05); }
.prog-t { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }
.prog-t b { font: 600 24px/1.1 var(--serif); }
.prog-t small { color: var(--crema-2); font-size: 15px; }
.stato { align-self: flex-start; font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--oro); padding: 6px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .4); }
.tag-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag-mini i { font: 500 12px/1 var(--sans); font-style: normal; padding: 6px 9px; border-radius: 6px; background: var(--vetro); color: var(--crema-2); }
.link-fin { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); padding-top: 8px; }
.prog.grandi { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.centro.rivela, p.centro { display: flex; margin-top: 34px; }

/* fintech */
.fin-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.fin-scr { position: relative; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea), 0 50px 100px -40px rgba(210, 117, 74, .5); }
.fin-scr figcaption { padding: 12px 18px; font-size: 13px; color: var(--crema-3); background: var(--fondo-2); }
.fin-scr figcaption a { color: var(--oro); }
.fin .schede { grid-template-columns: repeat(3, 1fr); margin-top: 50px; }
.gal { margin-top: 40px; }
.gal-tab { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.gal-tab button { all: unset; cursor: pointer; padding: 12px 18px; border-radius: 999px; font: 600 13px/1 var(--sans); letter-spacing: .08em; color: var(--crema-2); box-shadow: inset 0 0 0 1px var(--linea); transition: background .2s, color .2s; }
.gal-tab button[aria-selected=true] { background: var(--rame-2); color: #fff; box-shadow: none; }
.gal-sc figure { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea); animation: entra .6s var(--esce); }
.gal-sc figcaption { padding: 16px 20px; color: var(--crema-2); background: var(--fondo-2); }
@keyframes entra { from { opacity: 0; transform: translateY(14px) scale(.99); } }

/* assistente */
.chat-in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.chat-box { border-radius: 20px; overflow: hidden; background: #0f0c0a; box-shadow: 0 0 0 1px var(--linea), 0 50px 100px -50px #000; }
.chat-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--linea); font-size: 12.5px; color: var(--crema-3); }
.chat-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a2e26; } .chat-bar i:first-child { background: var(--rame); }
.chat-bar span { margin-left: 10px; }
.chat-box iframe { width: 100%; height: 560px; border: 0; display: block; background: #0f0c0a; }

/* formazione */
.form-in { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.corsi { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.corsi li { padding: 22px; border-radius: 16px; background: var(--vetro); box-shadow: inset 0 0 0 1px var(--linea); }
.corsi span { font: italic 500 18px/1 var(--serif); color: var(--rame); }
.corsi b { display: block; margin-top: 10px; font: 600 20px/1.15 var(--serif); }
.corsi p { margin: 8px 0 0; font-size: 14.5px; color: var(--crema-2); }
.video { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea), 0 50px 100px -40px rgba(210, 117, 74, .45); background: #000; }
.video video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.video figcaption { padding: 12px 16px; font-size: 13px; color: var(--crema-3); }
.stretto .video { max-width: 420px; margin: 0 auto; }

/* tecnologie */
.stack { padding-block: 60px; border-block: 1px solid var(--linea); }
.nastro.grande { margin-top: 26px; }
.nastro.grande .g { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 500 clamp(26px, 3vw, 44px)/1 var(--serif); white-space: nowrap; }
.nastro.grande .g i { font-style: normal; font-size: .5em; color: var(--rame); }
.nastro.grande > div { animation-duration: 60s; }
.stack-t { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linea); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea); }
.stack-t div { padding: 26px; background: var(--inchiostro); }
.stack-t dt { font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--oro); }
.stack-t dd { margin: 12px 0 0; font: 500 20px/1.3 var(--serif); }

/* passi */
.passi { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; position: relative; counter-reset: p; }
.passi::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--linea); }
.passi::after { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, var(--rame), var(--oro)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--esce) .2s; box-shadow: 0 0 12px var(--rame); }
.passi.corre::after { transform: none; }
.passi li { position: relative; padding: 0 22px 0 0; }
.passi li > span, .passi li > .ico { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--inchiostro); box-shadow: inset 0 0 0 1px var(--rame); font: italic 500 16px/1 var(--serif); color: var(--oro); }
.passi li > .ico { padding: 9px; background: var(--rame); background-clip: content-box; box-shadow: inset 0 0 0 1px var(--rame), 0 0 0 9px var(--inchiostro); width: 40px; height: 40px; }
.passi b { display: block; margin-top: 20px; font: 600 21px/1.15 var(--serif); }
.passi p { margin: 8px 0 0; font-size: 15px; color: var(--crema-2); }
.passi.sei { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
.passi.sei::before, .passi.sei::after { display: none; }
.passi.sei li { padding: 26px; border-radius: 18px; background: var(--vetro); box-shadow: inset 0 0 0 1px var(--linea); margin-right: 14px; }
.passi.sei li > .ico { width: 34px; height: 34px; padding: 0; background: var(--rame); box-shadow: none; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* faq */
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 600 clamp(19px, 1.6vw, 23px)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .45); transition: transform .4s var(--esce), background .2s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 11px; right: 11px; top: 16.5px; height: 1px; background: var(--oro); }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--esce); }
.faq details[open] summary i::after { transform: none; }
.faq summary:hover i { background: rgba(232, 189, 130, .12); }
.faq details > div { overflow: hidden; }
.faq details p { margin: 0 0 22px; color: var(--crema-2); font-size: 17px; max-width: 62ch; }

/* altri blocchi */
.repo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.repo li { position: relative; padding: 26px; border-radius: 18px; background: #0d0b09; box-shadow: inset 0 0 0 1px var(--linea); }
.repo code { font: 600 16px/1.3 ui-monospace, 'SFMono-Regular', Menlo, monospace; color: var(--oro); }
.repo p { margin: 12px 0 18px; color: var(--crema-2); font-size: 15px; }
.lingua { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rame); }
.cit { margin: 0; font: italic 500 clamp(26px, 3.2vw, 46px)/1.25 var(--serif); text-wrap: balance; }
.corso-in { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.corso:nth-of-type(even) .corso-img { order: 2; }
.corso-img { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--linea), 0 50px 100px -50px #000; }
.corso-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.6s var(--esce); }
.corso-img:hover img { transform: scale(1.04); }
.aiact-testa { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.aiact-testa img { border-radius: 22px; box-shadow: 0 0 0 1px var(--linea); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cta-b { position: relative; overflow: hidden; }
.cta-b::before { content: ''; position: absolute; inset: 10% 15%; z-index: -1; background: radial-gradient(closest-side, rgba(180, 68, 28, .35), transparent); filter: blur(30px); }
.cta-b .azioni { justify-content: center; }
.cta-b .intro { margin-inline: auto; }

/* blog */
.blog-g { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-g a { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: 18px; overflow: hidden; background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea); }
.blog-img { aspect-ratio: 16 / 9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--esce); }
.blog-g a:hover img { transform: scale(1.05); }
.blog-t { display: grid; gap: 8px; padding: 20px; }
.blog-t time { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.blog-t b { font: 600 21px/1.2 var(--serif); }
.blog-t small { font-size: 14.5px; color: var(--crema-3); }
.vuoto { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--crema-3); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--linea); }
.vuoto a { color: var(--oro); }
.blog-cat { display: flex; flex-wrap: wrap; gap: 8px; }
.articolo { padding: 140px 0 100px; }
.articolo .tit { font-size: clamp(34px, 4.4vw, 64px); }
.art-corpo { margin-top: 26px; font-size: 18px; line-height: 1.75; color: var(--crema-2); }
.art-corpo h2, .art-corpo h3 { font-family: var(--serif); color: var(--crema); line-height: 1.2; margin: 1.8em 0 .6em; }
.art-corpo a { color: var(--oro); }
.art-corpo img, .art-img { border-radius: 16px; margin: 24px 0; height: auto; }
.art-data { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }

/* contatti */
.contatti { align-items: flex-start; gap: clamp(30px, 5vw, 80px); justify-content: space-between; }
.contatti .eroe-testo { width: auto; flex: 1; max-width: 620px; }
.info { margin: 34px 0 0; display: grid; gap: 18px; }
.info dt { font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--oro); }
.info dd { margin: 6px 0 0; color: var(--crema-2); }
.info a { color: var(--crema); font: 500 22px/1.3 var(--serif); }
.modulo { flex: 0 1 480px; display: grid; gap: 16px; padding: 30px; border-radius: 22px; background: rgba(14, 11, 9, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--linea), 0 50px 100px -40px #000; }
.modulo h2 { margin: 0 0 4px; font: 600 30px/1 var(--serif); }
.modulo label { display: grid; gap: 7px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--crema-2); }
.modulo input, .modulo select, .modulo textarea { font: 400 16px/1.4 var(--sans); color: var(--crema); background: rgba(255, 236, 214, .05); border: 0; border-radius: 12px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .25); transition: box-shadow .2s, background .2s; text-transform: none; letter-spacing: 0; }
.modulo textarea { resize: vertical; min-height: 140px; }
.modulo select option { background: #1a1410; }
.modulo :is(input, select, textarea):focus { outline: none; box-shadow: inset 0 0 0 1px var(--oro), 0 0 0 4px rgba(232, 189, 130, .15); background: rgba(255, 236, 214, .08); }
.modulo [aria-invalid=true] { box-shadow: inset 0 0 0 1px #e26a5a; }
.modulo .cta { justify-self: start; margin-top: 6px; }
.esito { margin: 0; min-height: 1.5em; font-size: 15px; }
.esito.ok { color: #9fd3a5; } .esito.errore { color: #f0a090; } .esito a { color: var(--oro); }

/* piede */
.piede { position: relative; z-index: 3; background: #060504; border-top: 1px solid var(--linea); }
.piede-in { width: min(var(--max), 100% - 2 * var(--gx)); margin: 0 auto; padding: 70px 0 40px; display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; }
.piede-az p { margin: 20px 0 0; font-size: 14px; color: var(--crema-3); line-height: 1.7; }
.piede h2 { margin: 0 0 16px; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--oro); }
.piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.piede li span { display: block; font-size: 12px; color: var(--crema-3); margin-top: 6px; }
.piede ul a { text-decoration: none; color: var(--crema-2); display: inline-block; padding: 4px 0; transition: color .2s; }
.piede ul a:hover { color: var(--oro); }
.piede-fondo { width: min(var(--max), 100% - 2 * var(--gx)); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(244, 234, 216, .08); font-size: 13px; color: var(--crema-3); }
.piede-fondo a { color: var(--crema-3); text-decoration: none; } .piede-fondo a:hover { color: var(--oro); }

/* ---------- riquadro 3D ---------- */
.box3d { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.box-velo { position: absolute; inset: 0; background: rgba(5, 4, 3, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.box3d.aperto .box-velo { opacity: 1; }
.box-scena { position: relative; perspective: 1200px; pointer-events: none; }
.box-carta { pointer-events: auto; position: relative; width: min(500px, calc(100vw - 32px)); padding: 34px 32px 26px; border-radius: 24px; transform-style: preserve-3d;
  background: linear-gradient(150deg, rgba(64, 42, 28, .92), rgba(18, 13, 10, .94) 60%); box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .55), inset 0 1px 0 rgba(255, 220, 180, .35), 0 0 60px -10px rgba(210, 117, 74, .55), 0 60px 120px -40px #000;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translate(var(--ox), var(--oy)) scale(.12) rotateY(-80deg) rotateX(25deg); opacity: 0;
  transition: transform .75s var(--esce), opacity .35s ease; }
.box3d.aperto .box-carta { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); opacity: 1; }
.box-carta::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: translateZ(-30px); box-shadow: 0 0 0 1px rgba(232, 189, 130, .18); }
.box-carta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 230, 200, .12) 50%, transparent 65%); background-size: 250% 100%; animation: luce 4s var(--esce) infinite; }
@keyframes luce { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.box-carta.gira { animation: gira .55s var(--esce); }
@keyframes gira { from { transform: rotateY(-35deg) translateZ(-60px); opacity: .3; } }
.box-carta > * { transform: translateZ(40px); }
.box-ico { width: 56px; height: 56px; color: var(--oro); filter: drop-shadow(0 0 14px rgba(232, 189, 130, .6)); }
.box-k { margin: 18px 0 0; font: 600 11.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rame); }
.box-carta h2 { margin: 8px 0 0; font: 600 clamp(26px, 3vw, 34px)/1.1 var(--serif); }
.box-p { margin: 14px 0 0; color: var(--crema-2); font-size: 16.5px; line-height: 1.65; }
.box-a { margin-top: 14px; }
.box-x { all: unset; cursor: pointer; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; color: var(--crema-2); transition: background .2s; }
.box-x:hover { background: rgba(255, 236, 214, .1); }
.box-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--linea); }
.box-nav button { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--linea); transition: background .2s; }
.box-nav button:hover { background: rgba(232, 189, 130, .14); }
.box-n { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--crema-3); margin-right: auto; order: -1; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .menu .esterno { display: none; }
  .prog { grid-template-columns: repeat(2, 1fr); }
  .piede-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .menu, .testa > .pill { display: none; }
  .burger { display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-left: auto; cursor: pointer; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--linea); position: relative; z-index: 2; }
  .burger span { display: block; width: 20px; height: 1.5px; background: var(--crema); transition: transform .4s var(--esce); }
  .burger[aria-expanded=true] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded=true] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .due, .fin-in, .chat-in, .form-in, .srv-det-in, .corso-in, .aiact-testa { grid-template-columns: 1fr; }
  .due > .tit { position: static; }
  .srv-det.dx .srv-det-img, .corso:nth-of-type(even) .corso-img { order: 0; }
  .fin .schede, .repo, .blog-g, .stack-t { grid-template-columns: 1fr 1fr; }
  .passi.sei { grid-template-columns: 1fr 1fr; }
  .contatti { flex-direction: column; }
  .modulo { flex: none; width: 100%; }
  .form-in .video { max-width: 380px; }
}

/* ---------- telefono ---------- */
@media (max-aspect-ratio: 9/10), (max-width: 640px) {
  body { font-size: 16px; }
  .marchio { font-size: 18px; } .marchio img { width: 36px; height: 36px; } .marchio small { display: none; }
  .apertura { height: 150svh; }
  .intro-pin { justify-content: flex-end; padding: 90px 20px 110px; }
  .eroe, .cap { overflow-x: clip; }
  .intro-testo { width: 100%; }
  .intro-h1 { font-size: clamp(32px, 8.8vw, 46px); }
  .intro-lead { font-size: 16px; margin-top: 14px; }
  .pilastri, .novita { display: none; }
  .pilastri a { grid-template-columns: 26px 1fr; align-items: center; column-gap: 12px; padding: 12px 14px; }
  .pilastri small { display: none; }
  .intro .azioni { margin-top: 20px; }
  .novita { top: auto; bottom: calc(100% - 150px); right: 20px; left: 20px; font-size: 12.5px; }
  .scorri { display: none; }
  .in-prod { bottom: 16px; }
  .pin { align-items: flex-end; padding: 80px 20px max(26px, calc(env(safe-area-inset-bottom) + 14px)); }
  .testo { width: 100%; padding-right: 22px; }
  .cap h2 { font-size: clamp(32px, 10vw, 50px); }
  .frase { font-size: clamp(19px, 5.4vw, 25px); margin-top: 10px; }
  .tag { font-size: 14px; margin-top: 12px; }
  .cap .azioni { margin-top: 18px; }
  .esplora { margin-top: 16px; } .esplora > p { display: none; }
  .esplora > div { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
  .esplora > div::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .capitolo { display: none; }
  .binario { top: 30%; transform: none; }
  .binario button { width: 28px; height: 22px; padding-right: 6px; }
  .binario button::after { width: 10px; } .binario button[aria-current]::after { width: 18px; }
  .eroe { align-items: flex-end; padding: 0 20px 60px; min-height: 100svh; }
  .eroe-testo { width: 100%; padding-top: 52svh; }
  .eroe-h1 { font-size: clamp(32px, 9vw, 46px); }
  .eroe-lead { font-size: 16px; }
  .contatti .eroe-testo { padding-top: 46svh; }
  .prog, .prog.grandi, .fin .schede, .repo, .blog-g, .stack-t, .corsi, .passi.sei { grid-template-columns: 1fr; }
  .passi { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .passi::before, .passi::after { left: 19px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .passi::after { transform: scaleY(0); transform-origin: top; }
  .passi li { padding: 0 0 0 60px; }
  .passi li > span { position: absolute; left: 0; top: -6px; }
  .passi b { margin-top: 0; }
  .passi.sei li { margin-right: 0; padding: 22px; }
  .srv a { grid-template-columns: 34px 1fr 20px; gap: 14px; padding: 22px 6px; }
  .srv a .ico { display: none; }
  .no-gl .fb img { object-position: 50% 30%; }
  .no-gl .fb::after { background: linear-gradient(0deg, rgba(8, 6, 5, .95) 35%, rgba(8, 6, 5, .1) 75%); }
  .piede-in { grid-template-columns: 1fr; gap: 30px; }
  .chat-box iframe { height: 500px; }
  .box3d { align-items: end; padding: 12px; }
  .box-carta { padding: 28px 22px 20px; }
}


/* ---------- WhatsApp flottante: anello d'oro che ruota, alone che respira, lama di luce ---------- */
@property --wa-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.wa { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 60;
  display: flex; align-items: center; height: 60px; border-radius: 999px; text-decoration: none; color: #2a1608; isolation: isolate;
  transition: transform .35s var(--esce), opacity .3s; -webkit-tap-highlight-color: transparent; }
.wa::before { content: ''; position: absolute; inset: -14px; z-index: -2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 189, 130, .55), rgba(210, 117, 74, .2) 60%, transparent); filter: blur(6px); animation: wa-respiro 3.2s ease-in-out infinite; }
.wa-anello { position: absolute; inset: -3px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--wa-a), #7a3d16, #ffe7b8, #c98a45, #fff6dc, #8a4a1e, #f3c27e, #7a3d16);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: wa-gira 4s linear infinite; }
.wa-cuore { position: relative; width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #fff3d6, #f0c27a 32%, #c27a35 70%, #7d3f17);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .8), inset 0 -6px 12px rgba(90, 40, 10, .55), 0 10px 30px -6px rgba(210, 117, 74, .8); }
.wa-cuore::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%);
  transform: translateX(-80%); animation: wa-lama 3.6s var(--esce) infinite 1s; }
.wa svg { width: 30px; height: 30px; fill: #3a1d08; filter: drop-shadow(0 1px 0 rgba(255, 240, 210, .7)); position: relative; z-index: 1; }
.wa-testo { max-width: 0; overflow: hidden; white-space: nowrap; font: italic 500 18px/1 var(--serif); color: var(--crema); padding-left: 0;
  transition: max-width .5s var(--esce), padding .5s var(--esce); }
.wa:has(.wa-testo) { background: transparent; }
@media (hover: hover) {
  .wa:hover { transform: translateY(-3px); background: rgba(16, 12, 9, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(232, 189, 130, .4); }
  .wa:hover .wa-testo { max-width: 240px; padding: 0 22px 0 14px; }
  .wa:hover .wa-anello { animation-duration: 1.4s; }
}
.wa:active { transform: scale(.94); }
.wa:focus-visible { outline: 2px solid var(--oro); outline-offset: 6px; }
@keyframes wa-gira { to { --wa-a: 360deg; } }
@keyframes wa-respiro { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes wa-lama { 0% { transform: translateX(-80%); } 35%, 100% { transform: translateX(80%); } }
.blocca .wa { opacity: 0; pointer-events: none; }
@media (max-aspect-ratio: 9/10), (max-width: 640px) {
  .wa { height: 54px; right: 14px; bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px)); }
  .wa-cuore { width: 54px; height: 54px; } .wa svg { width: 27px; height: 27px; }
  .testo, .eroe-testo { padding-right: 64px; }
  .esplora > div { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .rivela, .js.pronto-testi .testo > *, .js.pronto-testi .p > span, .js.pronto-testi .eroe-testo > * { transform: none !important; filter: none !important; }
  .js .rivela { opacity: 1; }
  .box-carta { transform: none; }
  .wa::before { opacity: .7; }
}
