* {
*{
  font-family: Montserrat, sans-serif !important;
}  color: #0d3b66;
}
h2 {
  font-size: 45px;
}
h3 {
  font-size: 30px;
}
p {
  font-size: 20px;
  margin-top: -30px;
}
.maincontainer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "header"
    "contatti"
    "footer";
}
.item-a {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
.item-b {
  grid-area: contatti;
}
.item-h {
  grid-area: footer;
}
.contatticontainer {
  display: table;
  position: relative;
  background-image: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.85)
    ),
    url("../images/news-img.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 750px;
  margin-top: 100px;
  width: 100%;
  padding-left: 10%;
  padding-right: 10%;
}
.contattidettagli {
  display: table-cell;
  color: #0d3b66;
  width: 50%;
  padding-top: 50px;
}
.contattiform {
  display: table-cell;
  color: #0d3b66;
  width: 50%;
  padding-top: 50px;
}

.custom-form {
  margin: auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-form label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.custom-form input,
.custom-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.consenso {
  display: inline;
  max-width: 12px;
}

.custom-form button {
  width: 100%;
  padding: 10px;
  background: #0d3b66;
  color: white;
  border: none;
  border-radius: 4px;
  margin-top: 15px;
  cursor: pointer;
  font-size: 16px;
}

.custom-form button:hover {
  background: #092a4e;
}
@media (max-width: 768px) {
  .contatticontainer {
    display: grid;
    text-align: center;
    margin-top: 50px;
    height: 1000px;
  }
  .contattidettagli {
    width: 100%;
  }
  .contattiform {
    display: flow;
    width: 100%;
  }
  .footer {
    margin-top: 0px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .footer-brand,
  .footer-diving-info,
  .footer-links {
    margin-bottom: 30px;
  }
}
