  body {
    margin: 0;
    line-height: 1.6;
    text-align: center;
  }

  header {
  --_animationStartsAfter: 1vh;
  --_animationDistance: 200px;
  --_surfaceColorStart: hsl(0 10% 5% 0);
  --_surfaceColorEnd: hsla(0, 0%, 0%, 0.562);
  --_textColorStart: hsl(0 10% 90%);
  --_textColorEnd: hsl(0, 0%, 100%);

  --_logoAfterAnimation: none;

  padding: 1rem -1rem;
  margin-inline:auto;
  margin-block: 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--_headerWidth, auto);

  color: var(--_textColorStart);
  background-color: var(--_surfaceColorStart);

  position: sticky;
  z-index: 1000;
  top: 0rem;

  @supports (animation-timeline: view()) {
    top: -5rem;

    border-radius: 100vw;
    backdrop-filter: blur(0.35rem);

    animation: stickyNav linear forwards;
    animation-timeline: view();
    animation-range-start: calc(100vh + var(--_animationStartsAfter));
    animation-range-end: calc(
      100vh + var(--_animationStartsAfter) + var(--_animationDistance)
    );
  }

  .logo {
    display: var(--_logoDisplay, block);
    fill: currentColor;
    height: 3rem;
  }

  ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-family:sans-serif;
  
    &:hover,
    &:focus {
      color: var(--clr-primary-300);
      text-decoration: underline;
      text-decoration-thickness: 0.07lh;
      text-underline-offset: 0.17lh;
    }
  }
}

@keyframes stickyNav {
  0%,
  100% {
    --_headerWidth: fit-content;
    --_logoDisplay: var(--_logoAfterAnimation);
  }

  100% {
    top: 1rem;
    color: var(--_textColorEnd);
    background-color: var(--_surfaceColorEnd);
    box-shadow: inset 0 0 0.5rem hsl(0 0% 100% / 0.1),
      0 0 0.75rem hsl(0 0% 0% / 0.3);
  }
}

  html {
    color-scheme: dark;
  }

/*img*/



  h1,
  h2{
  font-family:sans-serif ;
  font-size: 200%;
  }
  h3,
  h4 {
    color: var(--clr-neutral-100);
  }

  h1 {
    font-size: var(--fs-700);
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 900;
    text-wrap: balance;
    max-width: 25ch;

    > span {
      color: var(--clr-primary-400);
    }
  }

    .hero {
    padding-block: max(3rem, 40svh);
    text-align: center;

    color: var(--clr-neutral-100);
    margin-block-end: 5rem;
    background-color: var(--clr-neutral-500);
    background-position: center;
    background-image: url(./images/logo\ m3.png);
    background-size: cover;
}

.meu-fundo {
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 8px;
  margin-inline: auto;
}

  img {
    max-width: 100%;
    display: block;
    margin-block: 6px;
    margin-left: 6px;
  }

    .caixa-com-margin {
      height: auto; /* A div expande ou contrai conforme o conteúdo */
    }

    .caixa-com-margin-a {
      height: 300px; /* A div expande ou contrai conforme o conteúdo */
    }

@media (max-width: 768px) {
  .hero {
    padding-block: max(2rem, 10svh);
    text-align: center; 
    margin: 0;
  }
  :where(.content-grid, .full-width) > * {
    margin: 0;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}