/**
Theme Name: Maestri di strada
Author: Marco Caciotti
Description: Template for Maestri di strada 
Requires at least: 4.9.6
Requires PHP: 7.2
Version: 1.0_alpha
Text Domain: msmds
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-patterns
*/


/*indice
1)assets
2)tipography
3)layout
4)top-header
5)menu-top
6)logo
7)main-menu


/*grid*/

.page-hero-grid {
    grid-template-columns: repeat(12,1fr);
    grid-column-gap: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    position: relative;
}

.grid-direttivo {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}

.page-hero-media {
    position: relative;
    height: 0;
    grid-column: 3/-1;
    padding-bottom: 65%;
}


.img-fit-column {
    width: 100%;
    height:100%;
    position:absolute;    
    object-fit: cover;
    object-position: center;
    }

.page-hero {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.page-hero-text {
    grid-column: 2/6;
    position: absolute;
    width: calc( 100% + 2rem );
    bottom: 1.75rem;
    margin-top: 0;
}

.page-hero-content {
    grid-column: 2/6;
    grid-row: 1;
    bottom: 1.75rem;
    width: 100%;
    margin-top: 0;
    padding-top: 4.875rem;
    padding-bottom: 2.5rem;
    padding-right: 2rem;
    background:#fff;
    position: relative;
}

/*assets */

.page{
    min-height:870px;
}

.body-article h2 {
    font-size: 28px;
    font-weight: bold;
    font-family: 'Hind';
    line-height: 2;
}


.body-article {
    padding: 20px;
}

.wp-block-embed iframe {
    max-width: 100%;
    width: 100%;
    height: 500px;
}


.container-boxato {
    max-width: 1200px;
    margin: 0 auto;
}

.container-full {
    max-width: calc(100% - 120px);
    margin: 0 auto;
    box-sizing: border-box;
}

.container-full .container-50 {
    flex: 0 0 auto;
    width: 50%;
}

.container-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.container-60 {
    flex: 0 0 auto;
    width: 60%;
}

.container-40 {
    flex: 0 0 auto;
    width: 40%;
    overflow: hidden;
}

.fixed-header {
    position: fixed;
    width: 100%;
    z-index: 100;
    background: #fff;
    top: 33px;
    overflow: hidden;
}

.filter:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    margin: auto;
    height: auto;
    bottom: 0;
    z-index: 5;
    transition: .5s;
}

.filter:hover:after {
    transition: .5s;
    background: #0000005e;
}

.filter {
    overflow: hidden;
    position: relative;
}

.filter:hover img {
    transform: scale(1.2);
    transition: 8s;
}

.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*tipography*/

h1{
    line-height: 35px;
    font-size:30px;
    font-family: "Hind",sans-serif;
    text-shadow: 1px 1px 3px #333;
}
h1.page-hero-title, span.page-hero-title {
    font-size: 3.875rem;
    line-height: 1;
    letter-spacing: .005em;
    font-family: "Hind",sans-serif;
}

p {
    line-height: 1.8;
    font-family: 'OpenSans',sans-serif;
    font-size: 16px;
    margin: 10px 0px;
}

.center-text{
    text-align:center;
}

.color-text {
    color: #000;
}

.color-link {
    color: #fff000;
}

.title-page {
    padding:60px 0px;
}

.title-post {
    font-size: 25px;
    color: #010101;
}

.text-menu {
    font-size: 16px;
}

.body-article {
    max-width: 1280px;
    margin: 0 auto;
}



/*search*/
.box-search {
    flex: 0 0 auto;
    width: 20%;
}


.inner-search input {
    width: 100%;
    padding: 15px 5px 5px 5px;
    border-radius: 5px;
    border: 0;
}

.inner-search input:focus {
    border: 1px solid #ddd;
    outline: lightgray;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
}

.inner-search {
    top: -7px;
    position: relative;
    width: 223px;
}

.box-search input[type="submit"] {
    position: absolute;
    right: 0;
    top: 0;
    width: 23%;
    height: 40px;
}

.box-search input[type="text"] {
    width: 75%;
    padding: 15px 0px 15px 0px;
}
.box-search button {
    background: transparent;
    color: #ddd;
    border: 0;
    outline: none;
}

.box-search .dashicons {
    color: #ddd !important;
}

/*layout*/
.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex.justify-content {
    justify-content: center;
}

.align-center-vertical {
    align-items: center;
    aling-self: center;
}

/*top-header*/
.top-header {
    background: #000;
    font-size: 14px;
}

.top-header ul {
    display: flex;
    flex-direction: row;
    padding: 15px 0px;
}

/* menu-top*/
.menu-top-container {
    max-width: calc(100% - 120px);
    box-sizing: border-box;
    margin: 0 auto;
}

ul#menu-top {
    flex: 0 0 15%;
    max-width: 15%;
    justify-content: space-around;
}

ul#menu-top a {
    color: #fff;
    text-decoration: none;
    text-align: center;
}

/*logo*/
.logo {
    flex: 0 0 auto;
    width: 20%;
    display: flex;
    justify-content: stretch;
    align-items: center;
}

.logo img {
    width: auto;
    height: 90px;
}

.text-logo {
    align-items: center;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Hind', sans-serif;
}

.text-logo .second-line {
    font-size: 18px;
    text-align: center;
    line-height: 15px;
    display: block;
    text-align: left;
}

/*main-menu*/
.menu-header {
    flex: 0 0 auto;
    width: 55%;
}

.menu-header > * {
    height: -webkit-fill-available;
}

.menu-header ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    height: inherit;
    position: relative;
}

.menu-main-container {
    align-items: center;
}


.container-header {
    margin-top: 11px;
    height: 86px;
    display: flex;
    align-items: center;
}

.header {
    border-bottom: 1px solid #ddd;
}

.menu-header li {
    font-size: 14px;
    font-family: "OpenSans",sans-serif;
    font-size: 14px;
    position: relative;
}

.menu-header li a {
    color: #000;
    text-decoration: none;
}

.menu-item-has-children ul.sub-menu {
    position: absolute;
    flex-direction: column;
    z-index: 500;
    left: 0;
    display:none;
    perspective: 1000px;
    transform-origin: top center;
    width: max-content;
    padding-top:30px;
}

.menu-item-has-children ul.sub-menu li {
    padding: 10px 20px;
    line-height: 2.5;
    height:100%;
    border-top:1px solid #ddd;
}
.menu-item-has-children ul.sub-menu li:first-child{
    border:0;
} 

.menu-item-has-children:hover ul.sub-menu{
    transition: 300ms ease-in-out forwards;
    display:block;
}

.menu-item-has-children:hover ul.sub-menu li {
    visibility: visible;
    transition: .8s;
    height: auto;
    animation: growDown 300ms ease-in-out forwards;
    transform-origin: top center;
    background:#FFF;
    display:block;
    

}

@keyframes growDown {
  0% {
    transform: scaleY(0)
  }
  80% {
    transform: scaleY(1.1)
  }
  100% {
    transform: scaleY(1)
  }
}

/*slider*/
.inner-slider {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.inner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.item-slider {
    position: relative;
    height: inherit;
}

.inner-slider .text-slider {
    position: absolute;
    bottom: 60px;
    width: 100%;
    right: 0;
    left: 0;
    text-align: center;
    z-index: 100;
}

.text-slider h2 {
    font-size: 66px;
    font-weight: 700;
    font-family: "Hind",sans-serif;
    color: #fff;
}

/*tabber*/
.container-tabber.tabber-post {
    width: 100%;
    /* height: 600px; */
    background: #f0f0f0;
    margin-top: 2px;
    overflow: hidden;
    box-shadow: 0px 8px 6px 2px #00000052;
}

.wrap-tabber-post {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    height: 550px;
    flex-grow: 1;
}

.wrap-tabber-post * {
    margin: 0 2px 0px 0px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.wrap-tabber-post .img-fit {
    object-fit: cover;
    width: 101%;
    height: 100%;
    object-position: center;
}

.tabber-left {
    flex: 0 0 auto;
    max-width: 17%;
    width: auto;
    flex-grow: 1;
    height: 100%;
}

.tabber-center1 {
    flex: 0 0 auto;
    width: 33.3%;
    /* background: blue; */
    /* transition: .5s; */
    position: relative;
    flex-grow: 1;
    height: 100%;
}

.tabber-center2 {
    flex: 0 0 auto;
    width: 30.3%;
    /* background: yellow; */
    position: relative;
    flex-grow: 1;
}

.box-top {
    width: 100%;
    height: 50%;
    overflow: hidden;
    margin-bottom: 2px;
}

.box-bottom {
    width: 100%;
    height: calc(100% - 50%);
    overflow: hidden;
}

.tabber-center2 .box-top {
    padding-bottom: 3px;
    position: relative;
    padding-left: 0;
    margin-left: 0;
}

.tabber-center2 .box-bottom {
    /* padding-top: 3px; */
    overflow: hidden;
    position: relative;
    margin-left: 0;
}

.tabber-right {
    width: 16.5%;
    /* background: green; */
    flex-grow: 1;
    height: 100%;
    flex: 0 0 auto;
}

.text-tabber {
    font-size: 25px;
    font-family: "Hind",sans-serif;
    font-weight: 500;
    color: #fff;
    position: absolute;
    bottom: 0;
    margin-bottom: 35px;
    padding: 0 15px;
    line-height: 1.2;
    z-index: 50;
}
.text-tabber a {
    color: #fff;
    text-decoration:none;
}

.container-left {
    height: 500px;
    background: #000;
}

/*category-news*/
section#category-news {
    margin-top: 150px;
    padding: 25px 0px;
    box-sizing: border-box;
    margin-bottom: 120px;
}

.title-section-category {
    margin-bottom: 25px;
    border-bottom: 5px solid #b90078;
}

.title-section-category span {
    background: #b90078;
    position: relative;
    color: #fff;
    padding: 8px 25px 7px 25px;
    bottom: 8px;
    font-weight: bold;
}

.list-news .label-category {
    margin-left: 20px;
    font-weight: bold;
    color: #000 !important;
    z-index: 4;
}

.list-news {position: relative;z-index: 20;}


.first-news {
    /* overflow: hidden; */
    margin-right: 35px;
    box-sizing: border-box;
}

.text-first-news {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    position: absolute;
    z-index: 50;
    bottom: 15px;
    padding-left: 10px;
    
}

.text-first-news a{
    color:#fff;
}

.list-news li {
    width: 100%;
    overflow: hidden;
    margin: 18px 0px;
}

.list-news li:first-child {
    margin: 0;
}

.list-news-inner {
    padding: 80px 15px 15px 15px;
    margin: 0px 5px;
    border-top: 5px solid lightgreen;
    position: relative;
    top: -35px;
}

.list-news-inner:last-child {
    /* border-left: 0; */
    background: linear-gradient(221deg, #f2fbf3, #fff3fc52, #f4f5ff);
    z-index: -1;
}

.list-news li .single-news {
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.single-news {
    width: 100%;
}

.wrap-news {
    display: flex;
    align-items: flex-start;
}

.wrap-news img {
    max-width: 100px;
    height: auto;
}

.wrap-news .desc-news {
    margin-left: 10px;
    align-self: center;
}

.desc-news a {
    color: #3d3d3d;
    text-decoration: none;
    font-family: "Hind",sans-serif;
    text-transform: uppercase;
}

.wrap-news .desc-news span {
    color: #000;
    font-size: 16px;
    font-weight: bold;
}

.wrap-news .desc-news .muted {
    color: #777;
    line-height: 2;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: -1px;
}

.wrap-news-img {
    position: relative;
}

/*page-hero*/
.page-hero {/* border-bottom: 1px solid #ddd; */padding-bottom: 40px;}
.page-hero.odd .page-hero-media {
    position: relative;
    height: 0;
    grid-column: 2/12;
    padding-bottom: 65%;
}


.page-hero.odd .page-hero-text {
    grid-column: 9/-1;
}

.page-hero.odd .page-hero-content {
    padding-left: 30px;
}

.page-hero:after{
    position: absolute;
    bottom: 0;
    width: 30%;
    right: auto;
    left: 0;
    height: 1px;
    background: #d9d9d9;
    content: "";
    margin: auto;
}

.page-hero.odd:after {
    right: 0;
    left: auto;
}

/*archive post type */
.title-page-type {
    padding: 15px;
    background: #ffc107;
    color: #fff;
    font-size: 30px;
    margin-top: 0px;
    margin-bottom: 90px;
    font-family: 'Hind';
    font-weight: 400;
    letter-spacing: 1px;
}

.content-type-left {
    flex: 0 0 60%;
    max-width: 60%;
    -webkit-box-flex: 0;
    overflow: hidden;
}

.content-type-post {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.sidebar-right {
    flex: 0 0 40%;
    max-width: 40%;
    -webkit-box-flex: 0;
    padding-top: 60px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

.title-type-sidebar {
    font-size: 25px;
    text-align: left;
    line-height: 41px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
    padding-left: 25px;
    font-family: "Hind",sans-serif;
    top: 11px;
    position: relative;
}

.title-type-sidebar:before {
    content: " ";
    display: block;
    width: 8px;
    height: 35px;
    position: absolute;
    left: 0;
    top: 0;
    background: #ffc107;
}

.sidebar-right section {
    width: 65%;
    padding-left: 10%;
    margin-bottom: 60px;
}

.sidebar-right section a {
    text-decoration: none;
    color: #333;
}

.list-category ul {
    display: flex;
    flex-direction: column;
    line-height: 2;
}

.list-category ul li {
    font-size: 20px;
    font-family: 'Hind';
    text-transform: capitalize;
    padding-left: 25px;
}

.news-sidebar-single {
    overflow: hidden;
    max-height: 150px;
    margin: 15px;
    position: relative;
}


.news-sidebar-single-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px;
    background: #ffc107;
    color: #fff;
    font-size: 13px;
    font-family: 'Hind';
}

span.title-section {
    padding: 15px;
    line-height: 50px;
    background: #ffc107;
    color: #fff;
    font-family: "Hind",sans-serif;
    text-shadow: 1px 1px 3px #333;
}

.tabber {
    margin-bottom: 20px;
    position: relative;
    border-top: 1px solid #ddd;
}

.tabber-title {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    color: #fff;
    background: #ffc107d9;
    padding: 20px 15px;
    font-family: "Hind",sans-serif;
    font-size: 20px;
    z-index: 500;
}

.tabber-title a {
    color: #fff;
}

.title-post-grid a {
    color: #fff;
}

.other-post {
    display: grid;
    grid-template-columns: 50% 47%;
    grid-gap: 0;
    grid-template-rows: 300px 300px;
    grid-gap: 25px;
}

.grid-element {
    height: 100%;
    position: relative;
}

.title-post-grid {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 15px 10px;
    background: #494645e0;
    color: #fff;
    font-family: "Hind",sans-serif;
    font-size: 20px;
    z-index: 500;
}

.page-post-type {
    min-height: 100vh;
    margin-bottom: 60px;
}

.text-desc-article {
    padding-top: 30px;
    line-height: 1.8;
    font-size: 16px;
    font-family: "roboto", sans-serif;
}

.grid-container-post {
    height: 100%;
    position: relative;
}

/*aside*/
#aside-section {
    background: #100f10;
    height: 350px;
    width: 100%;
    box-shadow: 0px -9px 15px 6px #b7b7b7e3;
}

.container-aside {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.aside-left, .aside-box {
    flex: 0 0 auto;
    width: 25.4%;
    padding: 10px;
}

h2.rounded {
    font-family: "Hind",sans-serif;
    font-size: 22px;
    line-height: 50px;
    color: #fff;
}

/*footer*/
footer {
    background-color: #000;
}

.inner-footer {
    text-align: center;
    color: #fff;
    padding: 10px 0;
}

.inner-footer p {
    font-size: 13px;
    line-height: 15px;
    font-family: "OpenSans",sans-serif;
    font-weight: 300;
}

/*screen ipad*/
@media screen and (max-width: 1024px) {
    .header {
    position: fixed;
    top: 0;
    width: 100%;
    /* height: 200px; */
    z-index: 20000;
    background: #fff;
    box-shadow: 0px 12px 14px #333;
    z-index: 10000000;
}

.logo {
    width: 52%;
}

.menu-header {
    position: absolute;
    height: 100vh;
    background: #fff;
    left: 0;
    top: 96px;
    box-shadow: 12px 16px 14px #333;
    /* display:none; */
}
.menu-header ul {
    justify-content: flex-start;
    
}

ul#menu-main {
    display: flex;
    flex-direction: column;
}

ul#menu-main li {
    padding-left: 20px;
    border-top: 1px solid #ddd;
    padding-bottom: 10px;
    line-height: 25px;
    font-size: 20px;
    line-height: 2.5;

}

ul#menu-main .menu-item-has-children ul.sub-menu{
    display:block;
    position:relative;
    padding:0;
    width:100%;

   
}
ul#menu-main .menu-item-has-children ul.sub-menu li{
    padding:0;
    border-bottom:0;
}
ul#menu-main .menu-item-has-children ul.sub-menu li:last-child{
padding:0;
border-bottom:0
}

    .tabber-left, .tabber-center1 {
        width: auto;
        max-width: 50%;
        height: 50%;
        padding-bottom: 4px;
    }

    .tabber-center2 {
        max-width: 49.5%;
        width: auto;
        height: calc(100% - 50%);
    }

    .tabber-right {
        /* max-width: 49.7%; */
        /* width: 100%; */
        /* flex: 0 0 auto; */
        height: calc(100% - 50%);
        flex-grow: 1;
    }

    .wrap-tabber-post {
        /* height: 100vh; */
        padding-right: 4px;
        padding-top: 4px;
    }

    .box-top {
        max-height: 50%;
    }

    .box-bottom {
        height: 50%;
    }

    .wrap-tabber-post * {
        margin: 0 0px 0px 2px;
    }

    .text-tabber {
        bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .container-full {
        max-width: calc(100% - 0px);
        overflow: initial;
    }

    .container-header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
        padding: 0;
        margin-top: 0;
        box-shadow: 14px 13px 11px 0px #333333;
        height: 95px;
    }

    .logo {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: stretch;
        align-items: center;
    }

    .logo img {
        width: 80%;
        height: auto;
    }

    .box-img {
        padding-top: 11px;
    }

    ul#menu-main {
        position: absolute;
        width: 50%;
        height: 100vh;
        z-index: 500000;
        background: #fff;
        flex-direction: column;
        left: 0;
        top: 86px;
        padding-left: 10px;
        justify-content: flex-start;
        box-shadow: 8px 13px 7px 0px #333;
        display: none;
    }

    .menu-header ul li {
        line-height: 2.5;
    }

    .tabber-left.filter {
        width: auto;
        max-width: 100%;
    }

    .tabber-center1 {
        width: 100%;
        max-width: 100%;
        height: 50vh;
    }

    .tabber-center2 {
        width: 100%;
        max-width: 100%;
        height: 100vh;
    }

    .tabber-right.filter {
        width: 100%;
        height: 37%;
    }

    .wrap-tabber-post {
        height: inherit;
        width: 98%;
    }

    .box-top {
        height: 50%;
    }

    .box-bottom {
        height: 50%;
        padding-bottom: 4px;
    }

    .first-news {
        margin: 4px;
    }

    .text-first-news {
        margin: 0;
        line-height: 1.71;
    }

    .container-40 {
        width: 100%;
        padding-left: 40px;
    }

    .list-news {
        margin-top: 15px;
    }

    .aside-box {
        width: 100%;
        max-width: 100%;
    }

    .container-full .container-50 {
        width: 100%;
    }

    .wrap-tabber-post * {
        margin: 0 0px 0px 2px;
    }

    .text-tabber {
        bottom: 15px;
    }

    .container-60 {
        max-width: 100%;
        width: auto;
    }
}
