/*
 * bioCultura — alinhamento estrutural comum
 * A marca e o primeiro conteúdo partilham a mesma linha de partida.
 */
@media screen and (min-width: 1281px) {
  #main > .inner {
    padding-top: 3.1em !important;
    padding-right: 4em !important;
    padding-left: 4em !important;
    box-sizing: border-box !important;
  }

  #main > .inner > header:first-child {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #main > .inner > section:first-child,
  #main > .inner > header:first-child + section {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #main > .inner > section.hero:first-child,
  #main > .inner > header:first-child + section .hero:first-child,
  #main > .inner .hero:first-child,
  #main > .inner .hero-split:first-child,
  #main > .inner .banner:first-child,
  #main > .inner .page-hero:first-child {
    align-items: start !important;
    margin-top: 0 !important;
  }

  /*
   * Ritmo vertical comum: a abertura cresce com o conteúdo, não com o ecrã.
   * Evita os grandes vazios que existiam no Manifesto, Contactos e entrada.
   */
  #main > .inner > section.hero:first-child,
  #main > .inner > section:first-child > .hero:first-child,
  #main > .inner > header:first-child + section > .hero:first-child {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 3.6em !important;
    align-items: start !important;
  }

  /* Mantém as ilustrações alinhadas com o início do texto da abertura. */
  #main > .inner .hero:first-child > .living-mark,
  #main > .inner .hero:first-child > .water-orbit,
  #main > .inner .hero:first-child > .hero-image,
  #main > .inner .hero:first-child > .mail-card,
  #main > .inner .hero:first-child > .visual {
    align-self: start !important;
    margin-top: 0 !important;
  }

  #main > .inner .hero:first-child > :first-child,
  #main > .inner .hero-split:first-child > :first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #main > .inner .eyebrow:first-child,
  #main > .inner .category-label:first-child,
  #main > .inner .hero-text > .eyebrow:first-child,
  #main > .inner .hero-text > .category-label:first-child {
    margin-top: 0 !important;
  }

  #sidebar {
    border-right: 0 !important;
    box-shadow: none !important;
  }

  #main > .inner .page-footer,
  #main > .inner .footer {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: right !important;
  }
}

@media screen and (max-width: 1280px) {
  #main > .inner > section.hero:first-child,
  #main > .inner > section:first-child > .hero:first-child,
  #main > .inner > header:first-child + section > .hero:first-child {
    min-height: 0 !important;
    padding-bottom: 3em !important;
  }
}
