:root{
  --bg:#ffffff;
  --fg:#1a1a1a;
  --muted:#6e6e6e;
  --line:#e8e8e8;
  --max:1120px;
  --pad:clamp(18px, 3.2vw, 44px);
  --h1:clamp(42px, 6.2vw, 86px);
  --h2:clamp(22px, 3vw, 34px);
  --p:clamp(16px, 1.35vw, 18px);
}

/* RESET */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,
body{
  background:var(--bg);
  color:var(--fg);
}
body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height:1.55;
}

/* LINK */
a{
  color:inherit;
  text-decoration:none;
}

a:hover{
  opacity:.8;
}

/* TOP BAR */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border-bottom:none;
}

.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:14px var(--pad);
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}

/* BRAND */
.brand strong{
  font-size:22px;
  font-weight:500;
  letter-spacing:0.001em;
}

/* MENU */
.menu{
  display:flex;
  gap:16px;
}

.menu a{
  font-family: 'Inter', sans-serif;
  font-size:15px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border-bottom:1px solid transparent;
  padding-bottom:2px;
}

.menu a.active{
  border-bottom-color:var(--fg);
}

/* WRAP */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:var(--pad);
}

/* HERO */
.hero{
  padding:60px 0 120px 0;
  border-bottom:none;
}

.hero h1{
  font-size:var(--h1);
  font-weight:500;
  letter-spacing:0.015em;
  line-height:1;
  margin-bottom:24px;
}

.small{
  font-size:var(--p);
  color:var(--muted);
  max-width:75ch;
font-weight:400;
}

.hero p.small{
  font-size:clamp(18px, 1.6vw, 20px);
  font-weight:400;
}

/* SEZIONI */
.section{
  padding:80px 0;
  border-bottom:none;
}

.section h2{
  font-size:clamp(20px, 2.4vw, 26px);
  font-weight:600;
  letter-spacing:0.02em;
  margin-bottom:2.2rem;
}

/* WORKS */
.works-grid{
  display:flex;
  flex-direction:column;
}

.work-item{
  display:flex;
  flex-direction:column;
  gap:3rem;
  margin-bottom:6rem;
}

/* RIGA CORTA TRA I PROGETTI */
.work-item + .work-item::before{
  content:"";
  display:block;
  width:80px;
  max-width:100%;
  height:2px;
  background:var(--fg);
  margin:0 0 3rem;
}

.work-images-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
}

.work-images-grid figure{
  margin:0;
  cursor:zoom-in;
}

.work-images-grid img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#f4f4f4;
}

/* FORMATI IMMAGINI */
.img-square{
  grid-column:span 2;
  aspect-ratio:1 / 1;
}

.img-portrait{
  grid-column:span 2;
  aspect-ratio:2 / 3;
}

.img-landscape{
  grid-column:span 3;
  aspect-ratio:3 / 2;
}

/* TESTO OPERE */
.work-text{
  margin-top:0;
}

.work-credits{
  margin-top:2rem;
}

/* FOTO GRANDE DI APERTURA */
.work-cover img,
.work-cover video{
  width:100%;
  aspect-ratio:3 / 2;
  max-height:120vh;
  object-fit:cover;
  display:block;
  margin-bottom:0.5rem;
}

/* IMAGE OVERLAY */
.image-overlay{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.95);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  cursor:zoom-out;
}

.image-overlay img{
  max-width:90vw;
  max-height:90vh;
  object-fit:contain;
}

/* HOME */
body.home{
  min-height:100vh;
  background-image:url('../images/home/home-08.jpg');
  background-size:cover;
  background-position:top center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-color:#dcdcdc;
}

.home .hero{
  min-height:100vh;
  padding-top:19px;
}

.home .topbar{
  background:transparent;
  border-bottom:none;
  backdrop-filter:none;
}

.home .hero .small{
  color:var(--fg);
}

/* MENU BIANCO SOLO IN HOME */
body.home .topbar .brand a,
body.home .topbar .brand strong,
body.home .topbar .menu a,
body.home .topbar .lingua{
  color:#e8e8e8 !important;
}

body.home .topbar .menu a.active{
  border-bottom-color:transparent !important;
}

body.home .topbar .selected-test{
  border-bottom:none !important;
}

/* BIO */
body.bio{
  min-height:100vh;
  background-image:url('../images/bio/bio-01.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#dcdcdc;
}

.bio .hero{
  min-height:100vh;
  background:transparent;
  border-bottom:none;
}

.bio .topbar{
  background:transparent;
  border-bottom:none;
  backdrop-filter:none;
}

.bio .hero .small,
.bio .small{
  color:var(--fg);
}

/* LAVORI */
body.lavori{
  min-height:100vh;
  background-image:url('../images/lavori/lavori-03.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#dcdcdc;
}

.lavori .hero{
  min-height:100vh;
  background:transparent;
  border-bottom:none;
}

.lavori .topbar{
  background:transparent;
  border-bottom:none;
  backdrop-filter:none;
}

.lavori .hero .small{
  color:var(--fg);
}

/* WORKSHOPS */
body.workshops p.small{
  color:#000 !important;
}

/* CONTATTI */
body.contact{
  min-height:100vh;
  background-image:url('../images/contatti/contatti-02.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.contact .section p.small{
  margin-bottom:1.2em;
  color:#000;
}

.contact .section p.small a{
  color:#000;
}

/* FOOTER */
.footer{
  margin-top:80px;
  padding-bottom:40px;
}

.footer-links,
.footer-copy,
.footer-contacts,
.footer-credit{
  font-size:12px;
  line-height:1.5;
  margin-bottom:6px;
  color:#000;
}

.footer-links{
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.footer-credit{
  color:#888;
}

/* COLLAB IMAGES */
.collab-images{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:6px;
  margin:2em 0 3em;
}

.collab-images img{
  width:100%;
  height:auto;
  display:block;
}

.img-square img{
  aspect-ratio:1 / 1;
  object-fit:cover;
}

.img-portrait img{
  aspect-ratio:3 / 4;
  object-fit:cover;
}

.img-landscape img{
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.collab .collab-images .img-square,
.collab .collab-images .img-portrait,
.collab .collab-images .img-landscape{
  grid-column:auto;
  aspect-ratio:auto;
}

@media (max-width:820px){

  body.home{
    background-image:url('../images/home/home-09.jpg');
    background-size:cover;
    background-position:top center;
    background-repeat:no-repeat;
    background-attachment:scroll;
  }

  .nav{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    row-gap:8px;
    padding:5vh 14px 14px 14px;
  }

  .brand{
    grid-column:1;
    grid-row:1;
  }

  .lang-switch{
    grid-column:2;
    grid-row:1;
    justify-self:end;
  }

  .menu{
    grid-column:1 / 3;
    grid-row:2;
    display:flex;
    gap:3px;
    width:100%;
    justify-content:space-between;
  }

  .menu a{
    font-size:clamp(0.5rem, 3.4vw, 20px);
    letter-spacing:0.035em;
  }

  .hero{
    padding:100px 0 80px 0;
  }

  .hero h1{
    font-size:42px;
  }

  .work-images-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .img-square,
  .img-portrait,
  .img-landscape{
    grid-column:span 2;
    aspect-ratio:auto;
  }

  .collab-images{
    grid-template-columns:repeat(2, 1fr);
  }

  .footer{
    margin-top:48px;
    padding-bottom:24px;
  }

  .footer-links,
  .footer-copy,
  .footer-contacts,
  .footer-credit{
    font-size:11px;
    line-height:1.6;
    margin-bottom:10px;
  }

  .footer-links{
    letter-spacing:0.03em;
  }

  .footer-contacts{
    line-height:1.8;
  }
}

@media (max-width:768px){
  .collab-images{
    grid-template-columns:repeat(2, 1fr);
  }
}

/* MEDIA GENERICI */
img,
video{
  max-width:100%;
}

/* BOTTONI CAMBIO LINGUA */
.lingua{
  font-size:15px;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:transparent;
  border:none;
  cursor:pointer;
  color:var(--fg);
  opacity:.5;
  margin:0;
  padding:0;
}

.selected-test{
  border-bottom:none !important;
  opacity:1;
}
.lingua + .lingua::before{
  content:"·";
  margin:0 2px;
  opacity:.4;
}
p{
  font-weight:400;
}
strong, b{
  font-weight:600;
}
.work-text h2{
  font-weight:600;
}
body.lavori .section p a{
  font-weight:600;
letter-spacing:0.02em;
}