/* Theme Name: OAT
Author: Flavio N Quercia // flavio@20b.it
Author URI: www.quattrolinee.com
Version: 8/2016 */

html,
body {
    height: 100%;
}

body {
    /*background: #00437A;*/
    background: #fff;
    color: #00437A;
    font-family: 'Narr', sans-serif;
    font-weight: 300;
    /*font-size: 20px;*/
    font-size: 18px;
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

body strong,
body b {
    font-weight: 500;
}

body.overflow {
    overflow: hidden;
}


/*** Varianti del body **/


/*.page-parent,*/

.search {
    background: #d6cb9d;
}


/*.page-child {
    background: #fff;
}  */

.page-template-archive-appuntamento {
    background: #dad8d6;
}

body.page-parent:not(.page-child) .page-content a {
    font-family: Roboto, 'sans-serif';
    text-decoration: none;
    border-bottom: 1px solid #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 75%;
    color: #fff;
}

body.page-parent:not(.page-child) .page-content a:hover {
    color: #00437a;
    border-bottom: 1px solid #00437a;
}

.page-parent .page-content a:hover {
    color: #d6cb9d;
    border-bottom: 1px solid #d6cb9d;
}


/*******
 SEZIONI
 *******/


/* header */

#mainHeader {
    position: fixed;
    left: 0;
    right: 0;
    top: -80px;
    z-index: 10;
    background: #F2F2F2;
    height: 80px;
}

#mainHeader.show {
    top: 0;
    transition: all ease 0.5s;
}

a.logo {
    float: left;
    margin: 0 0 0 20px;
}

a.logo img {
    height: 60px;
    width: auto;
    margin: 10px 0;
}

.menu-search {
    float: right;
    cursor: pointer;
    height: 100%;
}

.menu-search a.showMenu,
.menu-search a.showSearch {
    display: block;
    width: 75px;
    min-height: 100%;
}

.menu-search a.showMenu {
    float: left;
    background: url("files/svg/menu-01.svg") no-repeat center;
    background-size: 27px 27px;
}

.menu-search a.showSearch {
    float: right;
    background: url("files/svg/search-01.svg") no-repeat center;
    background-size: 27px 27px;
    /*border-left: 1px solid #00437A;*/
}

.menu-search a.showMenu.active {
    background: url("files/svg/close-01.svg") no-repeat center;
    background-size: 27px 27px;
}

.menu-search a.showSearch.active {
    background: url('files/svg/search-02.svg') no-repeat center;
    background-size: 27px 27px;
}

#menu-main {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 65%;
    text-transform: uppercase;
}

#menu-main ul,
#menu-main li {
    margin: 0;
    padding: 0;
}


/* container */

#container {
    margin-top: 80px;
    background: #fff;
}

body.page-parent:not(.page-child) #container {
    background: #d6cb9d;
}


/*.page-parent #container {
    background: #d6cb9d;
}   */

.search #container,
.tag #container {
    background: #dad8d6;
}

.page-template-archive-appuntamento #container {
    background: #dad8d6;
}


/* sidebar */

#sidebar {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 65%;
    line-height: 1.75;
    text-transform: uppercase;
}

#sidebar a {
    text-decoration: none;
    letter-spacing: 1px;
}

#sidebar a:hover {
    text-decoration: underline;
}

#sidebar>ul {
    position: fixed;
    right: calc(75% + 30px);
    left: 30px;
}

#sidebar>ul li {
    list-style: none;
}

#sidebar>.list-pages>li:not(.current_page_ancestor),
#sidebar>.list-pages>li>ul>li:not(.current_page_ancestor)>ul
/*,
#sidebar > .list-pages > li > ul > li > ul > li:not(.current-page-ancestor) > ul */

{
    display: none;
}

#sidebar>ul>li ul {
    padding-left: 25px;
}

#sidebar li.current_page_item>a,
#menu-item-1016.current-menu-item>a,
#menu-item-1016.current-category-ancestor>a,
#sidebar .archive li.current-menu-item>a,
#sidebar .archive li.menu-item-type-taxonomy .current-menu-item>a {
    font-weight: 700;
    padding-left: 21px;
    background: url(files/ico-arrow-right.png) no-repeat left center;
}

#sidebar li.current_page_item>a:hover {
    padding-bottom: 0;
}


/* aside */

aside {
    position: relative;
    height: 100%;
}

aside .strillo {
    margin-top: 205px;
    font-size: 155%;
}


/* footer */

footer {
    font-family: Roboto, sans-serif;
    font-size: 70%;
    letter-spacing: 1px;
    color: #90b8d8;
    background: #00437A;
    padding: 20px;
    /*overflow: hidden;*/
}

.home footer {
    padding: 20px 20px;
}

footer .social a {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: url('files/sprite-social.png') no-repeat;
}

footer .social a:hover {
    border-bottom: none;
    background: url('files/sprite-social-hover.png') no-repeat;
}

footer .social a.tw {
    background-position: 0 0;
}

footer .social a.fb {
    background-position: -30px 0;
}

footer .social a.yt {
    background-position: -60px 0;
}

footer .social a.pinterest {
    background-position: -90px 0;
}

footer .social a.mailchimp {
    background: url('files/newsletter.svg') no-repeat;
    background-size: 70%;
    background-position: 0 5px;
}

footer .social a.mailchimp:hover {
    background: url('files/newsletter-hover.svg') no-repeat;
    background-size: 70%;
    background-position: 0 5px;
}

footer a {
    text-decoration: none;
    color: #90b8d8;
}

footer a:hover {
    border-bottom: 1px solid #fff;
    color: #fff;
}

footer div:nth-of-type(3) a:first-child {
    color: #fff;
}


/***
 PAGE
 ***/


/* overview */

body.page-parent:not(.page-child) article .entry {
    color: #fff;
    margin-left: 60px;
}


/* HOMEPAGE */


/* slideshow */

.slideshow {
    margin-bottom: 40px;
    position: relative;
}

.home .slideshow {
    margin-bottom: 0;
    background: #000;
}

.slides {
    width: 100%;
    padding: 0;
    margin: 0;
}

.slides div {
    position: relative;
    height: 100%;
    width: auto;
}

.slides div img {
    display: block;
    width: 100%;
    height: auto;
}

.home .slides div img {
    object-fit: cover;
    opacity: 0.6;
}

.slides .caption {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    padding: 0 20px;
}

.caption span {
    display: block;
}

.caption span.c_occhiello {
    font-family: 'Roboto', sans-serif;
    font-size: 85%;
    margin-bottom: 10px;
}

.caption span.c_title {
    font-weight: 700;
    font-size: 150%;
}

.slideshow a.navigation {
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    position: absolute;
    top: 50%;
    color: #000;
    border: 1px #fff solid;
    margin-top: -12px;
    z-index: 100;
    border-radius: 50%;
    cursor: pointer;
    background: #f00;
}

.slideshow a.navigation.prev {
    left: 30px;
    background: url(files/ico-arrow-left-white2.png) no-repeat center;
}

.slideshow a.navigation.next {
    right: 30px;
    background: url(files/ico-arrow-right-white.png) no-repeat center;
}

.loghi_sponsor {
    display: flex;
    flex-flow: column wrap;
}

.loghi_sponsor>a {
    margin-bottom: 2.5em;
    border-bottom: none;
}

.loghi_sponsor img {
    width: 100%;
    max-width: 175px;
    height: auto;
}


/***
 AGENDA
 ***/

.agenda {
    clear: both;
    background: #dad8d6;
}

.agenda ul {
    list-style: none;
}

.agenda h3 a {
    font-family: 'Roboto', sans-serif;
}

.agenda a {
    text-decoration: none;
}

.agenda a:hover {
    color: #fff;
}

.agenda a.ical {
    font-family: 'Roboto', sans-serif;
    background: url(files/ico-ical.svg) no-repeat left center;
    background-size: 16px 16px;
    padding-left: 21px;
    border: none;
}

.agenda a.ical:hover {
    background: url(files/ico-ical_hover.svg) no-repeat left center;
    background-size: 16px 16px;
    border: none;
}


/* agenda settimana */

.agenda.settimana h2 {
    text-transform: capitalize;
    margin-bottom: 0;
}

.settimana h2:not(.active),
.settimana .appuntamenti ul:not(.active) {
    display: none;
}


/* agenda mese */

.agenda.mese h2 a {
    font-family: 'Narr', sans-serif;
    font-size: 100%;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
    border: none;
}


/* CALENDARIO */


/*.calendario {
    width:100%;
}*/

.calendario>div:not(.current) {
    display: none;
}

.calendario ul {
    font-family: Roboto, sans-serif;
    font-size: 80%;
    display: flex;
    flex-flow: row nowrap;
    list-style: none;
    margin: 10px 0;
    padding: 15px 0 0 0;
}

.calendario li {
    text-align: center;
    display: inline-block;
    width: 14%;
    padding: 0;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
    height: 32px;
    line-height: 32px;
}

.calendario li a {
    display: inline-block;
    cursor: pointer;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 100%;
}

.home .calendario li a {
    width: 32px;
    height: 32px;
}

.calendario .today span {
    border: 1px solid #fff;
    border-radius: 50%;
    min-width: 30px;
    height: 30px;
    display: block;
    padding: 0;
}

.calendario .today a:hover {
    color: #00437a;
    /*border-bottom: none;*/
    /*border: 1px solid #fff;*/
}

.calendario li a:hover {
    border: none;
    color: #00437a;
}

.calendario li.active a {
    background: #fff;
    border-radius: 50%;
}


/*.calendario .today.active {
    background: #fff;
    border-radius: 50%;
}*/

.calendario li.past {
    color: #7c97ae;
}

.calendario li.today {
    width: 14%;
    height: 32px;
    line-height: 32px;
    display: flex;
    justify-content: space-around;
}

.calendario li.today a {
    border: 1px solid #FFF;
    border-radius: 50%;
}

.calendario .month {
    font-family: Roboto, sans-serif;
    border-bottom: 1px solid #a5b3bf;
    padding-bottom: 15px;
}

.calendario li.event {
    position: relative;
}

.calendario li.event:after {
    content: " ";
    display: block;
    width: 4px;
    height: 4px;
    background: #00437A;
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -2px;
    border-radius: 50%;
}

.calendario .today.event:after {
    content: " ";
    display: block;
    width: 4px;
    height: 4px;
    background: #00437A;
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -2px;
    border-radius: 50%;
}


/* CALENDARIO mese */

.mese .calendario {
    margin-bottom: 80px;
}

.mese .content {
    padding: 0 40px;
}

.mese .month div:nth-of-type(1) {
    float: left;
}

.mese .month div:nth-of-type(2) {
    float: right;
}

.mese .month div a {
    border: none;
    margin-left: 15px;
    cursor: pointer;
}

.mese .month div a:hover {
    border-bottom: none;
    color: #00437a;
}


/*.mese .month div a.next {
    visibility: hidden;
}*/


/* CALENDARIO settimana */

.settimana ul.days {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    justify-content: space-between;
    margin: 0 0 15px 0;
}


/*.agenda ul.days li {
    margin:0;
    width:24px; height:24px;
    line-height: 24px;
    font-size:75%;
    text-align: center;
}   .agenda ul.days li.past {
    color: #ababab;
}   .agenda ul.days li.current {
    background: #fff;
    border-radius: 50%;
}*/


/* calendario settimana


.agenda ul.events li {
    padding-top:10px;
    border-top: 1px #fff solid;
}

.calendar {
    margin:25px 0;
    padding:0 80px;
    min-height:500px;
}
*/


/* appuntamenti */

.appuntamenti {
    position: relative;
}

body:not(.home) .appuntamenti h3:before {
    content: '';
    display: block;
    width: 25px;
    height: 1px;
    background: #00437A;
    position: absolute;
    left: -80px;
    top: 20px;
}

.appuntamenti>div {
    margin-bottom: 40px;
}

.appuntamenti h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 175%;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    font-weight: 300;
    position: relative;
    margin-bottom: 25px;
}

.settimana .appuntamenti h3 {
    font-size: 125%;
    color: #00437a;
    text-transform: none;
}

.home .appuntamenti .week li {
    border-top: 1px solid #fff;
    padding: 5px 0;
}

.home .appuntamenti .week li:first-child {
    border-top: 1px solid #fff;
    border-bottom: none;
}

.home .appuntamenti .week li:last-of-type {
    border-bottom: 1px solid #fff;
}

.home .calendario .today {
    /*width: 10%;*/
    /*border: 1px solid #fff;
    border-radius: 50%;*/
    height: 30px;
    line-height: 30px;
    display: flex;
    justify-content: space-around;
}

.home .calendario .today span {
    min-width: 30px;
    height: 30px;
    display: block;
    padding: 0;
}

.appuntamenti .time {
    font-family: 'Roboto', sans-serif;
    font-size: 65%;
    text-transform: uppercase;
    margin: 10px 0 5px 0;
}

.appuntamenti .category {
    font-size: 82%;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.appuntamenti p:nth-of-type(1) {
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #b3bcc5;
}


/***
 MAIN
 ***/


/* main */

main {
    padding: 40px 0 0 0;
    min-height: 100%;
}

main .entry {
    padding: 0 20px;
}

main a {
    text-decoration: none;
    font-family: Roboto, 'sans-serif';
    border-bottom: 1px solid #00437a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 75%;
    color: #00437a;
}

main a:hover {
    text-decoration: none;
    color: #d6cb9d;
    border-bottom: 1px solid #d6cb9d;
}


/* breadcrumb */

.breadcrumb {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 80%;
    line-height: 1.5;
    letter-spacing: 1px;
    margin: 0 40px 50px 20px;
}

.breadcrumb strong {
    font-weight: 700;
}

.breadcrumb a {
    border: none;
    font-size: 90%;
    text-transform: none;
}

.breadcrumb a:hover {
    color: #00437a;
    border-bottom: 1px solid #00437a;
}


/* article */
article iframe {
    max-width: 100%;
}

article ul
/*article ol*/
{
    list-style: none;
    margin: 0 0 40px 0;
}

article ul li {
    background: url('files/ico-arrow-right.png') no-repeat left top 4px;
    padding: 0 0 5px calc(1em + 50px);
    list-style: none;
}


/* article h3 {
    border-bottom: none !important;
}*/

body:not(.single) article.format-standard {
    padding: 20px;
}

article>.content {
    padding: 20px;
    /*margin-bottom: 40px;*/
}

body.page-parent:not(.page-child) .content {
    color: #fff;
}

article .content ul {
    margin-bottom: 20px;
}

article section {
    border-top: 1px #00437a solid;
    padding: 40px 20px;
}

article section>.content {
    font-size: 80%;
    margin-bottom: 40px;
}

article section>.content p {
    line-height: 1.4;
}

.category article {
    font-family: 'Narr', sans-serif;
    background: #dad8d6;
    /*position:relative;*/
    margin-bottom: 20px;
    position: relative;
}

.category article a:hover {
    color: #fff;
    border: none;
}

.category article span.date {
    display: block;
    font-size: 65%;
    font-family: 'roboto';
    text-transform: uppercase;
    position: absolute;
    top: 20px;
    right: 20px;
}


/*.category article.format-gallery {
    background: none;
}   /*.category article:after {
    position:absolute;
    top:-15px;
    left:0;
    content:"";
    display:block;
    width:100%;
    border-bottom:1px #00437a solid;
    margin:0;
    transform: scaleY(0.25);
}   .news article:first-of-type:before,
    .archive article:first-of-type:after,
    .search article:first-of-type:after {
    border:none;
}*/


/* DARIO */

aside .link-download {
    position: fixed;
    left: calc(75% + 30px);
    right: 30px;
}

.link-download>div {
    margin-bottom: 25px;
}

.download h4 {
    background: url('files/svg/download-02_blue.svg') no-repeat left bottom;
    background-size: auto 16px;
    text-indent: 25px;
    color: #00437a;
}

.link h4 {
    background: url('files/svg/link-02_blue.svg') no-repeat left bottom;
    background-size: auto 16px;
    text-indent: 25px;
    color: #00437a;
}

.link-download a {
    font-size: 75%;
    text-decoration: none;
}

.link-download a:hover {
    text-decoration: underline;
    color: #cbbd9a;
    border-bottom: none;
}

.link a,
.download a {
    font-family: Roboto, 'sans-serif';
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    font-weight: 400;
}


/*.consiglio p {
    margin-right: 160px;
}*/


/* content */

.page-content h2 {
    padding-bottom: 10px;
    border-bottom: 1px #00437a solid;
    margin-bottom: 35px;
}

.page-content h3,
section .content h3 {
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px #00437a solid;
}

.page-content ol {
    list-style: decimal;
    padding-left: 1em;
}

.page-content ol li {
    padding: 0 0 10px 10px;
}

blockquote {
    color: #d6cb9d;
    text-transform: uppercase;
    border-left: 2px solid #efeeed;
    padding-left: 20px;
    font-weight: 400;
}

.page-content iframe:not(.audio-iframe),
section iframe:not(.audio-iframe) {
    width: 100%;
    min-height: 336px;
}

section .content img {
    max-width: 100%;
    height: auto;
}

.content ol li,
.content ul li {
    font-size: 14.4px;
}

/* .accordion .content p {
    font-size: 1rem !important;
} */


/* infografiche */

.infografica {
    width: 100%;
    height: auto;
}


/* iframe ricerca professionista */

.iframe_professionista {
    width: 100% !important;
    border: none !important;
    height: 500px !important;
    overflow: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}


/* added */

#iframe_professionista2 {
    height: 500px !important;
}

#iframe_professionista3 {
    height: 810px !important;
}


/* accordion */

.accordions {
    margin-bottom: 100px;
}

.accordion h3 {
    font-size: 100%;
    font-weight: 500;
    padding-bottom: 7px;
    border-bottom: 1px #00437a solid;
    position: relative;
    cursor: pointer;
    margin-bottom: 25px;
}

.accordion h3 span.open,
.accordion h3 span.close {
    width: 16px;
    height: 16px;
    position: absolute;
    right: 0;
    bottom: 9px;
}

.accordion h3 span.open {
    background: url("files/ico-arrow-down.png") no-repeat right bottom;
}

.accordion h3 span.close {
    background: url("files/ico-arrow-top.png") no-repeat right bottom;
    display: none;
}

.accordion>div {
    display: none;
}


/* form */

.form {
    margin-top: 20px;
}

.form * {
    font-size: 100%;
}

.form h3 {
    text-transform: uppercase;
    border: none;
}

.form input[type='text'],
.form input[type='email'],
.form input[type='number'],
.form input[type='password'] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #9e9e9e;
    padding-bottom: 10px;
    color: #04467b;
    outline: none;
}

.form input[type='date'] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #9e9e9e;
    padding-bottom: 10px;
    color: #9e9e9e;
    outline: none;
}

.form ::-webkit-input-placeholder {
    color: #9e9e9e;
    text-transform: uppercase;
    font-size: 75%;
}


/*.form select {
    color: #00437a;
    background: url("files/ico-arrow-down.png") no-repeat right center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}*/

.form p:last-of-type {
    position: relative;
}

.form p:last-of-type input {
    display: block;
    width: 30px;
    height: 30px;
    vertical-align: text-top;
    border: 1px #00437a solid;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    background: url('files/ico-arrow-right.png') no-repeat center;
    font-size: 0;
}

.form p:last-of-type input:hover {
    background: #00437a url('files/ico-arrow-right-white.png') no-repeat center;
}

.form p:last-of-type:before {
    content: 'invia';
    text-transform: uppercase;
    padding-right: 40px;
    position: absolute;
    right: 0;
    top: 25%;
}

.form span.wpcf7-list-item {
    margin-left: 0;
    border-bottom: 1px solid #9e9e9e;
    display: block;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 20px;
}

.form span.wpcf7-list-item input {
    float: left;
}

.form span.wpcf7-list-item span {
    color: #9e9e9e;
}

.form textarea {
    width: 100%;
    border: 1px solid #9e9e9e;
    color: #00437a;
    outline: none;
}

.form select {
    border: none;
    border-bottom: 1px solid #9e9e9e;
    width: 100%;
    outline: none;
    background: url('files/ico-arrow-down-oro.png') no-repeat right;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #00437a;
    text-transform: capitalize;
    padding-bottom: 5px;
}

#o2loginform .form-group:nth-of-type(3) {
    margin-top: 25px;
}

#o2loginform .form-group:nth-of-type(1) {
    margin-bottom: 40px;
}

button#o2_loginbutton {
    background: none;
    border: 1px solid #00437a;
    width: 100px;
    color: #00437a;
}

button#o2_loginbutton:hover {
    background: #00437a;
    border: 1px solid #FFF;
    color: #FFF;
    cursor: pointer;
}


/*** STILE CONSIGLIO ***/

.consiglio {
    margin-bottom: 100px;
}

.consiglio h3 {
    text-transform: none;
    font-size: 90%;
    border: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.consiglio h2 {
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.consiglio .separator {
    position: relative;
}

.consiglio .separator hr {
    border: 0;
    height: 1px;
    background: #00437a;
    margin: 20px 0;
}

.consiglio .separator img {
    height: 143px;
    width: auto;
    position: absolute;
    top: 0;
    right: 0;
    margin-top: -72px;
    border: 1px #00437a solid;
    border-radius: 50%;
}

.consiglio .accordion {
    text-transform: uppercase;
    font-size: 60%;
}

.consiglio .accordion h3 {
    text-transform: uppercase;
    font-weight: 400;
    display: inline-block;
    padding-right: 25px;
    cursor: pointer;
    font-size: 100%;
}

.consiglio .accordion div {
    font-size: 120%;
    margin: 10px 0 0 0;
    text-transform: none;
    border-top: 1px solid rgba(0, 67, 122, 0.2);
    padding-top: 15px;
}

.consiglio .accordion span {
    bottom: 0 !important;
}


/* news */

.news>h3 {
    /*font-size: 150%;
    font-weight: 700;
    border: none;*/
    font-size: 100%;
    text-transform: uppercase;
}

.news ul li {
    background: none;
    padding: 0 0 10px 0;
}

.news img {
    width: 100%;
    height: auto;
}

.news time {
    font-size: 75%;
}

.news a {
    /*border: none;*/
    padding-left: 21px;
    background: url(files/ico-arrow-right.png) no-repeat left center;
    border: none;
}

.news a:hover {
    text-decoration: underline;
    border: none;
}

.news a>h3 {
    font-size: 125%;
    font-weight: 700;
    border-bottom: 1px solid #00437a;
    padding-bottom: 10px;
    margin-top: 15px;
}

.news div:nth-child(even) {
    margin-bottom: 40px;
}

.category-news article h2 {
    display: inline;
    line-height: 0.7;
}

.category article h2 a {
    text-transform: none;
}

.post ul {
    margin-bottom: 40px;
}


/* formato galleria
body.home article {
    padding: 20px;
}   */

body:not(.home):not(.single):not(.search) article.format-gallery {
    min-height: 350px;
    max-height: 400px;
    overflow: hidden;
    background: #000;
}

body.category-news article.format-gallery a {
    position: relative;
    display: block;
    height: 100%;
}

body:not(.single) article.format-gallery a img {
    position: absolute;
    top: 0;
    width: auto;
    min-height: 350px;
    min-width: 100%;
    object-fit: cover;
    opacity: .4;
}

body:not(.single):not(.home) article.format-gallery a .caption {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    z-index: 1;
}

.gallery a {
    border: none;
}

.search article {
    padding: 0 0 20px 0;
    background: none;
}

.search article p {
    margin-bottom: 10px;
}

.search article .excerpt {
    margin-bottom: 30px;
}

.search article a:hover {
    color: #fff;
    border-bottom: none;
}

.excerpt {
    font-size: 90%;
    margin: 15px 0;
}

.thumbnail {
    margin-bottom: 70px;
}

.thumbnail img {
    width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.thumbnail .caption {
    font-family: 'Roboto', sans-serif;
    font-size: 65%;
    letter-spacing: 1px;
}

article .post-info,
article .post-share {
    font-family: 'Roboto', sans-serif;
    font-size: 60%;
    letter-spacing: 0.15em;
    margin: 0 0 40px 0;
    border-bottom: 1px solid #00437A;
    padding-bottom: 5px;
}

article .post-share a:hover {
    border-bottom: none;
    padding: 0
}

.post-share {
    text-transform: uppercase;
}

.share a {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border: none;
}

.more {
    margin-top: -30px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.more span {
    font-size: 60%;
    letter-spacing: 0.15em;
    /*margin-bottom: 8px;*/
    text-transform: uppercase;
    cursor: pointer;
}

.more span {
    padding-right: 21px;
}

.more span:nth-of-type(1) {
    background: url(files/ico-arrow.png) no-repeat;
    background-position: right center;
}

.more span:nth-of-type(2) {
    display: none;
    background: url(files/ico-close.png) no-repeat;
    background-position: right center;
}

.more div {
    font-size: 75%;
    line-height: 1.4;
    font-weight: 300;
    border-top: 1px #00437a solid;
    margin: 10px 0 0 0;
    padding: 20px 0 0 20px;
    display: none;
}


/** homepage articles **/

.home article h3 a {
    font-family: 'Roboto', sans-serif;
}

.home article a {
    text-decoration: none;
}

.home article a:hover {
    color: #d6cb9d;
}

.home p {
    margin: 0;
    display: inline;
}

.menu_home a {
    font-family: 'Roboto', sans-serif;
    display: block;
    padding: 20px 20px 20px 20px;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px #fff solid;
    font-weight: 500;
    /* background: #d6cb9d url('files/ico-arrow-right-white.png') no-repeat right 25px center; */
    background: #e0d3b1 url('files/ico-arrow-right-white.png') no-repeat right 25px center;
    letter-spacing: 2px;
    font-size: 90%;
}

/* .menu_home a:nth-of-type(1) {
    background-color: #d6cb9d;
} */

/* .menu_home a:nth-of-type(2) {
    background-color: #dbcfa8;
} */

/* .menu_home a:nth-of-type(3) {
    background-color: #e0d3b1;
} */

.menu_home a:last-child {
    border-bottom: none;
    /* background-color: #e4d9ba; */
}


/*.menu_home a:hover {
    color: #00437A;
}*/


/***
 PAGINATION
 ***/

.single .pagination {
    background: #d6cb9d;
    clear: both;
    text-align: center;
    padding: 70px 40px;
    font-size: 125%;
}

.pagination span {
    font-family: 'Roboto', sans-serif;
    display: block;
    text-transform: uppercase;
    font-size: 60%;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.pagination a {
    text-decoration: none;
}

.pagination a:hover {
    color: #fff;
}


/***
ARCHIVE
 ***/

.page-template-archive a.nohref {
    font-weight: 400 !important;
}


/* filtro categorie per le news */

.filter_categories {
    font-size: 69%;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    margin: 0 20px 40px;
}

.filter_categories>div {
    border-bottom: 1px #00437a solid;
    padding-bottom: 5px;
    margin-bottom: 20px;
    background: url('files/ico-arrow-top.png') no-repeat right center;
    font-weight: 400;
    cursor: pointer;
}

.filter_categories>div.active {
    background: url('files/ico-arrow-down.png') no-repeat right center;
}

.filter_categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter_categories li.cat-item-22>a {
    display: none;
}

.filter_categories ul li a {
    display: block;
    float: left;
    margin: 0 10px 10px 0;
    padding: 0 10px;
    text-decoration: none;
    border: 1px #dad8d6 solid;
    height: 20px;
    line-height: 20px;
    border-radius: 22px;
    font-size: 12px;
}

.filter_categories li:not(.current-cat)>a:hover {
    background: #dad8d6;
    color: #00437a;
}

.filter_categories li.current-cat>a {
    background: #04467B;
    border-color: #04467B;
    color: #fff;
}

a.goto {
    font-family: 'Roboto', sans-serif;
    font-size: 62%;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

a.goto:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(files/ico-arrow-right-2.png) no-repeat center;
    margin-left: 5px;
    vertical-align: middle;
}

a.goto.no-arrow {
    line-height: 1.6;
    margin-bottom: 5px;
}

a.goto.no-arrow:after {
    background: none;
}

.home a.goto {
    margin-top: 10px;
}

input.loadmore {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 60%;
    letter-spacing: 0.15em;
    margin: 0 auto 31px auto;
    display: block;
    border: 1px #00437a solid;
    height: 34px;
    line-height: 34px;
    border-radius: 18px;
    padding: 0 33px 0 15px;
    text-decoration: none;
    text-transform: uppercase;
    background: url(files/ico-arrow-down.png) right 15px center no-repeat;
    cursor: pointer;
    color: #04467B;
}

div.loadmore input.divloadmore:hover {
    background: #00437a;
    color: #fff;
}

.loadmore {
    padding: 0 0 20px 40px;
}

.loadmore a {
    border: none;
}

input.more {
    font-family: Roboto, 'sans-serif';
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px 10px 0;
    padding: 2px 10px;
    text-decoration: none;
    border: 1px #dad8d6 solid;
    border-radius: 22px;
    background: none;
    font-size: 14px;
    font-weight: 300;
    color: #00437a;
}

input.more:hover {
    background: #dad8d6;
    cursor: pointer;
}


/***
SEARCH
 ***/

.search h1,
.tag h1 {
    text-transform: none;
    margin-bottom: 0;
}

.search h1 span,
.tag h1 span {
    font-weight: 400;
    display: block;
}

.search h1 span:first-letter,
.tag h1 span:first-letter {
    text-transform: capitalize;
}

.tag .entry {
    padding: 0 80px;
}

.tag h2 {
    display: block;
    line-height: 1.1;
}

.tag main a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.tag .goto {
    display: inline;
}

.tag article {
    padding: 20px 40px 20px 60px !important;
}

.search h2 {
    /*display: inline-block;*/
    display: block;
    line-height: 1.0;
    margin-bottom: 15px;
}

.search_results {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 75%;
    letter-spacing: 0.15em;
    margin: 15px 20px 25px 20px;
    text-transform: uppercase;
}

.no-results {
    background: none !important;
    /*padding:0 !important;*/
}

.no-results a {
    border: none !important;
    border-bottom: 1px #00437A solid;
}


/* search form */

#mainSearch {
    position: fixed;
    left: 0;
    top: 80px;
    right: 0;
    bottom: 0;
    background: #dad8d6;
    padding: 40px;
    display: none;
    overflow-y: auto;
    z-index: 100;
}

#mainSearch div {
    max-width: 800px;
    margin: 0 auto;
}

#mainSearch span,
#mainSearch ul {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    letter-spacing: 0.15em;
    max-width: 800px;
    margin: 0 auto;
    text-transform: uppercase;
}

#mainSearch span {
    font-size: 62%;
}

#mainSearch ul {
    font-size: 70%;
    list-style: none;
    margin: 25px 0 40px;
}

#mainSearch ul li {
    margin-bottom: 5px;
}

#mainSearch ul a {
    text-decoration: none;
}

#mainSearch ul a:hover {
    color: #fff;
}


/* form */

#mainSearch form {
    margin-bottom: 50px;
}

#mainSearch form div {
    position: relative;
}

#mainSearch form input {
    color: #04467B;
    background: none;
}

#mainSearch form input[type="text"] {
    height: 32px;
    font-size: 80%;
    border: none;
    border-bottom: 1px #00437a solid;
    width: 100%;
    padding-bottom: 5px;
}

#mainSearch form input[type="text"]:focus {
    outline: none;
    background: none;
}

#mainSearch form input[type="submit"] {
    display: block;
    width: 22px;
    height: 22px;
    vertical-align: text-top;
    border: 1px #00437a solid;
    border-radius: 50%;
    position: absolute;
    right: 0;
    bottom: 11px;
    cursor: pointer;
    background: url(files/ico-arrow-right.png) no-repeat center;
}

#mainSearch form input[type="submit"]:hover {
    background: #00437a url(files/ico-arrow-right-white.png) no-repeat center;
    color: #fff;
}


/***
 FORMS
 ***/

#form {
    margin: 0;
    padding: 0;
}


/* form mailchimp */

.mailchimp div {
    position: relative;
    color: #04467B;
    border-bottom: 1px #00437a solid;
}

.mailchimp input {
    border: none;
    background: none;
}

.mailchimp input[type="email"] {
    padding: 5px 0;
    height: 20px;
    line-height: 20px;
    width: calc(100% - 21px);
}

.mailchimp input[type="submit"] {
    position: absolute;
    top: 7px;
    right: 0;
    width: 16px;
    height: 16px;
    background: url(files/ico-arrow-right.png) no-repeat;
    cursor: pointer;
}


/*** CAPTION IMAGE ***/

.photo_credit {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    padding: 0.5em;
    text-align: center;
    font-size: 80%;
    color: #00437a;
}


/*** 404 page ***/

#error_page .page-content {
    padding-left: 80px;
}

#error_page h2 {
    border-bottom: none;
}


/*** OANOTIZIE ARCHIVE ***/

.display_archive div {
    font-size: 75%;
}

.campaign a {
    display: block;
    border-bottom: none;
    font-weight: 700;
    font-size: 115%;
}

.campaign a:hover {
    border-bottom: none;
}

.campaign .spaziodata {
    padding-right: 10px;
}

.archive-y a {
    text-decoration: none;
    border-bottom: none;
    font-size: 115%;
}

.archive-y a:hover {
    text-decoration: none;
    color: #d6cb9d;
    border-bottom: none;
}

.archive-y .campaign {
    width: 100%;
    margin-bottom: .5em;
}

.archive-y .campaign a {
    text-decoration: none;
    font-size: 100%;
    /*color: #968a81;*/
    display: inline;
    margin-right: 1rem;
}

.archive-y .campaign a br {
    display: none;
}


/*** FORM QUESTIONS ***/

.question {
    display: inline-block;
    margin-bottom: 1.5em;
    text-transform: uppercase;
    font-size: 85%;
}


/*** DB ***/

.filter-architetti select {
    margin-bottom: 2em;
}

#search-architetti fieldset {
    margin-bottom: 2em;
    border: 1px solid #00437a;
}

#search-architetti fieldset select {
    font-family: 'Roboto', sans-serif;
    color: #00437a;
    border: 1px solid #D6CB9D;
}

#search-architetti fieldset input {
    border: 1px solid #D6CB9D;
}

#search-architetti fieldset ::-webkit-input-placeholder {
    font-family: 'Roboto', sans-serif;
}

#search-architetti fieldset ::-moz-placeholder {
    font-family: 'Roboto', sans-serif;
}

#search-architetti fieldset :-ms-input-placeholder {
    font-family: 'Roboto', sans-serif;
}

#search-architetti fieldset :-moz-placeholder {
    font-family: 'Roboto', sans-serif;
}

#search-architetti fieldset p>label {
    font-size: 75%;
    font-weight: 700;
    letter-spacing: 1px;
}

#search-architetti input[type="submit"],
.profilo-architetto input[type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #00437a;
    font-family: 'Roboto', sans-serif;
    background: none;
    color: #00437a;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: .25s linear;
}

#search-architetti input[type="submit"]:hover,
.profilo-architetto input[type="submit"]:hover {
    background: #00437a;
    color: #fff;
    cursor: pointer;
}

#search-architetti .checkbox-option {
    font-family: 'Roboto', sans-serif;
    font-size: 80%;
    margin-right: 1em;
}

.profilo-architetto table label {
    font-weight: 500 !important;
    font-size: 85%;
}

.userCount {
    margin-bottom: 1em;
}

.list-users>li {
    margin-bottom: 0.5em;
}

.single-architetto section h2 {
    margin-bottom: 1em;
}

.single-architetto section h3 {
    margin-bottom: 1em;
}

.single-architetto section ul {
    margin-bottom: 2em;
}

.page-template-tpl-architetti .content ul li a {
    font-size: 85%;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Narr', sans-serif;
    letter-spacing: 1px;
    text-transform: none;
}

.single-architetto ol li {
    line-height: 1.45;
}

.single-architetto ul li a {
    text-transform: none;
    font-family: 'Narr', sans-serif;
    font-size: 100%;
}

.profilo-architetto form>.acf-form-fields>div {
    border-top: 1px #00437a solid;
    padding: 40px 20px;
}

.profilo-architetto .acf-form-submit {
    padding: 20px;
}

.profilo-architetto form .acf-fields.-border>div {
    border-top: 1px solid #D6CB9D;
}

.profilo-architetto form .acf-fields.-border>div:first-of-type {
    border-top: 0;
}

.profilo-architetto .acf-field textarea {
    resize: none;
}

.profilo-architetto form .acf-field select {
    color: #00437a;
    border: 1px solid #D6CB9D;
}

.profilo-architetto form table input[type="text"],
.profilo-architetto form table input[type="number"],
.profilo-architetto .acf-field textarea {
    border: 1px solid #D6CB9D;
    font-family: 'Roboto', sans-serif;
    color: #00437a;
}

.acf-actions a {
    font-weight: 300;
}

.file-wrap .acf-icon:before {
    background: url(files/svg/close-01.svg) no-repeat center;
    background-size: 27px 27px;
    color: transparent;
}

.acf-icon.dark {
    background: transparent !important;
}

a.acf-icon.-minus:hover,
a.acf-icon.-plus:hover,
a.acf-icon.-collapse:hover {
    background-color: #00437a !important;
}


/******
 STYLES
 ******/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

h1 {
    font-family: Narr, sans-serif;
    font-size: 175%;
    text-transform: uppercase;
    position: relative;
    padding: 0 20px 0 20px;
    margin-bottom: 40px;
}


/*h1:before {
    content: '';
    display: block;
    width: 25px;
    height: 1px;
    background: #00437A;
    position: absolute;
    left:0; top: 50%;
}*/

h2 {
    font-size: 130%;
    margin-bottom: 5px;
}

.page section>h2 {
    padding-bottom: 20px;
    border-bottom: 1px #00437a solid;
    margin-bottom: 35px;
}

h2 a {
    border: none;
}

h3 {
    font-size: 90%;
    font-weight: 400;
    margin-bottom: 15px;
}

h3 a {
    border: none;
}

h4 {
    /*color: #00f;*/
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 60%;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

p {
    margin: 0 0 20px 0;
}

ul,
li {
    margin: 0;
    padding: 0;
}

a {
    color: #04467B;
    text-decoration: underline;
}

ol {
    padding-left: 1em;
}

ol li {
    padding: 0 0 10px 10px;
}

#mainalbo {
    background: red;
}


/***  custom anchor ***/

a.facebook {
    background: url('files/svg/fb_blu.svg') no-repeat center;
}

a.twitter {
    background: url('files/svg/twitter_blu.svg') no-repeat center;
}

a.nohref,
a.nohref:hover,
a.no-results {
    text-decoration: none !important;
}


/*** OVERRIDE AREA RISERVATA ***/

.o2_benvenuto {
    display: none;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    display: inline-block;
}

* html .clearfix {
    height: 1%;
}

.clearfix {
    display: block;
}

.accordion .content p {font-size: 14.4px}

.accordion h3 { font-size:100% }

.bordo{

    border-top: 1px solid #00437A;
    padding-top: 3rem;
}

.link {
    text-decoration: none;
}
.link:hover{
    text-decoration: underline;
    color: #00437A;
}

.link1 {
    text-decoration: none;
}
.link1:hover{
    text-decoration: underline;
    color: #00437A;
    font-weight:800;
}

.featured_element {
    padding: 1em;
}
.featured_element:first-child h2{
    margin-top: 1.2em !important;
}
.featured_element:not(:last-child){
    border-bottom:1px solid #d6cb9d;
}