/*
 * Main style for pipol template.
 *
 * Renamed main.css -> main-v2.css: that asset is served with a 1-year
 * Cache-Control and no cache-busting, so edits to it (static map image +
 * "get directions" button replacing the old interactive Google Maps JS
 * embed - see "Section map style" below) wouldn't reach visitors with a
 * cached copy - a brand-new, never-before-requested filename is needed
 * to guarantee a fresh load (see includes/head.php).
 */

/* General style */
body, html {
    width: 100%;
    position: relative;
    font-size: 1.4vw;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .6px;
    font-weight: 400;
}

section {
    position: relative;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: #000000;
}

b {
    font-weight: 700;
}


h1, h2, h3 {
    color: #6666CC;
}

h1 {
    text-transform: uppercase;
    font-size: 2em;
}

h2 {
    text-transform: uppercase;
    font-size: 1.7em;
}

h3 {
    text-transform: uppercase;
    font-size: 1.2em;
}

h4 {
    font-size: 1.2em;
}

h5 {
    font-size: .8em;
}

p {
    letter-spacing: 0;
    line-height: 1.4em;
    text-align: justify;
}

textarea, input[type="text"] {
    font-size: .7em;
    height: 4em;
    border: 0;
    background-color: rgba(255, 255, 255, .7);
    padding: 1em;
    margin-bottom: 1.5em;
    color: #000000;
    display: block;
    width: 100%;
    float: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 5px;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

textarea:focus, input:focus {
    outline: none !important;
    border: 1px solid #FFCC00;
    box-shadow: 0 0 8px #FFCC00;
}

.left {
    float: left;
    left: 0;
}

.right {
    float: right;
    right: 0;
}

.button, input[type="submit"] {
    display: inline-block;
    padding: .8em 1em;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.2em;
    transition: all .5s;
}

.button:hover, input[type="submit"]:hover {
    transform: scale(1.1);
}

.link:hover {
    color: #6666CC;
}

.square {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.bgColor1 {
    background: #e6f2ff;
}

.bgColor2 {
    background: #cce6ff;
}

.bgColor3 {
    background: #b3d9ff;
}

.bgColor4 {
    background: #99ccff;
}

#head {
    margin-top: 5em;
}

#subjectSpecial {
    display: none !important;
}

.title {
    display: inline-block;
    padding: 3em 0 1em 0;
}

.first {
    width: 100%;
    text-align: center;
    padding-top: 10em;
}

.bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.table {
    display: table;
    width: 80%;
    height: 100%;
    overflow: hidden;
    margin: auto;
}

.table-cell {
    display: table-cell;
    width: 100%;
    margin: auto;
    vertical-align: middle;
    text-align: left;
}

.mobile {
    display: none!important;
}

.half {
    width: 50%;
}

.white {
    color: #FFFFFF;
}

.bgWhite {
    background-color: #FFFFFF!important;
}

.bgLightWhite {
    background-color: rgba(255, 255, 255, .85);
}

.black {
    color: #000000;
}

.bgBlack {
    background-color: #000000;
}

.bgLightBlack {
    background-color: rgba(0, 0, 0, .85);
}

.lightBlue {
    color: #99CCFF;
}

.bgLightBlue {
    background-color: #99CCFF!important;
}

.yellow {
    color: #99CCFF;
}

.bgYellow {
    background-color: #FFCC00;
}

.violet {
    color: #6666CC;
}

.bgViolet {
    background-color: #6666CC;
}

.borderBottom {
    border-bottom: 5px solid #99CCFF;
}

/* Header style */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 15;
    text-transform: uppercase;
}

header a#logoHeader {
    position: absolute;
    margin-left: 5%;
    width: 30%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

header a#logoHeader img {
    width: 100%;
}

header div.upper {
    position: relative;
}

header div.upper, header div.lower {
    overflow: hidden;
    width: 100%;
}

header div.upper a {
    font-size: 1em;
}

header div.upper a.bgYellow img {
    width: 20%;
    margin-right: 2%;
}

header div.upper a.bgYellow p {
    width: 78%;
}

header div div a {
    transition: all .5s;
}

header div div a.white:hover {
    background-color: #6666CC;
}

header div.upper > div {
    overflow: hidden;
    margin-right: 8%;
}

header div.upper div > a.white {
    padding: .8em 2em;
}

header div.upper div > a i {
    margin-right: .4em;
    font-size: 1.2em;
}

header div.upper div > a p {
    line-height: 1.2em;
}

header ul.menuLang {
    position: absolute;
    overflow: hidden;
    right: 0;
    width: 8%;
}

header ul.menuLang li {
    overflow: hidden;
}

header ul.menuLang li a {
    width: 100%;
    padding: .9em 0;
}

header ul.menuLang li.hiddenLang {
    border-top: 1px solid #000000;
    display: none;
}

header div.lower {
    overflow: hidden;
    width: 100%;
    transition: all .5s;
}

header div.lower div {
    padding-right: 6.2em;
}

header div.lower div a.white {
    padding: 1.2em 2em;
    font-size: 0.8em;
}

/* Section rates style */
section#rates {
    background-image: url('/images/layout/rates-bg.jpg');
    text-align: center;
}

section#rates div.overImage {
    width: 70%;
    padding: 5em 15%;
}

section#rates p {
    margin-bottom: 1em;
}

/* Section reviews style */
section#reviews {
    height: 25em;
}

section#reviews > div.left {
    background-image: url('/images/layout/reviews-bg.jpg');
    height: 100%;
}

section#reviews > div.left h3 {
    text-align: center;
}

section#reviews > div.left div.overImage {
    width: 100%;
    height: 100%;
}

section#reviews > div.right {
    background-image: url('/images/layout/apici.png');
}

section#reviews div.text {
    position: absolute;
    height: 100%;
}

section#reviews div.text div#reviewsSlide div {
    width: 100%;
}

section#reviews div.text span {
    margin-bottom: .5em;
    float: left;
}

section#reviews div.text span.checked {
    color: #FFD700;
}

section#reviews div.text h4 {
    margin-bottom: 1em;
    width: 100%;
    display: inline-block;
}

/* Section image style */
section#image img {
    width: 100%;
    float: left;
}

/* Section map style */
#mapWrapper {
    height: 30em;
}

#mapWrapper div.title {
    width: 100%;
    text-align: center;
}

#mapWrapper div.lower {
    width: 100%;
    height: 25em;
    display: inline-block;
    position: relative;
}

#mapWrapper div#map {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#mapWrapper div#map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#mapWrapper a.mapDirections {
    position: absolute;
    bottom: 1.5em;
    left: 5%;
}

#mapWrapper div.bgLightWhite {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 19em;
    padding: 3em 5%;
}

#mapWrapper div.bgLightWhite > h4 {
    margin-bottom: 2em;
}

#mapWrapper div.bgLightWhite > div {
    display: inline-block;
    width: 100%;
    margin-bottom: 2em;
}

#mapWrapper div.bgLightWhite > div i {
    margin-right: 5%;
}

#mapWrapper div.bgLightWhite > div div.left {
    width: 85%;
}

#mapWrapper div.bgLightWhite > div div.left p {
    width: 100%;
}

#mapWrapper div.bgLightWhite > div div.left a {
    width: 100%;
    line-height: 1.4em;
}

/* Section instagram gallery style */
section#instagramGallery {
    text-align: center;
    margin-bottom: 4em;
}

section#instagramGallery div.title > * {
    transition: all .5s;
}

section#instagramGallery div.title > *:hover {
    color: #FFCC00;
}

section#instagramGallery div.title i {
    line-height: 1.2em;
    margin-right: .5em;
}

section#instagramGallery div.title h2 {
    font-size: 2.5em;
    text-transform: uppercase;
}

section#instagramGallery div.photoGallery {
    display: inline-block;
    width: 100%;
    margin: auto;
}

section#instagramGallery div.photoGallery a {
    overflow: hidden;
    width: 18%;
    margin: 0 1%;
}

section#instagramGallery div.photoGallery a div {
    height: 11em;
    transition: all .5s;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

section#instagramGallery div.photoGallery a:hover div {
    transform: scale(1.1);
}

/* Contact form section */
section#form {
    width: 90%;
    padding: 5em 5%;
}

section#form form div.left {
    width: 30%;
    margin-right: 5%;
}

section#form form div.left p {
    width: 80%;
    margin-right: 20%;
}

section#form form div.left h2 {
    margin-bottom: .5em;
}

section#form form div.right {
    width: 65%;
}

section#form input[type="text"], section#form textarea {
    font-size: .7em;
    font-family: 'Roboto', sans-serif;
    height: 4em;
    border: 0;
    padding: 1em;
    margin-bottom: 1.5em;
    color: #383838;
    display: block;
    width: 100%;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

section#form textarea {
    height: 10em;
}

section#form input[name="name"], section#form input[name="email"] {
    width: 49%;
}

section#form input[name="email"], section#form input[name="phone"] {
    margin-left: 2%;
}

section#form input[name="subject"] {
    width: 64%;
}

section#form input[name="phone"] {
    width: 34%;
}

section#form label {
    cursor: pointer;
    display: inline-block;
    width: 70%;
}

section#form label a {
    text-decoration: none;
    text-transform: lowercase;
}

section#form label p {
    text-transform: lowercase;
    font-size: 0.7em;
    line-height: 1em;
}

section#form label input {
    margin-right: 1em;
    bottom: 1px solid #FFFFFF;
}

section#form div.right input[type="submit"] {
    float: right;
    cursor: pointer;
    border: 1px solid #FFFFFF;
}

/* Footer style */
footer {
    overflow: hidden;
    width: 90%;
    padding: 2em 5%;
}

footer > div.left {
    width: 30%;
    padding: 0 10% 0 5%;
    text-align: center;
}

footer > div.left a#logoFooter {
    width: 65%;
    display: inline-block;
    margin-bottom: 1em;
}

footer > div.left a#logoFooter img {
    width: 100%;
}

footer > div.left div.lower {
    display: inline-block;
    width: 70%;
}

footer > div.left div.lower p {
    width: 50%;
    margin-right: 5%;
    line-height: 2em;
}

footer > div.left div.lower a {
    width: 17.5%;
    margin: 0 2.5%;
}

footer > div.right {
    width: 55%;
    padding: 1em 0;
}

footer > div.right div.left {
    display: inline-block;
}

footer > div.right div.left.upper {
    margin-bottom: 2em;
}

footer > div.right div.left.upper h2 {
    margin-bottom: 1em;
}

footer > div.right div.left.lower a {
    margin-right: 2em;
    line-height: 1.4em;
}

footer > div.right div.left.lower p {
    line-height: 1.4em;
}

/* Screen size adjustments */
@media screen and (max-width: 780px) {

    /* General style */
    body, html {
        font-size: 2.2vw;
    }

    .mobile {
        display: block!important;
    }

    .desktop {
        display: none!important;
    }

    .title {
        padding-bottom: 2em;
    }

    #head {
        margin-top: 8em;
    }

    /* Header style */
    header {
        background-color: rgba(0, 0, 0, .9);
    }

    header > a#logoHeader {
        margin-top: 1.3em;
        margin-bottom: 1.8em;
        width: 50%;
    }

    header > div.mobile {
        width: 100%;
        overflow: hidden;
        padding: 2em 0;
    }

    header ul.menuLang {
        right: 15%;
        width: 8%;
        z-index: 1;
    }

    header a#toggle.button {
        padding: .8em 0;
        margin-right: 5%;
    }

    header a.bgYellow {
        margin-right: 18%;
    }

    header .collapse  {
        width: 100%;
    }

    header .collapse > ul {
        background-color: #000000;
    }

    header .collapse > ul > li {
        padding: 1em 0;
        text-align: center;
        border-bottom: 1px solid #FFFFFF;
        font-size: 1.4em;
    }

    header .collapse > ul > li.lang {
        display: none;
    }

    header .collapse > ul > li.bgYellow {
        padding: .5em 0;
        border-bottom: none;
    }

    header .collapse > ul > li.bgYellow a img {
        width: 23%;
        margin-right: 2%;
    }

    header .collapse > ul > li.bgYellow a p {
        width: 75%;
    }

    header ul.menuLang li a {
        margin: .4em 0;
    }

    header .collapse > ul > li a {
        display: inline-block;
    }

    header div a.bgYellow p {
        line-height: 2em;
    }

    /* Section reviews */
    section#reviews {
        height: 18em;
    }

    /* Section map */
    #mapWrapper div.bgLightWhite {
        width: 45%;
        height: 18em;
    }

    /* Section rates*/
    section#rates div.overImage {
        width: 80%;
        padding: 5em 10%;
    }

    /* Section form */
    section#form form div.left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2em;
        text-align: center;
    }

    section#form form div.left p {
        width: 100%;
        margin-right: 0;
    }

    section#form form div.right {
        width: 100%;
    }

    /* Section instagram gallery style */
    section#instagramGallery div.photoGallery a {
        width: 40%;
        margin: 0 5% 3em 5%;
    }

    section#instagramGallery div.photoGallery a div {
        height: 18em;
    }

    /* Footer style */
    footer > div.left {
        width: 40%;
        padding: 0 5% 0 5%;
        text-align: center;
    }

    footer > div.right {
        width: 50%;
    }

    footer > div.left div.lower p {
        width: 100%;
        text-align: left;
    }

    footer > div.left div.lower a {
        width: 24.5%;
    }

    footer > div.left div.lower i {
        font-size: 3em;
    }
}

/* Screen size adjustments */
@media screen and (max-width: 500px) {

    /* General style */
    body, html {
        font-size: 4vw;
    }

    #head {
        margin-top: 6em;
    }

    /* Header style */
    header > div.mobile {
        padding: 1em 0;
    }

    header > a#logoHeader {
        width: 60%;
        margin-bottom: 1.3em;
    }

    header a#toggle.button {
        margin-right: 5%;
        padding: .8em 0;
    }

    header .collapse > ul > li.lang {
        display: block;
    }

    header a.bgYellow {
        margin-right: 5%;
        margin-top: .5em;
        padding: .3em .3em;
    }

    header > div > ul.menuLang {
        display: none;
    }

    /* Section review */

    section#reviews > div.left {
        width: 100%;
        height: 18em;
    }

    section#reviews > div.right {
        width: 100%;
        height: 18em;
        position: initial;
    }

    section#reviews {
        height: initial;
    }

    #reviewsSlide .slidesjs-container {
        height: 12em!important;
    }

    /* Section map */
    #mapWrapper {
        height: 31em;
    }

    #mapWrapper div.bgLightWhite {
        width: 90%;
        height: 19em;
    }

    /* Section instagram gallery style */
    section#instagramGallery div.photoGallery a {
        width: 90%;
        margin: 0 5% 3em 5%;
    }

    section#instagramGallery div.photoGallery a div {
        height: 25em;
    }

    /* form section */
    section#form input[name="name"], section#form input[name="email"] {
        width: 100%;
        margin: 0 0 1em 0;
    }

    section#form input[name="subject"] {
        width: 100%;
        margin: 0 0 1em 0;
    }

    section#form input[name="phone"] {
        width: 100%;
        margin: 0 0 1em 0;
    }

    section#form label {
        width: 100%;
        margin-bottom: 1em; 
    }

    /* Footer style */
    footer > div.left {
        width: 90%;
        padding: 1em 5%;
    }

    footer > div.right {
        width: 90%;
        padding: 1em 5%;
    }

    footer > div.left div.lower {
        width: 100%;
    }

    footer > div.left div.lower a {
        width: 15.5%;
    }
}
