/* =========================================================
   FISIOSALUT · Full d'estils
   ---------------------------------------------------------
   COLORS CORPORATIUS: canvia només aquests valors per
   adaptar tota la web als colors exactes del logo.
   ========================================================= */
/* Tipografia Figtree allotjada al mateix servidor (sense Google Fonts, sense cookies) */
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"); }

:root {
  --color-principal: #8B14AC;   /* lila del logotip (botons, títols) */
  --color-fosc: #4E1463;        /* lila fosc (peu de pàgina, hover) */
  --color-suau: #F4EEF7;        /* fons lila molt clar */
  --color-gris: #ECEAEE;        /* gris de les parets del centre */
  --color-accent: #8B14AC;      /* detalls */
  --color-text: #2B2330;
  --color-text-suau: #5E5566;
  --blanc: #FFFFFF;

  --font: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ample-max: 1180px;
  --radi: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-principal); }
a:hover { color: var(--color-fosc); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; color: var(--color-fosc); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.contenidor { width: min(100% - 2.5rem, var(--ample-max)); margin-inline: auto; }
.seccio { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.seccio--suau { background: var(--color-suau); }
.intro { font-size: 1.2rem; color: var(--color-text-suau); }
.salta { position: absolute; left: -9999px; }
.salta:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* ---------- Botons ---------- */
.boto {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  background: var(--color-principal); color: #fff; border: 2px solid var(--color-principal);
  transition: background .2s, color .2s;
}
.boto:hover { background: var(--color-fosc); border-color: var(--color-fosc); color: #fff; }
.boto--contorn { background: transparent; color: var(--color-principal); }
.boto--contorn:hover { background: var(--color-principal); color: #fff; }
.boto--accent { background: #fff; border-color: #fff; color: var(--color-fosc); }
.boto--accent:hover { background: #fff; border-color: #fff; color: var(--color-fosc); }
.botons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- Capçalera ---------- */
.capcalera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid #EEE7F2;
}
.capcalera .contenidor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.logo img { height: 58px; width: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; align-items: center; gap: .1rem; }
.menu a, .menu button.submenu-obre {
  display: block; padding: .5rem .65rem; border-radius: 8px;
  text-decoration: none; color: var(--color-text); font-weight: 600; font-size: .98rem;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.menu a:hover, .menu button.submenu-obre:hover, .menu a[aria-current="page"] { background: var(--color-suau); color: var(--color-fosc); }
.menu .te-submenu { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 12px; padding: .4rem;
  box-shadow: 0 12px 30px rgba(78,20,99,.15);
}
.te-submenu:hover .submenu, .te-submenu.obert .submenu { display: block; }
.menu a.boto { color: #fff; background: var(--color-principal); padding: .6rem 1.1rem; margin-left: .5rem; border-radius: 999px; }
.menu a.boto:hover { background: var(--color-fosc); color: #fff; }
.menu-boto { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-boto span { display: block; width: 26px; height: 3px; background: var(--color-fosc); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1120px) {
  .menu-boto { display: block; }
  .menu { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #EEE7F2; padding: 1rem 1.25rem 1.5rem; max-height: calc(100vh - 84px); overflow-y: auto; }
  .menu.obert { display: block; }
  .menu > ul { flex-direction: column; align-items: stretch; }
  .submenu { position: static; box-shadow: none; padding: 0 0 0 1rem; display: none; }
  .te-submenu:hover .submenu { display: none; }
  .te-submenu.obert .submenu { display: block; }
  .menu a.boto { margin: .8rem 0 0; justify-content: center; text-align: center; }
}

/* ---------- Portada ---------- */
.heroi { padding: clamp(2.5rem, 6vw, 5rem) 0; background: linear-gradient(180deg, var(--color-suau) 0%, #fff 100%); }
.heroi .contenidor { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.heroi .intro { font-size: 1.25rem; }
.arc { border-radius: 999px 999px var(--radi) var(--radi); overflow: hidden; aspect-ratio: 4 / 5; }
.arc img { width: 100%; height: 100%; object-fit: cover; }
.dades-rapides { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; font-size: .95rem; color: var(--color-text-suau); }
.dades-rapides strong { display: block; color: var(--color-fosc); font-size: 1rem; }
@media (max-width: 860px) {
  .heroi .contenidor { grid-template-columns: 1fr; }
  .arc { max-width: 420px; aspect-ratio: 1 / 1; }
}

/* ---------- Serveis ---------- */
.serveis { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.servei {
  display: flex; flex-direction: column; padding: 1.6rem; border-radius: var(--radi);
  background: #fff; border: 1px solid #E6DDEB; text-decoration: none; color: var(--color-text);
  transition: border-color .2s, transform .2s;
}
.servei:hover { border-color: var(--color-principal); transform: translateY(-3px); color: var(--color-text); }
.servei h3 { margin-bottom: .4rem; }
.servei p { color: var(--color-text-suau); font-size: .98rem; margin: 0 0 1rem; }
.servei .mes { margin-top: auto; font-weight: 700; color: var(--color-principal); }
.servei--nou { border: 2px solid var(--color-accent); }
.etiqueta { display: inline-block; background: var(--color-accent); color: var(--color-text); font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .6rem; align-self: flex-start; }

/* ---------- Blocs de text + imatge ---------- */
.dues-columnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dues-columnes--inici { align-items: start; }
.foto-arrodonida { border-radius: var(--radi); overflow: hidden; }
.foto-arrodonida img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .dues-columnes { grid-template-columns: 1fr; } }

.signatura { margin-top: 1.5rem; padding-left: 1rem; border-left: 4px solid var(--color-accent); }
.signatura strong { display: block; color: var(--color-fosc); }

/* ---------- Capçalera de pàgina interior ---------- */
.cap-pagina { background: var(--color-principal); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cap-pagina h1 { color: #fff; margin-bottom: .3em; }
.cap-pagina p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin: 0; }
.molla { font-size: .9rem; margin-bottom: 1rem; }
.molla a { color: rgba(255,255,255,.85); }

/* ---------- Llistes ---------- */
.llista-grups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.grup { background: #fff; border-radius: var(--radi); padding: 1.6rem; border: 1px solid #E6DDEB; }
.seccio--suau .grup { border-color: transparent; }
.grup h3 { color: var(--color-principal); }
.llista { list-style: none; padding: 0; margin: 0; }
.llista li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.llista li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--color-accent); }
.llista--columnes { columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .llista--columnes { columns: 1; } }

.nota { background: var(--color-suau); border-left: 4px solid var(--color-principal); padding: 1rem 1.25rem; border-radius: 0 var(--radi) var(--radi) 0; font-size: .98rem; }

/* ---------- Passos (sòl pelvià) ---------- */
.passos { counter-reset: pas; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2rem; list-style: none; padding: 0; }
.passos li { counter-increment: pas; background: var(--color-suau); border-radius: var(--radi); padding: 1.5rem; }
.passos li::before { content: counter(pas); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--color-principal); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.passos h3 { margin-bottom: .3rem; }
.passos p { margin: 0; color: var(--color-text-suau); font-size: .98rem; }

/* ---------- Equip ---------- */
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.persona { background: #fff; border-radius: var(--radi); overflow: hidden; border: 1px solid #E6DDEB; }
.persona img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.persona div { padding: 1.2rem 1.4rem 1.4rem; }
.persona h3 { margin-bottom: .2rem; }
.persona p { margin: 0; color: var(--color-text-suau); font-size: .95rem; }

.perfil { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; padding: 2.5rem 0; border-bottom: 1px solid #E6DDEB; }
.perfil:last-child { border-bottom: 0; }
.perfil img { border-radius: var(--radi); aspect-ratio: 4 / 5; object-fit: cover; }
.perfil .carrec { color: var(--color-principal); font-weight: 700; margin-bottom: 1rem; }
.perfil details { margin-top: 1rem; background: var(--color-suau); border-radius: var(--radi); padding: .9rem 1.2rem; }
.perfil summary { cursor: pointer; font-weight: 700; color: var(--color-fosc); }
.perfil details ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.perfil details li { margin-bottom: .3rem; font-size: .97rem; }
@media (max-width: 760px) { .perfil { grid-template-columns: 1fr; } .perfil img { max-width: 320px; } }

/* ---------- Galeria ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.galeria img { border-radius: var(--radi); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Contacte / horari ---------- */
.fitxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.fitxa { background: #fff; border-radius: var(--radi); padding: 1.5rem; border: 1px solid #E6DDEB; }
.fitxa h3 { font-size: 1.05rem; color: var(--color-principal); margin-bottom: .5rem; }
.fitxa p { margin: 0; }
.horari { width: 100%; border-collapse: collapse; }
.horari td { padding: .35rem 0; border-bottom: 1px solid #EEE7F2; }
.horari td:last-child { text-align: right; font-weight: 600; }
.mapa { border: 0; width: 100%; height: 380px; border-radius: var(--radi); margin-top: 2rem; }

/* ---------- Franja de crida ---------- */
.crida { background: var(--color-fosc); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.crida .contenidor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.crida h2 { color: #fff; margin: 0 0 .3rem; }
.crida p { margin: 0; color: rgba(255,255,255,.85); }
.crida .botons { margin: 0; }
.crida .boto--contorn { color: #fff; border-color: #fff; }
.crida .boto--contorn:hover { background: #fff; color: var(--color-fosc); }

/* ---------- Peu ---------- */
.peu { background: var(--color-fosc); color: rgba(255,255,255,.85); padding: 1.6rem 0 1rem; font-size: .92rem; }
.peu .contenidor > .columnes { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.peu h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.peu a { color: rgba(255,255,255,.9); }
.peu a:hover { color: #fff; }
.peu ul { list-style: none; margin: 0; padding: 0; }
.peu li { margin-bottom: .4rem; }
.peu .logo img { height: 40px; margin-bottom: 1rem; }
.peu .baix { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.1rem; padding-top: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
@media (max-width: 860px) { .peu .contenidor > .columnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .peu .contenidor > .columnes { grid-template-columns: 1fr; } }

/* ---------- Botó WhatsApp flotant ---------- */
.whatsapp {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- v2: portada ---------- */
.heroi .foto-heroi { border-radius: 200px 200px var(--radi) var(--radi); overflow: hidden; aspect-ratio: 5 / 4; }
.heroi .foto-heroi img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.lema { background: var(--color-principal); color: #fff; text-align: center; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.lema p { margin: 0 auto; max-width: 30ch; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
.text-llarg p { font-size: 1.1rem; }
.text-llarg strong { color: var(--color-fosc); }

/* ---------- v2: tractaments ---------- */
.index-tract { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.index-tract a { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid #E6DDEB; text-decoration: none; font-weight: 600; }
.index-tract a:hover { border-color: var(--color-principal); }
.tractament { scroll-margin-top: 100px; }
.tractament .dues-columnes { align-items: start; }
.tractament .foto-arrodonida img { aspect-ratio: 3 / 2; }
.seccio--suau .grup, .tractament .grup { margin-top: 1.2rem; }
.llista strong { color: var(--color-fosc); }

/* ---------- v2: professionals ---------- */
.perfil .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.2rem; }
.perfil .cols h3 { color: var(--color-principal); font-size: 1.05rem; }
.perfil .cols ul { padding-left: 1.1rem; margin: 0; }
.perfil .cols li { margin-bottom: .35rem; font-size: .96rem; }
@media (max-width: 900px) { .perfil .cols { grid-template-columns: 1fr; } }

/* ---------- v2: centre ---------- */
.galeria-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 1rem; margin-top: 2rem; }
.galeria-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radi); }
.galeria-mosaic .gran { grid-column: span 2; grid-row: span 2; }

@media (max-width: 700px) {
  .galeria-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .galeria-mosaic .gran { grid-column: span 2; grid-row: span 1; }
}

/* ---------- v2: contacte ---------- */
.contacte-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contacte-grid { grid-template-columns: 1fr; } }
.icones { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.icones li { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid #E6DDEB; border-radius: var(--radi); padding: 1rem 1.2rem; }
.icones .ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--color-suau); display: grid; place-items: center; }
.icones svg { width: 24px; height: 24px; fill: var(--color-principal); }
.icones strong { display: block; color: var(--color-fosc); }
.icones a { font-weight: 600; }
.formulari { background: #fff; border: 1px solid #E6DDEB; border-radius: var(--radi); padding: clamp(1.4rem, 3vw, 2.2rem); }
.formulari label { display: block; font-weight: 600; margin: 0 0 .35rem; color: var(--color-fosc); }
.formulari input[type=text], .formulari input[type=tel], .formulari input[type=email], .formulari textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid #D9CCE0; border-radius: 10px; margin-bottom: 1.1rem; background: #fff; color: var(--color-text); }
.formulari input:focus, .formulari textarea:focus { outline: none; border-color: var(--color-principal); box-shadow: 0 0 0 3px rgba(139,20,172,.15); }
.formulari textarea { min-height: 150px; resize: vertical; }
.formulari .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--color-text-suau); margin-bottom: 1.2rem; }
.formulari .check input { margin-top: .3rem; }
.formulari .trampa { position: absolute; left: -9999px; }
.avis { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 600; }
.avis--ok { background: #E7F6EC; color: #1C6B3A; }
.avis--error { background: #FBE9EC; color: #A12A3C; }
.avis[hidden] { display: none; }

/* ---------- v2: peu ---------- */
.peu-simple { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.peu-marca { display: flex; align-items: center; gap: 1rem; }
.peu-marca p { margin: 0; }
.peu-simple .logo img { height: 48px; margin: 0; }
.peu-simple p { margin: .5rem 0 0; }
.insta { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; }
.insta svg { width: 26px; height: 26px; fill: #fff; }
.legals { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* ---------- v2: portada amb foto de fons ---------- */
.heroi-foto {
  position: relative; min-height: min(78vh, 640px); display: flex; align-items: center;
  background: #F4EEF7 url("../img/portada.jpg") right center / auto 100% no-repeat;
}
.heroi-foto::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #F4EEF7 0%, #F4EEF7 40%, rgba(244,238,247,0) 58%);
}
.heroi-foto .contenidor { position: relative; padding: 4rem 0; }
.heroi-foto .text { max-width: 560px; }
@media (max-width: 860px) {
  .heroi-foto { background-size: 100% auto; background-position: center top; align-items: flex-end; min-height: 0; }
  .heroi-foto::before { top: calc(56.2vw - 40px); background: linear-gradient(180deg, rgba(244,238,247,0) 0, #F4EEF7 40px); }
  .heroi-foto .contenidor { padding: calc(56.2vw + 1rem) 0 2.5rem; }
}
.serveis--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .serveis--5 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }

/* ---------- R1 ---------- */
.serveis--10 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .serveis--10 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.serveis--10 .servei { padding: 1.3rem; }
.serveis--10 .servei h3 { font-size: 1.1rem; }
.servei--destacat { background: var(--color-suau); border-color: #D9C6E3; }
.seccio--suau .servei--destacat { background: #fff; border: 2px solid var(--color-principal); }

.abordatge { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.abordatge li { background: #fff; border: 1px solid #E6DDEB; border-radius: var(--radi); padding: 1rem 1.1rem; font-weight: 600; color: var(--color-fosc); }

.foto-banner { border-radius: var(--radi); overflow: hidden; margin-top: 2rem; }
.foto-banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 700px) { .foto-banner img { aspect-ratio: 16 / 9; } }
.subtitol { font-size: 1.15rem; font-weight: 700; color: var(--color-principal); margin-top: -.3rem; }
.dues-llistes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .dues-llistes { grid-template-columns: 1fr; } }
.dues-llistes .grup h3 { font-size: 1.05rem; }
.frase-final { font-weight: 700; color: var(--color-fosc); }

.avantatges { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.avantatges li { display: flex; gap: .6rem; align-items: center; background: #fff; border-radius: var(--radi); padding: .9rem 1rem; font-weight: 700; color: var(--color-fosc); border: 1px solid #E6DDEB; }
.avantatges li::before { content: ""; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--color-principal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.6 5.4 12.5l-1.4 1.4 5.5 5.5L20 8.9l-1.4-1.4z'/%3E%3C/svg%3E") center / 80% no-repeat; }

.tipus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .tipus { grid-template-columns: 1fr; } }
.tipus div { background: #fff; border-radius: var(--radi); padding: 1.4rem; border-top: 4px solid var(--color-principal); }
.tipus h3 { margin-bottom: .4rem; }
.tipus p { margin: 0; color: var(--color-text-suau); }
.foto-vertical img { aspect-ratio: auto !important; max-height: 560px; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radi); }

.bio p { font-size: 1.05rem; }
.bio strong { color: var(--color-fosc); }

.mapa-caixa { margin-top: 2rem; border-radius: var(--radi); background: var(--color-suau); min-height: 380px; display: grid; place-items: center; text-align: center; padding: 2rem; overflow: hidden; }
.mapa-caixa p { margin: 0 auto 1rem; color: var(--color-text-suau); max-width: 46ch; }
.mapa-caixa iframe { border: 0; width: 100%; height: 380px; }
.mapa-caixa.carregat { padding: 0; display: block; }

.formulari .consentiments { margin: .4rem 0 1.2rem; }
.formulari .check { margin-bottom: .8rem; }
.formulari .obligatori { color: var(--color-principal); font-weight: 700; }
.captcha { background: var(--color-suau); border-radius: 10px; padding: 1rem 1rem .2rem; margin-bottom: 1.2rem; }
.captcha input { max-width: 140px; }
.nota-petita { font-size: .85rem; color: var(--color-text-suau); }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.3rem; }

/* ---------- R2 ---------- */
.columna-fotos { display: grid; gap: 1rem; }
.foto-extra { max-width: 70%; justify-self: end; }
.tractament .foto-extra img { aspect-ratio: 1 / 1; }
.recaptcha-caixa { margin-bottom: 1.2rem; min-height: 1px; }
.mapa-avis { text-align: center; }
.boto--gris { background: #F1ECF4; border-color: #F1ECF4; color: var(--color-text); }
.boto--gris:hover { background: #E4DAEA; border-color: #E4DAEA; color: var(--color-fosc); }

.cookies {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 100;
  width: min(520px, calc(100% - 2rem)); max-height: calc(100vh - 2.4rem); overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 1.6rem 1.6rem 1.1rem;
  box-shadow: 0 18px 50px rgba(43, 35, 48, .28); font-size: .93rem;
}
.cookies[hidden] { display: none; }
.cookies h2 { font-size: 1.1rem; text-align: center; margin: 0 1.5rem .9rem; color: var(--color-text); }
.cookies > p { color: var(--color-text-suau); margin: 0 0 1rem; }
.cookies-tanca { position: absolute; top: .8rem; right: .9rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--color-text); }
.cookies-prefs { display: grid; gap: .6rem; margin-bottom: 1rem; }
.cookies-prefs[hidden] { display: none; }
.cookies-cat { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #F6F3F8; border-radius: 10px; padding: .8rem 1rem; cursor: default; }
label.cookies-cat { cursor: pointer; }
.cookies-cat strong { display: block; color: var(--color-text); }
.cookies-cat span { display: block; font-size: .83rem; color: var(--color-text-suau); }
.cookies-cat em { font-style: normal; font-weight: 700; color: var(--color-principal); white-space: nowrap; font-size: .85rem; }
.cookies-cat input { position: absolute; opacity: 0; pointer-events: none; }
.interruptor { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #CFC6D5; position: relative; transition: background .2s; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cookies-cat input:checked + .interruptor { background: var(--color-principal); }
.cookies-cat input:checked + .interruptor::after { transform: translateX(18px); }
.cookies-cat input:focus-visible + .interruptor { outline: 3px solid var(--color-principal); outline-offset: 2px; }
.cookies-botons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cookies-botons .boto { justify-content: center; padding: .75rem .6rem; font-size: .92rem; border-radius: 10px; text-align: center; }
.cookies-links { display: flex; justify-content: center; gap: 1.2rem; margin: .9rem 0 0; font-size: .85rem; }
.cookies-links a { color: var(--color-text); }
@media (max-width: 520px) {
  .cookies { right: .6rem; bottom: .6rem; width: calc(100% - 1.2rem); padding: 1.3rem 1.1rem .9rem; }
  .cookies-botons { grid-template-columns: 1fr; }
}
button, input, textarea, select { font-family: inherit; }

/* ---------- R3: canvi d'idioma ---------- */
.capcalera-dreta { display: flex; align-items: center; gap: .6rem; }
.idioma {
  flex: none; font-weight: 800; font-size: .85rem; letter-spacing: .06em; line-height: 1;
  color: var(--color-principal); border: 2px solid var(--color-principal); border-radius: 999px;
  padding: .45rem .7rem; text-decoration: none;
}
.idioma:hover { background: var(--color-principal); color: #fff; }
