body {
    background-color: #fdf0d5;
    color: #003049;
    margin: 0;
    padding: 0;
}

.section-divider {
    width: 100%;
    height: 3px;
    background-color: #003049;
}

.spacer-section {
    height: 5vh;
    background-color: #fdf0d5;
}

/* Stato vuoto */
.empty-state {
    padding: 100px 0;
}

.empty-content {
    text-align: center;
}

.empty-icon {
    margin-bottom: 30px;
}

.empty-icon i {
    font-size: 4rem;
    color: #669bbc;
}

.empty-content h3 {
    color: #003049;
    margin-bottom: 15px;
}

.empty-content p {
    color: #669bbc;
}

/* sezione iniziale */
.hero-section {
    width: 100vw;
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background-color: #fdf0d5;
    color: #003049;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #003049;
}

.hero-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #003049;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 2rem 1rem;
    }

    .hero-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 0.8rem;
    }

    .hero-section p {
        font-size: 0.4rem;
        line-height: 1.6;
    }
}

.archive-section {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    min-height: 60vh;
}

.archive-half.image {
    position: relative;
    width: 50%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-personaggi {
    background-image: url("/img/personaggi.png"); /* ← Sostituisci con il tuo percorso */
}

.image-autori {
    background-image: url("/img/autori.jpg"); /* ← Sostituisci con il tuo percorso */
}

.overlay {
    background-color: rgba(
        253,
        240,
        213,
        0.85
    ); /* colore del tuo tema con trasparenza */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.text-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #003049;
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #003049;
    line-height: 1.6;
}

.archive-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid #c1121f;
    background: transparent;
    font-weight: bold;
    text-decoration: none;
    color: #c1121f;
    transition: all 0.3s ease;
}

.archive-button:hover {
    background: #780000;
    border-color: #780000;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-half.image {
        width: 100%;
        height: 50vh;
    }
}

/* ===== Format Section ===== */
.format-authors-section {
    padding: 2rem 1rem;
    background-color: #fdf0d5;
}

.format-container {
    max-width: 1600px;
    margin: 0 auto;
}

.format-name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #003049;
    border-bottom: 2px solid #003049;
    padding-bottom: 0.3rem;
}

/* ===== Author Cards ===== */
.author-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.author-card {
    background-color: #fdf0d5;
    border: 1px solid #c1121f;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.author-card:hover {
    transform: translateY(-5px);
}

.author-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.author-card img {
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.author-card .card-title {
    font-size: 1.2rem;
    color: #003049;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.author-card p.text-muted {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.8rem;
}

/* ===== Button Styles ===== */
.author-card .btn {
    border-color: #c1121f;
    color: #c1121f;
    transition: all 0.3s ease;
    font-weight: 600;
}

.author-card .btn:hover {
    background-color: #780000;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .author-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .author-row {
        grid-template-columns: 1fr;
    }
}
