/* ============================================================
   Cal Canó — estils
   ============================================================ */

/* ---------- Tipografies (allotjades al servidor, llicència OFL) ---------- */
@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-display: swap; src: url('../fonts/bebas-neue-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 300; font-display: swap; src: url('../fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 300; font-style: italic; font-display: swap; src: url('../fonts/poppins-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/poppins-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }

:root {
  --bg: #e5e0d8;
  --cream: #faf8f4;
  --white: #fff;
  --ink: #1e1e1e;
  --text: #2b2b2b;
  --muted: #5c5959;
  --brown: #483520;
  --brown-2: #3c230f;
  --olive: #5b5d43;
  --grey: #cfcdca;
  --line: rgba(30, 30, 30, 0.35);
  --display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 65px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brown); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 10px; }
.ico { display: block; flex: none; }

/* ---------- Títols ---------- */
.h-xl, .h-lg, .h-md, .h-olive, .hero-title, .h-mask {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.h-xl { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(2.3rem, 4.2vw, 3.1rem); }
.h-md { font-size: clamp(1.6rem, 2.6vw, 1.9rem); }
.h-olive { color: var(--olive); font-size: clamp(1.8rem, 2.6vw, 2.15rem); line-height: 1.45; }
.lead { max-width: 760px; margin: 1.6rem auto 0; font-size: 1rem; color: var(--text); }
.prose > :last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.25em; }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 40px;
  padding: 0.45em 2.2em;
  border: 0;
  background: var(--brown);
  color: var(--white);
  font: 400 1.2rem/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--brown-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 35, 15, 0.22); }
.btn:active { transform: none; box-shadow: none; }
.btn-light { background: var(--white); color: var(--brown); }
.btn-light:hover { background: var(--bg); color: var(--brown-2); }
.btn-outline { background: transparent; color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }

/* ---------- Capçalera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  width: min(1104px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.logo { display: block; margin-right: auto; }
.logo-svg { display: block; width: 80px; height: auto; }
.nav-list { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a {
  font: 400 1.25rem/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  color: #8f8f8f;
  transition: color 0.2s;
}
.nav-list a:hover, .nav-list a[aria-current='page'], .nav-list a.is-active { color: var(--brown); }
.sub-toggle { display: none; }
.sub {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 230px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-sub::after { content: ''; position: absolute; inset: 100% -10px auto; height: 22px; }
.has-sub .sub { top: calc(100% + 20px); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: block; padding: 9px 22px; font-size: 1.1rem; }
.btn-book { padding-inline: 1.4em; font-size: 1.3rem; }

.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border: 0;
  background: none;
  font: 400 1.25rem/1 var(--display);
  color: var(--brown);
  cursor: pointer;
}
.lang-btn .ico { margin-left: 10px; color: var(--ink); transition: transform 0.2s; }
.lang.is-open .lang-btn .ico { transform: rotate(180deg); }
.flag { display: block; border-radius: 50%; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 150px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang.is-open .lang-menu, .lang:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 0.95rem; text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--bg); }
.menu-btn { display: none; padding: 8px; border: 0; background: none; cursor: pointer; color: var(--brown); }
.menu-btn .ico-close { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .btn-book { font-size: 1.1rem; padding-inline: 1em; min-height: 36px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    overflow-y: auto;
    padding: 24px var(--gutter) 40px;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .menu-btn .ico:not(.ico-close) { display: none; }
  .nav-open .menu-btn .ico-close { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .nav-list > li > a { flex: 1; padding: 16px 0; font-size: 1.8rem; color: var(--ink); }
  .sub-toggle { display: block; padding: 12px; border: 0; background: none; cursor: pointer; }
  .has-sub.is-open .sub-toggle .ico { transform: rotate(180deg); }
  .has-sub::after { display: none; }
  .sub, .has-sub .sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 12px; box-shadow: none; transform: none; display: none; opacity: 1; visibility: visible; background: none; }
  .has-sub.is-open .sub { display: block; transform: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; }
  .sub a { padding: 8px 0; font-size: 1.35rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .logo-svg { width: 64px; }
  .lang-btn span { display: none; }
  .lang-btn .ico { margin-left: 2px; }
  .btn-book { font-size: 1rem; padding-inline: 0.8em; }
}

/* ---------- Portada ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: min(750px, calc(100svh - var(--header-h))); overflow: hidden; background: #3d3a33; }
.hero-bg, .banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }
.hero-inner { position: relative; z-index: 1; width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 60px 0; color: var(--bg); }
.hero-inner h1 > span { display: block; }
.hero-title { color: var(--bg); font-size: clamp(3.4rem, 8vw, 5.6rem); line-height: 1.05; }
.hero-sub { margin: 0.6em 0 1.4em; font-size: clamp(1.4rem, 3.3vw, 2.6rem); font-weight: 300; line-height: 1.35; }
.hero .btn { min-width: 183px; font-size: 1.35rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 90px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.split-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem; padding: 56px 50px; background: var(--white); text-align: center; }
.split-body .prose { font-size: 0.97rem; }

.why { padding: 70px 0 30px; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 40px; margin-top: 50px; width: min(1220px, 100vw - 2 * var(--gutter)); margin-inline: 50%; transform: translateX(-50%); }
.why-grid p { margin-top: 1.2rem; font-size: 0.93rem; }

.facilities { padding: 100px 0 40px; text-align: center; }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 35px; margin: 50px 0 60px; }
.facility { position: relative; display: block; aspect-ratio: 353 / 725; overflow: hidden; text-decoration: none; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.facility::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); transition: background 0.3s; }
.facility span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 1rem; font: 400 2.2rem/1 var(--display); text-transform: uppercase; color: var(--white); }
.facility:hover img { transform: scale(1.04); }
.facility:hover::after { background: rgba(0, 0, 0, 0.4); }

.reviews { padding: 90px 0 70px; text-align: center; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 90px; margin-top: 40px; padding-inline: 4%; }
.review { margin: 0; }
.review .ico { margin: 0 auto 18px; color: var(--ink); transform: rotate(180deg); }
.review blockquote { margin: 0 0 1.1rem; font-size: 0.97rem; line-height: 1.8; }
.review figcaption { font-size: 1.7rem; }

.contact-band { background: var(--ink); color: var(--white); padding: 70px 0; }
.contact-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; align-items: start; }
.contact-band .h-xl { color: var(--white); line-height: 1.4; margin-top: 50px; }
.contact-details { margin: 2rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.contact-details li { margin-bottom: 0.9rem; }
.contact-details a { text-decoration: none; }
.contact-details li:last-child a { text-decoration: underline; text-underline-offset: 3px; }
.contact-details a:hover { text-decoration: underline; }

.find-us { padding: 30px 0 40px; text-align: center; }
.find-us .h-lg { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.find-us-logos { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 30px; margin: 40px 0 0; padding: 0; list-style: none; }
.find-us-logos img { width: auto; max-height: 74px; max-width: 160px; }

@media (max-width: 900px) {
  .split, .contact-band-inner { grid-template-columns: 1fr; }
  .split { margin-top: 50px; }
  .split-media img { min-height: 0; aspect-ratio: 4 / 3; }
  .split-body { padding: 40px 24px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .facility { aspect-ratio: 3 / 4; }
  .review-grid { grid-template-columns: 1fr; gap: 50px; padding: 0; }
  .contact-band .h-xl { margin-top: 0; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .facility-grid { grid-template-columns: 1fr; }
  .facility { aspect-ratio: 4 / 3; }
}

/* ---------- Formulari ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.field-wide, .form-legal, .form-status, .btn-form { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  font: 300 1rem/1.4 var(--body);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; padding: 8px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-width: 2px; }
.form-legal { margin: 4px 0 0; font-size: 0.78rem; opacity: 0.8; }
.form-legal a { text-decoration: underline; }
.btn-form { min-height: 50px; margin-top: 6px; background: var(--ink); color: var(--white); font: 300 0.95rem/1 var(--body); text-transform: none; letter-spacing: 0; }
.btn-form:hover { background: #000; }
.btn-form[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; min-height: 1.5em; font-size: 0.95rem; }
.form-status.is-error { color: #b42318; }
.form-dark .field input, .form-dark .field textarea { background: transparent; border-bottom-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.form-dark .field textarea { padding-inline: 2px; }
.form-dark .field textarea::placeholder { color: rgba(255, 255, 255, 0.85); }
.form-dark .btn-form { background: var(--white); color: var(--ink); margin-top: 40px; }
.form-dark .btn-form:hover { background: var(--bg); }
.form-dark .form-status.is-error { color: #ffb4a8; }
.field textarea::placeholder { color: var(--muted); }

/* ---------- Peu ---------- */
.site-footer { background: var(--bg); padding: 36px 0 30px; border-top: 1px solid var(--grey); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(940px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.footer-inner:first-child { align-items: flex-start; flex-wrap: wrap; gap: 24px 40px; padding-bottom: 24px; }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--grey); }
.footer-nap { font-size: 0.93rem; }
.footer-nap p { margin: 0 0 0.4rem; }
.footer-nap address { font-style: normal; color: var(--muted); }
.footer-nap a, .footer-nav a { text-decoration: none; }
.footer-nap a:hover, .footer-nav a:hover { text-decoration: underline; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; }
.footer-legal { font-size: 0.93rem; color: var(--muted); }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-legal p { margin: 0.5rem 0 0; }
.footer-legal p:first-child { margin-top: 0; }
.social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a { display: block; color: var(--ink); }
.social a:hover { color: var(--brown); }

/* ---------- Suggeriment d'idioma (main.js) ---------- */
.lang-hint { position: fixed; left: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 14px; max-width: min(480px, 100% - 120px); padding: 14px 12px 14px 20px; background: var(--white); color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); font-size: 0.92rem; font-weight: 400; animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.lang-hint p { margin: 0; }
.lang-hint .btn { flex: none; font-size: 1rem; padding: 0.5em 1.1em; }
.lang-hint-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.lang-hint-close:hover { color: var(--ink); }
@media (max-width: 600px) { .lang-hint { left: 12px; right: 80px; bottom: 14px; max-width: none; flex-wrap: wrap; gap: 10px; padding: 12px 8px 12px 14px; } .lang-hint p { flex: 1 1 100%; } }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-bubble {
  position: relative;
  margin: 0;
  padding: 14px 34px 14px 16px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  font: 400 0.85rem/1.3 var(--body);
  color: var(--ink);
}
.wa-bubble::after { content: ''; position: absolute; right: 22px; bottom: -7px; border: 8px solid transparent; border-top-color: var(--white); border-bottom: 0; }
.wa-close { position: absolute; top: 6px; right: 6px; padding: 4px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.wa-btn { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--brown); color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.wa-btn:hover { transform: scale(1.06); }
.wa.is-closed .wa-bubble { display: none; }
@media (max-width: 600px) { .wa { right: 14px; bottom: 14px; } .wa-bubble { display: none; } .wa-btn { width: 52px; height: 52px; } }

/* ---------- Capçalera de pàgina interior ---------- */
.page-head { padding: 60px var(--gutter) 50px; text-align: center; }
.page-head .lead { margin-top: 1.8rem; }

/* ---------- Sobre la casa ---------- */
.about { padding: 50px 0 20px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 40px auto 0; max-width: 980px; }
.about-text { display: flex; align-items: center; padding: 20px 28px 20px 20px; font-style: italic; font-size: 0.95rem; text-align: justify; }
.about-grid > :nth-child(4) { padding: 20px 16px 20px 28px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 500 / 310; }
.about-p3 { max-width: 920px; margin: 40px auto 0; font-style: italic; font-size: 0.97rem; }
.tour { padding: 40px 0 30px; }
.tour .h-lg { margin-bottom: 30px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: block; overflow: hidden; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.video-play::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); transition: background 0.3s; }
.video-btn { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--brown); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform 0.3s; }
.video-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); animation: pulse 2.4s ease-out infinite; }
.video-btn .ico { margin-left: 4px; }
.video-play:hover img { transform: scale(1.04); }
.video-play:hover::after { background: rgba(0, 0, 0, 0.3); }
.video-play:hover .video-btn { transform: scale(1.08); }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.tour .video { max-width: 980px; margin-inline: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 23px; padding: 60px 0 80px; }
.card { display: block; text-align: center; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 358 / 268; object-fit: cover; margin-bottom: 36px; }
.card h3 { font: 400 1.5rem/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 1.2rem; }
.card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0 auto; max-width: 300px; font-size: 0.88rem; line-height: 1.3; }
.card { overflow: hidden; }
.card img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover img { transform: scale(1.04); }
.card:hover h3 { color: var(--brown); }

.banner { position: relative; display: grid; place-items: center; min-height: 440px; overflow: hidden; padding: 70px var(--gutter); text-align: center; }
.banner::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.banner-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 760px; }
.banner .h-xl { color: var(--white); }
.banner-quote { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 300; line-height: 1.4; color: var(--white); }
.banner-more { min-height: 470px; margin-top: 60px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > :nth-child(3) { order: 4; }
  .about-text, .about-grid > :nth-child(4) { padding: 24px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Galeries ---------- */
.gallery { columns: 3 300px; column-gap: 30px; padding-bottom: 20px; }
.gallery-item { display: block; margin-bottom: 30px; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-4 { columns: 4 200px; column-gap: 16px; }
.gallery-4 .gallery-item { margin-bottom: 16px; }

/* ---------- Text ampliat de les pàgines ---------- */
.page-text { max-width: 820px; padding: 30px 0 70px; }
.page-text .h-lg { margin: 2rem 0 1rem; }
.page-text .h-lg:first-child { margin-top: 0; }
.page-text .prose { font-weight: 400; }
.page-text .center { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.review-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
@media (max-width: 700px) { .gallery { columns: 2; column-gap: 12px; } .gallery-item { margin-bottom: 12px; } }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(20, 18, 15, 0.94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: none; color: var(--white); cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }

/* ---------- Habitacions ---------- */
.rooms { background: var(--white); padding: 28px 0; }
.room { display: grid; grid-template-columns: 1fr minmax(0, 594px); gap: 40px; align-items: center; padding: 0 36px 60px var(--gutter); }
.room > * { min-width: 0; }
.room-text { max-width: 380px; margin-inline: auto; text-align: center; }
.room-text p { margin-top: 3rem; font-weight: 400; font-size: 0.97rem; }
.slides-main { position: relative; aspect-ratio: 594 / 390; overflow: hidden; background: var(--bg); }
.slide { margin: 0; position: absolute; inset: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slides-nav { position: absolute; top: 50%; transform: translateY(-50%); padding: 10px; border: 0; background: none; color: var(--white); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); cursor: pointer; }
.slides-prev { left: 4px; }
.slides-next { right: 4px; }
.slides-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumb { flex: none; width: 120px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.2s; }
.thumb img { width: 120px; height: 120px; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; }
@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; gap: 24px; padding: 20px var(--gutter) 50px; }
  .room-text p { margin-top: 1.2rem; }
  .thumb, .thumb img { width: 84px; height: 84px; }
}

/* ---------- Activitats ---------- */
.routes { background: var(--white); padding: 40px 0 70px; }
.routes-inner { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 40px; align-items: center; width: min(1240px, 100% - 2 * var(--gutter)); }
.routes-text .h-lg { font-size: clamp(2rem, 3vw, 2.4rem); margin-bottom: 1.6rem; }
.routes-text .prose { font-size: 0.95rem; line-height: 1.8; }
.routes-text .prose.center { margin-bottom: 1.6rem; }
.routes-text li { margin-bottom: 0; }

.overlap { padding: 70px 0; }
.overlap-grey { background: var(--grey); }
.overlap-inner { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.overlap-media { grid-column: 1 / 9; grid-row: 1; }
.overlap-media img { width: 100%; aspect-ratio: 707 / 362; object-fit: cover; }
.overlap-box { grid-column: 6 / -1; grid-row: 1; margin-top: 70px; padding: 70px 60px; background: var(--white); position: relative; }
.overlap-box .prose { margin-top: 1.4rem; font-weight: 400; line-height: 1.9; }

.snow { padding: 30px 0 80px; }
.h-mask {
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.95;
  background: var(--olive) var(--mask) center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.snow .h-lg { margin: 40px 0 26px; font-size: clamp(2rem, 3.4vw, 2.7rem); }
.snow .prose { font-weight: 400; line-height: 1.8; }
.snow .prose p { margin: 0; }

.food { display: grid; grid-template-columns: 1fr 380px; background: var(--white); width: min(1160px, 100% - 2 * var(--gutter)); }
.food-text { padding: 40px 60px 50px 120px; }
.food-text .h-mask { font-size: clamp(3rem, 6vw, 4.6rem); margin-bottom: 30px; }
.food-text .h-md { margin-top: 20px; }
.food-media img { width: 100%; height: 100%; object-fit: cover; }
.list-plain { font-size: 0.93rem; line-height: 1.4; }
.list-plain p { margin: 0; }
.list-plain h6 { margin: 1.2rem 0 0.4rem; font: 400 1.35rem/1.1 var(--display); text-transform: uppercase; color: var(--ink); }

@media (max-width: 900px) {
  .routes-inner, .food { grid-template-columns: 1fr; }
  .overlap-media, .overlap-box { grid-column: 1 / -1; }
  .overlap-box { grid-row: 2; margin: -40px 16px 0; padding: 40px 28px; }
  .food-text { padding: 40px 28px; }
  .food-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Reserva ---------- */
.booking { padding: 50px 0 40px; text-align: center; }
.booking .h-xl { max-width: 760px; margin-inline: auto; line-height: 1.3; }
.booking .lead { margin-top: 1.2rem; }
.booking-box, .booking-engine { max-width: 763px; margin: 40px auto 0; }
.booking-box { padding: 40px; background: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
/* El widget d'Avaibook porta la seva capsa; reservem-ne l'alçada perquè la pàgina no salti */
.booking-engine { min-height: 130px; text-align: left; }
.booking-box p { margin: 1rem 0 1.6rem; }
.booking-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.booking-info { max-width: 820px; padding: 60px 0 70px; }
.booking-info .prose { margin-top: 1.2rem; font-weight: 400; }
.booking-info .prose p { margin-bottom: 0.4rem; }
.faq { max-width: 820px; padding: 0 0 80px; }
.faq .h-xl { margin-bottom: 1.6rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 300; font-size: 1.5rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 1.2rem; font-weight: 400; }

/* ---------- Contacte ---------- */
.contact { display: grid; grid-template-columns: 460px 1fr; gap: 50px 180px; padding: 60px 0; }
.contact-side { text-align: center; }
.contact-sub { margin: 0.8rem 0 1.6rem; font-size: 1.35rem; font-weight: 400; }
.contact-side img { width: 100%; aspect-ratio: 460 / 317; object-fit: cover; }
.contact-details-dark { margin-top: 1.6rem; font-weight: 400; }
.contact-details-dark a { text-decoration: underline; text-underline-offset: 3px; }
.map iframe { display: block; width: 100%; height: 470px; border: 0; }
.map { position: relative; display: grid; place-items: center; height: 470px; overflow: hidden; background: var(--grey); }
.map.is-loaded { display: block; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.map::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); pointer-events: none; }
.map.is-loaded::after { display: none; }
.map-btn { position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
@media (max-width: 1100px) { .contact { grid-template-columns: 1fr 1fr; gap: 50px; } }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } .map, .map iframe { height: 360px; } }
@media (max-width: 480px) { .form { grid-template-columns: 1fr; } }

/* ---------- Pàgines legals i 404 ---------- */
.legal { max-width: 980px; padding: 60px 0 80px; }
.legal .h-xl { margin-bottom: 1.6rem; }
.legal .prose { font-size: 0.95rem; }
.legal h4 { margin: 2rem 0 0.8rem; font: 400 1.9rem/1.1 var(--display); text-transform: uppercase; color: var(--ink); }
.legal h5 { margin: 1.4rem 0 0.6rem; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.notfound { padding-block: 120px; }
.notfound .btn { margin-top: 2rem; }

/* ---------- Animacions ---------- */
/* Transició suau entre pàgines (Chrome, Edge i Safari; la resta canvia de pàgina com sempre) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
.site-header { view-transition-name: site-header; transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
html { scroll-behavior: smooth; }

/* Portada: la foto s'apropa lentament i el text entra per parts */
.hero-bg { animation: hero-zoom 16s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero-title, .hero-sub, .hero .btn { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-sub { animation-delay: 0.18s; }
.hero .btn { animation-delay: 0.36s; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* Elements que apareixen en fer scroll (classes posades per main.js) */
.reveal { opacity: 0; transform: translateY(36px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
/* Fotos grans: es destapen de dalt a baix (es retalla la foto, no el contenidor, perquè l'observador el vegi) */
.reveal-clip { overflow: hidden; }
.reveal-clip > img { clip-path: inset(0 0 100% 0); transform: scale(1.08); }
.reveal-clip.is-in > img {
  clip-path: inset(0);
  transform: none;
  transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

/* Bàners amb un lleu efecte de profunditat en fer scroll (només navegadors compatibles) */
@supports (animation-timeline: view()) {
  .banner-bg { height: 120%; top: -10%; animation: parallax linear both; animation-timeline: view(); }
  @keyframes parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
