/* =========================
   A3D57 - PROJECTS
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: #111;

    background: #fff;

    overflow-x: hidden;
}


/* =========================
   HEADER
   ========================= */

.top {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 22px 4%;

    border-bottom: 1px solid #e5e5e5;

    background: #fff;
}


/* LOGO / BRAND */

.brand {
    color: #111;

    font-size: 16px;

    font-weight: 500;

    letter-spacing: 1px;

    text-decoration: none;

    white-space: nowrap;
}


/* =========================
   NAVIGAZIONE
   ========================= */

.nav {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 24px;
}

.nav a {
    color: #111;

    font-size: 12px;

    font-weight: 400;

    letter-spacing: 1px;

    text-decoration: none;

    white-space: nowrap;
}

.nav a:hover {
    opacity: 0.55;
}


/* =========================
   CONTENITORE GENERALE
   ========================= */

.wrap {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 60px 30px 80px;
}


/* =========================
   HERO PORTFOLIO
   ========================= */

.hero {
    margin-bottom: 50px;
}

.eyebrow {
    margin-bottom: 12px;

    font-size: 11px;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    color: #777;
}

.hero h1 {
    margin: 0 0 14px;

    font-size: 38px;

    line-height: 1.15;

    font-weight: 400;

    letter-spacing: 0.3px;
}

.meta {
    margin: 0;

    font-size: 15px;

    line-height: 1.6;

    color: #666;
}


/* =========================
   GRIGLIA PORTFOLIO
   ========================= */

.grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;
}

.card {
    display: block;

    color: #111;

    text-decoration: none;
}

.card img {
    display: block;

    width: 100%;

    height: auto;

    margin-bottom: 16px;
}

.card h2 {
    margin: 0 0 8px;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 400;
}

.card p {
    margin: 0;

    font-size: 13px;

    line-height: 1.5;

    color: #666;
}

.card:hover {
    opacity: 0.85;
}


/* =========================
   PAGINA PROGETTO
   ========================= */

.project-page {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 60px 30px 80px;
}

.project-page h1 {
    margin: 0 0 12px;

    font-size: 38px;

    line-height: 1.2;

    font-weight: 400;

    letter-spacing: 0.3px;
}

.project-page > p:first-of-type {
    margin-top: 0;

    margin-bottom: 35px;

    font-size: 14px;

    line-height: 1.6;

    color: #666;
}


/* =========================
   IMMAGINI PROGETTO
   ========================= */

.project-page img,
.cover {
    display: block;

    width: 100%;

    max-width: 100%;

    height: auto;

    margin: 0 auto 30px;
}


/* =========================
   CONTENUTO TESTUALE
   ========================= */

.content {
    width: 100%;

    max-width: 900px;

    margin-top: 42px;

    font-size: 16px;

    line-height: 1.8;

    color: #444;
}

.content p {
    margin: 0 0 22px;

    text-align: left;
}

.content strong {
    font-weight: 600;

    color: #111;
}

.content em {
    font-style: italic;
}

.content ul {
    margin: 0 0 22px;

    padding-left: 20px;
}

.content li {
    margin-bottom: 6px;
}


/* =========================
   LINK NEL TESTO
   ========================= */

.content a {
    color: #111;

    text-decoration: underline;

    text-underline-offset: 2px;
}

.content a:hover {
    color: #244c40;
}


/* =========================
   CREDITI
   ========================= */

.credit {
    margin-top: 28px;

    font-size: 12px;

    line-height: 1.6;

    color: #666;
}


/* =========================
   RIFERIMENTI / FONTI
   ========================= */

.references {
    margin-top: 28px;

    font-size: 10px;

    line-height: 1.5;

    color: #777;
}

.references strong {
    font-size: 10px;

    font-weight: 500;

    color: #555;
}

.references em {
    font-size: 10px;
}

.references a {
    font-size: 10px;

    line-height: 1.5;

    color: #777;

    text-decoration: none;
}

.references a:hover {
    color: #111;

    text-decoration: underline;
}


/* =========================
   NOTA
   ========================= */

/*
   La classe .note NON crea più
   riquadri grigi.
*/

.note {
    margin: 0 0 22px;

    padding: 0;

    background: transparent;

    border: none;

    font-size: 16px;

    line-height: 1.8;

    color: #444;
}


/* =========================
   LINK TORNA INDIETRO
   ========================= */

.back {
    display: inline-block;

    margin-top: 35px;

    color: #111;

    font-size: 12px;

    letter-spacing: 0.7px;

    text-decoration: none;
}

.back:hover {
    text-decoration: underline;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    width: 100%;

    margin-top: 60px;

    padding: 30px 4%;

    border-top: 1px solid #ddd;

    font-size: 11px;

    line-height: 1.6;

    color: #777;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 950px) {

    .top {
        flex-direction: column;

        align-items: flex-start;

        gap: 16px;
    }

    .nav {
        justify-content: flex-start;

        flex-wrap: wrap;

        gap: 10px 18px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wrap,
    .project-page {
        padding: 50px 25px 70px;
    }

    .hero h1,
    .project-page h1 {
        font-size: 34px;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }


    /* HEADER */

    .top {
        padding: 18px 22px;

        flex-direction: column;

        align-items: flex-start;

        gap: 14px;
    }

    .brand {
        font-size: 15px;
    }

    .nav {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;
    }

    .nav a {
        width: 100%;

        padding: 7px 0;

        font-size: 11px;

        white-space: normal;
    }


    /* CONTENITORI */

    .wrap,
    .project-page {
        width: 100%;

        max-width: 100%;

        margin: 0;

        padding: 42px 22px 60px;
    }


    /* HERO */

    .hero {
        margin-bottom: 38px;
    }

    .hero h1,
    .project-page h1 {
        font-size: 30px;

        line-height: 1.2;
    }

    .meta {
        font-size: 14px;
    }


    /* GRIGLIA */

    .grid {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .card h2 {
        font-size: 18px;
    }


    /* IMMAGINI */

    .project-page img,
    .cover {
        width: 100%;

        max-width: 100%;

        height: auto;

        margin-bottom: 24px;
    }


    /* TESTI */

    .content {
        width: 100%;

        max-width: 100%;

        margin-top: 32px;

        font-size: 15px;

        line-height: 1.7;
    }

    .content p {
        margin-bottom: 20px;

        text-align: left;
    }


    /* CREDITI */

    .credit {
        font-size: 11px;

        line-height: 1.5;
    }


    /* RIFERIMENTI */

    .references {
        margin-top: 25px;

        font-size: 9px;

        line-height: 1.5;
    }

    .references strong,
    .references em,
    .references a {
        font-size: 9px;
    }


    /* NOTA */

    .note {
        padding: 0;

        border: none;

        background: transparent;

        font-size: 15px;

        line-height: 1.7;
    }


    /* FOOTER */

    .footer {
        margin-top: 45px;

        padding: 25px 22px;
