/* ═══════════════════════════════════════════════════════
   ITER — Design System Globale
   Brand: ITER · Chiedi a Clara · Clarus Desk
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ITER Corporate */
  --iter-navy:    #0D1F3C;
  --iter-slate:   #2C3E5A;
  --iter-accent:  #1A6EAF;

  /* Chiedi a Clara */
  --clara-teal:   #0E8B7A;
  --clara-mid:    #2DAA97;
  --clara-light:  #E1F5EE;
  --clara-warm:   #F4F1EC;

  /* Clarus Desk */
  --clarus-blue:  #1557A0;
  --clarus-mid:   #1F6FCA;
  --clarus-light: #E8F2FB;
  --clarus-elec:  #0078D7;

  /* Partnership */
  --part-purple:  #4F3A8A;
  --part-light:   #F5F3FF;

  /* Neutral */
  --white:        #FFFFFF;
  --gray-50:      #F8FAFB;
  --gray-100:     #F1EFE8;
  --gray-200:     #E2E8F0;
  --gray-400:     #94A3B8;
  --gray-600:     #64748B;
  --gray-800:     #1E293B;
  --text-dark:    #1A1A2E;
  --text-muted:   #6B7A99;
  --border:       #E2E8F0;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 56px 2rem;
  --max-w: 820px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ─── Utility ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.divider { height: 1px; background: var(--border); margin: 0 2rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; border: none;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--clara-teal); color: white;
}
.btn-primary:hover { background: var(--clara-mid); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-clarus {
  background: var(--clarus-blue); color: white;
}
.btn-clarus:hover { background: var(--clarus-mid); transform: translateY(-1px); }

.btn-outline-purple {
  background: transparent; color: var(--part-purple);
  border: 1px solid var(--part-purple);
}
.btn-outline-purple:hover { background: var(--part-light); }

/* ─── Tags / Badges ─── */
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  font-weight: 500; display: inline-block;
}
.tag-teal   { background: rgba(14,139,122,0.1); color: #0A6B5C; }
.tag-blue   { background: rgba(21,87,160,0.1);  color: #134480; }
.tag-purple { background: rgba(79,58,138,0.1);  color: #3A2872; }
.tag-gray   { background: var(--gray-100);       color: var(--gray-600); }

/* ─── Navigation ─── */
.site-nav {
  background: var(--iter-navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo {
  color: white;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
}
.nav-logo span { color: #5FD9CB; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  color: rgba(255,255,255,0.65);
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 400;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover       { color: white; background: rgba(255,255,255,0.09); }
.nav-link.active      { color: white; background: rgba(255,255,255,0.14); }
.nav-link.nav-clara   { color: #5FD9CB; }
.nav-link.nav-clara:hover  { background: rgba(95,217,203,0.15); }
.nav-link.nav-clarus  { color: #7AB8F5; }
.nav-link.nav-clarus:hover { background: rgba(122,184,245,0.15); }

.nav-cta {
  background: var(--clara-teal); color: white;
  padding: 7px 18px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500;
  border: none; transition: all 0.2s;
}
.nav-cta:hover { background: var(--clara-mid); }

/* ─── Section Generic ─── */
.section {
  padding: var(--section-pad);
}
.section h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 36px;
  max-width: 560px;
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: all 0.22s ease;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.card-icon-teal   { background: rgba(14,139,122,0.1); }
.card-icon-blue   { background: rgba(21,87,160,0.1); }
.card-icon-purple { background: rgba(79,58,138,0.1); }
.card h3 { font-size: 17px; margin-bottom: 7px; }
.card p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ─── Footer ─── */
.site-footer {
  background: var(--iter-navy);
  color: rgba(255,255,255,0.55);
  padding: 44px 2rem 28px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: var(--font-serif);
  color: white;
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 12.5px; line-height: 1.75; }
.footer-col h5 {
  font-size: 10.5px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 14px; font-family: var(--font-sans);
}
.footer-col a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.5); margin-bottom: 7px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-divider {
  height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 22px;
}
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p   { font-size: 11.5px; }
.footer-legal-tags { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ─── Responsive ─── */
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav .nav-links { gap: 2px; }
  .nav-link { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
