/* ========================================
   FONTS
   ======================================== */
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/barlow/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/barlow/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --color-primary: #834100;
    --color-primary-dark: #5D1F00;
    --color-text: #2a2a2a;
    --color-text-muted: #7a6655;
    --color-bg: #faf7f2;
    --color-bg-alt: #ede5d8;
    --color-border: #D6C4A9;
    --color-white: #ffffff;
    --color-cta: #A9D6B8;
    --color-cta-hover: #84c4a6;
    --topbar-height: 30px;
    --nav-height: 90px;
    --header-height: 120px;
    --container-width: 1200px;
    --transition: 0.3s ease;
    --radius: 6px;
}

/* ========================================
   RESET I BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    padding-top: var(--header-height);
}

/* ========================================
   TIPOGRAFIA
   ======================================== */
h1, h2, h3, h4 {
    font-family: 'Barlow', sans-serif;
    line-height: 1.25;
    color: var(--color-primary-dark);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-pad {
    padding: 5rem 0;
}

.section-pad--alt {
    background-color: var(--color-bg-alt);
}

.section-pad--nature {
    background-color: #ddeade;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ========================================
   HEADER I NAVBAR
   ======================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    z-index: 200;
    transition: transform var(--transition);
}

#site-header.nav-hidden {
    transform: translateY(-100%);
}

.header-top {
    background: #d6c4a929;
    padding: 7px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-address,
.header-phone {
    font-size: 0.65rem;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.header-address:hover,
.header-phone:hover {
    text-decoration: underline;
}

.header-top-sep {
    font-size: 0.65rem;
    color: var(--color-primary-dark);
    opacity: 0.4;
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-name {
    display: block;
    line-height: 0;
}

.logo-name img {
    height: 72px;
    width: auto;
    display: block;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--color-primary-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Nav */
.header-inner nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Lang switcher dins el menú mòbil: ocult en desktop */
.nav-lang-item {
    display: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

/* Lang switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.lang-switcher a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.lang-switcher a[aria-current="true"],
.lang-switcher .lang-active {
    color: var(--color-primary);
    font-weight: 700;
}

.lang-switcher a:hover {
    color: var(--color-primary);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   BOTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-reserves {
    background-color: var(--color-cta);
    color: var(--color-text);
    border-color: var(--color-cta);
}

.btn-reserves:hover {
    background-color: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--color-cta);
    color: var(--color-text);
    border-color: var(--color-cta);
}

.btn-primary:hover {
    background-color: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 214, 184, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    border-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    --hero-overlay-alpha: 0.42;
    --hero-bg-image: url('../img/Hotel-Font-del-Genil-Arseguel-Alt-Urgell.webp');
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background:
        linear-gradient(rgba(0,0,0,var(--hero-overlay-alpha)), rgba(0,0,0,var(--hero-overlay-alpha))),
        var(--hero-bg-image) center / cover no-repeat;
    background-color: var(--color-primary-dark);
    padding: 4rem 1.5rem;
}

.hero--inner {
    --hero-overlay-alpha: 0.2;
    min-height: 65vh;
}

.hero--espai-salut {
    --hero-bg-image: url('../img/espai-salut/font-del-genil-espai-salut-1200.webp');
    background-color: var(--color-primary-dark);
}

.hero--restaurant {
    --hero-bg-image: url('../img/restaurant-arseguel/restaurant-arseguel-font-del-genil-1200.webp');
    background-color: var(--color-primary-dark);
}

.hero--activitats {
    --hero-bg-image: url('../img/activitats/cavalls-lliures-cadi-nord-22-08.webp');
    background-color: var(--color-primary-dark);
}

.hero-content h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content h1 em {
    font-style: italic;
    font-weight: normal;
}

.hero-content h2 {
    color: var(--color-white);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subclaim {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    line-height: 1.6;
}

.hero-newmanagement {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin: 0.6rem auto 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ========================================
   INTRO
   ======================================== */
.intro h2 {
    color: var(--color-primary);
    max-width: 820px;
}

.intro-body {
    max-width: 820px;
    color: var(--color-text);
}

.intro-body--full {
    max-width: none;
}

.intro-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

/* ========================================
   IMAGE PLACEHOLDER
   ======================================== */
.img-placeholder {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius);
    min-height: 320px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.img-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

/* ========================================
   INTRO LAYOUT (text esquerra, imatge dreta)
   ======================================== */
.intro-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* ========================================
   COMPROMÍS LAYOUT (imatge esquerra, text dreta)
   ======================================== */
.compromis-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ========================================
   GRID 2x2 I SECCIÓ-CARD
   ======================================== */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.grid-row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.section-card {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    color: var(--color-white);
    text-decoration: none;
}

.section-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.section-card:hover .section-card-img {
    transform: scale(1.06);
}

.section-card-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}

.section-card h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.section-card p {
    font-size: 0.85rem;
    opacity: 0.88;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   SEGELLS
   ======================================== */
.seals {
    background-color: var(--color-primary);
    padding: 2.5rem 0;
}

.seals-list {
    display: flex;
    justify-content: center;
    gap: 4rem;
    list-style: none;
    flex-wrap: wrap;
}

.seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-white);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seal-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ========================================
   COMPROMÍS
   ======================================== */
.compromis-foto {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}


.compromis h2 {
    color: var(--color-primary);
}

.compromis-body {
    max-width: 820px;
}

.compromis-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.compromis-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ========================================
   RESERVES
   ======================================== */
.reserves-inner {
    max-width: 1200px;
}

.reserves-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reserves-inner h2 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.reserves-hours {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text);
}

.reserves-hours li {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reserves-hours strong {
    color: var(--color-primary-dark);
}

.reserves-inner p {
    color: var(--color-text);
    margin-bottom: 2rem;
}

.reserves-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.reserves-email {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    text-align: center;
}

.reserves-email a {
    text-decoration: underline;
}

.reserves-terms {
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    text-align: center;
}

.reserves-terms a {
    text-decoration: underline;
}

.reserves-address {
    font-size: 0.85rem;
    color: var(--color-text);
    letter-spacing: 0.03em;
    text-align: center;
}


/* ========================================
   HABITACIONS
   ======================================== */
.rooms-intro {
    max-width: 720px;
    margin-bottom: 1rem;
}

.rooms-intro p {
    font-size: 1.05rem;
    line-height: 1.85;
}

.room-section {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0;
}

.room-section:first-of-type {
    border-top: none;
    padding-top: 2rem;
}

.room-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.room-layout--reverse {
    direction: rtl;
}

.room-layout--reverse > * {
    direction: ltr;
}

.room-info h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.room-info p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.room-price {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: Georgia, serif;
}

.room-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.room-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: sans-serif;
}

/* Carousel */
.carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-alt);
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.carousel-img {
    height: 340px;
    background-color: #d4c4a8;
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.88);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    color: var(--color-primary-dark);
}

.carousel-btn:hover {
    background: var(--color-white);
}

.carousel-btn--prev { left: 0.75rem; }
.carousel-btn--next { right: 0.75rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
}

.carousel-dot {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-dot::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background var(--transition);
}

.carousel-dot.is-active::after {
    background: var(--color-primary);
}

/* Carousel intro home */
.intro-carousel .carousel-img {
    height: 550px;
}

/* Rooms note */
.rooms-note {
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 3rem;
}

.rooms-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.room-route {
    margin: 0 0 0.85rem;
}

.room-route a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-decoration: underline;
}

.room-route a:hover {
    text-decoration: underline;
}

.room-route i {
    font-size: 1.05rem;
}

/* ========================================
   MENÚ DIGITAL
   ======================================== */
.menu-intro {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 680px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 4rem;
}

.menu-category-title {
    font-family: Georgia, serif;
    font-size: 0.72rem;
    font-weight: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.menu-item-name {
    font-family: Georgia, serif;
    font-size: 0.97rem;
    color: var(--color-text);
    line-height: 1.35;
}

.menu-item-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.menu-nota {
    margin-top: 2.5rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-style: italic;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

.menu-eco-notice {
    background-color: #f4f0e8;
    border-left: 3px solid var(--color-primary);
    padding: 1.1rem 1.4rem;
    margin-bottom: 2.5rem;
    border-radius: 2px;
}

.menu-eco-notice strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.menu-eco-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ========================================
   RESTAURANT
   ======================================== */
.restaurant-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.restaurant-text h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.restaurant-text p {
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.restaurant-hours {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 2rem;
}

.restaurant-hours h3 {
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list strong {
    color: var(--color-text);
}

.restaurant-extras {
    margin-top: 1.5rem;
}

.restaurant-extras h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.restaurant-extras p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.restaurant-capacity {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

/* ========================================
   ESPAI DE SALUT
   ======================================== */
.salut-content {
    max-width: 820px;
}

.salut-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.salut-placeholder {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 2rem;
}

/* ========================================
   PÀGINA COMPROMÍS: pilars i Eòlia
   ======================================== */
.pilars-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.compromis-pilars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.pilar {
    display: flex;
    flex-direction: column;
}

.pilar-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.pilar h3 {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.85rem;
}

.pilar p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.eolia-block {
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
}

.eolia-block h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.eolia-block p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.eolia-block p:last-child {
    margin-bottom: 0;
}

/* ========================================
   ACTIVITATS (Fundació Miranda)
   ======================================== */
.activitats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.activitat-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.activitat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(131, 65, 0, 0.1);
    transform: translateY(-2px);
}

.activitat-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
}

.activitat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activitat-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-white);
    color: var(--color-primary-dark);
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.activitat-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activitat-body h3 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.activitat-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
}

.activitat-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.activitat-body p.activitat-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    flex: 1;
}

.activitat-body .btn {
    align-self: flex-start;
}

@media (max-width: 640px) {
    .activitats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FOOTER
   ======================================== */
#site-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 2rem;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand strong {
    font-family: Georgia, serif;
    font-size: 1rem;
    color: var(--color-white);
    font-weight: normal;
    letter-spacing: 0.04em;
}

.footer-brand span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: var(--color-white);
    transition: transform var(--transition), border-color var(--transition), opacity var(--transition);
}

.footer-social a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.footer-social i {
    font-size: 2.2rem;
}

.footer-social img {
    width: 44px;
    height: 44px;
    display: block;
}

.footer-payment-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 0.75rem;
    opacity: 0.65;
    margin: 0;
}

.footer-copy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-copy a:hover {
    opacity: 0.8;
}

/* ========================================
   PÀGINES LEGALS
   ======================================== */
.legal-body {
    max-width: 720px;
    margin-top: 2rem;
}

.legal-body h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-body p,
.legal-body ul {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-body ul {
    padding-left: 1.25rem;
}

.legal-body li {
    margin-bottom: 0.25rem;
}

.matomo-optout #matomo-opt-out {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.matomo-optout #matomo-opt-out p {
    margin-bottom: 1rem;
}

.matomo-optout #matomo-opt-out label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.matomo-optout #matomo-opt-out input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ========================================
   ANIMACIÓ FADE-IN
   ======================================== */
.fade-in-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-ready.is-visible {
    opacity: 1;
    transform: none;
}

/* ========================================
   ESPAI DE SALUT — PÁGINA COMPLETA
   ======================================== */

/* Intro secció */
.intro-salut {
    max-width: 820px;
}

.intro-salut h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.intro-salut p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

/* Grid No / Sí */
.nosi-wrapper {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.nosi-column {
    padding: 0;
}

.nosi-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    line-height: 1.3;
}

.nosi-column--no h3 {
    color: var(--color-text-muted);
}

.nosi-column--si h3 {
    color: var(--color-primary);
}

.nosi-divider {
    background: var(--color-primary);
    width: 2px;
    height: auto;
    margin: 0;
}

.nosi-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nosi-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    padding-left: 1.75rem;
    position: relative;
}

.nosi-column--no .nosi-list li {
    color: var(--color-text-muted);
}

.nosi-column--si .nosi-list li {
    color: var(--color-text);
}

.nosi-column--no .nosi-list li::before,
.nosi-column--si .nosi-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nosi-column--no .nosi-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='none' stroke='%237a6655' stroke-width='1.5'/%3E%3Cline x1='5' y1='5' x2='13' y2='13' stroke='%237a6655' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='13' y1='5' x2='5' y2='13' stroke='%237a6655' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.nosi-column--si .nosi-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='none' stroke='%23834100' stroke-width='1.5'/%3E%3Cpolyline points='5.5,9 8,11.5 12.5,6.5' stroke='%23834100' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.nosi-caption {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 2rem;
}

/* Grid de Serveis */
.serveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.servei-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2.25rem 2rem;
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.servei-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(131, 65, 0, 0.1);
}

.servei-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.servei-card h3 {
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.servei-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.servei-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(131, 65, 0, 0.08);
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
}

/* Grid d'Espais */
.espais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.espai-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1.25rem;
}

.espai-icon {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    margin-top: 6px;
}

.espai-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.4rem;
}

.espai-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* Secció poètica Cadí */
.section-cadi {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #3a2512 100%);
    padding: 5rem 0;
    text-align: center;
}

.cadi-blockquote {
    max-width: 760px;
    margin: 0 auto;
}

.cadi-blockquote p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.85;
    margin: 0 0 1.75rem;
    font-style: italic;
}

.cadi-blockquote footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-style: normal;
}

/* Contacte Rosa */
.contacte-salut-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3.5rem;
    align-items: start;
}

.contacte-salut-layout > div:first-child h2 {
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.contacte-salut-layout > div:first-child p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.rosa-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2.25rem 2rem;
    border-radius: var(--radius);
}

.rosa-nom {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-primary-dark);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.rosa-rol {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.75rem;
}

.rosa-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.rosa-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--color-text);
    transition: color var(--transition);
}

.rosa-link:hover {
    color: var(--color-primary);
}

.rosa-link i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.rosa-note {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.rosa-note a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE — TABLET (768px)
   ======================================== */
@media (max-width: 900px) {
    .restaurant-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .room-layout,
    .room-layout--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 52px;
        --header-height: 82px; /* topbar ~30px + nav 52px */
    }

    /* Logo mòbil */
    .logo-name img {
        height: 40px;
    }

    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .header-inner nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
    }

    .header-inner nav.is-open {
        max-height: 300px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0.5rem 0 1rem;
    }

    .nav-links li a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-bottom: none;
        text-align: center;
    }

    /* Lang switcher al menú mòbil */
    .nav-lang-item {
        display: flex;
        justify-content: center;
        padding: 0.75rem 1.5rem 1rem;
    }

    .nav-lang-item .lang-switcher {
        font-size: 0.85rem;
    }

    /* Amagar el lang-switcher del header en mòbil */
    .header-actions .lang-switcher {
        display: none;
    }

    .header-actions {
        margin-left: auto;
        gap: 0.75rem;
    }

    .btn-reserves {
        padding: 0.5rem 1rem;
        font-size: 0.78rem;
    }

    .header-inner {
        gap: 1rem;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
    }

    /* Menú */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Intro i Compromís layouts */
    .intro-layout,
    .compromis-layout {
        grid-template-columns: 1fr;
    }

    .compromis-pilars {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .img-placeholder {
        min-height: 220px;
    }

    .img-placeholder img {
        min-height: 220px;
    }

    /* Grid */
    .grid-2x2 {
        grid-template-columns: 1fr;
    }

    .grid-row3 {
        grid-template-columns: 1fr;
    }

    .section-card {
        aspect-ratio: 16 / 9;
    }

    /* Seals */
    .seals-list {
        gap: 2rem;
    }

    /* Section pad */
    .section-pad {
        padding: 3rem 0;
    }

    /* Espai de Salut responsive */
    .nosi-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nosi-divider {
        display: none;
    }

    .serveis-grid {
        grid-template-columns: 1fr;
    }

    .espais-grid {
        grid-template-columns: 1fr;
    }

    .contacte-salut-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .rosa-card {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-subclaim {
        font-size: 0.95rem;
    }

    .reserves-contact {
        flex-direction: column;
        align-items: center;
    }

    .reserves-copy {
        text-align: center;
    }

    .footer-links {
        gap: 1.25rem;
    }

    .eolia-block {
        padding: 2rem 1.25rem;
    }
}
