 h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  color: #8E3200;
}
.h1, h1 {
    font-size: 1.5rem;
}
.h2, h2 {
    font-size: 1.3rem;
}
.h3, h3 {
    font-size: 1.1rem;
}
.container-header {
  background-color: #A64B2A;
  background-image: none;
}
.container-header .site-description {
  font-size: 1.3rem;
}
 /*:root {
  --cassiopeia-color-primary: #A64B2A;
  --cassiopeia-color-link: hsl(220, 67%, 40%);
  --cassiopeia-color-hover: hsl(242, 30%, 36%);
} */
.card {
    --card-cap-bg: #f0ede8;
    --card-cap-color: #8E3200;
    --card-border-color: #D7A86E;
}
 body.site{
  background: transparent;
  background-image: none; 
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
} 
.container-component nav {
  background-color: #f0ede8;
}
.com-content-category {
  background-color: #f0ede8;
}
.com-content-category-blog {
  background-color: #f0ede8;
}
.page-header.item-title {
  padding-bottom: 15px;
}
.com-content-category-blog h1 {
  background-color: #8e3200;
  color:#ffebc1; 
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 5px;
}
.com-content-article {
  background-color: #f0ede8;
  margin-bottom: 15px;
  text-align: justify;
}
  P:first-letter {font-size: 120%; font-weight:bold;} 
.page-header, .article-info, .com-content-article__body {
  margin: 0px 15px 15px 15px;
}
.list-inline {
  padding-left: 15px;
}
.tag-category {
  background-color: #f0ede8;
}
.com-tags-tag div {
  /* background-color: #f0ede8;*/
}
.category-desc {
  margin: 15px;
}
.blog-featured {
  background-color: #f0ede8;
}
.item-content {
  margin: 5px 15px 5px 15px;
  text-align: justify;
}
.item-content p {
  margin: 5px 15px 5px 15px;
  border-width: 2px;
  border-color: #a64b2a;
}
.btn {
  background-color: #a64b2a;
  color: #f0ede8;
}
.table>thead {
    background-color: #ffebc1;
}
.content-category {
   margin: 15px; 
}
.item-image {
  margin: 5px 15px 5px 15px;
}/* 
.left.item-image {
  max-width: 320px;
}
.right.item-image {
  max-width: 320px;
}*/
.caption {
  text-align: left;  
}
.com-finder {
  background-color: #f0ede8;
}
.com-finder__form {
  margin: 15px;
}
.com-finder__results {
  margin: 15px;
}
 Imagen del artículo a ancho completo 
.com-content-article .item-image {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
}
 .com-content-article .item-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media print {

    .container-header,
    .container-footer,
    .sidebar-left,
    .sidebar-right,
    nav,
    .mod-breadcrumbs,
    .pagination,
    .article-info,
    .btn,
    .icons,
    .edit-icon {
        display: none !important;
    }
/*
    @page {
        size: A4;
        margin: 3cm 1.5cm 2.5cm 1.5cm;
    }
*/
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .site-grid {
        display: block !important;
    }

    main {
        width: 100% !important;
        max-width: none !important;
    }

    .com-content-article {
        width: 100% !important;
    }

    h1 {
        page-break-after: avoid;
    }

    .item-image {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto 1cm auto !important;
        page-break-inside: avoid;
    }

    .item-image img {
        width: auto !important;
        height: auto !important;
        max-width: 15cm !important;
        max-height: 12cm !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .item-image figcaption.caption {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 9pt !important;
        line-height: 1.2 !important;
        margin-top: 0.15cm !important;
        font-style: italic;
    }
  
    figure {
        page-break-inside: avoid;
    }
    /* Títol de l'article */
    .com-content-article .page-header h1 {
        font-size: 18pt !important;
        line-height: 1.2 !important;
        margin-top: 0 !important;
        margin-bottom: 0.4cm !important;
    }
    .com-content-article__body img {
        max-width: 100% !important;
        height: auto !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
  
    .pdf-header {
        display: block !important;
        width: 100%;
/*        position: fixed !important;*/

        /* Línia horitzontal sota la capçalera */
        border-bottom: 1px solid #777;

        /* Espai entre el text i la línia */
        padding-bottom: 0.3cm;

        /* Línia en blanc entre la línia i el contingut */
        margin-bottom: 0.7cm;
    }

    .pdf-header-title {
        font-size: 14pt;
        font-weight: bold;
    }

    .pdf-header-subtitle {
        font-size: 9pt;
        color: #555 !important;
    }
}

.pdf-header {
    display: none;
}

/* Elimina la visualització de la URL en les cerques */
.result__title-url {
    display: none;
}

/* Scroll només als desplegables llargs de nivell 4 */
@media (min-width: 992px) {

    .container-header .metismenu.mod-menu
    .level-3 > ul.mm-collapse {
        max-height: min(500px, calc(100vh - 180px)) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

}
/* Scroll només als desplegables llargs de nivell 2 utilitzant "menu-scroll2" */
@media (min-width: 992px) {

    .container-header .metismenu.mod-menu
    .level-2:has(> a.menu-scroll2) > ul.mm-collapse {
        max-height: min(500px, calc(100vh - 180px)) !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

}

/* Índex de paginació dels articles Joomla */
.com-content-article .article-index {
    float: none !important;
    width: 100% !important;
    margin: 0 0 25px 0 !important;
    padding: 15px 20px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}
/* Imatges introductòries i d'article complet */

/* Contenidor de la imatge */
.com-content-article figure.item-image,
.com-content-category-blog figure.item-image,
.com-content-category-blog .item-image {

    float: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Imatge: dimensions naturals i centrada */
.com-content-article figure.item-image img,
.com-content-category-blog .item-image img {

    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Centrar el peu de les imatges introductòries i completes */

.com-content-article figure.item-image figcaption,
.com-content-category-blog figure.item-image figcaption {
    text-align: center !important;
    width: 100%;
    margin-top: 8px;
}

/* Xarxes socials - Portal Gironí */

.xarxes-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 12px 0;
}

.xarxes-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #444;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.xarxes-socials a:hover {
    transform: scale(1.15);
}

.xarxes-socials a:nth-child(1):hover {
    color: #1877F2;
}

.xarxes-socials a:nth-child(2):hover {
    color: #C13584;
}

.xarxes-socials a:nth-child(3):hover {
    color: #000;
}
/* Ocultar el títol del formulari de contacte */
h2:has(+ .com-contact__form) {
    display: none !important;
}