@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f8fafc;
  --surface: #fff;
  --ink: #0f172a;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --muted: #475569;
  --line: #d5e0e6;
  --tint: #e7f2ef;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --motion: 180ms;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font: 1.0625rem/1.55 "Source Sans 3", system-ui, sans-serif;
  text-align: start;
}
a:where(:link, :visited) { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
img { max-inline-size: 100%; }
.atlas-skip {
  position: absolute;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .5rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-200%);
}
.atlas-skip:focus { transform: none; }
body div#container {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding-inline: var(--gutter);
  overflow: visible;
  border: 0;
  background: transparent;
}
body div#header { padding: 0; margin: 0; }
body div#testata {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(.4rem, 2vw, 1rem);
  width: auto;
  height: auto;
  padding: .7rem 0;
  background: none;
  border-bottom: 1px solid var(--line);
}
body div#testata :is(h1, .atlas-brand) {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: auto;
  margin: 0;
  font: 700 clamp(1rem, 2vw, 1.35rem)/1.15 "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  text-align: start;
  text-indent: 0;
}
.atlas-brand small {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .75em;
  font-weight: 500;
}
#testata .logo {
  grid-column: 1;
  grid-row: 1;
  position: static;
  float: none;
  width: clamp(2.5rem, 5vw, 3.25rem);
  height: clamp(2.5rem, 5vw, 3.25rem);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#testata :is(.bandiera_it, .bandiera_en) {
  grid-row: 1;
  position: static;
  float: none;
  width: auto;
  height: auto;
}
#testata .bandiera_it { grid-column: 3; }
#testata .bandiera_en { grid-column: 4; }
#testata :is(.bandiera_it, .bandiera_en) a {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .12rem;
  min-height: 2.75rem;
  min-width: 2.65rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: var(--teal-dark);
  text-decoration: none;
  font: 700 .73rem/1 "Source Sans 3", system-ui, sans-serif;
}
#testata :is(.bandiera_it, .bandiera_en) img { width: 1.25rem; height: auto; }
#testata .bandiera_it a::after { content: "IT"; }
#testata .bandiera_en a::after { content: "EN"; }
#testata :is(.bandiera_it, .bandiera_en) a:is(:hover, [aria-current]) {
  background: var(--tint);
  border-color: var(--line);
}
body #container :is(#sopramenu_home, .Slider:not(:has(*)), .sottomenu:not(:has(*))) {
  display: none;
}
body #container .menu { margin: 0 0 1.5rem; padding: 0; }
body #container #css_menu_13 {
  width: auto;
  height: auto;
  margin: 0;
  padding: .45rem 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
body #container #css_menu_13 ul {
  display: flex;
  flex-wrap: wrap;
  gap: .125rem .3rem;
  width: auto;
  margin: 0;
  padding: 0;
  height: auto;
  overflow: visible;
  border: 0;
  list-style: none;
}
body #container #css_menu_13 ul li {
  float: none;
  position: static;
  margin: 0;
  width: auto;
  height: auto;
}
body #container #css_menu_13 ul li a {
  display: flex;
  align-items: center;
  float: none;
  width: auto;
  height: auto;
  min-height: 2.75rem;
  margin: 0;
  padding: .3rem .6rem;
  border-radius: .4rem;
  background: none;
  color: var(--ink);
  font: 650 .975rem/1.15 "Source Sans 3", system-ui, sans-serif;
  text-decoration: none;
  text-indent: 0;
  text-transform: none;
}
body #container #css_menu_13 ul li a span {
  display: inline;
  position: static;
  visibility: visible;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-indent: 0;
}
body #container #css_menu_13 ul li a b { display: none; }
body #container #css_menu_13 ul li a:is(:hover, [aria-current="page"]) {
  color: var(--teal-dark);
  background: var(--tint);
}
body div#wrapper-container,
body div#wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  align-items: start;
  gap: clamp(1rem, 2vw, 2rem);
  width: auto;
  height: auto;
  margin: 0 0 2rem;
  background: transparent;
}
#wrapper-container > .clear, #wrapper > .clear { display: none; }
body div#wrapper-container > :is(#colonna_sx, #colonna_dx, #benvenuti),
body div#wrapper :is(#gallery, #thumbs, #torna) {
  float: none !important;
  width: auto !important;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
}
body #wrapper-container > #colonna_sx,
body #wrapper-container > #benvenuti,
body #wrapper #gallery {
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .9rem;
  overflow-wrap: anywhere;
}
body #wrapper #torna { grid-column: 1 / -1; }
.atlas-gallery-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; }
.atlas-gallery-heading h1 { margin: 0; color: var(--ink); font-size: 1.65rem; }
.atlas-gallery-heading p { margin: 0; }
body #container :is(#sezione, #sezione_contents, .testo, .titolo_sezione) {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  font: inherit;
}
body #container .testo img { height: auto; }
body #container .testo :is(p, li) {
  font: inherit;
  color: var(--ink);
  letter-spacing: normal;
  text-align: start;
}
#container .testo p { margin: 0 0 1em; }
#container .testo p:empty, #container .testo :is(h2,h3):empty { display: none; }
body #container :is(.titolo_sezione, .testo) h1,
body #container .testo h2 {
  width: auto;
  height: auto;
  margin: 0 0 .75rem;
  padding: 0;
  color: var(--ink);
  font: 700 clamp(1.45rem, 3vw, 2.4rem)/1.14 "Source Sans 3", system-ui, sans-serif;
  background: transparent;
}
body #container .testo h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
body #container .testo a { color: var(--teal); }
body #container .testo table { max-width: 100%; }
body #container #sezione_contents > ul { width: auto; max-width: 100%; padding-inline-start: 1.5rem; }
body #container .testo ol { padding-inline-start: 1.5rem; }
body #container .testo li + li { margin-top: .55rem; }
body #container :is(.click-menu, #menu_tools, #menu_link, #menu_css_verticale) {
  float: none;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .65rem;
  overflow-wrap: anywhere;
}
body #container :is(.click-menu, #menu_tools, #menu_link) h2 {
  width: auto;
  height: auto;
  margin: 0;
  padding: .7rem .9rem;
  text-indent: 0;
  color: var(--ink);
  font: 700 1.2rem/1.2 "Source Sans 3", system-ui, sans-serif;
  background: var(--tint);
}
body #container :is(#menu_tools, #menu_link, #menu_css_verticale) ul {
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}
body #container :is(#menu_tools, #menu_link, #menu_css_verticale) li {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
}
body #container :is(#menu_tools, #menu_link, #menu_css_verticale) a,
body #container .click-menu .section a {
  display: block;
  width: auto;
  height: auto;
  padding: .45rem .8rem;
  color: var(--teal);
  font: inherit;
  background: none;
  text-indent: 0;
  text-decoration: underline;
}
body #container .click-menu [class^="box1"] {
  width: auto;
  min-height: 2.75rem;
  height: auto;
  margin: 0;
  padding: .55rem .8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font: 650 1rem/1.3 "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
}
body #container .click-menu [class^="box1"]:hover,
body #container .click-menu [aria-expanded="true"] { background: var(--tint); }
body #container .click-menu [class^="box2"],
body #container .click-menu .section {
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
}
body #container :is(#menu_flipper, #footer) {
  width: auto;
  height: auto;
  margin: 0;
  padding: .8rem 0;
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
}
body #container #menu_flipper #hor {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
body #container #hor li { float: none; }
body #container #hor a,
body #container #footer a {
  display: inline;
  width: auto;
  height: auto;
  color: var(--teal);
  background: none;
  text-decoration: underline;
  text-indent: 0;
}
body #container #footer p { margin: 0; }

body.atlas-home div#wrapper-container {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}
.atlas-home #benvenuti { grid-column: 1 / -1; grid-row: 1; }
body.atlas-home div#wrapper-container > #benvenuti {
  padding: 0;
  background: none;
  border: 0;
}
.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  grid-template-areas: "heading image" "actions image" "copy image";
  align-items: start;
  gap: .9rem clamp(1.25rem, 3vw, 2.75rem);
  padding: clamp(1.15rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
body #container .atlas-hero h1 {
  grid-area: heading;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  letter-spacing: -.035em;
  border: 0;
}
.atlas-hero figure {
  grid-area: image;
  margin: 0;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--paper);
}
body #container .atlas-hero figure img { margin: 0; padding: 0; }
.atlas-intro { grid-area: copy; }
.atlas-hero img { display: block; width: 100%; height: auto; border-radius: .65rem; }
.atlas-hero figcaption { padding-inline: .4rem; margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.atlas-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: .65rem; }
body #container .atlas-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--teal);
  border-radius: .45rem;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
body #container .atlas-actions a:first-child { color: white; background: var(--teal); }
.atlas-home #colonna_sx, .atlas-home #colonna_dx { grid-row: 2; }
.atlas-resources {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--teal);
  background: var(--tint);
}
.atlas-resources h2 { margin: 0 0 .4rem; color: var(--ink); }
.atlas-resources p { margin: 0 0 .4rem; }
.atlas-resources a { color: var(--teal); }

body #wrapper .slideshow,
body #wrapper .slideshow-container,
body #wrapper .caption-container,
body #wrapper .caption,
body #wrapper .image-wrapper {
  width: auto;
  min-width: 0;
  max-width: 100%;
}
body #wrapper .slideshow img { max-width: 100%; height: auto; }
body #wrapper .thumbs { padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
body #wrapper .thumbs li { float: none; margin: 0; }
body #wrapper .pagination,
body #wrapper .controls { float: none; width: auto; }
body #wrapper .pagination a { color: var(--teal); }
body #wrapper .image-desc { color: var(--ink); }
body #wrapper #caption { position: relative; }
body #wrapper .loader { max-width: 100%; }
body #wrapper .slideshow-container { min-height: min(24rem, 85vw); height: auto; }
body #wrapper .slideshow { position: relative; }
body #wrapper .slideshow span.image-wrapper { position: relative; display: block; }
body #wrapper .slideshow span.image-wrapper:has(img) { inset: auto; }
body #wrapper .caption-container { clear: both; height: auto; min-height: 2rem; }
body #wrapper .caption { position: static; }

body.atlas-malaria > div > div { width: min(100%, 76rem) !important; padding-inline: var(--gutter); }
body.atlas-malaria div:is(#title, #title2, #header, #box, #top-nav) { width: 100%; }
body.atlas-malaria div:is(#title, #title2, #top-nav) { height: auto; background-color: var(--ink); }
body.atlas-malaria div:is(#title, #title2) h1 {
  color: white;
  font: 700 clamp(1.2rem, 3vw, 1.8rem)/1.25 "Source Sans 3", system-ui, sans-serif;
  text-align: start;
  padding: .45rem;
}
body.atlas-malaria #header {
  background-size: contain;
  background-position: center;
  border-radius: .75rem;
  background-color: var(--ink);
  height: clamp(5rem, 17vw, 12.5rem);
}
body.atlas-malaria div#box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
  gap: 1rem;
  float: none;
  padding: 1rem;
  background: transparent;
}
body.atlas-malaria :is(#main, #right-menu, #left-menu) {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  color: var(--ink);
  background: white;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: .65rem;
  overflow-wrap: anywhere;
}
body.atlas-malaria #main { grid-column: 1; grid-row: 1; }
body.atlas-malaria #main h1 { color: var(--ink); font-size: 1.5rem; }
body.atlas-malaria :is(#main, #right-menu, #left-menu) a { color: var(--teal); }
body.atlas-malaria img { height: auto; }
body.atlas-malaria #top-nav ul li { margin: 0 .5rem; }

@media (max-width: 52rem) {
  body div#wrapper-container, body div#wrapper, .atlas-hero,
  body.atlas-home div#wrapper-container, body.atlas-malaria div#box {
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas-hero { grid-template-areas: "heading" "actions" "image" "copy"; }
  .atlas-home #colonna_sx, .atlas-home #colonna_dx { grid-row: auto; }
  body #container #css_menu_13 ul li a { padding-inline: .5rem; }
  body #container .testo { overflow-x: auto; }
  body.atlas-malaria #main { grid-row: 1; }
}

.atlas-menu-toggle { display: none; }
body #container :is(#colonna_sx, #menu_tools, #menu_link, #gallery),
body.atlas-malaria #main {
  box-shadow: 0 2px 6px #0f172a0b;
}
body #container :is(.titolo_sezione, .testo) h1 {
  letter-spacing: -.025em;
}
body #container #sezione_contents li a {
  display: inline-block;
  max-width: 100%;
  color: var(--teal-dark);
  overflow-wrap: anywhere;
}
body #container #sezione_contents li + li { margin-top: .22rem; }
body #container .bibblio li {
  padding: .45rem .25rem .55rem;
  border-bottom: 1px solid var(--line);
}
body #container #footer {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  font-size: .95rem;
}
body #gallery #controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .35rem;
  height: auto;
  margin: 0 0 .75rem;
}
body #gallery #controls a,
body #wrapper :is(.pagination a, .pagination .current) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: .15rem;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--surface);
  color: var(--teal-dark);
  font-weight: 650;
}
body #wrapper .pagination .current {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}
body #wrapper #caption {
  margin-top: .65rem;
  padding: .65rem .8rem;
  border: 0;
  border-radius: .45rem;
  background: var(--paper);
}
body #wrapper #caption .image-desc { padding: 0; }
body #wrapper .thumbs .thumb {
  padding: .22rem;
  border: 2px solid var(--line);
  border-radius: .45rem;
  background: var(--surface);
}
body #wrapper .thumbs li.selected .thumb { border-color: var(--teal); }
body #wrapper .thumbs .thumb:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
body #wrapper .thumbs img { width: 6rem; height: auto; }
body #wrapper .slideshow .image-wrapper {
  float: none;
  padding: 0;
}
body #wrapper .slideshow .advance-link { width: fit-content; max-width: 100%; margin-inline: auto; }
body #wrapper .slideshow img { width: auto; max-width: 100%; max-height: 34rem; }
body #wrapper #slideshow:not(:empty) { min-height: min(19rem, 58vw); }

.atlas-resources {
  margin: 0 0 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--teal);
  border-radius: .65rem;
  background: var(--surface);
}
.atlas-resources h2 { font-size: 1.4rem; }
.atlas-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .65rem;
  margin: .65rem 0;
}
.atlas-resources-grid a {
  display: block;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--teal-dark);
  text-decoration: none;
}
.atlas-resources-grid a span { display: block; color: var(--ink); }
.atlas-resources small { color: var(--muted); }

@media (max-width: 52rem) {
  body #container #css_menu_13.atlas-menu-enhanced { position: relative; }
  .atlas-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .45rem .85rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: var(--surface);
    color: var(--ink);
    font: 700 1rem "Source Sans 3", system-ui, sans-serif;
    cursor: pointer;
  }
  .atlas-menu-toggle::before {
    content: "";
    width: .95rem;
    height: .7rem;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }
  .atlas-menu-toggle[aria-expanded="true"] { color: var(--teal-dark); background: var(--tint); }
  body #container #css_menu_13.atlas-menu-enhanced > ul {
    position: absolute;
    z-index: 35;
    inset: calc(100% + .35rem) 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .2rem;
    padding: .5rem;
    max-height: min(65dvh, 23rem);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: .6rem;
    background: var(--surface);
    box-shadow: 0 .5rem 1.4rem #0f172a24;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-.3rem);
  }
  body #container #css_menu_13.atlas-menu-open > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .atlas-hero { animation: atlas-enter 220ms ease-out both; }
  body #wrapper :is(#slideshow .image-wrapper, #caption .caption) {
    animation: atlas-photo-in var(--motion) ease-out both;
  }
  body #container :is(#css_menu_13 a, .atlas-actions a, .atlas-resources-grid a, #testata a),
  .atlas-menu-toggle, body #wrapper :is(.thumb, #controls a, .pagination a) {
    transition: color var(--motion), background-color var(--motion), border-color var(--motion),
      box-shadow var(--motion), transform var(--motion);
  }
  body #container #css_menu_13.atlas-menu-enhanced > ul {
    transition: opacity var(--motion), transform var(--motion),
      visibility 0s linear var(--motion);
  }
  body #container #css_menu_13.atlas-menu-open > ul { transition-delay: 0s; }
  @media (hover: hover) {
    body #container :is(.atlas-actions a, .atlas-resources-grid a):hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 10px #0f172a16;
    }
  }
}

@keyframes atlas-enter {
  from { opacity: .8; transform: translateY(.3rem); }
  to { opacity: 1; transform: none; }
}

@keyframes atlas-photo-in {
  from { opacity: .82; }
  to { opacity: 1; }
}

.atlas-malaria-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: .8rem 0;
  color: var(--ink);
  text-align: start;
}
.atlas-malaria-heading h1 {
  margin: 0;
  font: 700 clamp(1.35rem, 3.2vw, 2rem)/1.15 "Source Sans 3", system-ui, sans-serif;
}
.atlas-malaria-heading p { margin: .25rem 0 0; color: var(--muted); }
.atlas-malaria-heading nav { display: flex; flex-wrap: wrap; gap: .4rem; }
body .atlas-malaria-heading nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .25rem .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--teal-dark);
  font-weight: 650;
}
body .atlas-malaria-heading nav a:is(:hover, [aria-current]) { background: var(--tint); }
body.atlas-malaria #box { padding-inline: 0; }
body.atlas-malaria #right-menu .sideheader {
  background: var(--tint);
  color: var(--ink);
}
.atlas-malaria-footer {
  border-top: 1px solid var(--line);
  margin-block: 1rem;
  padding: 1rem 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: start;
}
body .atlas-malaria-footer a { color: var(--teal-dark); }

/* Shared academic masthead and reading layout. */
body div#testata, body.atlas-malaria .atlas-malaria-heading {
  min-height: 5.25rem;
  padding: clamp(.7rem, 2vw, 1.15rem) 0;
  border-bottom: 1px solid var(--line);
}
body #testata .logo { background-image: url('/img/logo.png'); }
body #testata .atlas-brand, body .atlas-malaria-heading .atlas-brand {
  margin: 0;
  color: var(--ink);
  font: 720 clamp(1.05rem, 2.45vw, 1.65rem)/1.13 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: -.025em;
}
body #testata .atlas-brand small, body .atlas-malaria-heading .atlas-brand small {
  margin-top: .29rem;
  color: var(--muted);
  font-size: clamp(.72rem, 1.45vw, .96rem);
  font-weight: 500;
  letter-spacing: 0;
}
body.atlas-malaria .atlas-malaria-heading { display:grid; grid-template-columns: auto minmax(0, 1fr) auto; gap:.7rem; }
.atlas-malaria-mark { width:3.25rem; height:3.25rem; display:grid; place-items:center; }
.atlas-malaria-mark img { width:100%; height:auto; }
body #container #css_menu_13 ul li a { padding-inline: .78rem; }
body #container:not(:has(.atlas-hero)) #colonna_sx .testo,
body.atlas-malaria #main {
  font-size: clamp(1.02rem, .98rem + .24vw, 1.16rem);
  line-height: 1.66;
}
body #container #colonna_sx .testo :is(p, ol, ul) { max-inline-size: 73ch; }
body #container #colonna_sx .testo h2 { margin-block: 1.3rem .6rem; font-size: clamp(1.4rem, 2.5vw, 2rem); }
body #container #colonna_sx .testo :is(h3, h4), body.atlas-malaria #main :is(h2,h3,h4) {
  margin-block: 1.25rem .4rem;
  font-family: inherit;
  color: var(--ink);
  line-height:1.26;
  scroll-margin-block-start: 1rem;
}
body #container .testo :is(h1,h2,h3,h4):empty, body .atlas-search-status:empty { display: none; }
body #container .testo table { overflow-wrap: anywhere; }
.atlas-context, .atlas-index-search {
  padding: .8rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface);
}
.atlas-context p, .atlas-index-search label { display: block; margin: 0 0 .4rem; font-weight: 720; }
.atlas-context ul, .atlas-index-search ul { margin: 0; padding: 0; list-style: none; }
.atlas-context li a, .atlas-index-search li a { display: inline-flex; align-items:center; min-height: 2rem; }
.atlas-index-search { background: var(--tint); }
.atlas-index-search input {
  display: block;
  width: min(100%, 32rem);
  min-height: 2.75rem;
  padding: .5rem .7rem;
  border: 1px solid var(--muted);
  border-radius: .42rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
.atlas-index-search input:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.atlas-search-status { margin: .45rem 0 0; color: var(--muted); }
.atlas-index-search li + li { border-top: 1px solid var(--line); }
.atlas-resources { border-inline-start-width: 1px; background: color-mix(in srgb, var(--surface) 92%, var(--tint)); }
.atlas-resources-grid a { box-shadow: none; }

/* Image viewer. The original photograph link remains usable without scripting. */
body #wrapper #gallery.atlas-gallery-ready { display: grid; gap: .75rem; min-width: 0; }
body #wrapper #gallery[hidden], body #wrapper .atlas-thumbnails [hidden] { display: none !important; }
body #wrapper .thumbs:not(.atlas-thumbnails) li .caption { display: block; padding: .3rem; }
body #wrapper .atlas-thumbnails { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 5rem), 1fr)); gap:.45rem; }
body #wrapper .atlas-thumbnails .thumb { display:grid; height:100%; margin:0; place-items:center; }
body #wrapper .atlas-thumbnails .thumb[aria-current] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.atlas-gallery-toolbar { display: flex; flex-wrap: wrap; align-items:center; gap:.45rem; }
.atlas-gallery-count { margin:0 .4rem 0 0; color: var(--ink); font-weight:700; font-variant-numeric:tabular-nums; }
.atlas-gallery-toolbar button, .atlas-gallery-toolbar a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 2.75rem;
  padding:.42rem .72rem;
  border:1px solid var(--line);
  border-radius:.45rem;
  background:var(--surface);
  color:var(--teal-dark);
  font: 700 .95rem/1.2 "Source Sans 3", system-ui, sans-serif;
  cursor:pointer;
}
.atlas-gallery-toolbar button:is(:hover, [aria-pressed="true"]) { background:var(--tint); }
.atlas-gallery-toolbar button:disabled { opacity:.64; cursor:default; }
.atlas-thumb-toolbar { margin-block-end:.65rem; }
.atlas-viewer-figure { margin:0; }
.atlas-viewer-image {
  display:grid;
  place-items:center;
  width:100%;
  min-height:min(20rem, 60vw);
  padding:.4rem;
  border:0;
  border-radius:.65rem;
  background:var(--paper);
  cursor:zoom-in;
}
.atlas-viewer-image img { display:block; max-width:100%; max-height:34rem; height:auto; object-fit:contain; }
.atlas-figure-caption { margin:.75rem 0 0; color:var(--ink); line-height:1.52; white-space:pre-line; }
.atlas-lightbox {
  width:min(calc(100% - 1.4rem), 72rem);
  max-width:none;
  max-height:calc(100% - 1.4rem);
  margin:auto;
  padding:clamp(.65rem, 2vw, 1.25rem);
  border:1px solid var(--line);
  border-radius:.7rem;
  background:var(--surface);
  color:var(--ink);
}
.atlas-lightbox::backdrop { background:#091725e5; }
.atlas-lightbox > img { display:block; width:auto; height:auto; max-width:100%; max-height:70dvh; margin:.6rem auto 0; object-fit:contain; }
.atlas-lightbox .atlas-gallery-toolbar { justify-content:center; }
@media (max-width: 52rem) {
  body #container #css_menu_13 ul li a { padding-inline: .5rem; }
  body.atlas-malaria .atlas-malaria-heading { grid-template-columns:auto minmax(0, 1fr); }
  body.atlas-malaria .atlas-malaria-heading nav { grid-column:1 / -1; }
  body #wrapper .atlas-thumbnails { grid-template-columns:repeat(auto-fill, minmax(min(100%, 4.1rem), 1fr)); }
  body #wrapper .atlas-gallery-toolbar .atlas-gallery-count { flex-basis:100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .atlas-lightbox[open] { animation: atlas-enter var(--motion) ease-out both; }
}
