body {
    margin: 0;
    background-color: #faf7f2;
    color: #403a33;
    font-family: Georgia, "Times New Roman", serif;
}

/* ---------- MENU ---------- */

nav {
    background-color: #faf7f2;
    text-align: center;
    padding: 22px;
    border-bottom: 1px solid #ddd8cf;
}

nav a {
    color: #7b2d2d;
    text-decoration: none;
    margin: 0 18px;
    font-size: 1.05rem;
}

nav a:hover {
    text-decoration: underline;
}

/* ---------- HERO ---------- */

.hero {
    background-color: #a8b5a2;
        padding: 80px 0 200px 0;
}

.hero-image {
    width: 70%;
    max-width: 900px;
    margin: auto;
    position: relative;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.hero-text {
    position: absolute;
    left: 50%;
    bottom: -120px;
    transform: translateX(-50%);
    background-color: rgba(250,247,242,0.92);
    padding: 35px 60px;
    text-align: center;
    border-radius: 6px;
}

.hero-text h1 {
    margin: 0;
    font-size: 3.5rem;
    color: #7b2d2d;
    font-weight: normal;
}

.slogan {
    margin-top: 15px;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
}

.image-credit {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.8rem;
    color: white;
    background-color: rgba(0,0,0,0.45);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ---------- CONTENUTO ---------- */


.section h2 {
    color: #7b2d2d;
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 40px;
}

.section p {
    font-size: 1.15rem;
    line-height: 1.9;
}

/* ---------- LIBRI ---------- */

.books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.book-card {
    background-color: #fffdf9;
    border: 1px solid #e5ddd2;
    padding: 30px;
    border-radius: 8px;
}

.cover-placeholder {
    height: 340px;
    background-color: #c6d0c2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
}

.cover-placeholder img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.book-card h2 {
    color: #7b2d2d;
    font-weight: normal;
}

.book-card p {
    font-size: 1rem;
    line-height: 1.6;
}
.section {
    max-width: 850px;
    margin: 80px auto;
    padding: 0 30px;
    text-align: center;
}
/* ---------- AUTORI ---------- */

.authors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 60px;
}


.author-card {
    background-color: #fffdf9;
    border: 1px solid #e5ddd2;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}


.author-photo {
    height: 280px;
    background-color: #c6d0c2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b2d2d;
    margin-bottom: 25px;
    border-radius: 6px;
}


.author-card h2 {
    color: #7b2d2d;
    font-weight: normal;
}
/* ---------- FOOTER ---------- */

footer {
    margin-top: 100px;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #d8d3ca;
    background-color: #faf7f2;
    color: #6b665f;
    font-size: 0.95rem;
}

footer h3 {
    margin: 0 0 15px;
    color: #7b2d2d;
    font-weight: normal;
    font-size: 1.4rem;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #7b2d2d;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
