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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================= HEADER E NAVBAR ================= */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 2.5rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #1e293b;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.btn-contatti {
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 1.6rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-contatti:hover {
  background-color: #1d4ed8;
}

.btn-portale {
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 0.2s ease;
}

.btn-portale:hover {
  background-color: #1d4ed8;
}

/* ================= LAYOUT GENERALE ================= */
.page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: flex-start;
}

/* ================= SIDEBAR SINISTRA ================= */
.sidebar-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-item {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-size: 0.92rem;
  color: #475569;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar-item:hover {
  color: #1e293b;
  background-color: #f8fafc;
}

.sidebar-item.active {
  background-color: #eef4ff;
  color: #2563eb;
  font-weight: 600;
}

/* ================= AREA CONTENUTI DESTRA ================= */
.content-wrapper {
  max-width: 980px;
}

/* Pill Badge */
.evidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #2563eb;
}

.pill-text {
  font-size: 0.85rem;
  color: #334155;
  font-weight: 500;
}

/* Titolo Principale */
.main-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #000000;
  margin-bottom: 1.2rem;
}

.highlight-blue {
  color: #2563eb;
}

.main-subtitle {
  font-size: 1.25rem;
  color: #334155;
  line-height: 1.5;
  max-width: 820px;
  margin-bottom: 1.6rem;
}

/* Meta Data Strip */
.meta-strip {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: #64748b;
  padding-bottom: 1.5rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid #e2e8f0;
}

/* ================= BOX: LA MIA FILOSOFIA ================= */
.philosophy-box {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
}

.philosophy-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.philosophy-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.philosophy-text-col p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 1.2rem;
}

.philosophy-text-col p:last-child {
  margin-bottom: 0;
}

/* Card Citazione Verde Chiaro */
.quote-card-col {
  background-color: #f1f8f3; /* Verde chiarissimo dello screenshot */
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-card-col blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: #2e4a38;
  margin-bottom: 1.2rem;
}

.quote-author {
  display: block;
  text-align: right;
  font-size: 0.92rem;
  font-style: normal;
  color: #4a7559;
  font-weight: 500;
}

/* ================= GRIGLIA 2x2 CARD PRINCIPI ================= */
.features-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-item-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-flask {
  background-color: #eff6ff; /* Blu chiarissimo */
}

.icon-leaf {
  background-color: #f0fdf4; /* Verde chiarissimo */
}

.icon-people {
  background-color: #faf5ff; /* Viola chiarissimo */
}

.icon-scale {
  background-color: #fff7ed; /* Arancione chiarissimo */
}

.feature-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.feature-item-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sidebar-wrapper {
    position: static;
  }

  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .philosophy-box {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .features-2x2-grid {
    grid-template-columns: 1fr;
  }

  .meta-strip {
    flex-direction: column;
    gap: 0.4rem;
  }
}