:root {
    --stone: #1a1612;      /* Colore pietra scura */
    --parchment: #c5b358;  /* Oro antico spento */
    --ink: #e8dcc4;        /* Crema/Pergamena per il testo */
    --blood-gold: #8b4513; /* Bronzo scuro */
}

body {
    background-color: var(--stone);
    color: var(--ink);
    font-family: 'Cinzel', serif; /* Un font maestoso che richiama le iscrizioni romane/antiche */
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Effetto grana della pietra */
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

/* Overlay per dare un senso di oscurità e antichità */
.ancient-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 5;
}

.ancient-nav {
    padding: 30px;
    z-index: 10;
}

.back-link {
    color: var(--parchment);
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.8em;
    opacity: 0.6;
    transition: 0.5s;
}

.back-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--parchment);
}

.tablet-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 6;
}

.tablet {
    max-width: 700px;
    background: rgba(20, 18, 15, 0.8);
    padding: 60px;
    border: 1px solid var(--blood-gold);
    box-shadow: 0 0 50px rgba(0,0,0,1), inset 0 0 30px rgba(139, 69, 19, 0.2);
    position: relative;
}

.ornament {
    color: var(--parchment);
    font-size: 1.5em;
    text-align: center;
    margin: 20px 0;
    filter: drop-shadow(0 0 5px var(--blood-gold));
}

.poem-content {
    line-height: 2;
    font-size: 1.3em;
    text-align: center;
    white-space: pre-wrap;
    font-style: italic;
    /* Effetto "scritto sulla pietra" */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    animation: apparition 4s ease-out;
}

.ancient-overlay {
    /* ... codice precedente ... */
    background: 
        radial-gradient(circle, transparent 30%, rgba(0,0,0,0.9) 100%),
        url('https://www.transparenttextures.com/patterns/stardust.png'); /* Aggiunge un leggero pulviscolo */
    opacity: 0.5;
}

@keyframes apparition {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

.ancient-footer {
    padding: 30px;
    text-align: center;
    font-size: 0.7em;
    color: var(--blood-gold);
    letter-spacing: 5px;
}

/* Stile specifico per i versi sacri */
.sacred-verses {
    font-family: 'Cinzel', serif; /* Assicurati di aver incluso il link di Google Fonts nell'header */
    font-size: 1.4em;
    color: var(--ink);
    line-height: 1.8;
    text-align: center;
    white-space: pre-wrap; /* Mantiene la formattazione dei versi */
    text-shadow: 
        0 0 1px rgba(255, 255, 255, 0.2), 
        2px 2px 4px rgba(0, 0, 0, 0.9); /* Effetto profondità "inciso" */
}

/* Lettera iniziale più grande (Capolettera) per un tocco monastico */
.sacred-verses::first-letter {
    font-size: 2.5em;
    color: var(--parchment);
    float: left;
    margin-right: 10px;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(197, 179, 88, 0.5);
}

/* Animazione di apparizione più lenta per un senso di solennità */
.tablet {
    animation: tablet-reveal 5s ease-in-out;
}

@keyframes tablet-reveal {
    from { 
        opacity: 0; 
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    to { 
        opacity: 1; 
        box-shadow: 0 0 50px rgba(0,0,0,1);
    }
}

.gold-glow {
    color: inherit; /* Prende lo stesso colore del testo circostante */
    font-weight: inherit;
    text-decoration: none;
    transition: all 0.4s ease; /* Transizione fluida per l'accensione */
    cursor: help; /* Cambia il cursore in un punto interrogativo per dare un indizio */
}



/* Effetto pulsante: la parola sembra brillare dolcemente */
@keyframes gold-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 223, 0, 0.8), 
                     0 0 20px rgba(255, 223, 0, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 223, 0, 1), 
                     0 0 40px rgba(255, 223, 0, 0.6);
        transform: scale(1.02); /* Si espande leggermente */
        color: #fff700;
    }
}

/* Si illumina SOLO al passaggio del mouse */
.gold-glow:hover {
    color: #ffdf00; /* Oro vivido */
    font-weight: bold;
    text-shadow: 
        0 0 10px rgba(255, 223, 0, 0.8), 
        0 0 20px rgba(255, 223, 0, 0.5);
    transform: scale(1.05); /* Si ingrandisce leggermente per enfatizzare la scoperta */
}