/* RESET */

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f7f7f7;

    color: #222;
}


/* HEADER */

.site-header {

    background: #ffffff;

    border-bottom: 1px solid #e5e5e5;

    position: sticky;

    top: 0;

    z-index: 10;

}


.header-inner {

    max-width: 1400px;

    margin: auto;

    padding: 16px 24px;

    display: flex;

    align-items: center;

    gap: 40px;

}


.logo {

    color: #222;

    text-decoration: none;

    font-size: 22px;

    font-weight: 600;

}


.main-nav {

    display: flex;

    gap: 25px;

    flex: 1;

}


.main-nav a {

    color: #555;

    text-decoration: none;

    font-size: 15px;

}


.main-nav a:hover {

    color: #000;

}


.search-button {

    border: none;

    background: transparent;

    font-size: 20px;

    cursor: pointer;

}


/* MAIN */

.site-main {

    max-width: 1400px;

    margin: auto;

    padding: 45px 24px 80px;

}


.page-header {

    margin-bottom: 45px;

}


.page-header h1 {

    margin: 0 0 10px;

    font-size: 34px;

    font-weight: 500;

}


.page-header p {

    margin: 0;

    color: #777;

}


/* SEZIONI */

.album-section {

    margin-bottom: 60px;

}


.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;

}


.section-header h2 {

    margin: 0;

    font-size: 23px;

    font-weight: 500;

}


.section-header a {

    color: #555;

    text-decoration: none;

    font-size: 14px;

}


/* GRIGLIA ALBUM */

.albums-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(400px, 1fr));

    gap: 25px;

}


/* CARD ALBUM */

.album-card {

    display: block;

    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;

    text-decoration: none;

    color: inherit;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.album-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 5px 18px rgba(0,0,0,0.15);

}


/* COPERTINA */

.album-cover {

    aspect-ratio: 4 / 3;

    background: #eaeaea;

    overflow: hidden;

}


.album-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


/* INFO */

.album-info {

    padding: 15px 16px 17px;

}


.album-info h3 {

    margin: 0 0 6px;

    font-size: 16px;

    font-weight: 500;

}


.album-info p {

    margin: 0;

    font-size: 13px;

    color: #888;

}


/* CATEGORIE */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 25px;

}


.category-card {

    position: relative;

    height: 180px;

    border-radius: 8px;

    overflow: hidden;

    text-decoration: none;

    color: white;

}


.category-image {

    position: absolute;

    inset: 0;

}


.category-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.category-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.7),
            transparent
        );

}


.category-title {

    position: absolute;

    z-index: 2;

    bottom: 18px;

    left: 20px;

    font-size: 20px;

    font-weight: 500;

}


/* FOOTER */

.site-footer {

    padding: 30px;

    text-align: center;

    color: #888;

    font-size: 13px;

    border-top: 1px solid #e5e5e5;

}


/* MOBILE */

@media (max-width: 700px) {


    .header-inner {

        padding: 14px 18px;

    }


    .main-nav {

        display: none;

    }


    .site-main {

        padding:
            30px 16px 60px;

    }


    .page-header h1 {

        font-size: 28px;

    }


    .albums-grid {

        grid-template-columns:
            repeat(1, 1fr);

        gap: 12px;

    }


    .album-info {

        padding: 11px;

    }


    .album-info h3 {

        font-size: 14px;

    }


    .category-grid {

        grid-template-columns: 1fr;

    }

}