/* ===== RESET & FONT ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f7f7;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ===== HERO ===== */
.hero {
    height: 40vh;
    background: url("/blog_di_informatica/heroblog.avif") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 12px;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== MAIN ===== */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== BOOK INFO ===== */
.book-section .book-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.book-section img#copertina {
    border: 2px solid #ccc;
    border-radius: 6px;
}
.book-text {
    flex: 1;
}
.book-text p#riassunto {
    margin-bottom: 15px;
}

/* ===== PULSANTI ===== */
.buttons button {
    margin-right: 10px;
    margin-top: 5px;
    padding: 6px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}
.buttons button:hover {
    background-color: #ddd;
}

/* ===== NASCONDERE/EVIDENZIARE ===== */
.nascosto {
    display: none;
}
.evidenziato {
    background-color: #ffff99;
}

/* ===== FRASI ===== */
ul#frasi {
    margin-bottom: 15px;
}
ul#frasi li {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* ===== CONTROLLI ===== */
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* ===== MAPPA ===== */
#map {
    height: 400px;
    max-width: 100%;
    margin-bottom: 40px;
    border: 2px solid #555;
    border-radius: 10px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .book-section .book-info {
        flex-direction: column;
        align-items: center;
    }
    .book-text {
        width: 100%;
    }
}
