/*
Theme Name: OML Meteo
Theme URI: https://www.omlmeteo.it/
Author: OML Meteo
Description: Tema personalizzato per OML Meteo
Version: 1.0
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #89c3f1;
    color: #222222;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* CONTENITORE */

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

/* HEADER */

.site-header {
    width: 100%;
}

.site-header .container {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

.site-header img {
    display: block;
    width: 100%;
    height: auto;
}

/* MENU */

.site-navigation {
    width: 100%;
}

.site-navigation .container {
    display: flex;
    align-items: center;
    background: #02203a;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

.site-navigation ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation li {
    margin: 0;
}

.site-navigation a {
    display: block;
    padding: 12px 18px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.site-navigation a:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* CONTENUTO */

.site-main {
    width: 100%;
}

.site-main > .container {
    padding: 25px 20px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

/* ARTICOLI */

.post {
    padding: 15px 15px 25px 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #dddddd;
}

.post:nth-child(even) {
    background: rgba(137, 195, 241, 0.12);
}

.post-title {
    margin: 0 0 5px 0;
    font-family: 'Jersey 25', Arial, sans-serif;
    font-size: 32px;
    font-weight: normal;
    line-height: 1.1;
}

.post-title a {
    color: #02203a;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-meta {
    margin-bottom: 12px;
    color: #777777;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    font-size: 14px;
}

/* IMMAGINE IN EVIDENZA */

.post-thumbnail {
    margin: 15px 0 18px 0;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.post-preview {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.post-preview .post-thumbnail {
    margin: 0;
}

.post-preview .post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.post-preview-content {
    min-width: 0;
}

/* PAGINAZIONE ARTICOLI */

.navigation.pagination {
    margin-top: 30px;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 7px 11px;
    color: #02203a;
    background: #e8f4fd;
    text-decoration: none;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.navigation.pagination .page-numbers:hover {
    background: #cfe8fa;
}

.navigation.pagination .page-numbers.current {
    background: #02203a;
    color: #ffffff;
    font-weight: bold;
}

/* CONTENUTO ARTICOLO */

.post-excerpt {
    margin-bottom: 10px;
}

.post-content {
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
}

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

.read-more {
    color: #02203a;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* SIDEBAR */

.widget {
    margin-bottom: 25px;
}

.widget-title {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #02203a;
    color: #02203a;
    font-family: 'Jersey 25', Arial, sans-serif;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.1;
}

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

.widget li {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid #e5e5e5;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #02203a;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.widget a:hover {
    text-decoration: underline;
}

.categories-widget::before,
.recent-posts-widget::before {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #02203a;

    color: #02203a;
    font-family: 'Jersey 25', Arial, sans-serif;
    font-size: 24px;
    line-height: 1.1;
}

.categories-widget::before {
    content: "Categorie";
}

.recent-posts-widget::before {
    content: "Ultimi articoli";
}

/* SINGLE ARTICLE */
.single-post h1 { 
    position: relative;
    padding: 6px 8px;
    background: #00B4D8;
    background: -webkit-linear-gradient(to right, #00B4D8 0%, #0077B6 25%, #2F5EA1 50%);
    background: -moz-linear-gradient(to right, #00B4D8 0%, #0077B6 25%, #2F5EA1 50%);
    background: linear-gradient(to right, #00B4D8 0%, #0077B6 25%, #2F5EA1 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-left: 4px solid #00B4D8;
    border-radius: 6px;
    font-weight: 700;
}

.single-post .post-subtitle { 
    background:#F8F8FF;
    padding: 2px;

}

.single-post .post-meta {  margin-top: 7px; opacity:0.6; }

.post-info {
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}


.single-post .post-thumbnail img {
    width: 100%;
    height: 427px;
    margin: 0 auto;
    object-fit: contain;
}

.single-post .post-content .wp-block-group.is-layout-flex {
    align-items: flex-start;
}

.single-post .post-content .wp-block-group.is-layout-flex > .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* PAGINE */

.page-content .post-title {
    margin-bottom: 15px;
}

/* FOOTER */

.site-footer {
    width: 100%;
    margin: 0;
}

.site-footer .container {
    padding: 18px 20px;
    background: #02203a;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

.footer-navigation {
    margin-bottom: 12px;
    background-color: rgba(2, 58, 56,0.15);
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-navigation li {
    margin: 0;
}

.footer-navigation li:not(:last-child)::after {
    content: "•";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-navigation a {
    color:#ADFF2F;
    font-family: 'Jersey 25', Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.footer-navigation a:hover {
    text-decoration: underline;
}

.site-footer { text-shadow: 1px 1px 1px #000;}

.site-footer p {
    margin: 0;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.site-footer .footer-description {
    margin-top: 3px;
    font-size: 13px;
    opacity: 0.5;
}

/* MOBILE */

@media (max-width: 950px) {

    .post-preview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .single-post .post-thumbnail img {
        height: 100%;
    }

}

@media (max-width: 768px) {

    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-navigation ul {
        flex-wrap: wrap;
    }

    .site-navigation a {
        padding: 10px 12px;
    }
    
    .post-preview {
    grid-template-columns: 1fr;
    gap: 12px;
    }

}