html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
  background: linear-gradient(-45deg, #049be2, #049ce2b4, #049ce293, #ffffff63);
  background-size: 400% 400%;
  animation: moverGradiente 15s ease infinite;
  color: white;
  font-family: Arial, sans-serif;
}

@keyframes moverGradiente {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  flex: 1;
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}

.logo {
  width: 100px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}


input[type="color"] {
  margin: 1rem 0;
  width: 100px;
  height: 50px;
  border: none;
  border-radius: 12px;
  padding: 0;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 2px #ffffff, 0 0 5px rgba(0, 0, 0, 0.1);
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 12px;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 12px;
}


.paleta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.caixa-cor {
  padding: 1rem;
  border-radius: 12px;
  color: white;
  position: relative;
}

.caixa-cor button {
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
}

.caixa-cor button:hover {
  background: rgba(255,255,255,0.3);
}


footer {
  padding: 2rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.233);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container-rodape {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.logo-rodape {
  text-align: center;
}

.logo-img {
  width: 80px;
  margin-bottom: 0.5rem;
}

.descricao-empresa {
  font-style: italic;
  font-size: 0.9rem;
  color: #ffffff;
}

.info-contato,
.redes-sociais {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.info-contato a,
.redes-sociais a {
  color: #049be2;
  text-decoration: none;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.redes-sociais i {
  margin-right: 0.5rem;
  transition: transform 0.2s;
}

.redes-sociais i:hover {
  transform: scale(1.2);
}

.direitos {
  text-align: center;
  font-size: 0.8rem;
  color: #ffffff;
}


@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  input[type="color"] {
    width: 80px;
    height: 40px;
  }

  .paleta {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .caixa-cor {
    font-size: 0.9rem;
  }

  .container-rodape {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .newsletter input {
    width: 100%;
  }

  .newsletter button {
    width: 100%;
  }

  .redes-sociais i {
    font-size: 1.4rem;
  }

  footer {
    font-size: 0.8rem;
    text-align: center;
  }

  .logo-img {
    width: 60px;
  }
}
