* {
  font-family: "Poppins", monospace;
}

:root {
  --amarelo: #ffc43d;
  --vermelho: #ef476f;
  --azul: #1b9aaa;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden; /* evita rolagem lateral no celular */
}

.nav-item {
  font-size: 17px;
  font-weight: normal;
}

.nav-item-1 {
  margin-left: 45%;
}

img {
  max-width: 750px;
  width: 100%; /* nunca ultrapassa o container */
  height: auto; /* mantém a proporção */
  image-rendering: smooth;
  border-radius: 30px;
}

main {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0px;
}

h2 {
  font-size: 20px;
}

h1 {
  font-size: 40px;
}

li {
  cursor: pointer;
}

.contato-1 {
  background-color: var(--amarelo);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-2 {
  background-color: var(--vermelho);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-3 {
  background-color: var(--azul);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-1,
.contato-2,
.contato-3 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* o círculo não amassa em telas estreitas */
}

.nav-1 .item-1::marker {
  content: "/ ";
}

.active {
  text-decoration: underline;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    img {
      animation: fade-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

/* Tablets e notebooks pequenos (até 1024px) */
@media (max-width: 1024px) {
  .nav-item-1 {
    margin-left: 20%;
  }

  main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  h1 {
    font-size: 34px;
  }
}

/* Tablets em modo retrato e celulares grandes (até 768px) */
@media (max-width: 768px) {
  .nav-item-1 {
    margin-left: 0;
  }

  .nav-item {
    font-size: 16px;
    padding-block: 8px; /* área de toque maior */
  }

  /* Uma coluna só */
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  img {
    max-width: 100%;
  }

  h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  h2 {
    font-size: 18px;
  }
}

/* Celulares (até 480px) */
@media (max-width: 480px) {
  .nav-item {
    font-size: 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 17px;
  }

  .contato-1,
  .contato-2,
  .contato-3 {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}

/* Celulares muito pequenos (até 360px) */
@media (max-width: 360px) {
  h1 {
    font-size: 23px;
  }

  .nav-item {
    font-size: 14px;
  }
}

/* Celulares deitados (paisagem com pouca altura) */
@media (max-height: 500px) and (orientation: landscape) {
  h1 {
    font-size: 24px;
  }
}

.navbar-3 li {
  list-style: none;
  font-size: 20px;
  font-weight: 500;
}

* {
  font-family: "Poppins", monospace;
  overflow-y: unset;
}

:root {
  --amarelo: #ffc43d;
  --vermelho: #ef476f;
  --azul: #1b9aaa;
}

.nav-item {
  font-size: 17px;
  font-weight: normal;
}

.nav-item-1 {
  margin-left: 45%;
}

.active {
  text-decoration: underline;
}

.display-1 {
  font-size: 60px;
  font-weight: 500;
}

.menu-1 li {
  transition: 300ms all ease-in-out;
}

.menu-1 li:hover {
  text-decoration: underline;
  color: var(--azul);
  cursor: pointer;
  transition: 300ms all ease-in-out;
}

.nav-1 .item-1::marker {
  content: "/ ";
}

li {
  cursor: pointer;
}

.contato-1 {
  background-color: var(--amarelo);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-2 {
  background-color: var(--vermelho);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-3 {
  background-color: var(--azul);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.contato-1,
.contato-2,
.contato-3 {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 415px) {
  .navbar-footer {
    display: none;
  }

  footer span {
    display: none;
  }

  nav {
    margin: 0;
  }

  footer {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .contato-1,
  .contato-2,
  .contato-3 {
    width: 60px;
    height: 60px;
  }

  footer img {
    width: 60px;
  }
}

@media screen and (max-width: 415px) {
  .nav-item-1 {
    margin-left: 40%;
  }

  footer img {
    width: 30px;
  }
}
