@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
}

header {
    background: #007bff;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-family: 'Poppins', sans-serif;
}

nav {
    background-color: #343a40;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #495057;
}

.container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
}

.main-content {
    max-width: 800px;
    background-color: #f0f0f0;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin: 0 20px;
    color: #333;
}

.main-content h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 2.0em;
}

.intro-text {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-preview {
    display: block;
    text-align: center;
    background-color: #f0f0f0;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    max-width: 450px;
    margin: 0 auto;
}

.notizie-img {
    width: 100%;
    height: auto;
    max-width: 350px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

.article-preview h3 {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    color: #333;
    padding: 10px;
}

.calendar, .clock {
    background-color: #f0f0f0;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
}

.article-preview img {
    width: 100%;
    height: auto;
    max-width: 402.5px; /* 350px + 15% */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.home-article-preview {
    display: none;
    text-align: center;
    opacity: 0;
    position: relative;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.home-article-preview.visible {
    display: block;
    opacity: 1;
    transform: scale(1.05);
}

.home-article-preview h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
    font-size: 1.5em;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
}

.indicators {
    text-align: center;
    margin-top: 10px;
}

.indicators span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicators span.active {
    background-color: #007bff;
}

.additional-text {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center;
}
