/* roig-pagines.css — El disseny de la portada, per a les pàgines d'activitat */
@font-face { font-family: 'Buffalo'; src: url('../fonts/buffalo.woff2') format('woff2'); font-display: swap; }
:root {
  --esmalt: #F6F0E2;
  --paper: #FFFFFF;
  --roig: #831D1D;
  --roig-fosc: #5A1212;
  --verd: #2F5B4C;
  --verd-clar: #D5E4DB;
  --tinta: #1E1A18;
  --gris: #5F5A56;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: 'Nunito', system-ui, sans-serif; background: var(--esmalt); color: var(--tinta); line-height: 1.55; font-size: 18px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--verd); outline-offset: 3px; }
.wrap, .container, .breadcrumbs-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Capçalera */
.top { position: sticky; top: 0; z-index: 10; background: var(--esmalt); border-bottom: 1px solid rgba(30,26,24,.12); transition: box-shadow .3s ease; }
.top.avall { box-shadow: 0 6px 24px -12px rgba(30,26,24,.35); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca img { width: 34px; height: 34px; }
.marca span { font-family: 'Buffalo', cursive; font-size: 34px; color: var(--roig); line-height: 1; padding-top: 6px; }
.top nav { display: flex; gap: 22px; font-size: 16px; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 900px) { .top nav { display: none; } }

/* Selector d'idioma */
.idiomes { display: flex; gap: 10px; font-size: 14px; font-weight: 600; }
.idiomes a { text-decoration: none; color: var(--gris); }
.idiomes a[aria-current] { color: var(--roig); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .top .btn { display: none; } }

/* Botons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 24px; background: var(--roig); color: #fff; font: inherit; font-weight: 600; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .12s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-outline, .btn.sec { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
.btn-block { display: flex; width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--roig-fosc); } .btn-outline:hover, .btn.sec:hover { background: var(--tinta); color: #fff; } }

/* Títols */
h1, .service-h1 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; color: var(--roig); max-width: 20ch; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 20px; text-wrap: balance; }
h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.005em; line-height: 1.15; }
.eyebrow { display: block; color: var(--gris); font-size: 16px; margin-bottom: 10px; }
section p { color: var(--gris); }
section p strong { color: var(--tinta); }
section > .container > p, .section-header p { max-width: 70ch; margin-bottom: 24px; }

/* Entrada de pàgina */
.page-hero-service { padding: 26px 0 56px; }
.breadcrumbs-wrap { margin-bottom: 30px; }
.breadcrumbs-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 15px; color: var(--gris); }
.breadcrumbs-list a { text-underline-offset: 4px; }
.service-lead { font-size: 20px; max-width: 62ch; margin: 18px 0 24px; }
.service-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.service-badge-pill { background: var(--paper); border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 600; }
.service-hero-actions, .contact-banner-cta .container > div { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text amb foto */
.service-content-section { padding: 0 0 72px; }
.service-grid-2col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.service-text-block p { margin-bottom: 14px; }
.service-img-frame { border-radius: 22px; overflow: hidden; }
.service-img-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .service-grid-2col { grid-template-columns: 1fr; } }

/* Franja verda: passos */
.steps-section { background: var(--verd); color: #fff; padding: 72px 0; }
.steps-section .eyebrow, .steps-section p { color: var(--verd-clar); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step-card { border-top: 2px solid rgba(255,255,255,.35); padding-top: 16px; }
.step-num { font-size: 54px; font-weight: 800; line-height: 1; color: var(--verd-clar); margin-bottom: 8px; }
.step-card h3 { font-size: 21px; margin-bottom: 4px; }
.step-card p { font-size: 16px; }
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

/* Graelles de targetes */
.pricing-strip, .pieces-showcase, .group-types-section, .voucher-catalog-section, .bloc-text { padding: 72px 0 0; }
.pricing-cards-container, .pieces-grid, .group-types-grid, .vouchers-grid, .bloc-text .graella { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.price-box, .piece-card, .group-card, .voucher-card, .price-single-card, .bloc-text .fitxa { background: var(--paper); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.price-box.highlight { box-shadow: inset 0 0 0 2px var(--roig); }
.price-single-card { max-width: 560px; }
.piece-card p, .group-card p, .voucher-card p, .bloc-text .fitxa p { font-size: 16px; }
.price-val, .voucher-price, .price-single-card .val { font-size: 22px; font-weight: 600; color: var(--verd); }
.price-val span, .voucher-price span, .price-single-card .val span { font-size: 16px; font-weight: 400; color: var(--gris); }
.price-list, .price-single-card ul, .group-card ul, .voucher-card ul { list-style: none; color: var(--gris); font-size: 16px; display: grid; gap: 4px; }
.price-box > div, .voucher-card-top { display: grid; gap: 12px; }
.price-box .btn, .voucher-card-bottom, .price-single-card .btn { margin-top: auto; }
.voucher-badge { align-self: flex-start; justify-self: start; background: var(--verd-clar); color: var(--verd); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; }
.bloc-text .fitxa h3 { font-size: 22px; }

/* Crides */
.contact-banner-cta, .check-voucher-strip { padding: 72px 0 0; }
.check-voucher-strip h3 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }

/* Preguntes */
.faq-section { padding: 72px 0 0; }
.faq-item { border-top: 1px solid rgba(30,26,24,.18); }
.faq-item:last-child { border-bottom: 1px solid rgba(30,26,24,.18); }
.faq-question { width: 100%; background: none; border: 0; cursor: pointer; padding: 18px 0; font: inherit; font-size: 21px; font-weight: 600; color: inherit; text-align: left; display: flex; justify-content: space-between; gap: 20px; transition: color .2s ease; }
.faq-indicator { color: var(--roig); font-weight: 800; transition: transform .35s var(--ease-out); }
.faq-item.open .faq-indicator { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 20px; max-width: 68ch; color: var(--gris); }
.faq-item.open .faq-answer { display: block; animation: entra .28s var(--ease-out); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
@media (hover: hover) and (pointer: fine) { .faq-question:hover { color: var(--roig); } }

/* Altres activitats */
.crosslink-box { padding: 72px 0 88px; }
.crosslink-box h3 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 20px; }
.crosslink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.crosslink-card { background: var(--paper); border-radius: 22px; padding: 20px 22px; text-decoration: none; display: grid; gap: 6px; font-weight: 600; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.crosslink-card strong { color: var(--roig); }
.piece-card, .group-card, .voucher-card, .price-box, .bloc-text .fitxa { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .crosslink-card:hover, .piece-card:hover, .group-card:hover, .voucher-card:hover, .price-box:hover, .bloc-text .fitxa:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(30,26,24,.35); }
}

/* Peu */
footer { background: var(--tinta); color: #CFC8C2; padding: 34px 0 96px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; width: 100%; margin-top: 6px; }
footer a { text-underline-offset: 4px; }
footer p { width: 100%; margin-top: 10px; color: #A9A19A; font-size: 15px; max-width: 80ch; }

/* Barra fixa al mòbil */
.barra { display: none; }
@media (max-width: 760px) {
  .barra { display: flex; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 20; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--esmalt); border-top: 1px solid rgba(30,26,24,.15); }
  .barra .btn { flex: 1; }
}

/* Finestra interna per a reserves i botiga */
.finestra { width: min(980px, 100% - 24px); height: min(90dvh, 920px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 80px -20px rgba(30,26,24,.6); }
.finestra[open] { animation: entra .35s var(--ease-out); }
.finestra::backdrop { background: rgba(30,26,24,.55); backdrop-filter: blur(4px); }
.finestra iframe { display: block; width: 100%; height: 100%; border: 0; }
.finestra .tanca { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tinta); color: #fff; font: 600 26px/1 inherit; cursor: pointer; }

/* Aparició en fer scroll */
.js [data-rev] { opacity: 0; transform: translateY(26px); }
.js [data-rev].vist { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rev] { opacity: 1; transform: none; }
}
