/* =========================================
   CONTENITORE E COLORI PERSONALIZZABILI
   ========================================= */

.g911-rotation {
    /* Colori del pulsante Play */
   

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: none;

    /* Altezza totale: immagine + comandi */
    height: 350px;
    min-height: 350px;
    max-height: 350px;

    /* Spazio esterno sotto il visualizzatore */
    margin: 0 0 30px;
    padding: 0;

    border: 0;
    border-radius: 0;
    overflow: hidden;

    background: #d4d3d5;
    color: #292929;
    font-family: inherit;
    line-height: normal;
}

.g911-rotation,
.g911-rotation *,
.g911-rotation *::before,
.g911-rotation *::after {
    box-sizing: border-box;
}

/* =========================================
   AREA IMMAGINE
   ========================================= */

.g911-rotation .g911-stage {
    position: relative;
    flex: 1 1 0;

    width: 100%;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;
    background: #d4d3d5;
    cursor: grab;
    touch-action: pan-y;
}

.g911-rotation .g911-position {
    accent-color: #c8102e;
}

/* Estensione sfumata dello sfondo */
.g911-rotation .g911-stage::before {
    content: "";
    position: absolute;
    inset: -20px;

    background-image: inherit;
    background-size: cover;
    background-position: center;

    filter: blur(16px);
    pointer-events: none;
}

.g911-rotation .g911-stage:active {
    cursor: grabbing;
}

.g911-rotation .g911-stage img {
    position: relative;
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    object-fit: contain;
    object-position: center;

    user-select: none;
    -webkit-user-drag: none;
}

/* =========================================
   WATERMARK
   ========================================= */

.g911-rotation .g911-stage .g911-watermark {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 16px;

    display: block;
    width: clamp(96px, 12%, 150px);
    height: auto;
    max-width: calc(100% - 32px);
    max-height: 42px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    object-fit: contain;
    object-position: left top;

    pointer-events: none;
    user-select: none;
}

/* =========================================
   BARRA COMANDI — ALTEZZA 48 PX
   ========================================= */

.g911-rotation .g911-controls {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;

    width: 100%;
    height: 48px;
    min-height: 48px;

    margin: 0;
    padding: 6px 12px;

    border: 0;
    border-top: 1px solid #e2e2e2;
    border-radius: 0;

    background: #ffffff;
    font-family: inherit;
    overflow: hidden;
}

/* =========================================
   PULSANTI TONDI
   ========================================= */

.g911-rotation .g911-control {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;

    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;

    margin: 0;
    padding: 0;

    border: 1px solid #dddddd;
    border-radius: 50%;

    background: #ffffff;
    color: #333333;
    box-shadow: none;

    font: inherit;
    line-height: 1;

    cursor: pointer;
    appearance: none;
}

.g911-rotation .g911-control:hover {
    background: #f3f3f3;
    color: #c8102e;
    border-color: #c8102e;
}

/* Colore del cerchio e del simbolo Play */
.g911-rotation .g911-play {
    background: var(--g911-play-background);
    border-color: var(--g911-play-background);
    color: var(--g911-play-icon);
}

/* Colore del Play al passaggio del mouse */
.g911-rotation .g911-play:hover {
    background: var(--g911-play-hover);
    border-color: var(--g911-play-hover);
    color: var(--g911-play-icon);
}

/* Icone dei pulsanti */
.g911-rotation .g911-control svg {
    display: block;
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}

.g911-rotation [hidden] {
    display: none !important;
}

/* =========================================
   CURSORE DELLA ROTAZIONE
   ========================================= */

.g911-rotation .g911-position {
    display: block;
    flex: 0 1 160px;

    width: 160px;
    min-width: 45px;
    max-width: 160px;
    height: 18px;

    margin: 0 3px;
    padding: 0;

    accent-color: #c8102e;
    cursor: pointer;
}

/* =========================================
   TESTI
   ========================================= */

.g911-rotation .g911-status {
    flex: 0 0 auto;
    min-width: 35px;

    margin: 0;
    padding: 0;

    color: #333333;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.g911-rotation .g911-note {
    margin: 0;
    padding: 0;

    color: #686868;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

/* Navigazione da tastiera */
.g911-rotation :is(button, input, [tabindex]):focus-visible {
    outline: 2px solid #c8102e;
    outline-offset: -2px;
}

/* =========================================
   TABLET E TELEFONO
   ========================================= */

@media (max-width: 640px) {
    .g911-rotation .g911-note .g911-drag-hint {
        display: none;
    }

    .g911-rotation .g911-controls {
        gap: 8px;
        padding: 6px 8px;
    }
}

@media (max-width: 380px) {
    .g911-rotation .g911-note {
        font-size: 10px;
    }

    .g911-rotation .g911-position {
        flex-basis: 60px;
        width: 60px;
    }

    .g911-rotation .g911-controls {
        gap: 5px;
    }
	
}