/* ========== HEADER FIXE, A LA PART ESQUERRA, SENSE FONS ========== */
.site-header {
  position: fixed;
  top: 40px;        /* distancia des de dalt – ajusta si ho vols més avall o més amunt */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 0;
  border: none;
}

.nav {
  padding-left: 8vw;   /* marge generós a l’esquerra */
  padding-right: 8vw;
}

.nav-list {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: #FF6600;      /* taronja */
}

/* Subratllat animat opcional */
.nav-list a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #FF6600;
  transition: width 0.2s;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Compensació perquè l’scroll no tapi el contingut */
.snap-section {
  scroll-margin-top: 60px; /* ajusta segons l’alçada real del header */
}
/* ========== RECUPERAR TÍTOL CENTRAT I GRAN ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;       /* Ocupa tota l’altura de la pantalla */
  padding: 2rem;
  padding-top: 100px;
  margin-top: 0;           /* Evita que el header el desplaci */
}

.hero-content h1 {
  font-size: clamp 9rem;         /* Mida grossa (ajusta si vols: 3rem, 4rem, 5rem) */
  font-weight: 900;
  line-weigth: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;          /* o el color que tenies abans */
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Opcional: si el teu botó CTA també ha canviat */
.btn {
  display: inline-block;
  background-color: #FF6600;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.btn:hover {
  background-color: #e05a00;
}
/* FORÇA TEMPORALMENT */
.hero-content h1 {
  font-size: 8rem !important;
  font-weight: 900 !important;
}
/* ========== RESPONSIVE PER A MÒBIL ========== */
@media (max-width: 768px) {
  /* Header més amunt i espaiat reduït */
  .site-header {
    top: 20px;  /* en mòbil, gairebé a dalt */
  }

  .nav {
    padding-left: 5vw;  /* menys marge lateral */
    padding-right: 5vw;
  }

  .nav-list {
    gap: 1rem;          /* separat entre enllaços */
    flex-wrap: wrap;    /* si no caben, baixen a la línia següent */
  }

  .nav-list a {
    font-size: 0.85rem; /* lletra una mica més petita */
  }

  /* Hero: més compacte */
  .hero {
    padding-top: 80px;   /* compensa que el header és més amunt */
    min-height: 90vh;    /* una mica menys d’alt */
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 12vw, 4rem) !important;  /* màxim 4rem en mòbil */
  }

  .hero-content p {
    font-size: 1.2rem;
    max-width: 95%;
  }

  .btn {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}

/* ========== RESPONSIVE PER A MÒBIL ========== */
@media (max-width: 768px) {
  /* Header una mica més amunt */
  .site-header {
    top: 20px;
  }

  .nav {
    padding-left: 4vw;
    padding-right: 0;          /* per permetre scroll sense marge dret extra */
  }

  /* Menú horitzontal amb scroll lateral */
  .nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;         /* evita que baixin */
    overflow-x: auto;          /* scroll horitzontal */
    gap: 1.8rem;
    padding-right: 8vw;        /* espai al final per no quedar tallat */
    padding-bottom: 0.5rem;    /* petit marge per no tocar el scroll */
    -webkit-overflow-scrolling: touch; /* scroll suau a iOS */
  }

  /* Opcional: amagar la barra de scroll en alguns navegadors (només estètic) */
  .nav-list::-webkit-scrollbar {
    display: none;
  }
  .nav-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-list a {
    font-size: 0.9rem;
    white-space: nowrap;       /* evita que el text es trenqui */
  }

  /* Hero: títol més gran que abans però sense exagerar */
  .hero {
    padding-top: 80px;
    min-height: 90vh;
  }

  .hero-content h1 {
    font-size: clamp(3.2rem, 14vw, 5.5rem) !important;
  }

  .hero-content p {
    font-size: 1.3rem;
    max-width: 90%;
  }

  .btn {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}

/* Per pantalles molt petites (menys de 500px) mantenim horitzontal però reduïm una mica el text */
@media (max-width: 500px) {
  .nav-list {
    gap: 1.2rem;
  }
  .nav-list a {
    font-size: 0.8rem;
  }
  .hero-content h1 {
    font-size: clamp(2.8rem, 12vw, 4.5rem) !important;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
}
