/* CNR NANOTEC — pagina-indice dei siti ospitati da portiko.
   Stile sobrio, mobile-first, no JS, no font esterni. */

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: #1f2933;
  background: #f7f8fa;
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; }

a {
  color: #1c4d8f;
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ──────────────────────────────────────────────── */

.page-header {
  background: #ffffff;
  border-bottom: 1px solid #e3e7ec;
  padding: 2.5rem 0 2rem;
}

.page-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-header .tagline {
  margin: 0;
  color: #52606d;
  font-size: 1rem;
}

/* ── Sites grid ──────────────────────────────────────────── */

.sites {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .sites {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.site {
  background: #ffffff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.site:hover, .site:focus-within {
  border-color: #1c4d8f;
}

.site .logo {
  max-width: 80px;
  max-height: 40px;
  width: auto;
  height: auto;
  margin-bottom: 0.25rem;
}

.site h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.site h2 a {
  color: #1f2933;
}

.site p {
  margin: 0;
  color: #3e4c59;
  font-size: 0.95rem;
}

.site .meta {
  margin-top: auto;
  padding-top: 0.5rem;
  color: #7b8794;
  font-size: 0.82rem;
}

.site .meta a {
  color: #52606d;
}

.site .meta .lang {
  margin-left: 0.5rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #52606d;
}

/* ── Footer ──────────────────────────────────────────────── */

.page-footer {
  background: #ffffff;
  border-top: 1px solid #e3e7ec;
  padding: 1.75rem 0;
  color: #52606d;
  font-size: 0.9rem;
  text-align: center;
}

.page-footer p { margin: 0.25rem 0; }
.page-footer .meta {
  color: #7b8794;
  font-size: 0.8rem;
}
