/* ============================================
   STYLE_HOME.CSS - Homepage Il Mio Archivio Botanico
   Palette: #2d5a27 (scuro) #4a7c59 (medio) #8fbc8f (chiaro)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8faf8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   1. HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, #e8f4ea 0%, #d4e8d7 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: #2d5a27;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4a7c59;
    color: white;
}

.btn-primary:hover {
    background: #2d5a27;
}

.btn-secondary {
    background: transparent;
    color: #4a7c59;
    border: 2px solid #4a7c59;
}

.btn-secondary:hover {
    background: #4a7c59;
    color: white;
}

/* ============================================
   2. TRUST BAR - Numeri
   ============================================ */
.trust-bar {
    background: #2d5a27;
    padding: 25px 20px;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    text-align: center;
    color: white;
}

.trust-item strong {
    display: block;
    font-size: 1.8rem;
    color: #8fbc8f;
    font-weight: 700;
}

.trust-item span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ============================================
   3. ABOUT - Breve descrizione
   ============================================ */
.about {
    background: #f0f7f1;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   4. SEZIONI - Card navigazione
   ============================================ */
.sections {
    padding: 50px 20px;
    background: white;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.section-card {
    background: #f8faf8;
    border: 1px solid #e0e8e0;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.15);
    border-color: #4a7c59;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-card h3 {
    font-size: 1.1rem;
    color: #2d5a27;
    margin-bottom: 8px;
    font-weight: 600;
}

.section-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================
   5. ULTIMI CONTENUTI
   ============================================ */
.recent {
    padding: 50px 20px;
    background: #f8faf8;
}

.recent h2 {
    font-size: 1.4rem;
    color: #2d5a27;
    margin-bottom: 20px;
    font-weight: 600;
}

.articles-list {
    max-width: 700px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e0e8e0;
}

.article-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.article-item a:hover {
    color: #4a7c59;
}

.article-item a::before {
    content: "• ";
    color: #4a7c59;
    font-weight: bold;
}

.article-date {
    font-size: 0.85rem;
    color: #6f6f6f;
    white-space: nowrap;
    margin-left: 15px;
}

.article-date a {
    color: #333;
    text-decoration: none;
    font-size: 0.85rem !important;
    transition: color 0.2s;
}

.article-date a:hover {
    color: #4a7c59;
}

.article-date a::before {
    content: none !important;
    color: #4a7c59;
    font-weight: bold;
}

.view-all {
    display: inline-block;
    margin-top: 20px;
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* ============================================
   6. FOOTER
   ============================================ */
footer {
    background: #2d5a27;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

.footer-sub {
    margin-top: 8px;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .trust-items {
        gap: 15px;
    }
    
    .trust-item strong {
        font-size: 1.4rem;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .article-date {
        margin-left: 0;
    }
}
