.no-padding{
    padding: 0;
}

.nomargin {
   padding: 0;
   margin: 0;
}

.header_bg 
{
    position:absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	z-index: 1002;
    opacity: 1;
}

.dnnEditState header.header_bg {
    position: relative;
}

.headerBox {
	margin:0px auto 0px;
}

.headerBox .headertopBox {
	background-color: #3D97CD;
	height: 6px;
	margin-bottom: 4px;
}

.fertagus-menu{
    height: 90px;
    background: rgb(246,246,246);
    background: rgba(246,246,246,0.8);
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    -webkit-transition: height 0.3s ease-in-out;
    -moz-transition: height 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.dnnEditState .fertagus-menu {
    position: relative;
    margin-bottom: 30px;
}

.fertagus-menu.fixed{
    height: 45px;
    position: fixed;
    top: 0px;
}

.dnnEditState .fertagus-menu.fixed {
    position: relative;
}

.fertagus-menu .nav,
.fertagus-menu .collapse,
.fertagus-menu .dropup,
.fertagus-menu .dropdown {
  position: static;
}

.header-bottom
{
    height: 100%;
    position: relative;
}

.header-bottom .bottom-box
{
    height: 100%;
}

.logobox
{
    height: 100%;
}

.logobox a
{
    display: inline-block;
    float: right;
}

.logobox a img.absolute-logo {
	border-width: 0px;
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
	margin-top: 5px;
    opacity: 1;
    position:absolute;
    right:0;
    -webkit-transition: all 0.3s ease-in-out; 
    -moz-transition: all 0.3s ease-in-out; 
    -ms-transition: all 0.3s ease-in-out; 
    -o-transition: all 0.3s ease-in-out; 
    transition: all 0.3s ease-in-out;
}

@media only screen and (max-width : 992px) {
    .logobox a img.absolute-logo {
        max-height: 35px;
        margin-top: 0px;
    }
}

.logobox a img.fixed-logo {
	border-width: 0px;
	max-width: 100%;
	max-height: 40px;
	object-fit: contain;
	margin-top: 2px;
    right: 0;
    opacity: 0;
    -webkit-transition: all 0.3s ease-in-out; 
    -moz-transition: all 0.3s ease-in-out; 
    -ms-transition: all 0.3s ease-in-out; 
    -o-transition: all 0.3s ease-in-out; 
    transition: all 0.3s ease-in-out;

    /*-webkit-transition-delay: 0.3s; 
    -moz-transition-delay:  0.3s; 
    -ms-transition-delay:  0.3s; 
    -o-transition-delay:  0.3s;*/ 
    

}

.fertagus-menu.fixed .logobox a img.absolute-logo
{
    opacity: 0;
    transition-delay:  0s;
}

.fertagus-menu.fixed .logobox a img.fixed-logo
{
    opacity: 1;
    transition-delay:  0.3s;
}

.dropdown-menu {
  left: auto;
}

.dropdown-menu.nogroup-menu{
    margin-right: -70px;
}

.megamenu-content {
  padding: 15px;
}

.megamenu-content.nogroup-menu {
  padding: 5px 0;
}

.megamenu-content h3{
  margin-top: 0;
  color: #428bca;
  font-size: 18px;
}
.dropdown.megamenu-fw .dropdown-menu {
  left: 0;
  right: 0;
}

.dropdown.megamenu-fw .dropdown-menu.columns-4 {
  margin-left: -8.33%;
  margin-right: -8.33%;
}

.header-menu {
	/*height: 100%;*/
}

.header-menu .menu-root 
{
	height: 100%;
	float: right;
}

.menu-root .root-item > a {
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
	color: #043963;
	display: inline-block;
	position: relative;
	padding-top: 32px;
	padding-bottom: 32px;
	padding-right: 20px;
	padding-left: 20px;
}

.fertagus-menu.fixed .menu-root .root-item > a {
	padding-top: 13px;
	padding-bottom: 7px;
}

.menu-root .root-item > a:after {
    content: '';
    display: block;
    margin: auto;
    height: 2px;
    width: 0px;
    margin-top: 5px;
    background: transparent;
    transition: width .5s ease, background-color .5s ease;
}

.fertagus-menu.fixed .menu-root .root-item > a:after {
	margin-top: 4px;
}

.menu-root .open > a, .menu-root .open > a:hover, .menu-root .open > a:focus {
    background-color: transparent;
    border-color: transparent;
}

.menu-root .root-item:hover > a:after {
    width: 100%;
    background: #043963;
}

.menu-root .root-item:hover > a
{
    background-color: transparent;
}

.megamenu-content a, 
.megamenu-content a:hover,
.megamenu-content a:active,
.megamenu-content a:focus,
.megamenu-content a:visited
{
    text-decoration: none;
    color: #000000;
    cursor:default;
}

.megamenu-row{
    margin: 0;
}

.megamenu-column-separator::before {
	content: " ";
	height: calc(100% - 20px);
	width: 1px;
	background-color: lightgray;
	position: absolute;
	top: 0;
	left: 0;
	margin-top: 10px;
}

.horario-column-separator{
    position: relative;
    height: 150px;
}

.horario-column-separator::after {
	content: " ";
	height: calc(100% - 10px);
	width: 1px;
	background-color: lightgray;
	position: absolute;
	top: 0;
	right: 0;
	margin-top: 5px;
}

.megamenu-item-wrapper .menu-item-header,
.megamenu-item .menu-item-header {
	margin-top: 5px;
    margin-bottom:5px;
    padding-left: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.megamenu-item-wrapper .menu-item-header a,
.megamenu-item .menu-item-header a {
	color: #043a63;
	font-size: 16px;
    font-weight: 400;
	text-transform: uppercase;
}

.megamenu-item .menu-item-header a:after {
    width: 60px;
    background: #043a63;
    content: '';
    display: block;
    height: 1px;
    margin-top: 3px;
}

.megamenu-item .menu-item-link {
	padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.nogroup-menu .megamenu-item .menu-item-link a {
    display:table;
}

    .nogroup-menu .megamenu-item .menu-item-link a span[class*=fa-] {
        min-width: 20px;
        text-align: center;
        display: table-cell;
        height: 100%;
        vertical-align: text-top;
    }


.nogroup-menu .megamenu-item .menu-item-link a span {
    display: table-cell;
}

.megamenu-item .menu-item-link a {
	color: #043a63;
	font-size: 16px;
    font-weight: 300;
    cursor:pointer;
}

    .megamenu-item .menu-item-link a span[class*=fa-] {
        color: #043a63;
        font-size: 16px;
        font-weight: 300;
        margin-right: 5px;
    }

.megamenu-item .menu-item-link:hover a,
.megamenu-item .menu-item-link:hover a span[class*=fa-] {
    color: #ffffff;
    /*font-weight: 600;*/
}

.megamenu-item .menu-item-link:hover {
	background-color: #3d97cd;
}

.megamenu-item.img-container{
    padding-left:20px;
    padding-right:20px;
    /*text-align:center;*/
    height: calc(100% - 150px);
}

.megamenu-item.img-container img{
    max-width:100%;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing:content-box;
    max-height: 100%;
}

.megamenu-column.fertagus-train .menu-item-header span {
	color: #c74f4f;
    margin-right: 5px;
}

.megamenu-column.fertagus-train .menu-item-header a:after {
    width: 60px;
    background: #c74f4f;
    content: '';
    display: block;
    height: 1px;
    margin-top: 3px;
}

.megamenu-column .menu-item-sub-header {
	margin-top: 5px;
	margin-bottom: 5px;
	padding-left: 10px;
	margin-left: 10px;
	margin-right: 10px;
}

.megamenu-column .menu-item-sub-header a {
	font-size: 16px;
	font-weight: normal;
	color: #043a63;
}

.megamenu-column.sulfertagus-bus .menu-item-header span {
	color: #6884a6;
    margin-right: 5px;
}

.megamenu-column.sulfertagus-bus .menu-item-header a:after {
    width: 60px;
    background: #6884a6;
    content: '';
    display: block;
    height: 1px;
    margin-top: 3px;
}

.megamenu-item .menu-item-link.fertagus:hover {
	background-color: #c74f4f;
}

.megamenu-item .menu-item-link.corroios:hover {
	background-color: #FF4ACC;
}

.megamenu-item .menu-item-link.coina:hover {
	background-color: #B391FF;
}

.megamenu-item .menu-item-link.fogueteiro:hover {
	background-color: #6BFF26;
}

.megamenu-item .menu-item-link.foros-de-amora:hover {
	background-color: #FFB517;
}

.megamenu-item .menu-item-link.pragal:hover {
	background-color: #FF7019;
}

.bft-menu-right
{
    height: 100%;
    display: table;
}

.fertagus-menu.fixed .bft-menu-right
{
    display: none;
}


.bft-menu-right .nav_ico {
	position: relative;
	margin-left: 5px;
	max-width: 90px;
	display: table-cell;
    vertical-align:middle;
}

.nav_ico::before {
	content: " ";
	border-left: 1px solid #FFFFFF;
	height: 32px;
	display: inline-block;
}

.bft-menu-right #globe-icon {
    width: 30px;
    height: 27px;
    line-height: 27px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    color: #043962;
    display: inline-block;
    /*margin-left: 10px;*/
}


    .bft-menu-right #globe-icon.active:before {
        content: "\f00d";
    }

.languageBox {
    display: inline-block;
    position: relative;
    margin-left: 10px;
}

#languagePT, #languageEN {
    width: 16px;
    height: 14px;
    color: white;
    text-align: center;
    background: #043963;
    position: absolute;
    font-size: 10px;
    opacity: 0.5;
    text-decoration:none;
}

#languageEN {
    top: -13px;
    left: 7px;
}

    #languageEN::after {
        content: '';
        position: absolute;
        top: 14px;
        left: 0px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 3px solid #043963;
        border-bottom: 0px solid transparent;
        opacity: 1;
    }

#languagePT::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 0px solid transparent;
    border-bottom: 3px solid #043963;
    opacity: 1;
}

#languagePT {
    top: 26px;
    left: 7px;
}

.language-active {
    opacity: 1;
}


#languagePT:before {
}

.bft-menu-right #search-icon {
	width: 30px;
	height: 27px;
	line-height: 27px;
	overflow: hidden;
	text-align: center;
	cursor: pointer;
	font-size: 15px;
	color: #043962;
	display: inline-block;
    margin-left:5px;
}
.bft-menu-right #search-icon.active {
	color: #e66b5c;
}
.bft-menu-right #search-icon.active:before{
	content:"\f00d";
}
.bft-menu-right .searchBox {
	display: none;
	background-color: #f9f9f9;
	border: 1px solid #e1e1e1;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	padding: 6px;
	position: absolute;
	top: 75%;
	right: 0;
	margin-top: 3px;
	z-index: 980;
	width: 228px;
}
/*.bft-menu-right .searchBox:before{
	content:"";
	border-top:1px solid #e1e1e1;
	border-left:1px solid #e1e1e1;
	background-color:#f9f9f9;
	width:8px;
	height:8px;
	position:absolute;
	top: -5px;
	right: 20px;
	transform:rotate(45deg);
	-webkit-transform:rotate(45deg);
}*/
.bft-menu-right .searchBox input.NormalTextBox{
	width:181px;
	height:32px;
	line-height:32px;
	background-color:#e5e5e5;
	color:#555;
	position:static;
}
.bft-menu-right .search {
	position: static;
	display: inline-block;
	width: 32px;
	text-align: center;
	height: 32px;
	line-height: 32px;
	margin-left: -3px;
	vertical-align: middle;
	font-size: 15px;
	color: #ffffff;
	background-color: #50bdad;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}
.bft-menu-right .searchBox .searchInputContainer{
	margin:0!important;
	vertical-align:middle;
}

a.search:before 
{
    font-family: FontAwesome;
    content: "\f002";
}
