/* Reset dei margini e padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
main{
    flex-grow: 1;
    text-align: center;
}
/* Header */
header {
    background: url("/images/bg.avif") center;
    background-size: cover;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 5px solid #2c3e50;
}
header.article-header{
    background: #2c3e50;
}
header .logo,
header nav{
    background-color: rgba(44,62,80,0.8);
}
header .logo h1 a {
    color: white;
    text-decoration: none;
    font-size: 2.5rem;
}

header nav ul {
    list-style-type: none;
    padding: 10px 0;
}

header nav ul li {
    display: inline;
    margin-right: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ecf0f1;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.15);
    padding-bottom: 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.hero .cta-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero .cta-btn:hover {
    background-color: #2980b9;
}

/* Articles Section */
.articles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 40px 20px;
}

.article {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    min-width: 300px;
    width: 30%;
    max-width: 500px;
    flex-grow: 1;
    margin: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article:hover {
    transform: translateY(-10px);
}

.article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article h3 {
    padding: 20px;
    font-size: 1.5rem;
}

.article p {
    padding: 0 20px 20px;
    color: #555;
    flex-grow: 1;
}

.article a {
    display: block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    margin: 10px 20px;
}

.article a:hover {
    background-color: #2980b9;
}

.article-list {
    margin-top: 2rem;
    text-align: center;
}

.article-list h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
}

footer p {
    font-size: 1rem;
}

/* Stile specifico per la pagina articolo */
.article-page {
    margin: 2rem auto;
    max-width: 800px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Header articolo */
.single-article header {
    text-align: center;
    margin-bottom: 1rem;
}

.single-article h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
}

.article-meta span {
    font-weight: bold;
}

/* Immagine di copertina */
.article-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Contenuto dell'articolo */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content strong {
    color: #333;
}

.article-content blockquote {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid #46d5f1;
    background: #f9f9f9;
    color: #555;
    font-style: italic;
}

/* Footer dell'articolo */
.article-footer {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 2rem;
}

.article-footer p {
    font-size: 1rem;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.social-icons a {
    text-decoration: none;
    font-size: 1rem;
    color: #46d5f1;
    border: 1px solid #46d5f1;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: background 0.3s, color 0.3s;
}

.social-icons a:hover {
    background: #46d5f1;
    color: #fff;
}
figure img {
    display: block;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
    max-height: 400px;
}
.about-content{
    padding: 0 40px;
}
.team {
    margin-top: 50px;
}
.team h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
}
.team-member {
    display: inline-block;
    width: 30%;
    text-align: center;
    margin: 10px;
}
.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}
.team-member h3 {
    font-size: 1.5em;
    color: #333;
}
.team-member p {
    font-size: 1.1em;
    color: #666;
    margin-top: 5px;
}
#paginator {
    padding: 10px 0;
}
#paginator a{
    padding: 0 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}