* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #f5f2ec;
    color: #1b1b1b;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(245, 242, 236, 0.92);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #696969;
    font-size: 0.85rem;

    transition: 0.2s;
}

nav a:hover {
    color: #101010;
}

.header-button {
    background: #101010;
    color: white;

    padding: 0.75rem 1.2rem;

    border-radius: 6px;

    font-size: 0.8rem;
}


/* HERO */

.hero {
    min-height: calc(100vh - 74px);

    display: flex;
    align-items: center;

    padding: 4rem 0 5rem;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(300px, 0.8fr)
        minmax(420px, 1.2fr);

    gap: 7rem;

    align-items: center;
}


/* BOOK */

.book-column {
    display: flex;
    justify-content: center;
}

.book-wrapper {
    position: relative;
}

.book-shadow {
    position: absolute;

    width: 75%;
    height: 45px;

    left: 15%;
    bottom: -25px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.28);

    filter: blur(25px);
}

.book-cover {
    width: 360px;
    height: auto;

    border-radius: 4px;
    overflow: hidden;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.25);
}

.book-cover-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

.book-cover-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}



.book-cover__top,
.book-cover__bottom {
    font-size: 0.65rem;

    letter-spacing: 0.18rem;

    text-transform: uppercase;
}

.book-cover__top {
    color: #d9bd91;
}

.book-cover__center h2 {
    font-family: "Playfair Display", serif;

    font-size: 4rem;

    line-height: 0.9;
}

.book-cover__center p {
    font-family: "Playfair Display", serif;

    font-style: italic;

    color: #cfcfcf;
}

.cover-line {
    width: 50px;
    height: 1px;

    margin: 1.5rem 0;

    background: #b28a52;
}


/* HERO CONTENT */

.category {
    display: inline-block;

    margin-bottom: 1.4rem;

    color: #b28a52;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12rem;

    text-transform: uppercase;
}

.hero-content h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(4rem, 7vw, 6.5rem);

    line-height: 0.9;

    margin-bottom: 1rem;
}

.hero-content > h2 {
    margin-bottom: 1.5rem;

    color: #696969;

    font-family: "Playfair Display", serif;

    font-size: 1.65rem;
}

.rating {
    display: flex;

    align-items: center;

    gap: 0.8rem;

    margin-bottom: 1.7rem;

    color: #696969;

    font-size: 0.85rem;
}

.stars {
    color: #b28a52;

    letter-spacing: 0.1rem;
}

.description {
    max-width: 650px;

    margin-bottom: 2rem;

    color: #696969;

    line-height: 1.8;
}


/* FORMATS */

.formats {
    max-width: 560px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;

    margin-bottom: 1.8rem;
}

.format-card {
    padding: 1.1rem 1.3rem;

    display: flex;

    flex-direction: column;

    background: white;

    border: 1px solid #dedbd4;

    border-radius: 10px;

    text-align: left;

    cursor: pointer;

    transition: 0.2s;
}

.format-card:hover {
    border-color: #b28a52;

    transform: translateY(-2px);
}

.format-card.active {
    border: 2px solid #b28a52;
}

.format-card span {
    color: #696969;

    font-size: 0.75rem;
}

.format-card strong {
    margin-top: 0.2rem;

    font-size: 1.2rem;
}


/* BUTTONS */

.actions {
    display: flex;

    gap: 1rem;

    margin-bottom: 2.3rem;
}

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0.95rem 1.45rem;

    border-radius: 7px;

    font-size: 0.85rem;
    font-weight: 600;

    transition: 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #b28a52;
    color: white;
}

.button-secondary {
    border: 1px solid #dedbd4;
}

.button-secondary:hover {
    background: white;
}

.button-dark {
    background: #101010;
    color: white;
}

.button-light {
    background: white;
    color: #101010;
}


/* INFO */

.small-info {
    max-width: 560px;

    display: flex;

    gap: 3rem;

    padding-top: 1.8rem;

    border-top: 1px solid #dedbd4;
}

.small-info div {
    display: flex;
    flex-direction: column;
}

.small-info span {
    color: #696969;

    font-size: 0.65rem;

    text-transform: uppercase;

    letter-spacing: 0.08rem;
}

.small-info strong {
    margin-top: 0.2rem;
}


/* STORY */

.story {
    padding: 8rem 0;

    background: #101010;
    color: white;
}

.story-grid {
    display: grid;

    grid-template-columns: 0.4fr 1.6fr;

    gap: 4rem;
}

.section-index {
    color: #d9bd91;

    font-size: 0.7rem;

    letter-spacing: 0.15rem;
}

.story-content {
    max-width: 800px;
}

.story-content h2 {
    margin-bottom: 2.5rem;

    font-family: "Playfair Display", serif;

    font-size: clamp(2.7rem, 5vw, 5rem);

    line-height: 1.05;
}

.story-content p {
    max-width: 680px;

    margin-bottom: 1.3rem;

    color: #aaaaaa;

    line-height: 1.9;
}


/* QUOTE */

.quote-section {
    padding: 8rem 0;

    background: #e7e0d4;
}

.quote-section blockquote {
    max-width: 950px;

    margin: auto;

    text-align: center;

    font-family: "Playfair Display", serif;

    font-size: clamp(2.2rem, 5vw, 4.7rem);

    line-height: 1.15;
}

.quote-section em {
    display: block;

    color: #b28a52;
}


/* DETAILS */

.details-section {
    padding: 8rem 0;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title span {
    color: #b28a52;

    font-size: 0.7rem;

    letter-spacing: 0.15rem;
}

.section-title h2 {
    margin-top: 0.5rem;

    font-family: "Playfair Display", serif;

    font-size: 3.5rem;
}

.detail-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #dedbd4;
    border-left: 1px solid #dedbd4;
}

.detail-box {
    min-height: 220px;

    padding: 2.5rem;

    background: rgba(255, 255, 255, 0.4);

    border-right: 1px solid #dedbd4;
    border-bottom: 1px solid #dedbd4;

    transition: 0.2s;
}

.detail-box:hover {
    background: white;

    transform: translateY(-3px);
}

.detail-box span {
    color: #b28a52;
}

.detail-box strong {
    display: block;

    margin-top: 3rem;

    font-family: "Playfair Display", serif;

    font-size: 2rem;
}

.detail-box p {
    color: #696969;

    font-size: 0.8rem;
}


/* BUY */

.buy-section {
    padding: 8rem 0;
}

.buy-heading {
    max-width: 700px;

    margin-bottom: 4rem;
}

.buy-heading span {
    color: #b28a52;

    font-size: 0.7rem;

    letter-spacing: 0.15rem;
}

.buy-heading h2 {
    margin-top: 0.8rem;

    font-family: "Playfair Display", serif;

    font-size: clamp(3rem, 5vw, 5rem);

    line-height: 1.05;
}

.product-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1.5rem;
}

.product-card {
    position: relative;

    min-height: 380px;

    padding: 2.7rem;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background: white;

    border: 1px solid #dedbd4;

    border-radius: 14px;

    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.08);
}

.product-card.featured {
    background: #b28a52;

    color: white;

    border-color: #b28a52;
}

.product-card h3 {
    margin-top: 1.2rem;

    font-family: "Playfair Display", serif;

    font-size: 2.8rem;
}

.product-card p {
    max-width: 430px;

    margin-top: 1rem;

    color: #696969;

    line-height: 1.7;
}

.product-card.featured p,
.product-card.featured .product-type {
    color: rgba(255, 255, 255, 0.75);
}

.product-type {
    color: #b28a52;

    font-size: 0.65rem;

    letter-spacing: 0.15rem;
}

.product-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

.product-bottom strong {
    font-family: "Playfair Display", serif;

    font-size: 2rem;
}

.recommended {
    position: absolute;

    top: 1.5rem;
    right: 1.5rem;

    font-size: 0.6rem;

    letter-spacing: 0.12rem;
}


/* FOOTER */

footer {
    padding: 3rem 0;

    background: #101010;

    color: white;
}

.footer-inner {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer-inner span {
    color: #888;

    font-size: 0.75rem;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 4rem;

        text-align: center;
    }

    .description,
    .formats,
    .small-info {
        margin-left: auto;
        margin-right: auto;
    }

    .actions,
    .small-info {
        justify-content: center;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .header-button {
        display: none;
    }

    .hero {
        min-height: auto;

        padding: 3rem 0 5rem;
    }

    .book-cover {
        width: 245px;
        height: 370px;

        padding: 1.7rem;
    }

    .book-cover__center h2 {
        font-size: 3rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .formats {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .small-info {
        gap: 1.5rem;

        flex-wrap: wrap;
    }

    .story,
    .details-section,
    .quote-section,
    .buy-section {
        padding: 5rem 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .product-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;

        gap: 1rem;
    }
}
/* =========================================
   EXCERPT PAGE
   ========================================= */

.excerpt-page {
    background: #faf8f3;
}

.excerpt-main {
    padding: 6rem 0 8rem;
}

.excerpt-container {
    width: min(760px, 88%);
    margin: 0 auto;

    background: #faf8f3;

    padding: 5rem 6rem;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.08);
}

.excerpt-header {
    text-align: center;

    margin-bottom: 3rem;
}

.excerpt-header h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(3.5rem, 8vw, 6rem);

    line-height: 0.95;

    margin-bottom: 1rem;
}

.excerpt-header h2 {
    font-family: "Playfair Display", serif;

    font-size: 1.4rem;

    font-weight: 500;

    color: #777;
}

.excerpt-author {
    margin-top: 1rem;

    color: #777;

    font-size: 0.9rem;
}

.excerpt-divider {
    width: 70px;
    height: 1px;

    margin: 4rem auto;

    background: #b28a52;
}

.excerpt-text {
    color: #282828;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 1.15rem;

    line-height: 1.95;
}

.excerpt-text h3 {
    font-size: 2rem;

    text-align: center;

    margin-bottom: 3rem;
}

.excerpt-text p {
    margin-bottom: 1.8rem;
}

.excerpt-text .first-paragraph::first-letter {
    float: left;

    font-size: 4.8rem;

    line-height: 0.75;

    padding-right: 0.7rem;

    padding-top: 0.35rem;

    color: #b28a52;
}

.excerpt-end {
    margin-top: 6rem;

    padding-top: 3rem;

    border-top: 1px solid #dedbd4;

    text-align: center;
}

.excerpt-end span {
    color: #b28a52;

    font-size: 0.7rem;

    letter-spacing: 0.15rem;

    text-transform: uppercase;
}

.excerpt-end h3 {
    margin: 1rem 0 2rem;

    font-family: "Playfair Display", serif;

    font-size: 2.3rem;
}


@media (max-width: 600px) {

    .excerpt-main {
        padding: 2rem 0 4rem;
    }

    .excerpt-container {
        width: 94%;

        padding: 3rem 1.8rem;
    }

    .excerpt-text {
        font-size: 1.05rem;
    }

    .excerpt-header h1 {
        font-size: 3.5rem;
    }
}
/* IMMAGINE FINALE ESTRATTO */

.excerpt-image {
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 4rem;

    overflow: hidden;
}

.excerpt-image img {
    display: block;

    width: 100%;
    height: 620px;

    object-fit: cover;

    transition: transform 0.8s ease;
}

.excerpt-image:hover img {
    transform: scale(1.03);
}


/* MOBILE */

@media (max-width: 600px) {

    .excerpt-image {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .excerpt-image img {
        height: 460px;
        width:  ;
    }
}