/*!BASIC CSS
 * Author:  Diário de Notícias da Madeira
 * Email:   dep.informatica@dnoticias.pt
 * ---
 * Project: DNOTICIAS.PT (2018-11-23)
 * URL:     edicao.dnoticias.pt
 */

/********************** HEADER **********************/
header, footer {
  position: relative; 
  width: 100%;
}
header {
  position: fixed; left: 0; top: 0;
  z-index: 150; padding-bottom: 10px;
  /*background-color: rgba(255,255,255,0.95);*/
}
header a {text-decoration: none;}
header a:hover,
header a:focus {text-decoration: none; color: #c4161c;}
header h1 {
  display: block; position: absolute;
  left: 50%; top: 18px; z-index: 10;
  width: 170px; height: 35px;
  margin: 0 0 0 -85px;
}
header h1 a {
  display: block; position: relative;
  width: 100%; height: 100%;
  text-indent: -5555px;
  background: url(../imgs/dnoticiaspt-id.png) no-repeat center center;
  background-size: 100% auto;
}
header .header-top {
  display: block; position: relative;
  border-bottom: 1px solid #000; width: 100%;
  padding: 20px 0; height: 70px;
}
header .header-top nav {
  display: block; position: relative;
  height: 100%; width: 100%;
}
header .header-top nav ul {
  display: block; position: relative;
  float: left;
}
header .header-top nav ul li {
  display: block; position: relative;
  float: left; margin-right: 20px;
}
header .header-top nav ul li a {
  font: 700 11px/20px 'Oswald', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  color: #bdbdbd; letter-spacing: 1px;
}
header .header-top nav ul li a:hover{color: #c4161c;}
header .header-top nav ul li a.active {color: #000;}
.nav-main.side-right {float: right;}
.nav-main.side-right li {
  margin-right: 0; margin-left: 20px;
}
header .header-top li.margin-left-5 {margin-left: 5px;}
header .header-top li.nav-user > a,
header .header-top li.nav-user-logged > a,
header .header-top li a.nav-main-menu,
header .header-top li a.nav-main-menu.nav-close {
  display: block; position: relative;
  height: 20px; margin: 0 0 0 7px;
  background: url(../imgs/dnoticiaspt-icons.png) no-repeat;
  text-indent: -5555px;
}
header .header-top li.nav-user > a {width: 15px; background-position: -80px 0;}
header .header-top li.nav-user > a:hover {background-position: -80px -20px;}
header .header-top li a.nav-main-menu {width: 16px; background-position: -120px 0;}
header .header-top li a.nav-main-menu:hover {background-position: -120px -20px;}
header .header-top li a.nav-main-menu.nav-close {width: 16px; background-position: -138px 0;}
header .header-top li a.nav-main-menu.nav-close:hover {background-position: -138px -20px;}

header .header-top li.nav-user-logged > a {width: 24px; background-position: -96px 0;}
header .header-top li.nav-user-logged > a:hover {background-position: -96px -20px;}
header .header-top li.nav-user-logged.active > a {background-position: -96px -40px; z-index: 15;}

header .header-top li .nav-user-submenu {
  display: none; position: absolute;
  width: auto; right: -10px;
  margin-top: -25px; padding: 20px 0 0 0;
  z-index: 10;
}
header .header-top li .nav-user-submenu ul {
  display: block; position: relative;
  width: auto; right: 0; z-index: 10;
  margin-top: 9px; padding: 10px 0;
  background: #ffffff;
  -webkit-box-shadow: 0px 3px 10px 0px rgba(0,0,0,.25);
  -moz-box-shadow: 0px 3px 10px 0px rgba(0,0,0,.25);
  box-shadow: 0px 3px 10px 0px rgba(0,0,0,.25);
}
header .header-top li.active .nav-user-submenu {display: block;}
header .header-top li .nav-user-submenu ul li {width: 100%; margin: 0;}
header .header-top li .nav-user-submenu ul li a {
  display: block; padding: 10px 20px;
  white-space: nowrap;
  color: #000000;
  border-bottom: 1px solid #ebebeb;
}
header .header-top li .nav-user-submenu ul li.nav-user-logout a {color: #c4161c; border-bottom: 0;}

header .header-bottom {
  display: block; position: relative;
  border-bottom: 3px solid #000; width: 100%;
}
header .header-bottom nav ul { text-align: center;}
header .header-bottom nav ul li {
  display: inline-block;
  margin: 0 10px;
  text-transform: uppercase;
}
header .header-bottom nav ul li a,
header .header-bottom nav ul li span {
  display: block;
  font: 700 12px/12px 'Oswald', Helvetica, Arial, sans-serif;
  color: #000; letter-spacing: 1px;
  padding: 20px 0 17px 0;
  border-bottom: 3px solid transparent;
}
header .header-bottom nav ul li a.active,
header .header-bottom nav ul li a:hover,
header .header-bottom nav ul li a:focus {
  border-bottom-color: #000;
}
.nav-social,
.btn-pesquisa {
  display: block; position: absolute;
  left: 0; top: 0;
}
.nav-social li {
  display: block; position: relative; 
  float: left; padding: 16px 0;
}
.nav-social li a {
  display: block; position: relative;
  height: 20px; margin: 0 5px;
  background: url(../imgs/dnoticiaspt-icons.png) no-repeat;
  text-indent: -5555px;
}
.nav-social li a.nav-social-tw {width: 15px; background-position: 0 -40px;}
.nav-social li a.nav-social-tw:hover {background-position: 0 -20px;}
.nav-social li a.nav-social-fb {width: 7px; background-position: -20px -40px;}
.nav-social li a.nav-social-fb:hover {background-position: -20px -20px;}
.nav-social li a.nav-social-yt {width: 18px; background-position: -160px -40px;}
.nav-social li a.nav-social-yt:hover {background-position: -160px -20px;}
.nav-social li a.nav-social-rss {width: 15px; background-position: -40px -40px;}
.nav-social li a.nav-social-rss:hover {background-position: -40px -20px;}
.btn-pesquisa {
  left: auto; right: 6px; top: 16px;
  width: 20px; height: 20px;
  background: url(../imgs/dnoticiaspt-icons.png) no-repeat -60px -40px;
  text-indent: -5555px;
}
.btn-pesquisa:hover {
  cursor: pointer;
  background-position: -60px -20px;
}
.header-bottom form input {
  display: none; padding: 16px 0;
  font: 15px/15px 'PT Serif', serif;
  color: #000000; font-weight: 400;
  background: transparent; border: 0px;
  text-align: center;
  outline: none;
}

/* BTN HASH */
.btn-hash {
  display: inline-block; position: relative;
  padding: 7px 15px; border-radius: 12px;
  font: 700 10px/10px 'Oswald', Helvetica, Arial, sans-serif;
  color: #000; text-transform: uppercase;
  letter-spacing: 1px; text-decoration: none;
  background: #eff0f1;
}
.btn-hash:hover,
.btn-hash.on {
  background-color: #c4161c; color: #fff;
  cursor: pointer;
}
.content-hashtags {text-align: center;}
.content-hashtags li {
  display: inline-block; 
  text-align: center;
  margin-bottom: 5px;
}

/* FIXED HEADER */
/*.fixed-header header {height: 90px;}*/
/*.fixed-header header h1 {
  width: 130px;
  margin-left: -65px; top: 3px;
}
.fixed-header header .header-top {padding: 10px 0; height: 41px;}
.fixed-header header .header-bottom nav ul li a,
.fixed-header header .header-bottom nav ul li span {padding: 13px 0 10px 0;}
.fixed-header header .btn-pesquisa {top: 10px;}
.fixed-header header .nav-social li {padding: 10px 0;}
.fixed-header header .header-bottom nav ul li a {font-size: 11px;}
.fixed-header .header-bottom form input {padding: 9px 0;}
*/


/* animations */
header h1, header .header-top, header .header-bottom nav ul li a,
header .nav-social li, .wrapper {
  -webkit-transition: all 0.27s ease-in-out;
  -moz-transition: all 0.27s ease-in-out;
  transition: all 0.27s ease-in-out;
}
header .btn-pesquisa {
  -webkit-transition: top 0.27s ease-in-out;
  -moz-transition: top 0.27s ease-in-out;
  transition: top 0.27s ease-in-out;
}
.header-bottom form input {
  -webkit-transition: padding 0.27s ease-in-out;
  -moz-transition: padding 0.27s ease-in-out;
  transition: padding 0.27s ease-in-out;
}

/* SITEMAP */
.sitemap {
  display: block; position: relative;
  left: 0; top: 0; 
  width: 100%; height: auto;
  overflow: hidden;
}
.sitemap ul {
  display: none; position: relative;
  float: left; padding: 16px 14px;
  width: 16.66666666666667%;
  font: 400 12px/20px 'Oswald', Helvetica, Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #bdbdbd;
}
.sitemap ul h4 {font-weight: 700; font-size: 12px; line-height: 20px;}
.sitemap .sitemap-navsec-bottom {
  width: 100%;
  text-align: center;
  padding: 0 0 20px 0;
}
.sitemap .sitemap-navsec-bottom li {
  display: inline-block;
  position: relative;
  font-size: 11px;
  margin: 0 10px;
}
.sitemap .sitemap-navsec-bottom li:before {
  display: block; position: absolute;
  left: -15px; top: -2px; color: #000;
  content: "●";
}
.sitemap .sitemap-navsec-bottom li:first-child:before {
  display: none;
}

header {
  background-color: rgba(255,255,255,0.95);
  -webkit-transition: all 0.17s linear;
  -moz-transition: all 0.17s linear;
  transition: all 0.17s linear;
  -webkit-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0);
  -moz-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0);
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0);
}
.header-nav-open {
  background: rgba(255,255,255,1);
  -webkit-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.15);
  -moz-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.15);
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.15);
}
.nav-main .nav-mob-hide,
.header-bottom .nav-social {
  -webkit-transition: opacity 0.17s ease-in-out;
  -moz-transition: opacity 0.17s ease-in-out;
  transition: opacity 0.17s ease-in-out;
  opacity: 1;
}
.header-nav-open .nav-main .nav-mob-hide,
.header-nav-open .header-bottom .nav-social {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}
.header-nav-open .header-bottom .nav-sec {display: none;}
.header-nav-open .sitemap ul, 
.header-nav-open form input {display: block;}
.header-nav-open .header-top {border-bottom: none;}
.header-nav-open .header-bottom {display: none;} /* SEM PESQUISA */

.mobile-nav .header-nav-open {overflow: scroll; height: 100%;}
.mobile-nav .wrapper, .mobile-nav footer {display: none;}

/********************** LAYOUT **********************/
.wrapper {margin-top: 135px;}

/* column center */
.col-center {
  position: relative; width: 100%; max-width: 1232px;
  margin: 0 auto; padding: 0 14px;
}
/*.col-center section {margin-bottom: 70px;}*/
.content {
  display: block; position: relative;
  width: 100%; max-width: 1216px;
  padding-top: 20px; padding-bottom: 70px;
  overflow: hidden;
}
.content-top {margin-bottom: 25px;}

.col-double div {
  display: block; float: left;
  width: 50%; padding: 0 28px;
  text-align: center;
}
/* COLUMNS */
.col-width-4 {
  display: block; position: relative; float: left;
  /*width: 269px;*/ width: 23.18965517241379%;
  margin-right: 2.413793103448276%; margin-bottom: 28px;
}
.col-last {margin-right: 0px;}

/********************** FOOTER **********************/
footer {
  background-color: #141414; padding: 35px 0;
  -webkit-box-shadow: inset 0px 3px 10px 0px rgba(0,0,0,1);
  -moz-box-shadow: inset 0px 3px 10px 0px rgba(0,0,0,1);
  box-shadow: inset 0px 3px 10px 0px rgba(0,0,0,1);
}
footer .col-center {display: block;}
footer h1 {
  display: block; position: relative; float: left;
  width: 75px; height: 47px; margin-right: 28px; margin-top: 3px;
  background: transparent url(../imgs/dnoticiaspt-id-footer.png) no-repeat left top;
  text-indent: -5555px;
}
footer p, footer ul li {
  font: 400 12px/18px 'Oswald', Helvetica, Arial, sans-serif;
  color: #7a7a7a;
}
footer strong {
  display: inline-block;
  width: 99px;
}
footer a {
  text-transform: uppercase;
  color: #b9b9b9;
  text-decoration: none;
}
footer a:hover {color: #b9b9b9; text-decoration: underline;}
footer .copyright {
  text-align: center; clear: left;
  padding-top: 30px;
}



/******************** OVERRIDE FIXED HEADER  ********************/
header h1 {
  width: 130px;
  margin-left: -65px; top: 3px;
}
header .header-top {padding: 10px 0; height: 41px;}
header .header-bottom nav ul li a,
header .header-bottom nav ul li span {padding: 13px 0 10px 0;}
header .btn-pesquisa {top: 10px;}
header .nav-social li {padding: 10px 0;}
header .header-bottom nav ul li a {font-size: 11px;}
header .header-bottom form input {padding: 9px 0;}
.wrapper {margin-top: 90px;}


/******************** MEDIA QUERIES ********************/
@media screen and (max-width: 1160px) {
  footer .col-width-4 {
    width: 33.33333333333333%;
    margin-right: 0;
  }
  footer .col-last {width: 100%; margin-bottom: 0;}
  footer .col-last ul {text-align: center;}
  footer .col-last ul li {
    display: inline-block;
    margin: 0 10px;
  }
}
@media screen and (max-width: 1023px) {
}
@media screen and (max-width: 959px) {
  .nav-main .nav-mob-hide {display: none;}
  header {
    padding: 0;
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.15);
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.15);
  }
  header h1 {width: 130px; margin-left: -65px; top: 3px;}
  header .header-top {
    padding: 10px 0; 
    height: 41px;
    /*border: none;*/
  }
  header .header-bottom {
    /*display: none;*/
    /*position: absolute; top: 0;
    width: 87px; height: 100%;*/
    border: none;
  }
  /*header .header-bottom nav, header .header-bottom form,
  header .btn-pesquisa {display: none;}*/
  header .header-bottom nav ul li a, header .header-bottom nav ul li span {
    padding: 13px 0 10px 0!important;
    font-size: 11px!important;
  }
  header .nav-social {top: -40px;}
  header .nav-social li {padding: 10px 0;}
  header .nav-social li a {margin: 0 7px 0 0;}
  /*.nav-main.side-right {padding-top: 6px;}*/
  .wrapper {margin-top: 79px;}
}
@media screen and (max-width: 870px) {
  .sitemap ul {width: 100%; padding: 0 10px; text-align: center; margin-bottom: 10px;}
  .sitemap ul li {display: inline-block; margin-right: 15px;}
  .sitemap ul li:first-child {width: 100%; margin: 0;}
  .sitemap ul.sitemap-navsec li {display: block; margin: 0;}
  .sitemap ul.sitemap-navsec-bottom li:first-child {width: auto; margin: 0 10px;}
}
@media screen and (max-width: 767px) {
  footer .col-width-4 strong {width: 100%;}
  footer .col-width-4 p {float: left;}
}
@media screen and (max-width: 667px) {
}
@media screen and (max-width: 568px) {
  footer .col-center {max-width: 380px;}
  footer .col-width-4 {width: 100%; margin-right: 0;}
  footer .col-last {margin: 0;}
  footer .col-width-4 strong {width: 99px;}
}
@media screen and (max-width: 480px) {
  /*section {margin-bottom: 70px;}*/
  .col-center {padding: 0 14px;}
  .content.col-center {padding: 14px;}
  .col-planos-left, .col-planos-right {padding: 14px;}
  .col-planos-right {padding-bottom: 90px;}
}
@media screen and (max-width: 420px) {
  .sitemap ul li {margin: 0 5px;}
}
