/* style.css para Carnisseria de Cavall */

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #2c2c2c;
  background-color: #fefefe;
  line-height: 1.6;
}

header {
  background-color: #ffffff; /* fondo blanco */
  color: #2c2c2c; /* texto oscuro para mantener contraste */
  padding: 1em 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header img {
  max-height: 60px;
  height: auto;
  width: auto;
}

/* Títulos de sección en color rojo oscuro */
section h1 {
  font-size: 2.5rem; /* o ajusta a 3rem si quieres aún más grande */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  text-align: center;

}

/* Títulos de sección en color rojo oscuro */
section h2 {
  color: #BE0032;
}
section h3 {
  color: #ffffff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #2c2c2c; /* color de texto compatible con fondo blanco */
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.presentacio {
  margin: 2em auto;
  max-width: 900px;
  padding: 0 20px;
  text-align: left;
}

.ubicacio {
  background-color: #a80000;
  padding: 1em 0;
  color: #fefefe
}

.container, .ubicacio .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

 .text, .ubicacio .text {
  flex: 1 1 500px;
}

 .image, .ubicacio .image {
  flex: 1 1 400px;
  text-align: center;
}

.image img, .ubicacio .image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.talls {
  background-color: #fff3f3;
  padding: 3em 0;
}

.talls .presentacio {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.talls h2 {
  color: #BE0032;
}

.talls details {
  margin-bottom: 1em;
  border-left: 4px solid #BE0032;
  padding-left: 1em;
  cursor: pointer;
}

.talls summary {
  font-weight: bold;
  font-size: 1.05rem;
  cursor: pointer;
}

.talls summary::-webkit-details-marker {
  color: #BE0032;
}




/*footer {
  background-color: #a80000;
  color: white;
  text-align: center;
  padding: 1em 0;
  margin-top: 2em;
  font-size: 0.9rem;
}

/*footer a {
  color: #ffffff;
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}*/

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 1em;
  }
  header img {
    max-width: 100%;
    height: auto;
  }
  .qui-som, .ubicacio {
    flex-direction: column;
    padding: 2em 1em;
  }
  .qui-som .container, .ubicacio .container {
    flex-direction: column;
  }
  
}
