.module {
    background: #fff;
    border-radius: var(--module-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
    padding: 0.4rem 0.6rem;
    margin-bottom: var(--module-gap);
}

.module-title {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

.module figure {
    margin: 0;
}

.module .lead {
    font-weight: 400;
}

.lead {
    margin-bottom: 6px;
    line-height: 1.2;
}

.download-card,
.social-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: .5rem;
    background: #fcfcfd;
}

.download-card {
    border: 1px dashed #ced4da;
}

.social-card {
    border: 1px solid #e9ecef;
}

.download-card small,
.social-hint {
    color: #6c757d;
}

.social-card .left {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
}

.icon-facebook {
    background: #1877f2;
}

.icon-instagram {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.icon-tiktok {
    background: #000;
}

.cta-hero {
    background: linear-gradient(135deg, #e9f2ff 0%, #fff 60%);
    border: 1px solid #e3f0ff;
    padding: 10px;
}

.carousel .carousel-item img {
    object-fit: cover;
    height: 360px;
}

.logo-grid img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    opacity: .8;
    transition: filter .2s, opacity .2s, transform .2s;
}

.app-card {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

    .app-icon svg {
        width: 24px;
        height: 24px;
    }

.text-block {
    min-width: 0;
    flex-grow: 1;
}

#installAppButton {
    flex-shrink: 0;
}

.btn-cta-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
}

.gallery-img-fill {
    width: 100%;
    height: auto;
    display: block;
}

.module[data-module="gallery"] .carousel-inner,
.module[data-module="gallery"] .carousel-item {
    height: auto !important;
}

    .module[data-module="gallery"] .carousel-item img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }

.module[data-module="immagini"] img {
    max-height: none;
}

.button-click-area {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .button-click-area:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(0,0,0,.12);
        border-color: rgba(0,0,0,.15);
        text-decoration: none;
    }

.button-title {
    font-size: 1.35rem;
    line-height: 1.2;
}

.module.module-bare {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

    .module.module-bare figure {
        margin: 0.35rem 0;
    }

.navbar-toggler {
    padding: 0.25rem 0.45rem;
    border: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.readmore-toggle,
.readmore-toggle-rich {
    cursor: pointer;
    color: #0d6efd;
    margin-left: 4px;
}

    .readmore-toggle:hover,
    .readmore-toggle-rich:hover {
        text-decoration: underline;
    }

/* Quick private */
#quickPrivateBtn {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 2000;
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .65rem .95rem;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

    #quickPrivateBtn.show {
        display: inline-flex;
    }

/* Utility ratio/video */
.ratio-9x16 {
    --bs-aspect-ratio: 177.7778%;
}

.video-ratio-wrap {
    background: transparent;
}

.video-wrap {
    position: relative;
}

.mute-overlay {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(0,0,0,.45);
    color: #fff;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}

    .mute-overlay:active {
        transform: scale(.98);
    }

    .mute-overlay i {
        font-size: 18px;
        line-height: 1;
    }

.video-wrap.only-video {
    border-radius: 10px;
    overflow: hidden;
}

    .video-wrap.only-video video {
        border-radius: 10px;
        display: block;
    }


.module[data-module="video-file"] .video-wrap {
    margin-bottom: 8px !important;
}


.module[data-module="video-file"] .module-text {
    margin-top: 4px !important;
}