/* red.it — stili vanilla
   Token: red #e3342f · grey #b8c2cc · grey-dark #8795a1 · font Lato */

/* --- reset minimo --- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- base --- */
html {
  overflow: hidden;
  background-color: #e3342f;
  /* config('colors.red') */
  height: 100%;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

a {
  color: inherit;
}

/* --- schermata centrata (h-screen flex items-center justify-center) --- */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen--white {
  background-color: #fff;
}

/* contact.vue: bg-white */

/* --- footer condiviso (fixed pin-b) --- */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem 0;
  /* py-4 */
  text-align: center;
  background-color: #fff;
  color: #8795a1;
  /* grey-dark */
}

/* --- box logo / conferma (border-4 border-grey w-64 h-64 bg-white) --- */
.box {
  background-color: #fff;
  border: 4px solid #b8c2cc;
  /* grey */
  width: 16rem;
  /* w-64 */
  height: 16rem;
  /* h-64 */
}

/* index: box colonna con logo + TELEMATICA */
.box--logo {
  display: flex;
  flex-direction: column;
}

.box--logo img {
  height: 100%;
  /* h-full */
  padding: 2rem;
  /* p-8 */
  object-fit: contain;
}

.box--logo .caption {
  margin-top: -3rem;
  /* -mt-12 */
  text-align: center;
  color: #8795a1;
  /* grey-dark */
}

/* thanks: box con testo centrato */
.box--message {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- form contatto --- */
.contact-form {
  position: relative;
  /* z-30 */
  z-index: 30;
  background-color: #fff;
  width: 66.6667%;
  /* w-2/3 */
  max-width: 40rem;
  /* max-w-md (Tailwind 0.7: 40rem, non 28rem moderno) */
  margin: 0 auto;
}

.contact-form .field {
  padding: 1rem 0;
}

/* py-4 */
@media (min-width: 768px) {
  .contact-form .field {
    padding: 2rem 0;
  }
}

/* md:py-8 */
.contact-form input {
  width: 100%;
  height: 2rem;
  /* h-8 */
  padding: 0 0.5rem;
  /* px-2 */
  border: 0;
  border-bottom: 1px solid #000;
  /* border-b border-black */
  background: transparent;
  font: inherit;
}

.contact-form input:user-invalid {
  border-bottom: 2px solid #e3342f;
}

/* border-b-2 border-red */
.contact-form .submit {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form button {
  background-color: #e3342f;
  /* bg-red */
  color: #fff;
  border: 0;
  cursor: pointer;
  margin: 2rem 0;
  /* my-8 */
  padding: 1rem 2rem;
  /* py-4 px-8 */
  font: inherit;
}

.contact-form .hp {
  display: none;
}

/* honeypot fill-me */

/* --- animazioni --- */
@keyframes bounce-in {
  0% {
    transform: scale(0.75);
  }

  100% {
    transform: scale(1);
  }
}

.anim-bounce {
  animation: bounce-in 0.5s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.anim-fade {
  animation: fade-in 1.5s;
}