/* Audio Player */
audio {
    width: 100%;
    background-color: #FFFE03;
    border-radius: 10px;
    margin-top: 1rem;
}

audio::-webkit-media-controls-panel {
    background-color: #FFFE03;
}

.content-parola {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
    align-items: center;
    padding: 2rem;
}

.left-parola {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-parola {
    width: 50%;
}

.img-parola {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
}

.info-parola h1 {
    font-size: 4vw;
    padding-bottom: 2vw;
    text-transform: uppercase;
}

.color-white-text {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Metadata Styling */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    width: 100%;
}

.meta-row p {
    color: #FFFE03;
    font-weight: 900;
    text-align: right;
    margin: 0;

}

.significato-section {
    margin-bottom: 2rem;

}

.significato-text p {
    margin-top: 0.5rem;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
}

.parola-divider {
    border: none;
    height: 1.5px;
    background-color: #FFFE03;
    margin: 2rem 0;
    width: 100%;
    /* Reset styles from global hr if needed */
    position: static;
    left: auto;
    margin-left: 0;
}


/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet (1220px) */
@media screen and (max-width: 1220px) {
    .info-parola h1 {
        width: 100%;
        text-align: center;
        font-size: 4vw;
        /* Big like header */
        margin-bottom: 2rem;

    }

    .img-parola {
        width: 45vw;

    }
}

/* Mobile (768px) */
@media screen and (max-width: 768px) {
    .content-parola {
        flex-direction: column;
        padding: 5vw;
    }

    .left-parola,
    .info-parola {
        width: 100%;
    }

    /* REORDERING MAGIC: Title -> Image -> Content */
    /* We make .info-parola disappear (display: contents) so its children become siblings of .left-parola */
    .info-parola {
        display: contents;
    }

    /* 1. TITLE */
    .info-parola h1 {
        width: 100%;
        text-align: center;
        font-size: 8vw;
        /* Big like header */
        margin-bottom: 2rem;
    }

    /* 2. IMAGE */
    .left-parola {
        order: 2;
        margin-bottom: 2rem;
    }

    .img-parola {
        width: 60vw;
        /* Adjust per image look (tree sticker serves as central visual) */
    }

    /* 3. CONTENT */
    .info-parola-content {
        order: 3;
        width: 100%;
    }

    .meta-row {
        align-items: center;
        /* Center align vertically for cleaner look */
    }

    .parola-divider {
        margin: 1.5rem 0;
        width: 100%;
        /* Ensure full width in mobile container */
    }
}