.servei-item {
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: var(--blue-color);
  color: #fff;
  overflow: hidden;
}
.servei-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: left;
  padding: 0.7rem 1rem;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.servei-toggle.active,
.servei-toggle:hover {
  background: #06385a;
  color: #fff;
}
.servei-toggle:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.servei-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  background: #fff;
  color: var(--blue-color);
  font-size: 1rem;
  border-top: 1px solid #e0e0e0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
.servei-desc.visible {
  max-height: 200px;
  opacity: 1;
  padding: 0.7rem 1rem 0.9rem 1rem;
}
/* Mapa container and iframe styles moved from inline */
.mapa-container {
  margin: 1.2rem 0 0 0;
  width: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.mapa-iframe {
  border: 1px solid var(--blue-color);
  border-radius: 0.2rem;
  display: block;
}
body {
  background: #f4f4f4;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
}

:root {
  --red-color: #8e3042;
  --blue-color: #0b5586;
}

/* Visually hidden utility for accessibility (SEO: headings for screen readers) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.servei-toggle:focus {
  outline: 2px solid var(--red-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red-color);
}

.construccio-container {
  /* Scale the main content card responsively up to 1024px */
  width: min(96vw, 800px);
  max-width: 800px;
  margin: 1rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  border-top: 6px solid var(--red-color);
  border-bottom: 3px solid var(--red-color);
}
.telefon-gran {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--red-color);
  margin: 1.1rem 0 0.7rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.telefon-gran a {
  color: var(--red-color);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
}
.logo {
  width: 180px;
  margin-bottom: 1.2rem;
}
h1 {
  color: var(--red-color);
  font-size: 2.1rem;
  margin-bottom: 0.7rem;
  letter-spacing: 1.2px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
}
.xarxes-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.xarxes-title {
  color: var(--blue-color);
  font-weight: bold;
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}
.xarxes-icons {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
}
.xarxes-icons a {
  color: var(--red-color);
  border: 2px solid var(--red-color);
  border-radius: 100%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  background: #fff;
  transition: all 0.2s, color 0.2s;
}
.xarxes-icons a:hover {
  background: var(--red-color);
  color: #fff;
}
.subtitol {
  color: #444;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.info-contacte p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}
.info-contacte a {
  color: var(--blue-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 1.3rem;
}
.bosch-ref {
  color: #0b5586;
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.serveis-llista {
  margin-top: 2rem;
}
.serveis-llista h2 {
  color: var(--blue-color);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.serveis-llista ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.serveis-llista li {
  background: var(--blue-color);
  color: #fff;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  border-radius: 6px;
  padding: 0.5rem;
}
.horari-destacat {
  color: var(--red-color);
  font-weight: bold;
  border: 1px solid var(--red-color);
  border-radius: 0.2rem;
  padding: 0.7rem 1rem;
  margin: 1.2rem 0;
  font-size: 1.08rem;
  text-align: center;
  line-height: 1.7;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #f9f9f9;
  padding: 1rem 0.5rem;
  border-top: 1px solid #ccc;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cookie-buttons button {
  margin: 0 0.5rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 0.2rem;
  background: var(--red-color);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-buttons button:hover {
  background: var(--red-color);
}
.footer-construccio {
  margin-top: 2.5rem;
  text-align: center;
}
.footer-construccio a {
  color: var(--red-color);
  text-decoration: underline;
  margin: 0 0.3rem;
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  .construccio-container {
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
    border-top: 3px solid var(--red-color);
    border-bottom: 1.5px solid var(--red-color);
  }
  body {
    padding: 0 0.4rem;
    margin: 0;
  }
  .logo {
    width: 140px;
    margin-bottom: 0.7rem;
  }
  h1 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  .subtitol {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  .info-contacte p {
    font-size: 0.95rem;
    margin: 0.2rem 0;
  }
  .serveis-llista h2 {
    font-size: 0.95rem;
  }
  .serveis-llista li {
    font-size: 0.9rem;
    padding: 0.3rem;
  }
  .footer-construccio {
    margin-top: 0.7rem;
  }
}
