@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
  :root {
    --background-color: #f8fafb;
    --text-color: #212845;
  }


/* @media (prefers-color-scheme: dark) {
  :root {
    --background-color: #00050d;
    --text-color: #ffffff;
  }

  .close-btn {
    color: #ffffff;
  }
} */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background-color);
  color: var(--text-color);
  margin: 0 auto;
}

.container {
  max-width: 1300px;
}

h2 {
  font-size: 1.65rem;
}

.main {
  height: 100%;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
}

.col {
  width: 50%;
  height: 100%;
  padding: 0 20px;
}

.flex-column {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.logo-zeni {
  height: 60px;
}
.logo-zeni .zeni-path {
  fill: #ee394a;
}

.logo-zeni-inner {
  transform-origin: center;
}

.header {
  flex-direction: column;
}

.slogan {
  position: relative;
  margin-bottom: 4rem;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
}

.form-content {
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.form-content form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.immagini {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.immagini img {
  width: 100%;
  max-width: 700px;
  object-fit: contain;
  position: relative;
  transform-origin: center;
  user-select: none;
}

header {
  padding: 30px 0 0 0;
}

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #666;
  margin-top: auto;
}

input[type="email"] {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #6e99b6;
  border-radius: 65px;
  width: 100%;
  margin-bottom: 1rem;
  margin-top: 1rem;
  max-width: 480px;
}

button[type="submit"] {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 65px;
  background-color: #0b619c;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 480px;
}

button:hover {
  background-color: #cc2e3a;
}

.message-box {
  position: absolute;
  max-width: 500px;
  background: var(--background-color);
  padding: 10px;
  left: 50%;
  top: 50%;
  box-shadow: 0 0 10px #0002;
  border-radius: 10px;
  width: 90%;
  transform: translate(-50%, -50%);
  display: none;
}

.message-content {
  max-width: 90%;
}

.message-box.visible {
  display: block;
}

.message-box .close-btn {
  position: absolute;
  right: 8px;
  top: 6px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.message-box.success {
  border: 1px solid #2ecc71;
}

.message-box.error {
  border: 1px solid #e74c3c;
}

@media (max-width: 840px) {
  html,
  body {
    height: auto;
  }
  .main {
    height: auto;
  }

  .col {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    text-align: center;
  }

  .immagini {
    margin: 20px 0;
    padding: 0 40px;
  }

  header {
    padding: 30px;
  }

  .form-content form {
    align-items: center;
  }

  input[type="email"] {
    max-width: 340px;
  }

  button[type="submit"] {
    width: 100%;
    max-width: 340px;
  }
}

@keyframes slidein {
  0% {
    opacity: 0;
    left: -800px;
  }
  20% {
    opacity: 0;
    left: -800px;
  }
  35% {
    left: 0px;
    opacity: 1;
  }
  100% {
    left: 0px;
    opacity: 1;
  }
}

@keyframes show {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
