/* Layout base */
:root {
  --sidebar-width: 280px;
  --color-bg: #f9f9fb;
  --color-surface: #ffffff;
  --color-border: #dcdfe3;
  --color-accent: #1f6feb;
  --color-accent-hover: #1558bd;
  --color-text: #1a1f29;
  --color-text-light: #5a6270;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px -2px rgba(0,0,0,.04);
  --transition: .18s cubic-bezier(.4,0,.2,1);
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.about-page { overflow-x:hidden; }
/* Install modal */
.install-modal { position:fixed; inset:0; z-index:500; display:block; }
.install-modal[hidden] { display:none; }
.install-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(2px); }
.install-modal-dialog { position:relative; z-index:10; width:min(520px,90%); margin:8vh auto 0; background:#fff; border:1px solid var(--color-border); border-radius:10px; padding:1.2rem 1.25rem 1.35rem; box-shadow:0 8px 32px -4px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.12); transform:translateY(12px) scale(.985); opacity:0; transition:.16s cubic-bezier(.4,0,.2,1); }
.install-modal-dialog.open { transform:translateY(0) scale(1); opacity:1; }
.install-modal-close { position:absolute; top:.35rem; right:.45rem; background:transparent; border:0; font-size:1.3rem; line-height:1; cursor:pointer; color:#5a6270; padding:.25rem .4rem; border-radius:6px; }
.install-modal-close:hover { background:#f1f4f8; color:#1a1f29; }
.install-modal h2 { margin:.15rem 0 .2rem; font-size:1.1rem; line-height:1.2; letter-spacing:.4px; }
@media (max-width:560px){
  .install-modal-dialog { margin:10vh auto 0; padding:1.05rem 1rem 1.2rem; }
  .install-modal h2 { font-size:1rem; }
}
/* About specific */
.about-feature-grid { margin-top:3rem; width:100%; max-width:760px; display:grid; gap:.9rem; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.about-feature-card { background:#fff; border:1px solid var(--color-border); border-radius:6px; padding:.85rem .9rem; text-align:left; min-width:0; }
.about-feature-card h3 { margin:0 0 .4rem; font-size:.7rem; letter-spacing:.6px; font-weight:700; text-transform:uppercase; color:var(--color-text-light); }
.about-feature-card p { margin:0; font-size:.68rem; line-height:1.35; }

/* Header */
.app-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem; /* aumentato leggermente l'height */
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.menu-toggle { display:none; background:var(--color-accent); color:#fff; border:1px solid var(--color-accent); padding:.5rem .65rem; border-radius:var(--radius); font-size:1rem; cursor:pointer; }
.menu-toggle:focus-visible { outline:2px solid var(--color-accent); }
/* Icona libro nel menu mobile */
.menu-toggle .icon-book { display:block; }
.brand-img { padding-left:.4rem; display:flex; align-items:center; }
.brand-img img { display:block; height:48px; width:auto; }
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .5px;
}
/* Brand testuale Corpu§ Iuris */
.brand { font-family: inherit; font-weight: 600; font-size: 1.3rem; display:flex; align-items:center; gap:0; letter-spacing:.5px; padding-left:3rem; }
.brand-word, .brand-par { color: var(--color-accent); }
.brand-par { font-weight: 700; font-size: 1.05em; line-height:1; }
.badge-beta { margin-left:.5rem; font-size:.55rem; letter-spacing:.8px; font-weight:600; color:#7d8693; background:#eceff3; padding:.15rem .35rem .12rem; border-radius:4px; line-height:1; align-self:flex-start; position:relative; top:-4px; }
.code-selector { margin-left:auto; display:flex; align-items:center; gap:.75rem; }
.code-selector select, .search-box input, .search-box button, button.small {
  font: inherit;
}
.code-selector select, .search-box input {
  padding: .45rem .6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  min-width: 200px;
}
.code-selector label {
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--color-text-light);
  position: relative;
  top: 1px;
}
/* Select personalizzato */
/* Wrapper per enfatizzare la tendina */
.select-shell {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff; /* flat */
  transition: var(--transition);
  --arrow-color: %231f6feb;
  min-width: 200px;
}
.select-shell::after {
  content: '';
  position: absolute;
  top: 0; bottom:0; right:.55rem;
  width: 16px; pointer-events: none;
  background: center/14px 14px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f6feb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  opacity: .85;
  transition: var(--transition);
}
.select-shell:focus-within { border-color: var(--color-accent); outline:2px solid rgba(31,111,235,.45); outline-offset:2px; }
.select-shell:focus-within::after { transform: rotate(180deg); }
.select-shell:hover { border-color: var(--color-accent); }
.code-selector select {
  border: 0;
  background: transparent;
  padding: .5rem 2.1rem .5rem .65rem;
  font-weight: 500;
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.code-selector select:focus { outline: none; }
/* Visual display sostitutivo quando il select è nascosto */
.select-shell .select-display {
  padding: .5rem 2.1rem .5rem .65rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  flex: 1;
  white-space: nowrap;
}
/* Lista custom potenziale */
.select-shell[data-open="true"]::after { transform: rotate(180deg); }
.select-list { position:absolute; top:calc(100% + 4px); left:0; min-width:100%; background: var(--color-surface); border:1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); padding:.35rem 0; list-style:none; margin:0; z-index:120; animation: fadeSlide .18s ease; }
.select-list li { margin:0; }
.select-list button { all:unset; box-sizing:border-box; width:100%; cursor:pointer; padding:.5rem .75rem; display:flex; align-items:center; gap:.5rem; font-size:.875rem; color:var(--color-text); }
.select-list button:hover, .select-list button:focus { background:#eef5ff; }
.select-list button[aria-selected="true"] { background: var(--color-accent); color:#fff; }
@keyframes fadeSlide { from { opacity:0; transform:translateY(-4px);} to { opacity:1; transform:translateY(0);} }
.search-box { display: flex; align-items: stretch; gap: .4rem; }
.search-box button, button.small {
  cursor: pointer;
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
  padding: .45rem .8rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-weight: 500;
  transition: var(--transition);
}
/* Nascondi forzatamente il toggle menu su viewport desktop */
@media (min-width: 821px) {
  .search-box #btn-toggle-menu { display:none !important; }
}
.search-box button:hover, button.small:hover { background: var(--color-accent-hover); }
button.small { font-size: .75rem; line-height: 1; }
button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Layout principale */
.layout { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.code-selector-slot { display:none; }
.tree-toolbar { display: flex; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--color-border); background: #fff; justify-content: center; align-items: center; }
.tree-toolbar button.small { flex:0 0 auto; width:40px; height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; text-align:center; }
.tree-toolbar #btn-navigate { width:auto; flex:1; font-size:.65rem; letter-spacing:.7px; font-weight:600; text-transform:uppercase; padding:.55rem .6rem; }
/* Switch modalità (ALBERO / INDICI) */
.mode-switch { display:flex; align-items:stretch; background:#eceff3; border:1px solid #d1d6dc; border-radius:6px; overflow:hidden; flex:1; height:45px; }
.mode-switch .seg-btn { all:unset; cursor:pointer; padding:0; color:#596272; display:inline-flex; align-items:center; justify-content:center; flex:1 1 0; height:45px; transition:var(--transition); line-height:1; position:relative; }
.mode-switch .seg-btn .ico { display:inline-flex; width:30px; height:30px; align-items:center; justify-content:center; }
.mode-switch .seg-btn svg { width:30px; height:30px; display:block; }
.mode-switch .seg-btn.active .ico { filter:none; }
.mode-switch .seg-btn:not(.active):hover { background:#e2e6ea; color:#1a1f29; }
.mode-switch .seg-btn.active { background: var(--color-accent); color:#fff; box-shadow: inset 0 0 0 1px var(--color-accent); }
.mode-switch .seg-btn:focus-visible { outline:2px solid var(--color-accent); outline-offset:2px; }
.mode-switch .seg-btn + .seg-btn { border-left:1px solid #d1d6dc; }
/* Bottoni icona +/- in grigio chiaro */
#btn-expand-all, #btn-collapse-all {
  background:#eceff3 !important;
  border:1px solid #d1d6dc !important;
  color: var(--color-text-light) !important;
}
#btn-expand-all:hover, #btn-collapse-all:hover {
  background:#e2e6ea !important;
  border-color:#c4c9d0 !important;
  color: var(--color-text); 
}
.nav-mode { padding:.75rem .75rem 1.25rem; font-size:.78rem; line-height:1.3; overflow:auto; flex:1; min-height:0; }
.nav-mode.active { border-top:1px solid var(--color-border); }
.nav-mode .nav-level { margin-bottom:1rem; }
.nav-mode h3 { margin:.5rem 0 .35rem; font-size:.65rem; font-weight:600; letter-spacing:.6px; text-transform:uppercase; color:var(--color-text-light); }
.nav-mode ul { list-style:none; margin:.4rem 0 0; padding:0; display:flex; flex-direction:column; gap:.4rem; }
.nav-mode button { all:unset; box-sizing:border-box; padding:.6rem .7rem .65rem; background:#fff; border:1px solid var(--color-border); border-radius:6px; font-size:.72rem; cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; min-height:50px; text-align:left; line-height:1.15; position:relative; width:100%; }
.nav-mode button:hover { border-color: var(--color-accent); background:#eef5ff; }
.nav-mode button:focus-visible { outline:2px solid var(--color-accent); outline-offset:2px; }
.nav-mode button .primary { font-weight:600; color:var(--color-text); display:block; }
.nav-mode button .secondary { font-size:.58rem; font-weight:500; color:var(--color-text-light); margin-top:2px; line-height:1.05; display:block; }
.nav-mode button .secondary:empty { display:none; }
.nav-mode button.current-art { border-color: var(--color-accent); background:#e6f0ff; }
.nav-mode .crumb { display:inline-block; margin-bottom:.5rem; font-size:.6rem; font-weight:600; letter-spacing:.6px; text-transform:uppercase; color:var(--color-text-light); }
.nav-mode .crumb a { color: var(--color-accent); cursor:pointer; text-decoration:none; }
.nav-mode .crumb a:hover { text-decoration:underline; }
.tree { flex: 1; overflow: auto; padding: .5rem .75rem 1.5rem; font-size: .875rem; line-height: 1.3; }
.tree ul { list-style: none; margin: 0; padding-left: .75rem; border-left: 1px solid var(--color-border); }
.tree li { position: relative; margin: .15rem 0; }
.tree-item { display: flex; align-items: flex-start; gap: .3rem; cursor: pointer; padding: .25rem .4rem; border-radius: 4px; }
.tree-item:hover { background: #f0f4ff; }
.tree-item.active { background: var(--color-accent); color: #fff; }
.tree-item .toggle { width: 1.1rem; height: 1.1rem; border: 1px solid var(--color-border); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; background: #fff; color: var(--color-text-light); cursor: pointer; flex-shrink: 0; }
.tree-item .toggle:hover { background: #eef3ff; }
.tree-item.leaf .toggle { opacity: 0; pointer-events: none; }
.tree li.collapsed > ul { display: none; }

.viewer {
  flex: 1;
  min-width: 0;
  padding: 3rem clamp(1.5rem, 4vw, 4rem) 5rem; /* ulteriore spazio dai bordi */
  overflow-y: auto;
  background:#fff; /* rimosso gradiente che creava banda grigia sopra footer PWA */
  position: relative; /* per centrare placeholder */
}
.viewer article { max-width: 820px; }
.viewer article { margin: 0 auto; }
/* Ridotto leggermente il titolo articolo (prima 1.6rem) */
.viewer h1 { font-size: 1.4rem; margin: 0 0 .6rem; line-height: 1.18; text-align:center; }
.viewer .art-title { font-size: 1.18rem; font-weight: 500; margin: 0 0 1.25rem; text-align:center; color: var(--color-text-light); }
/* Titolo articolo in nero richiesto */
.viewer .art-title { color: #000; }
.viewer .art-separator { height:2px; background: var(--color-accent); width:240px; margin: 0 auto 1.75rem; border-radius:2px; }
.breadcrumb { font-size:.7rem; font-weight:600; letter-spacing:.6px; color: var(--color-text-light); margin:0 0 2.75rem; font-family: inherit; text-transform:uppercase; }
.breadcrumb-list { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.35rem; }
.breadcrumb-item { position:relative; display:flex; align-items:center; gap:.35rem; }
.breadcrumb-item:not(:last-child)::after { content:'>'; color: var(--color-accent); font-weight:600; }
.breadcrumb-spacer { height:.5rem; margin:0 0 1.75rem; }
.viewer .meta { font-size: .75rem; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; color: var(--color-text-light); margin-bottom: .75rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.viewer .updates { margin-top: 1.5rem; padding: .75rem 1rem 1rem; background: #f1f7ff; border: 1px solid #d3e5ff; border-radius: var(--radius); }
.viewer .updates summary { list-style: none; cursor: pointer; font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.5px; display:flex; align-items:center; gap:.4rem; }
.viewer .updates summary::-webkit-details-marker { display:none; }
.viewer .updates summary:before { content:'+'; font-weight:600; color: var(--color-accent); display:inline-block; width:1rem; text-align:center; }
.viewer .updates[open] summary:before { content:'−'; }
.viewer .updates .count { font-weight:600; color: var(--color-accent); font-size:.75rem; }
.viewer .updates-body { margin-top:.6rem; animation: fadeSlide .18s ease; }
.viewer p { margin: .5rem 0; line-height: 1.5; }
/* Footer articolo con separatore e pulsanti azione */
.article-footer { margin-top: 2.5rem; }
.art-end-separator { height:2px; background: var(--color-accent); width:240px; margin:2.5rem auto 1rem; border-radius:2px; }
.article-actions { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.action-btn { background: var(--color-accent); color:#fff; border:1px solid var(--color-accent); padding:.55rem .9rem; border-radius: var(--radius); font-size:.75rem; font-weight:600; letter-spacing:.4px; cursor:pointer; transition:var(--transition); }
.action-btn:hover { background: var(--color-accent-hover); }
.icon-btn { background: transparent; color: var(--color-accent); border:1px solid transparent; padding:.4rem .5rem; border-radius: var(--radius); width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; }
.icon-btn:hover { background:#eef5ff; color: var(--color-accent-hover); }
.icon-btn .icon { display:block; }
.article-actions .icon-btn { min-width:40px; max-width:40px; }
.action-btn:disabled { opacity:.6; cursor:default; }
/* Stesse dimensioni: larghezza pari alla parola "Condividi" (9 caratteri) + padding orizzontale */
.article-actions .action-btn { flex:0 0 auto; }
/* Placeholder centrata nell'area viewer */
.placeholder { 
  position: absolute; inset: 0; 
  display: flex; align-items: center; justify-content: center; 
  font-size: 1rem; color: var(--color-text-light); 
  text-align: center; padding: 0 2rem; margin:0;
}

/* Footer */
.app-footer { padding: .75rem 1rem; border-top: 1px solid var(--color-border); background: var(--color-surface); text-align: center; font-size: .75rem; color: var(--color-text-light); }
.app-footer a, .app-footer a:visited { color: inherit; text-decoration: underline; }
.app-footer a:hover, .app-footer a:focus { text-decoration: underline; }

/* Ricerca risultati highlight */
mark { background:#d7e9ff; padding:0 .2em; border-radius:3px; color:inherit; }
/* Risultati ricerca: solo identificativo in blu */
.search-result-id { color: var(--color-accent); }
.search-result-title { color: var(--color-text); font-weight:500; }
/* Popover anteprima ricerca */
.search-preview { position:absolute; z-index:300; max-width:520px; max-height:60vh; overflow:auto; background:#fff; border:1px solid var(--color-border); padding:.65rem .75rem .7rem; font-size:.72rem; line-height:1.35; border-radius:6px; box-shadow: var(--shadow); pointer-events:none; animation: fadeSlide .16s ease; }
.search-preview::-webkit-scrollbar { width:8px; }
.search-preview::-webkit-scrollbar-thumb { background:#c2d7f5; border-radius:4px; }
.search-preview::-webkit-scrollbar-thumb:hover { background:#aac8ef; }
.search-preview h4 { margin:0 0 .4rem; font-size:.7rem; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:var(--color-text-light); }
.search-preview p { margin:.25rem 0; }
.search-preview mark { background:#eef5ff; }

/* Responsive */
@media (min-width: 821px) {
  /* Layout desktop: il footer azioni va in fondo allo spazio di lettura se l'articolo è corto */
  .viewer { display:flex; flex-direction:column; }
  .viewer article { flex:1; display:flex; flex-direction:column; }
  .viewer .article-footer { margin-top:auto; padding-top:2.5rem; }
  .viewer .art-end-separator { margin-top:1.5rem; }
}
@media (max-width: 1000px) {
  :root { --sidebar-width: 240px; }
}
@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .menu-toggle { display:inline-flex; }
  .sidebar { 
    position: fixed;
    top: 0; left: 0; bottom:0;
  width: min(85%, 280px);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 100;
    box-shadow: var(--shadow);
    height: 100vh;
    border-right: 1px solid var(--color-border);
    border-bottom:none;
  }
  .sidebar.open { transform: translateX(0); }
  .viewer { padding: 2.25rem 2rem 3.5rem; }
  .viewer h1, .viewer .art-title { text-align: center; }
  .viewer .art-separator, .viewer .art-end-separator { width: 200px; }
  /* Mobile: riduci spazio prima del separatore finale */
  .art-end-separator { margin-top:1.25rem; }
  body.menu-open { overflow:hidden; }
  .overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:90; backdrop-filter: blur(2px); }
  .code-selector-slot { display:block; padding:.6rem .75rem .4rem; border-bottom:1px solid var(--color-border); }
}
@media (max-width: 560px) {
  .app-header { flex-wrap: wrap; }
  .brand-img { padding-left:0; margin:0 auto; width:100%; display:flex; justify-content:center; }
  .brand-img img { height:40px; }
  .code-selector select { min-width: 140px; }
  .search-box input { flex: 1; min-width: 0; }
  .code-selector { order: 3; width: 100%; margin-left: 0; }
  .code-selector { flex-direction: column; align-items: stretch; gap: .35rem; }
  header .code-selector { display:none !important; }
  .code-selector label { top: 0; }
  .code-selector .select-shell { width:100%; }
  .search-box { order: 4; width: 100%; }
  /* Toggle menu spostato accanto alla barra di ricerca su mobile */
  .search-box #btn-toggle-menu { display:inline-flex; margin-right:0; }
  .search-box { align-items:stretch; }
  /* Pulsante menu più stretto, input più largo */
  .search-box { gap:.45rem; }
  .search-box #btn-toggle-menu { flex:0 0 56px; width:56px; justify-content:center; padding:.45rem 0; margin-right:0; }
  .search-box #btn-toggle-menu svg { margin:0; }
  .search-box input { flex:1 1 auto; min-width:0; }
  .search-box #btn-search { flex:0 0 56px; width:56px; padding:.45rem 0; display:inline-flex; align-items:center; justify-content:center; }
  .search-box #btn-search .btn-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
  .search-box #btn-search .icon-search { display:block; }
  .viewer { padding: 2rem 1.25rem 3rem; }
  /* Evita banda grigiastra sopra il footer: su mobile niente gradiente, aggiungi spazio extra per footer fisso */
  .viewer { background:#fff; padding-bottom: calc(3rem + 82px + env(safe-area-inset-bottom)); }
  .viewer .art-separator, .viewer .art-end-separator { width: 65%; max-width: 240px; }
  .art-end-separator { margin-top:1rem; }
  /* Brand centrato su mobile */
  .brand { padding-left:0; margin:0 auto; justify-content:center; }
  /* About page mobile adjustments */
  .about-hero { padding:1.2rem 1.1rem 2rem !important; }
  .about-logo-wrap img { height:60px !important; }
  .about-hero h1 { font-size:1.25rem !important; }
  .about-hero p { font-size:.82rem !important; }
  .about-hero-actions a, .about-hero-actions button { width:100%; justify-content:center; }
  .about-feature-grid { margin-top:2.25rem !important; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)) !important; gap:.7rem !important; }
  /* Nascondi blocchi feature nella sola versione mobile */
  .about-feature-grid { display:none !important; }
  .about-feature-grid h3 { font-size:.62rem !important; }
  .about-feature-grid p { font-size:.62rem !important; line-height:1.3 !important; }
  .about-feature-grid > div { min-width:0; }
  .about-hero-inner, .about-feature-grid { width:100%; }
  .about-hero-actions { max-width:480px; width:100%; }
  /* Footer fisso su mobile */
  .app-footer { position:fixed; left:0; right:0; bottom:0; z-index:120; box-shadow:0 -2px 6px -2px rgba(0,0,0,.12); background:var(--color-surface); padding:.95rem 1.1rem 1.05rem; }
  body { padding-bottom:0; }
  .viewer { padding-bottom: calc(3rem + 110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .about-feature-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
}
@media (max-width: 480px) {
  .about-feature-grid { display:flex; flex-direction:column; gap:.75rem; }
  .about-feature-card { padding:.8rem .85rem; }
}
@media (max-width: 380px) {
  .about-logo-wrap img { height:54px !important; }
  .about-hero { padding:2.1rem .9rem 2.3rem !important; }
  .about-hero h1 { font-size:1.18rem !important; }
  .about-hero p { font-size:.78rem !important; }
  .about-feature-grid { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)) !important; }
}
