/* Palette Aziendale Professionale */
:root {
  --primary: #004a99;       /* Blu Aziendale */
  --secondary: #f0f4f8;     /* Grigio chiarissimo per sfondi */
  --accent: #e63946;        /* Rosso per call-to-action (opzionale) */
  --text-dark: #1a202c;     /* Testo principale */
  --text-light: #4a5568;    /* Testo secondario */
  --white: #ffffff;
  --max-width: 1000px;      /* Leggermente più largo per il layout aziendale */
}

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

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* LAYOUT STRUTTURALE */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER & NAVIGAZIONE - La parte più importante */
.site-header {
  background-color: var(--white);
  border-bottom: 3px solid var(--primary); /* Linea distintiva aziendale */
  padding: 1.5rem 0;
  position: sticky; /* Il menu resta in alto mentre scorri */
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover, 
.nav-menu a.active {
  color: var(--primary);
}

/* HERO SECTION (Homepage) */
.hero {
  background-color: var(--secondary);
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* NEWS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.news-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.news-card h3 a {
  color: var(--primary);
  text-decoration: none;
}

/* FOOTER */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0;
  margin-top: 5rem;
}

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

/* Utility per il contenuto Markdown */
.content h2 { margin: 2rem 0 1rem; color: var(--primary); }
.content p { margin-bottom: 1.2rem; color: var(--text-light); }