/*
Theme Name: Lovecraft child theme per lavoce.info.
Theme URI:  https://andersnoren.se/teman/lovecraft-wordpress-theme/
Description:  Tema di supporto per lavoce.info che rispecchi uno stile giornalistico di livello.
Author:  Emilio Dalla Torre
Textdomain:  emiliodallatorre
Author URI:  https://emiliodallatorre.it/
Template:  lovecraft
Version:  0.1
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html                 
*/

@import url('https://fonts.googleapis.com/css?family=Lato:400,700&subset=latin-ext');

:root {
    --accent: #A3D7D8;          /* Light turquoise */
    --secondary: #DCEDEC;        /* Very light turquoise */
    --background: #FFFFFF;       /* White */
    --primary: #E54215;           /* Strong orange-red */
    --accent-light: #FFA38A;     /* Light coral/orange */
}

/* Corregge l'altezza fra sito e titolo. */
.post-header + .post-content {
    margin-top: 16px;
}

/* Riduce globalmente le dimensioni del testo */
p {
    font-size: 15px;
}

div {
    font-size: 15px;
}

.post-content p {
    font-size: 16px;
    color: #5f5f5f;
}

.post-content div {
    font-size: 16px;
    color: #5f5f5f;
}

/* Diminuisce la massima altezza dell'immagine nell'header */
.header-image.bg-image {
    max-height: 400px;
}


.heateor_sss_horizontal_sharing {
    margin-bottom: 8px;
    background-color: #f9f9f9;
    max-width: fit-content;
    padding: 4px;
}

/* .entry-author.co-author {
    background-color: #f9f9f9 !important;
    padding: 16px;
    margin-bottom: 16px;
}

.author.vcard {
    margin-top: 0;
    margin-bottom: 16px;
} */

.entry-author.co-author {
    padding: 25px 16px;
    margin-bottom: 16px;
    border: 2px solid var(--primary);
}

.author.vcard {
    margin-top: 0;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.author-bio {
    padding: unset !important;
    margin: unset !important;
}

.credits.section.bg-dark {
    display: none;
}

div.il-punto-block div.post-content-custom p {
    /* padding: 32px;
    background-color: #f9f9f9; */
    line-height: 20px !important;
}

.wp-block-group__inner-container {
    padding: 32px !important;
}

.wp-block-latest-posts {
    margin: unset;
}

.post-74121 .post-inner {
    margin: unset !important;
    padding: 24px !important;
    width: 100%;
    min-width: fit-content;
}

.post-74121 h1 {
    padding: unset !important;
    margin: 16px !important;
}

.post-74121 .post-header {
    display: none;
}

.sidebar {
    background-color: #fff !important;
    /* color: #fff !important; */
    margin-top: -120px !important;
    padding: 16px !important;
    border: 1px solid #ddd;
}

.sidebar .widget-title {
    color: black;
}

.widget + .widget {
    border-top: 1px solid #ddd;
    margin-top: 16px !important;
    padding-top: 16px;
}

.alignnone {
    margin: unset !important;
}

.post-categories-in-block {
    background-color: #ccc;
    padding: 2px 5px 2px 5px;
    font-size: 8px;
    color: #777;
}

.post-tags.latest-posts-block {
    margin-top: 0 !important;
}

.post-tags.latest-posts-block a {
    font-size: 8px !important;
    line-height: 10px;
    padding-bottom: 5px;
}

.post-tags.latest-posts-block a::before {
    border: 10px solid transparent;
    left: -10px;
    border-left-width: 0;
    border-right-color: #ddd;
}

.blog-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.current-date-time {
    color: var(--accent);
    font-size: 11px;
}

.header-search-form {
    margin-left: auto;
}

.header-search-form form.search-form {
    display: flex !important;
}

.header-search-form button.search-button {
    margin-left: 8px;
}

.wp-block-image.size-large.podcast-logo {
    margin: 0;
}

.header.section.bg-white.small-padding {
    padding: 0;
}

/* Corregge le classi di allineamento al centro */
.alignwide, .alignfull {
    margin-left: unset;
    max-width: unset;
    width: unset;
}

/* Colore del pulsante di ricerca */
.search-button {
    background-color: var(--primary);
}

/* Colore dell'excerpt degli articoli correlati */
small {
    color: black;
}

/* Barra sotto il menu di navigazione in alto */
.navigation {
    border-bottom: 2px solid var(--accent);
}

/* Categorie nella sidebar */
li.cat-item a::before {
    content: '\f301';
    font: 16px/1 'Genericons';
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    color: #999;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

li.cat-item a {
    color: #111;
    text-decoration: unset;

}

li.cat-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.widget-content li:last-child {
    padding-bottom: 12px;
}

.empty-tab-bar {
    height: 110px;
}

html * {
    font-family: Lato, Helvetica, sans-serif;
}

.latest-posts-block + a {
    font-size: 20px !important;
    display: block !important;
    line-height: 22px !important;
    margin-bottom: 6px !important;
    text-decoration: unset;
    color: black !important;
}

.latest-posts-block + a:hover {
    color: #707070 !important;
}

a.il-punto-titolo {
    font-size: 28px !important;
    display: block !important;
    line-height: 22px !important;
    margin-bottom: 12px !important;
    text-decoration: unset;
    color: black !important;
}

a.il-punto-titolo:hover {
    color: #707070 !important;
}

/* Dimensione dei testi in home */
.wp-block-latest-posts__post-excerpt {
    font-size: 15px;
    line-height: 20px;
}

.wp-block-latest-posts__post-author {
    font-size: 12px !important;
}

.wp-block-latest-posts__post-date {
    font-size: 12px;
}

.menu-item {
    text-transform: uppercase;
    font-size: 12px;
}


/* Tasto "Continua a leggere" */
.blog-continue-reading {
    font-size: 10px;
    /* background-color: rgba(158, 208, 175, 0.1); */
    display: block;
    margin-top: 5px;
    /* text-align: right; */
    text-transform: uppercase;
    vertical-align: bottom;
    padding-right: 5px;
}

.wp-block-latest-posts.is-grid li {
    position: relative;
}

.wp-block-latest-posts__list li {
    height: 520px !important;
    margin-bottom: 32px !important;
}

.wp-block-latest-posts__list.latest-posts-no-excerpt li {
    height: 390px !important;
}

.wp-block-latest-posts__list {
    .wp-block-latest-posts__featured-image {
        margin-bottom: 16px;
        border-radius: 6px;
        overflow: hidden;
    }
}

a.wp-block-button__link.has-white-color.has-text-color.has-background {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
}

:root .has-background {
    background-color: var(--primary); /* Questa sospetto sia un'impostazione più "di sistema", ma quel verde in fin dei conti deve diventare uno dei colori principali... */
}

.il-punto-data {
    margin-top: 8px;
    margin-bottom: 12px;
    display: none;
}

.all-articles-button div a {
    position: unset !important;
}

.archive-header {
    background-color: var(--primary);
}

.author-image img {
    display: block;
    margin-bottom: unset !important;
    margin-right: 8px !important;
}

.editor {
    padding: 8px !important;
}

.editor .clear {
    padding-top: 8px;
}

.author-columns .wp-block-column {
    padding: 0 !important;
    /* margin-left: 0 !important; */
}

.archive-header {
    display: inline-block;
    /* Importante! */
    width: 100%;
}

.newsletter-form {
    margin: 16px 0;
}

.newsletter-form-buttons-wrapper {
    width: 100%;
}

.newsletter-form-buttons {
    /* display: inline-block; */
    float: right;
}

.newsletter-form-buttons + p {
    padding-top: 45px;
}

.newsletter-form-buttons input {
    margin-left: 8px;
}

#app-content.styles__appChildrenContainer___1gAYY {
    min-height: unset !important;
}

.wp-block-button__link.has-background {
    background-color: var(--primary);
}

.entry-author.co-author.editor {
    margin-bottom: 8px !important;
}

.entry-author.co-author.editor p {
    text-overflow: ellipsis;
    margin-bottom: unset;
}

.author-image img {
    max-width: 146px;
    max-height: 146px;
    width: auto;
    height: auto;
}

.archive-description p {
    text-align: left;
}

a:link {
    text-decoration: unset;
}

a:hover {
    text-decoration: underline;
}

.tablepress thead .sorting_asc,
.tablepress thead .sorting_desc,
.tablepress thead .sorting:hover {
    background-color: rgba(158, 208, 175, 0.7) !important;
}

.tablepress thead th, .tablepress tfoot th {
    background-color: rgba(158, 208, 175, 0.3) !important;
}

.related-box {
    background-color: rgba(158, 208, 175, 0.7) !important;
}

.related-box:hover {
    background-color: var(--primary) !important;
}

.related-box-button {
    background-color: rgba(158, 208, 175, 0.7) !important;
}

.subcategories-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    height: auto;
    background-color: var(--primary);
    color: white;
    list-style-type: none;
    margin: 0;
    padding-right: 16px;
    padding-left: 16px;
}

.subcategories-list li.cat-item a::before {
    content: unset;
}

.subcategories-list li.cat-item a {
    color: white;
    padding: 8px;
}

.post-content.entry-content ul {
    color: #5f5f5f;
}

/* width < 1000px */
@media only screen and (max-width: 1000px) {
    .header-search-form {
        display: none;
    }

    .current-date-time {
        display: none;
    }

    .sidebar {
        margin-top: 32px !important;
        width: unset !important;
    }
}

@media (min-width: 782px) {
    .author-columns .wp-block-column:not(:first-child) {
        margin-left: 8px;
    }
}

/* Lato mobile */
@media only screen and (max-width: 600px) {
    .author-bio img {
        display: block;
    }

    .archive-header img {
        display: block;
    }

    .author.vcard {
        text-align: center;
        display: block;
    }

    .header-search-form {
        display: none;
    }

    .current-date-time {
        display: none;
    }

    .wp-block-latest-posts li {
        margin-right: 0 !important;
    }

    .empty-tab-bar {
        height: 0;
    }

    .sidebar {
        border: none;
    }

    .editor .alignleft {
        margin-left: unset;
    }

    .subcategories-list {
        display: none;
    }
}

@media (min-width: 600px) {
    .sidebar {
        width: 31.2% !important;
    }

    .content {
        width: 66% !important;
    }
}

.g-recaptcha {
    margin: 1px;
    padding: 1px;
}