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

@font-face {
  font-family: 'Ronzino';
  src: url('../font/Ronzino-Regular.woff2') format('woff2');
  font-weight: 400;
}

.manrope {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.hero-wrapper {
  margin-bottom: -105vh;
  width: 100vw;
  left: 0;
}

.hero-section {
  bottom: 0;
  height: 80vh;
  overflow: hidden;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E7E8E2;
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  padding: 1.5%;
}

.logoBattistelli {
  width: 9vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-spacer {
  height: 100vh;
}

.cta-wrapper {
  background-color: #E7E8E2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 180vh;
  overflow: visible;
  position: relative;
  width: 100%;
  z-index: 3;
  height: auto;
}

.cta-section {
  gap: 24%;
  height: 150vh;
  height: auto;
  right: 0;
  padding: 5vw;
}

.intro {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

h2 {
  color:#020202;
  font-family: "Manrope", sans-serif;
  font-size: 104px;
  font-weight: 500;
  line-height: 1;
  font-size: clamp(3.25rem, 0.929rem + 6.19vw, 6.5rem);
}

.grid-container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 230px);
  column-gap: 40px;
  row-gap: 80px;
  padding-top: 5%;
} 

.items {
  width: 400px;
  height: 235px;
  object-fit: cover;
}

.img {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.img:hover {
  visibility: visible;
  opacity: 1;
}

.backbtn {
  align-items: start;
  border: 1px solid #020202;
  background-color: #020202;
  font-size: clamp(.875rem,.65625rem + .546875vw, 1.3125rem);
  line-height: calc((.65625rem + .546875vw) * 1.457142857142857);
  padding: 10px 20px;
  transition: background-color 0.5s, color 0.5s;
  color: #E7E8E2;
  position: absolute;
}
  
.backbtn:hover {
  opacity: 80%;
  cursor: pointer;
  background-color: #E7E8E2;
  border: 1px solid #020202;
  color: #020202;
}
  
.backbtn:active {
  opacity: 0.4;
}

.bntLearnMore{
  align-items: start;
  border: 1px solid #020202;
  background-color: #020202;
  font-size: clamp(.875rem,.65625rem + .546875vw, 1.3125rem);
  line-height: calc((.65625rem + .546875vw) * 1.457142857142857);
  padding: 10px 20px;
  transition: background-color 0.5s, color 0.5s;
  color: #E7E8E2;
  margin: auto;
}
  
.bntLearnMore:hover {
  opacity: 80%;
  cursor: pointer;
  background-color: #E7E8E2;
  border: 1px solid #020202;
  color: #020202;
}
  
.bntLearnMore:active {
  opacity: 0.4;
}

body {
  box-sizing: border-box;
  margin: 0;
  line-height: 1.6;
  text-wrap: balance;
  background-color: #020202;
  color:  #E7E8E2;
  height: 100vh;
}

.footer-wrapper {
  margin-top: -60vh;
}
 
.bottoni {
  display: flex;
  flex-direction: row;
  justify-content:space-between;
  margin-top: 100px;
}
  
section, footer {
  display: flex;
  flex-direction: column;
  padding: 3vw;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
}
  
#contatti{
  margin-bottom: 50%;
}

.contatti {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
}

footer {
  position: sticky;
  bottom: 0;
  padding-top: 50px;
}

  
h1 {
  color:  #E7E8E2;
  font-family: 'Ronzino', sans-serif;
  font-size: 104px;
  font-weight: 400;
  line-height: 1;
  font-size: clamp(3.25rem, 0.929rem + 6.19vw, 6.5rem);
}
  
.info {
  font-family: 'Ronzino';
  color:  #E7E8E2;
  font-size: clamp(0.875rem, 0.5909rem + 0.7576vw, 1.5rem);
}

.bold{
  font-weight: 750;
}

.scrivimi dl dd span {
  margin-right: 15px; 
}

.messaggio {
  margin-top: 2rem;
  font-family: 'Ronzino';
}

.nome-completo {
  display: flex;
  gap: 40px;
}

input {
  color:  #E7E8E2;
  font-size: clamp(.875rem,.65625rem + .546875vw, 1.3125rem);
  line-height: calc((.65625rem + .546875vw) * 1.457142857142857);
  width: 245px;
  height: 50px;
  padding-left: 10px;
  margin-bottom: 10px;
  outline: none;
  border: none;
  background: none;
  border-bottom: 2px solid #E7E8E2;
  font-family: 'Ronzino';
  margin-top: 30px;
}

textarea {
  outline: none;
  border: none;
  font-size: clamp(.875rem,.65625rem + .546875vw, 1.3125rem);
  line-height: calc((.65625rem + .546875vw) * 1.457142857142857);
  background: none;
  border-bottom: 2px solid #E7E8E2;
  padding-left: 10px;
  padding-top: 5px;
  color:  #E7E8E2;
  font-family: 'Ronzino';
  width: 100%;       
  max-width: 58.5%;  
  min-width: 200px; 
  resize: vertical;
}

input:focus-within {
  outline: none;
  border-color: #E7E8E2;
  color: #E7E8E2;
  border-width: 3px;
}

.text {
  margin-top: 45px;
  width: 63vw;
  margin-bottom: 10%;
}
  
.invia {
  border: 1px solid #020202;
  border: none;
  font-size: clamp(.875rem,.65625rem + .546875vw, 1.3125rem);
  line-height: calc((.65625rem + .546875vw) * 1.457142857142857);
  padding: 10px 20px;
  margin: auto;
  transition: background-color 0.5s, color 0.5s;
  border: 1px solid #d2d5ca;
  position: relative;
  z-index: 10;
}
  
.invia:hover {
  opacity: 80%;
  cursor: pointer;
  background-color: #020202;
  border: 1px solid #E7E8E2;
  color: #E7E8E2;
}
  
.invia:active {
  opacity: 0.4;
}

.lightbox {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  flex-direction: column;
  overflow-x: hidden;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  margin: 20px auto;
}

.close, .prev, .next {
  position: absolute;
  color: #E7E8E2;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 20px;
  right: 30px;
  color: #E7E8E2;
}

.prev, .next {
  display: flex;
  justify-content: space-between;
  width: 150px;
  height: 150px;
  align-items: center;
}

.next {
  display: flex;
  justify-content: flex-end;
}

.prev { left: 50px; }
.next { right: 50px; }

.image_container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.items {
  width: 100%;       
  height: 230px;   
  object-fit: cover;   
  display: block;
  cursor: pointer;
}

.image_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: rgba(0,0,0,0.5);
  color: #E7E8E2;
  font-family: 'Ronzino';
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.image_container:hover .image_overlay {
  opacity: 0.9;
  backdrop-filter: blur(1px);
}

.image_overlay > * {
  transform: translateY(20px);
  transition: transform 0.25s;
}

.image_container:hover .image_overlay > * {
  transform: translateY(0px);
}

.image_title {
  font-size: 1.5em;
  text-align: center;
}

#contatti{
  margin-bottom: 50%;
}

.nomi{
  color:  #E7E8E2;
  font-family: "Fira Code", monospace;
  letter-spacing: 0.1rem;
  font-size: 12px;
  left: 41vw;
  position: absolute;
  top: 94.3vh;
}

h1 {
  color:  #E7E8E2;
  font-family: "Manrope", sans-serif; 
  font-size: 104px;
  font-weight: 400;
  line-height: 1;
  font-size: clamp(3.25rem, 0.929rem + 6.19vw, 6.5rem);
}

.grassetto {
  font-weight: 900;
}

footer {
  position: sticky;
  bottom: 0;
  padding-top: 50px;
}

section .menu{
  display: flex;
  flex-direction: row;
  height: 100vh;
  gap: 10vw;
  padding-bottom: 150px;
  position: relative;
  padding-top: 25%;
}

section, footer {
  display: flex;
  flex-direction: column;
  padding: 3vw;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
}

.footer-wrapper {
  margin-top: -60vh;
}
  
@media screen and (max-width: 992px){

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    margin-top: 10%;
  }

  .cta-wrapper {
    height: auto;
    min-height: 110vh;
    padding: 2vw;
    height: auto;
    overflow-x: hidden;
    min-height: 110vh;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E7E8E2;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    padding: 5%;
  }

  .logoBattistelli {
    width: 25vw;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  input {
    color:  #E7E8E2;
    font-size: clamp(.875rem,.65625rem + .546875vw, 1.3125rem);
    line-height: calc((.65625rem + .546875vw) * 1.457142857142857);
    width: 200px;
    height: 50px;
    padding-left: 10px;
    margin-bottom: 10px;
    outline: none;
    border: none;
    background: none;
    border-bottom: 2px solid #E7E8E2;
    margin-top: 30px;
    gap: 30%;
  }

  .nome-completo {
    display: flex;
    gap: 55px;
  }

  .invia {
    position: relative;
    z-index: 10;
    border: none;
    transition: background-color 0.5s, color 0.5s;
    border: 1px solid #d2d5ca;
    text-decoration: none;
    background-color: #020202;
    -webkit-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    background-color: #E7E8E2;
    color: #020202;
  }

  .image_overlay{
    position: absolute;
    top: 0;
    left: 0px;
    width: 80%;
    height: 0%;
    background: rgba(0, 0, 0, 0.5);
    color:  #E7E8E2;
    display: flex;
    align-content: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
  }

  .menu_text {
    padding-top: 0;
    display: flex;
    justify-content: flex-start;
    color: #020202;
    font-family: "Manrope", sans-serif;
    line-height: 1.2;
    font-weight: 600;
    width: 18vw; 
    height: 60%;
    font-size: clamp(0.625rem, -0.5469rem + 3.75vw, 1.5625rem);
  } 

  .intro {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-family: "Manrope", sans-serif;
  }

  .info {
    color:  #E7E8E2;
    font-size: clamp(0.875rem, 0.5909rem + 0.7576vw, 1.5rem);
    padding-top: 50px;
    font-family: 'Ronzino', sans-serif;
  }

  footer {
    position: sticky;
    bottom: 0;
    padding-top: 150px;
    overflow-x: hidden;
    padding-left: 24px;
  }

  .nomi {
    font-size: 9px;
    width: 100%;
    padding-bottom: 5%;
  }

  section, footer {
    padding: 2vw;
  }

  #contatti{
    padding: 5vw;
    margin-bottom: 0;
  }

  button {
    border: 1px solid #020202;
    border: none;
    transition: background-color 0.5s, color 0.5s;
    border: 1px solid #d2d5ca;
  } 

  button:hover {
    background-color: #020202;
    border: 1px solid #E7E8E2;
    color: #E7E8E2;
  }

  button:active {
   opacity: 0.4;
  }

  a {
    margin: 0;
    color: #E7E8E2;
  }
}

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

  .grid-container{
    grid-template-columns: 1fr;
    grid-template-rows: repeat(1, 1fr);
    justify-items: center;
  }

  .cta-wrapper {
    height: auto;
    min-height: 110vh;
    overflow-x: hidden;
  }

  input {
    color:  #E7E8E2;
    font-size: clamp(.875rem,.65625rem + .546875vw, 1.3125rem);
    line-height: calc((.65625rem + .546875vw) * 1.457142857142857);
    width: 135px;
    height: 50px;
    padding-left: 10px;
    margin-bottom: 10px;
    outline: none;
    border: none;
    background: none;
    border-bottom: 2px solid #E7E8E2;
    font-family: 'Ronzino';
    margin-top: 30px;
    gap: 20%;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E7E8E2;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    padding: 5%;
  }

  .logoBattistelli {
    width: 25vw;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nome-completo {
    display: flex;
    gap: 35px;
  }

  .foto-sezione {
    display: flex;
    margin-left: 30vw;
    padding-top: 0;
    width: 56vw;
    position: block;
    display: inline-block;
    height: 15vh;   
  }

  .invia {
    position: relative;
    z-index: 10;
    border: none;
    transition: background-color 0.5s, color 0.5s;
    border: 1px solid #d2d5ca;
    text-decoration: none;
    background-color: #020202;
    -webkit-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    background-color: #E7E8E2;
    color: #020202;
  }

  section .menu{
    padding-top: 0px;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .intro {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0;
    padding-top: 0;
  }

  footer {
    position: sticky;
    bottom: 0;
    padding-top: 150px;
    overflow-x: hidden;
    padding-left: 24px;
    height: 110vh;
  }

  .info {
    color:  #E7E8E2;
    font-size: clamp(0.875rem, 0.5909rem + 0.7576vw, 1.5rem);
    padding-top: 50px;
    font-family: 'Ronzino', sans-serif;
  }

  .link_menu {
    color:#020202;
    width: 100px;
    font-size: clamp(1.063rem, 0.304rem + 2.024vw, 2.125rem);
  }

  .sezione1 {
    padding-top: 10%;
  }

  button {
    border: 1px solid #020202;
    border: none;
    transition: background-color 0.5s, color 0.5s;
    border: 1px solid #d2d5ca;
  } 

  button:hover {
    background-color: #020202;
    border: 1px solid #E7E8E2;
    color: #E7E8E2;
  }

  button:active {
   opacity: 0.4;
  }

  .text {
    margin-top: 45px;
    margin-bottom: 15%;
  }

  textarea {
    width: 100vw;       
    max-width: 125%;  
    min-width: 200px; 
    resize: vertical;
  }

  .prev { 
    left: 50px; 
    bottom: 5%;
    font-size: 2.5rem;
  }

  .next { 
    right: 50px;
    bottom: 5%; 
    font-size: 2.5rem;
  }

  .close {
    font-size: 2.5rem;
    width: 200px;
    height: 200px;
    left: 82%;
  }

  .lightbox {
    top: 0; left: 0;
    width: 101%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow-x: visible;
    z-index: 1000;
  }

  .lightbox-content {
    max-width: 90%;
    max-height: 80%;
  }

  a {
    margin: 0;
    color: #E7E8E2;
  }
}

.image_overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  font-family: 'Ronzino';
  display: flex;
  align-content: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.image_overlay:hover {
  opacity: 0.9;
  backdrop-filter: blur(1px);
}

.image_overlay > * {
  transform: translateY(20px);
  transition: transform 0.25s;
}

.image_overlay:hover > * {
  transform: translateY(0px);
}

