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

body {
    font-family: Stem, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ===== NAVBAR ===== */
header {
  background: white;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: white;
}

.nav-container {
  display: flex;
  justify-content: space-between; /* logo a sinistra, menu a destra */
  align-items: center;
}

/* Menu desktop */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px; /* spazio tra voci */
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 10px; /* piccolo padding per hover */
  border-radius: 5px; /* serve per l'effetto hover */
  transition: all 0.2s ease-in-out;
}

.navbar ul li a:hover {
  color: white;
  background-color: #FF595A;
  text-decoration: none;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media(max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* Main content container */
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;  
  min-height: calc(100vh - 80px); /* Subtract navbar height */
  padding: 20px;
}

.wrapper {
  max-width: 700px;
  width: 100%;
  background: #fff;        /* white card */
  padding: 40px;           /* inner spacing */
  border-radius: 12px;     /* rounded corners */
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* soft shadow */
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

p {
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 17px;
  text-align: center;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: left;
}

form {
  display: flex;
  flex-direction: column;
  gap: 25px;  /* increased spacing */
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;  /* bigger gap between inputs */
}

input, textarea, select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

.checkboxes {
  display: grid;
  grid-template-columns: auto 300px; /* testo variabile + checkbox fissi */
  row-gap: 20px;
  column-gap: 10px;
  font-size: 15px;
  align-items: center;
}

.checkboxes label {
  display: flex;
  align-items: center;
}

.checkboxes label span {
  margin-right: 100px; /* distanza dal checkbox */
}

.file-box {
  border: 2px dashed #ccc;
  padding: 40px 25px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
}

.file-box input[type="file"] {
  display: none;
}

.file-box p {
  font-size: 15px;
  color: #444;
}

button {
  background: #000;
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: fit-content;
  align-self: center; /* centers button */
}

button:hover {
  background: #333;
}
