@charset "UTF-8";
/* CSS Document */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    /* overflow-x: hidden; */
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    /* overflow-x: hidden; */
    margin-top: 0;
    font-family: "EB Garamond", serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

.mobile-img {
	display: none;
}

.title {
    position: relative;
    height: calc(100vh + 3rem);
    display: block;
}

.container {
    margin-top: 1vh;
}

.autors {
    width: calc(100% - 30px);
    text-align: center;
    padding-top: 3vw;

}

.visual{
    display: none;
    margin: 1rem 0;
    width: 50vw;
    height: calc(100vh - 2rem);
    position: sticky;
    top: 1rem;
}

.visual img {
	width: 100%;
	max-width: calc(100vh - 2rem);
}

.text{
    /* width: calc(50vw - 4.5vw); */
    padding: 0 4.5vw 4.5vw 50.5vw;

}

.text p, .autors, .step input, .step textarea {
    font-size: 1.5vw;
    letter-spacing: 1%;
}

h1 {
    margin: 0;
    padding-top: calc(50vh - (4.7vw * 3));
    width: 100vw;
    line-height: 4.7vw;
    text-align: center;
    font-size: 5vw;
    font-weight: 200;
    font-style: italic;
}

h2 {
    top: 0;
    position: sticky;
    background: white;
    z-index: 3;
    width: 100vw;
    text-align: center;
    margin-top: -3rem;
    font-weight: 400;
    font-style: italic;
    font-size: 33px;
    padding: 0.2em 0 0.3em;
}

h2.stuck {
    border-bottom: 1px solid black;
}

.scroll-anchor{
    position: sticky;
    top: 0;
    height: 0;
    pointer-events: none;
}

.scroll-bar{
	position: absolute;
	top: calc(50vh + 3vw + 3vw);
	top: calc(50dvh + 3vw + 3vw);
    left: 50%;
    width: 1px;
    height: 0;
    background: black;
    transform: translateX(-50%);
    z-index: 2;
}

.stage {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50vw;
    z-index: 4;
    transition: opacity 0.4s ease;
	opacity: 0;
}

  .card {
    position: absolute;
    width: min(500px, 95vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;

}

img {
	width: 100%;
}

  .card.in  {
    opacity: 1;
    transform: none;
    pointer-events: auto;

}
  .card.out {
    opacity: 0;
}

  .card-img {
    width: 30vw;
    height: 25vw;
    margin-bottom: 1.5rem;
}

  .tag{
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.1rem 0.6rem;
    margin: 0;
    color: black;
    font-family: system-ui;
    position: fixed;
    bottom: 30px;
}

/* Comments */ 

  .wrapper {
	width: calc(50% - 20px);
	margin-left: calc(50% + 20px);
	min-height: calc(100vh - 49px - 0.6em);
	min-height: calc(100dvh - 49px - 0.6em);
}
 
    /* progress bar */
    .progress {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 36px;

}
    .progress-fill {
      height: 100%;
      background: #000;
      transition: width 0.35s ease;
      width: 0%;
    }
 
    /* step */
    .step { display: none; }
    .step.visible { display: block; }
 
    .step label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #000;
      margin-bottom: 10px;
    }
 
    .step input,
    .step textarea {
    border-bottom: 0;
    border-right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #000;
    border-radius: 0;
    padding: 14px 14px 28px;
    font-family: "EB Garamond", serif;
    font-size: 15px;
    color: #000;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: box-shadow 0.15s;
    border-left: none;

}
    .step input::placeholder,
    .step textarea::placeholder { color: #bbb; }
    .step input:focus,
 
    .step textarea {
    overflow: hidden;
    resize: none;
    min-height: unset;
}
 
    /* error */
    .err {
      font-size: 11px;
      letter-spacing: 0.08em;
      color: #c00;
      margin-top: 8px;
      min-height: 16px;
    }
 
    /* button */
    .btn {
    text-align: left;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    margin-left: 15px;
    margin-top: -6px;
    width: 200px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    padding: 14px 20px;
    position: relative;
    overflow: hidden;
}
    .btn span {
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
    color: #fff;
}
    .btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: var(--fill, 0%);
    background: #000;
    transition: width 0.5s ease;
    z-index: 1;
}
    .btn:disabled { opacity: 0.4; cursor: not-allowed; }
 
    .success {
      display: none;
      text-align: center;
      padding: calc(50vh - 100px) 0 0 0;
      padding: calc(50dvh - 100px) 0 0 0;	
    }
    .success.visible { display: block; }
    .success p {
      letter-spacing: 0.12em;
      color: #000;
      margin-top: 12px;
	  font-size: 0.65rem;
	  text-transform: uppercase;
	  font-family: system-ui;
	  line-height: 135%;
    }
    .checkmark { font-size: 36px; }


/* Responsive */

@media (min-width: 1500px) {
	.text p, .autors, .step input, .step textarea {
		font-size: 22.5px;
	}

	.text p {
        max-width: 666px;
        width: 100%;
    
    }

	.text h2 {
		font-size: 45px;
	}	  
	  
}

@media (max-width: 1200px) {
	.text p, .autors, .step input, .step textarea {
		font-size: 1.9vw;
	} 
	  
}

@media (max-width: 900px) {
	.mobile-img {
        display: block;
        position: relative;
        border-top: 1px solid;
        border-bottom: 1px solid;
        background: white;
        z-index: 2;
    }

	.mobile-img > div {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		opacity: 0;
		transition: opacity 0.3s ease;
	}
	
	.mobile-img > div.m-visible {
		opacity: 1;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
	}

	.mobile-img > div:first-child.m-visible {
		position: relative;
	}
	
	.mobile-img > div:first-child {
		position: relative; 
	}

	.text p, .autors, .step input, .step textarea {
        font-size: 20px;
        line-height: 26px;
    
    } 
	
	.text {
        max-width: 666px;
        width: calc(100% - 40px);
        padding: 0 0 4.5vw 30px;
    
    }
	
	.autors {
        text-align: left;
        margin-left: 30px;
        padding-top: 3.5vw;
    
    } 
	
	h1 {
        padding-top: calc(50vh - (11vw * 3));   /* fallback per browser vecchi */
		padding-top: calc(50dvh - (11vw * 3));  /* browser moderni */
        padding-left: 15px;
        line-height: 11vw;
        text-align: left;
        font-size: 11vw;
    }

	h2 {
        margin-top: 2em;
        text-align: left;
        padding-left: 15px;
        margin-bottom: 0;
    }
	
	.scroll-bar {
		left: 20px;
		top: calc(50vh + 2vh) ; /* fallback per browser vecchi */
		top: calc(50dvh + 2vh) ; /* browser moderni */
	}	
	
	.stage {
		display: none;
        height: 50vh;
        background: white;
        position: fixed;
        inset: 0;
        align-items: center;
        justify-content: center;
        width: 100vw;
        z-index: 4;
        transition: opacity 0.4s ease;
        top: 50vh;
        border-top: 1px solid;
    }
	
	.card {
		display: flex;
		flex-direction: column;
		align-items: auto;
		text-align: center;
		top: 0;
	}
	.tag {
        position: relative;
        text-align: center;
        padding-bottom: 0;
        margin-bottom: -0.77rem;
        font-size: 2vw;
    
    }
	img {
        padding-right: 20px;
        width: 100%;
        scale: 0.85;
    
    }
	section:last-of-type .mobile-img {
        height: 100vh;
        z-index: 4;
    
    }
	.wrapper {
		width: calc(100% - 20px);
		margin-left: calc(20px);
	}
	.success {
		padding-right: 10px;
	}
}