@import url("../fonts/fonts.css");

:root {
  --turquesa: #0da6a3;
  --blau-fosc: #316873;
  --verd-peu: #4ca995;
  --text: #0a0a0a;
  --titol: #262626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .merienda {
  font-family: "Merienda One", Arial, cursive;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: 35px; color: var(--titol); }
h2 { font-size: 28px; color: var(--titol); }
h3 { font-size: 20px; color: #000; }

p { margin: 0; }

.pagina { max-width: 994px; margin: 0 auto; }

/* ---------- Capçalera ---------- */
.capcalera {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 2px 0;
  min-height: 207px;
}
.capcalera .logo img { width: 496px; height: 121px; max-width: 100%; }

.menu-boto {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
  color: #2c2c2c;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 10px 0 0;
  padding: 0;
}
nav a {
  display: block;
  padding: 0 5px;
  margin: 0 2px;
  line-height: 38px;
  font-family: "Merienda One", Arial, cursive;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: #2c2c2c;
}
nav a:hover, nav a[aria-current="page"] { color: var(--turquesa); }

/* ---------- Imatge de capçalera ---------- */
.imatge-cap {
  position: relative;
  height: 450px;
  overflow: hidden;
}
.imatge-cap img {
  width: 156.4%;
  max-width: none;
  height: auto;
  margin: -34.1% 0 0 -34.2%;
}
.imatge-cap h1 {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  text-align: center;
  color: #fff;
}

/* ---------- Carrusel (Inici) ---------- */
.carrusel {
  position: relative;
  height: 450px;
  background: #000;
  overflow: hidden;
}
.carrusel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.carrusel img.actiu { opacity: 1; }
.carrusel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 10px;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  z-index: 2;
}
.carrusel .anterior { left: 4px; }
.carrusel .seguent { right: 4px; }

/* ---------- Bloc blau (Inici) ---------- */
.bloc-blau {
  background: var(--blau-fosc);
  color: #faf7fa;
  padding: 18px 0 60px;
}
.bloc-blau .dades {
  display: flex;
  justify-content: space-between;
  padding: 0 28px 0 38px;
}
.bloc-blau .etiqueta { font-size: 15px; }
.bloc-blau .valor {
  font-family: "Merienda One", Arial, cursive;
  font-size: 20px;
  margin-bottom: 14px;
}
.bloc-blau a { color: inherit; text-decoration: none; }
.bloc-blau h2 {
  color: #faf5fa;
  font-weight: 700;
  text-align: center;
  margin: 70px 0 18px;
}
.bloc-blau .franges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 37px;
  padding: 0 10px;
}
.bloc-blau .franges img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: left top; }
.bloc-blau .franges p {
  font-family: "Merienda One", Arial, cursive;
  font-size: 20px;
  text-align: center;
  color: #fafafa;
  margin-top: 12px;
}

/* ---------- Sobre nosaltres ---------- */
.nosaltres-intro {
  display: grid;
  grid-template-columns: 440px 384px;
  justify-content: space-between;
  padding: 40px 43px 0 32px;
}
.nosaltres-intro .cita { text-align: center; margin-bottom: 70px; }
.nosaltres-intro h3 { margin-bottom: 24px; }
.nosaltres-intro .orientacio h3 { margin: 0 0 -8px 11px; max-width: 215px; }
.nosaltres-intro .orientacio p { text-align: justify; }

.fitxa {
  text-align: center;
  margin-top: 60px;
}
.fitxa img.foto { width: 252px; margin: 10px auto 0; }
.fitxa h3 { margin-top: 2px; }
.fitxa img.copc { width: 450px; height: 142px; margin: 0 0 0 266px; }

.cv {
  padding: 0 51px 0 53px;
  margin-top: 0;
}
.cv ul { margin: 0; padding-left: 40px; }

/* ---------- Serveis ---------- */
.titol-seccio { text-align: center; margin: 14px 0 22px; }
.titol-seccio strong { font-weight: 700; }

.targetes {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: space-between;
  padding: 0 21px 0 16px;
}
.targetes img { width: 300px; height: 225px; object-fit: cover; object-position: left top; }
.targetes h3 { text-align: center; margin-top: 12px; }

.serveis-text h3 { text-align: center; margin: 46px 0 22px; }
.serveis-text { padding: 0 52px 0 100px; }
.serveis-text p { text-align: justify; font-weight: 700; margin-bottom: 0; }
.serveis-text p + p { margin-top: 0; }
.serveis-text .adults { margin-top: 16px; }

.mentoria { margin-top: 70px; }
.mentoria h2 { text-align: center; margin-bottom: 30px; }
.mentoria .cos {
  display: flex;
  gap: 20px;
  padding: 0 52px 0 100px;
  font-weight: 700;
}
.mentoria .cos > div { flex: 1; }
.mentoria ul { margin: 24px 0 24px; padding-left: 40px; }
.mentoria .cos img { width: 175px; height: 179px; margin-top: 40px; }

/* ---------- Contacte ---------- */
.contacte {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  padding: 70px 44px 0 32px;
}
.contacte .linia { display: flex; gap: 12px; }
.contacte .icona { width: 18px; flex: none; margin-top: 3px; }
.contacte strong { font-weight: 700; }
.contacte .bloc { margin-bottom: 14px; }
.contacte .adreca { font-size: 14px; font-weight: 700; line-height: 1.15; }
.contacte .adreca-bloc { margin-top: 56px; }
.contacte a { color: inherit; text-decoration: none; }
.contacte .mapa p { text-align: center; font-size: 14px; margin-top: 24px; }

/* ---------- Peu ---------- */
.peu {
  background: var(--verd-peu);
  margin-top: 60px;
  padding: 30px 0 14px;
}
.peu .columnes {
  display: flex;
  justify-content: space-between;
  padding: 0 80px 0 80px;
}
.peu .xarxes a { color: #000; display: inline-block; margin-right: 4px; }
.peu .xarxes svg { width: 28px; height: 28px; }
.peu .adreca { display: flex; gap: 6px; }
.peu .adreca svg { width: 16px; height: 22px; flex: none; margin-top: 2px; }
.peu .adreca p { font-size: 14px; font-weight: 700; line-height: 1.15; }
.peu .adreca h3 { margin-bottom: 2px; }
.peu .copy { text-align: center; font-size: 14px; color: #000; margin-top: 50px; }
.peu .copy a { color: #0073ad; font-weight: 700; }

/* ---------- Mòbil ---------- */
@media (max-width: 1000px) {
  .pagina { padding: 0 12px; }
  .nosaltres-intro, .contacte { grid-template-columns: 1fr; padding: 30px 0 0; gap: 30px; }
  .nosaltres-intro .orientacio h3 { margin: 0 0 10px; }
  .fitxa img.copc { margin: 0 auto; height: auto; }
  .capcalera .logo img { height: auto; }
  .imatge-cap img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
  .cv, .serveis-text, .mentoria .cos { padding: 0; }
  .targetes { grid-template-columns: 1fr; gap: 20px; padding: 0; justify-items: center; }
  .bloc-blau .franges { grid-template-columns: 1fr; gap: 24px; }
  .peu .columnes { padding: 0 20px; gap: 20px; }
}
@media (max-width: 760px) {
  .capcalera { min-height: 0; padding-bottom: 16px; align-items: center; position: relative; }
  .capcalera .logo img { width: 240px; }
  .menu-boto { display: block; }
  nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; z-index: 5; box-shadow: 0 6px 12px rgba(0,0,0,.12); }
  nav.obert { display: block; }
  nav ul { flex-direction: column; margin: 0; padding: 8px 12px; }
  .imatge-cap { height: 240px; }
  .imatge-cap h1 { font-size: 26px; }
  .carrusel { height: 230px; }
  .bloc-blau .dades { flex-direction: column; padding: 0 16px; }
  .bloc-blau .valor { font-size: 17px; word-break: break-word; }
  .mentoria .cos { flex-direction: column; }
  .peu .columnes { flex-direction: column; }
}

.bloc-blau + script + .peu, main:has(.bloc-blau) + .peu { margin-top: 0; }
