/* Sfondo body */
body {
    margin: 0;
    padding: 0;
}

.news-link {
    text-decoration: none;   /* toglie sottolineatura */
    color: inherit;          /* eredita il colore del testo */
    display: block;          /* rende il link a blocco */
  }
  
  .news-box {
    cursor: pointer;         /* cursore a mano */
  }

/* Contenitore principale */
.news-container {
    width: 500px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', Arial, sans-serif;
    color: #222;
}

/* Articolo singolo */
.news-body {
    padding: 12px;
    border-radius: 10px;  
    background-color: #fff;          
    border: 2px solid #ddd;          
    transition: transform 0.2s ease; 
    margin-bottom: 30px;
}

/* Effetto hover: la notizia "salta" leggermente */
.news-body:hover {
    transform: translateY(-5px);
}

/* Titolo principale in rilievo */
.news-body h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #37517e;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
    word-break: break-all;
}

.news-body:hover h1 {
    color: #47b2e4;           /* cambia colore del titolo quando si passa sul box */
    transition: color 0.3s ease; /* transizione morbida */
}



/* Contenitore sottotitolo e data */
.news-subtitle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Sottotitolo */
.news-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Sottotitolo */
.news-body h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin: 0;
}


/* Immagine principale */
.news-body img {
    max-width: 100%;
    height: 150px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ccc;
}

/* Paragrafo */
.news-body p {
    font-size: 1rem;
    color: #333;
    text-align: justify;
}

.top-site {
    text-align: center;       /* centra il link */
    margin-bottom: 30px;      /* spazio tra header e prime news */
    font-size: 3rem;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
}

.top-site a {
    text-decoration: none;
    color: #111;
}

.top-site hr {
    width: 200px;              /* lunghezza linea di separazione */
    margin: 10px auto 0;      /* centra la linea */
    border: 1px solid #ccc;   /* stile linea */
}

.news-subtitle-container span {
    font-size: 1.2rem;      /* stessa dimensione del sottotitolo */
    font-weight: 400;       /* stesso peso */
    color: #555;            /* stesso colore */
    line-height: 1.5;       /* stessa altezza riga */
}

