:root {
  --text: #6d6d6d;
  --heading: #484848;
  --line: #e6e6e6;
  --light: #f6f6f6;
  --top: #222;
  --red: #a82f28;
  --red-bright: #cf2e2e;
  --muted: #abb8c3;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", Lato, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--red-bright);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  z-index: 10;
  background: #fff;
  padding: 8px 12px;
}

.top-navbar {
  background: var(--top);
  min-height: 40px;
  color: #fff;
}

.top-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.emergency-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.emergency-why {
  margin-left: 10px;
  color: #b8b8b8;
  font-weight: 700;
}

.emergency-why:hover,
.emergency-why:focus {
  color: #fff;
}

.branding {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.branding img {
  display: block;
  width: min(480px, 86vw);
  height: auto;
}

.main-navigation {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
}

.main-navigation ul {
  width: min(1280px, calc(100% - 32px));
  min-height: 63px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
}

.main-navigation li + li::before {
  content: "|";
  color: #222;
  margin: 0 18px;
}

.main-navigation a {
  color: #333;
  font-size: 14px;
  text-transform: uppercase;
}

.main-navigation a.active {
  color: var(--red-bright);
}

.site-main {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.entry-header {
  padding-top: 45px;
  text-align: center;
}

.static-page-resilienza .entry-header {
  padding-bottom: 32px;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: 36px;
}

h2 {
  margin: 0 0 8px;
  font-size: 31px;
}

h3 {
  margin: 15px 0 4px;
  font-size: 22px;
}

p {
  margin: 0 0 18px;
}

.intro {
  padding: 100px 0 92px;
  text-align: center;
  font-size: 18px;
}

.intro p + p {
  margin-top: 28px;
}

.reading-section {
  margin-bottom: 14px;
}

.wp-content {
  padding: 0 0 60px;
  font-size: 18px;
}

.resources-content {
  max-width: 980px;
  margin: 0 auto;
}

.resources-content h2 {
  margin: 42px 0 34px;
}

.resources-content a {
  overflow-wrap: anywhere;
}

.resource-link-block {
  margin-bottom: 34px;
}

.resource-link-block p {
  margin-bottom: 8px;
}

.resource-link-block p:first-child {
  color: #666;
}

.resource-link-block p:last-child {
  margin-bottom: 0;
}

.wp-content .has-text-align-center {
  text-align: center;
}

.wp-content .has-text-align-left {
  text-align: left;
}

.wp-content .has-text-align-right {
  text-align: right;
}

.wp-content .wp-block-spacer {
  clear: both;
}

.wp-content .wp-block-image,
.wp-content figure {
  margin: 0 0 18px;
}

.wp-content .wp-block-image img,
.wp-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wp-content .aligncenter,
.wp-content .aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.wp-content .alignwide img {
  width: 100%;
}

.wp-content figcaption {
  margin-top: 10px;
  color: #777;
  font-style: italic;
  text-align: center;
}

.wp-content .wp-block-columns {
  display: flex;
  gap: 2em;
  align-items: flex-start;
  margin-bottom: 1.75em;
}

.wp-content .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.wp-content .wp-block-buttons {
  display: flex;
  gap: .5em;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.wp-content .is-content-justification-center {
  justify-content: center;
}

.wp-content .wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--red-bright);
  color: #fff;
  line-height: 1.25;
  text-align: center;
}

.wp-content .has-vivid-red-background-color {
  background-color: var(--red-bright) !important;
}

.wp-content .has-cyan-bluish-gray-background-color {
  background-color: var(--muted) !important;
}

.wp-content .has-white-color {
  color: #fff !important;
}

.wp-content .has-medium-font-size {
  font-size: 20px;
}

.wp-content .has-large-font-size {
  font-size: 36px;
}

.wp-content ul,
.wp-content ol {
  margin: 0 0 24px 1.5em;
  padding: 0;
}

.wp-content li {
  margin-bottom: 8px;
}

.emergency-hero {
  position: relative;
}

.emergency-hero figcaption {
  font-size: 22px;
  color: var(--heading);
}

.home-hero-image {
  margin-bottom: 22px;
}

.home-hero-image img {
  width: 100%;
}

.home-hero-copy {
  margin: 0 auto 54px;
  max-width: 760px;
  text-align: center;
}

.home-hero-copy p:first-child {
  color: var(--heading);
  font-size: 24px;
}

.home-hero-copy p {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.reading-card {
  padding-bottom: 80px;
  font-size: 19px;
}

.reading-card img {
  display: block;
  width: 100%;
  aspect-ratio: 880 / 599;
  object-fit: cover;
  margin: 0 0 12px;
}

.button {
  display: inline-block;
  min-height: 44px;
  padding: 12px 24px;
  background: var(--red-bright);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.25;
}

.button:hover,
.button:focus {
  color: #fff;
  background: #b32727;
}

.button.muted {
  background: var(--muted);
  color: #fff;
}

.foundations {
  margin-bottom: 100px;
}

.closing {
  margin: 0 0 82px;
  text-align: center;
}

.footer-widget {
  background: #f4f4f4;
  border-top: 1px solid var(--line);
  padding: 34px 0 28px;
}

.footer-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 10px;
  color: #aaa;
}

.site-footer {
  background: #222;
  color: #aaa;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .top-inner,
  .branding,
  .main-navigation ul,
  .site-main,
  .footer-grid {
    width: min(100% - 24px, var(--container));
  }

  .branding {
    min-height: 110px;
  }

  .main-navigation ul {
    justify-content: center;
    gap: 12px 0;
    padding: 15px 0;
  }

  .main-navigation li + li::before {
    margin: 0 12px;
  }

  .entry-header {
    padding-top: 36px;
  }

  .intro {
    padding: 62px 0 58px;
    font-size: 16px;
  }

  .grid,
  .footer-grid,
  .wp-content .wp-block-columns {
    grid-template-columns: 1fr;
    display: block;
  }

  .reading-card {
    padding-bottom: 58px;
    font-size: 17px;
  }

  .wp-content {
    font-size: 16px;
  }

  .wp-content .wp-block-column {
    margin-bottom: 28px;
  }

  .reading-card.empty {
    display: none;
  }
}

@media (max-width: 520px) {
  .top-inner {
    min-height: 58px;
    padding: 7px 0;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
  }

  .social-links {
    order: 2;
    gap: 14px;
  }

  .social-links a {
    font-size: 16px;
  }

  .emergency-label {
    position: static;
    order: 1;
    transform: none;
    font-size: 12px;
  }

  .emergency-why {
    margin-left: 8px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .main-navigation a {
    font-size: 13px;
  }

  .main-navigation li + li::before {
    margin: 0 8px;
  }
}
