:root {

    --background-color: #f6f6f6;

    --small-padding: 10px;
    --site-padding: 25px;
    --double-site-padding: 50px;
    --paragraph-padding: 100px;

	--font-size-head: 40px;
	--line-height-head: 1;
    --font-size-titoli: 30px;
	--line-height-titoli: 1.1;
    --font-size-h1: 70px;
    --line-height-h1: 1;
    --font-size-claim: 100px;
    --line-height-claim: 1;
    --font-size-paragraph: 20px;
    --line-height-paragraph: 1.2;
    --font-size-didascalia: 18px;
    --line-height-didascalia: 1.2;
    --font-size-class: 14px;
    --line-height-class: 1.2;
}

/*  Reset */

*{
    margin: 0;
    box-sizing: border-box;
}

ul, li{
    list-style-type: none;
}

iframe{
    border: 0;
}

input {
    border-radius: 0;
    -webkit-appearance: none;
}

:focus{
    border: 0px;
    outline: none;
}

/*  Typography */

@font-face {
    font-family: 'T3rzospazio';
    src: url('fonts/FolioT3rzospazio-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'T3rzospazio-Normal';
    src: url('fonts/FolioT3rzospazio2-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body.fade {
  opacity: 0;
}

html{
    background-color: var(--background-color);
        padding: var(--site-padding);
}

body, h2, h4, ::placeholder, input, button, small{
    font-family: 'T3rzospazio', Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: font-family 1s ease;
    font-size: var(--font-size-head);
    line-height: var(--line-height-head);
    padding: var(--site-padding);
    opacity: 1;
    transition-duration: 0.7s;
    transition-property: opacity;
}

.header{
    position: fixed;
    z-index: 999;
}

.menu{
    text-transform: uppercase;
    font-size: var(--font-size-head);
    line-height: var(--line-height-head);
    position: relative;
    z-index: 9999 !important;
}

/* Claim */

.hero{
    text-align: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
    padding-left:250px;
    padding-right:250px;
}

.hero h1{
    font-size: var(--font-size-claim);
    line-height: var(--line-height-claim);
    position: relative;
}

.typewriter {
  display: inline-block;
  margin: 0;
}

.js .typewriter:not(.typewriter--started) {
  visibility: hidden;
}

.js .typewriter.typewriter--started {
  visibility: visible;
}

h1{
    text-transform: uppercase;
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: normal;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
}

.title{
    padding: 120px 150px 100px 150px;
}

a{
	color: black;
    text-decoration: none;
    transition: color 0.4s ease;
}

a:hover{
    color: grey;
}

p{
    padding: 0;
    margin: 0;
    letter-spacing: 0.5;
}


/* Image hover — optimized */

@media (hover: hover) and (pointer: fine) {

    a img {
        transition: filter 0.25s ease-out;
    }

    a:hover img {
        filter: blur(1.5px);
    }

}


.home-background {
  position: fixed;
  inset: 0;
  z-index: -20;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none; 
}

.home-background--blurred {
  filter: blur(10px) brightness(0.9);
  z-index: -21;
}

.home-background--sharp {
  z-index: -20;
  opacity: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: mask-image, -webkit-mask-image;
}

.works-container{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 50px;
	justify-content: space-around;
    padding-bottom: var(--paragraph-padding);
}

.work {
	text-align: center;
	width: 100%;
}

.work-image {
    position: relative;
    width: 100%;
    z-index: -10!important;

}

.work img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}


.work-title, figcaption{
    padding-top: var(--site-padding);
    padding-bottom: var(--double-site-padding);
	font-size: var(--font-size-titoli);
	line-height: var(--line-height-titoli);
    width: 90%;
}

.programme-class {
    position: absolute;
    top: var(--site-padding);
    left: var(--site-padding);

    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0;
}

.programme-class span {
    display: block;
    width: max-content;

    color: black;
    background: white;

    font-size: var(--font-size-class);
    line-height: normal;

    border-radius: 6px;
    padding: 2px 6px;

    text-transform: uppercase;
}

/* Editorials */

.editorials-container {
    columns: 2;
    column-gap: 50px;
    padding-bottom: var(--double-site-padding);
    width: 60%;
    margin: 0 auto;
}

.editorial-title{
    text-transform: uppercase;
}
.editorial-title, h2{
	font-size: var(--font-size-titoli);
	line-height: var(--line-height-titoli);
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 0 !important;
    padding-bottom: var(--site-padding)!important;
}

.editorial {
	width: 100%;
    break-inside: avoid;
    margin-bottom: 20px;
    font-size: var(--font-size-didascalia);
    line-height: var(--line-height-didascalia);
    padding-bottom: var(--double-site-padding);
}

.abstract{
    padding-bottom: var(--site-padding)!important;
}

.editorial h3{
    font-size: var(--font-size-didascalia);
    text-align: center;
    color: grey;
    margin-block-start: 0;
    font-weight: normal;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--small-padding)!important;
}

.editorial p{
    padding-bottom: var(--site-padding)!important;
}

.editorial img {
    max-width: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    padding-bottom: var(--site-padding)!important;
}

.editorial hr {
   display: none;
}

/* Blocks */

figure {
	margin: 0;
}

.central_image {
	max-width: 450px;
	height: auto;
	margin: 0 auto;
}

.central_image img {
	width: 100%;
	height: auto;
}

figcaption {
    font-size: var(--font-size-didascalia);
    line-height: var(--line-height-didascalia);
    text-transform: uppercase;
    text-align: center;
    width: 80%;
    padding-top: var(--site-padding);
    padding-bottom: var(--paragraph-padding);
    margin: 0 auto;
}


.double_images {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 50px;
	width: 55%;
	margin: 0 auto;
}

.double_images img {
	display: block;
	width: 100%;
	height: auto;
}

.paragraph-title {
	text-align: center;
	margin: 0;
}

.paragraph {
	margin: 0 auto;
	max-width: 700px;
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    padding-bottom: var(--paragraph-padding);
    font-family: 'T3rzospazio-Normal'!important;
}
.title-paragraph{
    font-family: 'T3rzospazio-Normal'!important;
}

.title-note{
    color: grey!important;
}

.note{
    margin: 0 auto;
	max-width: 700px;
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    padding-bottom: var(--paragraph-padding);
    color: grey;
    font-family: 'T3rzospazio-Normal'!important;
}

.nome{
    padding: 0!important;
    font-size: var(--font-size-didascalia);
    color: grey;
    padding-bottom: var(--small-padding)!important;
}

.intervista{
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    font-family: 'T3rzospazio-Normal'!important;
}

.domanda{
	max-width: 550px;
    padding-bottom: var(--paragraph-padding);
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    font-family: 'T3rzospazio-Normal'!important;
}

.risposta{
	max-width: 550px;
    padding-bottom: var(--paragraph-padding);
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    margin-left: auto;
    font-family: 'T3rzospazio-Normal'!important;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 450px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: var(--paragraph-padding);
}

.carousel-track {
  width: 100%;
  max-width: 450px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-track img {
  display: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.6s ease-out;
}

.carousel-track img.active {
  display: block;
}

.carousel button.prev,
.carousel button.next {
  all: unset;
  position: absolute;
  top: calc((100% - var(--paragraph-padding)) / 2);
  transform: translateY(-50%);
  color: black;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.carousel button.prev {
  left: 0;
}

.carousel button.next {
  right: 0;
}

.carousel button:hover {
  color: rgba(52, 52, 52, 0.8);
}

.carousel button:focus {
  outline: none;
}

button {
  all: unset;
  cursor: pointer;
}

button:focus {
  outline: none;
}

button.prev { left: 2%; }
button.next { right: 2%; }
button:hover { color: rgba(52, 52, 52, 0.8); 
}


/* Footer */

.page-footer{
    text-align: center;
    margin: 0 auto;
    font-size: var(--font-size-paragraph);
}

@view-transition{
    navigation: auto;
}

::view-transition-group(root){
    animation-duration:0.5s;
}

/* About */

.two-column-container{
    display: flex;
    justify-content: space-between;
	max-width: 700px;
    margin: 0 auto;
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    padding-bottom: var(--paragraph-padding);
}

.column {
    width: calc(50% - 10px);
    margin-top: 0 !important;
}

.column p{
    text-align: left;
    padding-bottom: 20px;
}


/* TABLET */


/* MOBILE */

@media only screen and (max-width: 700px) {

:root {
    --small-padding: 6px;
    --site-padding: 12px;
    --double-site-padding: 24px;
    --paragraph-padding: 36px;
    
    --font-size-head: 22px;
    --line-height-head: 1.2;

    --font-size-titoli: 24px;
    --line-height-titoli: 1.1;
    
    --font-size-h1: 36px;
    --line-height-h1: 1.15;
    
    --font-size-claim: 36px; 
    --line-height-claim: 1.1;
    
    --font-size-paragraph: 18px; 
    --line-height-paragraph: 1.3;
    
    --font-size-didascalia: 14px;
    --line-height-didascalia: 1.3;
}

    body.homepage {
        margin: 0;
        padding: var(--site-padding);
        overflow: hidden;
    }

    body.homepage .hero {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100svh;
        padding-left: 35px;
        padding-right: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
    }  

.hero{
    text-align: center;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
    padding-left:25px;
    padding-right:25px;
}

.hero h1{
    font-size: var(--font-size-claim);
    line-height: var(--line-height-claim);
    position: relative;
}
p{
    padding: 0;
    margin: 0;
    letter-spacing: 0.35;
}

.title{
    padding: 84px 0px 36px 0px;
    overflow-wrap: break-word;
}

.work{
}

.works-container{
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	justify-content: space-around;
    padding-bottom: var(--double-site-padding)!important;
    gap: 0!important;
}

.work-title, figcaption{
    padding-top: var(--site-padding);
    padding-bottom: var(--paragraph-padding)!important;
	font-size: var(--font-size-titoli);
	line-height: var(--line-height-titoli);
    width: 90%;
}

.editorials-container{
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	justify-content: space-around;
    width: 95%;
    margin: 0 auto;
    gap: 0 !important;
}

.editorial {
	width: 100%;
    font-size: var(--font-size-didascalia);
    line-height: var(--line-height-didascalia);
    margin-bottom: 0!important;
}

.editorial-title{
}

.editorial h3{
}

.editorial p{
    padding-bottom: var(--double-site-padding)!important;
}

.editorial img {
    padding-bottom: var(--double-site-padding)!important;
}

.editorial hr {
    display: block;
    border: none;
    height: 10px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 12' preserveAspectRatio='none'%3E%3Cpath d='M0 1 L25 11 L50 1 L75 11 L100 1 L125 11 L150 1 L175 11 L200 1 L225 11 L250 1 L275 11 L300 1 L325 11 L350 1 L375 11 L400 1 L425 11 L450 1 L475 11 L500 1 L525 11 L550 1 L575 11 L600 1 L625 11 L650 1 L675 11 L700 1 L725 11 L750 1 L775 11 L800 1 L825 11 L850 1 L875 11 L900 1 L925 11 L950 1 L975 11 L1000 1' fill='none' stroke='black' stroke-width='2' stroke-linejoin='miter'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.divisore{
    margin-top: var(--site-padding);
    margin-bottom: var(--site-padding);
}
.editorial:last-child .divisore {
    display: none;
}

.abstract{
    padding-bottom: var(--site-padding)!important;
}

.two-column-container{
    display: block;
    margin: 0 auto;
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    padding-bottom: var(--paragraph-padding);
}

.column {
    width: 100%;
    margin-top: 0 !important;
        text-align: center !important;
}

.column p{
    text-align: left;
    padding-bottom: 20px;
        text-align: center !important;
}

/* Blocks */

.central_image {
	width: 90%;
	height: auto;
	margin: 0 auto;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: min(75vw, 400px);
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: var(--paragraph-padding);
  box-sizing: border-box;
  padding-left: 35px;
  padding-right: 35px;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-track img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel button.prev {
  left: 0;
}

.carousel button.next {
  right: 0;
}

.carousel button:hover {
  color: rgba(52, 52, 52, 0.8);
}

.carousel button:focus {
  outline: none;
}

button {
  all: unset;
  cursor: pointer;
}

button:focus {
  outline: none;
}

button.prev { left: 10%; }
button.next { right: 10%; }
button:hover { color: rgba(52, 52, 52, 0.8); 
}


.paragraph{
    hyphens: auto !important;
    -webkit-hyphens: auto;
    word-break: break-word;
    word-wrap: break-word;
}

.central_image img {
	width: 100%;
	height: auto;
}

figcaption {
    font-size: var(--font-size-didascalia);
    line-height: var(--line-height-didascalia);
    text-transform: uppercase;
    text-align: center;
    width: 80%;
    padding-top: var(--site-padding);
    padding-bottom: var(--paragraph-padding);
    margin: 0 auto;
}

.double_images {
	display: block;
	grid-template-columns: repeat(1, 1fr);
	width: 90%;
	margin: 0 auto;
}

.double_images img {
	display: block;
	width: 100%;
	height: auto;
}

.intervista{
    width: 100%;
    margin: 0 auto;
    display: flex;
}

.domanda{
	width: 80%;
    padding-bottom: var(--paragraph-padding);
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    hyphens: auto !important;
    -webkit-hyphens: auto;
    word-break: break-word;
    word-wrap: break-word;
}
}

.risposta{
	width: 80%;
    padding-bottom: var(--paragraph-padding);
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
    margin-left: auto;
    hyphens: auto !important;
    -webkit-hyphens: auto;
    word-break: break-word;
    word-wrap: break-word;
}

/* Footer */

.page-footer{
    text-align: center;
    margin: 0 auto;
    width:95%;
    font-size: var(--font-size-paragraph);
}
