
:root{
	--dur: 3500ms;
	--fade: 600ms;
	--black2: #333333;
	--grey1: #777777;
	--grey2: darkgrey;
	--grey3: #e6e6e6;
}


* {
	
}



body{
	margin:0;
	place-items:center;
	height:100vh;
	background:#fdfdfd;
	font-family: "NB Akademie";
	text-align:left;
	font-size: 10pt;
	line-height: 1.3rem;
	scroll-behavior: smooth;
	align-content: baseline;

}
body>*{
	opacity: 0;
	transition: 600ms ease-in-out;
	}
body.loaded>*{
	opacity: 1;
	transition: 600ms ease-in-out;
}

a:visited {
  color: black;
}

a {
  color: black;
  text-decoration: underline dotted 1.6px black;
  text-underline-offset: 0.2em;
}
header{
	position: fixed;
  padding-top:1.5rem;
  font-size: 17pt;
  font-weight: 500;
  opacity: 1 !important;
  mix-blend-mode: difference;
  filter: invert(1);
  z-index:10000;

}
header>*{

}

footer{
	bottom: 0rem;
	padding-bottom:1.5rem;
  position: fixed;
  font-size: 17pt;
  opacity: 1 !important;
  font-weight: 500;
  z-index: 10000;
	mix-blend-mode: difference;
	filter: invert(1);


}
p{
	margin:0px;
}
h2{
	font-size: 2rem;
	font-weight: 400;
  line-height: 2.3rem;
}
h2:first-of-type{
	padding-top:1rem;
}
h3{
	text-transform: uppercase;
  font-family: 'nb akademie mono';
  margin: 0px;
  font-weight: 600;
  font-size: 1rem;
  padding-left: 5rem;
  
}
h4{
	margin:0px;
	font-size: 1rem;
  font-weight: 500;


}



.left{
	grid-column: 1 / 2;
   margin-top: 1rem;
}
.right {
	grid-column: 2 / 6;
  margin-top: 1rem;
  padding-left: 3rem;

}

.line{
	border-bottom: 	1px dotted var(--grey1);
	margin-top:5rem;
	grid-column: 1 / 6;
}
.grid-container {
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0em;

}
.five-columns{
	width: auto;
	grid-template-columns: repeat(5, 1fr) ;
  gap: 0rem;
}

.column.center p {
	margin:0;
}
.rotate{
	transform: rotate(180deg);
}
.center{
	text-align:center;
	display: flex;
  justify-content: center; 
  align-items: center;     
}
.container {
	/*margin: 4rem 4rem 0rem;*/
	position:absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width:100%;

}
.column.side{
	grid-column: 1 / 2;
	padding-left:0vw;
	position: fixed;
	bottom:5rem;
}
.column.main{
	grid-column: 2 / 6;
  padding: 1rem 3rem;
}
.column.main>p:first-of-type{
	padding-top:3rem;
}
.column.main>p:last-of-type{
	padding-bottom:6rem;
}
.table-block {
	width:100%;
}
.table-block td {
  font-size: 0.75rem;
  border-bottom: 2px solid var(--grey1);
  padding: 0.3rem 0rem;
}

.table-block tr:last-child td {
  border-bottom: none;
}
.bio {
    white-space: pre-line;
}
.anno{
	color:var(--grey1);
	width: 25%;
}
.ruolo{

}
.slideshow{
  width: 100vw;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 8rem);
}

.slide{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  z-index: 0;
}

.slide.active{
  opacity: 1;
  pointer-events: auto;
  z-index: 1000;
}

/* Wrapper dell'immagine */
.img-wrap {
  position: relative;
  display: inline-block; /* prende dimensione reale dell'immagine */
}

/* Immagine */
.img-wrap img {
	object-fit: contain;
	max-width:calc(100vw - 10rem);
  display: block;
  max-height: calc(100vh - 10rem);
}

.slide-title {
  position: absolute;
  bottom: 1rem;
  padding:0rem 1rem;
	font-size: 7.1pt;
  line-height: 0.9rem;
  letter-spacing: 0.07rem;
  font-weight: 600;
	text-align: center;  
	justify-self: center;

  color: #ebebeb;
  text-transform: uppercase;
  mix-blend-mode: hard-light;

  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;

          
}
.tooltip {
	position: fixed;
  top: 0;
  left: 0;
  max-width: 350px;
  pointer-events: none;
  font-size: 7.5pt;
  padding: 0.4rem;
  line-height: 0.8rem;
  text-align: left;
  justify-self: left;
  align-self: flex-end;
  background: white;
  border: 1px solid var(--grey3);
  color: var(--grey1);
  mix-blend-mode: luminosity;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
  /* border-radius: 2rem; */
  box-shadow: #80808047 5px 5px 14px
}

.tooltip.visible {
  opacity: 1;
}





@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}



@media (max-width: 768px) {
	body{
		font-size: 12pt;
		line-height: 1.4rem;
	}
	header{
		width: 100vw;
		font-size: 15pt;
		position: fixed;
		padding-top:1rem;
	}
	header div a .grid-container{
		column-gap: 1rem;
	}
	footer{
		width: 100vw;
		font-size: 15pt;
		position: fixed;
		bottom:0rem;
		padding-bottom:1rem;


	}
	footer div a .grid-container{
		column-gap: 1rem;
	}
	.slide-title{
		opacity: 1;
}
.tooltip{
	opacity: 0 !important;
}
	.about{
		padding: 1rem;

	}
	/*.slideshow{
		width:calc(100vw - 2rem);
	}*/

	.img-wrap img {
	max-width:100vw ;
  max-height: 100vh ;
}
	.grid-container{
	}

	.grid-container.five-columns {
		grid-template-columns: repeat(1, 1fr) !important;	    
		grid-auto-flow: row;                  
	}
	.container:has(.snap-container){
		 margin: 0rem; 
	}
	.container>.column {
	    width: 100%;   
	    padding-left:0rem;    
	}
	
	
	h2{
		font-size:1.5rem;
		grid-column: 1/6;
		padding:0rem;
		line-height: 2rem;

	}
	
	h3{
		grid-column: 1/6;
		padding:0rem;
	}
	h4{
		grid-column: 1/6;

	}

	.left{
		grid-column: 1/1;

	}
	.right{
		grid-column: 1/6;
		padding:0rem;

	}
	.right.table{
		grid-column: 1/6;

	}
	.column.main{
		order: 0; 
		grid-column: 1/6;
		padding:0rem;
	}
	.column.side{
		grid-column: 1/1;
		position: relative;
		order: 1;
	}

	.table-block td {
    font-size: 0.85rem;
    padding: 0.2rem 0rem;
  }
	
	
}

