/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Source Serif Pro', serif;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(41, 41, 41, 1);
    font-size: 20px;
    -webkit-font-smoothing: antialiased;
}

/* Header styles */
.blog-header {
    background-color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.header-content h1,
.header-content .site-title {
    font-family: 'Amatic SC', sans-serif;
    font-size: 5rem;
    letter-spacing: 0.07em;
    margin: 0;
    text-shadow: 7px 5px 7px rgba(0, 0, 0, 0.6);
}

.header-content .site-title {
    font-weight: bold;
}



.header-content .cook {
    color: #b87333;
    font-weight: 400;
}

.header-content .code {
    color: #606060;
    font-weight: 400;
}

.header-content .change {
    background: -webkit-linear-gradient(#606060, #b87333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

.header-content p {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Navigation styles */
.main-menu {
    background-color: #4a4a4a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #e0e0e0;
}

/* Layout */
.posts-layout {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Posts section */
.posts-section {
    width: 100%;
}

.wide-post h2, .column h2 {
    font-family: 'Amatic SC', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #333;
    letter-spacing: 0.05em;
}

.wide-post {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wide-post .article-content {
    font-size: 21px;
    line-height: 32px;
    letter-spacing: -0.003em;
    font-weight: 400;
    color: rgba(41, 41, 41, 1);
    margin-bottom: 2em;
    overflow: hidden;
}

/* Per l'immagine */
.wide-post .post-image {
    float: left;
    width: 40%;
    margin: 0 1.5em 1em 0;
    border-radius: 8px;
}

/* Per contenere i float */
.wide-post::after {
    content: '';
    display: table;
    clear: both;
}

.wide-post p, .column p {
    font-family: 'Source Serif Pro', serif;
    font-weight: 400;
    line-height: 32px;
    margin: 2em 0;
    color: rgba(41, 41, 41, 1);
    letter-spacing: -0.003em;
}

/* Immagini nei post più piccoli della homepage */
.column .post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
}

.columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.column {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.column img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Post images */
.post-image-container {
    width: 100%;
    margin: 1rem 0;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.wide-post .post-image {
    max-width: 100%;
    margin: 1rem 0;
}

/* Sidebar */
.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.references h2{
    flex: 1;
    font-family: 'Dancing Script';
    font-size: 1.5rem;
    background: rgb(250, 231, 189);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 60vh;
    overflow-y: auto;
}

.references li {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .posts-layout {
        grid-template-columns: 1fr;
    }

    .columns {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
    }

    .main-menu ul {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Utility classes */
.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px solid #333;
}

.read-more:hover {
    background-color: #f8f8f8;
}









.tagline {
    font-family: 'Source Serif Pro', serif;
    font-weight: 400;
    font-size: 18px;
    color: rgba(41, 41, 41, 0.9);
    line-height: 24px;
    letter-spacing: -0.003em;
}

.wide-post p a, .column p a {
    color: #1a8917;
    text-decoration: none;
    background-image: linear-gradient(transparent 0%, transparent calc(50% - 9px), rgba(26, 137, 23, 0.1) calc(50% - 9px), rgba(26, 137, 23, 0.1) 100%);
    background-size: 100% 200%;
    word-break: break-word;
    padding: 2px 0;
    transition: background-position 120ms ease-in-out 0s;
}

.wide-post p a:hover, .column p a:hover {
    background-position: 0px 100%;
}

@media (max-width: 576px) {
    .wide-post .post-image,
    .column .post-image,
    .post-content .post-image {
        max-height: 300px;  /* altezza ridotta per schermi molto piccoli */
    }
}

.footer {
    background: #4a4a4a;
    font-family: "Dancing Script", cursive;
    font-size: 30px;
    color: white;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
  
}

/* Per il dropcap */
.dropcap {
    float: left;
    font-size: 5em;
    line-height: 0.8;
    padding-right: 0.2em;
    font-family: 'Source Serif Pro', serif;
}

.intro-text {
    display: block;
}

.intro-text p {
    margin: 0;
    padding-top: 0.5em;
}

.intro-text p:first-child {
    padding-top: 0;
}

/* Stili per il dropdown menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    padding-right: 1.5rem !important;
}

.nav-dropdown .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 0.3em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #4a4a4a;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding-top: 10px;  /* Aggiunge spazio sopra il menu */
    margin-top: -10px;  /* Compensa il padding per mantenere la posizione */
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-content a {
    color: white;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    font-size: 1.1rem;
}

.nav-dropdown-content a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.nav-dropdown-content a:hover {
    background-color: #5a5a5a;
    padding-left: 1.5rem;
}

/* Freccia del dropdown */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #4a4a4a;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;  /* Crea un'area cliccabile tra il link e il dropdown */
    background: transparent;
}

/* =====================================================================
   Nuova struttura (2026): home, rubriche, schede articolo
   ===================================================================== */
:root {
    --copper: #b87333;
    --ink: #292929;
    --muted: #6b6b6b;
    --paper: #faf7f2;
    --cook: #b87333;
    --code: #4f6d7a;
    --change: #7a5c8a;
}

.main-menu a[aria-current="page"] {
    color: #f0c9a0;
}

.home, .list-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
}

.home > section {
    margin-top: 3rem;
}

.home-intro {
    max-width: 46rem;
    margin: 2.5rem auto 0;
    text-align: center;
    font-size: 1.25rem;
    color: var(--muted);
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid #e6e0d8;
    padding-bottom: 0.5rem;
    margin: 0 0 1.5rem;
}

/* Scheda articolo */
.post-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.07);
}

.post-card__cover {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--paper);
    overflow: hidden;
}

.post-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__meta {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

.rubric-label {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background: var(--cook);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
}

.wide-post p.post-card__meta {
    font-family: 'Nunito', sans-serif;
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

.wide-post p a.rubric-label {
    color: white;
    background-image: none;
}

.rubric-label--code { background: var(--code); }
.rubric-label--change,
.wide-post p a.rubric-label--change { background: var(--change); }
.wide-post p a.rubric-label--code { background: var(--code); }
.wide-post p a.rubric-label--cook { background: var(--cook); }

.post-card__title {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 0.6rem;
}

.post-card__title a {
    color: var(--ink);
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--copper);
}

.post-card__excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 1rem;
}

.post-card__more {
    margin-top: auto;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--copper);
    text-decoration: none;
}

/* Articolo in evidenza: immagine a sinistra, testo a destra */
.post-card--featured {
    flex-direction: row;
}

.post-card--featured .post-card__cover {
    flex: 0 0 52%;
    aspect-ratio: auto;
    min-height: 320px;
}

.post-card--featured .post-card__body {
    padding: 2rem 2.25rem;
    justify-content: center;
}

.post-card--featured .post-card__title {
    font-size: 2rem;
}

.post-card--featured .post-card__excerpt {
    font-size: 1.1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.see-all {
    text-align: right;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    margin: 1.5rem 0 0;
}

.see-all a {
    color: var(--copper);
    text-decoration: none;
}

/* Rubriche in home */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.rubric-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    background: var(--cook);
    transition: transform 0.2s ease;
}

.rubric-card:hover { transform: translateY(-2px); }
.rubric-card--code { background: var(--code); }
.rubric-card--change { background: var(--change); }

.rubric-card__name {
    font-family: 'Amatic SC', sans-serif;
    font-size: 3rem;
    line-height: 1;
}

.rubric-card__subtitle {
    font-size: 1.05rem;
    line-height: 1.4;
}

.rubric-card__count {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}

/* Progetti e vetrina chef */
.home-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

.home-bottom--single {
    grid-template-columns: 1fr;
}

.home-projects ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.home-projects li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.home-projects a {
    color: var(--copper);
    font-weight: 700;
    text-decoration: none;
}

.chef-card {
    position: relative;
    display: block;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    color: white;
    text-decoration: none;
}

.chef-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chef-card__text {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
}

.chef-card__kicker {
    font-family: 'Amatic SC', sans-serif;
    font-size: 2.4rem;
    line-height: 1;
}

.chef-card__title {
    font-size: 1.1rem;
}

/* Intestazione delle pagine elenco (rubriche, archivio) */
.list-header {
    max-width: 46rem;
    margin: 2.5rem auto 2.5rem;
    text-align: center;
}

.list-header__title {
    font-family: 'Amatic SC', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin: 0;
    color: var(--ink);
}

.list-header--cook .list-header__title { color: var(--cook); }
.list-header--code .list-header__title { color: var(--code); }
.list-header--change .list-header__title { color: var(--change); }

.list-header__subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--muted);
    margin: 0.25rem 0 1rem;
}

.list-header__intro {
    color: #4a4a4a;
}

.list-header__link a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--copper);
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    font-family: 'Nunito', sans-serif;
}

.pagination a {
    color: var(--copper);
    font-weight: 700;
    text-decoration: none;
}

/* Pagina articolo */
.article__header h1 {
    font-family: 'Source Serif Pro', serif;
    font-size: 2.6rem;
    line-height: 1.2;
    margin: 0.25rem 0 1.5rem;
    color: var(--ink);
}

.related-posts__title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.related-posts__title a {
    color: var(--copper);
    text-decoration: none;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-family: 'Nunito', sans-serif;
}

.article-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

.article-nav a span {
    display: block;
    font-size: 0.8rem;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.article-nav__next {
    text-align: right;
}

.article .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 800px) {
    .post-card--featured { flex-direction: column; }
    .post-card--featured .post-card__cover { min-height: 220px; }
    .post-card--featured .post-card__title { font-size: 1.6rem; }
    .rubric-grid, .home-bottom { grid-template-columns: 1fr; }
    .header-content h1, .header-content .site-title { font-size: 3.2rem; }
    .main-menu ul { gap: 0.25rem; flex-wrap: wrap; }
    .main-menu a { font-size: 1rem; padding: 0.4rem 0.6rem; }
    .list-header__title { font-size: 3rem; }
    .article__header h1 { font-size: 1.9rem; }
}
