:root {
  --primary: #003366;   /* blu scuro */
  --secondary: #f37021; /* arancio */
  --bg-light: #f5f7fa;
  --text: #222222;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout base */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f9fafb; /* leggero grigio per far risaltare il logo */
  border-bottom: 2px solid rgba(0, 51, 102, 0.08);
}

.navbar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-left img {
  width: 90px; /* logo più grande */
}

.nav-left span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 6px 14px rgba(243, 112, 33, 0.35);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0 1.8rem;
}

.hero-text h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: #555;
}

/* Sezioni */

.section {
  padding: 1.6rem 0 0; /* leggermente meno spazio rispetto a prima */
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.section p {
  margin-bottom: 0.75rem;
}

.two-cols {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 2rem;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullets li {
  margin-bottom: 0.4rem;
  padding-left: 1.1rem;
  position: relative;
}

.bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* Cards azioni + box hero */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-light);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.cta-block {
  background: var(--bg-light);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

/* Form */

form {
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid #ccd2de;
  font-family: inherit;
  font-size: 0.95rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */

footer {
  background: #111827;
  color: #e5e7eb;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-inner a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  nav ul {
    display: none; /* versione semplice mobile: solo logo + CTA */
  }

  .navbar {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }
}
