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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f2dbff;
  color: #266cb1;
  min-height: 100vh;
}

/* Layout general */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

/* Capçalera */
.site-header h1 {
  font-size: clamp(3rem, 6vw, 4rem);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.site-header h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  max-width: 40rem;
  margin: 0 auto 2.5rem auto;
}

/* Menú principal */
.main-nav {
  margin-bottom: 2.5rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;           /* estil “píndola” */
  background: rgba(255, 255, 255, 0.8);
  color: #266cb1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.main-nav a:focus-visible {
  outline: 2px solid #266cb1;
  outline-offset: 2px;
}

/* Opcional: lleugera reducció de mida en pantalles petites */
@media (max-width: 480px) {
  .main-nav a {
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
  }
}

/* Secció principal */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Imatge */
.image-container {
  max-width: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
/* Secció de logos */
.logos {
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.logos h3 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #225a92;
}

/* Contenidor amb scroll horitzontal */
.logos-scroll {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Opcional: amagar barra a alguns navegadors, però mantenint l’accessibilitat */
.logos-scroll::-webkit-scrollbar {
  height: 6px;
}

.logos-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.logos-scroll::-webkit-scrollbar-thumb {
  background: rgba(38, 108, 177, 0.5);
  border-radius: 999px;
}

/* Logos individuals */
.logos-scroll img {
  max-height: 60px;
  width: auto;
  flex: 0 0 auto; /* evita que es redimensionin estranyament */
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
}

/* Ajustos mòbil */
@media (max-width: 480px) {
  .logos-scroll img {
    max-height: 48px;
    padding: 0.4rem 0.6rem;
  }
}

/* Enllaç actiu menú */
.main-nav a.active {
  background: #266cb1;
  color: white;
}

/* Layout text al voltant de la imatge */
.participar-intro {
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
}

.participar-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 2rem;
  text-align: center;
  color: #266cb1;
}

.text-image-wrap {
  overflow: hidden;
  min-height: 300px;
}

.image-float {
  float: right;
  width: 35%;
  margin: 0 0 1.5rem 2.5%;
  shape-outside: circle(50%);
  shape-margin: 1rem;
}

.image-float img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.text-wrap {
  width: 60%;
  float: left;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Neteja el float per evitar problemes posteriors */
.text-image-wrap::after {
  content: "";
  display: table;
  clear: both;
}

/* Mòbil: imatge a sobre */
@media (max-width: 768px) {
  .image-float, .text-wrap {
    float: none;
    width: 100%;
    margin: 0 0 2rem 0;
  }
}

.text-wrap h3 {
  font-size: 1.3rem;
  color: #266cb1;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.text-wrap ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem 0;
  max-width: 450px;
}

.text-wrap li {
  padding: 1rem 0 1rem 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid #266cb1;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s ease;
}

.text-wrap li:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
  box-shadow: 4px 0 12px rgba(38, 108, 177, 0.15);
}

.text-wrap li::before {
  content: "✦";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #266cb1;
  font-size: 1rem;
  font-weight: bold;
}

.text-wrap .cta-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(38, 108, 177, 0.1), rgba(242, 219, 255, 0.3));
  border-radius: 16px;
  border-left: 5px solid #266cb1;
}

/* Text que ocupa TOTA l'amplada després de la imatge */
.full-width-text {
  clear: both;  /* Neteja el float de la imatge */
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.full-width-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Mòbil: centrado perfecte */
@media (max-width: 768px) {
  .full-width-text {
    padding: 0 1.5rem;
  }
}

/* Cards de 3 opcions */
.opcions {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.opcions h3 {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: #225a92;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h4 {
  color: #266cb1;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #266cb1;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #1e4f8a;
  transform: translateY(-1px);
}

/* Hero contacte */
.contacte-hero {
  max-width: 1000px;
  margin: 0 auto 4rem auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Formulari */
.form-block h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 1.5rem;
  color: #266cb1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #225a92;
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.2rem;
  border: 2px solid rgba(38, 108, 177, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #266cb1;
  box-shadow: 0 0 0 3px rgba(38, 108, 177, 0.1);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Info contacte */
.contact-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
  color: #266cb1;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contact-info p {
  color: #666;
  margin-bottom: 1.5rem;
}

.contact-details {
  list-style: none;
  font-size: 1rem;
}

.contact-details li {
  margin-bottom: 0.8rem;
}

.contact-details a {
  color: #266cb1;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.full-width-list {
  clear: both;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.full-width-list h3 {
  font-size: 1.4rem;
  color: #266cb1;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.full-width-list ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2rem auto;
  max-width: 700px;  /* TOTA L'AMPLADA */
  text-align: left;
}

/* LLISTA DINS full-width-text - mateix estil que text-wrap */
.full-width-text h3 {
  font-size: 1.4rem;
  color: #266cb1;
  margin: 2rem 0 1.5rem 0;
  font-weight: 600;
}

.full-width-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2rem auto;
  max-width: 700px;
  text-align: left;
}

.full-width-text li {
  padding: 1rem 0 1rem 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid #266cb1;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s ease;
}

.full-width-text li:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
  box-shadow: 4px 0 12px rgba(38, 108, 177, 0.15);
}

.full-width-text li::before {
  content: "✦";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #266cb1;
  font-size: 1rem;
  font-weight: bold;
}

.text-wrap,
.text-wrap p {
  text-align: justify !important;
}

.full-width-text,
.full-width-text p,
.full-width-text h3,
.full-width-text ul,
.text-wrap ul {
  text-align: left;  /* Llistes sempre alineades a esquerra */
}

.full-width-text li,
.text-wrap li {
  text-align: left;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem auto;
  border-radius: 12px;
  background: rgba(38, 108, 177, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(38, 108, 177, 0.15);
}

.card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}