/* ============================================================
   news.css — sistema News per CYBER ONIONS
   Palette allineata a css/main.css: fondo #000, testo #757575,
   accenti #0087cc / #006A80, titoli Montserrat, testi Lora.
   ============================================================ */

/* ---------- Area news ---------- */
.s-news {
    padding: 9rem 0;
    background-color: #000;
    color: #757575;
    position: relative;
}

.s-news__header {
    text-align: center;
    position: relative;
    margin-bottom: 4.8rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2.1rem;
}

.s-news__header::before {
    content: "";
    display: inline-block;
    height: 1px;
    width: 550px;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.s-news .subhead {
    color: #0087cc;
}

/* ---------- Filtro categorie ---------- */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto 4.2rem;
    max-width: 900px;
    font-family: montserrat-medium, sans-serif;
}

.news-filter {
    display: inline-block;
    font-size: 1.3rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: #959595;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.4rem;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

.news-filter:hover,
.news-filter:focus {
    color: #fff;
    border-color: #006A80;
    background-color: rgba(0, 106, 128, 0.25);
}

.news-filter.is-active {
    color: #000;
    background-color: #0087cc;
    border-color: #0087cc;
}

.news-filter__count {
    opacity: 0.6;
    margin-left: 0.4rem;
}

/* ---------- Griglia box ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    width: 94%;
    max-width: 1200px;
    margin: 0 auto;
}

@media only screen and (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Il box: bordo grigio chiaro ---------- */
.news-box {
    display: flex;
    flex-direction: column;
    background-color: #0c0c0c;
    border: 1px solid #d6d6d6;          /* bordo grigio chiaro */
    padding: 3.2rem 2.8rem 2.8rem;
    height: 100%;
    position: relative;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out,
        transform 0.3s ease-in-out;
}

.news-box:hover,
.news-box:focus-within {
    border-color: #0087cc;
    background-color: #111;
    transform: translateY(-3px);
}

/* Filetto d'accento in alto al passaggio del mouse */
.news-box::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background-color: #006A80;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease-in-out;
}

.news-box:hover::before,
.news-box:focus-within::before {
    transform: scaleX(1);
}

/* ---------- Meta ---------- */
.news-box__meta {
    font-family: montserrat-semibold, sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    color: #757575;
    margin-bottom: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    align-items: center;
}

.news-box__date {
    color: #959595;
}

.news-box__dot::before {
    content: "\2022";
    color: #006A80;
    margin-right: 1.2rem;
}

/* ---------- Titolo: h1 bold ---------- */
.news-box__title {
    font-family: montserrat-bold, sans-serif;
    font-size: 2.2rem;
    line-height: 1.32;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.8rem;
}

.news-box__title a {
    color: #fff;
    display: inline-block;
}

.news-box__title a:hover,
.news-box__title a:focus {
    color: #0087cc;
}

/* ---------- Estratto ---------- */
.news-box__excerpt {
    font-family: lora-regular, serif;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #b8b8b8;
    margin: 0 0 2.4rem;
    flex: 1 1 auto;
}

/* ---------- Categorie ---------- */
.news-box__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.4rem;
}

.news-cat {
    font-family: montserrat-semibold, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: #c9c9c9;
    border: 1px solid #828282;          /* grigio chiaro */
    padding: 0.45rem 0.9rem;
    transition: all 0.3s ease-in-out;
}

a.news-cat:hover,
a.news-cat:focus {
    color: #000;
    background-color: #c8e675;
    border-color: #c8e675;
}

.news-cat--active {
    color: #000;
    background-color: #c8e675;
    border-color: #c8e675;
}

/* ---------- Link "leggi" ---------- */
.news-box__more {
    font-family: montserrat-bold, sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: #0087cc;
    align-self: flex-start;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease-in-out;
}

.news-box__more:hover,
.news-box__more:focus {
    color: #c8e675;
    border-bottom-color: #c8e675;
}

/* ---------- Persone: due card chiare sul fondo azzurro ---------- */
.about-team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
    max-width: 900px;
    margin: 0 auto 5.4rem;
}

.about-team__person {
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 2.4rem 2.2rem;
    text-align: left;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.about-team__person:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.about-team__icon {
    flex-shrink: 0;
    width: 4.2rem;
    height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.6rem;
}

.about-team__name {
    font-family: montserrat-bold, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.33;
    color: #fff;
    margin: 0 0 0.6rem;
}

.about-team__role {
    font-family: lora-regular, serif;
    font-size: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.2rem;
}

.about-team__mail {
    font-family: montserrat-semibold, sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.about-team__mail .fa {
    margin-right: 0.4rem;
}

.about-team__mail:hover,
.about-team__mail:focus {
    color: #c8e675;
    border-bottom-color: #c8e675;
}

@media only screen and (max-width: 800px) {
    .about-team {
        grid-template-columns: 1fr;
    }
}

/* ---------- Aree di attività: box stile news ---------- */
.about-areas {
    max-width: 1000px;
    margin: 5.4rem auto 0;
    text-align: center;
}

.about-areas__title {
    font-family: montserrat-semibold, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 3rem;
}

.about-areas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

@media only screen and (max-width: 900px) {
    .about-areas__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .about-areas__grid {
        grid-template-columns: 1fr;
    }
}

/* Stesso bordo grigio chiaro dei box news, ma chiaro per stare sul fondo
   azzurro della sezione about */
.about-areas__box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #d6d6d6;
    padding: 2.2rem 2rem;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.about-areas__box:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.about-areas__box-title {
    font-family: montserrat-bold, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.33;
    color: #fff;
    margin: 0 0 0.9rem;
}

.about-areas__box-text {
    font-family: lora-regular, serif;
    font-size: 1.45rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.about-areas__more {
    display: inline-block;
    margin-top: 3rem;
    font-family: montserrat-bold, sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.about-areas__more:hover,
.about-areas__more:focus {
    color: #c8e675;
    border-bottom-color: #c8e675;
}

/* ---------- Contatori: spazio sopra le aree ---------- */
.about-team + .about-stats {
    margin-top: 0;
}

/* ---------- Riepilogo "Chi siamo" in home ---------- */
.about-summary {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4.2rem;
}

.about-summary__text {
    font-family: lora-regular, serif;
    font-size: 2rem;
    line-height: 1.75;
    color: #fff;
    margin: 0 0 2.4rem;
}

.about-summary__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-summary__tags .news-cat {
    font-family: montserrat-semibold, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.45rem 0.9rem;
}

@media only screen and (max-width: 600px) {
    .about-summary__text {
        font-size: 1.7rem;
    }
}

/* "Leggi tutto": il blu dei link (#0087cc) sparisce sul fondo azzurro della
   sezione about, quindi qui va in bianco con sottolineatura. */
.about-summary .news-box__more {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.about-summary .news-box__more:hover,
.about-summary .news-box__more:focus {
    color: #c8e675;
    border-bottom-color: #c8e675;
}

/* ---------- Box featured ---------- */
.news-box--featured {
    grid-column: span 2;
    border-color: #e1e1e1;
}

.news-box--featured .news-box__title {
    font-size: 2.9rem;
}

.news-box--featured .news-box__excerpt {
    font-size: 1.75rem;
}

@media only screen and (max-width: 900px) {
    .news-box--featured {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 600px) {
    .news-box--featured {
        grid-column: span 1;
    }

    .news-box--featured .news-box__title {
        font-size: 2.2rem;
    }
}

/* ============================================================
   Pagina articolo
   ============================================================ */
.s-article {
    padding: 9rem 0 6rem;
    background-color: #000;
    color: #757575;
}

.s-article__header {
    max-width: 880px;
    margin: 0 auto 4.2rem;
    text-align: center;
}

.s-article__title {
    font-family: montserrat-bold, sans-serif;
    font-size: 4.4rem;
    line-height: 1.22;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2.4rem;
}

@media only screen and (max-width: 800px) {
    .s-article__title {
        font-size: 3rem;
    }
}

@media only screen and (max-width: 500px) {
    .s-article__title {
        font-size: 2.3rem;
    }
}

.s-article__body {
    max-width: 780px;
    margin: 0 auto;
    font-family: lora-regular, serif;
    font-size: 1.75rem;
    line-height: 1.85;
    color: #b8b8b8;
}

.s-article__body h2,
.s-article__body h3 {
    font-family: montserrat-bold, sans-serif;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 4.2rem 0 1.8rem;
}

.s-article__body h2 {
    font-size: 2.4rem;
}

.s-article__body h3 {
    font-size: 2rem;
}

.s-article__body p {
    margin: 0 0 2.1rem;
}

.s-article__body strong {
    color: #fff;
    font-weight: 700;
}

.s-article__body em {
    font-style: italic;
}

.s-article__body a {
    color: #0087cc;
    border-bottom: 1px solid rgba(0, 135, 204, 0.4);
}

.s-article__body a:hover,
.s-article__body a:focus {
    color: #c8e675;
    border-bottom-color: #c8e675;
}

.s-article__body ul,
.s-article__body ol {
    margin: 0 0 2.4rem;
    padding-left: 2.4rem;
    list-style: disc;
}

.s-article__body ol {
    list-style: decimal;
}

.s-article__body li {
    margin-bottom: 0.9rem;
}

.s-article__body li p {
    margin: 0;
}

.s-article__body blockquote {
    border-left: 3px solid #006A80;
    padding: 0.6rem 0 0.6rem 2.4rem;
    margin: 0 0 2.4rem;
    font-style: italic;
    color: #d6d6d6;
}

.s-article__body blockquote p {
    margin: 0;
}

.s-article__body pre {
    background-color: #0c0c0c;
    border: 1px solid #d6d6d6;
    padding: 2rem;
    overflow-x: auto;
    font-size: 1.45rem;
    line-height: 1.6;
    margin: 0 0 2.4rem;
}

.s-article__body code {
    font-family: monospace, monospace;
    background-color: #151515;
    color: #c8e675;
    padding: 0.15rem 0.5rem;
    font-size: 0.88em;
}

.s-article__body pre code {
    background: none;
    color: #d7ecfb;
    padding: 0;
    font-size: inherit;
}

.s-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2.4rem;
    font-size: 1.55rem;
}

.s-article__body th,
.s-article__body td {
    border: 1px solid #d6d6d6;
    padding: 0.9rem 1.2rem;
    text-align: left;
}

.s-article__body th {
    background-color: #111;
    color: #fff;
    font-family: montserrat-semibold, sans-serif;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.1rem;
}

.s-article__body hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3.6rem 0;
}

.s-article__body img {
    max-width: 100%;
    height: auto;
    border: 1px solid #d6d6d6;
}

/* ---------- Indice e correlati ---------- */
.article-aside {
    max-width: 780px;
    margin: 4.8rem auto 0;
    padding-top: 3.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-aside h2 {
    font-family: montserrat-bold, sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 2.4rem;
}

.article-aside ul {
    list-style: none;
    padding: 0;
    margin: 0 0 4.2rem;
}

.article-aside li {
    margin-bottom: 1.2rem;
}

.article-aside a {
    font-family: lora-regular, serif;
    font-size: 1.6rem;
    color: #b8b8b8;
}

.article-aside a:hover {
    color: #c8e675;
}

/* ---------- Footer: sezione a sé, con riga grigio chiaro ----------
   Gli stili di base del footer (testo, copyright, go-top) stanno in main.css.
   Qui solo ciò che serve al layout a "sezione" e al blocco CO₂. */
footer .row {
    max-width: 980px;
}

/* Blocco CO₂: staccato dal copyright da una riga leggera */
.footer-co2 {
    margin-top: 3.6rem;
    padding-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
}

.footer-co2 strong {
    color: #c8e675;
}

.co2_mess {
    max-width: 620px;
    margin: 0.6rem auto 0;
    font-size: 1.35rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.3);
}

/* ---------- Navigazione a frecce con "pag. NN" ---------- */
.news-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    margin-top: 4.2rem;
}

/* Frecce quadrate, bordo grigio chiaro come i box */
.news-nav__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.4rem;
    height: 5.4rem;
    border: 1px solid #d6d6d6;
    color: #fff;
    font-family: montserrat-light, sans-serif;
    font-size: 3.4rem;
    line-height: 1;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
}

.news-nav__arrow:hover,
.news-nav__arrow:focus {
    background-color: #0087cc;
    border-color: #0087cc;
    color: #000;
}

.news-nav__arrow.is-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* "pag. 01" — numero grande, ben leggibile */
.news-nav__page {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-family: montserrat-bold, sans-serif;
    color: #fff;
    user-select: none;
}

.news-nav__label {
    font-family: montserrat-semibold, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #757575;
}

.news-nav__num {
    font-size: 3.6rem;
    line-height: 1;
    color: #fff;
    min-width: 2.2ch;
    text-align: left;
}

/* ---------- Stato vuoto ---------- */
.news-empty {
    text-align: center;
    color: #959595;
    font-family: lora-regular, serif;
    font-size: 1.7rem;
    border: 1px solid #d6d6d6;
    padding: 4.2rem 2rem;
}

/* ---------- Paginazione ---------- */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 4.2rem;
}

.news-pagination a,
.news-pagination span {
    font-family: montserrat-semibold, sans-serif;
    font-size: 1.4rem;
    min-width: 4.2rem;
    text-align: center;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #959595;
}

.news-pagination a:hover {
    color: #fff;
    border-color: #006A80;
}

.news-pagination .is-current {
    color: #000;
    background-color: #0087cc;
    border-color: #0087cc;
}
