@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');


@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap");

nav {
	color: #303FC8;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  padding: 10px 15px;
  background-color: transparent;   /* Colore iniziale trasparente */
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background-color: #60544d;
    background: linear-gradient(90deg, rgba(96, 84, 77, 1) 11%, rgba(255, 255, 255, 0) 71%);
}
.header__content{max-width: 1200px;width: 100%;margin: 0 auto; display: flex;justify-content: space-between;}

.header__logo,
.header__quick{display: flex; align-items: center;color:var(--menu-color)}

/* Larghezza iniziale del logo */
    .logo {
      width: 150px;
      transition: width 0.3s ease;
    }

    /* Larghezza dopo lo scroll */
    .scrolled .logo {
      width: 100px;
    }
.header__menu{padding: 0;margin: 0;}
.header__menu li{display: inline-block;}
.header__menu li a {
  color: white;
  display: block;
  padding: 16px;
  font-size: 22px;
  position: relative; /* necessario per poter posizionare lo pseudoelemento */
  text-decoration: none; /* per rimuovere l’eventuale underline di default */
  font-family: Instrument Sans;
}

.header__menu li a:hover {
  color: #fce800;
}

/* Pseudoelemento per la “linea” animata */
.header__menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px; /* spessore della linea */
  background-color: var(--menu-color);
  transition: width 0.3s ease; /* durata e tipo di transizione */
}

/* Effetto in hover: la larghezza passa al 100% */
.header__menu li a:hover::after {
  width: 100%;
}

.button-small {
background: #fce800;
    color: black;
    padding: 5px 15px;
    border-radius: 50px;
    text-decoration: none;
}


@media (max-width: 768px) {
  .header__menu{   
    position: absolute; top:75px; right:0; background-color: #60544d; width: 100%; height: 100vh;  
    overflow: hidden;transition: all 0.5s cubic-bezier(.215, .61, .355, 1); transform: translateX(101%);
  }

  .header__menu li{width: 100%;}
  .menu-open .header__menu{transform: translateX(0%);}

  .icon-hamburger{height: 50px;width: 40px;margin-left: 20px;padding-top: 5px;}
  .icon-hamburger span{height: 2px; width: 30px;background: white;position: relative;display: block;margin-top: 11px;transition: all 0.2s cubic-bezier(.215, .61, .355, 1);}
  
  .menu-open .icon-hamburger span:nth-child(1){transform: rotate(45deg) translateY(9px);}
  .menu-open .icon-hamburger span:nth-child(2){transform: rotate(-45deg) translateY(-9px);}

  .header__quick{display: flex; justify-content: flex-end; width: 50%;}

}

:root {
  --base-100: #c8bdb1;
  --base-200: #c8bdb1;
  --base-300: #60544d;
}

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

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

h1,
h2 {
  text-transform: uppercase;
  font-family: "Instrument Serif", sans-serif;
  font-weight: 500;
  line-height: 0.9;
}

h1 {
  font-size: clamp(4rem, 7.5vw, 10rem);
}

h2 {
  font-size: clamp(2.5rem, 4.5vw, 5rem);
}

p {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
}

.hero {
  position: relative;
  width: 100%;
  height: 175svh;
  color: var(--base-200);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-header {
  position: absolute;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.hero-header h2 {
  font-size: clamp(1rem, 2vw, 2rem);
  width: 75%;
}

.hero-canvas {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 125svh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h2 {
  width: 75%;
  color: var(--base-300);
}

.about {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--base-300);
  color: var(--base-100);
}

.about p {
  width: 40%;
  text-align: center;
}

@media (max-width: 1000px) {
  .hero-content h2,
  .about p {
    width: calc(100% - 4rem);
  }
}
