/* Variabili di Colore e Tema (da landing.html) */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --art-color: #2980b9;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --nav-hover-bg: #7a9482;
}

/* Reset e Stili Generali */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: var(--text-color); 
    background-color: var(--bg-color); 
    padding-top: 50px; 
}

/* Navigazione */
.navbar { background-color: #1a252f; position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.nav-container { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; }
.nav-link, .dropbtn { display: inline-block; color: white; text-decoration: none; padding: 15px 25px; font-size: 1.1rem; border: none; background: none; cursor: pointer; font-family: inherit; transition: background-color 0.3s; }
.nav-link:hover, .dropdown:hover .dropbtn { background-color: var(--nav-hover-bg); }
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #f4f7f6; min-width: 220px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; overflow: hidden; }
.dropdown-content a { color: var(--primary-color); padding: 12px 16px; text-decoration: none; display: block; border-bottom: 1px solid #ddd; transition: background-color 0.2s; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #e0e6e2; color: var(--nav-hover-bg); }
.dropdown:hover .dropdown-content { display: block; }

/* Layout Base e Contenitori */
.container { max-width: 1000px; margin: 0 auto; padding: 20px; }
.wrapper { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }

/* Header e Hero Section */
header, .site-header { 
    background-color: var(--primary-color); 
    color: #fff; 
    padding: 3rem 1rem; 
    text-align: center;
    border-bottom: 5px solid var(--nav-hover-bg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header-content { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 30px; max-width: 800px; margin: 0 auto; }

/* Immagini Profilo / Autore */
.author-photo, .profile-img { 
    width: 160px; /* Uniformato a 160px o 180px */
    height: 160px; 
    border-radius: 50%; 
    border: 4px solid var(--accent-color); 
    object-fit: cover; 
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    transition: transform 0.3s ease;
}
.profile-img:hover { transform: scale(1.05); }

/* Tipografia Header */
.site-title, header h1, .page-title { font-size: 2.5rem; font-weight: bold; margin: 0 0 10px 0; letter-spacing: 1px; }
header p, .hero-description { font-size: 1.2rem; opacity: 0.9; margin-top: 10px; font-style: italic; color: #b0bec5; }
header a { color: #ecf0f1; text-decoration: none; font-weight: bold; }

/* Sezione Contenuti (Biografia, Articolo, Libri) */
.bio-section, .content-section { background: var(--card-bg); padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 30px;}
.bio-section { margin-top: -30px; }

/* Tipografia Titoli */
/*h1.article-title, h1.section-title { color: var(--primary-color); font-size: 2.2rem; line-height: 1.2; margin-bottom: 20px; }
h2, .section-title { color: var(--primary-color); border-bottom: 2px solid var(--nav-hover-bg); padding-bottom: 0.5rem; margin-top: 40px; margin-bottom: 20px; font-size: 1.6rem; }
.bio-text p, .book-presentation p, .section-content p { margin-bottom: 15px; text-align: justify; font-size: 1.05rem; }*/
       h1.article-title, h1.section-title { color: #2c3e50; font-size: 2.2rem; line-height: 1.2; margin-bottom: 20px; }
        h2, .section-title { color: #2c3e50; border-left: 5px solid #7a9482; border-bottom: 2px solid #7a9482; padding-left: 15px; margin-top: 40px; margin-bottom: 20px; font-size: 1.6rem; }
        .bio-text p { margin-bottom: 15px; text-align: justify; font-size: 1.05rem; }
/* Griglie e Card (Landing Page) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card-full { grid-column: 1 / -1; }
.card { background: var(--card-bg); border-radius: 8px; padding: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); }
.card h2 { color: var(--primary-color); border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; margin-top: 0; border-left: none; }
.card.art-card h2 { color: var(--art-color); border-bottom-color: var(--art-color); }
.card p { text-align: justify; }
.card ul { list-style-type: none; padding: 0; margin-top: 1rem; }
.card li { margin-bottom: 1.5rem; border-bottom: 1px dashed #eef2f5; padding-bottom: 1.5rem; }
.card li:last-child { border-bottom: none; padding-bottom: 0; }
.card a { color: var(--secondary-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.card a:hover { color: var(--accent-color); }
.card.art-card a:hover { color: var(--art-color); }

/* Art Grid Specific */
.art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.art-link-block { background: #fdfdfd; border: 1px solid #eef2f5; padding: 1rem; border-radius: 6px; }

/* Stili Originali (Articoli, Sottotitoli, ecc.) */
.subtitle { text-align: left; font-style: italic; color: var(--nav-hover-bg); font-size: 1.2rem; margin-bottom: 30px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.highlight-box { background-color: #f4f7f6; padding: 25px; border-radius: 5px; margin: 30px 0; font-style: italic; border-left: 4px solid var(--nav-hover-bg); font-size: 1.1rem; color: var(--primary-color); }
ul.feature-list { margin-bottom: 20px; padding-left: 20px; }
ul.feature-list li { margin-bottom: 10px; }

/* Sezione Libri Originale */
.books-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.category-card { background: var(--card-bg); padding: 25px; border-radius: 8px; border-left: 5px solid var(--nav-hover-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.2s; scroll-margin-top: 70px; }
.category-card:hover { transform: translateY(-5px); }
.category-card h3 { color: var(--nav-hover-bg); margin-bottom: 15px; }
.book-list { list-style: none; padding-left: 0; }
.book-list li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.book-list li:last-child { border-bottom: none; }
.book-title { font-weight: bold; color: var(--primary-color); display: block; }
.book-title a { color: var(--primary-color); text-decoration: none; }
.book-title a:hover { text-decoration: underline; color: var(--nav-hover-bg); }
.book-subtitle { font-size: 0.9rem; color: #7f8c8d; }
.pseudonym { font-size: 0.9rem; color: var(--accent-color); font-style: italic; display: block; margin-bottom: 10px; }

/* Bottoni, Link Speciali e Tag */
.cta-button { display: inline-block; background-color: var(--nav-hover-bg); color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 5px; transition: background-color 0.3s; margin-top: 15px; font-weight: bold; border: none; cursor: pointer; }
.cta-button:hover { background-color: #5c7362; }
.btn-author { display: inline-block; background-color: var(--accent-color); color: white !important; padding: 10px 20px; border-radius: 5px; font-weight: bold; margin: 10px 0 20px 0; text-align: center; transition: background-color 0.3s ease; }
.btn-author:hover { background-color: #d35400; }
.read-more-btn { display: inline-block; background-color: var(--primary-color); color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: bold; text-align: center; transition: background 0.3s; margin-top: 10px; }
.read-more-btn:hover { background-color: var(--nav-hover-bg); color: #fff; }
.btn-primary { background-color: var(--accent-color); color: white; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 20px; }
.btn-primary:hover { background-color: #d35400; }
.section-link { display: inline-block; margin-top: 10px; font-weight: bold; color: var(--accent-color) !important; text-decoration: underline !important; }
.section-link:hover { color: var(--primary-color) !important; }
.tag { display: inline-block; background-color: #ecf0f1; padding: 2px 8px; border-radius: 4px; font-size: 0.85rem; margin-top: 5px; color: #7f8c8d; }
        .article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
    
        .article-card { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-top: 5px solid #7a9482; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
        .article-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
        
        .article-card h2 { color: #2c3e50; font-size: 1.4rem; margin-bottom: 15px; border: none; padding: 0; margin-top: 0; line-height: 1.3; }
        .article-card p { flex-grow: 1; font-size: 1rem; color: #555; margin-bottom: 25px; text-align: justify; }
        /* Call To Action Interne */
        .internal-cta { text-align: center; margin: 40px 0; padding: 20px; border: 1px dashed #b0bec5; border-radius: 8px; background: #fafafa; }
        .internal-cta h3 { color: #7a9482; margin-bottom: 10px; }
        .internal-cta a { color: #2c3e50; font-weight: bold; text-decoration: none; }
        .internal-cta a:hover { text-decoration: underline; color: #e67e22; }
/* Footer */
footer, .site-footer { text-align: center; padding: 50px 20px; margin-top: 40px; background: var(--primary-color); color: #fff; }
.ad-container { text-align: center; margin: 2rem 0; }
        /* Struttura Pagina Indice Articoli */
        .intro-section { background: #fff; padding: 40px; margin-top: -30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 40px; text-align: center; }
        .intro-section h1 { color: #2c3e50; font-size: 2.2rem; margin-bottom: 15px; }
        .intro-section p { font-size: 1.1rem; color: #555; max-width: 800px; margin: 0 auto; }
