/*
Theme Name: Orto Intelligente
Theme URI: https://ortointelligente.it/
Description: Tema sviluppato su misura per il sito ortointelligente.it
Author: Gioele Pannetto & Matteo Orlandi
Author URI: https://pangio.it/
Version: 1.0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100;300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: rgb(13 127 63);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.navbar-desktop {
    display: none;
}

.navbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    width: 5rem;
}

.navbar-site-logo {
    margin-left: 1rem;
    padding-left: 1rem;
    border: 1px #e5e7eb;
    border-style: none none none solid;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2rem;
}

.navbar-site-logo a {
    text-decoration: none;
    color: #000;
}

.navbar-sc {
    width: 10rem;
}

.navbar-content {
    background-color: var(--bg-primary);
    padding: .75rem 0;
    color: #fff;
}

.navbar-links {
    margin: 0 auto;
    display: flex;
}

.navbar-links > a {
    margin-left: 4rem;
    color: #fff;
    text-decoration: none;
}

.navbar-links > a:first-child {
    margin-left: 0 !important;
}

.navbar-mobile {
    background-color: var(--bg-primary);
    color: #fff;
}

.navbar-mobile a {
    color: #fff;
}

.navbar-mobile-logo {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5rem;
}

.navbar-m-content {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-m-content a {
    text-decoration: none;
}

.navbar-m-menu-btn {
    width: 2rem;
}

.navbar-m-links {
    position: absolute;
    background-color: var(--bg-primary);
    width: 100vw;
    display: none;
    padding: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.navbar-m-links-visible {
    display: grid;
    z-index: 50;
}

.navbar-m-links a {
    color: #fff;
    text-decoration: none;
}

.text-justified p {
    text-align: justify;
    text-justify: inter-word;
}

.footer {
    background-color: var(--bg-primary);
    color: #fff;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    margin-top: 5rem;
    border: 8px #f27931;
    border-style: solid none none none;
}

.footer a {
    color: #fff;
}

.footer-grid {
    flex-direction: column;
    display: flex;
    text-align: center;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1.5rem;
}

.footer-section-title {
    display: block;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.9rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-desc {
    font-size: 0.8rem;
    display: block;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links span {
    font-weight: 600;
    margin-bottom: .5rem;
    font-size: 1.125rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-credits {
    font-size: 0.8rem;
    display: block;
    text-align: center;
    margin-top: 1.5rem;
}

.footer-sponsor-logo {
    width: 10rem;
}

.post-container {
    margin: 0 auto;
    padding: 0 .5rem;
}

.container {
    width: 100vw;
}

.post-list {
    margin-top: 3rem;
}

.post-list-item {
    display: block;
}

.post-list-image {
    width: 100%;
    object-fit: cover;
}

.post-hero {
    width: 100%;
    min-height: 20rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #fff;
    position: relative;
    margin-bottom: 2rem;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .6);
    padding: 4rem 0;
}

.post-hero h1 {
    margin-top: 0;
    text-align: center;
}

@media (min-width:640px) {
    .container {
        max-width: 640px
    }
}

@media (min-width:768px) {
    .container {
        max-width: 768px
    }
}

@media (min-width:1024px) {
    .navbar-desktop {
        display: block;
    }

    .navbar-mobile {
        display: none;
    }

    .container {
        max-width: 1024px
    }

    .post-list-item {
        display: flex;
    }

    .post-list-image {
        width: 18rem;
        height: 10rem;
        margin-right: 1rem;
    }
    
    .footer-grid {
        display: grid;
        text-align: left;
        gap: 5rem;
    }
}

@media (min-width:1280px) {
    .container {
        max-width: 1280px
    }
}

@media (min-width:1536px) {
    .container {
        max-width: 1536px
    }
}

@media (max-width: 781px) {
    .home-title-1 {
        text-align: center;
    }

    .home-section-2 {
        flex-direction: column-reverse;
    }

    .home-section-2 p {
        text-align: left;
    }

    .home-title-2 {
        text-align: center;
    }
} 