/* =================================
   STANZA MEDITATIVA — CSS UNIFICATO
   ================================= */

.stanza {
    background: url('../image/canva-paper-texture.png');
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 1s ease;
}

.stanza.attiva {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* stile globale del testo chiamato dalla funzione */

.stanza-intro, 
.invito, 
.invito2, 
.questionario-link, 
.email-link {
    text-align: center;
    font-size: 1.1rem;
}

/* Intro */
.stanza-intro {
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Foglio */
.foglio {
    width: 100%;
    min-height: 120px;
    border: 1px solid #ccc;
    background: rgba(255,255,255,0.8);
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.foglio.attivo {
    background-color: rgba(255,255,255,0.95);
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

/* Inviti */
.invito,
.invito2 {
    margin-top: 1.2rem;
    color: #555;
    opacity: 0;
    line-height: 1.6;
    transition: opacity 1.5s ease;
}

.invito.visibile,
.invito2.visibile {
    opacity: 0.85;
}

/* Link questionario + email */
.questionario-link,
.email-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #aaa;
    opacity: 0;
    transition: opacity 1.2s ease, color 0.3s ease, border-color 0.3s ease;
}

.questionario-link.visibile,
.email-link.visibile {
    opacity: 0.9;
}

.questionario-link:hover,
.email-link:hover {
    color: #000;
    border-color: #000;
}

/* Link ancora al modulo */
.ancora-modulo {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #aaa;
    opacity: 0;
    transition: opacity 1.2s ease, color 0.3s ease, border-color 0.3s ease;
}

.ancora-modulo.visibile {
    opacity: 0.9;
}

.ancora-modulo:hover {
    color: #000;
    border-color: #000;
}