/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f0f4f8; /* gris clar suau */
}

/* HEADER */
header {
  background: linear-gradient(90deg, #1f3c88, #3f51b5); /* blau suau amb gradient */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo img {
  height: 40px;     /* alçada del logo */
  width: 100px;      /* manté proporció */
  max-height: 100px; /* evita que sigui massa gran */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #f4a261; /* accent vermell/daurat juvenil */
  text-decoration: underline;
}

nav a.active {
  color: #f4a261;
  text-decoration: underline;
}

/* MENU HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: #f4a261;
}

/* MAIN */
main {
  flex: 1;
  padding: 0px 20px;
  width: 100%;
  min-height: auto;
  text-align: center;
}

/* SECCIÓ INICI */
.inicio {
  width: 100%;
  background-color: #f0f4f8;
  padding: 40px 20px;
  box-sizing: border-box;
}

.inicio-content {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* .inicio-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
} */

.inicio-content h1 {
  color: #1f3c88;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.inicio-content h2 {
  color: #3f51b5;
  font-size: 1.6rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #f4a261;
  display: inline-block;
  padding-bottom: 5px;
}

.inicio-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 800px;
  text-align: justify;
  margin-left: auto;
  margin-right: auto;
}

.inicio-gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.inicio-gallery img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.inicio-gallery img:hover {
  transform: scale(1.05);
}

/* 🔹 Responsive: mòbil i tauletes */
@media (max-width: 768px) {
  .inicio-gallery img {
    width: 100%;       /* ocupen tota l’amplada disponible */
    max-width: 320px;  /* però no més grans de 320px */
    height: auto;      /* mantenen proporció */
  }
}

.cards-section {
  margin-top: 40px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;          /* separació entre targetes */
  width: 100%;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
  color: #3f51b5;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .inicio-content {
    padding: 30px 15px;
  }

  .inicio-content h1 {
    font-size: 1.8rem;
  }

  .inicio-content h2 {
    font-size: 1.4rem;
  }

  .inicio-content p {
    font-size: 1rem;
  }

  .cards-container {
    grid-template-columns: 1fr; /* una columna en mòbil */
    justify-items: center;      /* centra les targetes */
    gap: 15px;
  }

  .card {
    width: 80%;     /* targetes més estretes en mòbil */
    max-width: 300px;
  }
}

/* FOOTER */
footer {
  background: #3f51b5;
  color: white;
  text-align: center;
  padding: 10px;
  box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
  position: sticky;
  bottom: 0;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #1f3c88;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
  }

  nav.open {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .inicio-content h1 {
    font-size: 1.8rem;
  }

  .inicio-content p {
    font-size: 1rem;
  }
}

.cards-section {
  margin-top: 40px;
  text-align: center;
}

.cards-section h2 {
  color: #1f3c88;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;          /* separació entre targetes */
  width: 100%;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
  color: #3f51b5;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 80%;
  }
}

.empresa-content {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 40px auto;
  text-align: left;
}

.empresa-content h1 {
  color: #1f3c88;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.empresa-content h2 {
  color: #3f51b5;
  font-size: 1.6rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #f4a261;
  display: inline-block;
  padding-bottom: 5px;
}

.empresa-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 800px;
}

.empresa-content ul {
  list-style: disc inside;
  margin-bottom: 20px;
}

.empresa-contact p {
  font-weight: bold;
}

@media (max-width: 768px) {
  .empresa-content {
    padding: 30px 15px;
  }
  .empresa-content h1 {
    font-size: 1.8rem;
  }
  .empresa-content h2 {
    font-size: 1.4rem;
  }
  .empresa-content p {
    font-size: 1rem;
  }
}

.promocions {
  width: 100%;
  background-color: #f0f4f8;
  padding: 40px 20px;
  box-sizing: border-box;
}

.promocions-content {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.promocions-content h1 {
  color: #1f3c88;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.promocions-content h2 {
  color: #3f51b5;
  font-size: 1.6rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #f4a261;
  display: inline-block;
  padding-bottom: 5px;
}

.promocions-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 800px;
  text-align: justify;
  margin-right: auto;
}

.promocions-content ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.promocions-content li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .promocions-content {
    padding: 30px 15px;
  }
  .promocions-content h1 {
    font-size: 1.8rem;
  }
  .promocions-content h2 {
    font-size: 1.4rem;
  }
  .promocions-content p, .promocions-content li {
    font-size: 1rem;
  }
}

.promocions-galeria {
  margin-top: 40px;
}

.promocions-galeria h2 {
  color: #3f51b5;
  font-size: 1.8rem;
  border-bottom: 2px solid #f4a261;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
  text-align: center;
}

.promocio {
  margin-bottom: 40px;
}

.promocio h3 {
  color: #1f3c88;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.galeria-fotos img {
  width: 100%;
  aspect-ratio: 1 / 1; /* miniatures quadrades */
  object-fit: cover;   /* cobreix tota la miniatura */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.galeria-fotos img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive mòbil */
@media (max-width: 768px) {
  .promocions-galeria h2 {
    font-size: 1.6rem;
  }

  .promocio h3 {
    font-size: 1.2rem;
  }

  .galeria-fotos {
    grid-template-columns: 1fr 1fr; /* 2 fotos per fila en mòbil */
  }
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-weight: bold;
}

.lang-select label {
  color: white;
}

.lang-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: #1f3c88; /* blau header */
  color: white;
  border: 2px solid white;
  padding: 6px 12px;          /* més espai intern per mostrar tot el text */
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  min-width: 70px;            /* amplada mínima per mostrar tot el contingut */
  text-align: center;          /* opcional, centra el text */
}

/* Hover i focus */
.lang-select select:hover,
.lang-select select:focus {
  background-color: #3f51b5; /* blau més clar o gradient si vols */
  border-color: #f4a261;     /* accent daurat */
  outline: none;
}

/* Afegir una fletxa personalitzada */
.lang-select {
  position: relative;
}

.lang-select::after {
  content: "▼";
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: white;
  font-size: 0.6em;
}
