body {
  text-align: center;
  font-family: 'Lato', sans-serif !important;
  font-weight: 200;
  background-color: #EDE8F5 !important;
}

.bodyM {
  text-align: left;
}

.controls select {
  font-family: 'Lato', 'sans-serif';
}

.header-cell {
  font-size: 16px;
  color: orange;
}

#example th:first-child,
#example td:first-child {
  width: 100px;
}

#example th:last-child,
#example td:last-child {
  width: 50px;
}

.about-img {
  width: 300px;
  height: auto;
  max-width: 100%;
}

.NVX {
  scroll-margin-top: 40px;
}

.dropdown-menu {
  background-color: #EDE8F5 !important;
  border-color: #3D52A0 !important;
  border: 1px solid #3D52A0;
}

.dropdown-item {
  color: #3D52A0 !important;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #3D52A0 !important;
  color: #fff !important;
}

.address-box {
  display: flex;
  align-items: center;
}

.address-box a {
  margin-right: 10px;
}

.add-content {
  font-size: 14px;
  color: #3D52A0 !important;
  margin-top: 14px;
}

#contact_us {
  background-image: url('../imatges/MF.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.form-label {
  color: #7091E6 !important;
}

.display-4 {
  color: #7091E6 !important;
}

.navbar {
  min-height: 40px;
  font-size: 12px;
  padding: 0 10px;
}

.navbar-custom {
  background-color: #EDE8F5 !important;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  color: #3D52A0 !important;
}

.footer-main {
  background-color: #EDE8F5 !important;
  color: #3D52A0 !important;
  width: 100%;
  font-size: 0.8em;
  line-height: normal;
  min-height: 30px;
  height: auto !important;
  padding: 0;
}

.footer-main i {
  font-size: 0.8em;
}

.footer-main .btn.btn-outline-light {
  color: #3D52A0 !important;
  border-color: #3D52A0 !important;
}

#carouselExampleCaptions .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100vh;
}

.custom-heading {
  color: #7091E6 !important;
}

.a2v {
  color: #8697C4 !important;
}

.prM {
  background: #3D52A0 !important;
  color: #EDE8F5 !important;
}

/* Separació del contingut respecte del navbar fix */
header {
  padding-top: 40px;
}

/* Evitem que el contingut quedi amagat sota el navbar */
section.NVX {
  padding-top: 40px;
  padding-bottom: 30px;
}

.section-title {
  padding-top: 10px;
}

.section-back {
  margin-top: 10px;
}

/* ==========================================
   MÒBIL
   ========================================== */

@media (max-width: 991.98px) {

  .navbar {
    height: auto;
    min-height: 40px;
    padding: 0 10px;
  }

  .navbar-collapse {
    padding-bottom: 10px;
  }

  .navbar-nav {
    text-align: left;
  }

  .navbar-nav .nav-link {
    padding: 8px 5px;
  }

  .dropdown-menu {
    border: none;
    margin-left: 10px;
  }
}

@media (max-width: 767.98px) {

  body {
    overflow-x: hidden;
  }

  /* Carrusel: no ocupem tota l'alçada del mòbil */
  #carouselExampleCaptions .carousel-item img {
    height: 45vh;
    min-height: 280px;
    max-height: 500px;
    object-fit: cover;
  }

  .carousel-caption {
    bottom: 10px;
    padding-bottom: 5px;
  }

  .carousel-caption h5 {
    font-size: 1.15rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  /* Les seccions ja no tenen una alçada fixa */
  .NVX {
    min-height: 0;
    height: auto !important;
  }

  section.NVX {
    padding-top: 30px;
    padding-bottom: 35px;
  }

  .section-title {
    padding-top: 5px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .custom-heading {
    font-size: 1.4rem;
  }

  .container .row {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .about-img {
    width: 100% !important;
    max-width: 300px;
  }

  .container p {
    font-size: 1rem !important;
  }

  #contact_us .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  #sendButton {
    width: 100%;
  }

  .section-back {
    margin-top: 15px;
  }

  .footer-main {
    padding-bottom: 10px;
  }

  .footer-main .address-main {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-main .address-box {
    justify-content: center;
    margin-bottom: 8px;
  }

  .footer-main .add-content {
    margin-top: 0;
  }

  .footer-main .text-center.p-3 {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
}
