/* Disseny comú dels webs de les botigues. Les mides reprodueixen l'original (mesurades a 1440 px).
   Els colors de cada botiga els sobreescriu la seva configuració (variables de :root al <head>). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Colors i tipografia: valors de reserva = tema base. Els defineix el tema de cada botiga a assets/theme.css (carregat després). */
  --color-primary: #965596; --color-action: #995c99; --color-primary-strong: #784478; --color-accent: #f3b523;
  --color-on-primary: #ffffff; --color-ink: #000000; --color-paper: #ffffff;
  --color-text-strong: #333333; --color-text-muted: #666666; --color-line: #eeeeee; --color-line-strong: #dddddd;
  --color-surface-dim: #e8e6e6; --color-danger: #ff6b81; --radius: 0;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --font-heading: var(--font);
  /* Marges laterals: 96 px a 1440 px d'ample (contingut de 1248 px) i proporcionals en pantalles més petites */
  --pad: clamp(1.25rem, 6.667vw, 6rem);
  --pad-in: clamp(1.25rem, 12.78vw, 11.5rem); /* pàgines interiors: contingut més estret (1072 px a 1440) */
  --gap: 0.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
body { margin: 0; font-family: var(--font); font-size: 0.9375rem; line-height: 1.4; color: var(--color-ink); background: var(--color-paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; overflow-wrap: anywhere; } /* una paraula llarga (o el correu) no ha de desbordar si el text creix */
p { margin: 0 0 0.9375rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--color-accent); }

/* Marges segures: amb viewport-fit=cover, en horitzontal (mòbil apaïsat) el contingut no passa sota l'osca ni les vores arrodonides */
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.wrap-in { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: max(var(--pad-in), env(safe-area-inset-left)) max(var(--pad-in), env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--color-accent); color: var(--color-ink); padding: .6rem 1rem; font-weight: 600; transition: top .15s; }
.skip:focus { top: 1rem; }
.icon { width: 0.9375rem; height: 0.9375rem; flex: none; }
.eyebrow, .contact-card, .btn { overflow-wrap: anywhere; }
.btn { max-width: 100%; }
/* Els paràgrafs (i els temes que els posen overflow-wrap: break-word) no han d'anul·lar-ho on hi ha correus i telèfons llargs */
.site-footer address p, .contact-card p, .info-strip-list li, .nav-info p { overflow-wrap: anywhere; }
.eyebrow { font-size: 0.9375rem; line-height: 1.3333; letter-spacing: 0.3125rem; text-transform: uppercase; font-weight: 400; margin: 0 0 1rem; }

/* ---------- Barra superior (62 px) ---------- */
.topbar { background: var(--color-primary); color: var(--color-on-primary); font-size: 0.9375rem; line-height: 1.25; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 3.875rem; }
.topbar-info { display: flex; gap: 2.5rem; margin: 0; }
.topbar-info > * { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: 1rem; }
.lang a { text-decoration: none; }
.lang a[aria-current] { text-decoration: underline; }
.topbar-ig { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-paper); color: var(--color-ink); }
.topbar-ig .icon { width: 16px; height: 16px; }

/* ---------- Capçalera i menú (175 px) ---------- */
.site-header { background: var(--color-paper); position: relative; z-index: 20; min-height: 10.9375rem; padding-top: 0.9375rem; }
.header-in { display: flex; justify-content: center; align-items: center; min-height: 10rem; }
.nav ul { display: flex; align-items: center; justify-content: center; }
.nav a { display: block; position: relative; padding: 0.9375rem 1.25rem; font: 600 0.9375rem/1 var(--font); text-transform: uppercase; text-decoration: none; }
.nav a[aria-current]:not(.brand)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-ink); }
.brand-li { margin: 0 4rem; }
.nav a.brand { padding: 0; }
.brand img { width: 10rem; height: 5.9375rem; object-fit: contain; }
.brand-text { font: 700 1.5rem/1 var(--font); color: var(--color-primary); }
.brand-mobile, .menu-btn, .header-quick, .nav-lang, .nav-legal { display: none; }
.header-quick { gap: 0.25rem; margin-left: auto; margin-right: 0.5rem; }
.header-quick a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--color-primary); }
.header-quick .icon { width: 22px; height: 22px; }
.nav-lang { gap: 1.25rem; padding: 1rem 0; }
.nav-lang a { padding: 0; font-weight: 600; }

/* ---------- Capçalera enganxada: quan la capçalera surt de la pantalla en queda una versió compacta (main.js afegeix .is-stuck).
   .header-slot guarda el lloc a la pàgina perquè el contingut no salti. ---------- */
html { scroll-padding-top: 5rem; }
.site-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; min-height: 0; padding-top: 0; box-shadow: 0 1px 0 var(--color-line-strong), 0 0.5rem 1.5rem rgb(0 0 0 / 0.08); animation: header-in 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.site-header.is-stuck .header-in { min-height: 4.25rem; }
.site-header.is-stuck .brand img { width: 6.5rem; height: 2.75rem; }
@keyframes header-in { from { transform: translateY(-100%); } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-0.5rem); } }

/* ---------- Botons (quadrats, com l'original) ---------- */
.btn { display: inline-block; background: var(--color-accent); color: var(--color-ink); border: 1px solid var(--color-accent); text-decoration: none; font: 400 0.9375rem/normal var(--font); padding: 0.9375rem 1.875rem; border-radius: var(--radius); cursor: pointer; text-align: left; }
/* Retroalimentació en prémer (100–160 ms, ease-out); el :hover es queda a la secció «només amb ratolí» */
.btn { transition: filter 150ms ease-out, transform 150ms ease-out; }
.btn:active { transform: scale(0.97); }
.btn .icon { display: none; }
.btn-chev { display: inline-flex; align-items: center; gap: 1rem; text-transform: uppercase; }
.btn-chev .icon { display: block; width: 0.875rem; height: 0.875rem; stroke-width: 3; }
.btn-purple { background: var(--color-action); border-color: var(--color-action); color: var(--color-on-primary); }
.btn-black { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }

/* ---------- Imatges de fons ---------- */
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero, .page-hero.has-bg, .contact-band, .contact-hero { position: relative; isolation: isolate; color: var(--color-on-primary); }
.hero::after, .page-hero.has-bg::after, .contact-band::after, .contact-hero .bgwrap::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary) 78%, transparent); z-index: -1; }

/* ---------- Portada: capçalera principal ---------- */
.hero { min-height: calc(70vh + 2rem); min-height: calc(70svh + 2rem); padding: 1rem 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; }
.hero .eyebrow { font-size: 1.03125rem; line-height: 1.4; margin-bottom: 2.125rem; }
.hero h1 { font-size: 6.25rem; line-height: 1.1; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--color-accent); font-weight: 700; line-height: 1.4; }

/* ---------- Banda de text en moviment ---------- */
.ticker { background: var(--color-accent); overflow: hidden; white-space: nowrap; padding: 2rem 0; } /* sense marge a sota: s'ajunta amb el bloc següent */
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 80s) linear infinite; }
.ticker ul { display: flex; flex: none; }
.ticker li { font: 500 1.5625rem/1.4 var(--font); text-transform: uppercase; padding-right: 1.5625rem; }
@keyframes ticker { to { transform: translateX(-25%); } }

/* ---------- Foto + text (portada: lila 4:3; interior: blanc 1:1) ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--color-primary); color: var(--color-on-primary); }
.about-media { position: relative; min-width: 0; aspect-ratio: 4 / 3; }
.about-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 4rem var(--pad); }
.about-panel .eyebrow { margin-bottom: 1rem; }
.about-panel h2 { font-size: 2.5rem; line-height: 1.1; text-transform: uppercase; margin-bottom: 1rem; }
.about-panel p { margin-bottom: 0.9375rem; }
.about-panel p:last-of-type { margin-bottom: 2.625rem; }
.about-split.is-light { background: var(--color-paper); color: var(--color-ink); }
.about-split.is-light .about-media { aspect-ratio: 1 / 1; }
.about-split.is-light .about-panel { padding: 4rem; }
.about-split.is-light h2 { font-size: 1.875rem; line-height: 1.1; text-transform: none; margin-bottom: 2rem; }
.about-split.is-light p { text-align: justify; }
.about-split.is-light p:last-of-type { margin-bottom: 2rem; }

/* ---------- Banda groga de serveis ---------- */
.services-band { background: var(--color-accent); min-height: 27.625rem; padding: 1rem 0; display: flex; align-items: center; }
.services-band > .wrap { width: 100%; }
.services-in { display: grid; grid-template-columns: repeat(2, minmax(0, 37rem)); gap: 0 4rem; align-items: center; justify-content: center; }
.services-intro h2 { font-size: 2.5rem; line-height: 1.1; text-transform: uppercase; color: var(--color-text-strong); margin-bottom: 2.5rem; }
.services-band-page { min-height: 20.4375rem; align-items: flex-start; padding-top: 2rem; }

/* ---------- Carrusels (Swiper-like, vegeu main.js) ---------- */
.carousel { position: relative; min-width: 0; }
.carousel-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-rail { display: flex; gap: var(--gap); }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - (var(--per, 1) - 1) * var(--gap)) / var(--per, 1)); scroll-snap-align: start; min-width: 0; }
.carousel.is-js .carousel-track { overflow: hidden; scroll-snap-type: none; }
.carousel.is-js .carousel-rail { will-change: transform; }
.carousel.is-js .carousel-rail.anim { transition: transform .3s ease; }
.carousel-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--color-on-primary); cursor: pointer; z-index: 2; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
.carousel-btn .icon { width: 28px; height: 28px; stroke-width: 2.5; }
.carousel-btn { transition: transform 100ms ease-out; }
.carousel-btn:active { transform: scale(0.95); }
.carousel-btn.prev { left: 8px; } .carousel-btn.next { right: 8px; }
/* Punts: anell (i punt ple si és l'actiu) en --color-ink, que el tema ja valida sobre paper i accent. Àrea tàctil de 28 px (44 px amb dit). */
.carousel-dots { display: flex; justify-content: center; gap: 0; margin-top: 1rem; flex-wrap: wrap; }
.carousel-dots button { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel-dots button::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--color-ink); }
.carousel-dots button[aria-current="true"]::before { background: var(--color-ink); }
@media (pointer: coarse) { .carousel-dots button { width: 44px; height: 44px; } .carousel-dots button::before { inset: 16px; } }
.carousel-photos, .carousel-photos .carousel-track, .carousel-photos .carousel-rail, .carousel-photos .slide { height: 100%; }
.carousel-photos .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-icons .slide { text-align: center; min-height: 12.5rem; }
.carousel-icons .slide img { width: 100%; height: auto; margin: 0 auto 1rem; }
/* Cercles grans (opció «Mida de les icones»): el cercle de la icona estàndard fa 100 px dins un PNG de 450×193 amb molt de marge transparent.
   Es mostra el cercle a --ic-circle de diàmetre retallant el marge; les cinc variables descriuen la geometria de la imatge i es poden sobreescriure al theme.css per a unes altres icones. */
.carousel-icons { --ic-w: 450; --ic-h: 193; --ic-cx: 224.5; --ic-cy: 123.5; --ic-d: 100; --ic-circle: 6rem; }
.carousel-icons .icon-circle { position: relative; width: calc(var(--ic-circle) + 1rem); height: calc(var(--ic-circle) + 1rem); margin: 0 auto 0.75rem; overflow: hidden; }
.carousel-icons .icon-circle img { position: absolute; left: 50%; top: 50%; width: calc(var(--ic-w) / var(--ic-d) * var(--ic-circle)); max-width: none; height: auto; margin: 0; transform: translate(calc(-1 * var(--ic-cx) / var(--ic-w) * 100%), calc(-1 * var(--ic-cy) / var(--ic-h) * 100%)); }
.carousel-icons .slide span { display: block; font-size: 1.40625rem; line-height: 1.1111; }
.services-band-page .carousel-icons .slide { min-height: 0; }
.services-band-page .carousel-icons .slide span { font-size: 1.17188rem; line-height: 1.0667; }
.carousel-brands .slide img { width: 100%; aspect-ratio: 306 / 85; object-fit: contain; }

/* ---------- Banda de contacte amb foto ---------- */
.contact-band { text-align: center; min-height: 33.1875rem; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 4rem 0; }
.contact-band-in { max-width: calc(51.6875rem + var(--pad) * 2); display: flex; flex-direction: column; align-items: center; }
.contact-band .eyebrow { margin-bottom: 2rem; }
.contact-band h2 { font-size: 2.5rem; line-height: 1.1; text-transform: uppercase; margin-bottom: 2rem; }
.contact-band p:not(.eyebrow) { margin-bottom: 2rem; }

/* ---------- Pàgines interiors ---------- */
.page-hero { background: var(--color-primary); color: var(--color-on-primary); min-height: 11.25rem; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; }
.page-hero h1 { font-size: 1.875rem; line-height: 1.1; font-weight: 700; text-transform: uppercase; }
.section { padding: 4rem 0; }
.prose h2 { font-size: 1.875rem; line-height: 1.1; font-weight: 700; margin-bottom: 1rem; }
.prose p { margin-bottom: 0.9375rem; }
.prose .lead { font-style: italic; font-size: 1.21875rem; line-height: 1.3; font-weight: 400; color: var(--color-text-muted); }
.prose.center { text-align: center; max-width: 50.6875rem; margin-inline: auto; }
.prose.center h2 { color: var(--color-text-strong); font-weight: 700; margin-bottom: 2rem; }
.prose .btn { margin-top: 1.0625rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 4rem; align-items: start; }
.two-col .prose p { text-align: justify; }
.two-col h2 { font-weight: 600; }
.two-col .prose p:last-child { margin-bottom: 0; }

.brands-wrap { padding-top: 6.0625rem; padding-bottom: 1.1875rem; }
.gallery-band { background: var(--color-accent); padding: 6.25rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.sitemap-list { columns: 2 16rem; font-size: 1.125rem; line-height: 1.1667; }
.sitemap-list li { padding: 0.5rem 0; break-inside: avoid; }

/* ---------- Contacte ---------- */
.contact-hero { background: var(--color-primary-strong); padding: 6rem 0 7rem; }
.contact-hero .bgwrap { position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; overflow: hidden; }
.contact-hero .bgwrap .bg { z-index: -2; }
.contact-hero .contact-inner { width: min(37rem, 100% - 2 * var(--pad)); margin-inline: auto; text-align: center; }
.contact-hero h1 { font-size: 1.875rem; line-height: 1.1; font-weight: 700; margin-bottom: 1rem; }
.contact-hero .sub { font-weight: 500; text-transform: uppercase; line-height: 1.1333; margin-bottom: 0.9375rem; }
.contact-hero .intro p { margin-bottom: 0.9375rem; }
.contact-hero .rule { width: 120px; height: 3px; background: var(--color-accent); margin: 2.0625rem auto 2.125rem; border: 0; }
.contact-card { font-style: normal; margin-bottom: 2.625rem; }
.contact-card strong { display: block; font-weight: 600; text-transform: uppercase; line-height: 1.25; margin-bottom: 0.6875rem; }
.contact-card p { margin: 0 0 0.28125rem; line-height: 1.25; }
.form { width: min(57.5rem, 100% - 2 * var(--pad)); margin: 0 auto; text-align: left; }
.form .field { margin: 0 0 0.375rem; }
.form label { display: block; font-weight: 400; margin-bottom: 0.5rem; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea { width: 100%; font: inherit; color: var(--color-ink); background: var(--color-paper); border: 0; border-radius: var(--radius); padding: 0.625rem 0.75rem; }
/* 21 px d'interlineat + 2 × 9,5 px = 40 px; min-height (no height) perquè el camp creixi si el text creix */
.form input[type="text"], .form input[type="tel"], .form input[type="email"] { min-height: 2.5rem; padding-block: 0.59375rem; }
.form textarea { height: 6.25rem; min-height: 6.25rem; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--color-accent); }
.form .check { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.625rem; }
.form .req-star { margin-left: 0.0625rem; }
.form .check input { width: 0.875rem; height: 0.875rem; accent-color: var(--color-accent); flex: none; margin: 0; }
.form .check label { font-weight: 400; margin: 0; }
.form a { color: var(--color-on-primary); }
.form .hp { position: absolute; left: -9999px; }
.form .req { font-size: 0.5625rem; line-height: 1.4444; margin: 1.5rem 0 1rem; }
/* Camp invàlid: contorn discontinu en --color-on-primary (contrast validat sobre el fons de contacte) + el text d'error. El color no és l'únic senyal. */
.form [aria-invalid="true"] { outline: 3px dashed var(--color-on-primary); outline-offset: 0; }
.form-nojs { display: none; width: min(57.5rem, 100% - 2 * var(--pad)); margin: 0 auto 1.5rem; text-align: center; }
.form .field-error { margin: 0.25rem 0 0.5rem; color: var(--color-on-primary); }
.motion-toggle { display: none; } /* el botó de pausa el mostra el tema (vegeu themes/README.md) */
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.form-status { margin: 0; font-weight: 600; }
.form-status:not(:empty) { margin-top: 1rem; }
.gdpr { font-size: 0.5625rem; line-height: 1.4444; margin: 2rem 0 0; }
.gdpr summary { cursor: pointer; font-weight: 400; text-transform: uppercase; list-style: none; }
.gdpr summary::-webkit-details-marker { display: none; }
.gdpr p { margin: 0 0 0.375rem; }
.map { width: 100%; height: 27.78vw; min-height: 16.25rem; background: var(--color-surface-dim); display: grid; place-items: center; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-consent { max-width: 34rem; padding: 1.5rem; text-align: center; }
.map-consent p { margin-bottom: 1.25rem; }
.map-consent a { color: var(--color-primary); }
.map-link { background: var(--color-accent); text-align: center; padding: 0.75rem; margin: 0; font-size: 0.875rem; line-height: 1.5; }

/* ---------- Textos legals ---------- */
.section.plain { padding: 4rem 0 5rem; }
.plain-title { font-size: 1.875rem; line-height: 1.2; font-weight: 400; margin-bottom: 4.3125rem; }
.legal h2 { font-size: 1.40625rem; line-height: 1.2; font-weight: 400; text-transform: uppercase; margin: 3.5rem 0 0.5625rem; }
.legal .plain-title + h2 { margin-top: 0; }
.legal h3 { font-size: 1.125rem; line-height: 1.3333; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { margin-bottom: 0.9375rem; }
.legal ul { list-style: disc; padding-left: 1.375rem; margin-bottom: 0.9375rem; }
.legal { overflow-wrap: anywhere; }
.legal a { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: 0.875rem; line-height: 1.5; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--color-line-strong); vertical-align: top; }

/* ---------- Peu ---------- */
.site-footer { background: var(--color-accent); color: var(--color-ink); padding-top: 4rem; padding-bottom: env(safe-area-inset-bottom); }
.footer-contact, .site-footer address { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-contact h2 { font-size: 1.0125rem; line-height: 1.4; font-weight: 700; margin-bottom: 1.375rem; }
.site-footer address { font-style: normal; font-size: 0.875rem; line-height: 1.5; }
.site-footer address p { display: flex; gap: 0.375rem; align-items: flex-start; margin: 0 0 0.125rem; line-height: 1.4286; }
.site-footer .footer-hours p { line-height: 1.25; }
.site-footer address .icon { margin-top: 0.1875rem; }
.footer-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 4rem; }
.footer-col { min-width: 0; }
/* Sense logos de finançament, el bloc de contacte va centrat al peu */
.footer-solo { justify-content: center; text-align: center; }
.footer-solo .footer-cols { justify-content: center; text-align: left; }
.footer-eu { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; max-width: 100%; }
.footer-eu img { height: 2.375rem; width: auto; }
.footer-legal { margin-top: 3rem; padding-block: 0 1.9375rem; }
.footer-legal::before { content: ""; display: block; border-top: 1px solid var(--color-ink); margin-bottom: 2rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.875rem; font-size: 0.875rem; line-height: 1.4; }
.footer-legal a { text-decoration: none; } .footer-legal a[aria-current] { text-decoration: underline; }

/* Hover només amb ratolí: en tàctil el :hover es queda enganxat després de tocar */
@media (hover: hover) and (pointer: fine) {
  .topbar a:hover { text-decoration: underline; }
  .nav a:hover:not(.brand) { text-decoration: underline; text-underline-offset: 6px; }
  .btn:hover { filter: brightness(1.06); }
  .footer-legal a:hover { text-decoration: underline; }
}

/* ---------- Accions de la portada: arribar-hi o trucar ---------- */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2rem 0 0; }
.hero-actions .btn { text-align: center; }

/* ---------- Franja d'informació: horari, adreça i com arribar-hi sempre a la vista ---------- */
.info-strip { background: var(--color-paper); border-bottom: 1px solid var(--color-line-strong); }
.info-strip-list { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; padding-block: 1.5rem; }
.info-strip-list li { display: flex; gap: 0.75rem; align-items: flex-start; flex: 1 1 14rem; min-width: 0; }
.info-strip-list .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--color-primary); }
.info-strip-list strong { display: block; margin-bottom: 0.15rem; font-weight: 600; }
.info-strip-list span, .info-strip-list a { display: block; }
.info-strip-list a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Serveis en graella (tots a la vista, agrupats) i mur de logos ---------- */
.services-band.is-grid { align-items: flex-start; padding-block: 4rem; }
.services-band.is-grid .services-in { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; justify-content: stretch; align-items: start; }
.service-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem 3rem; align-items: start; }
.service-group h3 { margin-bottom: 1rem; font-size: 1.25rem; line-height: 1.2; color: var(--color-text-strong); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 1.5rem 1rem; }
.services-grid li { text-align: center; }
.services-grid img { width: 100%; max-width: 10rem; height: auto; margin: 0 auto 0.75rem; }
.services-grid span { display: block; font-size: 1.125rem; line-height: 1.2; }
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 2rem 1.5rem; align-items: center; }
.brand-wall img { width: 100%; aspect-ratio: 306 / 85; object-fit: contain; }
@media (max-width: 40em) { .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; } }

/* Dades de contacte dins el menú mòbil (la barra superior s'hi amaga) */
.nav-info { display: none; }
@media (max-width: 53.75em) {
  .nav-info { display: block; }
  .nav-info p { margin: 0; padding: 1rem 0 0.5rem; font-size: 0.875rem; color: var(--color-text-muted); }
}

/* ---------- Tauleta (640–1023 px) ---------- */
@media (max-width: 63.9375em) {
  .ticker li { font-size: 1.875rem; line-height: 1.1667; }
  .services-in { grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .about-panel { padding: 3rem var(--pad); }
  .about-panel h2, .services-intro h2, .contact-band h2 { font-size: 1.875rem; line-height: 1.1; }
}

/* ---------- Mòbil ---------- */
@media (max-width: 53.75em) {
  .topbar { display: none; }
  .site-header { min-height: 3.5rem; padding-top: 0; }
  .header-in { min-height: 3.5rem; justify-content: space-between; }
  .brand-mobile { display: block; } .brand-mobile img { width: 3.75rem; height: 2.5rem; }
  .site-header.is-stuck .header-in { min-height: 3.5rem; }
  .site-header.is-stuck .brand-mobile img { width: 3.75rem; height: 2.5rem; }
  .brand-li { display: none; }
  .header-quick { display: flex; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--color-ink); transition: transform 100ms ease-out; }
  .menu-btn:active { transform: scale(0.95); }
  .menu-btn .icon { width: 26px; height: 26px; } .menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; } .menu-btn[aria-expanded="true"] .i-close { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--color-paper); border-top: 1px solid var(--color-line); box-shadow: 0 12px 24px rgb(0 0 0 / .12); display: none; }
  .nav.open { display: block; transform-origin: top; animation: nav-in 200ms cubic-bezier(0.23, 1, 0.32, 1); }
  .nav ul { display: block; padding: 0.5rem var(--pad) 1.25rem; }
  .nav li { border-bottom: 1px solid var(--color-line); }
  .nav a { padding: 1rem 0; } .nav a[aria-current]:not(.brand)::after { display: none; } .nav a[aria-current] { color: var(--color-primary); }
  .nav-legal { display: block; }
  .nav-legal a { font-weight: 400; text-transform: none; padding: 0.625rem 0; }
  .nav-lang { display: flex; border-bottom: 0 !important; }
  .nav .nav-cta { border-bottom: 0; padding: 1rem 0 0.25rem; }
  .nav .nav-cta a { padding: 0.9375rem 1.875rem; text-align: center; background: var(--color-accent); color: var(--color-ink); border: 1px solid var(--color-accent); }
  .nav .nav-cta a[aria-current] { color: var(--color-ink); }
  .nav .nav-legal-first { margin-top: 1rem; border-top: 1px solid var(--color-line-strong); }
  .nav-legal a { font-size: 0.875rem; color: var(--color-text-muted); }
  .hero { min-height: calc(70vh + 1rem); min-height: calc(70svh + 1rem); }
  .hero h1 { font-size: 2.5rem; line-height: 1.1; } .hero h1 .accent { line-height: 1.4; }
  .hero .eyebrow { font-size: 0.875rem; line-height: 1.65; letter-spacing: 0.25rem; margin-bottom: 1.25rem; }
  .ticker li { font-size: 1.875rem; line-height: 1.4; }
  .about-split, .about-split.is-light { grid-template-columns: minmax(0, 1fr); }
  .about-media, .about-split.is-light .about-media { aspect-ratio: 4 / 3; }
  .about-panel, .about-split.is-light .about-panel { padding: 3rem var(--pad); }
  .services-band { padding: 3.5rem 0; }
  .services-in { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2.5rem 0; }
  .contact-band { min-height: 0; padding: 3.5rem 0 5.1875rem; }
  .footer-legal { margin-top: 2.5rem; } .footer-legal::before { margin-bottom: 1.5rem; }
  .site-footer { padding-top: 3.5rem; }
}
@media (max-width: 40em) { .carousel-icons .slide span { font-size: 1.125rem; line-height: 1.2222; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .carousel.is-js .carousel-rail.anim { transition: none; }
  .site-header.is-stuck, .nav.open { animation: none; }
  .btn, .menu-btn, .carousel-btn { transition: none; }
  .btn:active, .menu-btn:active, .carousel-btn:active { transform: none; }
}

/* ---------- Mòbil (≤640 px): mesures de l'original a 390 px ---------- */
@media (max-width: 40em) {
  :root { --pad: 3rem; --pad-in: 3rem; }
  .hero { padding: 1rem 0 6.375rem; }
  .ticker { padding: 1.5rem 0; }
  .hero h1 { font-size: 2.5rem; line-height: 1.1; }
  .hero h1 .accent { line-height: 1.4; }
  .hero .eyebrow { font-size: 0.9375rem; line-height: 1.54; letter-spacing: 0.3125rem; margin-bottom: 1.5rem; }
  .page-hero { min-height: 0; padding: 5rem 0; }
  .page-hero h1 { font-size: 1.375rem; line-height: 1.1; padding-inline: 0.5rem; }
  /* La portada mostra primer el text i després la foto; les pàgines interiors, al revés */
  .about-split:not(.is-light) .about-media { order: 2; }
  .about-panel { padding: 3rem var(--pad); align-items: center; text-align: center; }
  .about-panel h2, .services-intro h2, .contact-band h2 { font-size: 1.875rem; line-height: 1.1; }
  .about-split.is-light .about-media { aspect-ratio: 1 / 1; }
  .about-split.is-light .about-panel { padding: 3rem 2rem 2rem; align-items: center; text-align: left; }
  .about-split.is-light h2 { font-size: 1.5625rem; line-height: 1.1; margin-bottom: 2rem; }
  .services-intro { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .about-split:not(.is-light) .about-panel { padding-bottom: 6.4375rem; }
  .services-band { padding: 5.5625rem 0 8rem; min-height: 0; }
  .services-in { gap: 4rem; }
  .services-band-page { padding: 2rem 0 0; min-height: 0; }
  .carousel-icons .slide span { font-size: 1.40625rem; line-height: 1.1; padding-inline: 1rem; }
  .services-band-page .carousel-icons .slide span { font-size: 1.17188rem; line-height: 1.0987; }
  .prose h2 { font-size: 1.5625rem; line-height: 1.1; }
  .prose .lead { line-height: 1.4; }
  .section { padding: 3rem 0; }
  .contact-hero { padding: 3rem 0 3.9375rem; }
  .contact-hero .rule { margin: 1.5625rem auto 1.625rem; }
  .contact-card { margin-bottom: 1.625rem; }
  .contact-card strong { margin-bottom: 0.5rem; }
  .contact-hero h1 { font-size: 1.5625rem; line-height: 1.1; }
  .contact-hero .sub { line-height: 1.1; }
  .section.plain .wrap-in { padding-inline: max(0.9375rem, env(safe-area-inset-left)) max(0.9375rem, env(safe-area-inset-right)); }
  .plain-title { font-size: 1.875rem; line-height: 1.1; margin-bottom: 4.3125rem; }
  .legal h2 { font-size: 1.40625rem; line-height: 1.1; margin-top: 3.5rem; margin-bottom: 0.875rem; }
  .prose.center { margin-top: 2rem; }
  .prose.center h2 { margin-bottom: 1.5rem; }
  .gallery-band { padding: 3.25rem 0; }
  .section { padding: 2rem 0 2rem; }
  .services-band-page { min-height: 18.125rem; padding: 1rem 0 3.375rem; }
  .site-footer { padding: 4.0625rem 0 4rem; text-align: center; }
  .footer-in { flex-direction: column; align-items: center; gap: 2.125rem; }
  .footer-contact h2 { margin-bottom: 1.5rem; }
  .site-footer address p { justify-content: center; }
  .footer-eu { flex-wrap: nowrap; justify-content: center; gap: 0.25rem; width: 100%; }
  .footer-eu img { height: auto; min-width: 0; }
  .footer-eu img:nth-child(1) { width: 6.75rem; } .footer-eu img:nth-child(2) { width: 3.75rem; } .footer-eu img:nth-child(3) { width: 6.625rem; }
  .footer-legal { display: none; }
}
