.container-banner {
    margin: 0 0 0rem !important;
}

/* MENU MOBILE IN UNA SOLA RIGA */
@media (max-width: 768px) {

    /* il contenitore UL deve usare flex */
    ul.mod-menu.nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-wrap: nowrap !important; /* <<< impedisce di andare a capo */
    }

    /* ogni voce deve stringersi se serve */
    ul.mod-menu.nav > li.nav-item {
        flex: 1 1 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important; /* <<< impedisce il wrap del testo */
    }

    /* link interni più compatti */
    ul.mod-menu.nav > li.nav-item > a {
        display: block !important;
        padding: 10px 4px !important;   /* shrink padding */
        font-size: 14px !important;     /* più piccolo così entrano */
        text-align: center !important;
        white-space: nowrap !important;
    }

    /* elimina pill styling */
    ul.mod-menu.nav.nav-pills > li > a {
        border-radius: 0 !important;
    }
}






/* ============================================
   ERASE FORZATO DI TUTTE LE ICON PLAY SIGPLUS
   ============================================ */

/* Cancella qualsiasi ::after inserito da Sigplus */
a.sigplus-image::after,
a.sigplus-image[href$=".mp4"]::after,
a.sigplus-image[href$=".mov"]::after,
a.sigplus-image[href$=".webm"]::after,
a.sigplus-image[href$=".ogg"]::after,
a.sigplus-image[href$=".mpg"]::after {
    content: none !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Cancella ANCHE overlay aggiunti sull’immagine */
.sigplus-preview::after,
.sigplus-preview::before {
    content: none !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Reset totale a livello di contenitore */
.sigplus-image::before,
.sigplus-image::after {
    content: none !important;
    display: none !important;
}

/* Overlay moderno */
.sigplus-video-thumb::after {
    content: "" !important;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.28);
    border-radius: 12px;
    z-index: 10;
}

/* Nuova icona play */
.sigplus-video-thumb::before {
    content: "" !important;
    position: absolute;
    width: 75px;
    height: 75px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 50%;
    mask: url('/images/play-icon-animated-modern.svg') center/70% no-repeat;
    -webkit-mask: url('/images/play-icon-animated-modern.svg') center/70% no-repeat;
    z-index: 9999;
}

/* =====================================================
   2. SIGPLUS GALLERY – MASONRY FLUIDO PER CASSIOPEIA
   ===================================================== */

.sigplus-gallery ul {
  column-count: 3;
  column-gap: 15px;
  padding: 0;
  margin: 1.5rem 0;
}

.sigplus-gallery ul li {
  list-style: none;
  break-inside: avoid !important;
  margin-bottom: 15px;
}

.sigplus-gallery a {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.sigplus-gallery img {
  width: 100%;
  height: auto !important;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.sigplus-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sigplus-caption {
  font-size: 0.9rem;
  text-align: center;
  color: #444;
  margin-top: 8px;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 992px) {
  .sigplus-gallery ul { column-count: 2; }
}

@media (max-width: 600px) {
  .sigplus-gallery ul { column-count: 1; }
}

/* Background della lightbox */
.mfp-bg,
.fancybox__container {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

.sigplus-gallery a:focus {
  outline: none;
}


/* =====================================================
   3. MIGLIORAMENTO PULSANTI (Cassiopeia)
   ===================================================== */

.btn {
  background-color: #0A84FF !important;
  color: #fff !important;
  border: none;
  padding: 0.7rem 1.3rem;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background-color: #0069d9 !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0,0,0,0.25);
}


/* =====================================================
   4. INPUT FILE MODERNO (Easy File Uploader) — VERSIONE MIGLIORATA
   ===================================================== */

/* Contenitore file input */
input[type="file"] {
    padding: 12px 14px;
    font-size: 15px;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa, #eceff3);
    border: 2px solid #0A84FF;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Pulsante UPLOAD vero e proprio */
input[type="file"]::-webkit-file-upload-button,
input[type="file"]::file-selector-button {
    background: #0A84FF;
    background: linear-gradient(135deg, #0A84FF, #0069d9);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-right: 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(0,120,255,0.25);
}

/* Hover tasto upload */
input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #0069d9, #0053aa);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,110,220,0.35);
}

/* Effetto focus */
input[type="file"]:focus {
    outline: none !important;
    border-color: #0069d9 !important;
    box-shadow: 0 0 0 3px rgba(0,120,255,0.25);
}

/* Stile quando disabilitato */
input[type="file"]:disabled,
input[type="file"]::-webkit-file-upload-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}



/* =====================================================
   5. MINIATURE VIDEO – OVERLAY + NUOVA ICONA PLAY
   ===================================================== */

/* wrapper video (classe aggiunta da Sigplus) */
.sigplus-video-thumb {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* Overlay scuro leggero sopra la thumbnail video */
.sigplus-video-thumb::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.28) !important;
    border-radius: 12px !important;
    pointer-events: none !important;
    z-index: 9 !important;
}

/* Nuova icona play moderna (SVG in /images/play-icon-animated-modern.svg) */
.sigplus-video-thumb::before {
    content: "" !important;
    position: absolute !important;
    width: 75px !important;
    height: 75px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #ffffff !important;
    border-radius: 50% !important;

    mask: url('/images/play-icon-animated-modern.svg') center/70% no-repeat !important;
    -webkit-mask: url('/images/play-icon-animated-modern.svg') center/70% no-repeat !important;

    pointer-events: none !important;
    z-index: 9999 !important;
    transition: transform 0.25s ease !important;
}

/* Hover: ingrandisce leggermente il play */
.sigplus-video-thumb:hover::before {
    transform: translate(-50%, -50%) scale(1.15) !important;
}

/* Leggero scurimento della miniatura video */
.sigplus-video-thumb img {
    filter: brightness(0.85) !important;
}
/* forza lo z-index dell’immagine sotto gli pseudo-elementi */
.sigplus-video-thumb img {
    position: relative !important;
    z-index: 1 !important;
}

/* overlay */
.sigplus-video-thumb::after {
    z-index: 5 !important;
}

/* icona play */
.sigplus-video-thumb::before {
    z-index: 9999 !important;
}

/* force reload */
/* =====================================================
   TASTO "Invia foto/video" – NUOVO DESIGN MODERNO
   ===================================================== */

input.btn[type="submit"] {
    background: linear-gradient(135deg, #0A84FF, #0069d9) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,120,255,0.25) !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-block !important;
}

/* Effetto hover */
input.btn[type="submit"]:hover {
    background: linear-gradient(135deg, #0069d9, #0053aa) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0,110,220,0.35) !important;
}

/* Effetto pressione */
input.btn[type="submit"]:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Stato disabilitato */
input.btn[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
/* ===== OVERRIDE DEFINITIVO DEL PULSANTE "Invia foto/video" ===== */

/* Selettore super-specifico che vince SEMPRE */
body form input.btn[type="submit"],
body form input[type="submit"].btn,
body form .btn[type="submit"] {
    background: linear-gradient(135deg, #0A84FF, #0069d9) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-align: center !important;
    display: inline-block !important;
    box-shadow: 0 4px 14px rgba(0,120,255,0.25) !important;
    transition: all 0.25s ease-in-out !important;
}

/* Hover */
body form input.btn[type="submit"]:hover {
    background: linear-gradient(135deg, #0069d9, #0053aa) !important;
    transform: translateY(-2px) !important;
}

/* Pressed */
body form input.btn[type="submit"]:active {
    transform: scale(0.96) !important;
}

