/* mobile menu */


.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 119px;
  right: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidebar a {
  padding: 8px 8px 8px 15px;
  text-align:left; 
 text-decoration: none;
  font-size: 16px;
  color: #222;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #f1f1f1;
}
.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: white;
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color: #444;
}

#main {
  transition: margin-left .5s;
  padding: 16px;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
}
.icon-bar {
    background-color: #fff;
}
.navbar-toggle:focus {

    background-color: transparent;

}

.navbar .navbar-toggle {
    top: 10px;
}

.navbar-toggle {
        cursor:pointer;
    position: relative;
    float: right;
    margin-right: 24px;
    padding: 0px;
    margin-top: 11px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;

}
.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}




@media (max-width: 950px) {

/* === MILLORES GENERALS RESPONSIVE === */

/* Imatges responsive */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Videos i iframes responsive */
iframe, embed, object, video {
    max-width: 100% !important;
}

/* Evitar overflow horizontal */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Contenidors principals */
#content, #page, .contentnav, #header, div.webpage, div.webpage_content, div.blog {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    /* padding-left: 10px !important; */
    /* padding-right: 10px !important; */
}

/* Tipografia més llegible en mòbil */
body, p, li, td {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
}

h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
}

h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

/* Botons més grans per facilitar el clic */
button, .btn, input[type="submit"], input[type="button"] {
    min-height: 44px !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
}

/* Inputs i textareas més accessibles */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], textarea, select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* Taules responsive - scroll horizontal si cal */
table {
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}

/* === FI MILLORES GENERALS === */

div#ban1{ display:none !important; }

div#media-main, iframe { width:100% !important; }

div.blog_post_body iframe { width:100%; height:auto; min-height:300px }
/*div.blog div#caixaimatge { display:none; } */

div#crowd_main,div#crowd_main img,div#crowd_main iframe { width:100%;height:auto; }
div#crowd_main iframe { height:350px; }

div#top { position:fixed;z-index:2; }

/* Estils buscador per a pantalles 768px-950px */
@media (min-width: 501px) and (max-width: 950px) {
    .boto_cerca {
        position: absolute;
        right: 49px;
        top: 69px;
    }
    input#cerca {
        background:none;
        color:#999;
        border:1px solid #999;
        height:24px;
        margin-left:10px;
        padding:0px 5px;
    }
}

div#frase {
    display: block !important;
    top: 0px;
    font-size: 14px;
    width: 70%;
    padding-top: 43px;
    margin-right: 0px;
    background: none;
    position:fixed;
    text-shadow:none;
}
div#topnav {
    border-bottom:1px solid #000;
    background-position: 0px 0px !important;
    width: 100%;
    height: 324px;
    background-color: #dd1d1d !important;
    height: 118px !important;
}
.blog_post_body { padding:10px 10px 0px 5px; }
body,#page li { font-size:16px; color:#444; }
.postnode,.midh1,.midh1 a,.minih1 { font-size:30px !important;}
#adhereixte-but img {width:90%; }
div#caixaimatge { margin:0px !important;width:auto;padding:0px 0px 0px 20px}
img#dtimg { max-width:100% !important; width:100% !important; }
div.subtitle h2,h2 { font-size:17px; }
div#login { display:none; }
div#llistat_arxiu,.item_arxiu { max-width:100%; width:100% !important; }
div#media-main,div#media-main video {max-width:100% !important;width:100% !important; }
body#portada div#page img { width:100%; }
div#content div#page table td { padding:0px; }
div#menu_mobile { width:70px; }
div#top, div#top div#login { max-width:100%}
div#login { right:20px !important; position:inherit}
div#content { padding-left:0px; }
div#content { padding-top:113px !important; }
div#content,div#contentnav,div#page,div#page_content { width:100% !important; max-width:100% !important; }
body.subpage div#page_content { width:100% !important; max-width:100% !important; }
div#loginbox,div#top_ban,div.footbar { width:100%; }
h1 { line-height:116% !important; }
div#page { padding:0px;width:100% !important }
body div#content div#contentnav ul#menu_unh {    width: 100%; }
body div#content div#contentnav img {width:100%;height:auto}
#adhesions tr.seccio td {
background-color: #D90403;
color:#fff !important;
padding:8px !important;
font-size:14px;
line-height:150%;
}

div#newsletter,div.topposts { clear:left;  width:100% !important;}
#hosabies,div.footer table { width:100% !important;max-width:100%; }
div#rightcol { padding:0px !important; }
div.sidemenu_right { width: calc(100% - 30px); }
div#link_pub,div#link_pub2 { display:none; }
div#ban1,div#ban1 img { display:block;  clear: left;max-width: 100%;margin: 0px;text-align: right; bottom:0px; position:fixed }
div#ban2,div#ban2 img { display:none; }
#topnav { background:none !important;clear:left;height:20px !important; }
div#logo img { width:45% !important; height:auto}
div#logo { position:absolute;margin:0px !important;left:-45px;top:5px; }
div#menu { display:none !important; }
table#tfooter { display:none !important;}
div#publi { display:none !important; }
.blog,.blog img,div.widget { width:100% !important; }
#dimg,body .blog img { height:inherit !important; max-height:inherit !important; }
.comment .info, div.agendas { width:100% !important; }
.comment .info,.comment .content { padding:0px;}
.comment .content { margin:0px; }
.comment .content p {
    margin-top: 10px;
    padding-left: 20px;
	padding-right:10px;
}
div.commentlist div.date { color:#777;float:right;padding-top:5px;padding-right:5px }
div.event { width:95% !important; }

div.post_content, div.post_big { padding:0px 10px;}

div.post_big img { width:100%; }
div#publi img,#subscriute,div.post_mini img { width:100%; }
div#hosabies,div#newsletter { padding:0px !important; border:0px !important}
div.post_mini { clear:left;width:100% !important; }
div#rightcol { clear:left; width:100% !important;}
tr.seccio td { font-size:16px;line-height:130%; }
div#content div#page table { width:100%; border-collapse:collapse !important }
div#content div#page table td { width:99% !important; clear:left;display:block;padding: 5px 0px;border:0px}
div#content div#page table#matricula tr { margin:0px !important;}
div#content div#page table#matricula tr.seccio { padding:0px !important; }
div#content div#page table tr { padding-top:10px; margin: 0px 5px 20px 5px;    display: block;    border: 0px;}
div#content div#page table.nomargintr tr  { margin:0px !important; padding:0px !important; }

div#content div#page table td img { width:99% !important; height:auto !important; }


        div#menu_desktop,div.languageSelector { display:none; }
        div#menu_mobile { display:block; top: 0px !important;position: fixed;right: 0px; z-index:9}
        img.portada { max-height: 100%;width: auto; }
.slick-prev {    left: 15px !important; }
.slick-next {    right: 15px !important; }
        #colauto { column-count:1; height:auto; }
              header { height:200px;}
        div.ltmenu { padding-right:22px; }
        div:has(a.autor) { text-align:center; }
                div.form input,div.form textarea { width:100%;}
        div.page { padding:0px 20px; }
        .mob { display:block;}
        .del { padding:0px; padding: 5px 5px 4px 5px !important; }
        div.price { padding-right:15px !important; }
        button.btn { margin-bottom:20px; }
        body.home header div.logo img { margin-top:0px; }
        #shopping_cart { position:absolute;top: 40px;right: 40px;width: 150px;padding:0px !important }
        #searchbox { display:none !important; }
        #searchbox_mobile { padding:15px 0px 15px 33px}
        #searchbox_mobile input { width:178px !important;color:#fff;background:none; }


}

@media (max-width: 768px) {
body.subpage div#page_content {
  width: 100% !important;
  max-width: 100% !important;
}
div#page_content {
  width: 100% !important;
  max-width: 100% !important;
}
}

@media (max-width: 500px) {
body.subpage div#page_content {
  width: 100% !important;
  max-width: 100% !important;
}
div#page_content {
  width: 100% !important;
  max-width: 100% !important;
}
/*.subtitle { font-size:20px; }*/
.blog_post_body, .short_body {
    font-size: 20px;
    font-weight: normal;
    line-height: 150%;
}
div .blog {
  padding: 0px 0px 0px 20px !important;
}
.blog_post_body {
    padding: 0px 20px 0px 0px !important;
}
div.contentnav, div#head { width:100% !important}
div#logo { left:0px !important; }
div#logo img { width:52px !important; }

.blog_post_body {
    margin-right:20px !important;
}
a.logo {
    top: 16px;
    position: absolute;
    line-height: 217%;
}

div.footer,div#disclamer,div#top { display:none !important; }
div#ban1{ display:block !important; }
div#menu { display:none !important; }

/* Buscador visible i funcional en mòbil */
div#buscador {
    display: block !important;
    position: fixed !important;
    top: 80px !important;
    right: 10px !important;
    padding: 5px !important;
    z-index: 999999999999999999999999998 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 5px !important;
    width: calc(100% - 30px);
}

div#buscador form.cercador {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

div#buscador input#cerca {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #999 !important;
    height: 32px !important;
    padding: 5px 35px 5px 10px !important;
    margin: 0 !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    width: 100%;
    box-sizing: border-box !important;
}

div#buscador input.boto_cerca {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-image: url('/kms/css/aqua/img/small/search_icon.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent !important;
    background-size: 16px 16px !important;
    border: 0px !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Webpage content margin per header fix */
div.webpage_content {
    margin-top: 140px !important;
}

/* Search page padding */
body#search div.webpage_content {
    padding: 10px !important;
}

/* Post body min height */
.postbody_ {
    min-height: 350px;
}

}
