/* Vittorio Insalata — Briciole II */
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#EDE7DD}
body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:300;color:#1A1A1A;-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.4}
*{font-weight:300}
a{color:inherit}
img{display:block}
p{margin:0}
.root{position:relative;height:100vh;height:100dvh;min-height:520px;overflow:hidden}
.bare{background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer;text-align:inherit;text-decoration:none}
.grey{color:#8A8378}
.hd{position:absolute;top:0;left:0;right:0;z-index:40;display:flex;justify-content:space-between;align-items:baseline;gap:24px;flex-wrap:wrap;padding:24px clamp(16px,2.4vw,40px);pointer-events:none}
.hd>*{pointer-events:auto}
.nav{display:flex;gap:22px;align-items:baseline;flex-wrap:wrap}
.nav .bare{min-height:32px}
.nav .bare:hover,.ft .bare:hover{opacity:.55}
.off{opacity:.45}
.screen{position:absolute;inset:0}
.screen[hidden]{display:none}
.ft{position:absolute;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:0 clamp(16px,2.4vw,40px) 24px;pointer-events:none}
.ft>*{pointer-events:auto}
.mob{display:none}

/* la tavola */
.table{overflow:hidden}
.word{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;font-size:clamp(80px,15vw,230px);line-height:.86;letter-spacing:-.04em;color:#E2D9CB;pointer-events:none;user-select:none}
.crumb{position:absolute;display:block;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;cursor:grab;transform:rotate(var(--r));transition:transform 450ms cubic-bezier(.2,.7,.2,1),box-shadow 450ms ease;box-shadow:0 10px 24px -14px rgba(60,40,20,.45);background:#E2D9CB}
.crumb img{width:100%;height:auto;pointer-events:none}
.crumb:hover,.crumb:focus-visible{transform:rotate(var(--r)) scale(1.04);box-shadow:0 26px 46px -22px rgba(60,40,20,.55)}
.crumb.lift{cursor:grabbing;transition:box-shadow 200ms ease;transform:rotate(0deg) scale(1.06);box-shadow:0 40px 60px -26px rgba(60,40,20,.6)}
.cap{position:absolute;left:0;top:calc(100% + 8px);font-size:13px;white-space:nowrap;opacity:0;transition:opacity 300ms ease;pointer-events:none}
.crumb:hover .cap{opacity:1}
.crumb.lift .cap{opacity:0}

/* work: linea del tempo */
.ev{position:absolute;top:72px;left:clamp(16px,2.4vw,40px);right:clamp(16px,2.4vw,40px);display:flex;justify-content:space-between;align-items:baseline;gap:16px;z-index:3}
.ev .bare:hover{opacity:.55}
.line{position:absolute;left:0;right:0;bottom:96px;height:1px;background:#1A1A1A;pointer-events:none;z-index:2}
.strip{position:absolute;inset:0;display:flex;align-items:flex-end;gap:clamp(20px,2.4vw,40px);overflow-x:auto;overflow-y:hidden;padding:0 clamp(16px,2.4vw,40px);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.strip::-webkit-scrollbar{display:none}
.item{flex:0 0 auto;display:flex;flex-direction:column}
.item img{width:auto;background:#E2D9CB}
.lab{height:96px;padding-top:14px;line-height:1.35;display:flex;flex-direction:column;gap:2px;width:0;min-width:100%}
.end{flex:0 0 auto;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;padding:0 clamp(24px,6vw,120px) 0 clamp(24px,4vw,80px)}
.end .bare{height:96px;padding-top:14px;line-height:1.35}
.end .bare:hover{opacity:.55}

/* about */
.about{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:clamp(16px,4vw,64px);padding:100px clamp(16px,2.4vw,40px) 56px}
.bio{display:flex;flex-direction:column;gap:1em;line-height:1.55;max-width:420px;justify-self:end}
.about figure{margin:0;justify-self:center;width:min(100%,360px)}
.about figure img,.ct figure img{width:100%;height:auto;aspect-ratio:2/3;object-fit:cover}
figcaption{font-size:12px;padding-top:8px}

/* servizi */
.page{position:absolute;inset:0;overflow-y:auto;padding:clamp(110px,16vh,170px) clamp(16px,2.4vw,40px) 64px;line-height:1.55}
.intro{max-width:684px;padding-bottom:48px}
.head{padding:40px 0 18px}
.svc{display:grid;grid-template-columns:minmax(0,300px) minmax(0,460px);gap:0 24px;margin:0}
.svc dt,.svc dd{margin:0 0 22px}
.for{max-width:684px}

/* contatti */
.ct{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:clamp(16px,4vw,64px);padding:100px clamp(16px,2.4vw,40px) 56px;line-height:1.55}
.ctxt{display:flex;flex-direction:column;gap:4px}
.ctxt p{padding-bottom:10px}
.ct a{text-decoration:none;width:max-content}
.ct a:hover{opacity:.55}
.ct figure{margin:0;justify-self:end;width:min(100%,340px)}
.ct figure img{object-position:50% 25%}

@media (max-width:760px){
  .hd{padding:18px 16px;gap:8px 20px}
  .nav{gap:16px}
  .word{font-size:22vw}
  .crumb{display:none;left:50% !important;top:47% !important;width:76vw !important;transform:translate(-50%,-50%) rotate(var(--r)) !important;cursor:pointer;transition:none}
  .crumb.cur{display:block;z-index:3 !important}
  .crumb.nx{display:block;z-index:2 !important;transform:translate(-50%,-50%) rotate(calc(var(--r) * -1.6)) !important}
  .cap,.desk{display:none !important}
  .mob{display:flex;padding:0 16px 22px}
  .ev{top:96px;left:16px;right:16px}
  .strip{padding:0 16px}
  .about,.ct{grid-template-columns:minmax(0,1fr);align-items:start;overflow-y:auto;padding:110px 16px 48px}
  .about figure,.ct figure{order:-1;justify-self:start;width:58vw}
  .bio{justify-self:start}
  .page{padding:120px 16px 48px}
  .svc{grid-template-columns:minmax(0,1fr)}
  .svc dt{margin:0 0 4px}
}
@media (prefers-reduced-motion:reduce){.crumb{transition:none}}
