/* Foglio di stile per SCAN - Software di gestione tariffe */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #F5F7FA;
  color: #204056;
}

header {
  background-color: #204056;
  color: white;
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  position: relative;
}

.logo {
  position: absolute;
  left: 3.5rem;
  top: 1.2rem;
  width: 100px;
  height: 100px;
}

header h1 {
  font-size: 2rem;
  margin-top: 0.5rem;
}

header p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.cta-buttons {
  margin-top: 1rem;
}

.cta-buttons a {
  display: inline-block;
  margin: 0.5rem 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #B8E986;
  color: #204056;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.menu-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  display: none;
  cursor: pointer;
  z-index: 1000;
}

nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background-color: #204056;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2rem;
  transition: left 0.3s ease;
  z-index: 999;
}

nav.active {
  left: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.features,
.functions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

footer {
  background-color: #204056;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #B8E986;
  color: #204056;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }

  header p {
    font-size: 1rem;
  }

  .cta-buttons a {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .menu-toggle {
    display: block;
  }
}
