/* ==========================================================================
   Can Tintorer — main.css
   Paleta de Collserola: verd pi, sàlvia, or de blat i paper clar.
   ========================================================================== */

/* ---------- Fonts (autoallotjades, OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--ink: #142219;
	--ink-2: #34463b;
	--muted: #66766b;
	--paper: #f2f3ec;
	--paper-2: #e2e8dd;
	--paper-3: #ccd8c9;
	--green: #1b4d36;
	--green-d: #0f3322;
	--sage: #7fa08a;
	--olive: #4f6340;
	--pine: #0e2318;
	--gold: #c9a24f;
	--line: rgba(20, 34, 25, .14);
	--white: #fffdf9;

	--f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--f-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 18px;
	--radius-sm: 10px;
	--header-h: 84px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-in-out: cubic-bezier(.65, 0, .35, 1);
	--shadow: 0 20px 50px -20px rgba(20, 34, 25, .35);
	--shadow-sm: 0 8px 24px -12px rgba(20, 34, 25, .3);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--bar-h, 0px)); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.7 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--white); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

/* Textura de gra subtil sobre el paper */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .045; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Icones ---------- */
.ct-icon { width: 1em; height: 1em; flex: none; }

/* ---------- Botons ---------- */
.btn { --bg: var(--ink); --fg: var(--white); --bd: var(--bg);
	position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
	font: 500 .95rem/1 var(--f-body); letter-spacing: .04em; text-decoration: none; white-space: nowrap;
	transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover, var(--ink)); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { color: var(--hover-fg, var(--white)); border-color: var(--hover, var(--ink)); }
.btn:active { transform: scale(.97); }
.btn--accent { --bg: var(--green); --hover: var(--green-d); }
.btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .6); --hover: var(--white); --hover-fg: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --hover: var(--sage); --hover-fg: var(--ink); }
.btn--sm { padding: .65em 1.2em; font-size: .85rem; }
.btn--lg { padding: 1.05em 2em; font-size: 1rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; text-decoration: none; color: var(--green); }
.link-arrow .ct-icon { width: 1.4em; transition: transform .4s var(--ease); }
.link-arrow:hover .ct-icon { transform: translateX(6px); }

/* ==========================================================================
   Capçalera
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--white); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(20, 16, 12, .55), transparent); transition: opacity .4s; }
.site-header__inner { display: flex; align-items: center; gap: 24px; max-width: 1400px; margin-inline: auto; height: var(--header-h); padding-inline: var(--gutter); transition: height .4s var(--ease); }
.site-header.is-scrolled { background: rgba(242, 243, 236, .88); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.site-header.is-scrolled::after { opacity: 0; }
.site-header.is-scrolled .site-header__inner { height: 68px; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__logo { width: 56px; height: 56px; object-fit: contain; transition: width .4s var(--ease), height .4s var(--ease); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.is-scrolled .brand__logo { width: 46px; height: 46px; filter: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 500 1.6rem/1 var(--f-display); letter-spacing: .01em; }
.brand__since { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; opacity: .8; margin-top: 4px; }

.nav { margin-left: auto; margin-right: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a { display: block; padding: 10px 14px; text-decoration: none; font-size: .92rem; font-weight: 450; letter-spacing: .03em; position: relative; }
.nav__list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__list > li:hover > a::after, .nav__list > li.current-menu-item > a::after, .nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 0; border-radius: 50%; transition: background-color .25s; }
.submenu-toggle:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.nav__list > .menu-item-has-children > a { padding-right: 2px; }
.nav__list > .menu-item-has-children > a::after { right: 2px; }
.submenu-toggle .ct-icon { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.nav__list .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: 10px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.nav__list .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__list .sub-menu a { padding: 9px 14px; border-radius: 10px; font-size: .92rem; transition: background-color .2s, padding-left .3s var(--ease), color .2s; }
.nav__list .sub-menu a:hover, .nav__list .sub-menu .current-menu-item > a { background: var(--paper-2); color: var(--green-d); padding-left: 20px; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu, .nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__list li:hover > .submenu-toggle .ct-icon, .nav__list li.is-open > .submenu-toggle .ct-icon { transform: rotate(180deg); }
.nav__extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.lang-switch a { display: block; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; opacity: .75; transition: background-color .25s, color .25s, opacity .25s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch .is-current { color: var(--ink); background: var(--white); }
.is-scrolled .lang-switch .is-current { color: var(--white); background: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger__line { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
.burger__line:nth-child(2) { top: 15px; } .burger__line:nth-child(3) { top: 21px; right: 17px; } .burger__line:nth-child(4) { top: 27px; }
.nav-open .burger__line:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger__line:nth-child(3) { opacity: 0; transform: translateX(-8px); }
.nav-open .burger__line:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.social a:hover { background: var(--green); border-color: var(--green); color: var(--white); transform: translateY(-3px); }
.social .ct-icon { width: 18px; height: 18px; }

@media (max-width: 1199px) {
	.burger { display: block; z-index: 2; }
	.header-actions { margin-left: auto; z-index: 2; }
	.header-actions__cta { display: none; }
	.brand { z-index: 2; }
	.nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: calc(var(--header-h) + var(--bar-h, 0px) + 10px) var(--gutter) 40px; overflow-y: auto;
		background: var(--ink); color: var(--paper); clip-path: circle(0 at calc(100% - 44px) 42px); visibility: hidden; transition: clip-path .7s var(--ease-in-out), visibility 0s .7s; }
	.nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; transition-delay: 0s; }
	.nav-open .site-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.nav-open .site-header::after { opacity: 0; }
	.nav-open .lang-switch .is-current { color: var(--ink); background: var(--paper); }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { flex-wrap: wrap; border-bottom: 1px solid rgba(242, 243, 236, .12); opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
	.nav-open .nav__list > li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .06s); }
	.nav__list > li > a { flex: 1; padding: 14px 0; font: 500 clamp(1.7rem, 6vw, 2.3rem)/1.1 var(--f-display); letter-spacing: 0; }
	.nav__list > li > a::after { display: none; }
	.submenu-toggle { width: 44px; height: 44px; margin: 0; }
	.submenu-toggle .ct-icon { width: 20px; height: 20px; }
	.nav__list .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 0 4px; background: none; color: inherit; box-shadow: none;
		opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), padding .5s var(--ease); }
	.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { max-height: 0; }
	.nav__list li.is-open > .sub-menu { max-height: 900px; padding-bottom: 12px; }
	.nav__list li:hover > .submenu-toggle .ct-icon { transform: none; }
	.nav__list li.is-open > .submenu-toggle .ct-icon { transform: rotate(180deg); }
	.nav__list .sub-menu a { padding: 8px 0; opacity: .8; font-size: 1.05rem; }
	.nav__list .sub-menu a:hover { background: none; color: var(--gold); padding-left: 8px; }
	.nav__extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; opacity: 0; transition: opacity .5s .5s; }
	.nav-open .nav__extra { opacity: 1; }
	.nav-open { overflow: hidden; }
}
@media (max-width: 480px) { .brand__text { display: none; } }
@media (min-width: 1200px) and (max-width: 1439px) {
	.site-header__inner { gap: 16px; }
	.nav__list a { padding: 10px 10px; font-size: .86rem; letter-spacing: .02em; }
	.nav__list > li > a::after { left: 10px; right: 10px; }
	.nav__list > .menu-item-has-children > a { padding-right: 2px; }
	.nav__list > .menu-item-has-children > a::after { right: 2px; }
	.submenu-toggle { width: 26px; height: 26px; }
	.brand__logo { width: 48px; height: 48px; }
	.brand__name { font-size: 1.35rem; }
	.header-actions { gap: 10px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; color: var(--white); overflow: hidden; background: #173024; isolation: isolate; }
.hero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; animation: kenburns 14s var(--ease) both; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(120% 80% at 20% 60%, rgba(8, 20, 13, .72) 0%, rgba(8, 20, 13, .25) 60%, transparent 100%),
	linear-gradient(to top, rgba(8, 20, 13, .75), transparent 45%); }
.hero__content { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: calc(var(--header-h) + var(--bar-h, 0px) + clamp(16px, 5vh, 48px)) var(--gutter) clamp(84px, 13vh, 130px); }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; opacity: .9; margin-bottom: clamp(12px, 2.4vh, 22px); }
.hero__rule { display: block; width: 56px; height: 1px; background: var(--gold); transform-origin: left; }
.hero__title { font-size: clamp(3.2rem, min(12vw, 15vh), 9.5rem); font-weight: 500; line-height: .95; letter-spacing: -.02em; margin: 0; }
.hero__word { display: inline-block; white-space: nowrap; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.hero__char { display: inline-block; }
.hero__sprig { width: min(240px, 55vw); margin: clamp(8px, 1.8vh, 18px) 0 clamp(10px, 2.2vh, 22px); overflow: visible; }
.hero__sprig path, .hero__sprig circle { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.hero__sprig circle { fill: var(--gold); stroke: none; }
.hero__subtitle { max-width: 34ch; font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 300; line-height: 1.5; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3.6vh, 34px); }

.hero__badge { position: absolute; right: clamp(16px, 6vw, 90px); bottom: clamp(80px, 14vh, 150px); width: clamp(104px, min(11vw, 17vh), 150px); aspect-ratio: 1; display: grid; place-items: center; }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__badge text { fill: var(--white); font: 500 9.4px/1 var(--f-body); }
@media (max-width: 899px), (max-height: 640px) { .hero__badge { display: none; } }
@media (max-height: 720px) and (min-width: 900px) { .hero__subtitle { font-size: 1.05rem; } .btn--lg { padding: .9em 1.6em; font-size: .95rem; } }
.hero__badge-year { font: 500 clamp(1.4rem, 2vw, 1.9rem)/1 var(--f-display); color: var(--gold); }

.hero__scroll { position: absolute; left: 50%; bottom: 104px; /* per sobre de les targetes d'accés, que pugen 70 px sobre el hero */ width: 26px; height: 44px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: scrolldot 2s 1.5s var(--ease) 3 both; }

/* Entrada del hero: només CSS, comença al primer fotograma (sense esperar el JS) */
.hero__char { animation: char-in 1.1s calc(.1s + var(--i) * .045s) var(--ease) both; }
.hero__eyebrow { animation: hero-in 1s .05s var(--ease) both; }
.hero__subtitle { animation: hero-in 1s .7s var(--ease) both; }
.hero__actions { animation: hero-in 1s .85s var(--ease) both; }
.hero__badge { animation: hero-in 1s 1.1s var(--ease) both; }
.hero__scroll { animation: hero-in 1s 1.4s var(--ease) both; }
.hero__rule { transform-origin: left; animation: rule-in 1.2s .3s var(--ease) both; }
.hero__sprig .draw { stroke-dasharray: 400; animation: ct-draw 2.2s .6s var(--ease-in-out) both; }
.hero__sprig .draw + .draw { animation-delay: 1.2s; }
.hero__sprig .pop { transform-origin: 120px 20px; animation: pop-in .6s 2s var(--ease) both; }
@keyframes char-in { from { transform: translateY(105%) rotate(6deg); opacity: 0; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes rule-in { from { transform: scaleX(0); } }
@keyframes pop-in { from { transform: scale(0); } }
@keyframes ct-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
/* Opció «Animació d'entrada en mòbil» desactivada: el hero surt ja col·locat en mòbil. */
@media (max-width: 899px) {
	.hero-static-m :is(.hero__char, .hero__eyebrow, .hero__subtitle, .hero__actions, .hero__rule, .hero__badge, .quick__card),
	.hero-static-m .hero__sprig :is(.draw, .pop) { animation: none !important; }
}
/* Mòbil: entrada més curta (millor «Speed Index»); a l'escriptori es manté la llarga. */
@media (max-width: 899px) {
	.hero__img { animation: none; transform: scale(1.02); }
	.hero__char { animation-duration: .6s; animation-delay: calc(.03s + var(--i) * .015s); }
	.hero__eyebrow { animation-delay: 0s; animation-duration: .5s; }
	.hero__subtitle { animation-delay: .2s; animation-duration: .5s; }
	.hero__actions { animation-delay: .3s; animation-duration: .5s; }
	.hero__scroll { animation-delay: .5s; animation-duration: .5s; }
	.hero__rule { animation-duration: .6s; animation-delay: 0s; }
	.hero__sprig .draw { animation-duration: 1s; animation-delay: .15s; }
	.hero__sprig .draw + .draw { animation-delay: .4s; }
	.hero__sprig .pop { animation-delay: .8s; }
	.page-hero__img { animation-duration: 1.6s; }
}

/* ==========================================================================
   Accessos ràpids
   ========================================================================== */
.quick { position: relative; z-index: 2; margin-top: -70px; padding-inline: var(--gutter); }
.quick__grid { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick__card { animation: hero-in .8s calc(.25s + var(--d, 0) * .1s) var(--ease) both; display: flex; align-items: center; gap: 18px; padding: 26px 26px; border-radius: var(--radius); background: var(--white); text-decoration: none; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.quick__card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.quick__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(20, 34, 25, .45); }
.quick__card:hover::after { transform: none; }
.quick__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--paper-2); color: var(--green); flex: none; transition: background-color .4s, color .4s, transform .6s var(--ease); }
.quick__icon .ct-icon { width: 28px; height: 28px; }
.quick__card:hover .quick__icon { background: var(--green); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.quick__body { display: flex; flex-direction: column; gap: 4px; }
.quick__title { font: 500 1.5rem/1.1 var(--f-display); }
.quick__link { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quick__link .ct-icon { width: 18px; transition: transform .4s var(--ease); }
.quick__card:hover .quick__link .ct-icon { transform: translateX(5px); }
@media (max-width: 860px) { .quick__grid { grid-template-columns: 1fr; } .quick { margin-top: -50px; } .hero__scroll { display: none; } }

/* ==========================================================================
   Menús destacats
   ========================================================================== */
.featured { max-width: var(--wrap); margin: clamp(80px, 12vw, 150px) auto; padding-inline: var(--gutter); display: grid; gap: clamp(70px, 10vw, 140px); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); }
.feature--flip .feature__media { order: 2; }
.feature__media { display: block; position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.feature__img { position: absolute; inset: -8% 0; display: block; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media:hover img { transform: scale(1.05); }
.feature__body { position: relative; }
.feature__num { position: absolute; top: -.55em; left: -.08em; z-index: -1; font: 500 clamp(6rem, 12vw, 10rem)/1 var(--f-display); color: var(--paper-3); }
.feature__title { font-size: clamp(2.3rem, 4.5vw, 3.6rem); margin-bottom: .2em; }
.feature__note { font: 500 .8rem/1.5 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin: .2em 0 1.4em; }
.feature__text { color: var(--ink-2); max-width: 42ch; margin-bottom: 1.8em; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__media { order: 0; } }

/* ==========================================================================
   Capçalera de secció
   ========================================================================== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section-head__kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.section-head__kicker::before, .section-head__kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head__title { font-size: clamp(2.5rem, 5.5vw, 4.4rem); }
.section-head__intro { color: var(--ink-2); font-size: 1.08rem; }

/* ==========================================================================
   Què t'oferim?
   ========================================================================== */
.offer { position: relative; padding: clamp(80px, 11vw, 140px) 0; background: var(--paper-2); overflow: hidden; }
.offer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background: radial-gradient(40% 50% at 100% 0%, rgba(201, 162, 79, .25), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(27, 77, 54, .18), transparent 70%); }
.offer .container { position: relative; }
.offer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.offer__item { text-align: center; padding: 40px 28px 34px; border-radius: var(--radius); background: rgba(255, 253, 249, .6); border: 1px solid var(--line); transition: background-color .5s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.offer__item:hover { background: var(--white); transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.offer__icon { position: relative; display: inline-grid; place-items: center; width: 108px; height: 108px; margin-bottom: 22px; border-radius: 50%; color: var(--green); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), color .4s, background-color .4s; }
.offer__icon::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; padding: 2px; background: conic-gradient(from var(--a, 0deg), transparent 0 55%, var(--gold) 75%, var(--green) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: ring 6s linear infinite; }
.offer__icon::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(127, 160, 138, .35), transparent 70%); transform: scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.offer__icon .ct-icon { position: relative; z-index: 1; width: 52px; height: 52px; stroke-width: 2.4; overflow: visible; }
.offer__item:hover .offer__icon { transform: translateY(-4px) scale(1.06); color: var(--green-d); }
.offer__item:hover .offer__icon::before { animation-duration: 1.6s; }
.offer__item:hover .offer__icon::after { transform: scale(1.2); opacity: 1; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --a: 360deg; } }

/* Olla: vapor que puja i tapa que fa xup-xup */
.ct-icon--pot .i-steam { stroke: var(--sage); animation: steam 2.6s ease-in-out infinite; animation-delay: calc(var(--s) * .45s); transform-box: fill-box; transform-origin: bottom; }
.ct-icon--pot .i-lid { transform-box: fill-box; transform-origin: 30% 100%; animation: lid 2.6s ease-in-out infinite; }
.offer__item:hover .ct-icon--pot .i-lid { animation-duration: .7s; }
.offer__item:hover .ct-icon--pot .i-steam { animation-duration: 1.3s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); } }
@keyframes lid { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-3px) rotate(-6deg); } 86% { transform: none; } 92% { transform: translateY(-1.5px) rotate(3deg); } }

/* Fulla: es gronxa amb el vent i deixa caure una gota de rosada */
.ct-icon--leaf .i-sway { transform-box: view-box; transform-origin: 10px 54px; animation: sway 4s ease-in-out infinite; }
.ct-icon--leaf .i-drop { fill: var(--sage); stroke: none; animation: drop 4s ease-in infinite; }
.offer__item:hover .ct-icon--leaf .i-sway { animation-duration: 1.8s; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes drop { 0%, 45% { opacity: 0; transform: translateY(-14px); } 55% { opacity: 1; } 85% { opacity: 1; transform: translateY(6px); } 100% { opacity: 0; transform: translateY(8px); } }

/* Escut: el check es redibuixa i passa una lluentor */
.ct-icon--shield .i-check { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 40; animation: check 4.5s var(--ease-in-out) infinite; }
.ct-icon--shield .i-shine { stroke: #fff; stroke-width: 6; opacity: 0; stroke-dasharray: 12 80; animation: shine 4.5s ease-in-out infinite; }
.offer__item:hover .ct-icon--shield .i-check { animation-duration: 1.8s; }
@keyframes check { 0%, 15% { stroke-dashoffset: 40; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
@keyframes shine { 0%, 55% { opacity: 0; stroke-dashoffset: 30; } 60% { opacity: .9; } 80% { opacity: 0; stroke-dashoffset: -60; } 100% { opacity: 0; } }
.offer__title { font-size: 1.9rem; }
.offer__text { color: var(--ink-2); margin: 0; }
.draw-icon :is(.i-body, .i-lid, .i-sway, .i-shield) path, .draw-icon .i-shield { stroke-dasharray: 220; stroke-dashoffset: 0; }
.js [data-reveal]:not(.is-in) .draw-icon :is(.i-body, .i-lid, .i-sway) path, .js [data-reveal]:not(.is-in) .draw-icon .i-shield { stroke-dashoffset: 220; }
.js .is-in .draw-icon :is(.i-body, .i-lid, .i-sway) path, .js .is-in .draw-icon .i-shield { transition: stroke-dashoffset 2s calc(.3s + var(--d, 0) * .15s) var(--ease-in-out); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: clamp(60px, 8vw, 90px) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; padding: 30px 12px; text-align: center; }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats dt { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font: 500 clamp(2.6rem, 5vw, 3.8rem)/1 var(--f-display); color: var(--green-d); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
	.offer__grid { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stats__item:nth-child(3) { border-left: 0; }
	.stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Espais (mosaic)
   ========================================================================== */
.spaces { padding: clamp(80px, 11vw, 140px) 0; }
.spaces__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 240px); grid-auto-flow: dense; gap: 14px; }
.space { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); }
.space--0, .space--9 { grid-column: span 2; grid-row: span 2; }
.space--3 { grid-row: span 2; }
.space--6 { grid-column: span 2; }
.space a { position: absolute; inset: 0; display: block; color: var(--white); text-decoration: none; }
.space img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease), filter .6s; }
.space a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 20, 13, .78) 0%, rgba(8, 20, 13, .1) 50%, transparent 70%); transition: opacity .5s; }
.space__caption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.space__name { font: 500 clamp(1.25rem, 1.8vw, 1.6rem)/1.1 var(--f-display); }
.space--0 .space__name, .space--9 .space__name { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.space__more { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); max-height: 0; opacity: 0; transform: translateY(8px); transition: max-height .5s var(--ease), opacity .4s, transform .5s var(--ease); }
.space__more .ct-icon { width: 16px; }
.space a:hover img, .space a:focus-visible img { transform: scale(1.1); }
.space a:hover .space__more, .space a:focus-visible .space__more { max-height: 30px; opacity: 1; transform: none; }
@media (hover: none) { .space__more { max-height: 30px; opacity: 1; transform: none; } }
@media (max-width: 900px) { .spaces__grid { grid-template-columns: repeat(2, 1fr); } .space--9 { grid-column: span 2; grid-row: span 1; } .space--3 { grid-row: span 1; } }
@media (max-width: 520px) { .spaces__grid { grid-auto-rows: 150px; gap: 10px; } .space--0 { grid-row: span 2; } }

/* ==========================================================================
   Premi
   ========================================================================== */
.award { position: relative; background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 140px) 0 0; overflow: hidden; }
.award::before { content: ""; position: absolute; width: 60vw; aspect-ratio: 1; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(127, 160, 138, .28), transparent 65%); }
.award__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(30px, 6vw, 80px); }
.award__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.award__eyebrow .ct-icon { width: 18px; height: 18px; fill: currentColor; stroke: none; animation: twinkle 2.6s ease-in-out infinite; }
.award__title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 500; }
.award__text p { color: rgba(242, 243, 236, .78); max-width: 46ch; margin-bottom: 2em; }
.award__media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #0d1c14; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.award__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .85; }
.award__media:hover img { transform: scale(1.04); opacity: 1; }
.award__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); transition: transform .5s var(--ease), background-color .3s; }
.award__play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: pulse 2.2s var(--ease) infinite; }
.award__play .ct-icon { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.award__media:hover .award__play { transform: scale(1.1); background: var(--green-d); }
@media (max-width: 860px) { .award__inner { grid-template-columns: 1fr; } }

.marquee { margin-top: clamp(70px, 9vw, 110px); padding: 26px 0; border-top: 1px solid rgba(242, 243, 236, .12); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 40px; animation: marquee 38s linear infinite; font: 500 clamp(1.8rem, 3.6vw, 3rem)/1 var(--f-display); letter-spacing: .02em; color: rgba(242, 243, 236, .5); }
.marquee__track span:nth-child(even) { color: var(--gold); font-style: normal; font-size: .6em; align-self: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Ressenyes
   ========================================================================== */
.reviews { padding: clamp(80px, 11vw, 140px) 0; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; width: fit-content; margin: 0 auto 40px; padding: 18px 30px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .4s var(--ease); }
.reviews__summary:hover { transform: translateY(-3px); }
.reviews__score { font: 500 2.4rem/1 var(--f-display); }
.reviews__count { color: var(--muted); font-size: .95rem; }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars__bg, .stars__fg { display: flex; gap: 4px; }
.stars .ct-icon { width: 26px; height: 26px; stroke: none; }
.stars__bg { color: var(--paper-3); }
.stars__bg .ct-icon { fill: currentColor; }
.stars__fg { position: absolute; inset: 0; overflow: hidden; width: 0; color: #f4b400; transition: width 1.6s .3s var(--ease); }
.stars__fg .ct-icon { fill: currentColor; }
.is-in .stars__fg, html:not(.js) .stars__fg { width: var(--fill); }
.reviews__widget { max-width: 1100px; margin-inline: auto; }

/* ==========================================================================
   Pàgines interiors
   ========================================================================== */
.page-hero { position: relative; min-height: clamp(360px, 62vh, 620px); display: grid; align-items: end; color: var(--white); overflow: hidden; isolation: isolate; background: #173024; }
.page-hero--plain { min-height: 300px; background: var(--ink); }
.page-hero__media { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s var(--ease) both; }
.page-hero__veil { position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(90% 70% at 15% 85%, rgba(8, 20, 13, .78), transparent 70%),
	linear-gradient(to top, rgba(8, 20, 13, .7), rgba(8, 20, 13, .15) 55%, rgba(8, 20, 13, .5)); }
.page-hero__content { position: relative; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: calc(var(--header-h) + var(--bar-h, 0px) + 40px) var(--gutter) clamp(70px, 10vw, 120px); }
.page-hero__title { font-size: clamp(2.6rem, min(7.5vw, 11vh), 6rem); font-weight: 500; line-height: 1; margin: 0; max-width: 18ch; text-wrap: balance; }
.page-hero__word { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.page-hero__word > span { display: inline-block; animation: word-up 1s calc(.15s + var(--i) * .08s) var(--ease) both; }
.page-hero__intro { max-width: 52ch; margin: 18px 0 0; font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 300; opacity: .92; animation: rise 1s .5s var(--ease) both; }
.page-hero__curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 90px); }
.page-hero__curve-back { fill: var(--paper); opacity: .35; }
.page-hero__curve-front { fill: var(--paper); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; animation: rise 1s var(--ease) both; }
.crumbs::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.crumbs a { text-decoration: none; opacity: .8; } .crumbs a:hover { color: var(--gold); opacity: 1; }
.crumbs span:last-child { color: var(--gold); }
@keyframes word-up { from { transform: translateY(105%); } }

.page-main { padding-block: clamp(40px, 6vw, 80px) clamp(60px, 9vw, 120px); }
.is-elementor .page-main { padding-top: clamp(28px, 4vw, 56px); }
.entry--elementor { padding-block: 0; }
.entry--elementor .entry-content > .elementor { animation: rise 1s .35s var(--ease) both; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.7rem; margin-top: 1.4em; }
.entry-content a:not(.btn) { color: var(--green-d); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content blockquote { margin: 2em 0; padding: 0 0 0 1.4em; border-left: 3px solid var(--gold); font: italic 500 1.5rem/1.4 var(--f-display); }
.entry-content input:not([type=submit]):not([type=checkbox]):not([type=radio]), .entry-content select, .entry-content textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font: inherit; color: inherit; transition: border-color .3s, box-shadow .3s; }
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 77, 54, .15); }
.entry-content input[type=submit], .wpcf7-submit { padding: 14px 30px; border: 0; border-radius: 999px; background: var(--green); color: var(--white); font: 500 1rem var(--f-body); letter-spacing: .04em; cursor: pointer; transition: background-color .3s; }
.entry-content input[type=submit]:hover { background: var(--green-d); }

/* ---- Contingut migrat d'Elementor (blocs) ---- */
.entry-content > :first-child { margin-top: 0; }
.entry-content > p:first-of-type { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.65; color: var(--ink-2); }
.entry-content h2 { position: relative; padding-bottom: .4em; }
.entry-content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 2px; background: var(--gold); }
.entry-content .wp-block-image img { border-radius: var(--radius-sm); }
.entry-content .wp-block-image a, .entry-content .wp-block-gallery a { cursor: zoom-in; }

/* Cartes i menús escanejats: pàgines d'un document */
.entry-content .wp-block-gallery.has-nested-images.ct-doc { display: grid; gap: clamp(22px, 4vw, 40px); justify-items: center; margin-block: clamp(30px, 5vw, 56px); counter-reset: ctpage; }
.entry-content .wp-block-gallery.has-nested-images.ct-doc figure.wp-block-image:not(#ct-doc) { width: min(100%, 700px); margin: 0; counter-increment: ctpage; position: relative; flex: none; }
.entry-content .wp-block-gallery.has-nested-images.ct-doc figure.wp-block-image:not(#ct-doc) img { width: 100%; height: auto; object-fit: contain; border-radius: 4px; background: var(--white); box-shadow: 0 1px 2px rgba(20, 34, 25, .08), 0 24px 50px -24px rgba(20, 34, 25, .45); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.entry-content .wp-block-gallery.has-nested-images.ct-doc figure.wp-block-image:not(#ct-doc):hover img { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(20, 34, 25, .08), 0 36px 70px -26px rgba(20, 34, 25, .55); }
.entry-content .wp-block-gallery.has-nested-images.ct-doc figure.wp-block-image:not(#ct-doc)::before { content: counter(ctpage); position: absolute; z-index: 1; top: 14px; left: -18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--white); font: 500 1.1rem/1 var(--f-display); box-shadow: var(--shadow-sm); }
.entry-content .wp-block-gallery.has-nested-images.ct-doc figure.wp-block-image:not(#ct-doc)::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(242, 243, 236, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b4d36' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20 20l-4.5-4.5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.entry-content .wp-block-gallery.has-nested-images.ct-doc figure.wp-block-image:not(#ct-doc):hover::after { opacity: 1; transform: none; }
@media (max-width: 760px) { .entry-content .wp-block-gallery.has-nested-images.ct-doc figure.wp-block-image:not(#ct-doc)::before { left: 10px; top: 10px; width: 34px; height: 34px; font-size: .95rem; } }

/* Galeries de fotos de les pàgines (espais, història): mosaic més ample que el text */
.entry-content .wp-block-gallery.has-nested-images.ct-photos { display: block; columns: 3 240px; column-gap: 12px; width: min(1180px, 100vw - 2 * var(--gutter)); margin: clamp(30px, 5vw, 56px) 0 clamp(30px, 5vw, 56px) 50%; transform: translateX(-50%); }
.entry-content .wp-block-gallery.has-nested-images.ct-photos figure.wp-block-image:not(#ct-photos) { width: 100%; margin: 0 0 12px; break-inside: avoid; display: block; overflow: hidden; border-radius: var(--radius-sm); }
.entry-content .wp-block-gallery.has-nested-images.ct-photos figure.wp-block-image:not(#ct-photos) img { width: 100%; height: auto; object-fit: cover; border-radius: 0; transition: transform 1.1s var(--ease); }
.entry-content .wp-block-gallery.has-nested-images.ct-photos figure.wp-block-image:not(#ct-photos):hover img { transform: scale(1.06); }
@media (max-width: 640px) { .entry-content .wp-block-gallery.has-nested-images.ct-photos { columns: 2 140px; column-gap: 8px; } .entry-content .wp-block-gallery.has-nested-images.ct-photos figure.wp-block-image:not(#ct-photos) { margin-bottom: 8px; } }
.js .entry-content .wp-block-gallery figure.wp-block-image { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .entry-content .wp-block-gallery figure.wp-block-image.is-in { opacity: 1; transform: none; }

/* Mapa (substitueix l'iframe de Google) */
.ct-map { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-block: 2em; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 34px) clamp(22px, 3vw, 32px) clamp(70px, 8vw, 92px); border-radius: var(--radius); background: var(--pine); color: var(--paper); overflow: hidden; }
.ct-map::before { content: ""; position: absolute; left: clamp(20px, 2.6vw, 30px); top: 50%; width: 34px; height: 34px; margin-top: -17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23c9a24f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 58S12 38 12 24a20 20 0 0 1 40 0c0 14-20 34-20 34z'/%3E%3Ccircle cx='32' cy='24' r='7'/%3E%3C/svg%3E") center / contain no-repeat; animation: pin-bob 2.4s ease-in-out infinite; }
.ct-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(242, 243, 236, .5) 18px 19px); }
.ct-map p { margin: 0; position: relative; z-index: 1; }
.ct-map__address { font: 500 clamp(1.2rem, 2vw, 1.5rem)/1.3 var(--f-display); }
.entry-content .ct-map a.btn { color: var(--white); }
@keyframes pin-bob { 50% { transform: translateY(-5px); } }

/* Botons de bloc */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 1.6em; }
.entry-content .wp-block-button__link { display: inline-flex; padding: .85em 1.6em; border-radius: 999px; background: var(--green); color: var(--white) !important; text-decoration: none; font-weight: 500; letter-spacing: .03em; transition: background-color .3s, transform .3s var(--ease); }
.entry-content .wp-block-button__link:hover { background: var(--green-d); transform: translateY(-2px); }

/* Formularis (Contact Form 7) */
.entry-content .wpcf7 { margin-block: 2em; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.entry-content .wpcf7 p { margin: 0 0 16px; }
.entry-content .wpcf7 label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.entry-content .wpcf7 label > .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.entry-content .wpcf7-not-valid-tip { font-size: .82rem; margin-top: 4px; color: #a3361b; }
.entry-content .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px !important; border-radius: 12px; border-width: 1px !important; font-size: .92rem; }
.entry-content .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.lightbox.is-single .lightbox__btn, .lightbox.is-single .lightbox__count { display: none; }

/* Mòdul de reserves incrustat (CoverManager) */
.ct-embed { margin-block: clamp(10px, 3vw, 30px) 2em; padding: clamp(10px, 2vw, 18px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.ct-embed iframe { display: block; width: 100%; min-height: 550px; border: 0; border-radius: calc(var(--radius) - 8px); background: var(--white); }
.ct-embed p { margin: 0; }

.post-list { display: grid; gap: 40px; }
.post-card__img img { border-radius: var(--radius-sm); margin-bottom: 14px; }
.post-card__title { font-size: 2rem; } .post-card__title a { text-decoration: none; }

.nf { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + var(--bar-h, 0px) + 30px) 0 clamp(180px, 26vh, 260px); text-align: center; color: var(--paper); background: #0f2419; }
.nf__content { position: relative; }
.nf .sc__chip { top: calc(var(--header-h) + var(--bar-h, 0px) + 6px); left: var(--gutter); }
.nf .sc--day ~ .nf__content .nf__text, .nf .sc--dawn ~ .nf__content .nf__text, .nf .sc--dusk ~ .nf__content .nf__text { color: #fff; }
.nf .sc:not(.sc--night) ~ .nf__content { text-shadow: 0 2px 18px rgba(8, 20, 13, .35); }
.nf .sc:not(.sc--night) ~ .nf__content :is(.nf__links a, .nf__next, .btn--ghost) { background-color: rgba(8, 19, 13, .34); border-color: rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nf .sc:not(.sc--night) ~ .nf__content .nf__links span { opacity: 1; }
.nf .sc:not(.sc--night) ~ .nf__content .nf__next:hover { background-color: var(--gold); }
.nf__code { display: flex; align-items: center; justify-content: center; gap: .04em; margin: 0 0 .1em; font: 500 clamp(6.5rem, 20vw, 13rem)/.9 var(--f-display); color: var(--paper); letter-spacing: -.02em; }
.nf__digit { display: inline-block; background: linear-gradient(180deg, #fffdf9 30%, #c9a24f 140%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nf-in .9s var(--ease) both; }
.nf__digit:last-child { animation-delay: .18s; }
.nf__plate { display: inline-block; width: .9em; margin: 0 .04em; color: var(--gold); animation: nf-in .9s .09s var(--ease) both; }
.nf__plate svg { display: block; width: 100%; height: auto; overflow: visible; }
.nf__dish { transform-origin: 60px 72px; animation: nf-wobble 5s ease-in-out infinite; }
.nf__steam { stroke-width: 3; opacity: 0; animation: nf-steam 3s calc(var(--s) * .45s) ease-in-out infinite; }
.nf__kicker { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.nf__kicker::before, .nf__kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.nf__joke { min-height: 8.2em; transition: opacity .35s, transform .45s var(--ease), filter .35s; }
.nf__joke.is-swap { opacity: 0; transform: translateY(10px); filter: blur(3px); }
.nf__title { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; margin: 0 auto .35em; text-wrap: balance; }
.nf__text { max-width: 46ch; margin: 0 auto; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(242, 243, 236, .82); text-wrap: balance; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(22px, 4vw, 34px); }
.nf__next { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(20px, 3vw, 28px); padding: 12px 24px 12px 12px; border-radius: 999px; border: 1px solid rgba(201, 162, 79, .55); background: rgba(201, 162, 79, .1); color: #f1dca4; font-size: 1.02rem; font-weight: 500; letter-spacing: .02em; animation: nf-call 3.2s 2s ease-out infinite; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.nf__next:hover, .nf__next:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); animation: none; }
.nf__next:active { transform: scale(.96); }
.nf__dice { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(8, 19, 13, .45); font-size: 1.2rem; animation: nf-shake 4s 2.4s ease-in-out infinite; }
.nf__next:hover .nf__dice { animation: nf-roll .7s var(--ease); }
.nf__next.is-roll .nf__dice { animation: nf-roll .6s var(--ease); }
@keyframes nf-call { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 79, .45); } 45%, 100% { box-shadow: 0 0 0 14px rgba(201, 162, 79, 0); } }
@keyframes nf-shake { 0%, 82%, 100% { transform: rotate(0); } 85% { transform: rotate(-18deg) scale(1.1); } 89% { transform: rotate(14deg) scale(1.1); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin-top: clamp(26px, 5vw, 44px); font-size: .9rem; }
.nf__links span { opacity: .7; margin-right: 4px; }
.nf__links a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(242, 243, 236, .2); text-decoration: none; transition: border-color .3s, background-color .3s, color .3s; }
.nf__links a:hover { border-color: var(--gold); color: #f1dca4; background: rgba(201, 162, 79, .08); }
@keyframes nf-in { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes nf-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } }
@keyframes nf-steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes nf-roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.3); } 100% { transform: rotate(360deg) scale(1); } }
@media (max-width: 640px) { .nf__kicker { letter-spacing: .2em; font-size: .68rem; } .nf__kicker::before, .nf__kicker::after { display: none; } .nf__joke { min-height: 8em; } .nf__next { font-size: .95rem; } .nf__actions .btn { flex: 1 1 100%; } }
/* ==========================================================================
   Peu
   ========================================================================== */
.site-footer { position: relative; background: var(--pine); color: var(--paper); padding-top: 0; }
.hills { display: block; width: 100%; height: clamp(70px, 10vw, 160px); margin-bottom: -1px; background: var(--paper); }
.hills__back { fill: #4f7d62; } .hills__mid { fill: #2a5640; } .hills__front { fill: var(--pine); }
.hills path { transform-box: fill-box; transform-origin: bottom; }
.js .hills path { transform: translateY(30%); transition: transform 1.6s var(--ease); }
.js .hills.is-in path { transform: none; }
.js .hills.is-in .hills__mid { transition-delay: .15s; } .js .hills.is-in .hills__front { transition-delay: .3s; }

.site-footer__inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(40px, 6vw, 70px) var(--gutter) 50px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 50px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-brand__name { font: 500 clamp(2.6rem, 4.5vw, 3.6rem)/1 var(--f-display); }
.footer-brand__tag { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin-top: -8px; }
.footer-col__title { font-size: 1.9rem; color: var(--gold); font-weight: 500; }
.footer-list { display: grid; gap: 16px; }
.footer-list li { display: flex; gap: 14px; align-items: flex-start; }
.footer-list .ct-icon { width: 20px; height: 20px; margin-top: 4px; color: var(--gold); }
.footer-list a { text-decoration: none; transition: color .25s; }
.footer-list a:hover { color: var(--gold); }
.footer-list small { opacity: .65; font-size: .8rem; }
.footer-list--hours span { opacity: .9; }
.site-footer__bottom { max-width: var(--wrap); margin-inline: auto; padding: 22px var(--gutter) 30px; border-top: 1px solid rgba(242, 243, 236, .14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .85rem; opacity: .8; }
.site-footer__bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal a { text-decoration: none; } .legal a:hover { color: var(--gold); }
.credit { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgba(242, 243, 236, .16); background: rgba(242, 243, 236, .04); color: inherit; font-size: .78rem; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: border-color .4s, background-color .4s, box-shadow .5s var(--ease), transform .5s var(--ease); }
.credit:hover, .credit:focus-visible { border-color: transparent; background: rgba(201, 162, 79, .1); box-shadow: 0 0 0 4px rgba(201, 162, 79, .08), 0 10px 30px -12px rgba(201, 162, 79, .55); }
.credit:active { transform: scale(.96); }
/* Vora daurada que gira */
@property --credit-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.credit__ring { position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; background: conic-gradient(from var(--credit-a), transparent 0 55%, rgba(201, 162, 79, .2) 65%, var(--gold) 80%, #fff1bf 86%, transparent 96%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); transition: opacity .4s; }
.credit:is(:hover, :focus-visible, .is-pop) .credit__ring { opacity: 1; animation: credit-spin 2.4s linear infinite; }
/* Icona: els claudàtors s'obren */
.credit__icon { width: 15px; height: 15px; color: var(--gold); overflow: visible; }
.credit__icon path { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
.credit:is(:hover, :focus-visible) .credit__icon .i-l { transform: translateX(-3px); }
.credit:is(:hover, :focus-visible) .credit__icon .i-r { transform: translateX(3px); }
.credit:is(:hover, :focus-visible) .credit__icon .i-s { transform: rotate(18deg) scaleY(1.1); }
.credit__label { opacity: .7; transition: opacity .4s; }
.credit:hover .credit__label { opacity: .9; }
/* Nom: reflex daurat en repòs; onada de lletres daurades en passar-hi o en prémer */
.credit__name { position: relative; display: inline-flex; font: 600 .9rem/1 var(--f-body); letter-spacing: .06em; color: var(--paper); }
/* Només el nom: cada cert temps passa una onada daurada i després de colors (arc de Sant Martí), lletra a lletra */
.credit__ch { display: inline-block; white-space: pre; animation: credit-rainbow 7s calc(var(--i) * 90ms) linear infinite; }
.credit:is(:hover, :focus-visible) .credit__ch { animation: credit-rainbow-loop 1.8s calc(var(--i) * -150ms) linear infinite; }
.credit.is-pop .credit__ch { animation: credit-rainbow-loop 1.8s calc(var(--i) * -150ms) linear infinite, credit-jump .75s calc(var(--i) * 45ms) cubic-bezier(.3, 1.6, .5, 1) both; }
/* Espurna que apareix amb el reflex */
.credit__spark { position: absolute; right: 6px; top: 2px; width: 9px; height: 9px; background: #fff1bf; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; pointer-events: none; animation: credit-twinkle 7s linear infinite; filter: drop-shadow(0 0 4px var(--gold)); }
/* En prémer: onada daurada que s'expandeix */
.credit::after { content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.credit.is-pop::after { animation: credit-ripple .8s var(--ease) forwards; }
.credit.is-launch { animation: credit-launch .9s var(--ease); }
/* Partícules */
.credit-burst { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 300; pointer-events: none; }
.credit-burst i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle, #fff6cf, var(--gold) 65%); box-shadow: 0 0 8px rgba(201, 162, 79, .85); animation: credit-burst var(--t, .9s) cubic-bezier(.12, .8, .3, 1) forwards; }
.credit-burst i.is-star { border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 3px var(--gold)); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes credit-spin { to { --credit-a: 360deg; } }
@keyframes credit-rainbow {
	0%, 56% { color: var(--paper); transform: none; text-shadow: none; }
	61% { color: var(--gold); transform: translateY(-2px); text-shadow: 0 0 10px rgba(201, 162, 79, .6); }
	66% { color: #ff6b8b; transform: translateY(-4px); text-shadow: 0 0 10px rgba(255, 107, 139, .5); }
	71% { color: #ffb454; transform: translateY(-1px); }
	76% { color: #ffe66d; transform: translateY(-3px); text-shadow: 0 0 10px rgba(255, 230, 109, .5); }
	81% { color: #72e6a6; transform: none; }
	86% { color: #62c9ff; transform: translateY(-3px); text-shadow: 0 0 10px rgba(98, 201, 255, .5); }
	91% { color: #b896ff; transform: translateY(-1px); }
	95% { color: var(--gold); transform: none; text-shadow: 0 0 8px rgba(201, 162, 79, .5); }
	100% { color: var(--paper); transform: none; text-shadow: none; }
}
@keyframes credit-rainbow-loop {
	0%, 100% { color: var(--gold); transform: none; text-shadow: 0 0 12px rgba(201, 162, 79, .7); }
	17% { color: #ff6b8b; transform: translateY(-4px) rotate(-5deg); text-shadow: 0 0 12px rgba(255, 107, 139, .6); }
	33% { color: #ffb454; transform: none; }
	50% { color: #ffe66d; transform: translateY(-4px) rotate(5deg); text-shadow: 0 0 12px rgba(255, 230, 109, .6); }
	67% { color: #72e6a6; transform: none; }
	83% { color: #62c9ff; transform: translateY(-4px) rotate(-5deg); text-shadow: 0 0 12px rgba(98, 201, 255, .6); }
}
@keyframes credit-jump { 0% { transform: none; } 35% { transform: translateY(-9px) scale(1.25); } 100% { transform: none; } }
@keyframes credit-twinkle { 0%, 84% { opacity: 0; transform: scale(0) rotate(0); } 90% { opacity: 1; transform: scale(1.2) rotate(90deg); } 96%, 100% { opacity: 0; transform: scale(0) rotate(180deg); } }
@keyframes credit-ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.9); } }
@keyframes credit-burst { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); opacity: 0; } }
@keyframes credit-launch { 0% { transform: none; } 30% { transform: translateY(-6px) scale(1.05); } 60% { transform: translateY(-2px) scale(1.02); } 100% { transform: none; } }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; gap: 40px; } .site-footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   WhatsApp propi
   ========================================================================== */
.wa { --wa-bg: #25d366; position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: calc(clamp(14px, 2.5vw, 28px) + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.wa__fab { pointer-events: auto; position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa-bg); color: #fff; box-shadow: 0 10px 30px -8px rgba(8, 20, 13, .45);
	opacity: 0; transform: translateY(24px) scale(.6); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s; }
.wa__fab { visibility: hidden; }
.wa.is-shown .wa__fab { opacity: 1; transform: none; visibility: visible; }
.wa.is-tucked:not(.is-open) .wa__fab { opacity: 0; transform: translateY(24px) scale(.6); pointer-events: none; visibility: hidden; }
.wa__fab:hover { transform: scale(1.07); }
.wa__fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa-bg); opacity: 0; }
.wa__glyph, .wa__x { position: absolute; width: 30px; height: 30px; transition: transform .45s var(--ease), opacity .3s; }
.wa__x { width: 22px; height: 22px; opacity: 0; transform: rotate(-90deg) scale(.5); }
.wa.is-open .wa__fab { background: var(--pine); }
.wa.is-open .wa__glyph { opacity: 0; transform: rotate(90deg) scale(.5); }
.wa.is-open .wa__x { opacity: 1; transform: none; }
.wa__dot { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: #d42a1e; border: 2px solid #fff; color: #fff; font: 700 .7rem/1 var(--f-body); box-shadow: 0 3px 8px -2px rgba(229, 55, 43, .6); transform: scale(0); transition: transform .3s var(--ease); }
.wa.has-unread:not(.is-open) .wa__dot { transform: scale(1); animation: wa-dot-in .45s cubic-bezier(.3, 1.8, .5, 1), wa-dot-beat 1.25s .6s ease-in-out infinite; }
.wa.has-unread:not(.is-open) .wa__dot::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid #d42a1e; opacity: 0; animation: wa-ring 1.25s .6s ease-out infinite; }
@keyframes wa-dot-in { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes wa-dot-beat { 0%, 45%, 100% { transform: scale(1); } 12% { transform: scale(1.3); } 24% { transform: scale(.95); } 34% { transform: scale(1.18); } }
@keyframes wa-ring { 0% { opacity: .7; transform: scale(.9); } 55%, 100% { opacity: 0; transform: scale(1.6); } }

.wa__card { pointer-events: auto; width: min(330px, calc(100vw - 28px)); border-radius: 20px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(8, 20, 13, .55);
	transform-origin: calc(100% - 28px) calc(100% + 40px); animation: wa-in .5s var(--ease); }
.wa__card[hidden] { display: none; }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 16px; background: var(--pine); color: var(--paper); }
.wa__avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #000; box-shadow: 0 0 0 2px rgba(242, 243, 236, .18); flex: none; display: grid; place-items: center; }
.wa__avatar img { width: 84%; height: 84%; object-fit: contain; }
.wa__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa__who strong { font: 500 1.25rem/1.1 var(--f-display); }
.wa__status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; opacity: .85; }
.wa__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.wa.is-live .wa__status::before { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: wa-live 2s infinite; }
.wa__close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); transition: background-color .25s; }
.wa__close:hover { background: rgba(242, 243, 236, .12); }
.wa__close .ct-icon { width: 16px; height: 16px; stroke-width: 5; }
.wa__body { padding: 18px 16px 16px; background:
	radial-gradient(circle at 20% 10%, rgba(127, 160, 138, .14), transparent 40%), var(--paper-2); }
.wa__bubble { position: relative; display: inline-block; margin: 0 0 14px; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--white); box-shadow: var(--shadow-sm); font-size: .95rem; animation: wa-pop .5s .15s var(--ease) both; }
.wa__topics { display: grid; gap: 8px; }
.wa__topics li { animation: wa-pop .45s calc(.3s + var(--d) * .08s) var(--ease) both; }
.wa__topics a, .wa__topics button { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .92rem; transition: border-color .25s, background-color .25s, color .25s; }
.wa__topics :is(a, button) .ct-icon { width: 18px; height: 18px; color: var(--green); transition: transform .35s var(--ease); }
.wa__topics :is(a, button):hover { border-color: var(--green); color: var(--green-d); }
.wa__topics :is(a, button):hover .ct-icon { transform: translateX(4px); }
@keyframes wa-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes wa-pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes wa-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes wa-live { 70% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.nav-open .wa { display: none; }

/* ==========================================================================
   Galeria
   ========================================================================== */
.gallery .section-head { margin-bottom: clamp(26px, 4vw, 40px); }
.gallery__filters { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto clamp(30px, 5vw, 50px); padding: 5px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); }
.gallery__filters button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-size: .9rem; font-weight: 500; letter-spacing: .03em; color: var(--ink-2); transition: color .35s var(--ease); }
.gallery__filters button:hover { color: var(--green); }
.gallery__filters button.is-active { color: var(--white); }
.gallery__pill { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px; background: var(--green); transition: transform .5s var(--ease), width .5s var(--ease); }
html:not(.js) .gallery__filters button.is-active { background: var(--green); }

.gallery__grid { columns: 3 300px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin-bottom: 16px; }
.gallery__item a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); color: var(--white); text-decoration: none; }
.gallery__item img { width: 100%; height: auto; transition: transform 1.1s var(--ease), filter .6s; }
.gallery__item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 20, 13, .6), transparent 45%); opacity: 0; transition: opacity .5s; }
.gallery__tag { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.gallery__zoom { position: absolute; right: 12px; top: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(242, 243, 236, .92); color: var(--green-d); transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform .5s var(--ease), opacity .35s; }
.gallery__zoom .ct-icon { width: 18px; height: 18px; stroke-width: 4; }
.gallery__item a:hover img, .gallery__item a:focus-visible img { transform: scale(1.07); }
.gallery__item a:hover::after, .gallery__item a:focus-visible::after { opacity: 1; }
.gallery__item a:hover .gallery__tag, .gallery__item a:focus-visible .gallery__tag { opacity: 1; transform: none; }
.gallery__item a:hover .gallery__zoom, .gallery__item a:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery__tag { opacity: 1; transform: none; } .gallery__item a::after { opacity: .7; } }
.gallery__item.is-hidden { display: none; }
.js .gallery__item { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .gallery__item.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) { .gallery__grid { columns: 2 150px; column-gap: 10px; } .gallery__item { margin-bottom: 10px; } .gallery__filters button { padding: 9px 14px; font-size: .84rem; } }

/* Visor */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 14, 9, .94); color: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .4s var(--ease); }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 14px; padding: clamp(56px, 8vh, 80px) clamp(16px, 8vw, 110px); max-width: 100%; max-height: 100%; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); transition: opacity .3s, transform .45s var(--ease); user-select: none; -webkit-user-drag: none; }
.lightbox__img.is-leaving { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)) scale(.98); }
.lightbox__img.is-entering { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)) scale(.98); transition: none; }
.lightbox__caption { display: flex; gap: 18px; align-items: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(242, 243, 236, .75); }
.lightbox__count { font-variant-numeric: tabular-nums; color: var(--gold); }
.lightbox__btn, .lightbox__close { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--paper); background: rgba(242, 243, 236, .08); border: 1px solid rgba(242, 243, 236, .18); transition: background-color .3s, transform .4s var(--ease); }
.lightbox__btn:hover, .lightbox__close:hover { background: var(--green); border-color: var(--green); }
.lightbox__btn .ct-icon, .lightbox__close .ct-icon { width: 22px; height: 22px; }
.lightbox__btn--prev { left: clamp(10px, 2.5vw, 30px); top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__btn--next { right: clamp(10px, 2.5vw, 30px); top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) rotate(180deg) translateX(3px); }
.lightbox__btn--next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox__close { top: clamp(10px, 2.5vw, 26px); right: clamp(10px, 2.5vw, 26px); }
.lightbox__close .ct-icon { stroke-width: 5; width: 18px; height: 18px; }
@media (max-width: 640px) { .lightbox__btn { top: auto; bottom: 18px; transform: none; } .lightbox__btn--prev { transform: rotate(180deg); } .lightbox__btn--prev:hover, .lightbox__btn--next:hover { transform: none; } .lightbox__btn--prev:hover { transform: rotate(180deg); } .lightbox__img { max-height: calc(100dvh - 210px); } }
@keyframes lb-in { from { opacity: 0; } }
html.lb-open { overflow: hidden; }

/* ==========================================================================
   Revelat en fer scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(12% 12% 12% 12% round var(--radius)); transition: clip-path 1.4s var(--ease); }
.js [data-reveal="clip"] img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal="clip"].is-in img { transform: none; }
.js [data-reveal="clip"].is-in:hover img { transform: scale(1.05); transition-duration: 1.2s; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes twinkle { 50% { transform: scale(.8) rotate(20deg); opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ==========================================================================
   Moviment reduït
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.js [data-reveal], .hero__char, .hero__eyebrow, .hero__subtitle, .hero__actions, .hero__badge, .hero__scroll, .hero__rule { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
	.hero__sprig .draw, .draw-icon * { stroke-dashoffset: 0 !important; }
	.offer__icon::before, .offer__icon .ct-icon *, .credit__name, .credit__ch, .credit__spark, .credit__ring { animation: none !important; }
	.wa__fab, .wa.is-tucked:not(.is-open) .wa__fab { transition: none; }
	.marquee__track { animation: none; }
	.js .gallery__item, .js .entry-content .wp-block-gallery figure.wp-block-image { opacity: 1 !important; transform: none !important; }
}

img[data-defer] { background: var(--paper-3); }

/* Les seccions de sota la primera pantalla no es maqueten ni es pinten fins que s'hi acosta l'usuari
   (menys feina en carregar i les seves fonts es demanen més tard). */
/* Només a les seccions de fons clar: amb fons fosc, les eines d'auditoria calcularien el contrast contra el fons de la pàgina. */
.home > .featured, .home > .offer, .home > .spaces, .home > .reviews { content-visibility: auto; contain-intrinsic-size: auto 900px; }

.hero__media > picture { display: block; width: 100%; height: 100%; }

/* WhatsApp: pantalles, menús i botó de parlar */
.wa__panel { animation: wa-panel .35s var(--ease); }
.wa__panel[hidden] { display: none; }
.wa__topics small { display: block; margin-top: 2px; font-size: .76rem; font-weight: 400; color: var(--muted); }
.wa__talk { border-color: rgba(37, 211, 102, .45) !important; }
.wa__mini { width: 22px; height: 22px; flex: none; color: #25d366; }
.wa__back { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 4px 8px 4px 4px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2); transition: background-color .25s; }
.wa__back:hover { background: rgba(20, 34, 25, .06); }
.wa__back .ct-icon { width: 16px; height: 16px; transform: rotate(180deg); }
.wa__menus { display: grid; gap: 6px; margin-bottom: 12px; }
.wa__menus li { animation: wa-pop .4s calc(.1s + var(--d) * .05s) var(--ease) both; }
.wa__menus a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 500; transition: border-color .25s, color .25s; }
.wa__menus a .ct-icon { width: 16px; height: 16px; color: var(--green); transition: transform .35s var(--ease); }
.wa__menus a:hover { border-color: var(--green); color: var(--green-d); }
.wa__menus a:hover .ct-icon { transform: translateX(3px); }
.wa__cta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #25d366; color: #0b2915; text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.3; box-shadow: 0 8px 20px -10px rgba(37, 211, 102, .8); transition: transform .3s var(--ease), background-color .25s; }
.wa__cta:hover { transform: translateY(-2px); background: #2ee374; }
.wa__cta .wa__mini { color: #0b2915; }
.wa__card { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
@keyframes wa-panel { from { opacity: 0; transform: translateX(14px); } }

/* ==========================================================================
   Avís de cookies
   ========================================================================== */
.cookies { position: fixed; z-index: 120; left: clamp(12px, 2.5vw, 28px); bottom: calc(clamp(12px, 2.5vw, 28px) + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -18px rgba(8, 20, 13, .5), 0 0 0 1px var(--line); font-size: .9rem; line-height: 1.5; }
.cookies[hidden] { display: none; }
.cookies__title { margin: 0 0 6px; font: 500 1.35rem/1.15 var(--f-display); }
.cookies__text { margin: 0; color: var(--ink-2); }
.cookies__text a { color: var(--green-d); }
.cookies__prefs { display: grid; gap: 10px; margin: 14px 0 0; padding: 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.cookies__prefs[hidden] { display: none; }
.cookies__opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
.cookies__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.cookies__opt strong { display: block; font-weight: 600; }
.cookies__opt small { display: block; color: var(--muted); font-size: .8rem; }
.cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cookies__btn { min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 500; font-size: .88rem; color: var(--ink); background: transparent; transition: background-color .25s, color .25s, border-color .25s; }
.cookies__btn:hover { background: var(--ink); color: var(--paper); }
.cookies__btn[hidden] { display: none; }
.cookies__btn--main { background: var(--green); border-color: var(--green); color: var(--white); }
.cookies__btn--main:hover { background: var(--green-d); border-color: var(--green-d); color: var(--white); }
.cookies__btn--wide { grid-column: 1 / -1; }
body:has(.cookies:not([hidden])) .wa { display: none; }
.cookie-link { padding: 0; font: inherit; color: inherit; text-decoration: none; opacity: 1; }
.cookie-link:hover { color: var(--gold); }
/* Taules de contingut (política de cookies) */
.entry-content .wp-block-table{overflow-x:auto;margin-block:1.4em}
.entry-content table{width:100%;border-collapse:collapse;font-size:.92rem;background:var(--white);border-radius:var(--radius-sm)}
.entry-content th,.entry-content td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.entry-content th{font-weight:600;background:var(--paper-2)}
.entry-content code{font-size:.85em;background:var(--paper-2);padding:1px 5px;border-radius:4px}

/* ==========================================================================
   Campanyes: franja de dalt, bloc Temporada i WhatsApp
   ========================================================================== */
:root.topbar-off { --bar-h: 0px; }
.topbar { position: relative; z-index: 3; display: flex; align-items: center; height: var(--bar-h, 38px); padding-inline: var(--gutter) 4px; background: var(--gold); color: var(--ink); font-size: .84rem; font-weight: 500; letter-spacing: .01em; }
.topbar-off .topbar { display: none; }
.topbar__link, .topbar > .topbar__text { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 14px; height: 100%; color: inherit; text-decoration: none; }
.topbar__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.topbar__cta { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.topbar__cta .ct-icon { width: 15px; height: 15px; stroke-width: 4; transition: transform .35s var(--ease); }
.topbar__link:hover .topbar__cta .ct-icon { transform: translateX(4px); }
.topbar__close { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: inherit; transition: background-color .25s; }
.topbar__close:hover { background: rgba(20, 34, 25, .1); }
.topbar__close .ct-icon { width: 13px; height: 13px; stroke-width: 6; }
.nav-open .topbar { visibility: hidden; }
@media (max-width: 640px) { .topbar { font-size: .8rem; } .topbar__cta { display: none; } .topbar__link { justify-content: flex-start; } }

.season { padding-top: clamp(70px, 10vw, 120px); }
.season .section-head { margin-bottom: clamp(30px, 5vw, 54px); }
.season__grid { display: grid; gap: clamp(18px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.season--1 .season__grid { grid-template-columns: 1fr; }
.season-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.season-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(20, 34, 25, .45); }
.season-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.season-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.season-card:hover .season-card__media img { transform: scale(1.05); }
.season-card__tag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.season-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 30px); }
.season-card__title { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.season-card__text { color: var(--ink-2); }
.season-card__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
@media (min-width: 900px) {
	.season--1 .season-card { flex-direction: row; }
	.season--1 .season-card__media { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
	.season--1 .season-card__body { flex: 1; justify-content: center; }
	.season--1 .season-card__actions { margin-top: 10px; }
}

.wa__teaser { pointer-events: auto; position: relative; min-height: 44px; max-width: min(260px, calc(100vw - 100px)); margin-right: 4px; padding: 11px 34px 11px 14px; border-radius: 16px 16px 4px 16px; background: var(--white); color: var(--ink); box-shadow: 0 14px 34px -12px rgba(8, 20, 13, .45), 0 0 0 1px var(--line); font-size: .9rem; line-height: 1.35; transform-origin: 100% 100%; animation: wa-teaser-in .55s var(--ease) both; transition: opacity .35s, transform .4s var(--ease); }
.wa__teaser[hidden], .wa.is-open .wa__teaser, .wa.is-tucked .wa__teaser { display: none; }
.wa__teaser.is-out { opacity: 0; transform: translateY(8px) scale(.9); }
.wa__teaser::after { content: ""; position: absolute; right: -6px; bottom: 0; width: 12px; height: 12px; background: var(--white); clip-path: polygon(0 0, 0 100%, 100% 100%); box-shadow: 0 0 0 1px var(--line); }
.wa__teaser.is-typing { padding-right: 14px; }
.wa__teaser.is-typing .wa__teaser-x { display: none; }
.wa__msg[hidden] { display: none; }
.wa__msg.is-in { animation: wa-msg-in .45s var(--ease) both; }
.wa__msg a, .wa__msg button { display: block; color: inherit; text-decoration: none; font-weight: 500; text-align: left; }
.wa__msg a::after, .wa__msg button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wa__typing { display: inline-flex; gap: 4px; align-items: center; height: 22px; }
.wa__typing[hidden] { display: none; }
.wa__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: wa-dot 1s infinite ease-in-out; }
.wa__typing i:nth-child(2) { animation-delay: .15s; } .wa__typing i:nth-child(3) { animation-delay: .3s; }
.wa__teaser-x { position: absolute; z-index: 1; top: 4px; right: 4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.wa__teaser-x:hover { background: var(--paper-2); color: var(--ink); }
.wa__teaser-x .ct-icon { width: 11px; height: 11px; stroke-width: 6; }
@keyframes wa-teaser-in { from { opacity: 0; transform: translateY(10px) scale(.85); } }
@keyframes wa-msg-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
@keyframes wa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa__topics .wa__promo { background: #fbf4e2; border-color: var(--gold); }
.wa__promo small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-2); margin-top: 2px; }
