* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    padding: 20px;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.nav-button {
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1.5em;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-button:hover {
    background: #555;
}

.nav-button:active {
    background: #222;
}

#month-title {
    text-align: center;
    font-size: 2em;
    color: #333;
    flex: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-cell {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 12px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.day-cell.empty {
    background: transparent;
    border: none;
}

.day-number {
    font-weight: bold;
    font-size: 1.2em;
    color: #000;
}

.day-roman {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.day-nundinal {
    font-size: 1em;
    font-weight: bold;
    color: #c00;
    margin-top: auto;
}

.fasti-image-container {
    margin-top: 30px;
}

.fasti-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* MOBILE: 4 colonne */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .day-cell {
        min-height: 90px;
        padding: 8px;
        font-size: 0.85em;
    }
    
    .day-number {
        font-size: 1em;
    }
    
    .day-roman {
        font-size: 0.75em;
    }
    
    .day-nundinal {
        font-size: 0.9em;
    }
    
    #month-title {
        font-size: 1.5em;
    }
    
    .fasti-image-container {
        margin-top: 20px;
        margin-left: -15px;
        margin-right: -15px;
    }
}