html {
  scroll-behavior: smooth;
}

:root {
  --brand: #29349E;
  --accent: #5F47A1;
  --highlight: #9B7FD2;
  --white: #FFFFFF;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Arial', sans-serif;
  color: var(--white);
}

section {
  scroll-margin-top: 75px;
}

/* Header */
header {
  background-color: var(--brand);
  height: 75px;
  padding: 0 50px;
  position: sticky;
  top: 0;
  z-index: 1;
}

header .container {
  display: flex;
  justify-content: space-between; /* logo a sinistra, nav a destra */
  align-items: center;            /* centrati verticalmente */
  height: 100%;                   /* allunga flex container all’altezza dell’header */
  max-width: 1200px;
  margin: 0 auto;
}

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: var(--accent);
}

#hero {
  height: 100vh; /* sempre tutta l’altezza del viewport */
  min-height: 100vh; /* garantisce che non scenda sotto l’altezza dello schermo */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

#hero h1 {
  font-size: clamp(2.5rem, 5vw, 6rem); /* scala il font su monitor grandi */
}

#hero p {
  font-size: clamp(1rem, 2vw, 2rem);
}



.cta-button {
  background-color: var(--highlight);
  color: var(--white);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.2s;;
}

.cta-button:hover {
  background-color: var(--accent);
  transform: scale(1.05);
}

#about {
  height: 100vh; /* occupa tutto lo schermo */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background-color: #F5F7FA;
  color: #2C3E50;
}

.about-container {
  max-width: 900px;
}

#about h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

#about p {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}


#about h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

#about ul {
  list-style-type: disc;
  padding-left: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}

#about ul li {
  font-size: 1.1rem;
  margin-bottom: 10px;
}