.rw-cameras{display:grid;gap:22px}
.rw-camera{min-width:0;padding:16px;background:#fff;border:1px solid #dce3e7;border-top:3px solid #287594;border-radius:8px}
.rw-camera h3{margin:0 0 14px;font-size:22px;color:#263845}
.rw-camera h4{margin:20px 0 10px;font-size:18px}
.rw-image-link{display:block}
.rw-image-link img,.rw-video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#17242c;border-radius:6px;object-fit:contain}
.rw-video[hidden]{display:none}
.rw-caption{font-size:14px;line-height:1.5;color:#526573;margin:10px 0}
.rw-video-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.rw-video-button,.rw-map-toggle{font:inherit;font-weight:700;border:1px solid #aabfc9;border-radius:7px;background:#fff;color:#286b85;min-height:44px;padding:9px 15px;cursor:pointer}
.rw-video-button[aria-pressed=true],.rw-map-toggle[aria-pressed=true]{background:#287594;color:#fff;border-color:#287594}
.rw-video-button:disabled{opacity:.5;cursor:default}
.rw-map-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.rw-map-status{font-size:14px;color:#526573}
.rw-camera-marker{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:#fff;color:#176b88;border:2px solid #176b88;border-radius:9px;box-shadow:0 2px 6px #0003}
.rw-camera-marker svg{width:22px;height:22px}
.rs-tabs,.station-v3-nav{overflow-x:auto}
.station-v3-nav .station-v3-nav-item{flex:1 0 auto}
.rw-video-message{font-size:15px;color:#263845}

/* RETE WEBCAM ESCLUSIVA V2 */
.rw-camera-marker{
    box-sizing:border-box;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#287594;
    color:#fff;
    border:2px solid #fff;
    box-shadow:0 0 0 1px #287594,0 2px 5px #0003;
}
body.rw-camera-mode #reteTemperatureModes{
    display:none !important;
}
.rete-station-panel .station-v3 .station-v3-nav,
.rs-page .rs-tabs{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:0 !important;
    width:100%;
    overflow:visible;
}
.rete-station-panel .station-v3 .station-v3-nav > .station-v3-nav-item,
.rs-page .rs-tabs > a{
    box-sizing:border-box;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:12px 2px !important;
    font-size:clamp(12px,3.3vw,16px) !important;
    text-align:center;
    white-space:nowrap;
}
.rete-station-panel .station-v3 .station-v3-nav-icon{
    margin-left:auto;
    margin-right:auto;
}
.rete-station-panel .station-v3 .station-v3-nav-icon svg{
    width:22px;
    height:22px;
}

/* RETE WEBCAM ANTEPRIME V3 */
.rw-camera-preview{
    position:relative;
    box-sizing:border-box;
    width:64px;
    height:40px;
    overflow:hidden;
    border:2px solid #fff;
    border-radius:7px;
    background:#287594;
    box-shadow:0 0 0 1px #287594,0 2px 6px #0004;
}
.rw-camera-preview img{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.rw-preview-fallback{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
}
.rw-preview-fallback svg{width:23px;height:23px}
.rw-map-status[hidden]{display:none !important}
body.rw-camera-mode .rete-temperature-modes{
    display:none !important;
}
body.rw-camera-mode .rete-legend{
    display:none !important;
}

/* RETE WEBCAM CERCHI V5 */
.rw-preview-icon .rw-camera-preview{
    box-sizing:border-box;
    width:44px;
    height:44px;
    border:2px solid #fff;
    border-radius:50%;
    overflow:hidden;
    background:#e5edf1;
    box-shadow:0 0 0 1px #287594,0 2px 5px #0003;
}
.rw-preview-icon .rw-camera-preview img{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none !important;
    max-height:none !important;
    object-fit:cover;
    object-position:center;
    border-radius:50%;
}
.rw-preview-icon .rw-preview-fallback{
    display:none !important;
}

/* RETE WEBCAM ZOOM V6 */
.rw-preview-icon .rw-camera-preview{
    width:100%;
    height:100%;
}


/* RETE_WEBCAM_DESKTOP_COMPATTA_V1 */
@media (min-width: 901px) {
    .rs-page .rw-cameras {
        width: 100%;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .rs-page .rw-cameras > .rw-camera {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .rs-page .rw-camera .rw-image-link img,
    .rs-page .rw-camera .rw-video {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}
