/* ==========================================================================
   La Pometa — fruita i verdura · Torelló
   Paleta del rètol: verd ampolla + llima del logo; crema de paper; tomàquet i taronja de la fruita.
   ========================================================================== */
:root {
  --verd: #143f2a;
  --verd-2: #1f4f2e;
  --verd-3: #2b6a3e;
  --llima: #8dc63f;
  --llima-clar: #c6e88f;
  --llima-fosc: #4f7f17;
  --crema: #f5f0e4;
  --paper: #fffaf0;
  --tinta: #10261a;
  --gris: #5b6b60;
  --tomata: #e4452c;
  --taronja: #f39a1e;
  --groc: #ffd23f;
  --fusta: #c79a62;
  --wa: #25d366;

  --f-tit: 'Syne', 'Arial Black', system-ui, sans-serif;
  --f-cos: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ma: 'Permanent Marker', 'Comic Sans MS', cursive;

  --r: 28px;
  --marge: clamp(16px, 4vw, 56px);
  --ombra: 0 18px 40px -18px rgba(16, 38, 26, .45);
  --estacio: #d1774b;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-cos);
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.55;
  color: var(--tinta);
  background: var(--crema);
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-tit); line-height: .98; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--llima); color: var(--verd); }
:focus-visible { outline: 3px solid var(--taronja); outline-offset: 3px; border-radius: 6px; }

/* gra de paper a tota la pàgina */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.salta { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--verd); color: #fff; padding: 10px 16px; border-radius: 12px; }
.salta:focus { top: 12px; }

/* ---------- peces comunes ---------- */
.etiqueta {
  display: inline-block; font-family: var(--f-ma); font-size: .95em; line-height: 1;
  padding: .45em .8em .4em; border-radius: 8px; background: var(--llima); color: var(--verd);
  transform: rotate(-2deg); margin-bottom: 1.1em; letter-spacing: .02em;
}
.etiqueta--groga { background: var(--groc); }
.etiqueta--fosca { background: var(--verd); color: var(--llima-clar); }
.titol { font-size: clamp(2.1rem, 4.3vw, 4.3rem); font-weight: 800; margin-bottom: .45em; text-wrap: balance; }
.titol em { font-style: normal; color: var(--llima-fosc); display: block; }

.boto {
  --bg: var(--verd); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; line-height: 1.1;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.boto svg { width: 1.35em; height: 1.35em; flex: none; }
.boto::before { /* farciment que puja com un suc */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--llima);
  clip-path: circle(0% at 50% 120%); transition: clip-path .5s cubic-bezier(.6, 0, .2, 1);
}
.boto:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--ombra); }
.boto:hover::before { clip-path: circle(150% at 50% 120%); }
.boto:hover { color: var(--verd); }
.boto--wa { --bg: var(--wa); --fg: #06301a; }
.boto--wa::before { background: var(--groc); }
.boto--linia { --bg: transparent; --fg: var(--verd); border-color: currentColor; }
.boto--fosc { --bg: var(--verd); }
.boto--gran { width: 100%; font-size: 1.08em; padding: 1.1em 1.4em; }

.enllac { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ==========================================================================
   CAPÇALERA
   ========================================================================== */
.cap {
  position: fixed; z-index: 80; top: 12px; left: 50%; translate: -50% 0;
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px; border-radius: 999px;
  background: rgba(255, 250, 240, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 30px -12px rgba(16, 38, 26, .35); border: 1px solid rgba(20, 63, 42, .08);
  transition: translate .45s cubic-bezier(.6, 0, .2, 1);
}
.cap--amaga { translate: -50% -140%; }
.cap__logo { background: var(--verd-2); border-radius: 999px; padding: 7px 16px; flex: none; }
.cap__logo img { height: 30px; width: auto; }
.cap__nav { display: flex; gap: 4px; margin-left: 6px; }
.cap__nav a { text-decoration: none; font-weight: 600; padding: .5em .85em; border-radius: 999px; transition: background .2s; }
.cap__nav a:hover { background: var(--llima-clar); }
.estat { display: inline-flex; align-items: center; gap: .5em; font-size: .82em; font-weight: 600; color: var(--gris); margin-left: auto; white-space: nowrap; }
.estat i { width: 9px; height: 9px; border-radius: 50%; background: #aaa; flex: none; }
.estat[data-obert="si"] i { background: #23b14d; box-shadow: 0 0 0 0 rgba(35, 177, 77, .6); animation: batec 1.8s infinite; }
.estat[data-obert="no"] i { background: var(--tomata); }
@keyframes batec { 70% { box-shadow: 0 0 0 9px rgba(35, 177, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 177, 77, 0); } }
.idioma { display: flex; background: rgba(20, 63, 42, .07); border-radius: 999px; padding: 3px; }
.idioma button { border: 0; background: none; padding: .35em .7em; border-radius: 999px; font-size: .8em; font-weight: 700; }
.idioma button[aria-pressed="true"] { background: var(--verd); color: #fff; }
.cap__cta {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 700;
  background: var(--tomata); color: #fff; padding: .7em 1.15em; border-radius: 999px; white-space: nowrap;
  transition: transform .2s;
}
.cap__cta:hover { transform: scale(1.04) rotate(-1.5deg); }
.cap__compte { background: #fff; color: var(--tomata); min-width: 1.6em; height: 1.6em; border-radius: 999px; display: inline-grid; place-items: center; font-size: .8em; }
.cap__compte.salta-n { animation: salta-n .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes salta-n { 40% { transform: scale(1.6) rotate(-12deg); } }

@media (max-width: 980px) { .cap__nav { display: none; } }
@media (max-width: 640px) {
  .cap { top: 8px; gap: 8px; padding: 6px; }
  .cap__logo { padding: 6px 12px; }
  .cap__logo img { height: 24px; }
  .estat { display: none; }
  .cap__cta { padding: .6em .9em; font-size: .88em; margin-left: auto; }
}
@media (max-width: 380px) { .cap__cta span[data-i18n] { display: none; } .cap__cta::before { content: "🧺"; } }

/* ==========================================================================
   1. PORTADA — la poma es parteix en baixar (JS posa --p de 0 a 1)
   ========================================================================== */
.heroi {
  --p: 0;
  --a: clamp(0, var(--p) * 4, 1);
  --b: clamp(0, (var(--p) - .26) * 12, 1);
  --c: clamp(0, (var(--p) - .3) / .55, 1);
  --d: clamp(0, (var(--p) - .42) / .38, 1);
  --g: clamp(0, (var(--p) - .18) / .32, 1);
  --x0: 21vw; --y0: 2vh; --mida: min(36vw, 540px);
  height: 320vh; position: relative;
}
.heroi__escena { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.heroi__verd {
  position: absolute; inset: 0; background:
    radial-gradient(circle at 50% 55%, var(--verd-3), var(--verd) 62%);
  opacity: var(--g); clip-path: circle(calc(var(--g) * 120%) at 50% 55%);
}
.heroi__text {
  position: absolute; z-index: 3; left: var(--marge); top: 50%; translate: 0 -46%;
  width: min(640px, 52vw);
  opacity: calc(1 - var(--a) * 1.5); transform: translateY(calc(var(--a) * -80px));
}
.heroi__titol { font-size: clamp(2.8rem, 6vw, 6.6rem); font-weight: 800; color: var(--verd); margin-bottom: .32em; letter-spacing: -.035em; }
.heroi__titol .linia { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.heroi__titol .linia > span { display: inline-block; animation: entra-linia 1s cubic-bezier(.2, .9, .2, 1) both; }
.heroi__titol .linia:nth-child(2) > span { animation-delay: .08s; }
.heroi__titol .linia:nth-child(3) > span { animation-delay: .16s; }
.heroi__titol .linia:nth-child(4) > span { animation-delay: .24s; }
.heroi__titol .linia--llima > span { background: var(--llima); padding: 0 .12em; border-radius: .12em; margin-left: -.06em; }
.heroi__titol .linia--llima:nth-child(3) > span { rotate: -1.5deg; }
.heroi__titol .linia--llima:nth-child(4) > span { rotate: 1deg; background: var(--groc); }
@keyframes entra-linia { from { transform: translateY(105%) rotate(4deg); } }
.heroi__sub { font-size: 1.15em; max-width: 30ch; color: var(--gris); }
.heroi__botons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.poma {
  position: absolute; z-index: 2; left: 50%; top: 52%; width: var(--mida); aspect-ratio: 761 / 870;
  transform: translate(calc(-50% + (1 - var(--a)) * var(--x0)), calc(-50% + (1 - var(--a)) * var(--y0))) scale(calc(1 + var(--a) * .12));
  animation: poma-cau 1.2s cubic-bezier(.3, 1.4, .5, 1) both .2s;
}
@keyframes poma-cau { from { translate: 0 -90vh; rotate: -40deg; } }
.poma img { position: absolute; filter: drop-shadow(0 30px 30px rgba(16, 38, 26, .28)); }
.poma__sencera { inset: 0; width: 100%; opacity: calc(1 - var(--b)); animation: sura 5s ease-in-out infinite; }
@keyframes sura { 50% { translate: 0 -14px; rotate: 3deg; } }
.poma__mitat { bottom: 0; opacity: var(--b); }
.poma__mitat--esq { right: 50%; width: 51%; transform-origin: 100% 100%;
  transform: translateX(calc(var(--c) * -34vw)) rotate(calc(var(--c) * -16deg)); }
.poma__mitat--dre { left: 50%; width: 49.5%; transform-origin: 0 100%;
  transform: translateX(calc(var(--c) * 34vw)) rotate(calc(var(--c) * 16deg)); }

.heroi__logo {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: min(84vw, 980px); text-align: center;
  transform: translate(-50%, -50%) scale(calc(.55 + var(--d) * .45)); opacity: var(--d);
}
.heroi__logo img { width: 100%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .25)); }
.heroi__logo p { font-family: var(--f-ma); color: var(--llima-clar); font-size: clamp(1.1rem, 2.2vw, 1.8rem); margin-top: .6em; }

.flotant img {
  position: absolute; z-index: 1; left: var(--x); top: var(--y); width: calc(64px * var(--z)); opacity: calc(.95 - var(--d) * .5);
  transform: translateY(calc(var(--p) * -320px * var(--z))) rotate(calc(var(--r) + var(--p) * 120deg));
  filter: drop-shadow(0 10px 12px rgba(16, 38, 26, .25)); pointer-events: none;
}
.heroi__baixa {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; font-family: var(--f-ma); color: var(--verd);
  opacity: calc(1 - var(--a) * 3); white-space: nowrap; margin: 0;
}
.heroi__baixa i { display: inline-block; font-style: normal; animation: avall 1.4s ease-in-out infinite; }
@keyframes avall { 50% { transform: translateY(6px); } }

@media (max-width: 800px) {
  .heroi { --x0: 0px; --y0: 24svh; --mida: min(56vw, 300px); height: 280vh; }
  .heroi__text { top: 96px; translate: 0 0; width: auto; right: var(--marge); }
  .heroi__titol { font-size: clamp(2.3rem, 11.5vw, 4rem); }
  .heroi__sub { font-size: 1em; margin-bottom: 0; }
  .heroi__botons { margin-top: 1em; }
  .heroi__botons .boto--linia { display: none; }
  .poma { top: 50%; }
  .poma__mitat--esq { transform: translateX(calc(var(--c) * -30vw)) rotate(calc(var(--c) * -16deg)); }
  .poma__mitat--dre { transform: translateX(calc(var(--c) * 30vw)) rotate(calc(var(--c) * 16deg)); }
  .flotant img { width: calc(44px * var(--z)); }
}
@media (max-width: 800px) and (max-height: 700px) { .heroi__sub { display: none; } }

/* ==========================================================================
   2. CINTA DE NOMS — la velocitat i la inclinació segueixen el scroll
   ========================================================================== */
.cinta { background: var(--verd); color: var(--llima); overflow: hidden; padding: clamp(14px, 2vw, 26px) 0; border-block: 3px solid var(--llima); }
.cinta__pista { display: flex; width: max-content; will-change: transform; }
.cinta__item { display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-tit); font-weight: 800; font-size: clamp(2rem, 5vw, 4.4rem); text-transform: uppercase; letter-spacing: -.02em; padding-right: .5em; white-space: nowrap; }
.cinta__item img { width: 1.15em; height: 1.15em; object-fit: contain; }
.cinta__item:nth-child(even) { color: var(--crema); -webkit-text-stroke: 0; }

/* ==========================================================================
   3. LA BOTIGA
   ========================================================================== */
.botiga {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(70px, 10vw, 150px) var(--marge); max-width: 1400px; margin: 0 auto;
}
.botiga__foto { position: relative; }
.botiga__foto picture { display: block; overflow: clip; border-radius: var(--r); }
.botiga__foto img { border-radius: var(--r); width: 100%; box-shadow: var(--ombra); }
.adhesiu--roda {
  position: absolute; right: -28px; top: -40px; width: clamp(110px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%;
  background: var(--groc); display: grid; place-items: center; box-shadow: var(--ombra); rotate: 12deg; overflow: hidden;
}
.adhesiu--roda svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: gira 16s linear infinite; }
.adhesiu--roda text { font-family: var(--f-tit); font-weight: 800; font-size: 19.5px; fill: var(--verd); letter-spacing: 1.2px; text-transform: uppercase; }
.adhesiu__wa { width: 38%; color: var(--verd); }
@keyframes gira { to { rotate: 360deg; } }
.botiga__text p { font-size: 1.08em; max-width: 46ch; }
.xifres { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.xifres li { background: var(--paper); border-radius: 20px; padding: 16px; border: 2px solid rgba(20, 63, 42, .1); }
.xifres b { display: block; font-family: var(--f-tit); font-size: clamp(1.7rem, 3vw, 2.6rem); color: var(--verd); line-height: 1; }
.xifres small { color: var(--taronja); font-size: .7em; margin-left: .1em; }
.xifres span { font-size: .85em; color: var(--gris); line-height: 1.25; display: block; margin-top: .4em; }
@media (max-width: 860px) {
  .botiga { grid-template-columns: 1fr; }
  .adhesiu--roda { right: 4px; top: -46px; }
}

/* ==========================================================================
   Aparicions lligades al scroll (CSS natiu; sense suport → IntersectionObserver)
   ========================================================================== */
@supports (animation-timeline: view()) {
  .revela { animation: puja linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
  .revela-clip img { animation: desclip linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
}
@keyframes puja { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@keyframes desclip { from { clip-path: inset(14% 10% 14% 10% round 60px); scale: 1.12; } to { clip-path: inset(0 0 0 0 round var(--r)); scale: 1; } }
.sense-sdt .revela { opacity: 0; translate: 0 40px; transition: opacity .8s, translate .8s cubic-bezier(.2, .9, .2, 1); }
.sense-sdt .revela.vist { opacity: 1; translate: 0 0; }
.sense-sdt .revela-clip img { clip-path: inset(10% 8% 10% 8% round 60px); transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1); }
.sense-sdt .revela-clip.vist img { clip-path: inset(0 0 0 0 round var(--r)); }

/* ==========================================================================
   4. TEMPORADA — roda de mesos + transició circular entre estacions
   ========================================================================== */
.temporada {
  position: relative; overflow: hidden; background: var(--estacio); transition: background-color .8s;
  min-height: 100vh; padding: clamp(80px, 9vw, 130px) var(--marge); view-transition-name: temporada;
}
.temporada[data-estacio="primavera"] { --estacio: #edcfd4; }
.temporada[data-estacio="estiu"] { --estacio: #f2cc84; }
.temporada[data-estacio="tardor"] { --estacio: #d1774b; }
.temporada[data-estacio="hivern"] { --estacio: #b7d4e0; }
.temporada__fons { position: absolute; inset: 0 0 0 auto; width: 74%; pointer-events: none; }
.temporada__fons img {
  width: 100%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}
.temporada__dins { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 24px 48px; max-width: 1400px; margin: 0 auto; }
.temporada__cap { grid-column: 1; max-width: 560px; }
.temporada__cap .titol em { color: var(--paper); }
.temporada[data-estacio="primavera"] .temporada__cap .titol em,
.temporada[data-estacio="hivern"] .temporada__cap .titol em,
.temporada[data-estacio="estiu"] .temporada__cap .titol em { color: var(--verd-3); }
.temporada[data-estacio="tardor"] { color: #fff7ee; }
.temporada[data-estacio="tardor"] .titol { color: #fff7ee; }
.temporada__cap > p:last-child { max-width: 40ch; }
.titol { color: var(--verd); }

.roda { grid-column: 1; position: relative; width: min(420px, 100%); aspect-ratio: 1; justify-self: start; }
.roda__disc {
  position: absolute; inset: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45), inset 0 0 0 10px rgba(20, 63, 42, .06);
  touch-action: none; cursor: grab; transform: rotate(var(--rot, 0deg)); transition: transform .7s cubic-bezier(.3, 1.4, .5, 1);
}
.roda__disc.arrossega { transition: none; cursor: grabbing; }
.roda__disc svg { width: 100%; height: 100%; }
.roda__disc text { font-family: var(--f-tit); font-weight: 700; font-size: 17px; fill: var(--verd); text-transform: uppercase; letter-spacing: 1px; }
.roda__disc text.actiu { fill: var(--tomata); font-weight: 800; }
.roda__disc .tic { stroke: rgba(20, 63, 42, .25); stroke-width: 2; }
.roda__disc .sector { transition: opacity .4s; }
.roda__centre {
  position: absolute; inset: 27%; border-radius: 50%; background: var(--verd); color: var(--llima-clar); display: grid; place-content: center; text-align: center;
  pointer-events: none; box-shadow: 0 0 0 8px rgba(255, 255, 255, .5);
}
.roda__centre b { font-family: var(--f-tit); font-size: clamp(1.05rem, 2.4vw, 1.6rem); color: #fff; line-height: 1; }
.roda__centre span { font-family: var(--f-ma); font-size: 1.05em; margin-top: .3em; }
.roda__agulla { position: absolute; left: 50%; top: -14px; translate: -50% 0; width: 0; height: 0; border: 14px solid transparent; border-top: 22px solid var(--tomata); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.roda__fletxa { position: absolute; bottom: 4%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--verd); color: #fff; font-size: 1.3em; box-shadow: var(--ombra); transition: transform .2s; }
.roda__fletxa:hover { transform: scale(1.1); }
.roda__fletxa--a { left: -6px; }
.roda__fletxa--b { right: -6px; }

.temporada__llista { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.temporada__ara { font-family: var(--f-ma); font-size: 1.3em; color: var(--verd); background: var(--paper); display: inline-block; padding: .3em .7em; border-radius: 10px; rotate: -2deg; }
.xips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.xips li { animation: xip-entra .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes xip-entra { from { opacity: 0; transform: translateY(20px) scale(.7) rotate(-6deg); } }
.xip {
  display: inline-flex; align-items: center; gap: .5em; border: 0; border-radius: 999px; padding: .35em .55em .35em .4em;
  background: var(--paper); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .4); font-weight: 700; color: var(--verd);
  transition: transform .2s, background .2s;
}
.xip:hover { transform: translateY(-3px) rotate(-2deg); background: #fff; }
.xip img, .xip .rodona { width: 38px; height: 38px; object-fit: contain; }
.xip .mes { width: 26px; height: 26px; border-radius: 50%; background: var(--llima); display: grid; place-items: center; font-size: 1.1em; line-height: 1; margin-left: .2em; }
.xip.afegit .mes { background: var(--verd); color: #fff; }
.rodona { display: grid; place-items: center; border-radius: 50%; background: var(--c, var(--llima)); color: #fff; font-family: var(--f-ma); font-size: 11px; line-height: 1; text-align: center; padding: 4px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); overflow: hidden; }

::view-transition-old(temporada) { animation: none; }
::view-transition-new(temporada) { animation: obre-estacio .9s cubic-bezier(.7, 0, .2, 1); }
@keyframes obre-estacio { from { clip-path: circle(0 at var(--vt-x, 25%) var(--vt-y, 60%)); } to { clip-path: circle(150% at var(--vt-x, 25%) var(--vt-y, 60%)); } }

@media (max-width: 900px) {
  .temporada { padding-top: 70px; }
  .temporada__fons { position: relative; inset: auto; width: calc(100% + 2 * var(--marge)); margin: 0 calc(-1 * var(--marge)) 10px; height: 46vw; }
  .temporada__fons img { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); object-position: 80% center; }
  .temporada__dins { grid-template-columns: 1fr; }
  .temporada__llista { grid-column: 1; grid-row: auto; }
  .roda { width: min(360px, 88vw); justify-self: center; margin: 10px 0; }
}

/* ==========================================================================
   5. ENCÀRREC — catàleg + caixa amb física
   ========================================================================== */
.encarrec { padding: clamp(80px, 10vw, 140px) var(--marge) clamp(60px, 8vw, 110px); max-width: 1440px; margin: 0 auto; }
.encarrec__cap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.encarrec__cap .etiqueta { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
.encarrec__cap .titol { margin: 0; }
.passos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.passos li { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 18px; padding: 12px 16px; font-weight: 600; }
.passos b { font-family: var(--f-tit); font-size: 1.5em; width: 1.8em; height: 1.8em; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--llima); color: var(--verd); }
.passos li:nth-child(2) b { background: var(--groc); }
.passos li:nth-child(3) b { background: var(--taronja); }

.encarrec__graella { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }

.pestanyes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; position: sticky; top: 84px; z-index: 5; padding: 6px; background: var(--crema); box-shadow: 0 10px 24px -14px rgba(16, 38, 26, .35); border-radius: 999px; width: max-content; max-width: 100%; }
.pestanyes button { border: 2px solid var(--verd); background: transparent; border-radius: 999px; padding: .55em 1.1em; font-weight: 700; color: var(--verd); transition: background .2s, color .2s, transform .2s; }
.pestanyes button:hover { transform: translateY(-1px); }
.pestanyes button[aria-selected="true"] { background: var(--verd); color: #fff; }

.productes { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.prod {
  position: relative; background: var(--paper); border-radius: 24px; padding: 14px 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 2px solid transparent; transition: border-color .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
  animation: xip-entra .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 25ms);
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--ombra); }
.prod.te { border-color: var(--llima); background: #fbfff2; }
.prod__img { width: 96px; height: 96px; display: grid; place-items: center; margin: 4px 0 8px; transition: transform .4s cubic-bezier(.3, 1.8, .5, 1); }
.prod__img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(16, 38, 26, .2)); }
.prod__img .rodona { width: 84px; height: 84px; font-size: 15px; }
.prod:hover .prod__img { transform: translateY(-10px) rotate(-8deg) scale(1.08); }
.prod h3 { font-size: 1.02em; letter-spacing: -.01em; line-height: 1.1; margin-bottom: .25em; }
.prod__u { font-family: var(--f-ma); font-size: .82em; color: var(--taronja); margin-bottom: .6em; }
.prod__afegeix {
  margin-top: auto; border: 0; border-radius: 999px; background: var(--verd); color: #fff; font-weight: 700; padding: .55em 1em; width: 100%;
  transition: background .2s, transform .15s;
}
.prod__afegeix:hover { background: var(--verd-3); }
.prod__afegeix:active { transform: scale(.95); }
.pas { margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--llima-clar); border-radius: 999px; padding: 3px; }
.pas button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--verd); color: #fff; font-size: 1.2em; line-height: 1; display: grid; place-items: center; }
.pas output { font-weight: 800; font-size: .95em; color: var(--verd); }

.fetes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.feta { background: #e8d2b0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 8L8 0' stroke='%23d9bf98' stroke-width='1'/%3E%3C/svg%3E"); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; animation: xip-entra .5s both; animation-delay: calc(var(--i) * 60ms); }
.feta h3 { font-size: 1.4em; color: var(--verd); }
.feta p { margin: 0; font-size: .92em; }
.feta__peces { display: flex; flex-wrap: wrap; gap: 2px; }
.feta__peces img, .feta__peces .rodona { width: 40px; height: 40px; object-fit: contain; }
.feta .boto { margin-top: auto; }
.cataleg__nota { margin-top: 18px; color: var(--gris); font-size: .92em; }

/* cistella */
.cistella { position: sticky; top: 84px; background: var(--verd); color: var(--crema); border-radius: 32px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(16, 38, 26, .6); }
.cistella__cap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cistella__cap h3 { font-size: 1.5em; color: var(--llima); }
.cistella__tanca { display: none; border: 0; background: rgba(255, 255, 255, .12); width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.caixa { position: relative; height: 270px; border-radius: 20px; background: linear-gradient(#0f3422, #0b2a1b); overflow: hidden; }
.caixa canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.caixa__davant { position: absolute; left: 4%; right: 4%; bottom: 0; width: 92%; height: 72px; pointer-events: none; filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, .25)); }
.caixa__buida { position: absolute; inset: 22px 30px auto; text-align: center; font-family: var(--f-ma); color: var(--llima-clar); opacity: .85; margin: 0; pointer-events: none; }
.caixa__sacseja { position: absolute; right: 10px; top: 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; padding: .35em .8em; font-size: .8em; font-weight: 700; }
.caixa__sacseja:hover { background: var(--llima); color: var(--verd); }
.caixa.sacsejant { animation: sacseja .5s; }
@keyframes sacseja { 20% { transform: rotate(-2deg); } 40% { transform: rotate(2deg); } 60% { transform: rotate(-1deg); } }

.linies { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; scrollbar-width: thin; }
.linies li { display: grid; grid-template-columns: 34px 1fr auto 26px; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 6px 8px; animation: xip-entra .35s both; }
.linies img, .linies .rodona { width: 34px; height: 34px; object-fit: contain; font-size: 8px; }
.linies .nom { font-weight: 700; line-height: 1.15; }
.linies .pas { width: auto; gap: 6px; background: rgba(255, 255, 255, .12); margin: 0; }
.linies .pas button { width: 28px; height: 28px; background: var(--llima); color: var(--verd); font-size: 1em; }
.linies .pas output { color: #fff; min-width: 4.4em; text-align: center; font-size: .85em; }
.linies .treu { border: 0; background: none; color: rgba(255, 255, 255, .55); font-size: 1em; padding: 0; }
.linies .treu:hover { color: var(--tomata); }

.formulari { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.camp { display: grid; gap: 5px; font-size: .9em; font-weight: 600; color: var(--llima-clar); border: 0; padding: 0; margin: 0; min-width: 0; }
.camp--ample { grid-column: 1 / -1; }
.camp legend { padding: 0; margin-bottom: 5px; }
.camp input, .camp textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--tinta); background: var(--paper); border: 2px solid transparent; border-radius: 14px; padding: .7em .85em; min-height: 46px;
}
.camp input:focus, .camp textarea:focus { outline: none; border-color: var(--llima); }
.camp textarea { resize: vertical; }
.opcions { display: flex; flex-wrap: wrap; gap: 6px; }
.opcions label { position: relative; }
.opcions input { position: absolute; opacity: 0; inset: 0; }
.opcions span { display: inline-block; padding: .5em .9em; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.opcions input:checked + span { background: var(--llima); border-color: var(--llima); color: var(--verd); }
.opcions input:focus-visible + span { outline: 3px solid var(--taronja); outline-offset: 2px; }
.formulari .boto { grid-column: 1 / -1; margin-top: 4px; }
.formulari__error { grid-column: 1 / -1; margin: 0; background: var(--tomata); color: #fff; padding: .6em .9em; border-radius: 12px; font-weight: 600; }
.formulari__peu { grid-column: 1 / -1; font-size: .8em; opacity: .75; margin: 0; text-align: center; }

.barra-cistella { display: none; }

@media (max-width: 980px) {
  .encarrec__cap { grid-template-columns: 1fr; }
  .encarrec__graella { grid-template-columns: minmax(0, 1fr); }
  .pestanyes { top: 66px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; border-radius: 16px; margin-inline: -6px; }
  .pestanyes button { flex: none; }
  .productes { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .cistella {
    position: fixed; z-index: 120; inset: auto 0 0 0; top: 6svh; border-radius: 28px 28px 0 0; overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(105%); transition: transform .5s cubic-bezier(.6, 0, .2, 1); visibility: hidden; padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .cistella.oberta { transform: none; visibility: visible; }
  .cistella__tanca { display: grid; place-items: center; }
  .caixa { height: 220px; }
  .linies { max-height: none; }
  .barra-cistella {
    position: fixed; z-index: 110; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
    border: 0; border-radius: 999px; background: var(--verd); color: #fff; padding: 10px 12px 10px 10px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
    transform: translateY(160%); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); text-align: left; font-size: .95em;
  }
  .barra-cistella.visible { transform: none; }
  .barra-cistella[hidden] { display: none; }
  .barra-cistella__icona { width: 44px; height: 44px; border-radius: 50%; background: var(--llima); display: grid; place-items: center; font-size: 1.3em; flex: none; }
  .barra-cistella.salta-n .barra-cistella__icona { animation: salta-n .5s cubic-bezier(.3, 1.8, .5, 1); }
  .barra-cistella__fletxa { margin-left: auto; font-weight: 700; color: var(--llima); white-space: nowrap; }
  body.sheet-oberta { overflow: hidden; }
}
@media (max-width: 420px) { .formulari { grid-template-columns: 1fr; } .prod__img { width: 80px; height: 80px; } }

/* peça que vola cap a la caixa */
.vola { position: fixed; z-index: 150; width: 70px; height: 70px; object-fit: contain; pointer-events: none; left: 0; top: 0; }

/* ==========================================================================
   6. OPINIONS
   ========================================================================== */
.opinions { background: var(--verd); color: var(--crema); text-align: center; padding: clamp(80px, 11vw, 160px) var(--marge); position: relative; overflow: hidden; }
.opinions__estrelles { display: flex; justify-content: center; gap: .1em; font-size: clamp(2rem, 5vw, 3.6rem); color: var(--groc); margin-bottom: .3em; }
.opinions__estrelles span { display: inline-block; }
@supports (animation-timeline: view()) {
  .opinions__estrelles span { animation: estrella linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  .opinions__estrelles span:nth-child(2) { animation-range: entry 25% cover 43%; }
  .opinions__estrelles span:nth-child(3) { animation-range: entry 30% cover 46%; }
  .opinions__estrelles span:nth-child(4) { animation-range: entry 35% cover 49%; }
  .opinions__estrelles span:nth-child(5) { animation-range: entry 40% cover 52%; }
}
@keyframes estrella { from { transform: scale(0) rotate(-180deg); opacity: 0; } }
.opinions__cita { margin: 0 auto .8em; max-width: 1100px; }
.opinions__cita p { font-family: var(--f-tit); font-weight: 800; font-size: clamp(2.2rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.03em; color: var(--llima); margin: 0; }
.opinions__cita--b p { font-size: clamp(1.4rem, 3.2vw, 2.8rem); color: var(--crema); font-weight: 700; }
.opinions__cita footer { font-family: var(--f-ma); color: var(--groc); margin-top: .5em; font-size: 1.1em; }
.opinions .enllac { color: var(--llima-clar); }

/* ==========================================================================
   7. VISITA'NS
   ========================================================================== */
.visita { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.visita__foto { position: relative; overflow: hidden; }
.visita__foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visita__targeta { padding: clamp(50px, 7vw, 110px) var(--marge); background: var(--paper); }
.visita__ciutat { font-family: var(--f-ma); font-size: 1.3em; color: var(--taronja); margin-top: -.6em; }
.estat--gran { font-size: 1.05em; color: var(--verd); margin: 0 0 1.2em; }
.horari { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: .5em; }
.horari td { padding: .55em .2em; border-bottom: 1px dashed rgba(20, 63, 42, .2); }
.horari td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.horari tr.avui td { color: var(--tomata); font-weight: 800; }
.horari tr.avui td:first-child::after { content: " ←"; }
.horari__nota { font-size: .85em; color: var(--gris); }
.visita__botons { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0; }
.mapa { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--crema) url("../img/caixes2-900.webp") center / cover; position: relative; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.mapa__boto { position: absolute; inset: 0; border: 0; background: rgba(20, 63, 42, .55); color: #fff; display: grid; place-content: center; gap: 4px; font-weight: 700; font-size: 1.1em; transition: background .25s; }
.mapa__boto:hover { background: rgba(20, 63, 42, .7); }
.mapa__boto small { font-weight: 500; opacity: .8; font-size: .75em; }
@media (max-width: 860px) {
  .visita { grid-template-columns: 1fr; }
  .visita__foto { height: 56vw; }
}

/* ==========================================================================
   PEU
   ========================================================================== */
.peu { background: var(--tinta); color: var(--crema); padding: 60px var(--marge) calc(100px + env(safe-area-inset-bottom)); overflow: hidden; }
.peu__gran { display: flex; align-items: center; justify-content: center; gap: .1em; font-family: var(--f-tit); font-weight: 800; font-size: clamp(2.6rem, 10.5vw, 11rem); line-height: .9; color: var(--llima); letter-spacing: -.05em; }
.peu__gran img { width: .85em; height: auto; }
@supports (animation-timeline: view()) {
  .peu__gran img { animation: roda-poma linear both; animation-timeline: view(); animation-range: entry 0% exit 0%; }
}
@keyframes roda-poma { from { transform: rotate(-200deg) translateY(-40%); } to { transform: rotate(0) translateY(0); } }
.peu__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9em; opacity: .9; }
.peu__fila a { color: var(--llima); }
.peu__zaorit a { font-weight: 800; text-decoration: none; }

.wa-flotant {
  position: fixed; z-index: 100; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), opacity .3s;
}
.wa-flotant svg { width: 32px; height: 32px; }
.wa-flotant:hover { transform: scale(1.1) rotate(-8deg); }
.wa-flotant.amagat, body.amb-barra .wa-flotant, body.sheet-oberta .wa-flotant { transform: scale(0); opacity: 0; pointer-events: none; }

.legal { max-width: 620px; width: calc(100% - 32px); border: 0; border-radius: 26px; padding: 30px; background: var(--paper); color: var(--tinta); }
.legal::backdrop { background: rgba(16, 38, 26, .6); backdrop-filter: blur(4px); }
.legal h2 { font-size: 1.8em; margin-bottom: .6em; color: var(--verd); }
.legal__tanca { float: right; border: 0; background: var(--crema); width: 40px; height: 40px; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revela, .revela-clip img { animation: none !important; opacity: 1 !important; translate: none !important; clip-path: none !important; }
}
