/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Font per titoli e pulsanti */
h1,
h2,
h3,
.btn {
  font-family: "Roboto", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* NAVIGAZIONE */
.navbar {
  background: white;
  color: black;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: black;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: black;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 0.7;
}

/* PULSANTI */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* SEZIONI CONTENUTO */
section {
  padding: 4rem 0;
  border-bottom: 1px solid #eee;
}

section p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
}

/* Titoli senza rientro */
section h2,
section h3 {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  margin-bottom: 1rem;
}

/* Solo le liste hanno rientro */
section ul {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  margin-bottom: 1.5rem;
}

/* NUOVA SEZIONE INTRO */
.intro-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4rem 0;
}

.intro-img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

.intro-text {
  max-width: 500px;
}

.intro-text .btn {
  margin-top: 1rem;
  display: inline-block;
}

/* FOOTER */
footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-links img {
  width: 24px;
  height: auto;
  vertical-align: middle;
  transition: opacity 0.3s;
}

.social-links img:hover {
  opacity: 0.7;
}

/* RESPONSIVE (Mobile) */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  footer .container {
    flex-direction: column;
  }

  .intro-flex {
    flex-direction: column;
    text-align: center;
  }

  .intro-text .btn {
    margin-top: 1.5rem;
  }
}
