/* ===========================================================================
   CAMPANET — Fulla d'estils principal
   Clon del disseny de campanet.es (tipografia Futura Book + Roboto)
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. TIPOGRAFIA
   ------------------------------------------------------------------------- */

@font-face {
    font-family: "futura";
    font-display: swap;
    font-weight: 400;
    font-style: normal;
    src: url("../fonts/Futura-Book.ttf") format("truetype");
}

/* ---------------------------------------------------------------------------
   2. VARIABLES
   ------------------------------------------------------------------------- */

:root {
    --color-fons:        #f9f9f9;
    --color-text:        #505050;
    --color-negre:       #000000;
    --color-blanc:       #ffffff;
    --color-footer-text: #909090;
    --color-hover:       #cccccc;

    --amplada-container: 1140px;
    --amplada-grid:      1300px;

    --alcada-header:        90px;
    --alcada-header-sticky: 70px;

    --font-titol: "futura", sans-serif;
    --font-ui:    "Roboto", sans-serif;
}

/* ---------------------------------------------------------------------------
   3. RESET BÀSIC
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    font-family: var(--font-titol);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-fons);
    color: var(--color-text);
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Igual que el CSS personalitzat de l'original: Futura per al text de contingut */
h1, h2, h3, h4, h5, h6, p, a, ul, li {
    font-family: var(--font-titol);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; margin: 0; padding: 0; }

.container {
    width: 100%;
    max-width: var(--amplada-container);
    margin: 0 auto;
    padding: 0;
}

/* Visibilitat per dispositiu */
.nomes-mobil  { display: none; }

/* ---------------------------------------------------------------------------
   4. CAPÇALERA ESCRIPTORI
   ------------------------------------------------------------------------- */

#page-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--alcada-header);
    z-index: 100;
    background-color: transparent;
}

#page-header-inner {
    height: 100%;
    padding: 0 50px;
    border-bottom: 1px solid transparent;
}

.header-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-logo {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo-link {
    display: flex;
    align-items: center;
    height: 75px;
}

.logo-img {
    width: auto;
    height: 100%;
    max-height: 100%;
}

/* Al hero la capçalera va sobre el vídeo: logotip blanc */
.logo--dark   { display: none; }
.logo--sticky { height: 70px; width: auto; }

/* Quan la capçalera no va sobre un hero (pàgines interiors) */
body.te-header-solid #page-header { position: relative; background-color: var(--color-blanc); }
body.te-header-solid .logo--main  { display: none; }
body.te-header-solid .logo--dark  { display: block; }

/* --- Navegació --- */

.header-navigation .menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-navigation .menu > li {
    position: relative;
    margin: 0 20px;
}

.header-navigation .menu > li:first-child { margin-left: 0; }
.header-navigation .menu > li:last-child  { margin-right: 0; }

.header-navigation .menu > li > a {
    display: flex;
    align-items: center;
    height: var(--alcada-header);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-blanc);
    transition: color .2s ease-out, opacity .2s ease-out;
}

.header-navigation .menu > li > a:hover { opacity: .7; }

/* A les pàgines interiors la capçalera és blanca: text en negre */
body.te-header-solid #page-header .header-navigation .menu > li > a { color: var(--color-negre); }

.menu-item-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.menu-item--social a svg { display: block; width: 20px; height: 20px; }

.flag {
    display: block;
    width: 16px;
    height: 11px;
}

/* A l'original la fletxa del selector d'idioma no es mostra a l'escriptori */
.menu-item-arrow { display: none; }

.mobile-header-navigation .menu-item-arrow {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
    transform: rotate(90deg);
}

/* Desplegable d'idiomes */

.drop-down-second {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 60px;
    padding-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease-out, visibility .25s ease-out;
    z-index: 20;
}

.menu-item-has-children:hover .drop-down-second {
    opacity: 1;
    visibility: visible;
}

.drop-down-second-inner {
    background-color: var(--color-blanc);
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.drop-down-second .sub-menu li a {
    display: flex;
    justify-content: center;
    padding: 6px 18px;
    transition: background-color .2s ease-out;
}

.drop-down-second .sub-menu li a:hover { background-color: #f2f2f2; }

/* Desplegable amb text (subapartats de Patrimoni) */
.drop-down-second--ample {
    left: 0;
    transform: none;
    min-width: 260px;
    padding-top: 6px;
}

.drop-down-second--ample .sub-menu li a {
    justify-content: flex-start;
    padding: 10px 22px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--color-negre);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   5. CAPÇALERA STICKY
   ------------------------------------------------------------------------- */

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--alcada-header-sticky);
    background-color: var(--color-blanc);
    z-index: 101;
    transform: translateY(-100%);
    transition: transform .4s ease-out;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.header-sticky.is-visible { transform: translateY(0); }

.header-sticky-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 50px;
}

.header-sticky-inner .header-logo-link {
    position: absolute;
    left: 50px;
    top: 0;
    height: 100%;
}

.header-sticky-inner .header-navigation .menu > li > a {
    height: var(--alcada-header-sticky);
    color: var(--color-negre);
}

/* ---------------------------------------------------------------------------
   6. CAPÇALERA MÒBIL
   ------------------------------------------------------------------------- */

#page-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 102;
    background-color: var(--color-blanc);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

#page-mobile-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
}

.mobile-header-logo-link { display: block; height: 60px; }
.mobile-header-logo-link img { height: 100%; width: auto; }

.mobile-header-opener {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.opener-lines {
    position: relative;
    display: block;
    width: 24px;
    height: 14px;
}

.opener-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-negre);
    transition: transform .3s ease-out, opacity .3s ease-out;
}

.opener-line.l1 { top: 0; }
.opener-line.l2 { bottom: 0; }

.mobile-header-opener.is-open .opener-line.l1 { transform: translateY(6px) rotate(45deg); }
.mobile-header-opener.is-open .opener-line.l2 { transform: translateY(-6px) rotate(-45deg); }

.mobile-header-navigation {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-blanc);
    border-top: 1px solid #eee;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-header-navigation.is-open { display: block; }

.mobile-header-navigation .menu {
    display: block;
    padding: 10px 20px 20px;
}

.mobile-header-navigation .menu > li { margin: 0; }

.mobile-header-navigation .menu > li > a {
    display: flex;
    align-items: center;
    height: auto;
    padding: 13px 0;
    color: var(--color-negre);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-header-navigation .menu-item--social { display: inline-block; margin-right: 18px !important; }
.mobile-header-navigation .menu-item--social > a { border-bottom: 0; }

.mobile-header-navigation .drop-down-second {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
}

.mobile-header-navigation .menu-item-has-children.is-open .drop-down-second { display: block; }

.mobile-header-navigation .drop-down-second-inner { box-shadow: none; padding: 6px 0; }
.mobile-header-navigation .sub-menu { display: flex; gap: 10px; }
.mobile-header-navigation .sub-menu li a { padding: 8px 10px; }

/* ---------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------- */

#page-outer { margin-top: calc(var(--alcada-header) * -1); }

body.te-header-solid #page-outer { margin-top: 0; }

.sec-hero {
    position: relative;
    display: flex;
    align-items: center;      /* el bloc de contingut va centrat verticalment */
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #2b2b2b;
}

/* El pòster és exactament el primer fotograma del vídeo, així que la
   imatge fixa i l'inici de la reproducció encaixen sense cap salt.
   La imatge s'aplica des del PHP amb la seva versió, perquè els fitxers
   es serveixen amb memòria cau d'un any. */
.hero-video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background-color: #2b2b2b;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Capa pròpia: el desplaçament no obliga a repintar el vídeo */
    backface-visibility: hidden;
}

/* Reprodueix la caixa d'Elementor: 10px de columna + 10px d'espaiador a dalt
   i 10px + 32px d'espaiador + 20px de marge a baix */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 15px 62px;
    text-align: center;
}

.hero-logo {
    display: block;
    width: 600px;
    max-width: 90%;
    height: auto;
    margin: 0 auto 20px;
}

/* El botó puja 37px, tal com fa el marge negatiu de l'original */
.hero-button-wrapper { margin-top: -37px; }

.btn-video {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    line-height: 13px;
    color: var(--color-blanc);
    fill: var(--color-blanc);
    background-color: rgba(255, 255, 255, .55);
    border: 2px solid var(--color-blanc);
    border-radius: 5px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: transform .3s ease-out, border-color .3s ease-out;
}

/* Animació "shrink" d'Elementor */
.btn-video:hover {
    transform: scale(.9);
    border-color: #f9f4f4;
}

/* ---------------------------------------------------------------------------
   8. SEPARADOR
   ------------------------------------------------------------------------- */

.sec-separador {
    background-color: var(--color-fons);
    padding: 0;
}

.divider {
    padding: 15px 0;
    background-color: var(--color-fons);
}

/* ---------------------------------------------------------------------------
   9. GRAELLA DE TARGETES (flip boxes)
   ------------------------------------------------------------------------- */

.sec-targetes {
    background-color: var(--color-fons);
    padding-bottom: 20px;
}

.sec-targetes .container {
    display: flex;
    flex-wrap: wrap;
}

.sec-targetes .columna {
    width: 33.333%;
    padding: 10px;
}

.flip-box-wrapper:not(:last-child) { margin-bottom: 20px; }

.flip-box {
    position: relative;
    height: 450px;
    overflow: hidden;
    perspective: 1000px;
}

.flip-box__layer {
    position: absolute;
    inset: 0;
    background-color: #fb7b5d;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity .6s ease-in-out;
}

.flip-box__front { opacity: 1; z-index: 2; }

/* La foto frontal va en un <img> per aprofitar la càrrega mandrosa nativa */
.flip-box__foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.flip-box__back  {
    opacity: 0;
    z-index: 1;
    display: block;
    background-color: #000;
}

.flip-box:hover .flip-box__front { opacity: 0; }
.flip-box:hover .flip-box__back  { opacity: 1; z-index: 3; }

.flip-box__overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 35px;
    text-align: center;
}

.flip-box__inner { width: 100%; }

.flip-box__title {
    margin: 25px 0;
    font-family: var(--font-titol);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-blanc);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

.flip-box__title--back {
    font-size: 24px !important;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
}

/* ---------------------------------------------------------------------------
   10. SECCIÓ DE PRESENTACIÓ
   ------------------------------------------------------------------------- */

.sec-intro {
    background-color: var(--color-fons);
    padding: 20px 0 60px;
}

.intro-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.intro-col-imatge { width: 33.333%; padding: 10px; }
.intro-col-text   { width: 66.666%; padding: 10px; }

.intro-col-imatge img { margin: 27px; width: calc(100% - 54px); }

.intro-col-text > p:first-child {
    margin: 33px;
    font-family: var(--font-titol);
    font-size: 25px;
    font-weight: 400;
    line-height: 40px;
    color: var(--color-negre);
    text-align: left;
}

.intro-col-text > p:first-child strong { font-weight: 700; }

.intro-imatges {
    display: flex;
    flex-wrap: wrap;
    margin: 0 33px 33px;
}

.imgmargin { margin: 2px; }

.intro-imatges img { width: 300px; height: auto; }

/* Versió mòbil de la presentació */
.sec-intro-mobil { background-color: var(--color-fons); padding: 20px 0 40px; }
.sec-intro-mobil img { margin: 0 auto 12px; }
.sec-intro-mobil p {
    font-family: var(--font-titol);
    font-size: 22px;
    line-height: 1.5;
    color: var(--color-negre);
    margin: 20px 0;
}

/* ---------------------------------------------------------------------------
   11. PEU DE PÀGINA
   ------------------------------------------------------------------------- */

#page-footer { background-color: var(--color-negre); }

#page-footer-top-area {
    background-color: var(--color-negre);
    border-top: 1px solid transparent;
    text-align: center;
    padding: 90px 0 34px;
}

#page-footer-top-area-inner {
    width: 100%;
    max-width: var(--amplada-grid);
    margin: 0 auto;
    padding: 0 15px;
}

.footer-logo { display: inline-block; }
.footer-logo img { width: 200px; height: auto; margin: 0 auto; }

.footer-separator { height: 0; margin-top: 0; border-top: 1px solid transparent; }

.social-icons-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 26px 0 20px;
}

.social-icons-group a {
    color: var(--color-blanc);
    transition: color .2s ease-out;
}

.social-icons-group a:hover { color: var(--color-hover); }

.copy-text {
    margin: 0;
    font-family: var(--font-titol);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6em;
    color: var(--color-footer-text);
}

.copy-text a {
    color: var(--color-blanc);
    transition: color .2s ease-out;
}

.copy-text a:hover { color: var(--color-hover); }

/* Institucions que hi donen suport */
.footer-institucions {
    margin: 34px auto 0;
    padding-top: 26px;
    max-width: 520px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-institucions img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    opacity: .85;
    transition: opacity .2s ease-out;
}

.footer-institucions:hover img { opacity: 1; }

/* ---------------------------------------------------------------------------
   12. BOTÓ TORNAR AMUNT
   ------------------------------------------------------------------------- */

#scroll-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    background-color: var(--color-blanc);
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-out, visibility .3s ease-out;
    z-index: 90;
}

#scroll-top.is-visible { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------------------
   13. MODAL DE VÍDEO
   ------------------------------------------------------------------------- */

#video-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

#video-modal.is-open { display: block; }

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .85);
}

.video-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 1000px);
}

.video-modal-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 34px;
    height: 34px;
    font-size: 30px;
    line-height: 1;
    color: var(--color-blanc);
    background: none;
    border: 0;
    cursor: pointer;
}

/* ---------------------------------------------------------------------------
   14. PÀGINES INTERIORS
   ------------------------------------------------------------------------- */

.sec-pagina {
    background-color: var(--color-fons);
    padding: 60px 0 90px;
    min-height: 45vh;
}

.sec-pagina .container,
.sec-intro-mobil .container { padding: 0 15px; }

.sec-pagina h1 {
    font-family: var(--font-titol);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-negre);
    margin: 0 0 22px;
}

.sec-pagina p {
    font-family: var(--font-titol);
    font-size: 20px;
    line-height: 1.7;
    color: var(--color-negre);
    margin: 0 0 18px;
}

.sec-pagina .enllac-tornar {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-negre);
    border-bottom: 1px solid var(--color-negre);
    padding-bottom: 2px;
}

.sec-pagina--404 { text-align: center; padding-top: 90px; }

.sec-pagina--404 .error-codi {
    font-family: var(--font-titol);
    font-size: 120px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-negre);
    opacity: .12;
    margin: 0 0 10px;
}

/* ---------------------------------------------------------------------------
   14b. SECCIONS INTERNES (Gastronomia, Allotjament, Patrimoni)
   ------------------------------------------------------------------------- */

.breadcrumbs {
    background-color: var(--color-fons);
    padding: 22px 0 0;
}

.breadcrumbs .container { max-width: var(--amplada-grid); padding: 0 50px; }

.breadcrumbs,
.breadcrumbs a {
    font-family: var(--font-titol);
    font-size: 14px;
    color: #9a9a9a;
}

.breadcrumbs a:hover { color: var(--color-negre); }
.breadcrumbs span    { color: #9a9a9a; }

.sec-titol-gran {
    background-color: var(--color-fons);
    padding: 60px 0 0;
}

.sec-titol-gran--secundari { padding-top: 40px; }

.sec-titol-gran { --titol-vw: 10vw; --titol-max: 192px; }

.titol-gran {
    margin: 0;
    font-family: var(--font-titol);
    /* Escala amb l'amplada, com a l'original */
    font-size: clamp(44px, var(--titol-vw), var(--titol-max));
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.01em;
    color: var(--color-negre);
    text-align: center;
}

/* Títols llargs (p. ex. "Patrimoni i natura") van una mica més petits */
.sec-titol-gran--llarg      { --titol-vw: 7.2vw; --titol-max: 138px; }
.sec-titol-gran--secundari  { --titol-vw: 7.2vw; --titol-max: 138px; }

.sec-intro-seccio {
    background-color: var(--color-fons);
    padding: 26px 0 34px;
}

.intro-text p {
    margin: 0 0 14px;
    font-family: var(--font-titol);
    font-size: 16px;
    line-height: 1.7;
    color: #7a7a7a;
}

.intro-text p:last-child { margin-bottom: 0; }
.intro-text b, .intro-text strong { color: #4a4a4a; font-weight: 700; }

/* --- Blocs amb vídeo --- */

.sec-bloc {
    background-color: var(--color-fons);
    padding: 34px 0;
}

.bloc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.bloc-col-text  { flex: 1 1 58%; min-width: 280px; text-align: right; }
.bloc-col-video { flex: 0 1 38%; min-width: 280px; }

/* El vídeo passa a l'esquerra i el text s'alinea a la dreta */
.sec-bloc--video-esquerra .bloc-col-video { order: -1; }
.sec-bloc--video-esquerra .bloc-col-text  { text-align: left; }

.bloc-titol {
    margin: 0 0 14px;
    font-family: var(--font-titol);
    font-size: clamp(28px, 3.2vw, 50px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-negre);
}

.bloc-text p {
    margin: 0 0 12px;
    font-family: var(--font-titol);
    font-size: 16px;
    line-height: 1.7;
    color: #7a7a7a;
}

.bloc-text b, .bloc-text strong { color: #4a4a4a; font-weight: 700; }

.bloc-col-video video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
    border-radius: 2px;
}

.btn-fosc {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-blanc);
    background-color: #2b2d2b;
    border-radius: 3px;
    transition: transform .3s ease-out, background-color .3s ease-out;
}

.btn-fosc:hover { transform: scale(.94); background-color: #000; }

.bloc-boto { margin: 18px 0 0; }

/* --- Graella de targetes de secció --- */

.sec-targetes .graella {
    display: flex;
    flex-wrap: wrap;
}

.graella-item {
    width: 33.333%;
    padding: 10px;
}

/* Els enllaços de la cara posterior sense URL no han de semblar clicables */
div.flip-box__back { cursor: default; }

/* ---------------------------------------------------------------------------
   14c. MÚSICA, LITERATURA I CIÈNCIA
   ------------------------------------------------------------------------- */

.sec-noms {
    background-color: var(--color-fons);
    padding: 10px 0 30px;
}

.noms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 50px;
}

.noms-bloc        { flex: 1 1 240px; min-width: 240px; }
.noms-bloc--ample { flex: 2 1 520px; }

.noms-titol {
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-family: var(--font-titol);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-negre);
    border-bottom: 1px solid #e2e2e2;
}

.noms-llista { display: flex; flex-direction: column; }

/* Dues columnes que flueixen de dalt a baix, per conservar l'ordre alfabètic */
.noms-llista--dues {
    display: block;
    column-count: 2;
    column-gap: 34px;
}

.fitxa {
    border-bottom: 1px solid #ececec;
    break-inside: avoid;
}

.fitxa > a,
.fitxa > span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 2px;
    font-family: var(--font-titol);
    font-size: 17px;
    line-height: 1.3;
    color: var(--color-negre);
}

.fitxa > span { color: #6f6f6f; }

.fitxa--enllac > a { transition: color .2s ease-out, padding-left .3s ease-out; }
.fitxa--enllac > a:hover { color: #000; padding-left: 8px; }

.fitxa__retrat {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: cover;
    border-radius: 50%;
    background-color: #e8e8e8;
}

.fitxa__nom { flex: 1 1 auto; }

.fitxa__fletxa {
    flex: 0 0 auto;
    color: #b5b5b5;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity .25s ease-out, transform .25s ease-out, color .25s ease-out;
}

.fitxa--enllac > a:hover .fitxa__fletxa {
    opacity: 1;
    transform: none;
    color: var(--color-negre);
}

/* --- Publicacions --- */

.sec-publicacions {
    background-color: var(--color-fons);
    padding: 30px 0 80px;
}

.publi-intro {
    margin: -6px 0 26px;
    font-family: var(--font-titol);
    font-size: 16px;
    color: #7a7a7a;
}

.publi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 30px 26px;
}

.publi { text-align: center; }

.publi__marc {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    padding: 14px;
    background-color: var(--color-blanc);
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

.publi__marc img {
    max-height: 100%;
    width: auto;
    transition: transform .5s ease-out;
}

.publi a:hover .publi__marc img { transform: scale(1.05); }

.publi__titol {
    display: block;
    margin-top: 12px;
    font-family: var(--font-titol);
    font-size: 15px;
    line-height: 1.35;
    color: var(--color-negre);
}

/* ---------------------------------------------------------------------------
   14d. FOTOS ANTIGUES
   ------------------------------------------------------------------------- */

.galeria-credit {
    margin-top: 14px !important;
    font-size: 14px !important;
}

.galeria-credit a {
    color: var(--color-negre);
    border-bottom: 1px solid #cfcfcf;
}

.galeria-credit a:hover { border-bottom-color: var(--color-negre); }

.sec-galeria {
    background-color: var(--color-fons);
    padding: 10px 0 80px;
}

/* Mosaic en columnes: respecta l'alçada natural de cada fotografia */
.galeria {
    column-count: 4;
    column-gap: 14px;
}

.galeria__item {
    break-inside: avoid;
    margin-bottom: 14px;
}

.galeria__boto {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
    line-height: 0;
}

.galeria__boto img {
    width: 100%;
    height: auto;
    background-color: #e9e9e9;
    transition: transform .5s ease-out, filter .4s ease-out;
}

.galeria__boto:hover img,
.galeria__boto:focus-visible img {
    transform: scale(1.03);
    filter: brightness(1.06);
}

/* --- Visor --- */

.visor { position: fixed; inset: 0; z-index: 210; }
.visor[hidden] { display: none; }

.visor__fons {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 6, 6, .97);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.visor__caixa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
}

/* Les fotografies d'arxiu són petites: s'amplien amb mesura perquè
   omplin la pantalla sense perdre'n el gra original. */
.visor__img {
    width: min(90vw, 820px);
    max-height: 80vh;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background-color: #111;
}

.visor__peu {
    margin-top: 14px;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .6);
}

.visor__tanca,
.visor__nav {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--color-blanc);
    background: none;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .25s ease-out, color .25s ease-out;
}

.visor__tanca:hover,
.visor__nav:hover { background-color: var(--color-blanc); color: #111; }

.visor__tanca { top: 22px; right: 22px; }

.visor__nav { top: 50%; margin-top: -23px; }
.visor__nav--prev { left: 22px; }
.visor__nav--next { right: 22px; }

/* ---------------------------------------------------------------------------
   14e. "CONTINUA PER" (enllaços entre seccions)
   ------------------------------------------------------------------------- */

.sec-continua {
    background-color: var(--color-fons);
    padding: 20px 0 80px;
}

.continua-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.continua {
    display: flex;
    align-items: stretch;
    min-height: 120px;
    background-color: var(--color-blanc);
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: border-color .3s ease-out, box-shadow .3s ease-out;
}

.continua:hover {
    border-color: #d0d0d0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
}

.continua__foto {
    flex: 0 0 140px;
    overflow: hidden;
    background-color: #eee;
}

.continua__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease-out;
}

.continua:hover .continua__foto img { transform: scale(1.06); }

.continua__cos {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}

.continua__titol {
    font-family: var(--font-titol);
    font-size: 21px;
    line-height: 1.2;
    color: var(--color-negre);
}

.continua__fletxa {
    flex: 0 0 auto;
    color: #b5b5b5;
    transition: transform .35s ease-out, color .3s ease-out;
}

.continua:hover .continua__fletxa { transform: translateX(5px); color: var(--color-negre); }

.continua-grid--tres { grid-template-columns: repeat(3, 1fr); }
.continua-grid--tres .continua__foto { flex-basis: 110px; }
.continua-grid--tres .continua__titol { font-size: 18px; }

/* ---------------------------------------------------------------------------
   14f. PUNTS D'INTERÈS — mapa interactiu
        Rèplica navegable del panell imprès: dos mapes, quatre categories i
        les mateixes xinxetes numerades.
   ------------------------------------------------------------------------- */

.sec-mapa {
    background-color: var(--color-fons);
    padding: 10px 0 20px;
}

.container--ample { max-width: var(--amplada-grid); padding: 0 50px; }

.mapa {
    --mapa-vora: #e2e2e2;
    --mapa-fons: #eef2da;
}

/* --- Barra d'eines --- */

.mapa__eines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 16px;
}

.mapa__grup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mapa__grup--filtres { flex: 1 1 auto; }
.mapa__grup--zoom { margin-left: auto; }

.mapa__pestanya,
.mapa__filtre,
.mapa__zoom {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-family: var(--font-ui);
    background-color: var(--color-blanc);
    border: 1px solid var(--mapa-vora);
    color: #4a4a4a;
    transition: border-color .2s ease-out, background-color .2s ease-out, color .2s ease-out;
}

.mapa__pestanya {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 9px 18px;
}

.mapa__pestanya.is-actiu {
    background-color: var(--color-negre);
    border-color: var(--color-negre);
    color: var(--color-blanc);
}

.mapa__filtre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
}

.mapa__punt-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--cat, #999);
}

.mapa__filtre.is-actiu {
    border-color: var(--cat, var(--color-negre));
    background-color: var(--cat, var(--color-negre));
    color: var(--color-blanc);
}

.mapa__filtre.is-actiu .mapa__punt-color { background-color: var(--color-blanc); }

.mapa__zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.mapa__pestanya:hover,
.mapa__filtre:hover,
.mapa__zoom:hover { border-color: #9a9a9a; color: var(--color-negre); }

.mapa__filtre:focus-visible,
.mapa__pestanya:focus-visible,
.mapa__zoom:focus-visible { outline: 2px solid var(--color-negre); outline-offset: 2px; }

/* --- Escenari + fitxa --- */

.mapa__cos {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

/* Quadrat sempre: la imatge del mapa també ho és, i així les xinxetes
   (posicionades en percentatges) cauen exactament on toca. */
.mapa__escenari {
    position: relative;
    overflow: hidden;
    width: min(100%, 78vh);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    background-color: var(--mapa-fons);
    border: 1px solid var(--mapa-vora);
    touch-action: none;
    cursor: grab;
}

.mapa__escenari.is-arrossegant { cursor: grabbing; }
.mapa__escenari:focus-visible { outline: 2px solid var(--color-negre); outline-offset: 2px; }

.mapa__llenc {
    position: absolute;
    inset: 0;
    display: none;
}

.mapa__llenc.is-actiu { display: block; }

.mapa__mou {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    will-change: transform;
}

.mapa__mou.te-transicio { transition: transform .45s cubic-bezier(.22, .61, .36, 1); }

.mapa__base {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.mapa__ajuda {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: 320px;
    margin: 0;
    padding: 7px 12px;
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.45;
    color: #5a5a5a;
    background-color: rgba(255, 255, 255, .88);
    border-radius: 4px;
    pointer-events: none;
    transition: opacity .3s ease-out;
}

.mapa.te-interaccio .mapa__ajuda { opacity: 0; }

/* --- Xinxetes --- */

.mapa__xinxeta {
    position: absolute;
    z-index: 2;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: opacity .25s ease-out;
}

.mapa__gota {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 30px;
    height: 35px;
    margin-left: -15px;
    display: block;
    transform-origin: 50% 100%;
    transform: scale(var(--contra, 1));
    transition: transform .2s ease-out, filter .2s ease-out;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .28));
}

.mapa__gota svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--cat, #777);
}

.mapa__num {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titol);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blanc);
    pointer-events: none;
}

.mapa__xinxeta:hover .mapa__gota,
.mapa__xinxeta:focus-visible .mapa__gota { transform: scale(calc(var(--contra, 1) * 1.22)); }

.mapa__xinxeta:focus-visible { outline: none; }
.mapa__xinxeta:focus-visible .mapa__gota { filter: drop-shadow(0 0 0 2px rgba(0, 0, 0, .9)) drop-shadow(0 2px 3px rgba(0, 0, 0, .28)); }

.mapa__xinxeta.is-seleccionat { z-index: 4; }
.mapa__xinxeta.is-seleccionat .mapa__gota { transform: scale(calc(var(--contra, 1) * 1.32)); }

.mapa__xinxeta.is-amagat { opacity: .16; pointer-events: none; }

/* --- Fitxa --- */

.mapa__fitxa {
    position: relative;
    background-color: var(--color-blanc);
    border: 1px solid var(--mapa-vora);
    padding: 0 0 22px;
    max-height: 78vh;
    overflow-y: auto;
}

/* Sense cap punt triat, la columna manté el lloc amb un missatge */
.mapa .mapa__fitxa-cos   { display: none; }
.mapa .mapa__fitxa-tanca { display: none; }

.mapa.te-punt .mapa__fitxa-cos   { display: block; }
.mapa.te-punt .mapa__fitxa-tanca { display: flex; }
.mapa.te-punt .mapa__fitxa-buit  { display: none; }

.mapa__fitxa-buit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 240px;
    padding: 40px 30px;
    text-align: center;
    color: #b0b0b0;
}

.mapa__fitxa-buit p {
    margin: 0;
    font-family: var(--font-titol);
    font-size: 15px;
    line-height: 1.55;
    color: #8a8a8a;
}

.mapa__fitxa-tanca {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-negre);
    background-color: rgba(255, 255, 255, .9);
    border: 1px solid var(--mapa-vora);
    border-radius: 50%;
}

.mapa__fitxa-tanca:hover { background-color: var(--color-blanc); border-color: #9a9a9a; }

.fitxa-foto {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    margin-bottom: 18px;
}

.fitxa-cap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    margin-bottom: 10px;
}

.mapa__fitxa-cos > .fitxa-cap:first-child { padding-top: 22px; }

.fitxa-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--cat, #777);
    color: var(--color-blanc);
    font-family: var(--font-titol);
    font-size: 13px;
    font-weight: 600;
}

.fitxa-cat {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.fitxa-nom {
    font-family: var(--font-titol);
    font-size: 26px;
    line-height: 1.15;
    color: var(--color-negre);
    margin: 0 22px 6px;
}

.fitxa-sub {
    font-family: var(--font-ui);
    font-size: 14px;
    color: #6e6e6e;
    margin: 0 22px 12px;
}

.fitxa-desc {
    font-family: var(--font-titol);
    font-size: 16px;
    line-height: 1.65;
    color: #4a4a4a;
    margin: 0 22px 18px;
}

.fitxa-accions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 22px;
}

.btn-mapa,
.btn-extern {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 16px;
    border: 1px solid var(--color-negre);
    background-color: var(--color-negre);
    color: var(--color-blanc);
    transition: background-color .2s ease-out, color .2s ease-out;
}

.btn-extern {
    background-color: transparent;
    color: var(--color-negre);
}

.btn-mapa:hover { background-color: #333; }
.btn-extern:hover { background-color: var(--color-negre); color: var(--color-blanc); }

/* --- Llistat --- */

.mapa__llistat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--mapa-vora);
}

.mapa__bloc.is-amagat { display: none; }

.mapa__bloc-titol {
    font-family: var(--font-titol);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-negre);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cat, #ddd);
}

.mapa__llista { list-style: none; margin: 0; padding: 0; }

.mapa__item + .mapa__item { margin-top: 2px; }

.mapa__enllac {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 4px;
    padding: 6px 8px;
    transition: background-color .2s ease-out;
}

.mapa__enllac:hover,
.mapa__enllac.is-seleccionat { background-color: rgba(0, 0, 0, .05); }

.mapa__enllac:focus-visible { outline: 2px solid var(--color-negre); outline-offset: 1px; }

.mapa__item-num {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--cat, #777);
    color: var(--color-blanc);
    font-family: var(--font-titol);
    font-size: 11px;
    font-weight: 600;
}

.mapa__item-text { display: block; }

.mapa__item-nom {
    display: block;
    font-family: var(--font-titol);
    font-size: 16px;
    line-height: 1.3;
    color: var(--color-negre);
}

.mapa__item-sub {
    display: block;
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.35;
    color: #8a8a8a;
}

/* ---------------------------------------------------------------------------
   14g. PUNTS D'INTERÈS — els sis destacats
   ------------------------------------------------------------------------- */

.sec-destacats {
    background-color: var(--color-fons);
    padding: 0 0 40px;
}

.destacats-intro {
    font-family: var(--font-titol);
    font-size: 20px;
    color: #4a4a4a;
    margin: 0 0 26px;
}

.destacats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.destacat {
    display: flex;
    flex-direction: column;
    background-color: var(--color-blanc);
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: border-color .3s ease-out, box-shadow .3s ease-out;
}

.destacat:hover { border-color: #d0d0d0; box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }

.destacat__foto {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    background-color: #eee;
}

.destacat__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease-out;
}

.destacat:hover .destacat__foto img { transform: scale(1.05); }

.destacat__num {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--cat, #777);
    color: var(--color-blanc);
    font-family: var(--font-titol);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.destacat__cos {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.destacat__titol {
    font-family: var(--font-titol);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-negre);
    margin: 0 0 10px;
}

.destacat__text {
    flex: 1 1 auto;
    font-family: var(--font-titol);
    font-size: 15px;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0 0 18px;
}

.destacat__accions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
}

/* ---------------------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .container { padding: 0 15px; }
    .container--ample { padding: 0 20px; }
    .header-navigation .menu > li { margin: 0 7px; }
    .header-navigation .menu > li > a { font-size: 11px; letter-spacing: .3px; }

    .mapa__cos { grid-template-columns: minmax(0, 1fr) 300px; }
    .mapa__llistat { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    :root { --alcada-header: 70px; }

    #page-header,
    .header-sticky { display: none; }

    #page-mobile-header { display: block; }

    #page-outer { margin-top: 0; }

    .sec-hero { margin-top: 70px; min-height: calc(100vh - 70px); }

    .sec-targetes .columna { width: 100%; }
    .graella-item          { width: 50%; }

    .breadcrumbs .container { padding: 0 20px; }

    .bloc-col-text,
    .sec-bloc--video-esquerra .bloc-col-text { text-align: left; }

    .galeria { column-count: 3; }

    .flip-box { height: 380px; }

    .intro-col-imatge,
    .intro-col-text { width: 100%; }

    .intro-col-text > p:first-child { margin: 20px 0; font-size: 22px; line-height: 34px; }
    .intro-col-imatge img { margin: 0 auto 20px; width: 100%; max-width: 460px; }
    .intro-imatges { margin: 0; justify-content: center; }

    /* El mapa passa a ocupar tota l'amplada i la fitxa s'obre com un calaix */
    .mapa__cos { grid-template-columns: minmax(0, 1fr); }
    .mapa__escenari { width: min(100%, 68vh); }

    .mapa__fitxa { display: none; }

    .mapa.te-punt .mapa__fitxa {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        max-height: 76vh;
        border: 0;
        border-top: 1px solid var(--mapa-vora);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
    }

    .destacats { grid-template-columns: repeat(2, 1fr); }
    .continua-grid--tres { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .amaga-mobil { display: none; }
    .nomes-mobil { display: block; }

    .graella-item { width: 100%; }

    .galeria { column-count: 2; column-gap: 10px; }
    .galeria__item { margin-bottom: 10px; }

    .noms-llista--dues { column-count: 1; }
    .publi-grid { grid-template-columns: repeat(2, 1fr); }
    .publi__marc { height: 170px; }

    .continua-grid,
    .continua-grid--tres { grid-template-columns: 1fr; }
    .continua__foto { flex-basis: 100px; }
    .continua__titol { font-size: 18px; }

    .container--ample { padding: 0 15px; }

    .mapa__eines { gap: 8px 12px; }
    .mapa__grup--zoom { margin-left: 0; }
    .mapa__pestanya { flex: 1 1 auto; text-align: center; padding: 9px 12px; font-size: 12px; }
    .mapa__filtre { font-size: 12px; padding: 7px 12px; }

    .mapa__escenari { width: 100%; }
    .mapa__ajuda { display: none; }

    .mapa__llistat { grid-template-columns: 1fr; gap: 20px; }

    .fitxa-foto { height: 150px; }
    .fitxa-nom  { font-size: 22px; }

    .destacats { grid-template-columns: 1fr; gap: 20px; }
    .destacats-intro { font-size: 18px; }
    .destacat__foto { height: 190px; }

    .visor__nav { width: 40px; height: 40px; }
    .visor__nav--prev { left: 10px; }
    .visor__nav--next { right: 10px; }

    .hero-logo { width: 100%; }

    .flip-box { height: 320px; }

    .flip-box__title      { font-size: 30px !important; }
    .flip-box__title--back{ font-size: 20px !important; }

    #page-footer-top-area { padding: 60px 0 30px; }

    .sec-pagina h1 { font-size: 32px; }
    .sec-pagina p  { font-size: 18px; }

    #scroll-top { right: 15px; bottom: 15px; }
}
