/*!
Theme Name: Elena Gabrieli
Theme URI: https://www.elenagabrieli.it
Author: Christos Christoforos - Webscream
Author URI: https://www.webscream.net
Description: Custom theme for Elena Gabrieli.
Version: 1.0.0
Text Domain: elenagabrieli

(C) 2019-2020 Webscream & Elena Gabrieli
*/

/* COLORS
Magenta: #6D0413
Site beige bg: #CAA182
Text beige bg: #F7DDCB
*/

/***************************************************** GENERAL THEME ELEMENTS */
html {
    scroll-behavior: smooth;
    font-family: 'Faustina', sans-serif;
    font-size: 21px;
}

/* Setting the two main fonts of the website */
@font-face {
    font-family: 'Faustina', serif;
}

/* Setting the border box rule, eliminating focus outline glows,
adding break-word overflow wrap for containers */
* {
    box-sizing: border-box;
    outline: none;
    overflow-wrap: break-word;
}

ul {
    padding: 0;
    /* list-style-type: circle; */
}

li {
    margin-left: 22px;
    margin-bottom: 5px;
}

::marker {
    color: #6D0413;
}

ul > :last-child {
    margin-bottom: 0;
}

video {
    object-fit: initial;
}

/* Setting body's properties */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #CAA182;
}

body.admin-bar {
    min-height: calc(100vh - 32px);
}

html {
    scroll-behavior: smooth;
}

/* #container {
    background-color: #CADDE3;
    z-index: 0;
} */

/**************************************************************** TEXT BASICS */
p {
    font-size: 1em;
    margin-block-start: 0.7em;
    margin-block-end: 0.7em;
}

p em {
    font-weight: 400;
    font-style: italic;
}

p strong {
    font-weight: 600;
    font-style: normal;
}

a {
    font-weight: 600;
    color: #6D0413;
    text-decoration: none;
}

a:hover {
    color: black;
}

h1, h2, h4 {
    font-weight: normal;
    margin: 0;
}

h1, h2 {
    font-size: 1.5em;
    /* font-size: 33px; */
}

h4 {
    font-size: 1em;
}

/********************************************************************* HEADER */
/* Contains the header's two-colored background,
remains fixed at the top */
#headerbox {
    width:100%;
    /* height: 100px; */
    z-index: 20;
    position: fixed;
    top: 0;
    background-color: #6D0413;
    /* background-image: url("assets/img/header-bg.png");
    background-repeat: repeat-x; */
}

/* Correcting the headerbox's distance from the top
when the WP admin bar is on */
.admin-bar #headerbox {
    top: 32px;
}

/* The 1280px wide box that contains the logo, menu and search form */
#header {
    /* height: 100px; */
    width: 100%;
    max-width: 1280px;
    margin: auto; /*centers it*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#logobox {
    order: 1;
    z-index: 20;
    height: 100px;
    width: 40%;
    max-width: 400px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#logo {
    /* max-width: 400px; */
    width: 100%;
    max-width: 400px;
}

#logo img {

}

/*********************************************************************** MENU */
/* Customizing the Wordpress dynamic menu */
.menu-navigazione-container {
    order: 2;
    height: 50px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1em;
}

#menu-navigazione {
    font-size: 1.1em;
    /* font-size: 23px; */
    font-weight: 500;
    list-style: none; /* Removes the points */
    padding: 0;
    margin-block-start: 0; /* Unnecessary space before and after */
    margin-block-end: 0; /* Unnecessary space before and after */
}

#menu-navigazione li {
    float: left;
    margin: auto 0;
}

#menu-navigazione .current_page_item a {
    border-bottom: solid 2px white;
}

#menu-navigazione li + li:before {
    content: " - ";
    color: white;
    padding: 0 5px;
}

#menu-navigazione a {
    text-decoration: none;
    color: white;
    border-bottom: solid 2px rgba(255,255,255,0);
}

#menu-navigazione a:hover {
    border-bottom: solid 2px rgba(255,255,255,1);
    transition: 0.2s;
}

/****************************************************************** SEARCHBOX */
#search {
    order: 3;
    height: 50px;
    text-align: right;
    display: flex;
    align-items: center;
    padding: 0 20px 0 20px;
}

#search-field{
    background-color:white;
    border: 0;
    color:black;
    /* font-family: 'Barlow', sans-serif; */
    font-size: 19px;
    color: inherit;
    border-radius: 20px; /*stupid fix for iOS*/
    padding: 0 10px 0 10px;
    height: 25px;
    width: 200px;
}

#searchico {
    border: 0;
    background-image: url("assets/img/searchico.png");
    background-size: cover;
    background-color: inherit;
    width: 25px;
    height: 25px;
    padding: 0;
    margin: 0 6px 0 0;
    float: left;
    cursor: pointer;
}

/* HamburgerMenu toggle */
.hamburgerMenu, .hamburgerSearch {
    display:none;
}

/*********************************************************** COVER CONTAINERS */
/* correcting the full screen containers' height
with the wp-admin toolbar on */
.admin-bar .cover-container{
    /* top: 82px; */
    top: 32px;
}

.error404 .articlelist-container, .search-no-results .articlelist-container {
    justify-content: center;
}

/***************************************************************** SHAREDADDY */
.sharedaddy {
    margin-top: 20px;
    /* text-align: center; */
}

.sharedaddy h3 {
    /* display:none !important; */
    color: black;
}

.sd-content ul {
    margin: 0 !important;
}

/********************************************************************** PAGES */
/* Contains the page */
.page-container{
    width: 100%;
    max-width: 1280px;
    position: relative;
    padding: 0 20px;
    /* margin-top: calc(100vh - 183px); */
    margin-top: 0;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* min-height: 80vh; */
    align-self: center;
}

.intro-container {
    height: 100vh;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.admin-bar .intro-container {
    height: calc(100vh - 32px);
}

.cover-container {
    position: fixed;
    top: 0;
    /* top: 50px; */
    left: 0;
    background-size: cover;
    background-position: center center;
    box-sizing: border-box;
    height: 100vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: -10;
}

/* Home page quote */
.quotebox {
    /* position: absolute;
    top: calc(40vh); */
    color: white;
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    /* margin: 0 0 50px; */
    padding: 50px 14px;
    text-shadow: 0 0 5px black, 0 0 5px black, 0 0 5px black, 0 0 5px black, 0 0 5px black;
}

.quotebox h5 {
    font-size: 1.6em;
    line-height: 1.1em;
    font-style: italic;
    font-weight: 600;
    margin: 5px 0;
}

.quotebox h6 {
    font-size: 0.9em;
    font-weight: 500;
    margin: 5px 0;
    align-self: flex-end;
}

/* Page Container */
.sectionbox, .introbox, .mainbox {
    background-color: #F7DDCB;
    padding: 30px 50px;
    z-index: 10;
    width: 50%;
    max-width: 1280px;
    /* margin-top: calc(100vh - 183px); */
    /* min-height:1000px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: flex-start;
    align-self: flex-start;
    z-index: 10;
}

.introbox {
    width:100%;
}

.mainbox {
    padding-top: 0;
}

#sectionbox_1, #sectionbox_2, #sectionbox_3 {
    padding-top: 0;
}

/* Anchors */
#sezione1, #sezione2, #sezione3 {
    position: relative;
    top:-130px;
}

.admin-bar #sezione1, .admin-bar #sezione2, .admin-bar #sezione3 {
    position: relative;
    top:-162px;
}

/* Article container: Differs because of top padding*/

.section-titlebox {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5em;
    line-height: 1.5em;
    border-bottom: 2px solid #6D0413;
}

.page-title {
    font-size: 1.8em;
    line-height: 1.5em;
    border-bottom: 2px solid #6D0413;
}

.section-subtitle, .page-subtitle {
    font-size: 1.2em;
    /* font-size: 25px; */
    line-height: 1.2em;
    padding:2px 0;
}

/* section mobile img */
#section-mobile-img, .article-mobile-img {
    display:none;
}

/* Special message container */
.messagebox {
    align-self: initial;
    border-radius: 20px;
}

/****************************************************************** HOME PAGE */


/********************************************************************* FOOTER */
hr {
    margin: 20px;
    border: 1px solid #EE9F20;
}

#footerbox {
    width: 100%;
    background-color: #6D0413;
    z-index: 10;
    display: flex;
    justify-content: center;
}

#footer {
    width: 100%;
    max-width: 1280px;
    padding: 30px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#footer-right {
    text-align: right;
}

#footer p {
    font-size: 0.9em;
    margin: 0;
    color: white;
}

#footer a {
    color: #F7DDCB;
    font-weight: normal;
}

#footer a:hover {
    color: white;
}

address {
    font-style: normal;
}

i {
    font-size: 14px;
    margin-right: 5px;
}

/******************************************************************************/
/******************************************************************************/
/************************************************************** SPECIAL PAGES */
/******************************************************************************/
/******************************************************************************/

/****************************************************************** 404 error */
/******************************************************************************/
.error404 .cover-container {
    background-image: url('assets/img/elenagabrieli404.jpg');
}

/******************************************************************************/
/******************************************************************************/
/***************************************************************** RESPONSIVE */
/******************************************************************************/
/******************************************************************************/

/***************************************************************** 1280 pixels*/
/******************************************************************************/
@media (max-width: 1281px) {
    .intro-container, .mainbox, .sectionbox {
        width: 60%;
    }

    .cover-container {
        background-position: 20% center;
    }

    .home .cover-container {
        background-position: 80% center;
    }
}

/***************************************************************** 1024 pixels*/
/******************************************************************************/
@media (max-width:1023px) {
    .content {
        flex-direction: column;
    }
    /* .steps, #docdavid, #shortbio {
        width:100%;
        margin:10px 0;
    } */
    .content div {
        width: 100% !important;
        margin: 10px 0 !important;
    }
}

/* 1024 pixels is the smallest size for the full menu */
@media (max-width: 1023px) {
    /********************************************************** MOBILE HEADER */
    /* Changing the flex direction of the header so that the menu can appear below*/
    #header {
        flex-direction: column;
    }

    /* making the logobox go full length */
    #logobox {
        width: 100%;
        max-width: initial;
        align-items: center;
    }

    /********************************************************* MOBILE BUTTONS */
    /* Defining the HamburgerMenu */
    .hamburgerMenu {
        display:inline-block;
        background-image: url('assets/img/menuico.png');
        background-size: cover;
        height:25px;
        width:25px;
        cursor: pointer;
        margin: 20px;
    }

    /******************************************************** BIG MOBILE MENU */
    /* Hide the menu */
    .menu-navigazione-container{
        width: 100%;
        height: 0;
        margin:0;
        overflow: hidden;
        transition: all 0.2s;
        transition-timing-function: ease-in-out;
    }

    /* Make the menu appear */
    .menuActive {
        height: 65px;
    }

    /********************************************************** MOBILE SEARCH */
    /* Make the search 100% wide and 0% tall */
    #search {
        background-color: #3a59a7;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: all 0.2s;
        transition-timing-function: ease-in-out;
    }

    /* Make the search appear */
    #search.searchActive {
        height: 65px;
    }

    /* Search icon must be hidden in mobile, search activates with enter */
    #searchico {
        display: none;
    }

    /* Make searchform fill the width */
    #searchform {
        width: 100%;
    }

    /* Make searchfield fill the width */
    #search-field {
        margin: 1em 0;
        width: 100%;
        text-align: center;
    }

}

/***************************************************************** 782 pixels */
/******************************************************************************/
@media (max-width: 782px) {
    /* Adjusting the font size of all text */
    html {
        font-size: 19px;
    }

    /* Under 783px of width, the Wordpress admin bar gets bigger (46px) */
    /* Adjusting body height for bigger admin bar */
    body.admin-bar {
        min-height: calc(100vh - 46px);
    }

    /* Correcting the headerbox's distance from the top
    when the WP admin bar is on */
    .admin-bar #headerbox {
        top: 46px;
    }

    /* correcting the full screen containers' height
    with the wp-admin toolbar on */
    .admin-bar .cover-container{
        /* height: calc(100vh - 46px); */
        height: 100vh;
        top: 0;
    }

    .admin-bar .intro-container {
        height: calc(100vh - 46px);
    }

    /* Making the header a bit smaller for smaller screens */
    #logobox {
        height: 70px;
    }

    #logo {
        max-width: 300px;
    }

    /****************************************************** SMALL MOBILE MENU */
    .menu-navigazione-container {
        background-color: #6D0413;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: all 0.3s;
        transition-timing-function: ease-in-out;
        margin: 0;
    }

    #menu-navigazione {
        width: 100%;
    }

    /* Changing the menu from horizontal to vertical */
    #menu-navigazione li {
        float: none;
        line-height: 35px;
        text-align: center;
    }

    /* eliminating the dashes */
    #menu-navigazione li + li:before {
        content: none;
    }

    #menu-navigazione .current_page_item a {
        border-bottom: none;
    }

    #menu-navigazione a{
        display: inline-block;
        width: 100%;
        height: 100%;
        border-bottom: 0;
    }

    #menu-navigazione a:hover, #menu-navigazione a:active {
        border-bottom: none;
        background-color: #F7DDCB;
        color: #000000;
        border-bottom: 0;
    }

    #menu-navigazione .current_page_item a {
        background-color: #F7DDCB;
        color: #000000 !important;
    }

    /* Make the menu appear */
    .menuActive {
        /* height: auto; */
        height: 139px;
    }

    /*********************************************************** MOBILE PAGES */
    /* Further reduce quotebox padding */

    .intro-container {
        width: 100%;
    }

    .introbox, .mainbox, .sectionbox, .quotebox {
        width: 100%;
        padding: 10px 30px;
    }

    .mainbox {
        padding-top: 0;
    }

    .section-titlebox {
        margin-bottom: 20px;
    }

    #footer {
        flex-direction: column;
    }

    #footer-right {
        order: 1;
        text-align: left;
    }

    #footer-left {
        order:2;
        margin-top: 1em;
    }
}

/* Fixing title's distance in short mobile */
@media (max-height: 820px) {
    .page-title {
        font-size: 1.5em;
    }

    .section-subtitle, .page-subtitle {
        font-size: 1.1em;
    }

    .page-container, .home .page-container {
        margin-top: 0;
    }

    .intro-container {
        /* height: calc(100vh + 32px); */
        height: 100vh;
    }

    .admin-bar .intro-container {
        height: calc(100vh - 46px);
    }

    .quotebox h5 {
        font-size: 1.3em;
        line-height: 1em;
    }

    .quotebox h6 {
        font-size: 0.9em;
    }

    /* Making the header a bit smaller for smaller screens */
    #logobox {
        height: 70px;
    }

    #logo {
        max-width: 300px;
    }
}

@media (max-height:500px) and (orientation: portrait) {
    .quotebox {
        display: none;
    }
}

@media (max-height:460px) {
    .quotebox {
        display: none;
    }
}

/* Under 601px of width, the wordpress admin bar scrolls up,
so let's release the header as well */
@media (max-width: 600px) {
    #headerbox {
        position: absolute;
    }
}

/********************************************************************* WIDGET */
/********************************************************************* WIDGET */
/********************************************************************* WIDGET */
.widget {
    list-style-type: none;
}

#eu_cookie_law_widget-5 {
    margin: auto;
}
