/* ═══════════════════════════════════════════════════════════════
   POSTE PRIVATE MAZZETTI – TORINO
   styles.css  |  Design professionale Blu & Giallo
   ═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --blue:        #1A3A6B;   /* Blu principale */
  --blue-light:  #2255A4;   /* Blu secondario / hover */
  --yellow:      #FFD100;   /* Giallo principale */
  --yellow-deep: #E6A800;   /* Giallo hover / accento */
  --white:       #FFFFFF;
  --off-white:   #F7F8FC;
  --gray-100:    #F0F2F7;
  --gray-200:    #DDE1EC;
  --gray-500:    #7A829A;
  --gray-700:    #3D4459;
  --text:        #1E2540;
  --wa-green:    #25D366;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(26,58,107,.10);
  --shadow-md:   0 8px 40px rgba(26,58,107,.16);
  --transition:  0.25s ease;

  --container:   1160px;
  --header-h:    72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; padding-top: var(--header-h); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  color: var(--blue);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { line-height: 1.75; color: var(--gray-700); }

em { color: var(--blue-light); font-style: normal; }

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

.section-block {
  padding: 4rem 0;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--blue);
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.75rem;
  background: var(--yellow);
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-main {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--white);
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* NAV */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.88);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.12);
  color: var(--yellow);
}

.nav-ext {
  background: var(--yellow);
  color: var(--blue) !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
}
.nav-ext:hover { background: var(--yellow-deep); }

/* Dropdown – controllato solo via JS (.open class) */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 0.5rem;
  flex-direction: column;
  z-index: 999;
}

/* Aperto solo quando JS aggiunge .open */
.has-dropdown.open .dropdown { display: flex; }

.dropdown li { width: 100%; }

.dropdown .nav-link {
  color: var(--text);
  font-size: 0.85rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
}

.dropdown .nav-link:hover {
  background: var(--gray-100);
  color: var(--blue);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ════════════════════════════════════════════════════════════
   PAGE SECTIONS (SPA)
   ════════════════════════════════════════════════════════════ */
.page-section {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-bg-strip {
  position: absolute;
  right: -60px; top: -60px;
  width: 480px; height: 480px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  padding: 6rem 1.5rem 8rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,209,0,.18);
  border: 1px solid rgba(255,209,0,.4);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-slogan {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  margin-top: 0.25rem;
  position: relative;
  display: inline-block;
}

.hero-slogan::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 1.08rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Hero Visual Card Stack */
.hero-visual { flex-shrink: 0; }

.hero-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hc {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform var(--transition), background var(--transition);
  white-space: nowrap;
}

.hc:hover {
  background: rgba(255,209,0,.15);
  border-color: rgba(255,209,0,.4);
  transform: translateY(-3px);
}

.hc1 { animation: float 4s ease-in-out infinite; }
.hc2 { animation: float 4s ease-in-out 1s infinite; }
.hc3 { animation: float 4s ease-in-out 2s infinite; }
.hc4 { animation: float 4s ease-in-out 3s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ════════════════════════════════════════════════════════════
   SERVICES GRID
   ════════════════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.services-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.service-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: var(--shadow-md);
}

.service-card--info {
  cursor: default;
}

.service-card--info:hover {
  transform: none;
  cursor: default;
}

.sc-icon {
  font-size: 2.2rem;
  display: block;
}

.service-card h3 {
  font-size: 1rem;
  color: var(--blue);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   INFO STRIP
   ════════════════════════════════════════════════════════════ */
.info-strip {
  background: var(--blue);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.info-strip-inner {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
}

.info-icon { font-size: 1.75rem; }

.info-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--yellow);
  margin-bottom: 2px;
}

.info-item span {
  font-size: 0.95rem;
}

.info-item a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3);
}

.info-item a:hover { text-decoration-color: var(--yellow); color: var(--yellow); }

/* ════════════════════════════════════════════════════════════
   PAGE HERO MINI (inner pages)
   ════════════════════════════════════════════════════════════ */
.page-hero-mini {
  background: var(--blue);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-mini::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 300px; height: 300px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.07;
}

.page-hero-mini::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero-mini h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.page-hero-mini p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 560px;
}

/* Breadcrumb */
.breadcrumb {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--yellow);
  opacity: 0.8;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.breadlink {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
}

.breadlink:hover { color: var(--yellow); }

/* ════════════════════════════════════════════════════════════
   CONTENT LAYOUT (2 cols)
   ════════════════════════════════════════════════════════════ */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.content-main h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.content-main p {
  margin-bottom: 1.5rem;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.fi-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item strong { color: var(--blue); display: block; margin-bottom: 0.25rem; }
.feature-item p { margin: 0; font-size: 0.9rem; }

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(26,58,107,.06), rgba(255,209,0,.1));
  border-left: 4px solid var(--yellow);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-700);
  margin-top: 1.5rem;
}

/* Side Card */
.side-card {
  background: var(--blue);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.side-card h3 { color: var(--yellow); margin-bottom: 0.25rem; }
.side-card p { color: rgba(255,255,255,.8); font-size: 0.9rem; }

/* Tag Grid */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.tag {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--blue);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
}

.tag:hover {
  background: rgba(255,209,0,.15);
  border-color: var(--yellow);
}

/* Simple List */
.simple-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.simple-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.simple-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yellow-deep);
  font-weight: 700;
}

/* Dropdown esterno (Poste Private Naz.) – bordo giallo per distinguerlo */
.dropdown--ext {
  border-top: 3px solid var(--yellow);
  min-width: 240px;
}

.dropdown--ext .nav-link {
  font-size: 0.83rem;
  gap: 0.4rem;
  display: flex;
  align-items: center;
}

/* Contacts grid – fino a 3 colonne su desktop */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}

.contact-icon { font-size: 2.4rem; }

.contact-card h3 { color: var(--blue); }

.contact-card p { font-size: 0.9rem; }

.phone-big {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  transition: color var(--transition);
}

.phone-big:hover { color: var(--blue-light); }

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.piva-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
  padding: 1rem 0;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--yellow);
  color: var(--blue);
}
.btn-primary:hover {
  background: var(--yellow-deep);
  box-shadow: 0 4px 16px rgba(255,209,0,.4);
}

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
}
.btn-wa:hover {
  background: #1ebe57;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.35);
  color: var(--white);
  display: block;
  text-align: center;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--gray-700);
  color: var(--white);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand .logo-icon {
  background: var(--yellow);
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand strong {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: var(--white);
}

.footer-brand span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
}

.footer-links h4,
.footer-contacts h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-link {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color var(--transition);
}

.footer-link:hover { color: var(--yellow); }

.footer-contacts p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,.65);
  font-size: 0.88rem;
}

.footer-contacts a { color: rgba(255,255,255,.85); }
.footer-contacts a:hover { color: var(--yellow); }

.footer-ext-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: rgba(255,209,0,.4);
}

.footer-ext-link:hover { text-decoration-color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.footer-bottom span {
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom em {
  color: var(--yellow);
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Nav mobile */
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--blue);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .has-dropdown .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    margin-top: 0.25rem;
  }

  .has-dropdown.open .dropdown { display: flex; }

  .dropdown .nav-link { color: rgba(255,255,255,.75); }
  .dropdown .nav-link:hover { background: rgba(255,255,255,.08); color: var(--yellow); }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 5rem;
  }
  .hero-visual { display: none; }

  /* Content */
  .content-cols {
    grid-template-columns: 1fr;
  }
  .side-card { position: static; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; align-items: flex-start; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-strip-inner {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand { grid-column: auto; }
}

@media (max-width: 400px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PARTNER BADGE ────────────────────────────────────────── */
.partner-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  width: fit-content;
}

.partner-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  white-space: nowrap;
}

.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ── CONTACT INFO BOX ─────────────────────────────────────── */
.contact-info-box {
  background: linear-gradient(135deg, rgba(26,58,107,.05), rgba(255,209,0,.08));
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}

.cib-title {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.cib-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cib-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
}

.cib-key {
  font-weight: 700;
  color: var(--blue);
  min-width: 52px;
}

.cib-sep { color: var(--gray-500); }

.cib-list a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: rgba(34,85,164,.3);
  font-weight: 600;
  transition: color var(--transition);
}

.cib-list a:hover { color: var(--blue); text-decoration-color: var(--yellow); }

/* ── SPACING FIX ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 3px; }

/* ── SELECTION ──────────────────────────────────────────────── */
::selection { background: var(--yellow); color: var(--blue); }
