/* ═══════════════════════════════════════════
   CatMap – Chi siamo (stili specifici)
   ═══════════════════════════════════════════ */

/* ═══ SCROLL ═══ */
.page-scroll {
  flex: 1;
  min-height: 0; /* bug noto di Safari: senza questo, un flex-item con overflow non si contrae e non scrolla mai */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  padding-bottom: calc(var(--nav-h) + 24px);
}
.page-scroll::-webkit-scrollbar { width: 4px; }
.page-scroll::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

/* ═══ HERO ═══ */
.hero {
  background: linear-gradient(160deg, var(--terra-pale) 0%, var(--cream-mid) 60%, var(--cream) 100%);
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '🐾';
  position: absolute;
  font-size: 200px;
  opacity: .05;
  top: -20px;
  right: -30px;
  line-height: 1;
  pointer-events: none;
}
.hero-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-logo-icon { width: 68px; height: 68px; background: var(--terra); border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 34px; box-shadow: var(--shadow-md); }
.hero-logo-text { font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--brown); line-height: 1; }
.hero-logo-text span { color: var(--terra); }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: 18px; font-weight: 300; color: var(--brown-mid); margin-bottom: 10px; }
.hero-version { display: inline-block; background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius-pill); padding: 4px 14px; font-size: 11px; font-weight: 800; color: var(--sand-dark); letter-spacing: .5px; text-transform: uppercase; }

/* ═══ SEZIONI ═══ */
.section { padding: 28px 20px 0; }
.section-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--brown); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-title-icon { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.prose { font-size: 14px; color: var(--brown-mid); font-weight: 500; line-height: 1.7; margin-bottom: 12px; }

/* ═══ MISSION CARD ═══ */
.mission-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--terra); margin-bottom: 6px; }
.mission-card p { font-size: 14px; color: var(--brown-mid); font-weight: 500; line-height: 1.7; }
.mission-card p + p { margin-top: 10px; }
.mission-card strong { color: var(--terra-dark); font-weight: 800; }

/* ═══ FEATURES GRID ═══ */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.feature-card { background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.feature-card:hover { transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 8px; }
.feature-title { font-size: 13px; font-weight: 800; color: var(--brown); margin-bottom: 4px; }
.feature-desc { font-size: 11px; color: var(--brown-mid); font-weight: 500; line-height: 1.4; }

/* ═══ TEAM ═══ */
.team-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.team-card { background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 14px; }
.team-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: white; flex-shrink: 0; }
.team-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--brown); }
.team-role { font-size: 12px; font-weight: 700; color: var(--terra); margin-top: 1px; }
.team-bio { font-size: 11px; color: var(--brown-mid); font-weight: 500; margin-top: 3px; line-height: 1.4; }
.team-social { display: flex; gap: 6px; margin-top: 6px; }
.team-social-btn { padding: 3px 10px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; background: var(--cream); color: var(--brown-mid); border: 1.5px solid var(--sand); transition: all .15s; cursor: pointer; }
.team-social-btn:hover { border-color: var(--terra); color: var(--terra); }

/* ═══ TECH LIST ═══ */
.tech-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.tech-item { background: var(--white); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px; }
.tech-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tech-name { font-size: 14px; font-weight: 700; color: var(--brown); }
.tech-desc { font-size: 11px; color: var(--brown-mid); font-weight: 500; margin-top: 1px; }
.tech-badge { margin-left: auto; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 800; background: var(--sage-light); color: #2D5A2D; flex-shrink: 0; }
.tech-badge.free { background: var(--sage-light); color: #2D5A2D; }
.tech-badge.oss  { background: #D0E8F5;          color: #1A4A6B; }

/* ═══ STATS PROGETTO ═══ */
.project-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.pstat { background: var(--white); border-radius: var(--radius-md); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.pstat-val { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--terra); }
.pstat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--sand-dark); margin-top: 3px; line-height: 1.2; }

/* ═══ COLONIE ═══ */
.colony-callout { background: linear-gradient(135deg, var(--sage-light), #B8D4B4); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; }
.colony-callout-icon { font-size: 32px; flex-shrink: 0; }
.colony-callout-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #1A3D1A; margin-bottom: 4px; }
.colony-callout-text { font-size: 12px; color: #2D5A2D; font-weight: 500; line-height: 1.5; }
.colony-callout-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #1A3D1A; border-bottom: 1.5px solid #1A3D1A; text-decoration: none; }

/* ═══ CONTATTI ═══ */
.contact-row { display: flex; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.contact-btn { flex: 1; min-width: 130px; padding: 14px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--sand); background: var(--white); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--brown); box-shadow: var(--shadow-sm); transition: all .18s; cursor: pointer; }
.contact-btn:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-1px); }
.contact-btn-icon { font-size: 20px; }
.contact-btn-sub { font-size: 10px; color: var(--sand-dark); font-weight: 500; margin-top: 1px; }

/* ═══ FOOTER PAGINA ═══ */
.page-footer { margin: 28px 20px 0; padding: 20px 0; border-top: 1px solid var(--cream-mid); text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--sand-dark); margin-bottom: 6px; }
.footer-logo span { color: var(--terra); }
.footer-copy { font-size: 11px; color: var(--sand-dark); font-weight: 500; line-height: 1.6; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 10px; }
.footer-link { font-size: 11px; font-weight: 700; color: var(--sand-dark); text-decoration: none; }
.footer-link:hover { color: var(--terra); }

/* ═══ DESKTOP ═══ */
@media (min-width: 768px) {
  .page-scroll { max-width: 700px; margin: 0 auto; padding-bottom: 40px; }
}
