@charset "UTF-8";
/* CSS Document */
:root {
  --header-h: 49px;
  --safe-top: env(safe-area-inset-top, 0px);
  --anchor-offset: calc(var(--header-h) + var(--safe-top));
}
/* Attivo sia mobile che desktop, ma utile soprattutto su iOS */
section:target::before {
  content: "";
  display: block;
  height: var(--anchor-offset);
  margin-top: calc(var(--anchor-offset) * -1);
  pointer-events: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  letter-spacing: 0.02em;
  background: #F9F5EC;
  margin: 0;
  padding: 0;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
  overscroll-behavior-y: none;
  font-family: "Libre Franklin", sans-serif;
  /* line-height: 125%; */
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hscroll-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    background: black;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;

}

.hscroll-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;

}

/* posizioni */
.hscroll-btn.prev { left: 12px; }
.hscroll-btn.next { right: 12px; }

/* stato visibile (deciso via JS) */
.hscroll-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}
h1 .smallcaps, h3 .smallcaps {
  font-size: 90%;
  font-weight: 850;
}
.smallcaps {
  font-size: 90%;
  font-weight: 520;
}
.subscript {
	font-weight: 700;
	font-size: 7px;
}
/* Se il contenuto è più lungo dell'altezza massima, due colonne */
.subcolumn.two-cols {
  column-count: 2;
  width: calc(420px * 2);
  column-fill: auto; /* o balance */
}
#portfolio .column.two-cols.expanded {
  width: 1260px;
  flex: 0 0 1260px;
}
.subcolumn.two-cols p {
  break-inside: avoid;
  -webkit-column-break-inside: avoid; /* Safari/Chrome */
  -moz-column-break-inside: avoid; /* Firefox */
}
#portfolio .column .subcolumn.second {
    width: 419px;
    border-right: none;
    height: calc(100vh - 122px - 58px);

}
#portfolio .column.expanded .subcolumn.second {
    width: 419px;
    opacity: 1;

}
.plus-toggle {
  width: 17px;
  height: 45px;
  position: absolute;
  cursor: pointer;
  display: inline-block;
  right: 1.2rem;
  top: calc(1rem + 10px);
  pointer-events: none;
}

#team h3 {
  height: 200px;
}
#team .expanded h3 {
  height: 100px;
}
.plus-toggle .line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: black;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  pointer-events: none;
}
.plus-toggle .line.vertical {
  transform: translateY(-50%) rotate(90deg);
}
.expanded .plus-toggle .line.horizontal {
  transform: translateY(-50%) rotate(45deg);
}
.expanded .plus-toggle .line.vertical {
  transform: translateY(-50%) rotate(135deg);
}
header {
  min-height: 49px;
  position: fixed;
  background: #F9F5EC;
  backdrop-filter: blur(17.5px);
  -webkit-backdrop-filter: blur(17.5px);
  line-height: 1.5;
  width: 100vw;
  padding-left: 1.25rem;
  padding-right: 2.5rem;
  align-items: center;
  z-index: 4;
  color: black;
  border-bottom: 1px solid black;
  transition: all 0.3s;
}
header li {
  font-size: 15px;
  margin-top: 13px;
  display: inline-block;
  margin-right: 8px;
  height: 35px;
  color: black;
}
#section_name {
  display: none;
}
header.subpage .arrow-back {
  left: 30px;
  opacity: 0;
}
section {
  clip-path: view-box;
  scroll-snap-align: start;
  height: 100vh;
  display: flex;
  font-size: 3rem;
  color: black;
  overflow: hidden;
  border-top: 1px solid black;
}
section .fixed {
  pointer-events: none;
  position: fixed;
  top: 49px;
  left: 0;
}
.horizontal-scroll {
  top: 0;
  left: 0;
  position: fixed;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  width: 100vw;
}
.column {
  overflow: hidden;
  border-right: 1px solid black;
  flex: 0 0 420px;
  top: 0;
  left: 0;
  position: relative;
  float: left;
  width: 420px;
  height: 100%;
  scroll-snap-align: start;
  display: block;
  font-size: 2rem;
}
a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s font-weight ease;
}
.top {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  cursor: pointer;
  height: 110px;
  transition: all 0.3s ease;
}
.linkedin, .cta, .website {
  font-weight: 800;
  display: block;
  font-size: 15px;
  color: black;
  margin-top: -1px;
  border-top: solid 1px;
  border-bottom: solid 1px;
  padding: 17px 1rem;
  width: 100%;
  background: #F9F5EC;
  transition: 0.3s all ease;
  cursor: pointer;
  text-decoration: none;
}
.cta {
  border-right: solid 1px black;
  position: relative;
  top: calc(100vh - 53px);
}
.website {
    /* position: fixed; */
    bottom: 0;
    width: 419px;
    border-bottom: 0;
    float: inline-start;

}
.fixed .cta {
  position: fixed;
}
.single {
  width: 420px;
}
.arrow-back, .arrow-forward, #portfolio img.arrow-forward, #team img.arrow-forward {
  transition: 0.3s all ease;
  position: absolute;
  margin-left: 20px;
  margin-top: -10px;
  height: 40px !important;
  min-height: 40px;
  width: 40px;
  object-fit: contain;
  text-align: right;
  opacity: 1;
}
a .arrow-forward, .arrow-forward, #portfolio img.arrow-forward, #team img.arrow-forward {
  right: 35px;
}
.expanded .top {
  height: calc(100vh);
  max-height: 100vh;
}
header.expanded {
  height: calc(100vh);
  max-height: 100vh;
}
#team img, #portfolio img {
  /*  filter: grayscale();*/
}
.bottom {
  border-top: 1px solid black;
  overflow: hidden;
  display: block;
  width: 100%;
  height: calc(100vh - 120px);
  transition: height 0.3s ease;
}
#portfolio .column {
  transition: all 0.3s ease;
  overflow: hidden;
  width: 840px;
}
#portfolio .column.expanded {
  width: 840px;
  flex: 0 0 840px;
}
.expanded .bottom {
  height: 0;
}
.double {
  flex: 0 0 840px;
  width: 840px;
}
#contacts .double {
  border: none;
  width: 840px;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.8);
}
.active {
  background-color: black;
  color: #F9F5EC;
}
#team .expanded .active, #portfolio .expanded .active {
  background-color: #F9F5EC;
  color: black;
}
h1 {
    padding: 2.5vw 2.5vw;
    width: 100%;
    font-size: 6vw;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 100%;
    height: max-content;

}
h2 {
  font-weight: 500;
  font-size: 40px;
  text-decoration-color: rgba(40, 40, 40, 0);
  transition: opacity 0.3s ease;
  padding: 1.5rem 4rem 1.5rem 2rem;
  line-height: 120%;
}
h3 {
  text-decoration-color: rgba(40, 40, 40, 0);
  transition: 0.3s all;
  font-size: 22px;
  font-weight: 800;
  line-height: 115%;
  padding: 1rem 2.5rem 1rem 1rem;
  cursor: pointer;
  display: block;
}
p {
  padding: 0 2.5rem 0 1rem;
  font-size: 15px;
  line-height: 125%;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}
#aboutus p {
  padding-top: 1rem;
}
.top p {
  opacity: 0;
}
.expanded .top p {
  opacity: 1;
}
#portfolio .expanded .top p {
  opacity: 0;
  width: 419px;
  position: absolute;
}
#portfolio .top {
  height: 200px;
}
#portfolio .bottom {
  height: calc(100vh - 249px);
}
#portfolio .expanded .top {
  height: 100vh;
}
#portfolio .top p {
  opacity: 1;
  width: 419px;
  transition: all ease 0.3s;
}
#portfolio .expanded .top .subcolumn p {
  opacity: 1;
  position: static;
}
#portfolio .top .subcolumn p {
  opacity: 0;
}
.pagination-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 100%;
  z-index: 10;
}
.pagination-dots .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #F9F5EC;
  opacity: 1;
  transition: all 0.3s ease;
}
.pagination-dots .dot.active {
  opacity: 1;
  transform: scale(2.4);
}
.quote {
  letter-spacing: 0.02rem;
  z-index: 3;
  text-indent: -1.5rem;
  position: absolute;
  color: white;
  font-weight: 800;
  font-size: 45px;
  width: 777px;
  line-height: 115%;
  bottom: 20%;
  right: 10%;
  padding: 20px;
}
.author {
  font-weight: 500;
  font-size: 15px;
  padding-top: 25px;
  padding-left: 1.5rem;
}
.subcolumn {
    position: static;
    padding-top: 1rem;
    margin-top: 144px;
    width: 420px;
    height: calc(100vh);
    border-right: solid 1px;
    font-size: 15px;
    opacity: 0;
    border-top: solid 1px;
    transition: 0.3s all ease;
    float: left;
    max-height: calc(100vh - 122px);
    overflow-y: auto;
    column-count: 1;
    column-gap: 0;
    transition-delay: 0s;

}
.subcolumn li {
  list-style-type: none;
  padding-left: 1rem;
}
h4 {
  font-weight: 800;
  padding-left: 1rem;
}
.expanded .subcolumn {
    opacity: 1;
    margin-top: 25px;
    padding-bottom: 40px;
    transition-delay: 0.3s !important;
    overflow: hidden;

}
#portfolio .expanded .bottom {
  height: 0;
}
header.mainheader:hover li {
  color: #F9F5EC;
}
header.mainheader:hover ul {
  transform: none !important;
}
header.mainheader:hover a {
  opacity: 1 !important;
}
header.subpage:hover li {
  color: black;
}
header a {
  opacity: 0;
  transition: opacity 0.3s ease;
}
header.subpage:hover, header:hover {
  background: black;
}
header.subpage:hover .arrow-back {
  transform: translateX(-50%);
  opacity: 1;
  left: 30px;
}
header .plus-toggle {
  opacity: 0;
}
#tovc .cta {
  border-right: none;
}
header ul {
  transition: transform 0.4s ease;
}
header.tovc-visible a {
  opacity: 1 !important;
}
/* Disabilita lo snap in modo mirato quando mettiamo la classe su <html> */
.no-snap, .no-snap body {
  scroll-snap-type: none !important;
}
.no-snap section {
  scroll-snap-align: unset !important;
}
/* Responsive - su mobile colonna 100% */
@media (max-width: 768px) {
  .subcolumn.two-cols {
    column-count: 2;
    width: calc(420px * 2);
    column-fill: auto; /* o balance */
  }
  #portfolio .column.two-cols.expanded {
    width: 1260px;
    flex: 0 0 1260px;
  }
  .subcolumn.two-cols p {
    break-inside: avoid;
    -webkit-column-break-inside: avoid; /* Safari/Chrome */
    -moz-column-break-inside: avoid; /* Firefox */
  }
  header li {
    color: #F9F5EC;
  }
  header .plus-toggle {
    opacity: 1;
  }
  header .plus-toggle .line {
    background-color: #F9F5EC;
    height: 1.5px;
  }
  header .plus-toggle .line.horizontal {
    transform: translateY(calc(-50% + 4px)) rotate(0);
  }
  header .plus-toggle .line.vertical {
    transform: translateY(calc(-50% - 4px));
  }
  header .expanded .plus-toggle .line.vertical {
    transform: translateY(-50%) rotate(135deg);
  }
  .expanded .plus-toggle .line.horizontal {
    transform: translateY(-50%) rotate(45deg);
  }
  .expanded .plus-toggle .line.vertical {
    transform: translateY(-50%) rotate(-45deg);
  }
  #portfolio .column .subcolumn {
    position: static;
    margin: 0;
    margin-top: 20px;
    overflow: hidden;
    padding-right: 1rem;
  }
 .hscroll-btn { 
	 display: none !important; 
  }
  #portfolio .column .subcolumn:last-child {
    height: 100vh;
  }
  .logo {
    font-weight: 500;
  }
  header {
    cursor: pointer;
    background: black;
  }
  #section_name {
    transition: 0.3s opacity ease;
    color: #F9F5EC;
    display: block;
    font-size: 17.5px;
    font-weight: 750 !important;
    margin-top: -1px;
  }
  .column, .double {
    flex: 0 0 100%;
  }
  h1 {
    font-size: 8.5vw;
    padding: 1rem;
    line-height: 105%;   
  }
  h2, h3 {
    font-size: 20px;
    line-height: 125%;
    padding: 1rem 2.5rem 1rem 1rem;
    min-height: 60px;
  }
  h1 br {
    display: none;
  }
  p {
    font-size: 16px;
  }
  .linkedin, .website {
    font-size: 16px;
  }
  header li {
    line-height: 125%;
    display: block;
    font-size: 17.5px;
    border-top: rgba(255, 255, 255, 0.15) solid 1px;
    margin-top: 0;
    font-weight: 500;
    padding-top: 13px;
    margin-left: -1rem;
    padding-left: 1rem;
    height: 49px;
    margin-right: -3rem;
  }
  header li:last-child {
    border-bottom: rgba(255, 255, 255, 0.2) solid 1px;
  }
  header {
    height: 49px;
    overflow: hidden;
    padding-left: 1rem;
  }
  .linkedin, .cta {
    font-size: 16px;
  }
  .top {
    height: 100px;
  }
  .cta {
    display: none;
    height: 150px;
    top: calc(100vh - 150px);
  }
  .expanded #section_name {
    opacity: 0;
  }
  #aboutus p {
    padding-top: 1rem;
    font-size: 22px;
    font-weight: 450;
  }
  .pagination-dots {
    display: flex;
  }
  #aboutus .pagination-dots {
    /* filter: invert(1); */
  }
  .quote {
    text-indent: -0.75rem;
    font-size: 25px;
    right: auto;
    padding: 1rem 1.25rem;
    width: 100%;
  }
  .author {
    font-weight: 500;
    font-size: 16px;
    padding-top: 25px;
    padding-left: 0.8rem;
  }
  .subcolumn {
    width: calc(100vw);
    font-size: 16px;
  }
  .expanded .subcolumn {
    height: auto;
    padding-bottom: 7px;
	max-height: none;
  }
  #portfolio .column.expanded, #team .column.expanded {
    width: 100vw;
    flex: 0 0 100vw;
    height: auto;
  }
  #portfolio .expanded .top p, #portfolio .top p {
    width: 100vw;
  }
  #portfolio .expanded .top, #team .expanded .top  {
    overflow-y: scroll;
  }
  .quote br {
    display: none;
  }
  #contacts, #tovc {
    border-right: 1px solid black;
  }
  #portfolio_m, .mobile {
    display: block;
  }
  .desktop {
    display: none;
  }
  #portfolio .double {
    display: none;
  }
  #contacts .double {
    width: 100%;
  }
  #portfolio .column.expanded .subcolumn.second {
	width: 100%;
	height: auto;
	padding-bottom: 2.5rem;
  }
  .website {
	padding-bottom: 300px;
	width: 100%;
  }
  #team p:last-child {
	padding-bottom: 300px; 	
  }
	html {
	  /*scroll-padding-top: 49px;  compensa l’header nelle ancore */
	}
}
/* Hover per desktop */
@media (hover: hover) and (pointer: fine) {
.hscroll-btn { 
	display: flex; 
}
  .hscroll-btn:hover { 
	  transform: translateY(-50%) scale(1.05); 
	}
	
  .top:hover {
    background-color: black;
    color: #F9F5EC;
  }
  .expanded .top:hover {
    background: #F9F5EC;
    color: black;
    cursor: auto;
  }
  .expanded .top:hover .plus-toggle .line {
    background-color: black;
  }
  .linkedin:hover, .cta:hover, .website:hover {
    background: black;
  }
  a:hover .arrow-forward, .top:hover img.arrow-forward {
    transform: translateX(70%);
    opacity: 1;
  }
  .top:hover .plus-toggle .line {
    background-color: #F9F5EC;
  }
}