/* Video di presentazione Growth OS.
   Le clip sono servite dalla cache Cloudflare (R2, cache immutabile) e la
   sezione mostra un solo video per volta: frecce, pallini, swipe e tastiera. */

/* Canali supportati: box orizzontale largo, come "Casi d'uso". */
.aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-cases {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-meta {
    margin-top: 14px;
}

/* Gruppi di canali e risorse: icone, titoli di gruppo e rifiniture. */
.aifrontlab-growth-dashboard .ag-public-channels-wide {
    position: relative;
    overflow: hidden;
}
.aifrontlab-growth-dashboard .ag-public-channels-wide::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -10%;
    width: 55%;
    height: 150%;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, .14), rgba(56, 189, 248, 0) 62%);
    pointer-events: none;
}
.aifrontlab-growth-dashboard .ag-public-channel-groups {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.aifrontlab-growth-dashboard .ag-public-channel-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7dd3fc;
}
.aifrontlab-growth-dashboard .ag-public-channel-group-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, .42), rgba(56, 189, 248, 0));
}
.aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-case {
    padding: 13px 14px;
    border-radius: 15px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-case:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, .45);
    box-shadow: 0 14px 30px rgba(3, 7, 18, .45);
}
.aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-case h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    font-size: .96rem;
    line-height: 1.25;
    color: #f8fafc;
}
.aifrontlab-growth-dashboard .ag-public-channel-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, .32);
    background: linear-gradient(150deg, rgba(56, 189, 248, .22), rgba(29, 78, 216, .18));
    color: #e0f2fe;
}
.aifrontlab-growth-dashboard .ag-public-channel-mark svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}
.aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-case p {
    font-size: .88rem;
    line-height: 1.5;
}
.aifrontlab-growth-dashboard .ag-public-channel-groups {
    gap: 16px;
}

/* Video di presentazione: occupa la casella che era di "Canali supportati". */
.aifrontlab-growth-dashboard .ag-presentation {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.aifrontlab-growth-dashboard .ag-presentation-stage {
    position: relative;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}
.aifrontlab-growth-dashboard .ag-presentation-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(560px, 132%);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(56, 189, 248, .26), rgba(56, 189, 248, 0) 62%);
    pointer-events: none;
}
.aifrontlab-growth-dashboard .ag-presentation-phone {
    position: relative;
    z-index: 1;
    height: min(44vh, 392px);
    height: min(100cqh, calc(100cqw * 16 / 9));
    aspect-ratio: 9 / 16;
    width: auto;
    max-width: 100%;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 44px rgba(3, 7, 18, .55);
}
.aifrontlab-growth-dashboard .ag-presentation-phone video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #030712;
    cursor: pointer;
    margin: 0;
}
.aifrontlab-growth-dashboard .ag-presentation-sound {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(3, 7, 18, .62);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.aifrontlab-growth-dashboard .ag-presentation-sound:hover {
    background: rgba(3, 7, 18, .86);
}
.aifrontlab-growth-dashboard .ag-presentation-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, .22);
    z-index: 2;
}
.aifrontlab-growth-dashboard .ag-presentation-progress i {
    display: block;
    height: 100%;
    width: 0;
    background: #38bdf8;
}
.aifrontlab-growth-dashboard .ag-presentation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(3, 7, 18, .62);
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s;
}
.aifrontlab-growth-dashboard .ag-presentation-prev {
    left: 8px;
}
.aifrontlab-growth-dashboard .ag-presentation-next {
    right: 8px;
}
.aifrontlab-growth-dashboard .ag-presentation-arrow:hover {
    background: #1d4ed8;
    border-color: #38bdf8;
}
.aifrontlab-growth-dashboard .ag-presentation-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(3, 7, 18, .62);
    color: #f8fafc;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, border-color .15s;
}
.aifrontlab-growth-dashboard .ag-presentation-play:hover {
    background: #1d4ed8;
    border-color: #38bdf8;
}

/* I comandi sovrapposti si vedono solo con il mouse sopra al video, con il
   focus da tastiera dentro il player o quando il dispositivo non ha hover. */
.aifrontlab-growth-dashboard .ag-presentation-sound,
.aifrontlab-growth-dashboard .ag-presentation-play,
.aifrontlab-growth-dashboard .ag-presentation-arrow {
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, background .15s, border-color .15s;
}
.aifrontlab-growth-dashboard .ag-presentation-phone:hover .ag-presentation-sound,
.aifrontlab-growth-dashboard .ag-presentation-phone:hover .ag-presentation-play,
.aifrontlab-growth-dashboard .ag-presentation-phone:hover .ag-presentation-arrow,
.aifrontlab-growth-dashboard .ag-presentation-phone:focus-within .ag-presentation-sound,
.aifrontlab-growth-dashboard .ag-presentation-phone:focus-within .ag-presentation-play,
.aifrontlab-growth-dashboard .ag-presentation-phone:focus-within .ag-presentation-arrow {
    opacity: 1;
    pointer-events: auto;
}
.aifrontlab-growth-dashboard .ag-presentation-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 14px 0 0;
}
.aifrontlab-growth-dashboard .ag-presentation-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #475569;
    background: transparent;
    cursor: pointer;
    transition: all .15s;
}
.aifrontlab-growth-dashboard .ag-presentation-dots button[aria-current="true"] {
    width: 24px;
    background: #38bdf8;
    border-color: #38bdf8;
}
.aifrontlab-growth-dashboard .ag-presentation-sound:focus-visible,
.aifrontlab-growth-dashboard .ag-presentation-play:focus-visible,
.aifrontlab-growth-dashboard .ag-presentation-arrow:focus-visible,
.aifrontlab-growth-dashboard .ag-presentation-dots button:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

@media (max-width: 1280px) {
    .aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-cases {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-cases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .aifrontlab-growth-dashboard .ag-presentation {
        grid-row: auto;
    }
    .aifrontlab-growth-dashboard .ag-presentation-stage {
        container-type: normal;
        width: auto;
        flex: 0 0 auto;
    }
    .aifrontlab-growth-dashboard .ag-presentation-stage::before {
        width: min(430px, 96%);
    }
    .aifrontlab-growth-dashboard .ag-presentation-phone {
        --ag-presentation-height: min(44vh, 392px);
        height: var(--ag-presentation-height);
        width: calc(var(--ag-presentation-height) * 9 / 16);
        aspect-ratio: auto;
        max-width: 100%;
    }
}

@media (max-width: 620px) {
    .aifrontlab-growth-dashboard .ag-public-channels-wide .ag-public-use-cases {
        grid-template-columns: 1fr;
    }
    .aifrontlab-growth-dashboard .ag-presentation-phone {
        --ag-presentation-height: min(48vh, 420px);
    }
    .aifrontlab-growth-dashboard .ag-presentation-arrow {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* Touch e schermi stretti: nessun hover, quindi i comandi restano visibili. */
@media (hover: none), (max-width: 620px) {
    .aifrontlab-growth-dashboard .ag-presentation-sound,
    .aifrontlab-growth-dashboard .ag-presentation-play,
    .aifrontlab-growth-dashboard .ag-presentation-arrow {
        opacity: 1;
        pointer-events: auto;
    }
    .aifrontlab-growth-dashboard .ag-presentation-play {
        left: 12px;
        top: auto;
        bottom: 12px;
        transform: none;
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* Casi d'uso e servizi: le stesse icone del box canali, per una pagina coerente. */
.aifrontlab-growth-dashboard .ag-public-use-cases .ag-public-use-case {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.aifrontlab-growth-dashboard .ag-public-use-cases .ag-public-use-case:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, .4);
    box-shadow: 0 14px 30px rgba(3, 7, 18, .35);
}
.aifrontlab-growth-dashboard .ag-public-use-cases .ag-public-use-case h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 9px;
}
.aifrontlab-growth-dashboard .ag-public-use-cases .ag-public-use-case .ag-public-channel-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}
.aifrontlab-growth-dashboard .ag-public-use-cases .ag-public-use-case .ag-public-channel-mark svg {
    width: 16px;
    height: 16px;
}
/* Box assistente AI: testo a sinistra, immagine a destra. */
.aifrontlab-growth-dashboard .ag-public-assistant-body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}
.aifrontlab-growth-dashboard .ag-public-assistant-visual {
    margin: 0;
}
.aifrontlab-growth-dashboard .ag-public-assistant-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, .22);
    box-shadow: 0 22px 55px rgba(2, 6, 23, .55);
}
/* Box video AI: spiegazione della produzione, separata dal tariffario. */
.aifrontlab-growth-dashboard .ag-public-video-ai-how {
    margin: 16px 0 8px;
    font-size: 1.05rem;
    color: #0f172a;
}
.aifrontlab-growth-dashboard .ag-public-video-ai-steps {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #334155;
    line-height: 1.6;
}
.aifrontlab-growth-dashboard .ag-public-video-ai-steps li {
    margin: 4px 0;
}
@media (max-width: 900px) {
    .aifrontlab-growth-dashboard .ag-public-assistant-body {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

