/*
Theme Name: Riva Motors Child
Theme URI: https://rivamotors.it
Description: Child theme di Hello Elementor — ottimizzazioni performance per rivamotors.it
Author: Riva Motors
Author URI: https://rivamotors.it
Template: hello-elementor
Version: 1.1.0
Text Domain: rivamotors-child
*/

/* ============================================================
   CSS minimo critico — il resto è in Elementor.
   ============================================================ */

/* Logo: dimensioni naturali per evitare CLS */
img.attachment-large.size-large {
    height: auto;
    max-width: 100%;
}

/* Riserva spazio per video lazy-load (placeholder) */
.lazy-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a center/cover no-repeat;
    cursor: pointer;
    overflow: hidden;
}
.lazy-video-wrapper::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #fff;
    opacity: 0.85;
    pointer-events: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.lazy-video-wrapper.loaded::after { display: none; }
.lazy-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Google Maps lazy: placeholder con dimensioni riservate */
.lazy-map-placeholder {
    background: #1a1a1a;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}
