:root {
    --primary-color: #4a7c59;
    --secondary-color: #7ba05b;
    --accent-color: #f4f7f4;
    --text-color: #2c3e50;
    --border-color: #e8ede8;
    --shadow-color: rgba(74, 124, 89, 0.1);
}

* {
    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-color: #f8f9fa;
}

header {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu nel body */
.nav-menu {
    display: flex;
    gap: 0rem;
    margin: 0.1rem 0;
    justify-content: left;
}

.nav-menu a {
    color: white;
    text-decoration: none;
	background: #2d5a27;
    padding: 0.40rem 1rem;
    border-radius: 0px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: #1a3319;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

/* Freccia ritorno al top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2d5a27;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 124, 89, 0.4);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #4a7c59;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 0.5rem;
}


/* Descrizione */
.section-title {
    text-align: center;
    color: #2d5a27;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.intro-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.articles-intro {
    flex: 1;
    text-align: justify;
}
/*
.articles-intro h2 {
    color: #2d5a27;
    font-size: 2rem;
    margin-bottom: 1rem;
}
*/

/* Sezioni articoli */
.articles-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
    margin-left: 5rem;
    margin-left: 5rem;
}

.articles-section .bot-section {
  background: darkgreen;
  width: 150px;
  line-height: 30px;
  height: 30px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  text-decoration: none;
}

.articles-section .bot-section:hover {
  background: green;
  color: black;
}


.articles-list {
    margin: 3rem 0;
}

.article-list-item {
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-list-image {
    flex-shrink: 0;
    width: 285px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.article-list-title {
    font-size: 1.5rem;
    color: #2d5a27;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.article-list-title a {
    color: inherit;
    text-decoration: none;
}

.article-list-title a:hover {
    color: #4a7c59;
}

.article-list-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.article-list-category {
   color: #888;
   text-decoration: none;
}

.article-list-category:hover {
    color: #2d5a27 !important;
    text-decoration: underline dotted #2d5a27 !important;
}

.article-list-date {
    color: #888;
}

.article-list-abstract {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #2d5a27;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: #4a7c59;
    color: white;
}

.pagination .current {
    background: #2d5a27;
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}


@media (max-width: 768px) {
    .article-list-item {
        flex-direction: column;
    }

    .article-list-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 900px) {
    .intro-wrapper {
        flex-direction: column;
        align-items: center;
    }
}    