@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

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

body {
  font-family: "DM Sans", sans-serif;
}

h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -1%;
  line-height: 1.1;
}

a,
p {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -1%;
  display: block;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.nav-items {
  display: flex;
  gap: 4rem;
}

.preloader-overlay {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100svh;
  background-color: #0f0f0f;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 10;
}

.preloader-overlay .preloader {
  position: absolute;
  top: 0;
  width: 100%;
  height: 0.5rem;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.intro-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  transform-origin: center center;
  will-change: transform;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  padding: 15svh 2rem 15svh 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.hero-header {
  width: 60%;
}

.line {
  position: relative;
  will-change: transform;
}

@media (max-width: 1000px) {
  .nav-items {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .hero-content {
    padding: 15svh 2rem 2rem 2rem;
  }

  .hero-header {
    width: 100%;
  }
}

/* Telefono: titolo proporzionato e spazio per il pulsante in basso */
@media (max-width: 600px) {
  h1 {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }

  nav {
    padding: 1.25rem;
  }

  .hero-content {
    padding: 14svh 1.25rem 5.5rem;
  }
}
