/*
 Theme Name: DTB Child
 Description: Child theme di GeneratePress per DTB Solutions.
 Author: Daniel Capurro
 Template: generatepress
 Version: 1.0
*/

/* -- FONT SELF-HOSTED -- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/open-sans/OpenSans-Light.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/open-sans/OpenSans-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/open-sans/OpenSans-Bold.woff2') format('woff2');
    font-display: swap;
}

body {
    font-family: 'Open Sans', sans-serif;
}

/* -- GENERALE -- */

body,input,select,textarea {
    color: #1f1f1f;
    font-family: Open Sans,sans-serif;
    font-weight: 300;
}

body,input,li,p,select,textarea {
    font-size: 14pt;
    line-height: 1.65em;
}

h1,h2,h3,h4,h5,h6 {
    color: inherit;
    display: block;
    font-weight: 400;
    line-height: 1.4em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.9em;
    &.entry-title {
        font-size: 2.5em;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 300;
    }
}

h2 {
    font-size: 1.6em;
}

h3,h5 {
    font-size: 1.25em;
}

h5 {
    font-weight: 300;
}

a {
    color: #286e5d;
    text-decoration: underline;
}

h1 a,h2 a,h3 a,h4 a,h5 a,h6 a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: #286e5d;
}

.color-link-text a,a.color-link-text {
    color: #1f1f1f;
}

.color-link-secondary a,a.color-link-secondary {
    color: #eee;
}

b,strong {
    font-weight: 400;
}

em,i {
    font-style: italic;
}

p {
    line-height: 1.5em;
    margin-bottom: 1rem;
}

p+h1,p+h2,p+h3,p+h4,p+h5,p+h6 {
    padding-top: .5rem;
}

sub {
    top: .5em;
}

sub,sup {
    font-size: .8em;
    position: relative;
}

sup {
    top: -.5em;
}

hr {
    border: 0;
    border-top: 1px solid #1f1f1f;
    clear: both;
    margin-bottom: 1.5em;
}

dl,table,table.default {
    margin: 0 0 2em;
}

table td,table th {
    padding: 0 1em 1em 0;
}

table.default tbody tr {
    border-bottom: 1px solid #26626c;
}

table.default td {
    padding: .5em 1em;
}

table.default th {
    font-weight: 700;
    padding: .5em 1em;
    text-align: left;
}

table.default thead {
    background-color: #26626c;
    color: #eee;
}

article.special,header.major,section.special {
    text-align: center;
}

header.major {
    text-transform: uppercase;
}

header.major h1,header.major h2,header.major h3,header.major h4 {
    font-weight: 700;
}

header.major .byline {
    text-transform: none;
}

header.major h1 {
    font-size: 2.6em;
    font-weight: 700;
    line-height: 100%;
}

header.major .byline {
    display: block;
    font-size: 1.4em;
    letter-spacing: 1px;
    line-height: 1.4em;
    margin-bottom: 2rem;
}

input[type=email],input[type=password],input[type=text], input[type=tel], textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: 2px solid #26626c;
    color: inherit;
    display: block;
    outline: 0;
    padding: .75em;
    text-decoration: none;
    width: 100%;
}

input[type=email]:focus,input[type=password]:focus,input[type=text]:focus,textarea:focus {
    border-color: #26626c;
}

input[type=email],input[type=password],input[type=text] {
    line-height: 1em;
}

::-webkit-input-placeholder {
    color: inherit;
    opacity: .5;
}

::-moz-placeholder {
    color: inherit;
    opacity: .5;
}

:-ms-input-placeholder {
    color: inherit;
    opacity: .5;
}

::-ms-input-placeholder {
    color: inherit;
    opacity: .5;
}

::input-placeholder,::placeholder,:input-placeholder,:placeholder {
    color: inherit;
    opacity: .5;
}

::input-placeholder {
    position: relative;
    top: 3px;
}

.icon {
    position: relative;
}

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    content: "";
    font-family: FontAwesome;
    font-style: normal;
    font-weight: 400;
    text-transform: none!important;
}

.button.icon:before {
    margin-right: .5em;
}

.icon>.label {
    display: none;
}

ol,ul {
    list-style-position: outside;
    padding: 0;
}

ul,ul.default {
    list-style-type: disc;
    margin: 0 0 1em 1.23em;
}

ol,ol.default {
    list-style-type: decimal;
    margin: 0 0 1em 1.1em;
}

ol li,ol.default li,ul li,ul.default li {
    padding-bottom: .75em;
    padding-left: .35em;
}

ol ol,ul ul {
    margin-bottom: 0;
}

ol ol,ol ol li,ul ul,ul ul li {
    padding-bottom: 0;
}

ul ul li {
    list-style-type: circle;
}

ol ol li {
    list-style-type: lower-latin;
}

.alt ol ol,.alt ul ul,.sitemap ol ol,.sitemap ul ul {
    margin-top: 1em;
}

.alt ul li,.alt ul li li,.sitemap ul li,.sitemap ul li li {
    list-style-type: disc;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 1em;
    padding-top: 0;
}

.alt ul li li:last-child,.alt ul li:last-child,.sitemap ul li li:last-child,.sitemap ul li:last-child {
    padding-bottom: 0;
}

ul.actions,ul.icons,ul.special-icons {
    cursor: default;
    list-style-type: none;
    margin: 0 0 2rem;
}

ul.icons li {
    display: inline-block;
    line-height: 1em;
    padding: .5em 1em;
}

ul.icons li span {
    display: none;
}

ul.icons li a {
    color: inherit;
    font-size: 2em;
    opacity: .35;
    text-decoration: none;
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

ul.icons li a:hover {
    color: inherit;
    opacity: 1;
}

ul.actions li {
    display: inline-block;
}

ul.actions li:first-child {
    padding: 0;
}

ul.actions:last-child {
    margin-bottom: 0;
}

ul.actions.vertical li {
    display: block;
    padding: 1.5em 0 0;
}

ul.actions.vertical li:first-child {
    padding: 0;
}

ul.special-icons {
    margin: 0;
    padding: 0 0 0 1.35em;
}

ul.special-icons li {
    margin-bottom: 1rem;
    padding: 0 0 0 1.4em;
    position: relative;
    vertical-align: top;
    width: 100%;
}

ul.special-icons li:before {
    border-radius: 5px;
    display: block;
    font-size: 2em;
    left: 0;
    position: absolute;
    top: 2em;
}

ul.special-icons span {
    display: inline-block;
    font-size: 1.35em;
    left: -.5em;
    line-height: 190%;
    overflow: hidden;
    position: absolute;
    top: -.28em;
    width: 1.4em;
}

ul.special-icons h3 {
    font-size: 1.2em;
    margin-bottom: 1em;
}

ul.special-icons h3,ul.special-icons h3 a,ul.special-icons h3 a:visited {
    color: #1f1f1f;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
}

ul.special-icons p {
    margin: 0;
}

.button,input[type=button],input[type=reset],input[type=submit] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: 2px solid #26626c;
    border-radius: none;
    color: #26626c;
    cursor: pointer;
    display: inline-block;
    font-size: 1.4em;
    font-weight: 300;
    letter-spacing: 1px;
    padding: .9em 1.2em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-transition: all .35s ease-in-out;
    transition: all .35s ease-in-out;
}

.button:visited,input[type=button]:visited,input[type=reset]:visited,input[type=submit]:visited {
    color: #eee;
}

.button:active,.button:hover,input[type=button]:hover,input[type=reset]:hover,input[type=submit]:hover {
    background: #26626c;
    color: #eee;
}

.button.alt,input[type=button].alt,input[type=reset].alt,input[type=submit].alt {
    border-color: inherit;
    color: inherit;
}

.button.alt:hover,input[type=button].alt:hover,input[type=reset].alt:hover,input[type=submit].alt:hover {
    background: #eee;
    color: #26626c;
}

.button.fit,input[type=button].fit,input[type=reset].fit,input[type=submit].fit {
    width: 100%;
}

.button.button-secondary,.button.button-secondary:visited {
    border-color: #6f6f6f;
    color: #eee;
    opacity: .6;
}

.button.button-secondary:active,.button.button-secondary:hover {
    background: #eee;
    color: #222;
    opacity: 1;
}

code {
    border: 1px solid #1f1f1f;
    font-size: .9em;
    margin: 0 .25em;
    padding: .16em .65em;
}

code,pre {
    font-family: Courier New,monospace;
}

pre {
    -webkit-overflow-scrolling: touch;
    font-size: .9rem;
    margin: 0 0 2rem;
}

pre code {
    display: block;
    line-height: 1.75em;
    overflow-x: auto;
    padding: 1rem 1.5rem;
}

.small, .small * {
    font-size: 90% !important;
    line-height: 1.5em;
}

.left-border {
    border-left: 5px solid var(--accent);
    margin-left: -0.5em;
    padding-left: 0.5em;
}

/* -- SVG -- */

.safe-svg-cover svg {
    fill: none;
    stroke: currentColor;
}

/* -- TOP BAR -- */

.inside-top-bar {
    padding: 0 40px;
    & p + .safe-svg-cover {
        margin-left: 30px;
    }
    & svg {
        position: relative;
        top: 5px;
    }
}

/* -- HEADER -- */

.inside-header {
    padding: 13px 40px;
}

/* -- MAIN MENU -- */

#primary-menu {
    
    & ul ul {
        width: auto;
        & li {
            border-bottom: 1px solid #ddd;
            &:last-child {
                border-bottom: 0;
            }
        }
    }
    & ul li, ul.default li {
        padding-bottom: 0;
        padding-left: 0;
        list-style: none;
        width: auto;
    }
    & ul li a {
        text-decoration: none;
        text-transform: uppercase;
        font-size: 1em;
        font-weight: 400;
        letter-spacing: 2px;
        white-space: nowrap;
        display: inline-block;
    }
}

/* -- WIDGET -- */

.sidebar #block-12 {
    border: 3px solid var(--accent);
}

.tl-dr-button {
    display: block;
    margin-top: 1em;
}

.widget ul#menu-sidebar-cosa-facciamo li {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 0;
    &:last-child {
        border-bottom: 0;
    }

    & a {
        text-transform: uppercase;
        text-decoration: none;

        &[aria-current="page"] {
            color: var(--accent);
            font-weight: 400;
        }
    }
}


/* -- FORM -- */

.nf-field-element input, .nf-field-element select {
    max-height: 57px !important;
}

.nf-error.listimage-wrap .nf-field-element ul, .nf-error .ninja-forms-field {
    border: 2px solid #e80000 !important;
}

/* -- HOME -- */

#post-21 .inside-article {
    padding: 40px;
    padding-top: 30px;
}

.blocco-titolo-home {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent);
    color: #fff;
}

.blocco-titolo-home h2 {
        font-size: 2.5em;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-align: center;
}

.processo-home.is-layout-grid {
    gap: 2.5rem !important;
}

.processo-home .wp-block-media-text__content{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.processo-home .button.small {
    padding: 0.3em 0.9em !important;
}

.button.small a.wp-block-button__link:not(.has-background) {
    background: none;
    color: #26626c;
}

.button.small:hover a.wp-block-button__link:not(.has-background) {
    color: #fff;
}