/* General styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
}

/* Header styles */
.header_section {
  background-color: #343a40;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between; /* Distribuye el logo y el menú correctamente */
  align-items: center; /* Alinea verticalmente el logo y el menú */
}

.header_section .navbar-brand {
  margin-right: 5px; /* Reduce más el margen derecho del logo */
}

.header_section .navbar-toggler {
  border: none;
  margin-left: -5px; /* Aproxima más el botón de menú al logo */
  padding: 5px; /* Ajusta el padding para mantener el botón proporcionado */
}

.header_section .navbar-toggler-icon img {
  max-height: 25px;
}

.header_section .navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
}

.header_section .navbar-nav .nav-link:hover {
  color: #ffc107;
}

/* Service section */
.service_section {
  padding: 60px 0;
}

.service_section .custom_heading-container {
  margin-bottom: 40px;
  text-align: center;
  background-color: rgba(52, 58, 64, 0.8); /* Fondo oscuro transparente */
  padding: 10px;
  border-radius: 10px;
  display: inline-block;
}

.service_section .custom_heading-container h2 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 2px #000; /* Contorno oscuro */
}

.service_section .text-box h4,
.service_section .text-box p {
  text-shadow: 1px 1px 2px #000; /* Contorno oscuro */
}

.service_section .service_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.service_section .service_box {
  flex: 1;
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service_section .img-box img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vantaggi_section {
  padding: 60px 0;
  background-color: #e9f5f5;
}

.vantaggi_section .custom_heading-container {
  margin-bottom: 40px;
  text-align: center;
  background-color: #6f42c1; /* Fondo morado */
  padding: 10px;
  border-radius: 10px;
  display: flex; /* Cambiar a flex */
  justify-content: center; /* Asegurar centrado */
}

.vantaggi_section .custom_heading-container h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 2px #000; /* Contorno oscuro */
}

.vantaggi_section .card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
  text-align: center;
}

.vantaggi_section .card h5 {
  font-size: 18px;
  font-weight: 700;
  color: #007b5e;
  margin-bottom: 10px;
}

.vantaggi_section .card p {
  font-size: 16px;
  color: #5a5a5a;
}

/* Footer styles */
.footer_bg {
  background-color: #343a40;
  padding: 60px 0;
  color: #fff;
}

.footer_bg h3,
.footer_bg h5,
.footer_bg p {
  color: #fff;
}

.footer_bg .form_container input {
  background: #495057;
  border: none;
  color: #fff;
}

.footer_bg .form_container button {
  background: #ffc107;
  border: none;
  color: #343a40;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.fade-in.visible {
  opacity: 1;
}

.text-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.text-image-container .text-box {
  max-width: 100%;
  margin-top: 20px;
  background-color: rgba(52, 58, 64, 0.8); /* Fondo oscuro transparente */
  padding: 20px;
  border-radius: 10px;
  color: white;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #6f42c1; /* Cambiar a morado */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  color: white; /* Cambiar el color del texto a blanco */
  text-align: center;
}

.feature-card h5 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p {
  font-size: 16px;
}

@media(min-width: 768px) {
  .text-image-container {
    flex-direction: row;
  }
  .text-image-container .text-box {
    max-width: 60%;
    margin-left: 20px;
    margin-top: 0;
  }
}

/* Responsive Styles for Header */
@media (max-width: 768px) {
  .header_section .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #343a40;
    z-index: 1000;
  }

  .header_section .navbar-collapse.show {
    display: block;
    max-height: none;
  }

  .header_section .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea el menú a la izquierda */
    width: 100%;
  }

  .header_section .navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
  }

  .header_section .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    background-color: #343a40;
  }

  .header_section .navbar-nav .dropdown-item {
    padding-left: 30px; /* Añadir espacio a la izquierda en el menú desplegable */
    white-space: normal;
  }

  .header_section .navbar-nav .dropdown-item:hover {
    background-color: #495057;
  }
}

/* Responsive Styles for Footer */
@media (max-width: 768px) {
  .footer_bg .img-box {
    width: 60px; /* Ajustar el tamaño de la caja de la imagen */
    right: 10px;
    bottom: 10px;
  }

  .footer_bg .img-box img {
    width: 100%;
    height: auto;
  }

  .footer_logo {
    width: 250px; /* Ajustar el tamaño para dispositivos móviles */
    margin: 0 auto;
    text-align: center;
  }

  .footer_logo img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .header_section .navbar-nav .dropdown-menu {
    width: auto; /* Permite que el menú se ajuste dinámicamente */
    white-space: normal; /* Permite que el texto haga un salto de línea si es necesario */
  }

  .header_section .navbar-nav .dropdown-item {
    white-space: normal;
    padding-left: 30px; /* Aumenta el espaciado para pantallas pequeñas */
  }
}
