.box-oracolo {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--bg-box), var(--accent));
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    color: var(--text-light, #3d1349);
    font-family: 'Cormorant Garamond', serif;
    transition: background 0.3s ease;
}

/* Effetto decorativo fluttuante (tipo glitch leggero o alone) */
.box-oracolo::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
    animation: fluttuazione 8s ease-in-out infinite;
    z-index: 0;
}

/* Effetto movimento */
@keyframes fluttuazione {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -8px);
    }
}

.box-oracolo blockquote.frase {
    font-size: 1.4rem;
    font-style: italic;
    z-index: 1;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

.box-oracolo .autore {
    text-align: right;
    font-size: 0.9rem;
    font-family: monospace;
    opacity: 0.8;
    margin-top: 1rem;
    z-index: 1;
    position: relative;
}

.bottone-oracolo {
    margin-top: 1.5rem;
    align-self: center;
    background: transparent;
    color: #fff;
    border: 1px solid #ccc;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: background 0.3s, color 0.3s;
}

.bottone-oracolo:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

.icona-link-oracolo {
    margin-left: 6px;
    font-size: 0.9em;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.icona-link-oracolo:hover {
    opacity: 1;
}

/* Dettaglio citazione oracolo */
.contenitore-oracolo-pagina {
    max-width: 680px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    text-align: center;
}

.ritratto-autore {
    margin: 0 auto 1rem;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.ritratto-autore img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frase {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.2rem;
}

.autore {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
}

.autore .link-bio {
    margin-left: 8px;
    font-size: 0.9em;
    text-decoration: none;
    opacity: 0.6;
}

.autore .link-bio:hover {
    opacity: 1;
    text-decoration: underline;
}

.fonte {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    text-align: center;
}

.nota {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    text-align: justify;
    font-family: 'Georgia', serif;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.azioni {
    margin-top: 2rem;
}

.azioni a {
    position: relative;
    z-index: 3;
    cursor: pointer;
    text-decoration: none;
    color: var(--accent, #333);
    font-size: 0.9rem;
}

.riflessione {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-box-muted);
}

.riflessione a {
    position: relative;
    z-index: 3;
    cursor: pointer;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.riflessione a:hover {
    text-decoration: underline;
}

.box-oracolo.dettaglio {
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
}

.box-oracolo.dettaglio .frase {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.box-oracolo.dettaglio .autore {
    font-size: 1rem;
    text-align: right;
    margin-bottom: 1.5rem;
}

.box-oracolo.riflessivo {
    background: #7fb8b5;
    color: #333;
}

.box-oracolo.ferito {
    background: #3f1e1e;
    color: #fdd;
}

.box-oracolo.ironico {
    background: #fffbe6;
    color: #553;
}

.box-oracolo.mistico {
    background: radial-gradient(#222, #000);
    color: #ccf;
}

.box-oracolo.lucido {
    background: #ffffff;
    color: #000;
    border: 1px solid #aaa;
}

.box-oracolo.assurdo {
    background: #ffd8f0;
    color: #990099;
    transform: rotate(-0.3deg);
}

.box-oracolo.residuo {
    background: #e0e0d1;
    color: #444;
    font-family: 'Courier New', monospace;
}

.box-oracolo.neutro {
    background: #eee;
    color: #666;
}

@keyframes glitch-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
        transform: translate(1px, -1px);
    }
}

/* fading */
#contenuto-oracolo {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#contenuto-oracolo.fade {
    opacity: 0;
}