/*
red = #ED1E24
dark red = #720003
green = #2F853C
*/

@import url(https://fonts.googleapis.com/css?family=Courgette&subset=latin,latin-ext);
@import url(https://fonts.googleapis.com/css?family=Lato:400,700&subset=latin,latin-ext);

html, body {
    height: 100%;
    font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #eee;
}

a, a:hover {
    color: #2F853C;
} 
a:hover {
    text-decoration: none;
}
tr, td {
    vertical-align: top;
}
table h2, table h3, table p {
    margin: 0;
    padding: .05em 0;
}
table h2, .menu h2, .menu h3, .dowoz_krosno h3 {
    color: #2F853C
}
.menu h3, .dowoz_krosno h3  {
    font-size: 1em;
    text-transform: uppercase;
}

h1 {
    font-size: 1.5em;
    text-transform: uppercase;
    margin: .5em 0 .5em;
}
h2 {
    font-size: 1.3em;
    text-transform: uppercase;
}

.glyphicon {
    font-size: .8em;
}

.navbar { 
    font-family: Courgette;
    font-size: 1.1em;
    border: 0;
    height: 50px;
}
.navbar li {
    background: #fff;
}
.navbar-default .navbar-nav>li>a {
    color: #333;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
    background: #ED1E24;
    color: #fff;
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.top-bar {
    background: #111;
    color: #ddd;
    padding: .5em 0 2em;
}
.top-bar img.logo {
    max-height: 90px;
}

.top-bar h2, .top-bar p {
    line-height: 1.7em;
    margin: 0;
}
.top-bar h2 {
    font-size: 1em;
    font-weight: bolder;
}
.top-bar p {
    font-size: .9em;
}
.top-bar .separator {
    display: inline-block;
    border-left: 1px dotted #333;
    height: 80px;
    width: 2px;
    vertical-align: middle;
}

.carousel-container {
    background: #444 url(../images/bg.png);
    height: 22.5em;
}
.carousel-container>.container {
    position: relative;
    padding: 0;
    z-index: 0;
}
.carousel-container>.container>.navbar {
    position: absolute;
    top: -1.5em;
    left: 0;
    right: 0;
    z-index: 1;
}
.carousel {
    height: 24em;
    z-index: 0;
    box-shadow: #666 2px 2px 12px;
}
.carousel, .carousel-inner, .carousel-inner>.item, .carousel-inner>.item>.fill {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.item,
.active,
.carousel-inner {
    height: 100%;
}

.fill {
    width: 100%;
    height: 100%;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

.main-container {
    padding: 4em 2em 0;
    background: #fff;
}

.main-content h1 {
    border-bottom: 1px solid #eee;
    padding: .1em 0;
    margin: 15px 0;
}
.main-content h1>small {
    vertical-align: bottom;
    margin-top: 5px;
}
.main-content p, .main-content table {
    /*text-align: justify;*/
    padding: .5em 0;
    font-size: 1.1em;
    line-height: 1.5em;
}
.main-content img.thumbnail, .thumbnails img {
    border: 3px solid #fff;
    box-shadow: #aaa 0 0 10px;
}
.main-content hr {
    margin: 2em 0;
}

.main-thumbnails h2 {
    font-family: Courgette;
    text-align: center;
}
.main-thumbnails p {
    margin: .5em 0;
}
.main-sidebar {
    margin-top: 1.5em;
}

.panel-heading {
    padding: 10px 15px 8px;
}
.panel-title {
    text-transform: uppercase;
    /*font-weight: bolder;*/   
    font-family: Courgette;
    letter-spacing: 1px;
}

.panel-italy .panel-heading {
    background: #2F853C;
    color: #fff;
    position: relative;
}
.panel-italy .panel-heading:after {
    content: "";
    position: absolute;
    width: 32px;
    height: 36px;
    right: 6px;
    top: -4px;
    background: url(../images/flag.png) no-repeat;
}

.news { margin: 2em 0; }
.news-image {
    display: block;
    width: 100%;
    height: 12em;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 20%;
}
.news p {
    color: #333;
}

.partners {
    text-align: center;
}
.partners img {
    transition: all .2s;
    filter: grayscale(30%);
    -webkit-filter: grayscale(30%);
    -moz-filter: grayscale(30%);
    -o-filter: grayscale(30%);

    max-width: 90%;
    max-height: 5em;
    margin: 3em 1em 1em;
}

footer {
    background: #111;
    color: #ddd;
    padding: 50px 0;
}

.gallery figure {
    display: inline-block;
    width: 45%;
    vertical-align: top;
    margin: 2em 1%;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.gallery-thumb {
    display: block;
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: 50% 50%;
}

.gallery figure>figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 .5em;
    max-height: 36px;
    overflow: hidden;
    line-height: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;

    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}
.gallery figure>figcaption>strong {
    line-height: 36px;
}
.gallery figure:hover>figcaption {
    max-height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.carousel-caption {
    padding: 1em 1em;
    background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 1200px) {
    .container {
        width: 1050px;
    }
}

@media (min-width: 768px) {
    .navbar-brand {
        display: none;
    }
    .navbar {
        border-radius: 4px 4px 0 0;
    }
    .navbar-right {
        margin-right: 0;
    }

    .nav>li.active, .nav>li:hover {
        height: 50px;
        background: #111;
    }
    .nav>li.active>a, .nav>li:hover>a {
        height: 50px;
        padding: 0;
        background: #ccc;
        margin-top: .3em;
    }


    .nav>li.active>a>span, .nav>li:hover>a>span,.nav>li>a {
        padding:15px 20px;
    }

    .nav>li.active>a>span, .nav>li:hover>a>span {
        height: 50px;
        background:#ED1E24;
        display:inline-block;
        position:relative;

        box-shadow: #333 2px 2px 4px;

        -webkit-transition: background-color 0.2s, margin-top 0.2s;
        -moz-transition: background-color 0.2s, margin-top 0.2s;
        -ms-transition: background-color 0.2s, margin-top 0.2s;
        -o-transition: background-color 0.2s, margin-top 0.2s;
        transition: background-color 0.2s, margin-top 0.2s;
    }
    .nav>li.active>a>span:before, .nav>li:hover>a>span:before {
        content: "";
        position:absolute;
        top:-.3em;
        left:0;
        border-left:0.3em solid #fff;
        border-bottom:0.3em solid #720003;
    }

    .nav>li.active>a>span:after, .nav>li:hover>a>span:after {
        content: "";
        position:absolute;
        top:-.3em;
        right:0;
        border-right:0.3em solid #fff;
        border-bottom:0.3em solid #720003;
    }

    .carousel-caption {
        left: 2em;
        bottom: 2em;
        right: auto;
        text-align: left;
    }
    .carousel-caption>* {
        margin: 0;
        color: #fff;
        text-shadow: #000 2px 1px 1px;
    }
    .carousel-caption h2 { font-size: 1.6em; }
    .carousel-caption p { font-size: 1.2em; }

    .carousel-control.left, 
    .carousel-control.right {
        background: none;
    }

    .carousel-indicators {
        left: auto;
        right: 2em;
        bottom: 1em;
        width: auto;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {

    .top-bar img.logo {
        max-height: 150px;
        max-width: 90%;
    }

}


@media (max-width: 512px) {

    .responsive-float {
        width: 100% !important;
        float: none;
    }

}
