/* =====================================================================
   JP Obres — Estils del web de Jaume Parramon (Figma, Disseny 5) · v1.3
   Colors, amplades i tipografies: variables de :root.
   ===================================================================== */
:root {
	--jp-bg: #f4eee2;
	--jp-paper: #fbf8f1;
	--jp-ink: #1b1714;
	--jp-muted: #5a5048;
	--jp-dim: #8a7e70;
	--jp-accent: #7a1f2b;
	--jp-accent-l: #d99aa4;
	--jp-stone: #ebe2d0;
	--jp-stone-2: #e9dfcc;
	--jp-line: #d5c9b2;
	--jp-dark-line: #3d352f;
	--jp-serif: 'Ibarra Real Nova', Georgia, 'Times New Roman', serif;
	--jp-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--jp-wrap: 1680px;                          /* amplada màxima del contingut */
	--jp-pad: clamp(20px, 8.333vw, 120px);      /* marge lateral (igual que la capçalera) */
	--jp-grain: .07;                           /* intensitat del gra animat (0 = sense gra) */
	--jp-ease: cubic-bezier(.2, .7, .2, 1);
	--jp-pen: cubic-bezier(.65, .05, .25, 1);
}

/* ---------- Base ---------- */
html { overflow-x: clip; }
body {
	background: var(--jp-bg);
	color: var(--jp-ink);
	font-family: var(--jp-serif);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
body.elementor-page .page-header, body.elementor-page .entry-title { display: none; }
img { max-width: 100%; height: auto; }
body a { color: var(--jp-accent); text-decoration: none; transition: color .2s; }
body a:hover, body a:focus { color: var(--jp-ink); }
body .jp-sec--dark a:not([class]) { color: var(--jp-bg); }
body .jp-sec--dark a:not([class]):hover { color: var(--jp-accent-l); }
::selection { background: var(--jp-accent); color: var(--jp-bg); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.jp-sec, .jp-header, .jp-footer, .jp-box, .jp-fitxa, .jp-fitxa *, .jp-cta-band { box-sizing: border-box; }

/* Gra de pel·lícula animat (com a24): una sola capa fixa, molt lleugera */
body::before {
	content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: 2147483000; pointer-events: none;
	background: url('../img/gra.png') repeat; opacity: var(--jp-grain);
	animation: jp-grain 2.6s steps(1) infinite;
}
@keyframes jp-grain {
	0% { transform: translate(0, 0); } 20% { transform: translate(-3%, -4%); } 40% { transform: translate(4%, 2%); }
	60% { transform: translate(-2%, 5%); } 80% { transform: translate(3%, -3%); }
}

body.elementor-editor-active::before { display: none; }

/* ---------- Tipografia ---------- */
.jp-sec .elementor-heading-title, .jp-sec .elementor-widget-text-editor { font-family: var(--jp-serif); color: inherit; }
.jp-sec .elementor-heading-title, .jp-header .elementor-heading-title, .jp-footer .elementor-heading-title { margin: 0; padding: 0; }
.jp-h1 .elementor-heading-title, h1.jp-h1, .jp-fitxa__h1 {
	font-family: var(--jp-serif); font-weight: 600; font-size: clamp(44px, 4.9vw, 70px); line-height: 1.086; letter-spacing: -.01em; color: var(--jp-ink); margin: 0;
}
.jp-h2 .elementor-heading-title, h2.jp-h2 { font-family: var(--jp-serif); font-weight: 600; font-size: clamp(32px, 3.05vw, 44px); line-height: 1.18; color: inherit; margin: 0; }
.jp-h3 .elementor-heading-title { font-family: var(--jp-serif); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.22; color: inherit; margin: 0; }
.jp-light .elementor-heading-title { font-weight: 400; }
.jp-lead .elementor-widget-container, .jp-lead p, .jp-lead { font-family: var(--jp-serif); font-size: 23px; line-height: 1.55; font-style: italic; color: var(--jp-muted); margin: 0; }
.jp-lead--s p { font-size: 19px; }
.jp-text, .jp-text p, .jp-text .elementor-widget-container { font-family: var(--jp-serif); font-size: 18px; line-height: 30px; color: var(--jp-ink); text-align: justify; hyphens: auto; margin: 0; }
.jp-text--s p, .jp-text--s .elementor-widget-container { font-size: 18px; line-height: 30px; color: var(--jp-muted); }
.jp-text p + p, .jp-sans-text p + p { margin-top: 1em; }
.jp-sans-text p, .jp-sans-text { font-family: var(--jp-sans); font-size: 15px; line-height: 1.6; margin: 0; text-align: left; }
.jp-muted, .jp-muted p { color: var(--jp-muted); }
.jp-dim { color: var(--jp-dim); }
.jp-center, .jp-center p, .jp-center .elementor-heading-title { text-align: center; }
.jp-text a, .jp-sans-text a, .jp-contact-data a { color: inherit; background: linear-gradient(var(--jp-accent), var(--jp-accent)) left 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--jp-ease), color .2s; }
.jp-text a:hover, .jp-sans-text a:hover { color: var(--jp-accent); background-size: 0 1px; background-position: right 100%; }

/* ---------- Seccions i files (Elementor) ---------- */
.e-con.jp-sec { width: 100%; padding-left: var(--jp-pad) !important; padding-right: var(--jp-pad) !important; }
.e-con.jp-sec > .e-con-inner { max-width: var(--jp-wrap) !important; width: 100%; margin: 0 auto; padding-top: 0 !important; padding-bottom: 0 !important; }
.e-con.jp-sec.jp-pt { padding-top: clamp(64px, 6.7vw, 112px) !important; }
.e-con.jp-sec.jp-pb { padding-bottom: clamp(64px, 6.7vw, 112px) !important; }
.e-con.jp-sec--stone { background-color: var(--jp-stone) !important; }
.e-con.jp-sec--dark, .jp-sec--dark { background-color: var(--jp-ink) !important; color: var(--jp-bg); }
.jp-sec--dark .jp-h1 .elementor-heading-title, .jp-sec--dark .jp-h2 .elementor-heading-title, .jp-sec--dark .jp-h3 .elementor-heading-title,
.jp-sec--dark .jp-text, .jp-sec--dark .jp-text p, .jp-sec--dark .jp-sans-text p { color: var(--jp-bg); }
.jp-sec--dark .jp-lead, .jp-sec--dark .jp-lead p, .jp-sec--dark .jp-text--s p { color: #bdb1a0; }
.jp-sec--dark .jp-dim { color: #9a8e7f; }
.e-con.jp-row { display: flex; flex-direction: row; width: 100%; }
.e-con.jp-row > .e-con, .e-con.jp-autor-hero > .e-con { --width: auto; width: auto; }
.e-con.jp-row > .jp-col { flex: 1 1 0; min-width: 0; }
.e-con .elementor-widget-shortcode { width: 100%; max-width: 100%; }
.e-con.jp-row > .jp-agenda-side { flex: 0 0 min(360px, 32%); }
.e-con.jp-page-head > .e-con-inner { gap: 20px !important; }

/* ---------- Botons i enllaços ---------- */
.jp-btn .elementor-button, .jp-abtn, .jp-form button[type=submit] {
	display: inline-flex; align-items: center; gap: 10px; justify-content: center;
	font-family: var(--jp-sans); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
	background: var(--jp-accent); color: var(--jp-bg); border: 1px solid var(--jp-accent); border-radius: 0; padding: 18px 30px; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--jp-ease), box-shadow .25s;
}
.jp-btn .elementor-button:hover, .jp-abtn:hover, .jp-form button[type=submit]:hover { background: var(--jp-ink); border-color: var(--jp-ink); color: var(--jp-bg); transform: translateY(-2px); box-shadow: 0 8px 0 -4px rgba(27,23,20,.18); }
.jp-btn .elementor-button:active, .jp-abtn:active, .jp-form button[type=submit]:active { transform: translateY(1px) scale(.97); box-shadow: none; transition-duration: .08s; }
.jp-btn .elementor-button .elementor-button-text { color: inherit; }
.jp-btn--outline .elementor-button, .jp-abtn--outline { background: transparent; color: var(--jp-accent); border-color: var(--jp-accent); }
.jp-btn--outline .elementor-button:hover, .jp-abtn--outline:hover { background: var(--jp-accent); border-color: var(--jp-accent); color: var(--jp-bg); }
.jp-btn--light .elementor-button, .jp-abtn--light { background: var(--jp-bg); color: var(--jp-ink); border-color: var(--jp-bg); }
.jp-btn--light .elementor-button:hover, .jp-abtn--light:hover { background: transparent; color: var(--jp-bg); border-color: var(--jp-bg); }
.jp-abtn--dark { background: transparent; color: var(--jp-ink); border-color: var(--jp-ink); }
.jp-abtn--dark:hover { background: var(--jp-ink); color: var(--jp-bg); }
.jp-cta-band .jp-btn--light .elementor-button:hover { color: var(--jp-bg); border-color: var(--jp-bg); }

.jp-link, .jp-link-w .elementor-button {
	position: relative; display: inline-flex; gap: 8px; font-family: var(--jp-sans); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--jp-ink); text-decoration: none; padding: 0 0 9px; background: none; border: 0; border-radius: 0; line-height: 1.2; transition: color .2s;
}
.jp-link:hover, .jp-link-w .elementor-button:hover { color: var(--jp-accent); background: none; }
.jp-link:active, .jp-link-w .elementor-button:active { transform: translateY(1px); }
.jp-sec--dark .jp-link, .jp-sec--dark .jp-link-w .elementor-button, .jp-card--fosc .jp-link { color: var(--jp-bg); }
.jp-sec--dark .jp-link:hover, .jp-sec--dark .jp-link-w .elementor-button:hover { color: var(--jp-accent-l); }
/* subratllat a mà dels enllaços (de reserva si no hi ha JS) */
.jp-link::after, .jp-link-w .elementor-button::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M1 3.5 C20 1 35 5 55 3 S85 2 99 3.4' stroke='%237a1f2b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.jp-drawn::after { display: none !important; }

/* robust davant el color d'enllaç del Kit d'Elementor */
html body a.jp-abtn { color: var(--jp-bg); }
html body a.jp-abtn--outline { color: var(--jp-accent); }
html body a.jp-abtn--light, html body a.jp-abtn--dark { color: var(--jp-ink); }
html body a.jp-abtn:hover, html body a.jp-abtn--light:hover { color: var(--jp-bg); }
html body a.jp-link { color: var(--jp-ink); }
html body a.jp-link:hover { color: var(--jp-accent); }
html body .jp-sec--dark a.jp-link, html body .jp-card--fosc a.jp-link { color: var(--jp-bg); }
html body .jp-sec--dark a.jp-link:hover, html body .jp-card--fosc a.jp-link:hover { color: var(--jp-accent-l); }
html body .jp-nav__item > a { color: var(--jp-ink); }
html body .jp-nav__item.is-active > a { color: var(--jp-accent); }

/* ---------- Traç a mà (SVG generat per jp.js) ---------- */
.jp-ul, .jp-sketch, .jp-ring, .jp-frame { position: absolute; pointer-events: none; overflow: visible; filter: url(#jp-rough); }
.jp-ul path, .jp-sketch path, .jp-ring path, .jp-frame path { fill: none; stroke: var(--jp-accent); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.jp-ul { left: 0; bottom: 0; width: 100%; height: 8px; }
.jp-ul .jp-p1 { stroke-width: 1.7; }
.jp-ul .jp-p2 { stroke-width: .9; opacity: .45; }
.jp-on > .jp-ul .jp-p1, .jp-on > .jp-ul .jp-p2, .jp-on .jp-ul--own .jp-p1, .jp-on .jp-ul--own .jp-p2 { stroke-dashoffset: 0; }
.jp-ul .jp-p1 { transition: stroke-dashoffset .45s var(--jp-pen); }
.jp-ul .jp-p2 { transition: stroke-dashoffset .45s var(--jp-pen) .12s; }
.jp-sec--dark .jp-ul path, .jp-card--fosc .jp-ul path { stroke: var(--jp-accent-l); }
/* subratllat gran dels títols */
.jp-ink { position: relative; padding-bottom: 22px; }
.jp-ink > .jp-ul { width: min(300px, 100%); height: 14px; bottom: 0; }
.jp-ink > .jp-ul .jp-p1 { stroke-width: 2.6; transition-duration: 1.1s; }
.jp-ink > .jp-ul .jp-p2 { stroke-width: 1.1; transition-duration: 1.1s; transition-delay: .35s; }
.jp-ink:not(.jp-has-ul)::after { content: ''; position: absolute; left: 0; bottom: 4px; width: min(300px, 100%); height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' fill='none'%3E%3Cpath d='M2 8 C40 2 70 11 110 6 S190 3 230 8 S280 5 298 7' stroke='%237a1f2b' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / 100% 100%; }
.jp-sec--dark .jp-ink > .jp-ul path { stroke: var(--jp-accent-l); }
/* cercles a mà («70 anys», preu) */
.jp-circle, .jp-price { position: relative; display: inline-block; white-space: nowrap; }
.jp-circle { padding: 0 .28em; font-style: normal; }
.jp-ring { left: -14%; top: -28%; width: 128%; height: 156%; }
.jp-ring path { stroke-width: 2.2; transition: stroke-dashoffset 1s var(--jp-pen); }
.jp-ring .jp-p2 { stroke-width: 1; opacity: .5; transition-delay: .5s; }
.jp-on > .jp-ring path { stroke-dashoffset: 0; }
/* marc esbossat del retrat */
.jp-frame { inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); }
.jp-frame path { stroke: var(--jp-ink); stroke-width: 1.3; opacity: .55; transition: stroke-dashoffset 1.4s var(--jp-pen) .3s; }
.jp-on > .jp-frame path { stroke-dashoffset: 0; }
/* gargot al voltant del llibre en hover (estil a24) */
.jp-sketch { left: -7%; top: -3%; width: 114%; height: 104%; z-index: 0; }
.jp-sketch path { stroke: var(--jp-accent); stroke-width: 1.8; opacity: .9; transition: stroke-dashoffset .35s var(--jp-pen); }

.jp-card:hover .jp-sketch path, .jp-latest__book:hover .jp-sketch path { stroke-dashoffset: 0; transition-duration: .55s; }
.jp-card:hover .jp-sketch .jp-p2, .jp-latest__book:hover .jp-sketch .jp-p2 { transition-delay: .08s; } .jp-card:hover .jp-sketch .jp-p3, .jp-latest__book:hover .jp-sketch .jp-p3 { transition-delay: .16s; } .jp-card:hover .jp-sketch .jp-p4, .jp-latest__book:hover .jp-sketch .jp-p4 { transition-delay: .24s; }
.jp-card--fosc .jp-sketch path, .jp-sec--dark .jp-sketch path { stroke: var(--jp-accent-l); }

/* ---------- Animacions d'entrada (jp.js afegeix .jp-rv i .is-in) ---------- */
.jp-js .jp-rv { opacity: 0; transform: translate3d(0, 28px, 0); }
.jp-js .jp-rv.is-in { opacity: 1; transform: none; transition: opacity .9s var(--jp-ease) var(--rv-d, 0s), transform 1.1s var(--jp-ease) var(--rv-d, 0s); }
.jp-js .jp-rv--img { transform: none; opacity: 1; }
.jp-js .jp-rv--img img { clip-path: inset(0 0 100% 0); }
.jp-js .jp-rv--img.is-in img { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--jp-pen) var(--rv-d, 0s); }
.jp-ch { opacity: 0; }
.jp-ch.is-on { opacity: 1; }
.jp-caret { display: inline-block; width: 2px; height: .9em; margin-left: 2px; vertical-align: -.08em; background: currentColor; animation: jp-blink .9s steps(1) infinite; }
@keyframes jp-blink { 50% { opacity: 0; } }

/* ---------- Llibre: repòs inclinat amb pàgines → hover recte ---------- */
.jp-book { --w: 360px; --rx: 0deg; --ry: 0deg; position: relative; z-index: 1; width: var(--w); max-width: 100%; aspect-ratio: 360 / 487; margin: 0 auto; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .3s ease-out; }
.jp-book__pages, .jp-book__cover { position: absolute; inset: 0; border-radius: 1px 4px 4px 1px; transform-origin: center; transition: transform .55s var(--jp-ease), box-shadow .55s var(--jp-ease); }
/* bloc de pàgines: cada línia és un full (ombra apilada) */
.jp-book__pages {
	background: var(--jp-paper);
	transform: translate(-.4%, -.6%) rotate(-3deg) scale(.9);
	box-shadow: 1px 1px 0 #b7a687, 2px 2px 0 #fbf8f1, 3px 2px 0 #b7a687, 4px 3px 0 #f3ecdf, 5px 4px 0 #b7a687, 6px 5px 0 #fbf8f1, 7px 6px 0 #b7a687, 8px 6px 0 #f3ecdf, 9px 7px 0 #b7a687, 10px 8px 0 #fbf8f1, 11px 9px 0 #b7a687, 12px 10px 0 #f3ecdf, 13px 10px 0 #b7a687, 14px 11px 0 #a8977a, 20px 26px 28px rgba(27,23,20,.30);
}
.jp-book__cover { overflow: hidden; background: var(--jp-ink); transform: rotate(-3deg) scale(.9); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.jp-book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* plec suau del llom (sense barra) */
.jp-book__cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.16) 0, rgba(255,255,255,.10) 1.6%, rgba(0,0,0,.06) 3.2%, transparent 6%); }
.jp-book:hover .jp-book__cover, .jp-card:hover .jp-book__cover, .jp-latest__book:hover .jp-book__cover, .jp-book:focus-within .jp-book__cover, .jp-book.is-in .jp-book__cover { transform: rotate(0) scale(1); }
.jp-book:hover .jp-book__pages, .jp-card:hover .jp-book__pages, .jp-latest__book:hover .jp-book__pages, .jp-book:focus-within .jp-book__pages, .jp-book.is-in .jp-book__pages {
	transform: none;
	box-shadow: 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 10px 22px rgba(27,23,20,.18);
}
.jp-card:active .jp-book, .jp-latest__book:active .jp-book { transform: perspective(1000px) scale(.97); }
.jp-book--ph .jp-book__cover { background: linear-gradient(160deg, #efe6d4, #e4d8c1); }
.jp-card--fosc .jp-book--ph .jp-book__cover, .jp-sec--dark .jp-book--ph .jp-book__cover { background: linear-gradient(160deg, #ece2cf, #dcceb3); }
.jp-book__text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 12% 12%; text-align: center; color: var(--jp-ink); }
.jp-book--overlay .jp-book__text { justify-content: space-between; color: var(--jp-bg); background: linear-gradient(180deg, rgba(27,23,20,.55), rgba(27,23,20,.1) 60%, rgba(27,23,20,.55)); }
.jp-book__title { font-family: var(--jp-serif); font-weight: 700; font-size: calc(var(--w) * .075); line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; }
.jp-book__author { font-family: var(--jp-serif); font-style: italic; font-size: calc(var(--w) * .036); opacity: .85; }
.jp-book--overlay .jp-book__author { font-family: var(--jp-sans); font-style: normal; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }

/* ---------- Targetes d'obra ---------- */
.jp-grid { display: flex; flex-wrap: wrap; gap: 60px clamp(40px, 4.2vw, 64px); align-items: flex-start; }
.jp-card { width: 360px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.jp-card__cover { position: relative; display: block; text-decoration: none; padding: 6px 0 16px; isolation: isolate; }
.jp-card .jp-book { --w: 360px; }
.jp-card__title { margin: 0; font-family: var(--jp-serif); font-weight: 600; font-size: 32px; line-height: 40px; }
.jp-card__title a, body .jp-card__title a { color: inherit; }
.jp-card__title a:hover { color: var(--jp-accent); }
.jp-card__meta { margin: -6px 0 0; font-family: var(--jp-sans); font-size: 12px; letter-spacing: .04em; color: var(--jp-muted); }
.jp-card__text { margin: 0; font-size: 18px; line-height: 29px; color: var(--jp-muted); }
.jp-card__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 4px; }
.jp-card--fosc .jp-card__meta, .jp-sec--dark .jp-card__meta { color: #a99d8c; }
.jp-card--fosc .jp-card__text, .jp-sec--dark .jp-card__text { color: #cfc4b0; }
.jp-card--fosc .jp-card__title a, .jp-sec--dark .jp-card__title a { color: var(--jp-bg); }

/* ---------- Agenda ---------- */
.jp-agenda { display: flex; flex-direction: column; border-top: 1px solid var(--jp-line); }
.jp-ag-row { display: flex; align-items: center; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--jp-line); transition: background .3s; }
.jp-ag-row:last-child { border-bottom: 0; }
.jp-ag-row__text { flex: 1 1 auto; min-width: 0; }
.jp-ag-row__text h3 { margin: 0 0 6px; font-family: var(--jp-serif); font-weight: 600; font-size: 28px; line-height: 34px; color: var(--jp-ink); }
.jp-ag-row__text p { margin: 0; font-family: var(--jp-sans); font-size: 13px; color: var(--jp-muted); }
.jp-badge { width: 84px; height: 84px; flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--jp-accent); color: var(--jp-bg); border: 1px solid var(--jp-accent); transition: transform .4s var(--jp-ease); }
.jp-badge--line { background: transparent; color: var(--jp-accent); }
.jp-ag-row:hover .jp-badge { transform: rotate(-3deg); }
.jp-badge__day { font-family: var(--jp-serif); font-size: 34px; line-height: 38px; font-weight: 600; }
.jp-badge__mon { font-family: var(--jp-sans); font-weight: 600; font-size: 10px; letter-spacing: .12em; }
.jp-empty { font-family: var(--jp-serif); font-style: italic; color: var(--jp-muted); }

/* ---------- Punts de venda ---------- */
.jp-punts { display: flex; flex-wrap: wrap; gap: 20px; }
.jp-punt { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; width: 160px; }
body a.jp-punt { color: inherit; }
.jp-punt__img { display: block; overflow: hidden; background: var(--jp-stone-2); }
.jp-punt__img img { width: 100%; height: 120px; object-fit: cover; display: block; transition: transform .8s var(--jp-ease); }
.jp-punt:hover .jp-punt__img img { transform: scale(1.06); }
.jp-punt__name { font-family: var(--jp-sans); font-weight: 500; font-size: 13px; line-height: 18px; margin-top: 4px; }
.jp-punt__sub { font-family: var(--jp-sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--jp-dim); }
.jp-punts--dark .jp-punt__sub { color: #8f8373; }
.jp-punts--grid { gap: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.jp-punts--grid .jp-punt { width: auto; gap: 10px; }
.jp-punts--grid .jp-punt__img img { height: clamp(220px, 19.5vw, 340px); }
.jp-punts--grid .jp-punt__name { font-family: var(--jp-serif); font-weight: 600; font-size: 26px; line-height: 32px; margin-top: 10px; }
.jp-punts--grid .jp-punt__sub { font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--jp-muted); }

/* «On trobar»: les fotos dels punts de venda, grans */
.jp-footer-cta .jp-punts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; margin: 4px 0; }
.jp-footer-cta .jp-punt { width: auto; gap: 8px; }
.jp-footer-cta .jp-punt__img img { height: clamp(220px, 17vw, 340px); }
.jp-footer-cta .jp-punt__name { font-family: var(--jp-serif); font-weight: 600; font-size: 22px; line-height: 28px; margin-top: 10px; }
.jp-footer-cta .jp-punt__sub { font-size: 11px; }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Caixes i bandes ---------- */
.e-con.jp-box { border: 1px solid var(--jp-ink); padding: 22px 26px !important; }
.e-con.jp-box--dark, .jp-sec--dark .e-con.jp-box { border-color: #6b6158; }
.e-con.jp-box--c { padding: 34px 26px !important; align-items: center; }
.e-con.jp-cta-band { background: var(--jp-accent) !important; color: var(--jp-bg); padding: clamp(32px, 3.4vw, 52px) clamp(24px, 3.4vw, 52px) !important; }
.jp-cta-band .elementor-heading-title, .jp-cta-band .jp-text p { color: var(--jp-bg) !important; }
.jp-cta-band .jp-text--s p { color: #ead2d5 !important; text-align: left; }

/* ---------- Capçalera i menú ---------- */
.jp-header, body.ehf-header #masthead { position: sticky; top: 0; z-index: 60; background: var(--jp-bg); }
body.admin-bar .jp-header, body.admin-bar.ehf-header #masthead { top: 32px; }
.jp-header { border-bottom: 1px solid var(--jp-line); }
.jp-header__in, .e-con.jp-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; max-width: calc(var(--jp-wrap) + 2 * var(--jp-pad)) !important; margin: 0 auto; padding: 0 var(--jp-pad) !important; box-sizing: border-box; width: 100%; }
.e-con.jp-header { padding: 0 !important; }
.jp-header .jp-logo img, .jp-header .jp-logo { width: 210px; height: auto; display: block; }
.jp-nav { position: relative; }
.jp-nav__list { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.jp-nav__item { position: relative; }
.jp-nav__item.has-dropdown { position: static; }
.jp-nav__item > a, body .jp-nav__item > a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 38px 0 32px; font-family: var(--jp-sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--jp-ink); text-decoration: none; }
.jp-nav__item > a .jp-ul { bottom: 24px; height: 7px; }
.jp-nav__item:hover > a, .jp-nav__item.is-active > a, .jp-nav__item.is-open > a { color: var(--jp-ink); }
.jp-nav__item:hover > a > .jp-ul path, .jp-nav__item.is-active > a > .jp-ul path, .jp-nav__item.is-open > a > .jp-ul path { stroke-dashoffset: 0; }
.jp-nav__item.is-active > a { color: var(--jp-accent); }
.jp-nav__chev { transition: transform .25s var(--jp-ease); }
.jp-nav__item.has-dropdown:hover .jp-nav__chev, .jp-nav__item.is-open .jp-nav__chev { transform: rotate(180deg); }
.jp-nav__sub-toggle, .jp-nav__toggle { display: none; }
/* desplegable d'obres (gran, amb portades) */
.jp-dropdown {
	position: absolute; top: 100%; right: 0; width: min(820px, calc(100vw - 2 * var(--jp-pad))); box-sizing: border-box;
	background: var(--jp-bg); border: 1px solid var(--jp-ink); box-shadow: 0 28px 60px -18px rgba(27,23,20,.35);
	padding: 30px 34px 22px; z-index: 70; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--jp-ease), visibility 0s .2s;
}
.jp-nav__item.has-dropdown:hover .jp-dropdown, .jp-nav__item.has-dropdown:focus-within .jp-dropdown, .jp-nav__item.is-open .jp-dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--jp-ease), visibility 0s; }
.jp-dropdown__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 34px; }
.jp-dropdown__title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--jp-line); font-family: var(--jp-sans); font-weight: 700; font-size: 11px; letter-spacing: .16em; color: var(--jp-accent); }
.jp-dropdown ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jp-mini, body a.jp-mini { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; margin: 0 -10px 0 -8px; color: var(--jp-ink); text-decoration: none; transition: background .2s; }
.jp-mini:hover, .jp-mini[aria-current] { background: var(--jp-stone); color: var(--jp-ink); }
.jp-mini__cover { flex: 0 0 38px; width: 38px; height: 52px; display: block; overflow: hidden; background: var(--jp-stone-2); transform: rotate(-3deg); box-shadow: 2px 2px 0 var(--jp-paper), 3px 3px 0 #cdbfa6, 4px 6px 10px rgba(27,23,20,.25); transition: transform .3s var(--jp-ease); }
.jp-mini:hover .jp-mini__cover { transform: rotate(0) scale(1.06); }
.jp-mini__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jp-mini__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--jp-serif); font-weight: 700; font-size: 20px; color: var(--jp-accent); background: linear-gradient(160deg, #efe6d4, #e4d8c1); }
.jp-mini__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jp-mini__t { font-family: var(--jp-serif); font-weight: 600; font-size: 20px; line-height: 1.15; }
.jp-mini__s { font-family: var(--jp-sans); font-size: 11px; letter-spacing: .04em; color: var(--jp-muted); }
.jp-dropdown__all, body a.jp-dropdown__all { display: inline-block; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--jp-line); width: 100%; font-family: var(--jp-sans); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--jp-ink); }
.jp-dropdown__all:hover { color: var(--jp-accent); }
.jp-dimmer { position: fixed; inset: 0; z-index: 55; background: rgba(27,23,20,.28); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; pointer-events: none; }
body.jp-dd-on .jp-dimmer { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }

/* ---------- Peu ---------- */
.jp-footer { background: var(--jp-stone); border-top: 1px solid var(--jp-line); }
.jp-footer__in, .e-con.jp-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(var(--jp-wrap) + 2 * var(--jp-pad)) !important; margin: 0 auto; padding: 30px var(--jp-pad) !important; box-sizing: border-box; width: 100%; }
.e-con.jp-footer { max-width: none !important; }
.jp-footer img { width: 146px; height: auto; display: block; }
.jp-footer .jp-muted p { margin: 0; font-family: var(--jp-sans); font-size: 11px; letter-spacing: .1em; }
.jp-footer__brand { display: flex; align-items: center; gap: 14px; }
.jp-footer__brand span { font-family: var(--jp-sans); font-size: 11px; letter-spacing: .1em; color: var(--jp-muted); }
.jp-footer__copy, .jp-footer__copy p { font-family: var(--jp-sans); font-size: 12px; color: var(--jp-muted); margin: 0; text-align: right; }
.jp-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; font-family: var(--jp-sans); font-size: 12px; margin-top: 6px; }
body .jp-legal a { color: var(--jp-muted); border-bottom: 1px solid transparent; }
body .jp-legal a:hover { color: var(--jp-accent); border-color: var(--jp-accent); }

/* ---------- Formulari ---------- */
.jp-form { display: flex; flex-direction: column; gap: 20px; }
.jp-form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--jp-sans); font-size: 13px; color: var(--jp-muted); }
.jp-form input[type=text], .jp-form input[type=email], .jp-form textarea {
	font-family: var(--jp-serif); font-size: 18px; color: var(--jp-ink); background: var(--jp-paper); border: 1px solid var(--jp-line); border-radius: 0; padding: 12px 14px; width: 100%; box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
}
.jp-form textarea { min-height: 150px; resize: vertical; }
.jp-form input:focus, .jp-form textarea:focus { outline: none; border-color: var(--jp-ink); box-shadow: 3px 3px 0 var(--jp-accent); }
.jp-form .jp-hp { position: absolute; left: -9999px; }
.jp-form .jp-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; }
.jp-form .jp-check input { margin-top: 3px; accent-color: var(--jp-accent); }
.jp-form button[type=submit] { align-self: flex-start; }
.jp-form-msg { padding: 14px 18px; font-family: var(--jp-sans); font-size: 14px; border: 1px solid var(--jp-ink); margin-bottom: 20px; }
.jp-form-msg--ok { background: #e4efdf; border-color: #4b7a3b; }
.jp-form-msg--err { background: #f3dcdc; border-color: var(--jp-accent); }
.e-con.jp-form-panel { background: var(--jp-stone); padding: clamp(28px, 3.4vw, 48px) !important; }
.jp-contact-lines p { margin: 0 0 14px !important; font-size: 17px; }

/* ---------- Home ---------- */
.e-con.jp-hero { min-height: 768px; padding-top: 80px !important; padding-bottom: 104px !important; }
.e-con.jp-hero-row { justify-content: space-between; align-items: stretch; }
.e-con.jp-hero-row > .jp-hero-text { flex: 0 1 640px; padding-top: 24px; }
.e-con.jp-hero-row > .jp-portrait-col { flex: 0 0 auto; position: relative; z-index: 3; }
.e-con.jp-hero-cta { margin-top: auto; width: 100%; }
.jp-portrait { position: relative; }
.jp-portrait img { width: clamp(400px, 28vw, 540px); max-width: 100%; height: auto; aspect-ratio: 440 / 560; object-fit: cover; display: block; margin-left: auto; }
/* Darrera obra (muntanyes) */
.e-con.jp-latest { position: relative; z-index: 1; overflow: visible; padding-top: 0 !important; padding-bottom: 0 !important; }
.jp-latest::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 820px; background: url('../img/muntanyes.svg') no-repeat center bottom / 100% auto; z-index: 0; pointer-events: none; }
.jp-latest:not(.has-line)::after { content: ''; position: absolute; left: 0; right: 0; top: -540px; height: 1060px; background: url('../img/muntanya-vermella.svg') no-repeat right bottom / 100% 100%; z-index: 0; pointer-events: none; }
.jp-latest__line { position: absolute; left: 0; right: 0; top: -540px; height: 1060px; z-index: 0; pointer-events: none; }
.jp-latest__line svg { width: 100%; height: 100%; display: block; overflow: visible; }
.jp-latest__line path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.jp-latest > .e-con-inner { position: relative; z-index: 1; }
.e-con.jp-latest__stage { position: relative; width: 100%; height: 820px; }
.e-con.jp-latest__h2 { position: absolute; left: 0; top: 0; width: auto; }
.e-con.jp-latest__bookwrap { position: absolute; left: 19%; top: 130px; width: 400px; }
.e-con.jp-latest__infowrap { position: absolute; right: 0; top: 637px; width: 460px; }
.e-con.jp-latest__linkwrap { position: absolute; left: 0; top: 761px; width: auto; }
.jp-latest__book { position: relative; display: block; isolation: isolate; }
.jp-latest .jp-book { --w: 400px; }
.jp-latest__title { margin: 0 0 8px; font-family: var(--jp-serif); font-weight: 600; font-size: 32px; line-height: 40px; }
body .jp-latest__title a { color: var(--jp-ink); }
.jp-latest__info .jp-card__meta { margin: 0 0 18px; }
.jp-latest__info .jp-card__text { margin: 0; }
/* Banda amb imatge + cita (s'escriu amb l'scroll) */
.e-con.jp-quote { position: relative; min-height: 520px !important; background-size: cover !important; background-position: center !important; justify-content: center; padding-top: 110px !important; padding-bottom: 110px !important; }
.e-con.jp-quote::before { content: '' !important; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,23,20,.58), rgba(27,23,20,.74)); opacity: 1 !important; z-index: 0; }
.e-con.jp-quote > * { position: relative; z-index: 1; }
.jp-quote .e-con-inner { justify-content: center; align-items: center; }
.jp-quote .jp-quote-text .elementor-heading-title { font-family: var(--jp-serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.45; color: var(--jp-bg); max-width: 880px; margin: 0 auto; text-align: center; }
.jp-quote .jp-quote-mark .elementor-heading-title { font-family: var(--jp-serif); font-weight: 700; font-size: 96px; line-height: 60px; color: var(--jp-accent-l); text-align: center; }
.jp-quote .jp-quote-by .elementor-heading-title { font-family: var(--jp-sans); font-size: 12px; letter-spacing: .16em; font-weight: 600; color: var(--jp-bg); text-align: center; transition: opacity .5s; }
.jp-quote.is-typing .jp-quote-by .elementor-heading-title { opacity: 0; }
/* etiqueta de grup («NOVEL·LES PUBLICADES») amb filet */
.jp-group-label { max-width: 780px; border-bottom: 1px solid var(--jp-ink); padding-bottom: 12px; }
.jp-group-label .elementor-heading-title { font-family: var(--jp-sans); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.jp-sec--dark .jp-group-label { border-color: #5a5048; }
/* Bloc «On trobar» + contacte */
.e-con.jp-contact-side { border-left: 1px solid var(--jp-dark-line); padding-left: clamp(32px, 4vw, 64px) !important; flex: 0 0 min(460px, 36%) !important; }
.jp-contact-side .jp-sans-text p { color: var(--jp-bg); }
.jp-contact-side .jp-sans-text p.jp-dim { color: #9a8e7f; }

/* ---------- Autor ---------- */
.e-con.jp-autor-hero { min-height: 780px; padding: 0 !important; align-items: stretch !important; }
.e-con.jp-autor-hero > .jp-autor-hero__text { flex: 1 1 50%; justify-content: center; padding: 96px clamp(32px, 5vw, 96px) 96px var(--jp-pad) !important; background: var(--jp-ink); }
.e-con.jp-autor-hero > .jp-autor-hero__photo { flex: 1 1 50%; position: relative; padding: 0 !important; overflow: hidden; min-height: 520px; }
.jp-autor-hero__photo .elementor-widget-image { position: absolute !important; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; }
.jp-autor-hero__photo .elementor-widget-image .elementor-widget-container, .jp-autor-hero__photo .elementor-widget-image a { display: block; width: 100%; height: 100%; }
.jp-autor-hero__photo img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: 50% 18%; display: block; }
.jp-autor-hero .jp-h1 .elementor-heading-title { color: var(--jp-bg); }
.jp-autor-hero .jp-ink > .jp-ul path { stroke: var(--jp-accent-l); }
.jp-autor-date p { margin: 0; font-family: var(--jp-serif); font-style: italic; font-size: 20px; color: var(--jp-accent-l); }
.jp-autor-hero .jp-lead p { color: #e6dccb; font-size: 25px; max-width: 560px; }
.jp-typed .elementor-heading-title { font-style: italic; font-weight: 400; font-size: clamp(30px, 2.9vw, 42px); }
.jp-typed .jp-circle { font-style: normal; }
.e-con.jp-bio-row { gap: clamp(32px, 5vw, 72px) !important; }
/* línia de temps */
.e-con.jp-timeline { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 24px !important; position: relative; padding-top: 44px !important; }
.jp-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 6 C80 3 160 9 260 6 S440 2 560 6 S760 10 880 6 S1080 3 1200 7' stroke='%237a1f2b' stroke-opacity='.7' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; clip-path: inset(0 calc(100% - var(--tl, 1) * 100%) 0 0); }
.jp-fita { position: relative; transition: opacity .6s var(--jp-ease), transform .6s var(--jp-ease); }
.jp-fita::before { content: ''; position: absolute; top: -45px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--jp-accent); transition: transform .4s var(--jp-ease); }
.jp-fita:last-child::before { width: 16px; height: 16px; top: -48px; }
.jp-tl-js .jp-fita { opacity: 0; transform: translateY(14px); }
.jp-tl-js .jp-fita::before { transform: scale(0); }
.jp-tl-js .jp-fita.is-on { opacity: 1; transform: none; }
.jp-tl-js .jp-fita.is-on::before { transform: scale(1); }
.jp-fita-any .elementor-heading-title { font-family: var(--jp-serif); font-weight: 600; font-size: 34px; line-height: 44px; color: var(--jp-accent); }
.jp-fita-text p { font-size: 17px; line-height: 25px; margin: 0 0 4px; color: var(--jp-ink); text-align: left; }
.jp-fita-text strong { display: block; font-weight: 400; font-style: italic; color: var(--jp-muted); font-size: 14px; }
/* reconeixements */
.jp-premi-group { margin-top: 44px; padding-bottom: 12px; border-bottom: 1px solid var(--jp-ink); }
.jp-premi-group:first-child { margin-top: 0; }
.jp-premi-group .elementor-heading-title { font-family: var(--jp-sans); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--jp-accent); }
.e-con.jp-premi { display: flex; flex-direction: row; gap: 40px !important; align-items: center; padding: 24px 0 !important; border-bottom: 1px solid var(--jp-line); transition: background .3s, padding .3s var(--jp-ease); }
.e-con.jp-premi:hover { background: rgba(235,226,208,.55); padding-left: 12px !important; padding-right: 12px !important; }
.jp-premi > .jp-premi__d { flex: 0 0 160px; }
.jp-premi > .jp-premi__m { flex: 1 1 auto; min-width: 0; }
.jp-premi > .jp-premi__r { flex: 0 0 280px; }
.jp-premi__d p { margin: 0; font-family: var(--jp-sans); font-size: 12px; color: var(--jp-muted); text-align: left; }
.jp-premi__t .elementor-heading-title { font-family: var(--jp-serif); font-weight: 600; font-size: 24px; line-height: 30px; }
.jp-premi__l p { margin: 0; font-family: var(--jp-sans); font-size: 12px; color: var(--jp-muted); text-align: left; }
.jp-premi__r p { margin: 0; font-family: var(--jp-serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--jp-accent); text-align: right; }
.e-con.jp-photos { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px !important; }
.jp-photos .elementor-widget-image { overflow: hidden; }
.jp-photos img { width: 100%; height: clamp(220px, 21vw, 360px); object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--jp-ease), filter .6s; }
.jp-photos .elementor-widget-image:hover img { transform: scale(1.04); filter: grayscale(.2); }

/* ---------- Fitxa d'obra ---------- */
.jp-fitxa__book { padding-top: 16px; }
.jp-fitxa__book .jp-book { --w: 400px; }
.jp-fitxa__by { margin: 0; font-style: italic; font-size: 22px; color: var(--jp-accent); }
.jp-fitxa__frase { margin: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--jp-accent); font-style: italic; font-size: 20px; line-height: 32px; color: var(--jp-ink); }
.jp-fitxa__body p { margin: 0 0 1em; text-align: justify; hyphens: auto; font-size: 18px; line-height: 30px; color: var(--jp-muted); }
.jp-fitxa__conte { margin: 8px 0 0; font-weight: 600; font-size: 28px; line-height: 34px; }
.jp-fitxa__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 6px 0; }
.jp-price { padding: 6px 18px; font-weight: 600; font-size: 30px; }
.jp-price:not(.jp-has-ring)::before { content: ''; position: absolute; inset: -8px -14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 68' fill='none'%3E%3Cpath d='M56 4 C22 3 4 15 5 34 C6 54 34 64 62 62 C92 60 107 47 105 30 C103 13 80 4 52 7' stroke='%237a1f2b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; pointer-events: none; }
.jp-fitxa__pdf { border-top: 1px solid var(--jp-line); padding-top: 22px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.jp-fitxa__pdf p { margin: 0; font-size: 18px; color: var(--jp-muted); }
.jp-fitxa__pdf .jp-abtn--outline { color: var(--jp-accent); }
.jp-fitxa__tec { display: flex; gap: clamp(40px, 6vw, 96px); }
.jp-fitxa__tec h2, .jp-fitxa__gal h2 { margin: 0; font-family: var(--jp-serif); font-weight: 600; font-size: clamp(32px, 3.05vw, 44px); line-height: 1.18; flex: 0 0 min(360px, 30%); }
.jp-fitxa__tec dl { flex: 1; margin: 0; border-top: 1px solid var(--jp-line); }
.jp-fitxa__tec dl > div { display: flex; padding: 16px 0; border-bottom: 1px solid var(--jp-line); }
.jp-fitxa__tec dt { flex: 0 0 min(240px, 34%); font-family: var(--jp-sans); font-size: 12px; color: var(--jp-muted); padding-top: 4px; }
.jp-fitxa__tec dd { margin: 0; font-family: var(--jp-serif); font-size: 18px; }
.jp-fitxa__gal h2 { margin-bottom: 32px; }
.jp-gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: start; }
.jp-gal figure { margin: 0; overflow: hidden; }
.jp-gal img { width: 100%; height: auto; max-height: 720px; object-fit: contain; display: block; background: var(--jp-stone); box-shadow: 0 14px 30px -18px rgba(27,23,20,.45); transition: transform 1s var(--jp-ease); }
.jp-gal figure:hover img { transform: scale(1.04); }
.jp-gal figcaption { margin-top: 10px; font-family: var(--jp-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--jp-muted); }
.jp-fitxa__banner img { width: 100%; height: 420px; object-fit: cover; display: block; }
.e-con.jp-fitxa-book-col { flex: 0 0 400px !important; }
.e-con.jp-fitxa-info-col { flex: 1 1 0; min-width: 0; }
.e-con.jp-fitxa-banner-wrap { padding: 0 !important; }
.jp-fitxa__h1.jp-ink { padding-bottom: 22px; }
/* fitxa de reserva (sense Elementor) */
.jp-fitxa { background: var(--jp-bg); }
.jp-fitxa__pres { display: flex; gap: 96px; align-items: flex-start; padding: 80px var(--jp-pad); max-width: calc(var(--jp-wrap) + 2 * var(--jp-pad)); margin: 0 auto; }
.jp-fitxa__pres > .jp-fitxa__book { flex: 0 0 400px; }
.jp-fitxa__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.jp-fitxa > .jp-fitxa__tec { padding: 72px var(--jp-pad); background: var(--jp-stone); }
.jp-fitxa > .jp-fitxa__gal { padding: 72px var(--jp-pad); max-width: calc(var(--jp-wrap) + 2 * var(--jp-pad)); margin: 0 auto; }

/* ---------- Legals ---------- */
.jp-legal-page { max-width: 820px; margin: 0 auto; padding: 72px 24px; }
.jp-legal-page h1 { font-family: var(--jp-serif); font-weight: 600; font-size: 56px; line-height: 62px; margin: 0 0 32px; }
.jp-legal-page h2 { font-family: var(--jp-serif); font-weight: 600; font-size: 28px; margin: 36px 0 8px; }
.jp-legal-page p, .jp-legal-page li { font-size: 18px; line-height: 30px; }
.jp-legal-page mark { background: #f6e3a1; padding: 0 4px; }

/* ---------- Tema base ---------- */
body.jp-own-chrome #site-header, body.jp-own-chrome .site-header, body.jp-own-footer #site-footer, body.jp-own-footer .site-footer { display: none !important; }
.elementor-editor-active .jp-nav__list { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.e-con.jp-latest__bookwrap { left: 6%; }
	.e-con.jp-latest__infowrap { width: 400px; }
	.e-con.jp-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px !important; }
	.jp-timeline::before { display: none; }
	.jp-fita::before { top: -18px; }
	.jp-fita:last-child::before { top: -21px; }
	.jp-premi > .jp-premi__r { flex-basis: 200px; }
}
@media (max-width: 1024px) {
	.e-con.jp-hero-row, .e-con.jp-bio-row, .e-con.jp-footer-cta { gap: 48px !important; }
	.jp-portrait img { width: 360px; height: 460px; }
	.e-con.jp-latest__stage { height: auto; display: flex; flex-direction: column; gap: 28px; padding: 40px 0 120px; }
	.e-con.jp-latest__h2, .e-con.jp-latest__bookwrap, .e-con.jp-latest__infowrap, .e-con.jp-latest__linkwrap { position: static; width: auto; max-width: 560px; }
	.jp-latest::before { height: 480px; }
	.jp-latest__line, .jp-latest:not(.has-line)::after { display: none; }
	.jp-latest .jp-book { --w: 320px; margin: 0; }
	.e-con.jp-autor-hero { flex-direction: column !important; }
	.e-con.jp-autor-hero > .jp-autor-hero__photo { min-height: 480px; }
	.e-con.jp-contact-side { flex: 1 1 auto !important; border-left: 0; padding-left: 0 !important; border-top: 1px solid var(--jp-dark-line); padding-top: 40px !important; }
}
@media (max-width: 860px) {
	.e-con.jp-row { flex-direction: column !important; align-items: stretch !important; gap: 32px !important; }
	.e-con.jp-hero { min-height: 0; padding-top: 48px !important; padding-bottom: 56px !important; }
	.e-con.jp-hero-row > .jp-hero-text { flex: none; padding: 0; }
	.e-con.jp-hero-cta { justify-content: flex-start !important; margin-top: 8px; }
	.jp-portrait img { width: 100%; height: 420px; margin: 0; }
	.e-con.jp-cta-band { flex-direction: column !important; align-items: flex-start !important; }
	.e-con.jp-premi { flex-wrap: wrap; gap: 6px !important; }
	.jp-premi > .jp-premi__d, .jp-premi > .jp-premi__r, .jp-premi > .jp-premi__m { flex: 1 1 100%; }
	.jp-premi__r p { text-align: left; }
	.e-con.jp-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.e-con.jp-photos { grid-template-columns: 1fr; }
	.e-con.jp-fitxa-book-col { flex: none !important; }
	.jp-fitxa__pres, .jp-fitxa__tec { flex-direction: column; gap: 32px; }
	.jp-fitxa__tec dl > div { flex-direction: column; gap: 4px; }
	.jp-card { width: 100%; max-width: 420px; }
	.jp-card .jp-book, .jp-latest .jp-book, .jp-fitxa__book .jp-book { --w: 300px; }
	.jp-text, .jp-text p, .jp-fitxa__body p { text-align: left; hyphens: manual; }
	.jp-frame { display: none; }
	.jp-grid { justify-content: center; }
	.jp-ag-row { flex-wrap: wrap; gap: 16px; }
	.jp-quote .jp-quote-text .elementor-heading-title { font-size: 22px; }
	.jp-footer__in, .e-con.jp-footer { flex-direction: column !important; align-items: flex-start !important; }
	.jp-footer__copy, .jp-footer__copy p, .jp-legal { text-align: left; justify-content: flex-start; }
	body.admin-bar .jp-header { top: 0; }

	/* menú mòbil */
	.jp-header__in, .e-con.jp-header__row { min-height: 72px; }
	.jp-header .jp-logo img, .jp-header .jp-logo { width: 150px; }
	.jp-nav { position: static; }
	.jp-nav__toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
	.jp-nav__toggle i { display: block; width: 26px; height: 2px; background: var(--jp-ink); transition: transform .25s, opacity .25s; }
	.jp-nav.is-open .jp-nav__toggle i:nth-child(2) { opacity: 0; }
	.jp-nav.is-open .jp-nav__toggle i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.jp-nav.is-open .jp-nav__toggle i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.jp-nav__list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--jp-bg); border-bottom: 1px solid var(--jp-line); padding: 8px var(--jp-pad) 24px; max-height: calc(100vh - 72px); overflow: auto; box-shadow: 0 20px 40px -20px rgba(27,23,20,.3); }
	.jp-nav.is-open .jp-nav__list { display: flex; }
	.jp-nav__item > a, body .jp-nav__item > a { padding: 16px 0; font-size: 13px; }
	.jp-nav__item > a .jp-ul { bottom: 10px; }
	.jp-nav__item.has-dropdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; position: relative; }
	.jp-nav__sub-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--jp-ink); }
	.jp-nav__sub-toggle::after { content: '+'; font-size: 22px; font-family: var(--jp-sans); }
	.jp-nav__item.is-open .jp-nav__sub-toggle::after { content: '–'; }
	.jp-dropdown { position: static; flex: 1 1 100%; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--jp-accent); padding: 8px 0 8px 18px; margin: 4px 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
	.jp-nav__item.has-dropdown:hover .jp-dropdown { display: none; }
	.jp-nav__item.is-open .jp-dropdown { display: block; }
	.jp-dropdown__in { grid-template-columns: 1fr; gap: 18px; }
	.jp-dimmer { display: none; }
}

/* Elementor: a l'editor tot visible i sense animacions d'entrada */
.elementor-editor-active .jp-rv, .elementor-editor-active .jp-fita { opacity: 1 !important; transform: none !important; clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
	.jp-js .jp-rv { opacity: 1; transform: none; clip-path: none; }
	.jp-ul path, .jp-ring path, .jp-frame path { stroke-dashoffset: 0 !important; }
	.jp-ch { opacity: 1 !important; }
}
